From 8ea987adfc31ba8bbe3e4a93bc46167b0bf4f89b Mon Sep 17 00:00:00 2001 From: jrconlin Date: Sat, 5 Jun 2021 12:58:28 -0700 Subject: [PATCH 1/4] f ignore --- Cargo.lock | 55 +- .../googleapis-raw/Cargo.toml | 4 +- .../googleapis-raw/src/api/annotations.rs | 74 - .../googleapis-raw/src/api/auth.rs | 1850 -- .../googleapis-raw/src/api/backend.rs | 952 - .../googleapis-raw/src/api/billing.rs | 486 - .../googleapis-raw/src/api/client.rs | 130 - .../googleapis-raw/src/api/config_change.rs | 675 - .../googleapis-raw/src/api/consumer.rs | 583 - .../googleapis-raw/src/api/context.rs | 617 - .../googleapis-raw/src/api/control.rs | 231 - .../googleapis-raw/src/api/distribution.rs | 2146 -- .../googleapis-raw/src/api/documentation.rs | 1096 - .../googleapis-raw/src/api/endpoint.rs | 391 - .../googleapis-raw/src/api/error_reason.rs | 436 - .../googleapis-raw/src/api/field_behavior.rs | 199 - .../googleapis-raw/src/api/http.rs | 1542 - .../googleapis-raw/src/api/httpbody.rs | 360 - .../googleapis-raw/src/api/label.rs | 375 - .../googleapis-raw/src/api/launch_stage.rs | 189 - .../googleapis-raw/src/api/log.rs | 391 - .../googleapis-raw/src/api/logging.rs | 541 - .../googleapis-raw/src/api/metric.rs | 1502 - .../src/api/monitored_resource.rs | 966 - .../googleapis-raw/src/api/monitoring.rs | 568 - .../googleapis-raw/src/api/quota.rs | 1175 - .../googleapis-raw/src/api/resource.rs | 1056 - .../googleapis-raw/src/api/service.rs | 1694 - .../src/api/servicecontrol/v1/check_error.rs | 584 - .../src/api/servicecontrol/v1/distribution.rs | 1420 - .../src/api/servicecontrol/v1/http_request.rs | 879 - .../src/api/servicecontrol/v1/log_entry.rs | 1491 - .../src/api/servicecontrol/v1/metric_value.rs | 904 - .../src/api/servicecontrol/v1/operation.rs | 813 - .../api/servicecontrol/v1/quota_controller.rs | 1614 - .../v1/quota_controller_grpc.rs | 69 - .../servicecontrol/v1/service_controller.rs | 2174 -- .../v1/service_controller_grpc.rs | 97 - .../src/api/servicemanagement/v1/resources.rs | 3116 -- .../servicemanagement/v1/servicemanager.rs | 5524 ---- .../v1/servicemanager_grpc.rs | 461 - .../googleapis-raw/src/api/source_info.rs | 235 - .../src/api/system_parameter.rs | 756 - .../googleapis-raw/src/api/usage.rs | 619 - .../admin/cluster/v1/bigtable_cluster_data.rs | 817 - .../cluster/v1/bigtable_cluster_service.rs | 206 - .../v1/bigtable_cluster_service_grpc.rs | 237 - .../v1/bigtable_cluster_service_messages.rs | 2637 -- .../admin/table/v1/bigtable_table_data.rs | 1526 - .../admin/table/v1/bigtable_table_service.rs | 148 - .../table/v1/bigtable_table_service_grpc.rs | 293 - .../v1/bigtable_table_service_messages.rs | 2039 -- .../admin/v2/bigtable_instance_admin.rs | 5783 ---- .../admin/v2/bigtable_instance_admin_grpc.rs | 573 - .../bigtable/admin/v2/bigtable_table_admin.rs | 8598 ----- .../admin/v2/bigtable_table_admin_grpc.rs | 657 - .../src/bigtable/admin/v2/common.rs | 416 - .../src/bigtable/admin/v2/instance.rs | 2062 -- .../src/bigtable/admin/v2/table.rs | 4158 --- .../src/bigtable/v1/bigtable_data.rs | 6599 ---- .../src/bigtable/v1/bigtable_service.rs | 134 - .../src/bigtable/v1/bigtable_service_grpc.rs | 193 - .../bigtable/v1/bigtable_service_messages.rs | 3319 -- .../src/bigtable/v2/bigtable.rs | 4381 --- .../src/bigtable/v2/bigtable_grpc.rs | 185 - .../googleapis-raw/src/bigtable/v2/data.rs | 6840 ---- .../googleapis-raw/src/empty.rs | 6 +- .../googleapis-raw/src/iam/v1/iam_policy.rs | 6 +- .../src/iam/v1/iam_policy_grpc.rs | 12 +- .../googleapis-raw/src/iam/v1/options.rs | 6 +- .../googleapis-raw/src/iam/v1/policy.rs | 6 +- .../googleapis-raw/src/lib.rs | 2 +- .../src/longrunning/operations.rs | 607 +- .../src/longrunning/operations_grpc.rs | 20 +- .../googleapis-raw/src/pubsub/v1/pubsub.rs | 12023 ------- .../src/pubsub/v1/pubsub_grpc.rs | 757 - .../googleapis-raw/src/pubsub/v1/schema.rs | 2685 -- .../src/pubsub/v1/schema_grpc.rs | 209 - .../src/pubsub/v1beta2/pubsub.rs | 5057 --- .../src/pubsub/v1beta2/pubsub_grpc.rs | 457 - .../googleapis-raw/src/rpc/code.rs | 38 +- .../googleapis-raw/src/rpc/error_details.rs | 762 +- .../googleapis-raw/src/rpc/status.rs | 149 +- .../src/spanner/admin/database/v1/backup.rs | 3925 --- .../src/spanner/admin/database/v1/common.rs | 882 - .../database/v1/spanner_database_admin.rs | 5556 +--- .../v1/spanner_database_admin_grpc.rs | 252 +- .../instance/v1/spanner_instance_admin.rs | 1341 +- .../v1/spanner_instance_admin_grpc.rs | 40 +- .../googleapis-raw/src/spanner/v1/keys.rs | 297 +- .../googleapis-raw/src/spanner/v1/mutation.rs | 244 +- .../src/spanner/v1/query_plan.rs | 307 +- .../src/spanner/v1/result_set.rs | 343 +- .../googleapis-raw/src/spanner/v1/spanner.rs | 2789 +- .../src/spanner/v1/spanner_grpc.rs | 60 +- .../src/spanner/v1/transaction.rs | 448 +- .../googleapis-raw/src/spanner/v1/type_pb.rs | 292 +- .../googleapis-raw/src/storage/v1/storage.rs | 27040 ---------------- .../src/storage/v1/storage_grpc.rs | 1593 - .../src/storage/v1/storage_resources.rs | 12530 ------- .../src/type/calendar_period.rs | 163 - .../googleapis-raw/src/type/color.rs | 490 - .../googleapis-raw/src/type/date.rs | 317 - .../googleapis-raw/src/type/datetime.rs | 893 - .../googleapis-raw/src/type/dayofweek.rs | 152 - .../googleapis-raw/src/type/expr.rs | 398 - .../googleapis-raw/src/type/fraction.rs | 261 - .../googleapis-raw/src/type/interval.rs | 315 - .../googleapis-raw/src/type/latlng.rs | 267 - .../googleapis-raw/src/type/localized_text.rs | 277 - .../googleapis-raw/src/type/money.rs | 316 - .../googleapis-raw/src/type/month.rs | 182 - .../googleapis-raw/src/type/phone_number.rs | 674 - .../googleapis-raw/src/type/postal_address.rs | 776 - .../googleapis-raw/src/type/quaternion.rs | 392 - .../googleapis-raw/src/type/timeofday.rs | 350 - vendor/mozilla-rust-sdk/googleapis/Cargo.toml | 2 +- .../googleapis/src/spanner.rs | 2 +- 118 files changed, 4837 insertions(+), 174972 deletions(-) delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/annotations.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/auth.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/backend.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/billing.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/client.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/config_change.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/consumer.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/context.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/control.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/distribution.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/documentation.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/endpoint.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/error_reason.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/field_behavior.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/http.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/httpbody.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/label.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/launch_stage.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/log.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/logging.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/metric.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitored_resource.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitoring.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/quota.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/resource.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/service.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/check_error.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/distribution.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/http_request.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/operation.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/resources.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/source_info.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/system_parameter.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/usage.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_data.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_data.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_messages.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/common.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/instance.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/table.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_data.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_messages.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/data.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/backup.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/common.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_grpc.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_resources.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/calendar_period.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/color.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/date.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/datetime.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/dayofweek.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/expr.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/fraction.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/interval.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/latlng.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/localized_text.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/money.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/month.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/phone_number.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/postal_address.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/quaternion.rs delete mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/timeofday.rs diff --git a/Cargo.lock b/Cargo.lock index 641b4cb9da..28f241ebe1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -477,6 +477,15 @@ dependencies = [ "cmake", ] +[[package]] +name = "boringssl-src" +version = "0.3.0+688fc5c" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f901accdf830d2ea2f4e27f923a5e1125cd8b1a39ab578b9db1a42d578a6922b" +dependencies = [ + "cmake", +] + [[package]] name = "brotli-sys" version = "0.3.2" @@ -1187,7 +1196,7 @@ name = "googleapis-raw" version = "0.1.0" dependencies = [ "futures 0.3.13", - "grpcio", + "grpcio 0.9.0", "protobuf", ] @@ -1198,7 +1207,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "397c5a9f569ba6beabec1e5b0b622d5e182913de45480666ae76849dd7ac01c9" dependencies = [ "futures 0.3.13", - "grpcio-sys", + "grpcio-sys 0.8.1", + "libc", + "log", + "parking_lot", + "protobuf", +] + +[[package]] +name = "grpcio" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a1b8dd4e79b81ccfd5b9282dfc6d3d4e97568291c383c1bc98756a0f21e39d9" +dependencies = [ + "futures 0.3.13", + "grpcio-sys 0.9.0+1.38.0", "libc", "log", "parking_lot", @@ -1212,7 +1235,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f89a56d830be4dddc939c377c95e3b77e30c86a8df99c20095c34cf9038447b" dependencies = [ "bindgen", - "boringssl-src", + "boringssl-src 0.2.0", + "cc", + "cmake", + "libc", + "libz-sys", + "pkg-config", + "walkdir", +] + +[[package]] +name = "grpcio-sys" +version = "0.9.0+1.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cdbbb3010823156c3153b75db391c0f47beeec57353a33dfa38126b265cc1d5" +dependencies = [ + "bindgen", + "boringssl-src 0.3.0+688fc5c", "cc", "cmake", "libc", @@ -1614,9 +1653,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655" +checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66" dependencies = [ "cc", "libc", @@ -2120,9 +2159,9 @@ dependencies = [ [[package]] name = "protobuf" -version = "2.22.0" +version = "2.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73f72884896d22e0da0e5b266cb9a780b791f6c3b2f5beab6368d6cd4f0dbb86" +checksum = "45604fc7a88158e7d514d8e22e14ac746081e7a70d7690074dd0029ee37458d6" [[package]] name = "pyo3" @@ -2952,7 +2991,7 @@ dependencies = [ "failure", "futures 0.3.13", "googleapis-raw", - "grpcio", + "grpcio 0.8.2", "hawk", "hex", "hkdf", diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/Cargo.toml b/vendor/mozilla-rust-sdk/googleapis-raw/Cargo.toml index 565f32ee18..c31992222e 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/Cargo.toml +++ b/vendor/mozilla-rust-sdk/googleapis-raw/Cargo.toml @@ -20,8 +20,8 @@ edition = "2018" [dependencies] futures = "0.3.5" -grpcio = "0.8.0" -protobuf = "2.16.2" +grpcio = "0.9.0" +protobuf = "2.23.0" [dev-dependencies] slog = "2.5" diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/annotations.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/annotations.rs deleted file mode 100644 index 96ccbd12f5..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/annotations.rs +++ /dev/null @@ -1,74 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/annotations.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_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 }; -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/htt\ - p.proto\x1a\x20google/protobuf/descriptor.proto:K\n\x04http\x18\xb0\xca\ - \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\xbc\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\x0b\n\x03\x07\0\x04\x12\x04\x1d\x02\x1b&\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/auth.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/auth.rs deleted file mode 100644 index 5077646b17..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/auth.rs +++ /dev/null @@ -1,1850 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/auth.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Authentication { - // message fields - pub rules: ::protobuf::RepeatedField, - pub providers: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Authentication { - fn default() -> &'a Authentication { - ::default_instance() - } -} - -impl Authentication { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.providers)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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; - }; - for value in &self.providers { - 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(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Authentication { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Authentication::new) - } -} - -impl ::protobuf::Clear for Authentication { - fn clear(&mut self) { - self.rules.clear(); - self.providers.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AuthenticationRule { - // message fields - pub selector: ::std::string::String, - pub oauth: ::protobuf::SingularPtrField, - pub allow_without_credential: bool, - pub requirements: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AuthenticationRule { - fn default() -> &'a AuthenticationRule { - ::default_instance() - } -} - -impl AuthenticationRule { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, 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; - }, - 7 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.requirements)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.oauth.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.allow_without_credential != false { - my_size += 2; - } - for value in &self.requirements { - 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(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 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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), -} - -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 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()?)); - }, - 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); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_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) - } -} - -impl ::protobuf::Clear for JwtLocation { - fn clear(&mut self) { - self.field_in = ::std::option::Option::None; - self.field_in = ::std::option::Option::None; - self.value_prefix.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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 { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AuthProvider { - // message fields - pub id: ::std::string::String, - pub issuer: ::std::string::String, - pub jwks_uri: ::std::string::String, - pub audiences: ::std::string::String, - pub authorization_url: ::std::string::String, - pub jwt_locations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AuthProvider { - fn default() -> &'a AuthProvider { - ::default_instance() - } -} - -impl AuthProvider { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.issuer)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.jwks_uri)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.audiences)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.authorization_url)?; - }, - 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())?; - }, - }; - } - ::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.issuer.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.issuer); - } - if !self.jwks_uri.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.jwks_uri); - } - if !self.audiences.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.audiences); - } - 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 - } - - 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.issuer.is_empty() { - os.write_string(2, &self.issuer)?; - } - if !self.jwks_uri.is_empty() { - os.write_string(3, &self.jwks_uri)?; - } - if !self.audiences.is_empty() { - os.write_string(4, &self.audiences)?; - } - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OAuthRequirements { - // message fields - pub canonical_scopes: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OAuthRequirements { - fn default() -> &'a OAuthRequirements { - ::default_instance() - } -} - -impl OAuthRequirements { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.canonical_scopes.is_empty() { - os.write_string(1, &self.canonical_scopes)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static OAuthRequirements { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OAuthRequirements::new) - } -} - -impl ::protobuf::Clear for OAuthRequirements { - fn clear(&mut self) { - self.canonical_scopes.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AuthRequirement { - // message fields - pub provider_id: ::std::string::String, - pub audiences: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AuthRequirement { - fn default() -> &'a AuthRequirement { - ::default_instance() - } -} - -impl AuthRequirement { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.audiences)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.provider_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.provider_id); - } - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static AuthRequirement { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AuthRequirement::new) - } -} - -impl ::protobuf::Clear for AuthRequirement { - fn clear(&mut self) { - self.provider_id.clear(); - self.audiences.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x15google/api/auth.proto\x12\ngoogle.api\"~\n\x0eAuthentication\x124\ - \n\x05rules\x18\x03\x20\x03(\x0b2\x1e.google.api.AuthenticationRuleR\x05\ - rules\x126\n\tproviders\x18\x04\x20\x03(\x0b2\x18.google.api.AuthProvide\ - rR\tproviders\"\xe0\x01\n\x12AuthenticationRule\x12\x1a\n\x08selector\ - \x18\x01\x20\x01(\tR\x08selector\x123\n\x05oauth\x18\x02\x20\x01(\x0b2\ - \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\"h\n\x0bJwtLocation\x12\x18\n\x06header\x18\x01\x20\x01(\tH\0R\x06he\ - ader\x12\x16\n\x05query\x18\x02\x20\x01(\tH\0R\x05query\x12!\n\x0cvalue_\ - prefix\x18\x03\x20\x01(\tR\x0bvaluePrefixB\x04\n\x02in\"\xda\x01\n\x0cAu\ - thProvider\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\ - \x07jwksUri\x12\x1c\n\taudiences\x18\x04\x20\x01(\tR\taudiences\x12+\n\ - \x11authorization_url\x18\x05\x20\x01(\tR\x10authorizationUrl\x12<\n\rjw\ - t_locations\x18\x06\x20\x03(\x0b2\x17.google.api.JwtLocationR\x0cjwtLoca\ - tions\">\n\x11OAuthRequirements\x12)\n\x10canonical_scopes\x18\x01\x20\ - \x01(\tR\x0fcanonicalScopes\"P\n\x0fAuthRequirement\x12\x1f\n\x0bprovide\ - r_id\x18\x01\x20\x01(\tR\nproviderId\x12\x1c\n\taudiences\x18\x02\x20\ - \x01(\tR\taudiencesBk\n\x0ecom.google.apiB\tAuthProtoP\x01ZEgoogle.golan\ - g.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAP\ - IJ\xa7F\n\x07\x12\x05\x0e\0\xe3\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\"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\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\ - \xc8\x03\n\x02\x04\0\x12\x04&\0.\x01\x1a\xbb\x03\x20`Authentication`\x20\ - defines\x20the\x20authentication\x20configuration\x20for\x20an\x20API.\n\ - \n\x20Example\x20for\x20an\x20API\x20targeted\x20for\x20external\x20use:\ - \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/oauth2/v\ - 1/certs\n\x20\x20\x20\x20\x20\x20\x20\x20\x20issuer:\x20https://secureto\ - ken.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\x20req\ - uirements:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20provider_id:\x20\ - google_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\x20authent\ - ication\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\x03-\x02&\x1aD\x20Defines\x20a\x20set\x20of\x20au\ - thentication\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\x049\0H\x01\ - \x1a\xe0\x02\x20Authentication\x20rules\x20for\x20the\x20service.\n\n\ - \x20By\x20default,\x20if\x20a\x20method\x20has\x20any\x20authentication\ - \x20requirements,\x20every\x20request\n\x20must\x20include\x20a\x20valid\ - \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\x039\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\r\n\x05\x04\x01\x02\0\x04\x12\x04=\x029\x1c\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\x03@\x02\x1e\x1a)\x20The\x20requirements\x20for\ - \x20OAuth\x20credentials.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04@\x02=\ - \x16\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03@\x02\x13\n\x0c\n\x05\x04\ - \x01\x02\x01\x01\x12\x03@\x14\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\ - \x03@\x1c\x1d\n\x85\x01\n\x04\x04\x01\x02\x02\x12\x03D\x02$\x1ax\x20If\ - \x20true,\x20the\x20service\x20accepts\x20API\x20keys\x20without\x20any\ - \x20other\x20credential.\n\x20This\x20flag\x20only\x20applies\x20to\x20H\ - TTP\x20and\x20gRPC\x20requests.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04D\ - \x02@\x1e\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\x20additional\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*+\nF\n\x02\x04\x02\x12\x04K\0]\x01\x1a:\x20Spe\ - cifies\x20a\x20location\x20to\x20extract\x20JWT\x20from\x20an\x20API\x20\ - request.\n\n\n\n\x03\x04\x02\x01\x12\x03K\x08\x13\n\x0c\n\x04\x04\x02\ - \x08\0\x12\x04L\x02R\x03\n\x0c\n\x05\x04\x02\x08\0\x01\x12\x03L\x08\n\n?\ - \n\x04\x04\x02\x02\0\x12\x03N\x04\x16\x1a2\x20Specifies\x20HTTP\x20heade\ - r\x20name\x20to\x20extract\x20JWT\x20token.\n\n\x0c\n\x05\x04\x02\x02\0\ - \x05\x12\x03N\x04\n\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03N\x0b\x11\n\x0c\ - \n\x05\x04\x02\x02\0\x03\x12\x03N\x14\x15\nG\n\x04\x04\x02\x02\x01\x12\ - \x03Q\x04\x15\x1a:\x20Specifies\x20URL\x20query\x20parameter\x20name\x20\ - to\x20extract\x20JWT\x20token.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03\ - Q\x04\n\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03Q\x0b\x10\n\x0c\n\x05\x04\ - \x02\x02\x01\x03\x12\x03Q\x13\x14\n\xab\x03\n\x04\x04\x02\x02\x02\x12\ - \x03\\\x02\x1a\x1a\x9d\x03\x20The\x20value\x20prefix.\x20The\x20value\ - \x20format\x20is\x20\"value_prefix{token}\"\n\x20Only\x20applies\x20to\ - \x20\"in\"\x20header\x20type.\x20Must\x20be\x20empty\x20for\x20\"in\"\ - \x20query\x20type.\n\x20If\x20not\x20empty,\x20the\x20header\x20value\ - \x20has\x20to\x20match\x20(case\x20sensitive)\x20this\x20prefix.\n\x20If\ - \x20not\x20matched,\x20JWT\x20will\x20not\x20be\x20extracted.\x20If\x20m\ - atched,\x20JWT\x20will\x20be\n\x20extracted\x20after\x20the\x20prefix\ - \x20is\x20removed.\n\n\x20For\x20example,\x20for\x20\"Authorization:\x20\ - Bearer\x20{JWT}\",\n\x20value_prefix=\"Bearer\x20\"\x20with\x20a\x20spac\ - e\x20at\x20the\x20end.\n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04\\\x02R\ - \x03\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\x15\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\ - \\\x18\x19\n\xad\x01\n\x02\x04\x03\x12\x05b\0\xa8\x01\x01\x1a\x9f\x01\ - \x20Configuration\x20for\x20an\x20authentication\x20provider,\x20includi\ - ng\x20support\x20for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)](https://tool\ - s.ietf.org/html/draft-ietf-oauth-json-web-token-32).\n\n\n\n\x03\x04\x03\ - \x01\x12\x03b\x08\x14\n\x92\x01\n\x04\x04\x03\x02\0\x12\x03g\x02\x10\x1a\ - \x84\x01\x20The\x20unique\x20identifier\x20of\x20the\x20auth\x20provider\ - .\x20It\x20will\x20be\x20referred\x20to\x20by\n\x20`AuthRequirement.prov\ - ider_id`.\n\n\x20Example:\x20\"bookstore_auth\".\n\n\r\n\x05\x04\x03\x02\ - \0\x04\x12\x04g\x02b\x16\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03g\x02\x08\ - \n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03g\t\x0b\n\x0c\n\x05\x04\x03\x02\0\ - \x03\x12\x03g\x0e\x0f\n\x95\x02\n\x04\x04\x03\x02\x01\x12\x03o\x02\x14\ - \x1a\x87\x02\x20Identifies\x20the\x20principal\x20that\x20issued\x20the\ - \x20JWT.\x20See\n\x20https://tools.ietf.org/html/draft-ietf-oauth-json-w\ - eb-token-32#section-4.1.1\n\x20Usually\x20a\x20URL\x20or\x20an\x20email\ - \x20address.\n\n\x20Example:\x20https://securetoken.google.com\n\x20Exam\ - ple:\x201234567-compute@developer.gserviceaccount.com\n\n\r\n\x05\x04\ - \x03\x02\x01\x04\x12\x04o\x02g\x10\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\x0f\n\x0c\n\x05\ - \x04\x03\x02\x01\x03\x12\x03o\x12\x13\n\xf5\x03\n\x04\x04\x03\x02\x02\ - \x12\x03}\x02\x16\x1a\xe7\x03\x20URL\x20of\x20the\x20provider's\x20publi\ - c\x20key\x20set\x20to\x20validate\x20signature\x20of\x20the\x20JWT.\x20S\ - ee\n\x20[OpenID\n\x20Discovery](https://openid.net/specs/openid-connect-\ - discovery-1_0.html#ProviderMetadata).\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\x20inferred\x20from\x20the\x20email\x20domain\ - \x20of\x20the\x20issuer\x20(e.g.\x20a\x20Google\n\x20\x20service\x20acco\ - unt).\n\n\x20Example:\x20https://www.googleapis.com/oauth2/v1/certs\n\n\ - \r\n\x05\x04\x03\x02\x02\x04\x12\x04}\x02o\x14\n\x0c\n\x05\x04\x03\x02\ - \x02\x05\x12\x03}\x02\x08\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\x03}\t\x11\ - \n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03}\x14\x15\n\xee\x05\n\x04\x04\ - \x03\x02\x03\x12\x04\x90\x01\x02\x17\x1a\xdf\x05\x20The\x20list\x20of\ - \x20JWT\n\x20[audiences](https://tools.ietf.org/html/draft-ietf-oauth-js\ - on-web-token-32#section-4.1.3).\n\x20that\x20are\x20allowed\x20to\x20acc\ - ess.\x20A\x20JWT\x20containing\x20any\x20of\x20these\x20audiences\x20wil\ - l\n\x20be\x20accepted.\x20When\x20this\x20setting\x20is\x20absent,\x20JW\ - Ts\x20with\x20audiences:\n\x20\x20\x20-\x20\"https://[service.name]/[goo\ - gle.protobuf.Api.name]\"\n\x20\x20\x20-\x20\"https://[service.name]/\"\n\ - \x20will\x20be\x20accepted.\n\x20For\x20example,\x20if\x20no\x20audience\ - s\x20are\x20in\x20the\x20setting,\x20LibraryService\x20API\x20will\n\x20\ - accept\x20JWTs\x20with\x20the\x20following\x20audiences:\n\x20\x20\x20-\ - \n\x20\x20\x20https://library-example.googleapis.com/google.example.libr\ - ary.v1.LibraryService\n\x20\x20\x20-\x20https://library-example.googleap\ - is.com/\n\n\x20Example:\n\n\x20\x20\x20\x20\x20audiences:\x20bookstore_a\ - ndroid.apps.googleusercontent.com,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20bookstore_web.apps.googleusercontent.com\n\n\ - \x0e\n\x05\x04\x03\x02\x03\x04\x12\x05\x90\x01\x02}\x16\n\r\n\x05\x04\ - \x03\x02\x03\x05\x12\x04\x90\x01\x02\x08\n\r\n\x05\x04\x03\x02\x03\x01\ - \x12\x04\x90\x01\t\x12\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\x90\x01\x15\ - \x16\n\x99\x01\n\x04\x04\x03\x02\x04\x12\x04\x94\x01\x02\x1f\x1a\x8a\x01\ - \x20Redirect\x20URL\x20if\x20JWT\x20token\x20is\x20required\x20but\x20no\ - t\x20present\x20or\x20is\x20expired.\n\x20Implement\x20authorizationUrl\ - \x20of\x20securityDefinitions\x20in\x20OpenAPI\x20spec.\n\n\x0f\n\x05\ - \x04\x03\x02\x04\x04\x12\x06\x94\x01\x02\x90\x01\x17\n\r\n\x05\x04\x03\ - \x02\x04\x05\x12\x04\x94\x01\x02\x08\n\r\n\x05\x04\x03\x02\x04\x01\x12\ - \x04\x94\x01\t\x1a\n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\x94\x01\x1d\x1e\ - \n\xd8\x04\n\x04\x04\x03\x02\x05\x12\x04\xa7\x01\x02)\x1a\xc9\x04\x20Def\ - ines\x20the\x20locations\x20to\x20extract\x20the\x20JWT.\n\n\x20JWT\x20l\ - ocations\x20can\x20be\x20either\x20from\x20HTTP\x20headers\x20or\x20URL\ - \x20query\x20parameters.\n\x20The\x20rule\x20is\x20that\x20the\x20first\ - \x20match\x20wins.\x20The\x20checking\x20order\x20is:\x20checking\n\x20a\ - ll\x20headers\x20first,\x20then\x20URL\x20query\x20parameters.\n\n\x20If\ - \x20not\x20specified,\x20\x20default\x20to\x20use\x20following\x203\x20l\ - ocations:\n\x20\x20\x20\x201)\x20Authorization:\x20Bearer\n\x20\x20\x20\ - \x202)\x20x-goog-iap-jwt-assertion\n\x20\x20\x20\x203)\x20access_token\ - \x20query\x20parameter\n\n\x20Default\x20locations\x20can\x20be\x20speci\ - fied\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-asser\ - tion\n\x20\x20\x20\x20-\x20query:\x20access_token\n\n\r\n\x05\x04\x03\ - \x02\x05\x04\x12\x04\xa7\x01\x02\n\n\r\n\x05\x04\x03\x02\x05\x06\x12\x04\ - \xa7\x01\x0b\x16\n\r\n\x05\x04\x03\x02\x05\x01\x12\x04\xa7\x01\x17$\n\r\ - \n\x05\x04\x03\x02\x05\x03\x12\x04\xa7\x01'(\n\xe7\x07\n\x02\x04\x04\x12\ - \x06\xbc\x01\0\xc5\x01\x01\x1a\xd8\x07\x20OAuth\x20scopes\x20are\x20a\ - \x20way\x20to\x20define\x20data\x20and\x20permissions\x20on\x20data.\x20\ - For\x20example,\n\x20there\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\x20application,\n\x20giving\x20it\x20permission\x20to\x20a\ - ccess\x20that\x20data\x20on\x20their\x20behalf.\n\n\x20OAuth\x20scope\ - \x20specifications\x20should\x20be\x20fairly\x20coarse\x20grained;\x20a\ - \x20user\x20will\x20need\n\x20to\x20see\x20and\x20understand\x20the\x20t\ - ext\x20description\x20of\x20what\x20your\x20scope\x20means.\n\n\x20In\ - \x20most\x20cases:\x20use\x20one\x20or\x20at\x20most\x20two\x20OAuth\x20\ - scopes\x20for\x20an\x20entire\x20family\x20of\n\x20products.\x20If\x20yo\ - ur\x20product\x20has\x20multiple\x20APIs,\x20you\x20should\x20probably\ - \x20be\x20sharing\n\x20the\x20OAuth\x20scope\x20across\x20all\x20of\x20t\ - hose\x20APIs.\n\n\x20When\x20you\x20need\x20finer\x20grained\x20OAuth\ - \x20consent\x20screens:\x20talk\x20with\x20your\x20product\n\x20manageme\ - nt\x20about\x20how\x20developers\x20will\x20use\x20them\x20in\x20practic\ - e.\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\x20req\ - uest\x20can\x20still\x20fail\n\x20due\x20to\x20the\x20backend\x20requiri\ - ng\x20additional\x20scopes\x20or\x20permissions.\n\n\x0b\n\x03\x04\x04\ - \x01\x12\x04\xbc\x01\x08\x19\n\xab\x02\n\x04\x04\x04\x02\0\x12\x04\xc4\ - \x01\x02\x1e\x1a\x9c\x02\x20The\x20list\x20of\x20publicly\x20documented\ - \x20OAuth\x20scopes\x20that\x20are\x20allowed\x20access.\x20An\n\x20OAut\ - h\x20token\x20containing\x20any\x20of\x20these\x20scopes\x20will\x20be\ - \x20accepted.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20\x20canonical_scope\ - s:\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\x0f\n\x05\x04\x04\ - \x02\0\x04\x12\x06\xc4\x01\x02\xbc\x01\x1b\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\ - \x19\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xc4\x01\x1c\x1d\n\xaa\x01\n\x02\ - \x04\x05\x12\x06\xca\x01\0\xe3\x01\x01\x1a\x9b\x01\x20User-defined\x20au\ - thentication\x20requirements,\x20including\x20support\x20for\n\x20[JSON\ - \x20Web\x20Token\n\x20(JWT)](https://tools.ietf.org/html/draft-ietf-oaut\ - h-json-web-token-32).\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xca\x01\x08\x17\ - \n{\n\x04\x04\x05\x02\0\x12\x04\xd0\x01\x02\x19\x1am\x20[id][google.api.\ - AuthProvider.id]\x20from\x20authentication\x20provider.\n\n\x20Example:\ - \n\n\x20\x20\x20\x20\x20provider_id:\x20bookstore_auth\n\n\x0f\n\x05\x04\ - \x05\x02\0\x04\x12\x06\xd0\x01\x02\xca\x01\x19\n\r\n\x05\x04\x05\x02\0\ - \x05\x12\x04\xd0\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xd0\x01\ - \t\x14\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xd0\x01\x17\x18\n\xc0\x06\n\ - \x04\x04\x05\x02\x01\x12\x04\xe2\x01\x02\x17\x1a\xb1\x06\x20NOTE:\x20Thi\ - s\x20will\x20be\x20deprecated\x20soon,\x20once\x20AuthProvider.audiences\ - \x20is\n\x20implemented\x20and\x20accepted\x20in\x20all\x20the\x20runtim\ - e\x20components.\n\n\x20The\x20list\x20of\x20JWT\n\x20[audiences](https:\ - //tools.ietf.org/html/draft-ietf-oauth-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,\x20only\x20JWTs\x20with\x20audience\ - \n\x20\"https://[Service_name][google.api.Service.name]/[API_name][googl\ - e.protobuf.Api.name]\"\n\x20will\x20be\x20accepted.\x20For\x20example,\ - \x20if\x20no\x20audiences\x20are\x20in\x20the\x20setting,\n\x20LibrarySe\ - rvice\x20API\x20will\x20only\x20accept\x20JWTs\x20with\x20the\x20followi\ - ng\x20audience\n\x20\"https://library-example.googleapis.com/google.exam\ - ple.library.v1.LibraryService\".\n\n\x20Example:\n\n\x20\x20\x20\x20\x20\ - audiences:\x20bookstore_android.apps.googleusercontent.com,\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bookstore_web.ap\ - ps.googleusercontent.com\n\n\x0f\n\x05\x04\x05\x02\x01\x04\x12\x06\xe2\ - \x01\x02\xd0\x01\x19\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\xe2\x01\x02\ - \x08\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xe2\x01\t\x12\n\r\n\x05\x04\ - \x05\x02\x01\x03\x12\x04\xe2\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/backend.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/backend.rs deleted file mode 100644 index 2e0729dde9..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/backend.rs +++ /dev/null @@ -1,952 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/backend.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Backend { - // 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 Backend { - fn default() -> &'a Backend { - ::default_instance() - } -} - -impl Backend { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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() -> 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 default_instance() -> &'static Backend { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Backend::new) - } -} - -impl ::protobuf::Clear for Backend { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BackendRule { - // message fields - pub selector: ::std::string::String, - pub address: ::std::string::String, - pub deadline: f64, - pub min_deadline: f64, - pub operation_deadline: f64, - pub path_translation: BackendRule_PathTranslation, - pub protocol: ::std::string::String, - // message oneof groups - pub authentication: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BackendRule { - fn default() -> &'a BackendRule { - ::default_instance() - } -} - -#[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 { - match self.authentication { - ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(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, - _ => 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)) - } - - // 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 { - } else { - self.authentication = ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(::std::string::String::new())); - } - match self.authentication { - ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // 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()) - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.path_translation, 6, &mut self.unknown_fields)? - }, - 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()?)); - }, - 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()?)); - }, - 9 => { - ::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.selector.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.selector); - } - if !self.address.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.address); - } - if self.deadline != 0. { - my_size += 9; - } - if self.min_deadline != 0. { - my_size += 9; - } - 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); - } - if !self.protocol.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.protocol); - } - if let ::std::option::Option::Some(ref v) = self.authentication { - match v { - &BackendRule_oneof_authentication::jwt_audience(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 - } - - 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.address.is_empty() { - os.write_string(2, &self.address)?; - } - if self.deadline != 0. { - os.write_double(3, self.deadline)?; - } - if self.min_deadline != 0. { - os.write_double(4, self.min_deadline)?; - } - 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 let ::std::option::Option::Some(ref v) = self.authentication { - match v { - &BackendRule_oneof_authentication::jwt_audience(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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 }, - )); - ::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.authentication = ::std::option::Option::None; - self.authentication = ::std::option::Option::None; - self.protocol.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum BackendRule_PathTranslation { - PATH_TRANSLATION_UNSPECIFIED = 0, - CONSTANT_ADDRESS = 1, - APPEND_PATH_TO_ADDRESS = 2, -} - -impl ::protobuf::ProtobufEnum for BackendRule_PathTranslation { - fn value(&self) -> i32 { - *self as i32 - } - - 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 - } - } - - 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 - } - - 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()) - }) - } -} - -impl ::std::marker::Copy for BackendRule_PathTranslation { -} - -impl ::std::default::Default for BackendRule_PathTranslation { - fn default() -> Self { - BackendRule_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)) - } -} - -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\"\ - \xe4\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\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\x12#\ - \n\x0cdisable_auth\x18\x08\x20\x01(\x08H\0R\x0bdisableAuth\x12\x1a\n\x08\ - protocol\x18\t\x20\x01(\tR\x08protocol\"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\x0eauthenticatio\ - nBn\n\x0ecom.google.apiB\x0cBackendProtoP\x01ZEgoogle.golang.org/genprot\ - o/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xa04\n\x07\ - \x12\x05\x0e\0\xb5\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202020\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\"\nH\n\x02\x04\0\ - \x12\x04\x19\0\x1e\x01\x1a<\x20`Backend`\x20defines\x20the\x20backend\ - \x20configuration\x20for\x20a\x20service.\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\x20rules\x20that\x20apply\x20to\ - \x20individual\x20API\x20methods.\n\n\x20**NOTE:**\x20All\x20service\x20\ - configuration\x20rules\x20follow\x20\"last\x20one\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\xb5\x01\x01\x1aF\x20A\x20backend\x20rule\x20provides\x20configur\ - ation\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)\x02Y\x03\ - \x1a\xbe\x02\x20Path\x20Translation\x20specifies\x20how\x20to\x20combine\ - \x20the\x20backend\x20address\x20with\x20the\n\x20request\x20path\x20in\ - \x20order\x20to\x20produce\x20the\x20appropriate\x20forwarding\x20URL\ - \x20for\x20the\n\x20request.\n\n\x20Path\x20Translation\x20is\x20applica\ - ble\x20only\x20to\x20HTTP-based\x20backends.\x20Backends\x20which\n\x20d\ - o\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\x20address\x20as-is,\x20with\ - \x20no\x20modification\x20to\x20the\x20path.\x20If\x20the\n\x20URL\x20pa\ - ttern\x20contains\x20variables,\x20the\x20variable\x20names\x20and\x20va\ - lues\x20will\x20be\n\x20appended\x20to\x20the\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\x20query\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/ap\ - i/company/{cid}/user/{uid}\n\x20\x20\x20\x20\x20Backend\x20address:\x20\ - \x20\x20\x20https://example.cloudfunctions.net/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/user/johndoe\n\x20\x20\ - \x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://example.cloudfuncti\ - ons.net/getUser?cid=widgetworks&uid=johndoe\n\n\x20\x20\x20\x20\x20Reque\ - st\x20path:\x20/api/company/widgetworks/user/johndoe?timezone=EST\n\x20\ - \x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://example.cloudfu\ - nctions.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\x20path\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/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?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\x03X\x04\x1a\n\ - \x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03X\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\r\n\x05\x04\x01\x02\0\x04\x12\x04^\x02Y\x03\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\x03t\x02\x15\x1a\x8b\x05\x20The\x20address\x20of\x20the\x20\ - API\x20backend.\n\n\x20The\x20scheme\x20is\x20used\x20to\x20determine\ - \x20the\x20backend\x20protocol\x20and\x20security.\n\x20The\x20following\ - \x20schemes\x20are\x20accepted:\n\n\x20\x20\x20\x20SCHEME\x20\x20\x20\ - \x20\x20\x20\x20\x20PROTOCOL\x20\x20\x20\x20SECURITY\n\x20\x20\x20\x20ht\ - tp://\x20\x20\x20\x20\x20\x20\x20HTTP\x20\x20\x20\x20\x20\x20\x20\x20Non\ - e\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\x20\ - gRPC\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.\x20\ - Leaving\x20out\x20the\x20scheme\n\x20may\x20cause\x20constrasting\x20beh\ - aviors\x20across\x20platforms.\n\n\x20If\x20the\x20port\x20is\x20unspeci\ - fied,\x20the\x20default\x20is:\n\x20-\x2080\x20for\x20schemes\x20without\ - \x20TLS\n\x20-\x20443\x20for\x20schemes\x20with\x20TLS\n\n\x20For\x20HTT\ - P\x20backends,\x20use\x20[protocol][google.api.BackendRule.protocol]\n\ - \x20to\x20specify\x20the\x20protocol\x20version.\n\n\r\n\x05\x04\x01\x02\ - \x01\x04\x12\x04t\x02^\x16\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03t\x02\ - \x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03t\t\x10\n\x0c\n\x05\x04\x01\ - \x02\x01\x03\x12\x03t\x13\x14\n\x9a\x01\n\x04\x04\x01\x02\x02\x12\x03x\ - \x02\x16\x1a\x8c\x01\x20The\x20number\x20of\x20seconds\x20to\x20wait\x20\ - for\x20a\x20response\x20from\x20a\x20request.\x20The\x20default\n\x20var\ - ies\x20based\x20on\x20the\x20request\x20protocol\x20and\x20deployment\ - \x20environment.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04x\x02t\x15\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\x11\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03x\x14\x15\n\ - \x81\x01\n\x04\x04\x01\x02\x03\x12\x03|\x02\x1a\x1at\x20Minimum\x20deadl\ - ine\x20in\x20seconds\x20needed\x20for\x20this\x20method.\x20Calls\x20hav\ - ing\x20deadline\n\x20value\x20lower\x20than\x20this\x20will\x20be\x20rej\ - ected.\n\n\r\n\x05\x04\x01\x02\x03\x04\x12\x04|\x02x\x16\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\nz\n\x04\ - \x04\x01\x02\x04\x12\x04\x80\x01\x02\x20\x1al\x20The\x20number\x20of\x20\ - seconds\x20to\x20wait\x20for\x20the\x20completion\x20of\x20a\x20long\x20\ - running\n\x20operation.\x20The\x20default\x20is\x20no\x20deadline.\n\n\ - \x0e\n\x05\x04\x01\x02\x04\x04\x12\x05\x80\x01\x02|\x1a\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\x0f\n\x05\x04\ - \x01\x02\x05\x04\x12\x06\x82\x01\x02\x80\x01\x20\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\x20Auth\ - entication\x20settings\x20used\x20by\x20the\x20backend.\n\n\x20These\x20\ - are\x20typically\x20used\x20to\x20provide\x20service\x20management\x20fu\ - nctionality\x20to\n\x20a\x20backend\x20served\x20on\x20a\x20publicly-rou\ - table\x20URL.\x20The\x20`authentication`\n\x20details\x20should\x20match\ - \x20the\x20authentication\x20behavior\x20used\x20by\x20the\x20backend.\n\ - \n\x20For\x20example,\x20specifying\x20`jwt_audience`\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`disable_auth`\x20set\x20to\ - \x20`true`.\n\n\x20Refer\x20to\x20https://developers.google.com/identity\ - /protocols/OpenIDConnect\x20for\n\x20JWT\x20ID\x20token.\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\x20\ - used\x20when\x20generating\x20a\x20JWT\x20ID\x20token\x20for\x20the\x20b\ - ackend.\n\x20This\x20ID\x20token\x20will\x20be\x20added\x20in\x20the\x20\ - HTTP\x20\"authorization\"\x20header,\x20and\x20sent\n\x20to\x20the\x20ba\ - ckend.\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\x20is\x20true,\x20a\x20\ - JWT\x20ID\x20token\x20won't\x20be\x20generated\x20and\x20the\n\x20origin\ - al\x20\"Authorization\"\x20HTTP\x20header\x20will\x20be\x20preserved.\ - \x20If\x20the\x20header\x20is\n\x20used\x20to\x20carry\x20the\x20origina\ - l\x20token\x20and\x20is\x20expected\x20by\x20the\x20backend,\x20this\n\ - \x20field\x20must\x20be\x20set\x20to\x20true\x20to\x20preserve\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\x20sendin\ - g\x20a\x20request\x20to\x20the\x20backend.\n\x20The\x20supported\x20valu\ - es\x20are\x20\"http/1.1\"\x20and\x20\"h2\".\n\n\x20The\x20default\x20val\ - ue\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\x20perfo\ - rmance.\n\n\x20Configuring\x20this\x20field\x20to\x20non-default\x20valu\ - es\x20is\x20only\x20supported\x20for\x20secure\n\x20HTTP\x20backends.\ - \x20This\x20field\x20will\x20be\x20ignored\x20for\x20all\x20other\x20bac\ - kends.\n\n\x20See\n\x20https://www.iana.org/assignments/tls-extensiontyp\ - e-values/tls-extensiontype-values.xhtml#alpn-protocol-ids\n\x20for\x20mo\ - re\x20details\x20on\x20the\x20supported\x20values.\n\n\x0f\n\x05\x04\x01\ - \x02\x08\x04\x12\x06\xb4\x01\x02\x9d\x01\x03\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\x15b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/billing.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/billing.rs deleted file mode 100644 index a5b24b2651..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/billing.rs +++ /dev/null @@ -1,486 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/billing.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Billing { - // message fields - pub consumer_destinations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Billing { - fn default() -> &'a Billing { - ::default_instance() - } -} - -impl Billing { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.consumer_destinations { - 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.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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Billing { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Billing::new) - } -} - -impl ::protobuf::Clear for Billing { - fn clear(&mut self) { - self.consumer_destinations.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[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()) - } - - // repeated string metrics = 2; - - - pub fn get_metrics(&self) -> &[::std::string::String] { - &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<::std::string::String>) { - self.metrics = v; - } - - // 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()) - } -} - -impl ::protobuf::Message for Billing_BillingDestination { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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())?; - }, - }; - } - ::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); - } - 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)?; - } - 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 new() -> Billing_BillingDestination { - Billing_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 default_instance() -> &'static Billing_BillingDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Billing_BillingDestination::new) - } -} - -impl ::protobuf::Clear for Billing_BillingDestination { - fn clear(&mut self) { - self.monitored_resource.clear(); - self.metrics.clear(); - self.unknown_fields.clear(); - } -} - -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 ::protobuf::reflect::ProtobufValue for Billing_BillingDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -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\ - \xc2\x16\n\x06\x12\x04\x0e\0L\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\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\xe7\t\n\x02\x04\0\x12\x04:\0L\x01\x1a\xda\t\x20B\ - illing\x20related\x20configuration\x20of\x20the\x20service.\n\n\x20The\ - \x20following\x20example\x20shows\x20how\x20to\x20configure\x20monitored\ - \x20resources\x20and\x20metrics\n\x20for\x20billing,\x20`consumer_destin\ - ations`\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\x20locati\ - on\x20of\x20the\x20billing\n\x20usage,\x20using\x20different\x20monitore\ - d\x20resources\x20between\x20monitoring\x20and\x20billing\x20is\n\x20rec\ - ommended\x20so\x20they\x20can\x20be\x20evolved\x20independently:\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\x20l\ - abels:\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20cloud.googleapis.com/lo\ - cation\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\x20description:\x20|\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Custom\x20label\x20to\x20d\ - efine\x20the\x20city\x20where\x20the\x20library\x20branch\x20is\x20locat\ - ed\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\x20descr\ - iption:\x20Custom\x20label\x20to\x20define\x20the\x20name\x20of\x20the\ - \x20library\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\x20v\ - alue_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\x20consumer_destinati\ - ons:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource:\x20library.go\ - ogleapis.com/billing_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/\ - borrowed_count\n\n\n\n\x03\x04\0\x01\x12\x03:\x08\x0f\nx\n\x04\x04\0\x03\ - \0\x12\x04=\x02E\x03\x1aj\x20Configuration\x20of\x20a\x20specific\x20bil\ - ling\x20destination\x20(Currently\x20only\x20support\n\x20bill\x20agains\ - t\x20consumer\x20project).\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03=\n\x1c\ - \n\x9a\x01\n\x06\x04\0\x03\0\x02\0\x12\x03@\x04\"\x1a\x8a\x01\x20The\x20\ - monitored\x20resource\x20type.\x20The\x20type\x20must\x20be\x20defined\ - \x20in\n\x20[Service.monitored_resources][google.api.Service.monitored_r\ - esources]\x20section.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04@\x04=\ - \x1e\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\xa2\x01\n\x06\x04\0\x03\0\x02\x01\x12\x03D\x04\x20\x1a\x92\ - \x01\x20Names\x20of\x20the\x20metrics\x20to\x20report\x20to\x20this\x20b\ - illing\x20destination.\n\x20Each\x20name\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\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\x20configuration\ - s\x20for\x20sending\x20metrics\x20to\x20the\x20consumer\x20project.\n\ - \x20There\x20can\x20be\x20multiple\x20consumer\x20destinations\x20per\ - \x20service,\x20each\x20one\x20must\x20have\n\x20a\x20different\x20monit\ - ored\x20resource\x20type.\x20A\x20metric\x20can\x20be\x20used\x20in\x20a\ - t\x20most\n\x20one\x20consumer\x20destination.\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\x03K6\ - 7b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/client.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/client.rs deleted file mode 100644 index 421152d645..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/client.rs +++ /dev/null @@ -1,130 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/client.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_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 default_host: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::protobuf::types::ProtobufTypeString> = ::protobuf::ext::ExtFieldOptional { field_number: 1049, phantom: ::std::marker::PhantomData }; - - pub const oauth_scopes: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::protobuf::types::ProtobufTypeString> = ::protobuf::ext::ExtFieldOptional { field_number: 1050, phantom: ::std::marker::PhantomData }; -} - -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\xac\x17\n\x06\x12\x04\x0e\0b\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\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\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\x1a\ - \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\x04A\0b\x01\n\xca\x01\n\x02\x07\x01\x12\x03K\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\x03A\ - \x07%\n\x0b\n\x03\x07\x01\x04\x12\x04K\x02A'\n\n\n\x03\x07\x01\x05\x12\ - \x03K\x02\x08\n\n\n\x03\x07\x01\x01\x12\x03K\t\x15\n\n\n\x03\x07\x01\x03\ - \x12\x03K\x18\x1c\n\xc3\x03\n\x02\x07\x02\x12\x03a\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\x20more\x20than\x20one\x20scope,\x20u\ - se\x20a\x20comma-separated\x20string:\n\n\x20Example:\n\n\x20\x20\x20ser\ - vice\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/a\ - uth/cloud-platform,\"\n\x20\x20\x20\x20\x20\x20\x20\"https://www.googlea\ - pis.com/auth/monitoring\";\n\x20\x20\x20\x20\x20...\n\x20\x20\x20}\n\n\n\ - \n\x03\x07\x02\x02\x12\x03A\x07%\n\x0b\n\x03\x07\x02\x04\x12\x04a\x02K\ - \x1d\n\n\n\x03\x07\x02\x05\x12\x03a\x02\x08\n\n\n\x03\x07\x02\x01\x12\ - \x03a\t\x15\n\n\n\x03\x07\x02\x03\x12\x03a\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/config_change.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/config_change.rs deleted file mode 100644 index 8a7ea2fcde..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/config_change.rs +++ /dev/null @@ -1,675 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/config_change.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ConfigChange { - // message fields - pub element: ::std::string::String, - pub old_value: ::std::string::String, - pub new_value: ::std::string::String, - pub change_type: ChangeType, - pub advices: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ConfigChange { - fn default() -> &'a ConfigChange { - ::default_instance() - } -} - -impl ConfigChange { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.old_value)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.new_value)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.change_type, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.advices)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.element.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.element); - } - if !self.old_value.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.old_value); - } - 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); - } - for value in &self.advices { - 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.element.is_empty() { - os.write_string(1, &self.element)?; - } - if !self.old_value.is_empty() { - os.write_string(2, &self.old_value)?; - } - 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))?; - } - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static ConfigChange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConfigChange::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Advice { - // message fields - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Advice { - fn default() -> &'a Advice { - ::default_instance() - } -} - -impl Advice { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Advice { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Advice::new) - } -} - -impl ::protobuf::Clear for Advice { - fn clear(&mut self) { - self.description.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ChangeType { - CHANGE_TYPE_UNSPECIFIED = 0, - ADDED = 1, - REMOVED = 2, - MODIFIED = 3, -} - -impl ::protobuf::ProtobufEnum for ChangeType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ChangeType::CHANGE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ChangeType::ADDED), - 2 => ::std::option::Option::Some(ChangeType::REMOVED), - 3 => ::std::option::Option::Some(ChangeType::MODIFIED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ChangeType] = &[ - ChangeType::CHANGE_TYPE_UNSPECIFIED, - ChangeType::ADDED, - ChangeType::REMOVED, - ChangeType::MODIFIED, - ]; - 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::("ChangeType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ChangeType { -} - -impl ::std::default::Default for ChangeType { - fn default() -> Self { - ChangeType::CHANGE_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ChangeType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1egoogle/api/config_change.proto\x12\ngoogle.api\"\xc9\x01\n\x0cConf\ - igChange\x12\x18\n\x07element\x18\x01\x20\x01(\tR\x07element\x12\x1b\n\t\ - old_value\x18\x02\x20\x01(\tR\x08oldValue\x12\x1b\n\tnew_value\x18\x03\ - \x20\x01(\tR\x08newValue\x127\n\x0bchange_type\x18\x04\x20\x01(\x0e2\x16\ - .google.api.ChangeTypeR\nchangeType\x12,\n\x07advices\x18\x05\x20\x03(\ - \x0b2\x12.google.api.AdviceR\x07advices\"*\n\x06Advice\x12\x20\n\x0bdesc\ - ription\x18\x02\x20\x01(\tR\x0bdescription*O\n\nChangeType\x12\x1b\n\x17\ - 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\xb0\x19\n\x06\x12\x04\x0e\0S\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\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\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\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\ - \x20selector,\x20name,\x20or\x20id).\x20For\x20maps,\x20the\x20term\n\ - \x20'key'\x20is\x20used.\x20If\x20the\x20field\x20has\x20no\x20unique\ - \x20identifier,\x20the\x20numeric\x20index\n\x20is\x20used.\n\x20Example\ - 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\r\n\x05\x04\0\x02\0\x04\x12\x04(\x02\x1e\x16\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\x20the\x20changed\x20object\ - \x20in\x20the\x20old\x20Service\x20configuration,\n\x20in\x20JSON\x20for\ - mat.\x20This\x20field\x20will\x20not\x20be\x20populated\x20if\x20ChangeT\ - ype\x20==\x20ADDED.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04,\x02(\x15\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\x20\ - the\x20changed\x20object\x20in\x20the\x20new\x20Service\x20configuration\ - ,\n\x20in\x20JSON\x20format.\x20This\x20field\x20will\x20not\x20be\x20po\ - pulated\x20if\x20ChangeType\x20==\x20REMOVED.\n\n\r\n\x05\x04\0\x02\x02\ - \x04\x12\x040\x02,\x17\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\r\n\x05\x04\0\x02\x03\x04\x12\x043\x020\x17\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\x20pr\ - ovided\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\x20change,\x20used\x20f\ - or\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?\x02\x19\x1a\ - u\x20Useful\x20description\x20for\x20why\x20this\x20advice\x20was\x20app\ - lied\x20and\x20what\x20actions\x20should\n\x20be\x20taken\x20to\x20mitig\ - ate\x20any\x20implied\x20risks.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04?\ - \x02<\x10\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\x01\x1aV\x20Classifies\x20set\x20of\x20p\ - ossible\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\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\x20exists\x20in\x20the\x20'new'\x20service\x20conf\ - iguration,\x20but\x20not\n\x20in\x20the\x20'old'\x20service\x20configura\ - tion.\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\x20object\x20exists\x20in\x20the\x20'old'\x20service\ - \x20configuration,\x20but\x20not\n\x20in\x20the\x20'new'\x20service\x20c\ - onfiguration.\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\x20changed\x20object\x20exists\x20in\x20both\x20service\ - \x20configurations,\x20but\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/consumer.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/consumer.rs deleted file mode 100644 index edba332e55..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/consumer.rs +++ /dev/null @@ -1,583 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/consumer.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ProjectProperties { - // message fields - pub properties: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ProjectProperties { - fn default() -> &'a ProjectProperties { - ::default_instance() - } -} - -impl ProjectProperties { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.properties { - 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.properties { - 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() -> 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 default_instance() -> &'static ProjectProperties { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ProjectProperties::new) - } -} - -impl ::protobuf::Clear for ProjectProperties { - fn clear(&mut self) { - self.properties.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Property { - // message fields - pub name: ::std::string::String, - pub field_type: Property_PropertyType, - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Property { - fn default() -> &'a Property { - ::default_instance() - } -} - -impl Property { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.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.field_type != Property_PropertyType::UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.field_type); - } - 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.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.description.is_empty() { - os.write_string(3, &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() -> 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 default_instance() -> &'static Property { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Property::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Property_PropertyType { - UNSPECIFIED = 0, - INT64 = 1, - BOOL = 2, - STRING = 3, - DOUBLE = 4, -} - -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(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 values() -> &'static [Self] { - static values: &'static [Property_PropertyType] = &[ - Property_PropertyType::UNSPECIFIED, - Property_PropertyType::INT64, - Property_PropertyType::BOOL, - Property_PropertyType::STRING, - Property_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 ::std::marker::Copy for Property_PropertyType { -} - -impl ::std::default::Default for Property_PropertyType { - fn default() -> Self { - Property_PropertyType::UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Property_PropertyType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x19google/api/consumer.proto\x12\ngoogle.api\"I\n\x11ProjectPropertie\ - s\x124\n\nproperties\x18\x01\x20\x03(\x0b2\x14.google.api.PropertyR\npro\ - perties\"\xc5\x01\n\x08Property\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ - \x04name\x125\n\x04type\x18\x02\x20\x01(\x0e2!.google.api.Property.Prope\ - rtyTypeR\x04type\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescrip\ - 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\xe9\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\ - \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\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\xbf\x05\ - \n\x02\x04\0\x12\x04'\0*\x01\x1a\xb2\x05\x20A\x20descriptor\x20for\x20de\ - fining\x20project\x20properties\x20for\x20a\x20service.\x20One\x20servic\ - e\x20may\n\x20have\x20many\x20consumer\x20projects,\x20and\x20the\x20ser\ - vice\x20may\x20want\x20to\x20behave\x20differently\n\x20depending\x20on\ - \x20some\x20properties\x20on\x20the\x20project.\x20For\x20example,\x20a\ - \x20project\x20may\x20be\n\x20associated\x20with\x20a\x20school,\x20or\ - \x20a\x20business,\x20or\x20a\x20government\x20agency,\x20a\x20business\ - \n\x20type\x20property\x20on\x20the\x20project\x20may\x20affect\x20how\ - \x20a\x20service\x20responds\x20to\x20the\x20client.\n\x20This\x20descri\ - ptor\x20defines\x20which\x20properties\x20are\x20allowed\x20to\x20be\x20\ - set\x20on\x20a\x20project.\n\n\x20Example:\n\n\x20\x20\x20\x20project_pr\ - operties:\n\x20\x20\x20\x20\x20\x20properties:\n\x20\x20\x20\x20\x20\x20\ - -\x20name:\x20NO_WATERMARK\n\x20\x20\x20\x20\x20\x20\x20\x20type:\x20BOO\ - L\n\x20\x20\x20\x20\x20\x20\x20\x20description:\x20Allows\x20usage\x20of\ - \x20the\x20API\x20without\x20watermarks.\n\x20\x20\x20\x20\x20\x20-\x20n\ - ame:\x20EXTENDED_TILE_CACHE_PERIOD\n\x20\x20\x20\x20\x20\x20\x20\x20type\ - :\x20INT64\n\n\n\n\x03\x04\0\x01\x12\x03'\x08\x19\n@\n\x04\x04\0\x02\0\ - \x12\x03)\x02#\x1a3\x20List\x20of\x20per\x20consumer\x20project-specific\ - \x20properties.\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\x1e\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03)!\"\n\xe1\x03\n\x02\x04\x01\ - \x12\x046\0Q\x01\x1a\xd4\x03\x20Defines\x20project\x20properties.\n\n\ - \x20API\x20services\x20can\x20define\x20properties\x20that\x20can\x20be\ - \x20assigned\x20to\x20consumer\x20projects\n\x20so\x20that\x20backends\ - \x20can\x20perform\x20response\x20customization\x20without\x20having\x20\ - to\x20make\n\x20additional\x20calls\x20or\x20maintain\x20additional\x20s\ - torage.\x20For\x20example,\x20Maps\x20API\n\x20defines\x20properties\x20\ - that\x20controls\x20map\x20tile\x20cache\x20period,\x20or\x20whether\x20\ - to\x20embed\x20a\n\x20watermark\x20in\x20a\x20result.\n\n\x20These\x20va\ - lues\x20can\x20be\x20set\x20via\x20API\x20producer\x20console.\x20Only\ - \x20API\x20providers\x20can\n\x20define\x20and\x20set\x20these\x20proper\ - ties.\n\n\n\n\x03\x04\x01\x01\x12\x036\x08\x10\n:\n\x04\x04\x01\x04\0\ - \x12\x048\x02G\x03\x1a,\x20Supported\x20data\x20type\x20of\x20the\x20pro\ - perty\x20values\n\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x038\x07\x13\nF\n\ - \x06\x04\x01\x04\0\x02\0\x12\x03:\x04\x14\x1a7\x20The\x20type\x20is\x20u\ - nspecified,\x20and\x20will\x20result\x20in\x20an\x20error.\n\n\x0e\n\x07\ - \x04\x01\x04\0\x02\0\x01\x12\x03:\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\ - \0\x02\x12\x03:\x12\x13\n%\n\x06\x04\x01\x04\0\x02\x01\x12\x03=\x04\x0e\ - \x1a\x16\x20The\x20type\x20is\x20`int64`.\n\n\x0e\n\x07\x04\x01\x04\0\ - \x02\x01\x01\x12\x03=\x04\t\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\ - \x03=\x0c\r\n$\n\x06\x04\x01\x04\0\x02\x02\x12\x03@\x04\r\x1a\x15\x20The\ - \x20type\x20is\x20`bool`.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\ - \x03@\x04\x08\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03@\x0b\x0c\n&\ - \n\x06\x04\x01\x04\0\x02\x03\x12\x03C\x04\x0f\x1a\x17\x20The\x20type\x20\ - is\x20`string`.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x03C\x04\n\n\ - \x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03C\r\x0e\n&\n\x06\x04\x01\x04\ - \0\x02\x04\x12\x03F\x04\x0f\x1a\x17\x20The\x20type\x20is\x20'double'.\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\n4\n\x04\x04\x01\x02\0\x12\x03J\ - \x02\x12\x1a'\x20The\x20name\x20of\x20the\x20property\x20(a.k.a\x20key).\ - \n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04J\x02G\x03\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\r\n\x0c\ - \n\x05\x04\x01\x02\0\x03\x12\x03J\x10\x11\n)\n\x04\x04\x01\x02\x01\x12\ - \x03M\x02\x18\x1a\x1c\x20The\x20type\x20of\x20this\x20property.\n\n\r\n\ - \x05\x04\x01\x02\x01\x04\x12\x04M\x02J\x12\n\x0c\n\x05\x04\x01\x02\x01\ - \x06\x12\x03M\x02\x0e\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03M\x0f\x13\n\ - \x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M\x16\x17\n.\n\x04\x04\x01\x02\x02\ - \x12\x03P\x02\x19\x1a!\x20The\x20description\x20of\x20the\x20property\n\ - \n\r\n\x05\x04\x01\x02\x02\x04\x12\x04P\x02M\x18\n\x0c\n\x05\x04\x01\x02\ - \x02\x05\x12\x03P\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/context.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/context.rs deleted file mode 100644 index 4610b057a2..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/context.rs +++ /dev/null @@ -1,617 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/context.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Context { - // 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 Context { - fn default() -> &'a Context { - ::default_instance() - } -} - -impl Context { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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() -> 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 default_instance() -> &'static Context { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Context::new) - } -} - -impl ::protobuf::Clear for Context { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ContextRule { - // message fields - 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>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ContextRule { - fn default() -> &'a ContextRule { - ::default_instance() - } -} - -impl ContextRule { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.requested)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.provided)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_request_extensions)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_response_extensions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - for value in &self.requested { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.provided { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.allowed_request_extensions { - my_size += ::protobuf::rt::string_size(4, &value); - }; - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.selector.is_empty() { - os.write_string(1, &self.selector)?; - } - for v in &self.requested { - os.write_string(2, &v)?; - }; - for v in &self.provided { - os.write_string(3, &v)?; - }; - for v in &self.allowed_request_extensions { - os.write_string(4, &v)?; - }; - for v in &self.allowed_response_extensions { - 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() -> 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(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x18google/api/context.proto\x12\ngoogle.api\"8\n\x07Context\x12-\n\ - \x05rules\x18\x01\x20\x03(\x0b2\x17.google.api.ContextRuleR\x05rules\"\ - \xe1\x01\n\x0bContextRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08s\ - elector\x12\x1c\n\trequested\x18\x02\x20\x03(\tR\trequested\x12\x1a\n\ - \x08provided\x18\x03\x20\x03(\tR\x08provided\x12<\n\x1aallowed_request_e\ - 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\x9a\x17\n\ - \x06\x12\x04\x0e\0X\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\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\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\ - uested:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20google.rpc.context.Pro\ - jectContext\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20google.rpc.context\ - .OriginContext\n\n\x20The\x20above\x20specifies\x20that\x20all\x20method\ - 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\ - 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\ - spb\xe2\x80\x9d\x20format.\x20For\x20example,\x20list\x20any\x20service\ - \n\x20specific\x20protobuf\x20types\x20that\x20can\x20appear\x20in\x20gr\ - pc\x20metadata\x20as\x20follows\x20in\x20your\n\x20yaml\x20file:\n\n\x20\ - Example:\n\n\x20\x20\x20\x20\x20context:\n\x20\x20\x20\x20\x20\x20\x20ru\ - les:\n\x20\x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"google.example\ - .library.v1.LibraryService.CreateBook\"\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20allowed_request_extensions:\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20-\x20google.foo.v1.NewExtension\n\x20\x20\x20\x20\x20\x20\ - \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\ - 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\0X\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\x90\x01\n\x04\x04\x01\x02\0\x12\x03I\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\r\n\x05\x04\x01\x02\0\x04\x12\x04I\x02E\x15\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\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03I\x14\x15\n?\n\ - \x04\x04\x01\x02\x01\x12\x03L\x02\x20\x1a2\x20A\x20list\x20of\x20full\ - \x20type\x20names\x20of\x20requested\x20contexts.\n\n\x0c\n\x05\x04\x01\ - \x02\x01\x04\x12\x03L\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03L\x0b\ - \x11\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03L\x12\x1b\n\x0c\n\x05\x04\ - \x01\x02\x01\x03\x12\x03L\x1e\x1f\n>\n\x04\x04\x01\x02\x02\x12\x03O\x02\ - \x1f\x1a1\x20A\x20list\x20of\x20full\x20type\x20names\x20of\x20provided\ - \x20contexts.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03O\x02\n\n\x0c\n\ - \x05\x04\x01\x02\x02\x05\x12\x03O\x0b\x11\n\x0c\n\x05\x04\x01\x02\x02\ - \x01\x12\x03O\x12\x1a\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03O\x1d\x1e\n\ - }\n\x04\x04\x01\x02\x03\x12\x03S\x021\x1ap\x20A\x20list\x20of\x20full\ - \x20type\x20names\x20or\x20extension\x20IDs\x20of\x20extensions\x20allow\ - ed\x20in\x20grpc\n\x20side\x20channel\x20from\x20client\x20to\x20backend\ - .\n\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03S\x02\n\n\x0c\n\x05\x04\x01\ - \x02\x03\x05\x12\x03S\x0b\x11\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03S\ - \x12,\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03S/0\n}\n\x04\x04\x01\x02\ - \x04\x12\x03W\x022\x1ap\x20A\x20list\x20of\x20full\x20type\x20names\x20o\ - r\x20extension\x20IDs\x20of\x20extensions\x20allowed\x20in\x20grpc\n\x20\ - side\x20channel\x20from\x20backend\x20to\x20client.\n\n\x0c\n\x05\x04\ - \x01\x02\x04\x04\x12\x03W\x02\n\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03W\ - \x0b\x11\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03W\x12-\n\x0c\n\x05\x04\ - \x01\x02\x04\x03\x12\x03W01b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/control.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/control.rs deleted file mode 100644 index 7ef4f065bd..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/control.rs +++ /dev/null @@ -1,231 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/control.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Control { - // message fields - pub environment: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Control { - fn default() -> &'a Control { - ::default_instance() - } -} - -impl Control { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for Control { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.environment.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.environment); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.environment.is_empty() { - os.write_string(1, &self.environment)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Control", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Control { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Control::new) - } -} - -impl ::protobuf::Clear for Control { - fn clear(&mut self) { - self.environment.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -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\xbb\x08\n\x06\x12\x04\x0e\0\x1f\ - \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\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\xb2\x01\n\x02\x04\0\x12\x04\x1b\0\x1f\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\x1b\x08\ - \x0f\n\x84\x01\n\x04\x04\0\x02\0\x12\x03\x1e\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.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04\x1e\x02\x1b\x11\n\ - \x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1e\x02\x08\n\x0c\n\x05\x04\0\x02\0\ - \x01\x12\x03\x1e\t\x14\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1e\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/distribution.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/distribution.rs deleted file mode 100644 index ce0c1dc19b..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/distribution.rs +++ /dev/null @@ -1,2146 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/distribution.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Distribution { - // message fields - pub count: i64, - pub mean: f64, - pub sum_of_squared_deviation: f64, - pub range: ::protobuf::SingularPtrField, - pub bucket_options: ::protobuf::SingularPtrField, - pub bucket_counts: ::std::vec::Vec, - pub exemplars: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Distribution { - fn default() -> &'a Distribution { - ::default_instance() - } -} - -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 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()) - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - 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; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.range)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_options)?; - }, - 7 => { - ::protobuf::rt::read_repeated_int64_into(wire_type, is, &mut self.bucket_counts)?; - }, - 10 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.exemplars)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.count != 0 { - my_size += ::protobuf::rt::value_size(1, self.count, ::protobuf::wire_format::WireTypeVarint); - } - if self.mean != 0. { - my_size += 9; - } - if self.sum_of_squared_deviation != 0. { - my_size += 9; - } - if let Some(ref v) = self.range.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.bucket_options.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.bucket_counts { - my_size += ::protobuf::rt::value_size(7, *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::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.count != 0 { - os.write_int64(1, self.count)?; - } - if self.mean != 0. { - os.write_double(2, self.mean)?; - } - 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(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)?; - } - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 { - 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.; - self.sum_of_squared_deviation = 0.; - self.range.clear(); - self.bucket_options.clear(); - self.bucket_counts.clear(); - self.exemplars.clear(); - self.unknown_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) - } -} - -impl ::protobuf::reflect::ProtobufValue for Distribution { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 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::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; - } - 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)?; - } - 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>( - "min", - |m: &Distribution_Range| { &m.min }, - |m: &mut Distribution_Range| { &mut m.min }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "max", - |m: &Distribution_Range| { &m.max }, - |m: &mut Distribution_Range| { &mut m.max }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution.Range", - fields, - file_descriptor_proto() - ) - }) - } - - 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::reflect::ProtobufValue for Distribution_Range { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a Distribution_BucketOptions { - fn default() -> &'a Distribution_BucketOptions { - ::default_instance() - } -} - -#[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), -} - -impl Distribution_BucketOptions { - pub fn new() -> Distribution_BucketOptions { - ::std::default::Default::default() - } - - // .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; - - - 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(), - } - } - 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, - } - } - - // 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)) - } - - // 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!(), - } - } - - // 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() - } - } - - // .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; - - - 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 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, - } - } - - // 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())); - } - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(ref mut v)) => v, - _ => panic!(), - } - } - - // 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, - _ => panic!(), - } - } else { - Distribution_BucketOptions_Exponential::new() - } - } - - // .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; - - - 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 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, - } - } - - // 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())); - } - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(ref mut v)) => v, - _ => panic!(), - } - } - - // 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, - _ => 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; - } - } - 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; - } - } - true - } - - fn merge_from(&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())?; - }, - }; - } - ::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; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 { - Distribution_BucketOptions::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "linear_buckets", - Distribution_BucketOptions::has_linear_buckets, - Distribution_BucketOptions::get_linear_buckets, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_BucketOptions_Exponential>( - "exponential_buckets", - Distribution_BucketOptions::has_exponential_buckets, - Distribution_BucketOptions::get_exponential_buckets, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_BucketOptions_Explicit>( - "explicit_buckets", - Distribution_BucketOptions::has_explicit_buckets, - Distribution_BucketOptions::get_explicit_buckets, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "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() - ) - }) - } - - 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); - } - if self.growth_factor != 0. { - my_size += 9; - } - 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)?; - } - 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() - } - - fn new() -> Distribution_BucketOptions_Exponential { - Distribution_BucketOptions_Exponential::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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() - ) - }) - } - - fn default_instance() -> &'static Distribution_BucketOptions_Exponential { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_BucketOptions_Exponential::new) - } -} - -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 ::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::reflect::ProtobufValue for Distribution_BucketOptions_Exponential { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 Distribution_BucketOptions_Explicit { - fn default() -> &'a Distribution_BucketOptions_Explicit { - ::default_instance() - } -} - -impl Distribution_BucketOptions_Explicit { - pub fn new() -> Distribution_BucketOptions_Explicit { - ::std::default::Default::default() - } - - // repeated double bounds = 1; - - - pub fn get_bounds(&self) -> &[f64] { - &self.bounds - } - pub fn clear_bounds(&mut self) { - self.bounds.clear(); - } - - // Param is passed by value, moved - pub fn set_bounds(&mut self, v: ::std::vec::Vec) { - self.bounds = v; - } - - // Mutable pointer to the field. - pub fn mut_bounds(&mut self) -> &mut ::std::vec::Vec { - &mut self.bounds - } - - // Take field - pub fn take_bounds(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.bounds, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for Distribution_BucketOptions_Explicit { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &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(()) - } - - // 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 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 get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_Explicit { - Distribution_BucketOptions_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_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() - ) - }) - } - - fn default_instance() -> &'static Distribution_BucketOptions_Explicit { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_BucketOptions_Explicit::new) - } -} - -impl ::protobuf::Clear for Distribution_BucketOptions_Explicit { - fn clear(&mut self) { - self.bounds.clear(); - self.unknown_fields.clear(); - } -} - -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) - } -} - -impl ::protobuf::reflect::ProtobufValue for Distribution_BucketOptions_Explicit { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a Distribution_Exemplar { - fn default() -> &'a Distribution_Exemplar { - ::default_instance() - } -} - -impl Distribution_Exemplar { - pub fn new() -> Distribution_Exemplar { - ::std::default::Default::default() - } - - // double value = 1; - - - pub fn get_value(&self) -> f64 { - self.value - } - pub fn clear_value(&mut self) { - self.value = 0.; - } - - // Param is passed by value, moved - pub fn set_value(&mut self, v: f64) { - self.value = v; - } - - // .google.protobuf.Timestamp timestamp = 2; - - - 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()) - } - - // repeated .google.protobuf.Any attachments = 3; - - - pub fn get_attachments(&self) -> &[::protobuf::well_known_types::Any] { - &self.attachments - } - pub fn clear_attachments(&mut self) { - self.attachments.clear(); - } - - // Param is passed by value, moved - pub fn set_attachments(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>) { - self.attachments = v; - } - - // Mutable pointer to the field. - pub fn mut_attachments(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - &mut self.attachments - } - - // Take field - pub fn take_attachments(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - ::std::mem::replace(&mut self.attachments, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Distribution_Exemplar { - fn is_initialized(&self) -> bool { - for v in &self.timestamp { - if !v.is_initialized() { - return false; - } - }; - for v in &self.attachments { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&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())?; - }, - }; - } - ::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; - } - 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)?; - } - 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 - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Distribution_Exemplar { - Distribution_Exemplar::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( - "value", - |m: &Distribution_Exemplar| { &m.value }, - |m: &mut Distribution_Exemplar| { &mut m.value }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "timestamp", - |m: &Distribution_Exemplar| { &m.timestamp }, - |m: &mut Distribution_Exemplar| { &mut m.timestamp }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( - "attachments", - |m: &Distribution_Exemplar| { &m.attachments }, - |m: &mut Distribution_Exemplar| { &mut m.attachments }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution.Exemplar", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Distribution_Exemplar { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_Exemplar::new) - } -} - -impl ::protobuf::Clear for Distribution_Exemplar { - fn clear(&mut self) { - self.value = 0.; - self.timestamp.clear(); - self.attachments.clear(); - self.unknown_fields.clear(); - } -} - -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 ::protobuf::reflect::ProtobufValue for Distribution_Exemplar { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1dgoogle/api/distribution.proto\x12\ngoogle.api\x1a\x19google/protob\ - uf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x08\n\x0cDistr\ - ibution\x12\x14\n\x05count\x18\x01\x20\x01(\x03R\x05count\x12\x12\n\x04m\ - ean\x18\x02\x20\x01(\x01R\x04mean\x127\n\x18sum_of_squared_deviation\x18\ - \x03\x20\x01(\x01R\x15sumOfSquaredDeviation\x124\n\x05range\x18\x04\x20\ - \x01(\x0b2\x1e.google.api.Distribution.RangeR\x05range\x12M\n\x0ebucket_\ - options\x18\x06\x20\x01(\x0b2&.google.api.Distribution.BucketOptionsR\rb\ - ucketOptions\x12#\n\rbucket_counts\x18\x07\x20\x03(\x03R\x0cbucketCounts\ - \x12?\n\texemplars\x18\n\x20\x03(\x0b2!.google.api.Distribution.Exemplar\ - R\texemplars\x1a+\n\x05Range\x12\x10\n\x03min\x18\x01\x20\x01(\x01R\x03m\ - in\x12\x10\n\x03max\x18\x02\x20\x01(\x01R\x03max\x1a\xb9\x04\n\rBucketOp\ - tions\x12V\n\x0elinear_buckets\x18\x01\x20\x01(\x0b2-.google.api.Distrib\ - ution.BucketOptions.LinearH\0R\rlinearBuckets\x12e\n\x13exponential_buck\ - ets\x18\x02\x20\x01(\x0b22.google.api.Distribution.BucketOptions.Exponen\ - tialH\0R\x12exponentialBuckets\x12\\\n\x10explicit_buckets\x18\x03\x20\ - \x01(\x0b2/.google.api.Distribution.BucketOptions.ExplicitH\0R\x0fexplic\ - itBuckets\x1ad\n\x06Linear\x12,\n\x12num_finite_buckets\x18\x01\x20\x01(\ - \x05R\x10numFiniteBuckets\x12\x14\n\x05width\x18\x02\x20\x01(\x01R\x05wi\ - dth\x12\x16\n\x06offset\x18\x03\x20\x01(\x01R\x06offset\x1av\n\x0bExpone\ - ntial\x12,\n\x12num_finite_buckets\x18\x01\x20\x01(\x05R\x10numFiniteBuc\ - kets\x12#\n\rgrowth_factor\x18\x02\x20\x01(\x01R\x0cgrowthFactor\x12\x14\ - \n\x05scale\x18\x03\x20\x01(\x01R\x05scale\x1a\"\n\x08Explicit\x12\x16\n\ - \x06bounds\x18\x01\x20\x03(\x01R\x06boundsB\t\n\x07options\x1a\x92\x01\n\ - \x08Exemplar\x12\x14\n\x05value\x18\x01\x20\x01(\x01R\x05value\x128\n\tt\ - imestamp\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ttimestamp\ - \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\x8eF\n\x07\x12\x05\x0e\0\xd2\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\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\xd2\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\ - \x20set\x20of\x20buckets.\n\n\x20The\x20summary\x20statistics\x20are\x20\ - the\x20count,\x20mean,\x20sum\x20of\x20the\x20squared\x20deviation\x20fr\ - om\n\x20the\x20mean,\x20the\x20minimum,\x20and\x20the\x20maximum\x20of\ - \x20the\x20set\x20of\x20population\x20of\x20values.\n\x20The\x20histogra\ - m\x20is\x20based\x20on\x20a\x20sequence\x20of\x20buckets\x20and\x20gives\ - \x20a\x20count\x20of\x20values\n\x20that\x20fall\x20into\x20each\x20buck\ - et.\x20The\x20boundaries\x20of\x20the\x20buckets\x20are\x20given\x20eith\ - er\n\x20explicitly\x20or\x20by\x20formulas\x20for\x20buckets\x20of\x20fi\ - xed\x20or\x20exponentially\x20increasing\n\x20widths.\n\n\x20Although\ - \x20it\x20is\x20not\x20forbidden,\x20it\x20is\x20generally\x20a\x20bad\ - \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\ - the\x20population\x20values.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04\ - -\x04+\x11\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\x20values.\n\n\x0f\n\x07\ - \x04\0\x03\0\x02\x01\x04\x12\x040\x04-\x13\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\x86\x01\x03\x1a\xe3\x07\x20`BucketOption\ - s`\x20describes\x20the\x20bucket\x20boundaries\x20used\x20to\x20create\ - \x20a\x20histogram\n\x20for\x20the\x20distribution.\x20The\x20buckets\ - \x20can\x20be\x20in\x20a\x20linear\x20sequence,\x20an\n\x20exponential\ - \x20sequence,\x20or\x20each\x20bucket\x20can\x20be\x20specified\x20expli\ - citly.\n\x20`BucketOptions`\x20does\x20not\x20include\x20the\x20number\ - \x20of\x20values\x20in\x20each\x20bucket.\n\n\x20A\x20bucket\x20has\x20a\ - n\x20inclusive\x20lower\x20bound\x20and\x20exclusive\x20upper\x20bound\ - \x20for\x20the\n\x20values\x20that\x20are\x20counted\x20for\x20that\x20b\ - ucket.\x20The\x20upper\x20bound\x20of\x20a\x20bucket\x20must\n\x20be\x20\ - strictly\x20greater\x20than\x20the\x20lower\x20bound.\x20The\x20sequence\ - \x20of\x20N\x20buckets\x20for\x20a\n\x20distribution\x20consists\x20of\ - \x20an\x20underflow\x20bucket\x20(number\x200),\x20zero\x20or\x20more\n\ - \x20finite\x20buckets\x20(number\x201\x20through\x20N\x20-\x202)\x20and\ - \x20an\x20overflow\x20bucket\x20(number\x20N\x20-\n\x201).\x20The\x20buc\ - kets\x20are\x20contiguous:\x20the\x20lower\x20bound\x20of\x20bucket\x20i\ - \x20(i\x20>\x200)\x20is\x20the\n\x20same\x20as\x20the\x20upper\x20bound\ - \x20of\x20bucket\x20i\x20-\x201.\x20The\x20buckets\x20span\x20the\x20who\ - le\x20range\n\x20of\x20finite\x20values:\x20lower\x20bound\x20of\x20the\ - \x20underflow\x20bucket\x20is\x20-infinity\x20and\x20the\n\x20upper\x20b\ - ound\x20of\x20the\x20overflow\x20bucket\x20is\x20+infinity.\x20The\x20fi\ - nite\x20buckets\x20are\n\x20so-called\x20because\x20both\x20bounds\x20ar\ - e\x20finite.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03B\n\x17\n\xae\x03\n\ - \x06\x04\0\x03\x01\x03\0\x12\x04L\x04U\x05\x1a\x9d\x03\x20Specifies\x20a\ - \x20linear\x20sequence\x20of\x20buckets\x20that\x20all\x20have\x20the\ - \x20same\x20width\n\x20(except\x20overflow\x20and\x20underflow).\x20Each\ - \x20bucket\x20represents\x20a\x20constant\n\x20absolute\x20uncertainty\ - \x20on\x20the\x20specific\x20value\x20in\x20the\x20bucket.\n\n\x20There\ - \x20are\x20`num_finite_buckets\x20+\x202`\x20(=\x20N)\x20buckets.\x20Buc\ - ket\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\x20off\ - set\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\x03L\x0c\ - \x12\n*\n\x08\x04\0\x03\x01\x03\0\x02\0\x12\x03N\x06#\x1a\x19\x20Must\ - \x20be\x20greater\x20than\x200.\n\n\x11\n\t\x04\0\x03\x01\x03\0\x02\0\ - \x04\x12\x04N\x06L\x14\n\x10\n\t\x04\0\x03\x01\x03\0\x02\0\x05\x12\x03N\ - \x06\x0b\n\x10\n\t\x04\0\x03\x01\x03\0\x02\0\x01\x12\x03N\x0c\x1e\n\x10\ - \n\t\x04\0\x03\x01\x03\0\x02\0\x03\x12\x03N!\"\n*\n\x08\x04\0\x03\x01\ - \x03\0\x02\x01\x12\x03Q\x06\x17\x1a\x19\x20Must\x20be\x20greater\x20than\ - \x200.\n\n\x11\n\t\x04\0\x03\x01\x03\0\x02\x01\x04\x12\x04Q\x06N#\n\x10\ - \n\t\x04\0\x03\x01\x03\0\x02\x01\x05\x12\x03Q\x06\x0c\n\x10\n\t\x04\0\ - \x03\x01\x03\0\x02\x01\x01\x12\x03Q\r\x12\n\x10\n\t\x04\0\x03\x01\x03\0\ - \x02\x01\x03\x12\x03Q\x15\x16\n3\n\x08\x04\0\x03\x01\x03\0\x02\x02\x12\ - \x03T\x06\x18\x1a\"\x20Lower\x20bound\x20of\x20the\x20first\x20bucket.\n\ - \n\x11\n\t\x04\0\x03\x01\x03\0\x02\x02\x04\x12\x04T\x06Q\x17\n\x10\n\t\ - \x04\0\x03\x01\x03\0\x02\x02\x05\x12\x03T\x06\x0c\n\x10\n\t\x04\0\x03\ - \x01\x03\0\x02\x02\x01\x12\x03T\r\x13\n\x10\n\t\x04\0\x03\x01\x03\0\x02\ - \x02\x03\x12\x03T\x16\x17\n\xca\x03\n\x06\x04\0\x03\x01\x03\x01\x12\x04`\ - \x04i\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\ - a\x20specific\x20value\x20in\x20the\x20bucket.\n\n\x20There\x20are\x20`n\ - 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\ - \x03`\x0c\x17\n*\n\x08\x04\0\x03\x01\x03\x01\x02\0\x12\x03b\x06#\x1a\x19\ - \x20Must\x20be\x20greater\x20than\x200.\n\n\x11\n\t\x04\0\x03\x01\x03\ - \x01\x02\0\x04\x12\x04b\x06`\x19\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\ - \x05\x12\x03b\x06\x0b\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\x01\x12\x03b\ - \x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\x03\x12\x03b!\"\n*\n\x08\ - \x04\0\x03\x01\x03\x01\x02\x01\x12\x03e\x06\x1f\x1a\x19\x20Must\x20be\ - \x20greater\x20than\x201.\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x01\x04\ - \x12\x04e\x06b#\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x05\x12\x03e\x06\ - \x0c\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x01\x12\x03e\r\x1a\n\x10\n\ - \t\x04\0\x03\x01\x03\x01\x02\x01\x03\x12\x03e\x1d\x1e\n*\n\x08\x04\0\x03\ - \x01\x03\x01\x02\x02\x12\x03h\x06\x17\x1a\x19\x20Must\x20be\x20greater\ - \x20than\x200.\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x02\x04\x12\x04h\ - \x06e\x1f\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\x05\x12\x03h\x06\x0c\n\ - \x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\x01\x12\x03h\r\x12\n\x10\n\t\x04\ - \0\x03\x01\x03\x01\x02\x02\x03\x12\x03h\x15\x16\n\xd1\x03\n\x06\x04\0\ - \x03\x01\x03\x02\x12\x04v\x04y\x05\x1a\xc0\x03\x20Specifies\x20a\x20set\ - \x20of\x20buckets\x20with\x20arbitrary\x20widths.\n\n\x20There\x20are\ - \x20`size(bounds)\x20+\x201`\x20(=\x20N)\x20buckets.\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\x20m\ - ust\x20contain\x20at\x20least\x20one\x20element.\x20If\x20`bounds`\x20ha\ - s\n\x20only\x20one\x20element,\x20then\x20there\x20are\x20no\x20finite\ - \x20buckets,\x20and\x20that\x20single\n\x20element\x20is\x20the\x20commo\ - n\x20boundary\x20of\x20the\x20overflow\x20and\x20underflow\x20buckets.\n\ - \n\x0e\n\x07\x04\0\x03\x01\x03\x02\x01\x12\x03v\x0c\x14\n?\n\x08\x04\0\ - \x03\x01\x03\x02\x02\0\x12\x03x\x06!\x1a.\x20The\x20values\x20must\x20be\ - \x20monotonically\x20increasing.\n\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\0\ - \x04\x12\x03x\x06\x0e\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\0\x05\x12\x03x\ - \x0f\x15\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\0\x01\x12\x03x\x16\x1c\n\ - \x10\n\t\x04\0\x03\x01\x03\x02\x02\0\x03\x12\x03x\x1f\x20\nA\n\x06\x04\0\ - \x03\x01\x08\0\x12\x05|\x04\x85\x01\x05\x1a0\x20Exactly\x20one\x20of\x20\ - these\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~\x06\ - \x20\x1a\x14\x20The\x20linear\x20bucket.\n\n\x0e\n\x07\x04\0\x03\x01\x02\ - \0\x06\x12\x03~\x06\x0c\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03~\r\ - \x1b\n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x03~\x1e\x1f\n*\n\x06\x04\0\ - \x03\x01\x02\x01\x12\x04\x81\x01\x06*\x1a\x1a\x20The\x20exponential\x20b\ - uckets.\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x04\x81\x01\x06\x11\ - \n\x0f\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x04\x81\x01\x12%\n\x0f\n\x07\ - \x04\0\x03\x01\x02\x01\x03\x12\x04\x81\x01()\n'\n\x06\x04\0\x03\x01\x02\ - \x02\x12\x04\x84\x01\x06$\x1a\x17\x20The\x20explicit\x20buckets.\n\n\x0f\ - \n\x07\x04\0\x03\x01\x02\x02\x06\x12\x04\x84\x01\x06\x0e\n\x0f\n\x07\x04\ - \0\x03\x01\x02\x02\x01\x12\x04\x84\x01\x0f\x1f\n\x0f\n\x07\x04\0\x03\x01\ - \x02\x02\x03\x12\x04\x84\x01\"#\n\xe9\x02\n\x04\x04\0\x03\x02\x12\x06\ - \x8d\x01\x02\xa1\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\x8d\x01\n\x12\nk\n\x06\x04\0\x03\x02\x02\0\x12\x04\ - \x90\x01\x04\x15\x1a[\x20Value\x20of\x20the\x20exemplar\x20point.\x20Thi\ - s\x20value\x20determines\x20to\x20which\x20bucket\x20the\n\x20exemplar\ - \x20belongs.\n\n\x11\n\x07\x04\0\x03\x02\x02\0\x04\x12\x06\x90\x01\x04\ - \x8d\x01\x14\n\x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\x90\x01\x04\n\n\ - \x0f\n\x07\x04\0\x03\x02\x02\0\x01\x12\x04\x90\x01\x0b\x10\n\x0f\n\x07\ - \x04\0\x03\x02\x02\0\x03\x12\x04\x90\x01\x13\x14\nE\n\x06\x04\0\x03\x02\ - \x02\x01\x12\x04\x93\x01\x04,\x1a5\x20The\x20observation\x20(sampling)\ - \x20time\x20of\x20the\x20above\x20value.\n\n\x11\n\x07\x04\0\x03\x02\x02\ - \x01\x04\x12\x06\x93\x01\x04\x90\x01\x15\n\x0f\n\x07\x04\0\x03\x02\x02\ - \x01\x06\x12\x04\x93\x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\ - \x12\x04\x93\x01\x1e'\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\x93\ - \x01*+\n\xb4\x03\n\x06\x04\0\x03\x02\x02\x02\x12\x04\xa0\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\xa0\ - \x01\x04\x0c\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x06\x12\x04\xa0\x01\r\x20\ - \n\x0f\n\x07\x04\0\x03\x02\x02\x02\x01\x12\x04\xa0\x01!,\n\x0f\n\x07\x04\ - \0\x03\x02\x02\x02\x03\x12\x04\xa0\x01/0\n\xab\x01\n\x04\x04\0\x02\0\x12\ - \x04\xa6\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\x0f\n\x05\x04\0\ - \x02\0\x04\x12\x06\xa6\x01\x02\xa1\x01\x03\n\r\n\x05\x04\0\x02\0\x05\x12\ - \x04\xa6\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa6\x01\x08\r\n\r\ - \n\x05\x04\0\x02\0\x03\x12\x04\xa6\x01\x10\x11\nv\n\x04\x04\0\x02\x01\ - \x12\x04\xaa\x01\x02\x12\x1ah\x20The\x20arithmetic\x20mean\x20of\x20the\ - \x20values\x20in\x20the\x20population.\x20If\x20`count`\x20is\x20zero\n\ - \x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\x0f\n\x05\x04\0\x02\ - \x01\x04\x12\x06\xaa\x01\x02\xa6\x01\x12\n\r\n\x05\x04\0\x02\x01\x05\x12\ - \x04\xaa\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xaa\x01\t\r\n\r\ - \n\x05\x04\0\x02\x01\x03\x12\x04\xaa\x01\x10\x11\n\xd8\x02\n\x04\x04\0\ - \x02\x02\x12\x04\xb5\x01\x02&\x1a\xc9\x02\x20The\x20sum\x20of\x20squared\ - \x20deviations\x20from\x20the\x20mean\x20of\x20the\x20values\x20in\x20th\ - e\n\x20population.\x20For\x20values\x20x_i\x20this\x20is:\n\n\x20\x20\ - \x20\x20\x20Sum[i=1..n]((x_i\x20-\x20mean)^2)\n\n\x20Knuth,\x20\"The\x20\ - Art\x20of\x20Computer\x20Programming\",\x20Vol.\x202,\x20page\x20232,\ - \x203rd\x20edition\n\x20describes\x20Welford's\x20method\x20for\x20accum\ - ulating\x20this\x20sum\x20in\x20one\x20pass.\n\n\x20If\x20`count`\x20is\ - \x20zero\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\x0f\n\x05\ - \x04\0\x02\x02\x04\x12\x06\xb5\x01\x02\xaa\x01\x12\n\r\n\x05\x04\0\x02\ - \x02\x05\x12\x04\xb5\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xb5\ - \x01\t!\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xb5\x01$%\n\x81\x01\n\x04\ - \x04\0\x02\x03\x12\x04\xb9\x01\x02\x12\x1as\x20If\x20specified,\x20conta\ - ins\x20the\x20range\x20of\x20the\x20population\x20values.\x20The\x20fiel\ - d\n\x20must\x20not\x20be\x20present\x20if\x20the\x20`count`\x20is\x20zer\ - o.\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\xb9\x01\x02\xb5\x01&\n\r\n\ - \x05\x04\0\x02\x03\x06\x12\x04\xb9\x01\x02\x07\n\r\n\x05\x04\0\x02\x03\ - \x01\x12\x04\xb9\x01\x08\r\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xb9\x01\ - \x10\x11\n\x81\x01\n\x04\x04\0\x02\x04\x12\x04\xbd\x01\x02#\x1as\x20Defi\ - nes\x20the\x20histogram\x20bucket\x20boundaries.\x20If\x20the\x20distrib\ - ution\x20does\x20not\n\x20contain\x20a\x20histogram,\x20then\x20omit\x20\ - this\x20field.\n\n\x0f\n\x05\x04\0\x02\x04\x04\x12\x06\xbd\x01\x02\xb9\ - \x01\x12\n\r\n\x05\x04\0\x02\x04\x06\x12\x04\xbd\x01\x02\x0f\n\r\n\x05\ - \x04\0\x02\x04\x01\x12\x04\xbd\x01\x10\x1e\n\r\n\x05\x04\0\x02\x04\x03\ - \x12\x04\xbd\x01!\"\n\xe7\x06\n\x04\x04\0\x02\x05\x12\x04\xce\x01\x02#\ - \x1a\xd8\x06\x20The\x20number\x20of\x20values\x20in\x20each\x20bucket\ - \x20of\x20the\x20histogram,\x20as\x20described\x20in\n\x20`bucket_option\ - s`.\x20If\x20the\x20distribution\x20does\x20not\x20have\x20a\x20histogra\ - m,\x20then\x20omit\n\x20this\x20field.\x20If\x20there\x20is\x20a\x20hist\ - ogram,\x20then\x20the\x20sum\x20of\x20the\x20values\x20in\n\x20`bucket_c\ - ounts`\x20must\x20equal\x20the\x20value\x20in\x20the\x20`count`\x20field\ - \x20of\x20the\n\x20distribution.\n\n\x20If\x20present,\x20`bucket_counts\ - `\x20should\x20contain\x20N\x20values,\x20where\x20N\x20is\x20the\x20num\ - ber\n\x20of\x20buckets\x20specified\x20in\x20`bucket_options`.\x20If\x20\ - you\x20supply\x20fewer\x20than\x20N\n\x20values,\x20the\x20remaining\x20\ - values\x20are\x20assumed\x20to\x20be\x200.\n\n\x20The\x20order\x20of\x20\ - the\x20values\x20in\x20`bucket_counts`\x20follows\x20the\x20bucket\x20nu\ - mbering\n\x20schemes\x20described\x20for\x20the\x20three\x20bucket\x20ty\ - pes.\x20The\x20first\x20value\x20must\x20be\x20the\n\x20count\x20for\x20\ - the\x20underflow\x20bucket\x20(number\x200).\x20The\x20next\x20N-2\x20va\ - lues\x20are\x20the\n\x20counts\x20for\x20the\x20finite\x20buckets\x20(nu\ - mber\x201\x20through\x20N-2).\x20The\x20N'th\x20value\x20in\n\x20`bucket\ - _counts`\x20is\x20the\x20count\x20for\x20the\x20overflow\x20bucket\x20(n\ - umber\x20N-1).\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04\xce\x01\x02\n\n\r\n\ - \x05\x04\0\x02\x05\x05\x12\x04\xce\x01\x0b\x10\n\r\n\x05\x04\0\x02\x05\ - \x01\x12\x04\xce\x01\x11\x1e\n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xce\x01\ - !\"\n=\n\x04\x04\0\x02\x06\x12\x04\xd1\x01\x02#\x1a/\x20Must\x20be\x20in\ - \x20increasing\x20order\x20of\x20`value`\x20field.\n\n\r\n\x05\x04\0\x02\ - \x06\x04\x12\x04\xd1\x01\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\xd1\ - \x01\x0b\x13\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\xd1\x01\x14\x1d\n\r\n\ - \x05\x04\0\x02\x06\x03\x12\x04\xd1\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/documentation.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/documentation.rs deleted file mode 100644 index a87e9abc4f..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/documentation.rs +++ /dev/null @@ -1,1096 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/documentation.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Documentation { - // message fields - pub summary: ::std::string::String, - pub pages: ::protobuf::RepeatedField, - pub rules: ::protobuf::RepeatedField, - pub documentation_root_url: ::std::string::String, - pub service_root_url: ::std::string::String, - pub overview: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Documentation { - fn default() -> &'a Documentation { - ::default_instance() - } -} - -impl Documentation { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.pages)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.documentation_root_url)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_root_url)?; - }, - 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())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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; - }; - for value in &self.rules { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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)?; - }; - 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.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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DocumentationRule { - // message fields - pub selector: ::std::string::String, - pub description: ::std::string::String, - pub deprecation_description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DocumentationRule { - fn default() -> &'a DocumentationRule { - ::default_instance() - } -} - -impl DocumentationRule { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.deprecation_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.selector.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.selector); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - 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 - } - - 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.description.is_empty() { - os.write_string(2, &self.description)?; - } - if !self.deprecation_description.is_empty() { - os.write_string(3, &self.deprecation_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() -> 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 default_instance() -> &'static DocumentationRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DocumentationRule::new) - } -} - -impl ::protobuf::Clear for DocumentationRule { - fn clear(&mut self) { - self.selector.clear(); - self.description.clear(); - self.deprecation_description.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Page { - // message fields - pub name: ::std::string::String, - pub content: ::std::string::String, - pub subpages: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Page { - fn default() -> &'a Page { - ::default_instance() - } -} - -impl Page { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.subpages)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.content.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.content); - } - for value in &self.subpages { - 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)?; - } - if !self.content.is_empty() { - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Page { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Page::new) - } -} - -impl ::protobuf::Clear for Page { - fn clear(&mut self) { - self.name.clear(); - self.content.clear(); - self.subpages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \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(\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\xf22\n\x07\x12\x05\x0e\0\xa1\x01\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\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\0s\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\ - ation\x20text.\n\n\x20In\x20order\x20to\x20reference\x20a\x20proto\x20el\ - ement,\x20the\x20following\n\x20notation\x20can\x20be\x20used:\n\x20[fully.qualified.proto.name][]\n\x20To\x20ov\ - erride\x20the\x20display\x20text\x20used\x20for\x20the\x20link,\x20this\ - \x20can\x20be\x20used:\n\x20
[display\x20text][fully.q\
-    ualified.proto.name]
\n\x20Text\x20can\x20be\x20excluded\x20\ - from\x20doc\x20using\x20the\x20following\x20notation:\n\x20
&#\
-    40;--\x20internal\x20comment\x20--)
\n\n\x20A\x20few\x20\ - directives\x20are\x20available\x20in\x20documentation.\x20Note\x20that\n\ - \x20directives\x20must\x20appear\x20on\x20a\x20single\x20line\x20to\x20b\ - e\x20properly\n\x20identified.\x20The\x20`include`\x20directive\x20inclu\ - des\x20a\x20markdown\x20file\x20from\n\x20an\x20external\x20source:\n\ - \x20
(==\x20include\x20path/to/file\x20==)\n\x20The\x20`resource_for`\x20directive\x20marks\x20a\x20message\x20to\
-    \x20be\x20the\x20resource\x20of\n\x20a\x20collection\x20in\x20REST\x20vi\
-    ew.\x20If\x20it\x20is\x20not\x20specified,\x20tools\x20attempt\n\x20to\
-    \x20infer\x20the\x20resource\x20from\x20the\x20operations\x20in\x20a\x20\
-    collection:\n\x20
(==\x20resource_for\x20v1.shelves.books\
-    \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]\n\x04\x04\0\x02\0\x12\x03R\x02\x15\ - \x1aP\x20A\x20short\x20summary\x20of\x20what\x20the\x20service\x20does.\ - \x20Can\x20only\x20be\x20provided\x20by\n\x20plain\x20text.\n\n\r\n\x05\ - \x04\0\x02\0\x04\x12\x04R\x02O\x17\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03R\ - \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03R\t\x10\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03R\x13\x14\n=\n\x04\x04\0\x02\x01\x12\x03U\x02\x1a\x1a0\ - \x20The\x20top\x20level\x20pages\x20for\x20the\x20documentation\x20set.\ - \n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03U\x02\n\n\x0c\n\x05\x04\0\x02\ - \x01\x06\x12\x03U\x0b\x0f\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03U\x10\x15\ - \n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03U\x18\x19\n\x9e\x01\n\x04\x04\0\ - \x02\x02\x12\x03Z\x02'\x1a\x90\x01\x20A\x20list\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\ - \x03Z\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03Z\x0b\x1c\n\x0c\n\x05\ - \x04\0\x02\x02\x01\x12\x03Z\x1d\"\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03Z\ - %&\n4\n\x04\x04\0\x02\x03\x12\x03]\x02$\x1a'\x20The\x20URL\x20to\x20the\ - \x20root\x20of\x20documentation.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04]\ - \x02Z'\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\x03c\x02\x1e\x1a\xe8\x01\x20Specifies\ - \x20the\x20service\x20root\x20url\x20if\x20the\x20default\x20one\x20(the\ - \x20service\x20name\n\x20from\x20the\x20yaml\x20file)\x20is\x20not\x20su\ - itable.\x20This\x20can\x20be\x20seen\x20in\x20any\x20fully\n\x20specifie\ - d\x20service\x20urls\x20as\x20well\x20as\x20sections\x20that\x20show\x20\ - a\x20base\x20that\x20other\n\x20urls\x20are\x20relative\x20to.\n\n\r\n\ - \x05\x04\0\x02\x04\x04\x12\x04c\x02]$\n\x0c\n\x05\x04\0\x02\x04\x05\x12\ - \x03c\x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03c\t\x19\n\x0c\n\x05\ - \x04\0\x02\x04\x03\x12\x03c\x1c\x1d\n\xbc\x03\n\x04\x04\0\x02\x05\x12\ - \x03r\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\x20overview.md\x20\
-    ==)\n\x20
\n\x20This\x20is\x20a\x20shortcut\x20for\x20th\ - e\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\x20content:\x20(\
-    ;==\x20include\x20overview.md\x20==)\n\x20
\n\x20Note:\ - \x20you\x20cannot\x20specify\x20both\x20`overview`\x20field\x20and\x20`p\ - ages`\x20field.\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04r\x02c\x1e\n\x0c\n\ - \x05\x04\0\x02\x05\x05\x12\x03r\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\ - \x12\x03r\t\x11\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03r\x14\x15\nW\n\x02\ - \x04\x01\x12\x05v\0\x85\x01\x01\x1aJ\x20A\x20documentation\x20rule\x20pr\ - ovides\x20information\x20about\x20individual\x20API\x20elements.\n\n\n\n\ - \x03\x04\x01\x01\x12\x03v\x08\x19\n\xb0\x03\n\x04\x04\x01\x02\0\x12\x03}\ - \x02\x16\x1a\xa2\x03\x20The\x20selector\x20is\x20a\x20comma-separated\ - \x20list\x20of\x20patterns.\x20Each\x20pattern\x20is\x20a\n\x20qualified\ - \x20name\x20of\x20the\x20element\x20which\x20may\x20end\x20in\x20\"*\",\ - \x20indicating\x20a\x20wildcard.\n\x20Wildcards\x20are\x20only\x20allowe\ - d\x20at\x20the\x20end\x20and\x20for\x20a\x20whole\x20component\x20of\x20\ - the\n\x20qualified\x20name,\x20i.e.\x20\"foo.*\"\x20is\x20ok,\x20but\x20\ - not\x20\"foo.b*\"\x20or\x20\"foo.*.bar\".\x20A\n\x20wildcard\x20will\x20\ - match\x20one\x20or\x20more\x20components.\x20To\x20specify\x20a\x20defau\ - lt\x20for\x20all\n\x20applicable\x20elements,\x20the\x20whole\x20pattern\ - \x20\"*\"\x20is\x20used.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04}\x02v\x1b\ - \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\n3\ - \n\x04\x04\x01\x02\x01\x12\x04\x80\x01\x02\x19\x1a%\x20Description\x20of\ - \x20the\x20selected\x20API(s).\n\n\x0e\n\x05\x04\x01\x02\x01\x04\x12\x05\ - \x80\x01\x02}\x16\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x80\x01\x02\x08\ - \n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x80\x01\t\x14\n\r\n\x05\x04\x01\ - \x02\x01\x03\x12\x04\x80\x01\x17\x18\n\x80\x01\n\x04\x04\x01\x02\x02\x12\ - \x04\x84\x01\x02%\x1ar\x20Deprecation\x20description\x20of\x20the\x20sel\ - ected\x20element(s).\x20It\x20can\x20be\x20provided\x20if\n\x20an\x20ele\ - ment\x20is\x20marked\x20as\x20`deprecated`.\n\n\x0f\n\x05\x04\x01\x02\ - \x02\x04\x12\x06\x84\x01\x02\x80\x01\x19\n\r\n\x05\x04\x01\x02\x02\x05\ - \x12\x04\x84\x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x84\x01\t\ - \x20\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x84\x01#$\n~\n\x02\x04\x02\ - \x12\x06\x89\x01\0\xa1\x01\x01\x1ap\x20Represents\x20a\x20documentation\ - \x20page.\x20A\x20page\x20can\x20contain\x20subpages\x20to\x20represent\ - \n\x20nested\x20documentation\x20set\x20structure.\n\n\x0b\n\x03\x04\x02\ - \x01\x12\x04\x89\x01\x08\x0c\n\xda\x04\n\x04\x04\x02\x02\0\x12\x04\x98\ - \x01\x02\x12\x1a\xcb\x04\x20The\x20name\x20of\x20the\x20page.\x20It\x20w\ - ill\x20be\x20used\x20as\x20an\x20identity\x20of\x20the\x20page\x20to\n\ - \x20generate\x20URI\x20of\x20the\x20page,\x20text\x20of\x20the\x20link\ - \x20to\x20this\x20page\x20in\x20navigation,\n\x20etc.\x20The\x20full\x20\ - page\x20name\x20(start\x20from\x20the\x20root\x20page\x20name\x20to\x20t\ - his\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\ - \x0f\n\x05\x04\x02\x02\0\x04\x12\x06\x98\x01\x02\x89\x01\x0e\n\r\n\x05\ - \x04\x02\x02\0\x05\x12\x04\x98\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\ - \x12\x04\x98\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x98\x01\x10\x11\ - \n\x94\x01\n\x04\x04\x02\x02\x01\x12\x04\x9c\x01\x02\x15\x1a\x85\x01\x20\ - The\x20Markdown\x20content\x20of\x20the\x20page.\x20You\x20can\x20use\ - \x20(==\x20include\x20{path}\n\x20==)\x20to\x20incl\ - ude\x20content\x20from\x20a\x20Markdown\x20file.\n\n\x0f\n\x05\x04\x02\ - \x02\x01\x04\x12\x06\x9c\x01\x02\x98\x01\x12\n\r\n\x05\x04\x02\x02\x01\ - \x05\x12\x04\x9c\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x9c\ - \x01\t\x10\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x9c\x01\x13\x14\nu\n\ - \x04\x04\x02\x02\x02\x12\x04\xa0\x01\x02\x1d\x1ag\x20Subpages\x20of\x20t\ - his\x20page.\x20The\x20order\x20of\x20subpages\x20specified\x20here\x20w\ - ill\x20be\n\x20honored\x20in\x20the\x20generated\x20docset.\n\n\r\n\x05\ - \x04\x02\x02\x02\x04\x12\x04\xa0\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\x06\ - \x12\x04\xa0\x01\x0b\x0f\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xa0\x01\ - \x10\x18\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xa0\x01\x1b\x1cb\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/endpoint.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/endpoint.rs deleted file mode 100644 index 06db0bb660..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/endpoint.rs +++ /dev/null @@ -1,391 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/endpoint.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Endpoint { - // message fields - pub name: ::std::string::String, - pub aliases: ::protobuf::RepeatedField<::std::string::String>, - pub target: ::std::string::String, - pub allow_cors: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Endpoint { - fn default() -> &'a Endpoint { - ::default_instance() - } -} - -impl Endpoint { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.aliases)?; - }, - 101 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.target)?; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.aliases { - my_size += ::protobuf::rt::string_size(2, &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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.aliases { - os.write_string(2, &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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Endpoint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Endpoint::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -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\x93\x15\n\x06\ - \x12\x04\x0e\0A\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202020\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\x87\x06\n\x02\x04\0\ - \x12\x04(\0A\x01\x1a\xfa\x05\x20`Endpoint`\x20describes\x20a\x20network\ - \x20endpoint\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\x20service\x20configura\ - tion:\n\n\x20\x20\x20\x20\x20name:\x20library-example.googleapis.com\n\ - \x20\x20\x20\x20\x20endpoints:\n\x20\x20\x20\x20\x20\x20\x20#\x20Below\ - \x20entry\x20makes\x20'google.example.library.v1.Library'\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\x20\ - to\x20the\x20backend,\x20for\n\x20\x20\x20\x20\x20\x20\x20#\x20it\x20to\ - \x20decide\x20whether\x20the\x20subsequent\x20cross-origin\x20request\ - \x20is\n\x20\x20\x20\x20\x20\x20\x20#\x20allowed\x20to\x20proceed.\n\x20\ - \x20\x20\x20\x20-\x20name:\x20library-example.googleapis.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\r\n\x05\x04\0\x02\0\x04\x12\x04*\ - \x02(\x12\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\x031\x022\x1a\xea\x01\x20DEPRECATED:\ - \x20This\x20field\x20is\x20no\x20longer\x20supported.\x20Instead\x20of\ - \x20using\x20aliases,\n\x20please\x20specify\x20multiple\x20[google.api.\ - Endpoint][google.api.Endpoint]\x20for\x20each\x20of\x20the\x20intended\n\ - \x20aliases.\n\n\x20Additional\x20names\x20that\x20this\x20endpoint\x20w\ - ill\x20be\x20hosted\x20on.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x031\x02\ - \n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x031\x0b\x11\n\x0c\n\x05\x04\0\x02\ - \x01\x01\x12\x031\x12\x19\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x031\x1c\x1d\ - \n\x0c\n\x05\x04\0\x02\x01\x08\x12\x031\x1e1\n\r\n\x06\x04\0\x02\x01\x08\ - \x03\x12\x031\x1f0\n\xb4\x02\n\x04\x04\0\x02\x02\x12\x038\x02\x16\x1a\ - \xa6\x02\x20The\x20specification\x20of\x20an\x20Internet\x20routable\x20\ - address\x20of\x20API\x20frontend\x20that\x20will\n\x20handle\x20requests\ - \x20to\x20this\x20[API\n\x20Endpoint](https://cloud.google.com/apis/desi\ - gn/glossary).\x20It\x20should\x20be\n\x20either\x20a\x20valid\x20IPv4\ - \x20address\x20or\x20a\x20fully-qualified\x20domain\x20name.\x20For\x20e\ - xample,\n\x20\"8.8.8.8\"\x20or\x20\"myservice.appspot.com\".\n\n\r\n\x05\ - \x04\0\x02\x02\x04\x12\x048\x0212\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x038\ - \x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x038\t\x0f\n\x0c\n\x05\x04\0\ - \x02\x02\x03\x12\x038\x12\x15\n\xd9\x02\n\x04\x04\0\x02\x03\x12\x03@\x02\ - \x16\x1a\xcb\x02\x20Allowing\n\x20[CORS](https://en.wikipedia.org/wiki/C\ - ross-origin_resource_sharing),\x20aka\n\x20cross-domain\x20traffic,\x20w\ - ould\x20allow\x20the\x20backends\x20served\x20from\x20this\x20endpoint\ - \x20to\n\x20receive\x20and\x20respond\x20to\x20HTTP\x20OPTIONS\x20reques\ - ts.\x20The\x20response\x20will\x20be\x20used\x20by\n\x20the\x20browser\ - \x20to\x20determine\x20whether\x20the\x20subsequent\x20cross-origin\x20r\ - equest\x20is\n\x20allowed\x20to\x20proceed.\n\n\r\n\x05\x04\0\x02\x03\ - \x04\x12\x04@\x028\x16\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03@\x02\x06\n\ - \x0c\n\x05\x04\0\x02\x03\x01\x12\x03@\x07\x11\n\x0c\n\x05\x04\0\x02\x03\ - \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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/error_reason.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/error_reason.rs deleted file mode 100644 index 62c3a9f9ec..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/error_reason.rs +++ /dev/null @@ -1,436 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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, -} - -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), - _ => ::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, - ]; - 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*\xe1\x03\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\x10Bp\n\x0ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgo\ - ogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xa2\ - \x02\x04GAPIJ\xef[\n\x07\x12\x05\x0e\0\xca\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\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\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\xca\x02\x01\x1a\xb1\x05\x20Defines\ - \x20the\x20supported\x20values\x20for\x20`google.rpc.ErrorInfo.reason`\ - \x20for\x20the\n\x20`googleapis.com`\x20error\x20domain.\x20This\x20erro\ - r\x20domain\x20is\x20reserved\x20for\x20[Service\n\x20Infrastructure](ht\ - tps://cloud.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\x20an\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\x20project\x20that\x20owns\x20the\x20client\x20application\ - \x20or\x20the\x20server\x20resource,\n\x20such\x20as\x20\"projects/123\"\ - .\x20Other\x20metadata\x20keys\x20are\x20specific\x20to\x20each\x20error\ - \n\x20reason.\x20For\x20more\x20information,\x20see\x20the\x20definition\ - \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\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\xdc\ - \x03\n\x04\x05\0\x02\x01\x12\x035\x02\x17\x1a\xce\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\"googl\ - eapis.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\xeb\ - \x03\n\x04\x05\0\x02\x02\x12\x03E\x02\x17\x1a\xdd\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\x20of\x20the\x20billing\x20account\x20is\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\"co\ - nsumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"se\ - rvice\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\ - \x20\x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\x20the\x20bil\ - ling\x20account\x20associated\x20has\x20been\x20disabled.\n\n\x0c\n\x05\ - \x05\0\x02\x02\x01\x12\x03E\x02\x12\n\x0c\n\x05\x05\0\x02\x02\x02\x12\ - \x03E\x15\x16\n\xd8\x03\n\x04\x05\0\x02\x03\x12\x03T\x02\x16\x1a\xca\x03\ - \x20The\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\ - \x03T\x02\x11\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03T\x14\x15\n\xec\x03\n\ - \x04\x05\0\x02\x04\x12\x03c\x02\x1e\x1a\xde\x03\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\ - \x20request\x20is\x20contacting\x20the\x20service\n\x20\"storage.googlea\ - pis.com\"\x20that\x20is\x20restricted\x20in\x20the\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\x03c\ - \x02\x19\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03c\x1c\x1d\n\xd8\x03\n\x04\ - \x05\0\x02\x05\x12\x03r\x02$\x1a\xca\x03\x20The\x20request\x20is\x20deni\ - ed\x20because\x20it\x20violates\x20[API\x20key\x20HTTP\n\x20restrictions\ - ](https://cloud.google.com/docs/authentication/api-keys#adding_http_rest\ - rictions).\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20htt\ - p\x20referrer\x20of\x20the\x20request\x20violates\x20API\n\x20key\x20HTT\ - P\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\"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/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\x05\x01\x12\x03r\x02\x1f\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03r\"\ - #\n\xe5\x03\n\x04\x05\0\x02\x06\x12\x04\x81\x01\x02!\x1a\xd6\x03\x20The\ - \x20request\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20key\ - \x20IP\x20address\n\x20restrictions](https://cloud.google.com/docs/authe\ - ntication/api-keys#adding_application_restrictions).\n\n\x20Example\x20o\ - f\x20an\x20ErrorInfo\x20when\x20the\x20caller\x20IP\x20of\x20the\x20requ\ - est\x20violates\x20API\n\x20key\x20IP\x20address\x20restrictions:\n\n\ - \x20\x20\x20\x20\x20{\x20\"reason\":\x20\"API_KEY_IP_ADDRESS_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\x06\x01\x12\x04\ - \x81\x01\x02\x1c\n\r\n\x05\x05\0\x02\x06\x02\x12\x04\x81\x01\x1f\x20\n\ - \x80\x04\n\x04\x05\0\x02\x07\x12\x04\x90\x01\x02\"\x1a\xf1\x03\x20The\ - \x20request\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20key\ - \x20Android\x20application\n\x20restrictions](https://cloud.google.com/d\ - ocs/authentication/api-keys#adding_application_restrictions).\n\n\x20Exa\ - mple\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20from\x20the\ - \x20Android\x20apps\x20violates\x20the\n\x20API\x20key\x20Android\x20app\ - lication\x20restrictions:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"A\ - PI_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\x90\x01\x02\x1d\n\r\n\x05\x05\0\x02\x07\x02\ - \x12\x04\x90\x01\x20!\n\xf0\x03\n\x04\x05\0\x02\x08\x12\x04\x9f\x01\x02\ - \x1f\x1a\xe1\x03\x20The\x20request\x20is\x20denied\x20because\x20it\x20v\ - iolates\x20[API\x20key\x20iOS\x20application\n\x20restrictions](https://\ - cloud.google.com/docs/authentication/api-keys#adding_application_restric\ - tions).\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20reques\ - t\x20from\x20the\x20iOS\x20apps\x20violates\x20the\x20API\n\x20key\x20iO\ - S\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\"consumer\":\x20\"projects/123\",\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleap\ - is.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\x9f\x01\x02\x19\n\r\n\x05\x05\0\x02\x08\ - \x02\x12\x04\x9f\x01\x1c\x1e\n\xfc\t\n\x04\x05\0\x02\t\x12\x04\xc2\x01\ - \x02\x1a\x1a\xed\t\x20The\x20request\x20is\x20denied\x20because\x20there\ - \x20is\x20not\x20enough\x20rate\x20quota\x20for\x20the\n\x20consumer.\n\ - \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"p\ - rojects/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\x20\ - limit\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\"metadat\ - a\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projec\ - ts/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\"ReadsPerMinutePerProject\"\n\x20\x20\ - \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20Example\x20of\x20an\ - \x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\x20checks\ - \x20quota\x20on\n\x20the\x20service\x20\"dataflow.googleapis.com\"\x20an\ - d\x20hits\x20the\x20organization\x20quota\n\x20limit\x20\"DefaultRequest\ - sPerMinutePerOrganization\"\x20on\x20the\x20metric\n\x20\"dataflow.googl\ - eapis.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.co\ - m\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"quota_metric\":\x20\"dataflo\ - w.googleapis.com/default_requests\",\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\"quota_limit\":\x20\"DefaultRequestsPerMinutePerOrganization\"\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\xc2\x01\x02\x15\n\r\n\x05\x05\0\x02\t\x02\x12\x04\xc2\ - \x01\x18\x19\n\xbc\t\n\x04\x05\0\x02\n\x12\x04\xe4\x01\x02\x1e\x1a\xad\t\ - \x20The\x20request\x20is\x20denied\x20because\x20there\x20is\x20not\x20e\ - nough\x20resource\x20quota\x20for\x20the\n\x20consumer.\n\n\x20Example\ - \x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\ - \x20fails\x20to\x20contact\n\x20\"compute.googleapis.com\"\x20service\ - \x20because\x20consumer's\x20resource\x20quota\x20usage\n\x20has\x20reac\ - hed\x20the\x20maximum\x20value\x20set\x20for\x20the\x20quota\x20limit\ - \x20\"VMsPerProject\"\n\x20on\x20the\x20quota\x20metric\x20\"compute.goo\ - gleapis.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\"googleap\ - is.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\"quota_metric\":\x20\"compute.googl\ - eapis.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\x20ErrorInfo\x20when\x20the\x20consumer\ - \x20\"projects/123\"\x20checks\x20resource\n\x20quota\x20on\x20the\x20se\ - rvice\x20\"dataflow.googleapis.com\"\x20and\x20hits\x20the\x20organizati\ - on\n\x20quota\x20limit\x20\"jobs-per-organization\"\x20on\x20the\x20metr\ - ic\n\x20\"dataflow.googleapis.com/job_count\".\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\"met\ - adata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"pr\ - ojects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"dat\ - aflow.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"quota_met\ - ric\":\x20\"dataflow.googleapis.com/job_count\",\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\"quota_limit\":\x20\"jobs-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\xe4\x01\x02\x19\n\r\n\x05\x05\0\x02\n\x02\x12\x04\xe4\x01\x1c\ - \x1d\n\xdb\x05\n\x04\x05\0\x02\x0b\x12\x04\xf9\x01\x02$\x1a\xcc\x05\x20T\ - he\x20request\x20whose\x20associated\x20billing\x20account\x20address\ - \x20is\x20in\x20a\x20tax\x20restricted\n\x20location,\x20violates\x20the\ - \x20local\x20tax\x20restrictions\x20when\x20creating\x20resources\x20in\ - \n\x20the\x20restricted\x20region.\n\n\x20Example\x20of\x20an\x20ErrorIn\ - fo\x20when\x20creating\x20the\x20Cloud\x20Storage\x20Bucket\x20in\x20the\ - \n\x20container\x20\"projects/123\"\x20under\x20a\x20tax\x20restricted\ - \x20region\n\x20\"locations/asia-northeast3\":\n\n\x20\x20\x20\x20\x20{\ - \x20\"reason\":\x20\"LOCATION_TAX_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/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\"l\ - ocation\":\x20\"locations/asia-northeast3\"\n\x20\x20\x20\x20\x20\x20\ - \x20}\n\x20\x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\x20cre\ - ating\x20the\x20Cloud\x20Storage\x20Bucket\x20in\n\x20\"locations/asia-n\ - ortheast3\"\x20violates\x20the\x20location\x20tax\x20restriction.\n\n\r\ - \n\x05\x05\0\x02\x0b\x01\x12\x04\xf9\x01\x02\x1e\n\r\n\x05\x05\0\x02\x0b\ - \x02\x12\x04\xf9\x01!#\n\xb7\x04\n\x04\x05\0\x02\x0c\x12\x04\x8a\x02\x02\ - \x1b\x1a\xa8\x04\x20The\x20request\x20is\x20denied\x20because\x20the\x20\ - caller\x20does\x20not\x20have\x20required\x20permission\n\x20on\x20the\ - \x20user\x20project\x20or\x20the\x20user\x20project\x20is\x20invalid.\ - \x20For\x20more\x20information,\n\x20see\x20[System\n\x20Parameters](htt\ - ps://cloud.google.com/apis/docs/system-parameters).\n\n\x20Example\x20of\ - \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\"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/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\x8a\x02\x02\x15\n\r\n\x05\x05\0\x02\x0c\x02\x12\x04\ - \x8a\x02\x18\x1a\n\xa8\x04\n\x04\x05\0\x02\r\x12\x04\x9b\x02\x02\x1a\x1a\ - \x99\x04\x20The\x20request\x20is\x20denied\x20because\x20the\x20consumer\ - \x20is\x20suspended\x20due\x20to\x20Terms\x20of\n\x20Service(Tos)\x20vio\ - lations.\x20Check\x20[Project\x20suspension\n\x20guidelines](https://clo\ - ud.google.com/resource-manager/docs/project-suspension-guidelines)\n\x20\ - for\x20more\x20information.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20w\ - hen\x20calling\x20Cloud\x20Storage\x20service\x20with\x20the\n\x20suspen\ - ded\x20consumer\x20\"projects/123\":\n\n\x20\x20\x20\x20\x20{\x20\"reaso\ - n\":\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\x9b\x02\x02\x14\n\r\n\x05\x05\0\x02\r\x02\x12\ - \x04\x9b\x02\x17\x19\n\xbb\x03\n\x04\x05\0\x02\x0e\x12\x04\xaa\x02\x02\ - \x18\x1a\xac\x03\x20The\x20request\x20is\x20denied\x20because\x20the\x20\ - associated\x20consumer\x20is\x20invalid.\x20It\x20may\x20be\n\x20in\x20a\ - \x20bad\x20format,\x20cannot\x20be\x20found,\x20or\x20have\x20been\x20de\ - leted.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20calling\x20Clo\ - ud\x20Storage\x20service\x20with\x20the\n\x20invalid\x20consumer\x20\"pr\ - ojects/123\":\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"CONSUMER_INVA\ - LID\"\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\x0e\x01\x12\ - \x04\xaa\x02\x02\x12\n\r\n\x05\x05\0\x02\x0e\x02\x12\x04\xaa\x02\x15\x17\ - \n\x92\x06\n\x04\x05\0\x02\x0f\x12\x04\xbe\x02\x02\x20\x1a\x83\x06\x20Th\ - e\x20request\x20is\x20denied\x20because\x20it\x20violates\x20[VPC\x20Ser\ - vice\n\x20Controls](https://cloud.google.com/vpc-service-controls/docs/o\ - verview).\n\x20The\x20'uid'\x20field\x20is\x20a\x20random\x20generated\ - \x20identifier\x20that\x20customer\x20can\x20use\x20it\n\x20to\x20search\ - \x20the\x20audit\x20log\x20for\x20a\x20request\x20rejected\x20by\x20VPC\ - \x20Service\x20Controls.\x20For\n\x20more\x20information,\x20please\x20r\ - efer\x20[VPC\x20Service\x20Controls\n\x20Troubleshooting](https://cloud.\ - google.com/vpc-service-controls/docs/troubleshooting#unique-id)\n\n\x20E\ - xample\x20of\x20an\x20ErrorInfo\x20for\x20a\x20request\x20calling\x20Clo\ - ud\x20Storage\x20service\x20is\n\x20rejected\x20by\x20VPC\x20Service\x20\ - Controls.\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"SECURITY_POLICY_V\ - IOLATED\"\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\xbe\x02\x02\x1a\n\r\n\x05\x05\0\x02\x0f\x02\x12\x04\xbe\x02\x1d\ - \x1f\n\x9e\x02\n\x04\x05\0\x02\x10\x12\x04\xc9\x02\x02\x1c\x1a\x8f\x02\ - \x20The\x20request\x20is\x20denied\x20because\x20the\x20provided\x20acce\ - ss\x20token\x20has\x20expired.\n\n\x20Example\x20of\x20an\x20ErrorInfo\ - \x20when\x20the\x20request\x20is\x20calling\x20Google\x20APIs\x20with\ - \x20an\n\x20expired\x20access\x20token:\n\n\x20\x20\x20\x20\x20{\x20\"re\ - ason\":\x20\"ACCESS_TOKEN_EXPIRED\"\n\x20\x20\x20\x20\x20\x20\x20\"domai\ - n\":\x20\"googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\ - \x20{}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x10\x01\x12\x04\xc9\ - \x02\x02\x16\n\r\n\x05\x05\0\x02\x10\x02\x12\x04\xc9\x02\x19\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/field_behavior.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/field_behavior.rs deleted file mode 100644 index d9f55c43aa..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/field_behavior.rs +++ /dev/null @@ -1,199 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/field_behavior.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum FieldBehavior { - FIELD_BEHAVIOR_UNSPECIFIED = 0, - OPTIONAL = 1, - REQUIRED = 2, - OUTPUT_ONLY = 3, - INPUT_ONLY = 4, - IMMUTABLE = 5, - UNORDERED_LIST = 6, -} - -impl ::protobuf::ProtobufEnum for FieldBehavior { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED), - 1 => ::std::option::Option::Some(FieldBehavior::OPTIONAL), - 2 => ::std::option::Option::Some(FieldBehavior::REQUIRED), - 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), - _ => ::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, - ]; - 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::("FieldBehavior", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for FieldBehavior { -} - -impl ::std::default::Default for FieldBehavior { - fn default() -> Self { - FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for FieldBehavior { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -/// 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 }; -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a\x20google/prot\ - obuf/descriptor.proto*\x8f\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:`\n\x0ef\ - ield_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\xab\x18\n\x06\x12\x04\x0e\0S\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\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\0S\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\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/http.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/http.rs deleted file mode 100644 index 44609c64b2..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/http.rs +++ /dev/null @@ -1,1542 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/http.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Http { - // message fields - pub rules: ::protobuf::RepeatedField, - pub fully_decode_reserved_expansion: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Http { - fn default() -> &'a Http { - ::default_instance() - } -} - -impl Http { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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; - }; - if self.fully_decode_reserved_expansion != 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.rules { - 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.fully_decode_reserved_expansion != false { - os.write_bool(2, self.fully_decode_reserved_expansion)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Http { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Http::new) - } -} - -impl ::protobuf::Clear for Http { - fn clear(&mut self) { - self.rules.clear(); - self.fully_decode_reserved_expansion = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct HttpRule { - // message fields - pub selector: ::std::string::String, - pub body: ::std::string::String, - pub response_body: ::std::string::String, - pub additional_bindings: ::protobuf::RepeatedField, - // message oneof groups - pub pattern: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a HttpRule { - fn default() -> &'a HttpRule { - ::default_instance() - } -} - -#[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 { - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::get(::std::string::String::new())); - } - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::get(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string put = 3; - - - pub fn get_put(&self) -> &str { - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::put(::std::string::String::new())); - } - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::put(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string post = 4; - - - pub fn get_post(&self) -> &str { - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::post(::std::string::String::new())); - } - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::post(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string delete = 5; - - - pub fn get_delete(&self) -> &str { - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::delete(::std::string::String::new())); - } - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::delete(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string patch = 6; - - - pub fn get_patch(&self) -> &str { - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::patch(::std::string::String::new())); - } - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::patch(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.api.CustomHttpPattern custom = 8; - - - pub fn get_custom(&self) -> &CustomHttpPattern { - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::custom(CustomHttpPattern::new())); - } - match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::custom(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - CustomHttpPattern::new() - } - } - - // 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.body)?; - }, - 12 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.response_body)?; - }, - 11 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.additional_bindings)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.body.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.body); - } - if !self.response_body.is_empty() { - my_size += ::protobuf::rt::string_size(12, &self.response_body); - } - for value in &self.additional_bindings { - 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.pattern { - match v { - &HttpRule_oneof_pattern::get(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - &HttpRule_oneof_pattern::put(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - &HttpRule_oneof_pattern::post(ref v) => { - my_size += ::protobuf::rt::string_size(4, &v); - }, - &HttpRule_oneof_pattern::delete(ref v) => { - my_size += ::protobuf::rt::string_size(5, &v); - }, - &HttpRule_oneof_pattern::patch(ref v) => { - my_size += ::protobuf::rt::string_size(6, &v); - }, - &HttpRule_oneof_pattern::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.selector.is_empty() { - os.write_string(1, &self.selector)?; - } - if !self.body.is_empty() { - os.write_string(7, &self.body)?; - } - if !self.response_body.is_empty() { - 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)?; - }; - if let ::std::option::Option::Some(ref v) = self.pattern { - match v { - &HttpRule_oneof_pattern::get(ref v) => { - os.write_string(2, v)?; - }, - &HttpRule_oneof_pattern::put(ref v) => { - os.write_string(3, v)?; - }, - &HttpRule_oneof_pattern::post(ref v) => { - os.write_string(4, v)?; - }, - &HttpRule_oneof_pattern::delete(ref v) => { - os.write_string(5, v)?; - }, - &HttpRule_oneof_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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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; - self.pattern = ::std::option::Option::None; - self.pattern = ::std::option::Option::None; - self.pattern = ::std::option::Option::None; - self.pattern = ::std::option::Option::None; - self.pattern = ::std::option::Option::None; - self.body.clear(); - self.response_body.clear(); - self.additional_bindings.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CustomHttpPattern { - // message fields - pub kind: ::std::string::String, - pub path: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CustomHttpPattern { - fn default() -> &'a CustomHttpPattern { - ::default_instance() - } -} - -impl CustomHttpPattern { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.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; - if !self.kind.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.kind); - } - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static CustomHttpPattern { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CustomHttpPattern::new) - } -} - -impl ::protobuf::Clear for CustomHttpPattern { - fn clear(&mut self) { - self.kind.clear(); - self.path.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x15google/api/http.proto\x12\ngoogle.api\"y\n\x04Http\x12*\n\x05rules\ - \x18\x01\x20\x03(\x0b2\x14.google.api.HttpRuleR\x05rules\x12E\n\x1ffully\ - _decode_reserved_expansion\x18\x02\x20\x01(\x08R\x1cfullyDecodeReservedE\ - xpansion\"\xda\x02\n\x08HttpRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\ - \tR\x08selector\x12\x12\n\x03get\x18\x02\x20\x01(\tH\0R\x03get\x12\x12\n\ - \x03put\x18\x03\x20\x01(\tH\0R\x03put\x12\x14\n\x04post\x18\x04\x20\x01(\ - \tH\0R\x04post\x12\x18\n\x06delete\x18\x05\x20\x01(\tH\0R\x06delete\x12\ - \x16\n\x05patch\x18\x06\x20\x01(\tH\0R\x05patch\x127\n\x06custom\x18\x08\ - \x20\x01(\x0b2\x1d.google.api.CustomHttpPatternH\0R\x06custom\x12\x12\n\ - \x04body\x18\x07\x20\x01(\tR\x04body\x12#\n\rresponse_body\x18\x0c\x20\ - \x01(\tR\x0cresponseBody\x12E\n\x13additional_bindings\x18\x0b\x20\x03(\ - \x0b2\x14.google.api.HttpRuleR\x12additionalBindingsB\t\n\x07pattern\";\ - \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\x8ct\n\x07\x12\x05\x0e\0\xf6\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\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\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\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\r\n\x05\x04\0\x02\x01\x04\ - \x12\x04(\x02\x20\x1e\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\xb8\x02\0\xed\x02\x01\x1a\xa4S\ - \x20#\x20gRPC\x20Transcoding\n\n\x20gRPC\x20Transcoding\x20is\x20a\x20fe\ - ature\x20for\x20mapping\x20between\x20a\x20gRPC\x20method\x20and\x20one\ - \x20or\n\x20more\x20HTTP\x20REST\x20endpoints.\x20It\x20allows\x20develo\ - pers\x20to\x20build\x20a\x20single\x20API\x20service\n\x20that\x20suppor\ - ts\x20both\x20gRPC\x20APIs\x20and\x20REST\x20APIs.\x20Many\x20systems,\ - \x20including\x20[Google\n\x20APIs](https://github.com/googleapis/google\ - apis),\n\x20[Cloud\x20Endpoints](https://cloud.google.com/endpoints),\ - \x20[gRPC\n\x20Gateway](https://github.com/grpc-ecosystem/grpc-gateway),\ - \n\x20and\x20[Envoy](https://github.com/envoyproxy/envoy)\x20proxy\x20su\ - pport\x20this\x20feature\n\x20and\x20use\x20it\x20for\x20large\x20scale\ - \x20production\x20services.\n\n\x20`HttpRule`\x20defines\x20the\x20schem\ - a\x20of\x20the\x20gRPC/REST\x20mapping.\x20The\x20mapping\x20specifies\n\ - \x20how\x20different\x20portions\x20of\x20the\x20gRPC\x20request\x20mess\ - age\x20are\x20mapped\x20to\x20the\x20URL\n\x20path,\x20URL\x20query\x20p\ - arameters,\x20and\x20HTTP\x20request\x20body.\x20It\x20also\x20controls\ - \x20how\x20the\n\x20gRPC\x20response\x20message\x20is\x20mapped\x20to\ - \x20the\x20HTTP\x20response\x20body.\x20`HttpRule`\x20is\n\x20typically\ - \x20specified\x20as\x20an\x20`google.api.http`\x20annotation\x20on\x20th\ - e\x20gRPC\x20method.\n\n\x20Each\x20mapping\x20specifies\x20a\x20URL\x20\ - path\x20template\x20and\x20an\x20HTTP\x20method.\x20The\x20path\n\x20tem\ - plate\x20may\x20refer\x20to\x20one\x20or\x20more\x20fields\x20in\x20the\ - \x20gRPC\x20request\x20message,\x20as\x20long\n\x20as\x20each\x20field\ - \x20is\x20a\x20non-repeated\x20field\x20with\x20a\x20primitive\x20(non-m\ - essage)\x20type.\n\x20The\x20path\x20template\x20controls\x20how\x20fiel\ - ds\x20of\x20the\x20request\x20message\x20are\x20mapped\x20to\n\x20the\ - \x20URL\x20path.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20service\x20Messa\ - ging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMessageReque\ - st)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20op\ - tion\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\x20U\ - RL\x20path.\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20Messa\ - ge\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20text\x20=\x201;\x20//\x20\ - The\x20resource\x20content.\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enable\ - s\x20an\x20HTTP\x20REST\x20to\x20gRPC\x20mapping\x20as\x20below:\n\n\x20\ - HTTP\x20|\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456`\x20\ - \x20|\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\x20HTTP\x20|\x20gRP\ - C\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456?revision=2&sub.subfi\ - eld=foo`\x20|\n\x20`GetMessage(message_id:\x20\"123456\"\x20revision:\ - \x202\x20sub:\x20SubMessage(subfield:\n\x20\"foo\"))`\n\n\x20Note\x20tha\ - t\x20fields\x20which\x20are\x20mapped\x20to\x20URL\x20query\x20parameter\ - s\x20must\x20have\x20a\n\x20primitive\x20type\x20or\x20a\x20repeated\x20\ - primitive\x20type\x20or\x20a\x20non-repeated\x20message\x20type.\n\x20In\ - \x20the\x20case\x20of\x20a\x20repeated\x20type,\x20the\x20parameter\x20c\ - an\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\x20par\ - ameter,\x20such\x20as\n\x20`...?foo.a=A&foo.b=B&foo.c=C`.\n\n\x20For\x20\ - HTTP\x20methods\x20that\x20allow\x20a\x20request\x20body,\x20the\x20`bod\ - y`\x20field\n\x20specifies\x20the\x20mapping.\x20Consider\x20a\x20REST\ - \x20update\x20method\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(Messag\ - e)\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\x20bod\ - y:\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\x20mes\ - sage_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\x20\ - representation\x20of\x20the\x20JSON\x20in\x20the\x20request\x20body\x20i\ - s\x20determined\x20by\n\x20protos\x20JSON\x20encoding:\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\ - \"\x20message\x20{\x20text:\x20\"Hi!\"\x20})`\n\n\x20The\x20special\x20n\ - ame\x20`*`\x20can\x20be\x20used\x20in\x20the\x20body\x20mapping\x20to\ - \x20define\x20that\n\x20every\x20field\x20not\x20bound\x20by\x20the\x20p\ - ath\x20template\x20should\x20be\x20mapped\x20to\x20the\n\x20request\x20b\ - ody.\x20\x20This\x20enables\x20the\x20following\x20alternative\x20defini\ - tion\x20of\n\x20the\x20update\x20method:\n\n\x20\x20\x20\x20\x20service\ - \x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateMessage(Mes\ - sage)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - option\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\x20str\ - ing\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\x20\ - JSON\x20to\x20RPC\x20mapping\x20is\x20enabled:\n\n\x20HTTP\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\"\x20\ - text:\x20\"Hi!\")`\n\n\x20Note\x20that\x20when\x20using\x20`*`\x20in\x20\ - the\x20body\x20mapping,\x20it\x20is\x20not\x20possible\x20to\n\x20have\ - \x20HTTP\x20parameters,\x20as\x20all\x20fields\x20not\x20bound\x20by\x20\ - the\x20path\x20end\x20in\n\x20the\x20body.\x20This\x20makes\x20this\x20o\ - ption\x20more\x20rarely\x20used\x20in\x20practice\x20when\n\x20defining\ - \x20REST\x20APIs.\x20The\x20common\x20usage\x20of\x20`*`\x20is\x20in\x20\ - custom\x20methods\n\x20which\x20don't\x20use\x20the\x20URL\x20at\x20all\ - \x20for\x20transferring\x20data.\n\n\x20It\x20is\x20possible\x20to\x20de\ - fine\x20multiple\x20HTTP\x20methods\x20for\x20one\x20RPC\x20by\x20using\ - \n\x20the\x20`additional_bindings`\x20option.\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(google.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\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\xb8\x02\x08\x10\n\x8d\x01\n\x04\x04\x01\ - \x02\0\x12\x04\xbc\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\ - \x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xbc\x02\x02\xb8\x02\x12\n\r\n\x05\ - \x04\x01\x02\0\x05\x12\x04\xbc\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\ - \x12\x04\xbc\x02\t\x11\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xbc\x02\x14\ - \x15\n\xd0\x01\n\x04\x04\x01\x08\0\x12\x06\xc1\x02\x02\xd7\x02\x03\x1a\ - \xbf\x01\x20Determines\x20the\x20URL\x20pattern\x20is\x20matched\x20by\ - \x20this\x20rules.\x20This\x20pattern\x20can\x20be\n\x20used\x20with\x20\ - any\x20of\x20the\x20{get|put|post|delete|patch}\x20methods.\x20A\x20cust\ - om\x20method\n\x20can\x20be\x20defined\x20using\x20the\x20'custom'\x20fi\ - eld.\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\xc1\x02\x08\x0f\n\\\n\x04\x04\ - \x01\x02\x01\x12\x04\xc4\x02\x04\x13\x1aN\x20Maps\x20to\x20HTTP\x20GET.\ - \x20Used\x20for\x20listing\x20and\x20getting\x20information\x20about\n\ - \x20resources.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xc4\x02\x04\n\n\r\ - \n\x05\x04\x01\x02\x01\x01\x12\x04\xc4\x02\x0b\x0e\n\r\n\x05\x04\x01\x02\ - \x01\x03\x12\x04\xc4\x02\x11\x12\n@\n\x04\x04\x01\x02\x02\x12\x04\xc7\ - \x02\x04\x13\x1a2\x20Maps\x20to\x20HTTP\x20PUT.\x20Used\x20for\x20replac\ - ing\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xc7\x02\ - \x04\n\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xc7\x02\x0b\x0e\n\r\n\x05\ - \x04\x01\x02\x02\x03\x12\x04\xc7\x02\x11\x12\nX\n\x04\x04\x01\x02\x03\ - \x12\x04\xca\x02\x04\x14\x1aJ\x20Maps\x20to\x20HTTP\x20POST.\x20Used\x20\ - for\x20creating\x20a\x20resource\x20or\x20performing\x20an\x20action.\n\ - \n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\xca\x02\x04\n\n\r\n\x05\x04\x01\ - \x02\x03\x01\x12\x04\xca\x02\x0b\x0f\n\r\n\x05\x04\x01\x02\x03\x03\x12\ - \x04\xca\x02\x12\x13\nB\n\x04\x04\x01\x02\x04\x12\x04\xcd\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\xcd\x02\x04\n\n\r\ - \n\x05\x04\x01\x02\x04\x01\x12\x04\xcd\x02\x0b\x11\n\r\n\x05\x04\x01\x02\ - \x04\x03\x12\x04\xcd\x02\x14\x15\nA\n\x04\x04\x01\x02\x05\x12\x04\xd0\ - \x02\x04\x15\x1a3\x20Maps\x20to\x20HTTP\x20PATCH.\x20Used\x20for\x20upda\ - ting\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\xd0\x02\ - \x04\n\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\xd0\x02\x0b\x10\n\r\n\x05\ - \x04\x01\x02\x05\x03\x12\x04\xd0\x02\x13\x14\n\x98\x02\n\x04\x04\x01\x02\ - \x06\x12\x04\xd6\x02\x04!\x1a\x89\x02\x20The\x20custom\x20pattern\x20is\ - \x20used\x20for\x20specifying\x20an\x20HTTP\x20method\x20that\x20is\x20n\ - ot\n\x20included\x20in\x20the\x20`pattern`\x20field,\x20such\x20as\x20HE\ - AD,\x20or\x20\"*\"\x20to\x20leave\x20the\n\x20HTTP\x20method\x20unspecif\ - ied\x20for\x20this\x20rule.\x20The\x20wild-card\x20rule\x20is\x20useful\ - \n\x20for\x20services\x20that\x20provide\x20content\x20to\x20Web\x20(HTM\ - L)\x20clients.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\xd6\x02\x04\x15\n\ - \r\n\x05\x04\x01\x02\x06\x01\x12\x04\xd6\x02\x16\x1c\n\r\n\x05\x04\x01\ - \x02\x06\x03\x12\x04\xd6\x02\x1f\x20\n\xc4\x02\n\x04\x04\x01\x02\x07\x12\ - \x04\xdf\x02\x02\x12\x1a\xb5\x02\x20The\x20name\x20of\x20the\x20request\ - \x20field\x20whose\x20value\x20is\x20mapped\x20to\x20the\x20HTTP\x20requ\ - est\n\x20body,\x20or\x20`*`\x20for\x20mapping\x20all\x20request\x20field\ - s\x20not\x20captured\x20by\x20the\x20path\n\x20pattern\x20to\x20the\x20H\ - TTP\x20body,\x20or\x20omitted\x20for\x20not\x20having\x20any\x20HTTP\x20\ - request\x20body.\n\n\x20NOTE:\x20the\x20referred\x20field\x20must\x20be\ - \x20present\x20at\x20the\x20top-level\x20of\x20the\x20request\n\x20messa\ - ge\x20type.\n\n\x0f\n\x05\x04\x01\x02\x07\x04\x12\x06\xdf\x02\x02\xd7\ - \x02\x03\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\xdf\x02\x02\x08\n\r\n\x05\ - \x04\x01\x02\x07\x01\x12\x04\xdf\x02\t\r\n\r\n\x05\x04\x01\x02\x07\x03\ - \x12\x04\xdf\x02\x10\x11\n\x99\x02\n\x04\x04\x01\x02\x08\x12\x04\xe7\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\ - \x0f\n\x05\x04\x01\x02\x08\x04\x12\x06\xe7\x02\x02\xdf\x02\x12\n\r\n\x05\ - \x04\x01\x02\x08\x05\x12\x04\xe7\x02\x02\x08\n\r\n\x05\x04\x01\x02\x08\ - \x01\x12\x04\xe7\x02\t\x16\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\xe7\x02\ - \x19\x1b\n\xbb\x01\n\x04\x04\x01\x02\t\x12\x04\xec\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\x20may\x20on\ - ly\x20be\x20one\x20level\x20deep).\n\n\r\n\x05\x04\x01\x02\t\x04\x12\x04\ - \xec\x02\x02\n\n\r\n\x05\x04\x01\x02\t\x06\x12\x04\xec\x02\x0b\x13\n\r\n\ - \x05\x04\x01\x02\t\x01\x12\x04\xec\x02\x14'\n\r\n\x05\x04\x01\x02\t\x03\ - \x12\x04\xec\x02*,\nG\n\x02\x04\x02\x12\x06\xf0\x02\0\xf6\x02\x01\x1a9\ - \x20A\x20custom\x20pattern\x20is\x20used\x20for\x20defining\x20custom\ - \x20HTTP\x20verb.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xf0\x02\x08\x19\n2\n\ - \x04\x04\x02\x02\0\x12\x04\xf2\x02\x02\x12\x1a$\x20The\x20name\x20of\x20\ - this\x20custom\x20HTTP\x20verb.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\ - \xf2\x02\x02\xf0\x02\x1b\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xf2\x02\x02\ - \x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xf2\x02\t\r\n\r\n\x05\x04\x02\ - \x02\0\x03\x12\x04\xf2\x02\x10\x11\n5\n\x04\x04\x02\x02\x01\x12\x04\xf5\ - \x02\x02\x12\x1a'\x20The\x20path\x20matched\x20by\x20this\x20custom\x20v\ - erb.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xf5\x02\x02\xf2\x02\x12\n\ - \r\n\x05\x04\x02\x02\x01\x05\x12\x04\xf5\x02\x02\x08\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\xf5\x02\t\r\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ - \xf5\x02\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/httpbody.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/httpbody.rs deleted file mode 100644 index 740ea5f5e3..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/httpbody.rs +++ /dev/null @@ -1,360 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/httpbody.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct HttpBody { - // message fields - pub content_type: ::std::string::String, - pub data: ::std::vec::Vec, - pub extensions: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a HttpBody { - fn default() -> &'a HttpBody { - ::default_instance() - } -} - -impl HttpBody { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; - }, - 3 => { - ::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())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.content_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.content_type); - } - if !self.data.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.data); - } - for value in &self.extensions { - 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.content_type.is_empty() { - os.write_string(1, &self.content_type)?; - } - if !self.data.is_empty() { - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static HttpBody { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HttpBody::new) - } -} - -impl ::protobuf::Clear for HttpBody { - fn clear(&mut self) { - self.content_type.clear(); - self.data.clear(); - self.extensions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x19google/api/httpbody.proto\x12\ngoogle.api\x1a\x19google/protobuf/a\ - ny.proto\"w\n\x08HttpBody\x12!\n\x0ccontent_type\x18\x01\x20\x01(\tR\x0b\ - 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\xc0\x13\n\x06\ - \x12\x04\x0e\0L\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202020\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\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\xa4\n\n\x02\x04\0\x12\x04B\0L\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\ - \x20HTML\x20page.\n\n\n\x20This\x20message\x20can\x20be\x20used\x20both\ - \x20in\x20streaming\x20and\x20non-streaming\x20API\x20methods\x20in\n\ - \x20the\x20request\x20as\x20well\x20as\x20the\x20response.\n\n\x20It\x20\ - can\x20be\x20used\x20as\x20a\x20top-level\x20request\x20field,\x20which\ - \x20is\x20convenient\x20if\x20one\n\x20wants\x20to\x20extract\x20paramet\ - ers\x20from\x20either\x20the\x20URL\x20or\x20HTTP\x20template\x20into\ - \x20the\n\x20request\x20fields\x20and\x20also\x20want\x20access\x20to\ - \x20the\x20raw\x20HTTP\x20body.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20m\ - essage\x20GetResourceRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20A\ - \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}\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\x03B\x08\x10\nZ\n\x04\x04\0\x02\0\x12\x03D\x02\x1a\x1aM\x20The\x20H\ - TTP\x20Content-Type\x20header\x20value\x20specifying\x20the\x20content\ - \x20type\x20of\x20the\x20body.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04D\x02B\ - \x12\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\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03D\x18\x19\n<\n\ - \x04\x04\0\x02\x01\x12\x03G\x02\x11\x1a/\x20The\x20HTTP\x20request/respo\ - nse\x20body\x20as\x20raw\x20binary.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\ - \x04G\x02D\x1a\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03G\x02\x07\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x03G\x08\x0c\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x03G\x0f\x10\nm\n\x04\x04\0\x02\x02\x12\x03K\x02.\x1a`\x20Applicati\ - on\x20specific\x20response\x20metadata.\x20Must\x20be\x20set\x20in\x20th\ - e\x20first\x20response\n\x20for\x20streaming\x20APIs.\n\n\x0c\n\x05\x04\ - \0\x02\x02\x04\x12\x03K\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03K\x0b\ - \x1e\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03K\x1f)\n\x0c\n\x05\x04\0\x02\ - \x02\x03\x12\x03K,-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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/label.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/label.rs deleted file mode 100644 index 653937c9c3..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/label.rs +++ /dev/null @@ -1,375 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/label.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct LabelDescriptor { - // message fields - pub key: ::std::string::String, - pub value_type: LabelDescriptor_ValueType, - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LabelDescriptor { - fn default() -> &'a LabelDescriptor { - ::default_instance() - } -} - -impl LabelDescriptor { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.value_type, 2, &mut self.unknown_fields)? - }, - 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())?; - }, - }; - } - ::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_type != LabelDescriptor_ValueType::STRING { - my_size += ::protobuf::rt::enum_size(2, self.value_type); - } - 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.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.description.is_empty() { - os.write_string(3, &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() -> 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 default_instance() -> &'static LabelDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LabelDescriptor::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum LabelDescriptor_ValueType { - STRING = 0, - BOOL = 1, - INT64 = 2, -} - -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(LabelDescriptor_ValueType::STRING), - 1 => ::std::option::Option::Some(LabelDescriptor_ValueType::BOOL), - 2 => ::std::option::Option::Some(LabelDescriptor_ValueType::INT64), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [LabelDescriptor_ValueType] = &[ - LabelDescriptor_ValueType::STRING, - LabelDescriptor_ValueType::BOOL, - LabelDescriptor_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 ::std::marker::Copy for LabelDescriptor_ValueType { -} - -impl ::std::default::Default for LabelDescriptor_ValueType { - fn default() -> Self { - LabelDescriptor_ValueType::STRING - } -} - -impl ::protobuf::reflect::ProtobufValue for LabelDescriptor_ValueType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x16google/api/label.proto\x12\ngoogle.api\"\xb9\x01\n\x0fLabelDescrip\ - tor\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12D\n\nvalue_type\x18\ - \x02\x20\x01(\x0e2%.google.api.LabelDescriptor.ValueTypeR\tvalueType\x12\ - \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\x91\x0b\n\x06\ - \x12\x04\x0e\0/\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202020\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\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\x20v\ - alues.\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\x20is\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\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\r\n\x05\x04\0\x02\0\x04\x12\x04\ - (\x02%\x03\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\x20da\ - ta\x20that\x20can\x20be\x20assigned\x20to\x20the\x20label.\n\n\r\n\x05\ - \x04\0\x02\x01\x04\x12\x04+\x02(\x11\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\r\n\x05\x04\0\x02\x02\x04\x12\x04.\x02+\x1b\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/launch_stage.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/launch_stage.rs deleted file mode 100644 index d49d553482..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/launch_stage.rs +++ /dev/null @@ -1,189 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/launch_stage.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum LaunchStage { - LAUNCH_STAGE_UNSPECIFIED = 0, - UNIMPLEMENTED = 6, - PRELAUNCH = 7, - EARLY_ACCESS = 1, - ALPHA = 2, - BETA = 3, - GA = 4, - DEPRECATED = 5, -} - -impl ::protobuf::ProtobufEnum for LaunchStage { - fn value(&self) -> i32 { - *self as i32 - } - - 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), - 4 => ::std::option::Option::Some(LaunchStage::GA), - 5 => ::std::option::Option::Some(LaunchStage::DEPRECATED), - _ => ::std::option::Option::None - } - } - - 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 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()) - }) - } -} - -impl ::std::marker::Copy for LaunchStage { -} - -impl ::std::default::Default for LaunchStage { - fn default() -> Self { - LaunchStage::LAUNCH_STAGE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for LaunchStage { - 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/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\xc7\x17\n\x06\x12\x04\x0e\0G\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202020\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\x81\x01\n\x02\ - \x05\0\x12\x04\x1a\0G\x01\x1au\x20The\x20launch\x20stage\x20as\x20define\ - d\x20by\x20[Google\x20Cloud\x20Platform\n\x20Launch\x20Stages](http://cl\ - oud.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\xed\x04\n\x04\x05\0\x02\x04\x12\x034\x02\x0c\ - \x1a\xdf\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\xe2\ - \x80\x99t\x20have\x20to\x20be\x20feature\x20complete,\n\x20no\x20SLAs\ - \x20are\x20provided,\x20and\x20there\x20are\x20no\x20technical\x20suppor\ - t\x20obligations,\x20but\n\x20they\x20will\x20be\x20far\x20enough\x20alo\ - ng\x20that\x20customers\x20can\x20actually\x20use\x20them\x20in\n\x20tes\ - t\x20environments\x20or\x20for\x20limited-use\x20tests\x20--\x20just\x20\ - like\x20they\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\x20open\x20a\x20release\x20for\x20any\n\x20customer\x20to\x20use.\ - \x20There\x20are\x20no\x20SLA\x20or\x20technical\x20support\x20obligatio\ - ns\x20in\x20a\n\x20Beta\x20release.\x20Products\x20will\x20be\x20complet\ - e\x20from\x20a\x20feature\x20perspective,\x20but\n\x20may\x20have\x20som\ - e\x20open\x20outstanding\x20issues.\x20Beta\x20releases\x20are\x20suitab\ - le\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\x20stabl\ - e\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\xc9\x02\n\x04\x05\0\x02\x07\x12\x03F\x02\x11\x1a\xbb\ - \x02\x20Deprecated\x20features\x20are\x20scheduled\x20to\x20be\x20shut\ - \x20down\x20and\x20removed.\x20For\x20more\n\x20information,\x20see\x20t\ - he\x20\xe2\x80\x9cDeprecation\x20Policy\xe2\x80\x9d\x20section\x20of\x20\ - our\x20[Terms\x20of\n\x20Service](https://cloud.google.com/terms/)\n\x20\ - and\x20the\x20[Google\x20Cloud\x20Platform\x20Subject\x20to\x20the\x20De\ - precation\n\x20Policy](https://cloud.google.com/terms/deprecation)\x20do\ - cumentation.\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/log.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/log.rs deleted file mode 100644 index 06cc294513..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/log.rs +++ /dev/null @@ -1,391 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/log.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct LogDescriptor { - // message fields - pub name: ::std::string::String, - pub labels: ::protobuf::RepeatedField, - pub description: ::std::string::String, - pub display_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LogDescriptor { - fn default() -> &'a LogDescriptor { - ::default_instance() - } -} - -impl LogDescriptor { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_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); - } - for value in &self.labels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.description); - } - 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 - } - - 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.labels { - 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.description.is_empty() { - os.write_string(3, &self.description)?; - } - if !self.display_name.is_empty() { - os.write_string(4, &self.display_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() -> 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 default_instance() -> &'static LogDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LogDescriptor::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x14google/api/log.proto\x12\ngoogle.api\x1a\x16google/api/label.proto\ - \"\x9d\x01\n\rLogDescriptor\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04nam\ - e\x123\n\x06labels\x18\x02\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\ - \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\xab\x0f\n\x06\x12\x04\x0e\05\ - \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\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\ - g\x20and\x20returning\x20library\x20items.\n\x20\x20\x20\x20\x20\x20\x20\ - 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\ - 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\r\n\x05\x04\0\x02\0\x04\x12\x04'\x02\"\x17\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\x20contain\x20labels\x20not\ - \x20specified\x20here\x20are\n\x20considered\x20invalid.\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\x20this\x20log.\x20Thi\ - s\x20information\x20appears\x20in\n\x20the\x20documentation\x20and\x20ca\ - n\x20contain\x20details.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x040\x02,&\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\x034\x02\x1a\x1an\x20The\x20human-readable\x20nam\ - e\x20for\x20this\x20log.\x20This\x20information\x20appears\x20on\n\x20th\ - e\x20user\x20interface\x20and\x20should\x20be\x20concise.\n\n\r\n\x05\ - \x04\0\x02\x03\x04\x12\x044\x020\x19\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/logging.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/logging.rs deleted file mode 100644 index fa10d20764..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/logging.rs +++ /dev/null @@ -1,541 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/logging.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Logging { - // message fields - pub producer_destinations: ::protobuf::RepeatedField, - pub consumer_destinations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Logging { - fn default() -> &'a Logging { - ::default_instance() - } -} - -impl Logging { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.consumer_destinations)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.producer_destinations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 += ::protobuf::rt::unknown_fields_size(self.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.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)?; - }; - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Logging { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Logging::new) - } -} - -impl ::protobuf::Clear for Logging { - fn clear(&mut self) { - self.producer_destinations.clear(); - self.consumer_destinations.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[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()) - } - - // repeated string logs = 1; - - - pub fn get_logs(&self) -> &[::std::string::String] { - &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<::std::string::String>) { - self.logs = v; - } - - // Mutable pointer to the field. - pub fn mut_logs(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.logs - } - - // Take field - pub fn take_logs(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.logs, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Logging_LoggingDestination { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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())?; - }, - }; - } - ::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); - } - 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)?; - } - 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 new() -> Logging_LoggingDestination { - Logging_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 default_instance() -> &'static Logging_LoggingDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Logging_LoggingDestination::new) - } -} - -impl ::protobuf::Clear for Logging_LoggingDestination { - fn clear(&mut self) { - self.monitored_resource.clear(); - self.logs.clear(); - self.unknown_fields.clear(); - } -} - -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 ::protobuf::reflect::ProtobufValue for Logging_LoggingDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x18google/api/logging.proto\x12\ngoogle.api\"\x9c\x02\n\x07Logging\ - \x12[\n\x15producer_destinations\x18\x01\x20\x03(\x0b2&.google.api.Loggi\ - ng.LoggingDestinationR\x14producerDestinations\x12[\n\x15consumer_destin\ - ations\x18\x02\x20\x03(\x0b2&.google.api.Logging.LoggingDestinationR\x14\ - consumerDestinations\x1aW\n\x12LoggingDestination\x12-\n\x12monitored_re\ - 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\xaa\x17\n\x06\x12\x04\x0e\0O\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\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\0O\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\ - \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\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\x20is\x20located\x20in.\n\x20\x20\x20\x20\ - \x20\x20\x20-\x20key:\x20/name\n\x20\x20\x20\x20\x20\x20\x20\x20\x20desc\ - ription:\x20The\x20name\x20of\x20the\x20branch.\n\x20\x20\x20\x20\x20log\ - s:\n\x20\x20\x20\x20\x20-\x20name:\x20activity_history\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-\x20name:\x20purchase_history\n\x20\x20\x20\x20\ - \x20logging:\n\x20\x20\x20\x20\x20\x20\x20producer_destinations:\n\x20\ - \x20\x20\x20\x20\x20\x20-\x20monitored_resource:\x20library.googleapis.c\ - om/branch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20logs:\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20-\x20activity_history\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20-\x20purchase_history\n\x20\x20\x20\x20\x20\x20\x20consumer_dest\ - 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\x02B\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\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]\x20section.\n\ - \n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04;\x048\x1e\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\x03A\x04\x1d\x1a\xfe\x01\x20Names\x20of\ - \x20the\x20logs\x20to\x20be\x20sent\x20to\x20this\x20destination.\x20Eac\ - h\x20name\x20must\n\x20be\x20defined\x20in\x20the\x20[Service.logs][goog\ - le.api.Service.logs]\x20section.\x20If\x20the\x20log\x20name\x20is\n\x20\ - not\x20a\x20domain\x20scoped\x20name,\x20it\x20will\x20be\x20automatical\ - ly\x20prefixed\x20with\n\x20the\x20service\x20name\x20followed\x20by\x20\ - \"/\".\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03A\x04\x0c\n\x0e\n\ - \x07\x04\0\x03\0\x02\x01\x05\x12\x03A\r\x13\n\x0e\n\x07\x04\0\x03\0\x02\ - \x01\x01\x12\x03A\x14\x18\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03A\ - \x1b\x1c\n\xef\x01\n\x04\x04\0\x02\0\x12\x03H\x028\x1a\xe1\x01\x20Loggin\ - g\x20configurations\x20for\x20sending\x20logs\x20to\x20the\x20producer\ - \x20project.\n\x20There\x20can\x20be\x20multiple\x20producer\x20destinat\ - ions,\x20each\x20one\x20must\x20have\x20a\n\x20different\x20monitored\ - \x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\x20in\x20at\x20mo\ - st\n\x20one\x20producer\x20destination.\n\n\x0c\n\x05\x04\0\x02\0\x04\ - \x12\x03H\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03H\x0b\x1d\n\x0c\n\x05\ - \x04\0\x02\0\x01\x12\x03H\x1e3\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03H67\n\ - \xef\x01\n\x04\x04\0\x02\x01\x12\x03N\x028\x1a\xe1\x01\x20Logging\x20con\ - figurations\x20for\x20sending\x20logs\x20to\x20the\x20consumer\x20projec\ - t.\n\x20There\x20can\x20be\x20multiple\x20consumer\x20destinations,\x20e\ - ach\x20one\x20must\x20have\x20a\n\x20different\x20monitored\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\x03N\ - \x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03N\x0b\x1d\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x03N\x1e3\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03N67b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/metric.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/metric.rs deleted file mode 100644 index 9196bbe119..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/metric.rs +++ /dev/null @@ -1,1502 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/metric.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct MetricDescriptor { - // message fields - 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, - pub unit: ::std::string::String, - pub description: ::std::string::String, - 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>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MetricDescriptor { - fn default() -> &'a MetricDescriptor { - ::default_instance() - } -} - -impl MetricDescriptor { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.metric_kind, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.value_type, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.unit)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; - }, - 12 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 12, &mut self.unknown_fields)? - }, - 13 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.monitored_resource_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); - } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.field_type); - } - for value in &self.labels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.metric_kind != MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.metric_kind); - } - if self.value_type != MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.value_type); - } - if !self.unit.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.unit); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.description); - } - 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() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(12, self.launch_stage); - } - 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 - } - - 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.is_empty() { - os.write_string(8, &self.field_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)?; - }; - if self.metric_kind != MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::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.unit.is_empty() { - os.write_string(5, &self.unit)?; - } - if !self.description.is_empty() { - os.write_string(6, &self.description)?; - } - 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 self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.launch_stage))?; - } - for v in &self.monitored_resource_types { - os.write_string(13, &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() -> 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.labels.clear(); - self.metric_kind = MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED; - self.value_type = MetricDescriptor_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(); - } -} - -impl ::std::fmt::Debug for MetricDescriptor { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MetricDescriptor { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 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); - } - - // 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(); - } - 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(); - } - - pub fn has_ingest_delay(&self) -> bool { - self.ingest_delay.is_some() - } - - // 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); - } - - // 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(); - } - 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()) - } -} - -impl ::protobuf::Message for MetricDescriptor_MetricDescriptorMetadata { - fn is_initialized(&self) -> bool { - for v in &self.sample_period { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ingest_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_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())?; - }, - }; - } - ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - 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 as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MetricDescriptor_MetricDescriptorMetadata { - MetricDescriptor_MetricDescriptorMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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() - ) - }) - } - - fn default_instance() -> &'static MetricDescriptor_MetricDescriptorMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MetricDescriptor_MetricDescriptorMetadata::new) - } -} - -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 ::std::fmt::Debug for MetricDescriptor_MetricDescriptorMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MetricDescriptor_MetricDescriptorMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum MetricDescriptor_MetricKind { - METRIC_KIND_UNSPECIFIED = 0, - GAUGE = 1, - DELTA = 2, - CUMULATIVE = 3, -} - -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(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 values() -> &'static [Self] { - static values: &'static [MetricDescriptor_MetricKind] = &[ - MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED, - MetricDescriptor_MetricKind::GAUGE, - MetricDescriptor_MetricKind::DELTA, - MetricDescriptor_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 ::std::marker::Copy for MetricDescriptor_MetricKind { -} - -impl ::std::default::Default for MetricDescriptor_MetricKind { - fn default() -> Self { - MetricDescriptor_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)) - } -} - -#[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, -} - -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(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 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, - ]; - 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 ::std::marker::Copy for MetricDescriptor_ValueType { -} - -impl ::std::default::Default for MetricDescriptor_ValueType { - fn default() -> Self { - MetricDescriptor_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)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Metric { - // message fields - pub field_type: ::std::string::String, - 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 Metric { - fn default() -> &'a Metric { - ::default_instance() - } -} - -impl Metric { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::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; - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.field_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); - 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)?; - } - ::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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Metric { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - 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 ::std::fmt::Debug 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) - } -} - -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\ - (\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\ - ricKindR\nmetricKind\x12E\n\nvalue_type\x18\x04\x20\x01(\x0e2&.google.ap\ - i.MetricDescriptor.ValueTypeR\tvalueType\x12\x12\n\x04unit\x18\x05\x20\ - \x01(\tR\x04unit\x12\x20\n\x0bdescription\x18\x06\x20\x01(\tR\x0bdescrip\ - 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\xaeS\n\x07\ - \x12\x05\x0e\0\x87\x02\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202020\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\xfb\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\nW\n\x04\x04\0\x03\0\x12\x04\"\x020\x03\x1aI\x20Add\ - itional\x20annotations\x20that\x20can\x20be\x20used\x20to\x20guide\x20th\ - e\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\x1am\x20Deprecated.\x20Mus\ - t\x20use\x20the\x20[MetricDescriptor.launch_stage][google.api.MetricDesc\ - riptor.launch_stage]\x20instead.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\ - \x04$\x04\"$\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.\x20For\x20metrics\x20which\x20are\ - \x20written\n\x20periodically,\x20consecutive\x20data\x20points\x20are\ - \x20stored\x20at\x20this\x20time\x20interval,\n\x20excluding\x20data\x20\ - loss\x20due\x20to\x20errors.\x20Metrics\x20with\x20a\x20higher\x20granul\ - arity\x20have\n\x20a\x20smaller\x20sampling\x20period.\n\n\x0f\n\x07\x04\ - \0\x03\0\x02\x01\x04\x12\x04*\x04$5\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\x20po\ - ints\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\x0f\n\x07\x04\0\x03\0\x02\x02\x04\x12\x04/\x04*/\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\xd9\x01\n\x04\x04\0\x04\0\x12\x045\x02E\x03\x1a\xca\x01\x20The\ - \x20kind\x20of\x20measurement.\x20It\x20describes\x20how\x20the\x20data\ - \x20is\x20reported.\n\x20For\x20information\x20on\x20setting\x20the\x20s\ - tart\x20time\x20and\x20end\x20time\x20based\x20on\n\x20the\x20MetricKind\ - ,\x20see\x20[TimeInterval][google.monitoring.v3.TimeInterval].\n\n\x0c\n\ - \x05\x04\0\x04\0\x01\x12\x035\x07\x11\n/\n\x06\x04\0\x04\0\x02\0\x12\x03\ - 7\x04\x20\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\ - \x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x037\x04\x1b\n\x0e\n\x07\x04\0\x04\ - \0\x02\0\x02\x12\x037\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\x03D\x04\x13\x1a\xfa\x01\x20A\x20value\x20accumulated\x20\ - over\x20a\x20time\x20interval.\x20\x20Cumulative\n\x20measurements\x20in\ - \x20a\x20time\x20series\x20should\x20have\x20the\x20same\x20start\x20tim\ - e\n\x20and\x20increasing\x20end\x20times,\x20until\x20an\x20event\x20res\ - ets\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\x03D\x04\x0e\n\x0e\n\x07\x04\0\x04\0\ - \x02\x03\x02\x12\x03D\x11\x12\n+\n\x04\x04\0\x04\x01\x12\x04H\x02_\x03\ - \x1a\x1d\x20The\x20value\x20type\x20of\x20a\x20metric.\n\n\x0c\n\x05\x04\ - \0\x04\x01\x01\x12\x03H\x07\x10\n/\n\x06\x04\0\x04\x01\x02\0\x12\x03J\ - \x04\x1f\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\ - \x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x03J\x04\x1a\n\x0e\n\x07\x04\0\ - \x04\x01\x02\0\x02\x12\x03J\x1d\x1e\ni\n\x06\x04\0\x04\x01\x02\x01\x12\ - \x03N\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\x03N\x04\ - \x08\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x03N\x0b\x0c\n6\n\x06\x04\ - \0\x04\x01\x02\x02\x12\x03Q\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\ - \x03Q\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03Q\x0c\r\nG\n\ - \x06\x04\0\x04\x01\x02\x03\x12\x03T\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\x03T\x04\n\n\x0e\n\x07\x04\0\x04\x01\ - \x02\x03\x02\x12\x03T\r\x0e\nm\n\x06\x04\0\x04\x01\x02\x04\x12\x03X\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\x03X\x04\ - \n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x02\x12\x03X\r\x0e\nJ\n\x06\x04\0\ - \x04\x01\x02\x05\x12\x03[\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\x03[\x04\x10\n\x0e\n\x07\x04\0\x04\x01\x02\x05\x02\x12\x03[\ - \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\x03b\x02\x12\x1a-\x20The\x20resource\x20name\x20of\ - \x20the\x20metric\x20descriptor.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04b\ - \x02_\x03\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\ - \xa9\x03\n\x04\x04\0\x02\x01\x12\x03l\x02\x12\x1a\x9b\x03\x20The\x20metr\ - ic\x20type,\x20including\x20its\x20DNS\x20name\x20prefix.\x20The\x20type\ - \x20is\x20not\n\x20URL-encoded.\x20All\x20user-defined\x20metric\x20type\ - s\x20have\x20the\x20DNS\x20name\n\x20`custom.googleapis.com`\x20or\x20`e\ - xternal.googleapis.com`.\x20Metric\x20types\x20should\n\x20use\x20a\x20n\ - atural\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\"app\ - engine.googleapis.com/http/server/response_latencies\"\n\n\r\n\x05\x04\0\ - \x02\x01\x04\x12\x04l\x02b\x12\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\r\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x03l\x10\x11\n\xd5\x02\n\x04\x04\0\x02\x02\x12\x03t\x02\ - &\x1a\xc7\x02\x20The\x20set\x20of\x20labels\x20that\x20can\x20be\x20used\ - \x20to\x20describe\x20a\x20specific\n\x20instance\x20of\x20this\x20metri\ - c\x20type.\x20For\x20example,\x20the\n\x20`appengine.googleapis.com/http\ - /server/response_latencies`\x20metric\n\x20type\x20has\x20a\x20label\x20\ - for\x20the\x20HTTP\x20response\x20code,\x20`response_code`,\x20so\n\x20y\ - ou\x20can\x20look\x20at\x20latencies\x20for\x20successful\x20responses\ - \x20or\x20just\n\x20for\x20responses\x20that\x20failed.\n\n\x0c\n\x05\ - \x04\0\x02\x02\x04\x12\x03t\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03t\ - \x0b\x1a\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03t\x1b!\n\x0c\n\x05\x04\0\ - \x02\x02\x03\x12\x03t$%\n\xa6\x01\n\x04\x04\0\x02\x03\x12\x03x\x02\x1d\ - \x1a\x98\x01\x20Whether\x20the\x20metric\x20records\x20instantaneous\x20\ - values,\x20changes\x20to\x20a\x20value,\x20etc.\n\x20Some\x20combination\ - s\x20of\x20`metric_kind`\x20and\x20`value_type`\x20might\x20not\x20be\ - \x20supported.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04x\x02t&\n\x0c\n\x05\ - \x04\0\x02\x03\x06\x12\x03x\x02\x0c\n\x0c\n\x05\x04\0\x02\x03\x01\x12\ - \x03x\r\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03x\x1b\x1c\n\xa1\x01\n\ - \x04\x04\0\x02\x04\x12\x03|\x02\x1b\x1a\x93\x01\x20Whether\x20the\x20mea\ - surement\x20is\x20an\x20integer,\x20a\x20floating-point\x20number,\x20et\ - c.\n\x20Some\x20combinations\x20of\x20`metric_kind`\x20and\x20`value_typ\ - e`\x20might\x20not\x20be\x20supported.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\ - \x04|\x02x\x1d\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\xe4\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`DISTRIBUTION`.\x20\ - The\x20`unit`\n\x20defines\x20the\x20representation\x20of\x20the\x20stor\ - ed\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`2\ - 0By`,\x20and\x20a\x20value\x20of\n\x20`3523kBy`\x20_might_\x20be\x20disp\ - layed\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\x20mi\ - ght\x20be\x20displayed.\n\n\x20If\x20you\x20want\x20a\x20custom\x20metri\ - c\x20to\x20record\x20the\x20exact\x20number\x20of\x20CPU-seconds\x20used\ - \n\x20by\x20a\x20job,\x20you\x20can\x20create\x20an\x20`INT64\x20CUMULAT\ - IVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`s{CPU}`\x20(or\x20equivale\ - ntly\x20`1s{CPU}`\x20or\x20just\x20`s`).\x20If\x20the\x20job\x20uses\x20\ - 12,005\n\x20CPU-seconds,\x20then\x20the\x20value\x20is\x20written\x20as\ - \x20`12005`.\n\n\x20Alternatively,\x20if\x20you\x20want\x20a\x20custom\ - \x20metric\x20to\x20record\x20data\x20in\x20a\x20more\n\x20granular\x20w\ - ay,\x20you\x20can\x20create\x20a\x20`DOUBLE\x20CUMULATIVE`\x20metric\x20\ - whose\x20`unit`\x20is\n\x20`ks{CPU}`,\x20and\x20then\x20write\x20the\x20\ - value\x20`12.005`\x20(which\x20is\x20`12005/1000`),\n\x20or\x20use\x20`K\ - is{CPU}`\x20and\x20write\x20`11.723`\x20(which\x20is\x20`12005/1024`).\n\ - \n\x20The\x20supported\x20units\x20are\x20a\x20subset\x20of\x20[The\x20U\ - nified\x20Code\x20for\x20Units\x20of\n\x20Measure](https://unitsofmeasur\ - e.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\x20da\ - y\n\x20*\x20`1`\x20\x20\x20\x20\x20dimensionless\n\n\x20**Prefixes\x20(P\ - REFIX)**\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\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\x20pet\ - a\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(1\ - 0^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^-1\ - 8)\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\x20meb\ - i\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\x20connectors:\n\n\ - \x20*\x20`/`\x20\x20\x20\x20division\x20or\x20ratio\x20(as\x20an\x20infi\ - x\x20operator).\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\x20\ - computed\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\x20infix\x20operator).\x20For\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20examples,\x20`GBy.d`\x20or\x20`k{watt}.h`.\n\n\x20The\x20grammar\ - \x20for\x20a\x20unit\x20is\x20as\x20follows:\n\n\x20\x20\x20\x20\x20Expr\ - ession\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\x20No\ - tes:\n\n\x20*\x20`Annotation`\x20is\x20just\x20a\x20comment\x20if\x20it\ - \x20follows\x20a\x20`UNIT`.\x20If\x20the\x20annotation\n\x20\x20\x20\x20\ - is\x20used\x20alone,\x20then\x20the\x20unit\x20is\x20equivalent\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\x20s\ - equence\x20of\x20non-blank\x20printable\x20ASCII\x20characters\x20not\n\ - \x20\x20\x20\x20containing\x20`{`\x20or\x20`}`.\n\x20*\x20`1`\x20represe\ - nts\x20a\x20unitary\x20[dimensionless\n\x20\x20\x20\x20unit](https://en.\ - wikipedia.org/wiki/Dimensionless_quantity)\x20of\x201,\x20such\n\x20\x20\ - \x20\x20as\x20in\x20`1/s`.\x20It\x20is\x20typically\x20used\x20when\x20n\ - one\x20of\x20the\x20basic\x20units\x20are\n\x20\x20\x20\x20appropriate.\ - \x20For\x20example,\x20\"new\x20users\x20per\x20day\"\x20can\x20be\x20re\ - presented\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\ - \x20per\x20day\"\x20would\x20be\n\x20\x20\x20\x20represented\x20as\x20`1\ - 000/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\x20pag\ - e\x20views\x20per\x20day\").\n\x20*\x20`%`\x20represents\x20dimensionles\ - s\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\n\x0e\n\x05\x04\0\x02\x05\x04\x12\x05\xe4\x01\ - \x02|\x1b\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\xe4\x01\x02\x08\n\r\n\x05\ - \x04\0\x02\x05\x01\x12\x04\xe4\x01\t\r\n\r\n\x05\x04\0\x02\x05\x03\x12\ - \x04\xe4\x01\x10\x11\nY\n\x04\x04\0\x02\x06\x12\x04\xe7\x01\x02\x19\x1aK\ - \x20A\x20detailed\x20description\x20of\x20the\x20metric,\x20which\x20can\ - \x20be\x20used\x20in\x20documentation.\n\n\x0f\n\x05\x04\0\x02\x06\x04\ - \x12\x06\xe7\x01\x02\xe4\x01\x12\n\r\n\x05\x04\0\x02\x06\x05\x12\x04\xe7\ - \x01\x02\x08\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\xe7\x01\t\x14\n\r\n\x05\ - \x04\0\x02\x06\x03\x12\x04\xe7\x01\x17\x18\n\xa3\x02\n\x04\x04\0\x02\x07\ - \x12\x04\xed\x01\x02\x1a\x1a\x94\x02\x20A\x20concise\x20name\x20for\x20t\ - he\x20metric,\x20which\x20can\x20be\x20displayed\x20in\x20user\x20interf\ - aces.\n\x20Use\x20sentence\x20case\x20without\x20an\x20ending\x20period,\ - \x20for\x20example\x20\"Request\x20count\".\n\x20This\x20field\x20is\x20\ - optional\x20but\x20it\x20is\x20recommended\x20to\x20be\x20set\x20for\x20\ - any\x20metrics\n\x20associated\x20with\x20user-visible\x20concepts,\x20s\ - uch\x20as\x20Quota.\n\n\x0f\n\x05\x04\0\x02\x07\x04\x12\x06\xed\x01\x02\ - \xe7\x01\x19\n\r\n\x05\x04\0\x02\x07\x05\x12\x04\xed\x01\x02\x08\n\r\n\ - \x05\x04\0\x02\x07\x01\x12\x04\xed\x01\t\x15\n\r\n\x05\x04\0\x02\x07\x03\ - \x12\x04\xed\x01\x18\x19\nR\n\x04\x04\0\x02\x08\x12\x04\xf0\x01\x02)\x1a\ - D\x20Optional.\x20Metadata\x20which\x20can\x20be\x20used\x20to\x20guide\ - \x20usage\x20of\x20the\x20metric.\n\n\x0f\n\x05\x04\0\x02\x08\x04\x12\ - \x06\xf0\x01\x02\xed\x01\x1a\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\xf0\x01\ - \x02\x1a\n\r\n\x05\x04\0\x02\x08\x01\x12\x04\xf0\x01\x1b#\n\r\n\x05\x04\ - \0\x02\x08\x03\x12\x04\xf0\x01&(\nD\n\x04\x04\0\x02\t\x12\x04\xf3\x01\ - \x02\x20\x1a6\x20Optional.\x20The\x20launch\x20stage\x20of\x20the\x20met\ - ric\x20definition.\n\n\x0f\n\x05\x04\0\x02\t\x04\x12\x06\xf3\x01\x02\xf0\ - \x01)\n\r\n\x05\x04\0\x02\t\x06\x12\x04\xf3\x01\x02\r\n\r\n\x05\x04\0\ - \x02\t\x01\x12\x04\xf3\x01\x0e\x1a\n\r\n\x05\x04\0\x02\t\x03\x12\x04\xf3\ - \x01\x1d\x1f\n\xd4\x02\n\x04\x04\0\x02\n\x12\x04\xfa\x01\x020\x1a\xc5\ - \x02\x20Read-only.\x20If\x20present,\x20then\x20a\x20[time\n\x20series][\ - google.monitoring.v3.TimeSeries],\x20which\x20is\x20identified\x20partia\ - lly\x20by\n\x20a\x20metric\x20type\x20and\x20a\x20[MonitoredResourceDesc\ - riptor][google.api.MonitoredResourceDescriptor],\x20that\x20is\x20associ\ - ated\n\x20with\x20this\x20metric\x20type\x20can\x20only\x20be\x20associa\ - ted\x20with\x20one\x20of\x20the\x20monitored\n\x20resource\x20types\x20l\ - isted\x20here.\n\n\r\n\x05\x04\0\x02\n\x04\x12\x04\xfa\x01\x02\n\n\r\n\ - \x05\x04\0\x02\n\x05\x12\x04\xfa\x01\x0b\x11\n\r\n\x05\x04\0\x02\n\x01\ - \x12\x04\xfa\x01\x12*\n\r\n\x05\x04\0\x02\n\x03\x12\x04\xfa\x01-/\n\x92\ - \x01\n\x02\x04\x01\x12\x06\xff\x01\0\x87\x02\x01\x1a\x83\x01\x20A\x20spe\ - cific\x20metric,\x20identified\x20by\x20specifying\x20values\x20for\x20a\ - ll\x20of\x20the\n\x20labels\x20of\x20a\x20[`MetricDescriptor`][google.ap\ - i.MetricDescriptor].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xff\x01\x08\x0e\n\ - \xa4\x01\n\x04\x04\x01\x02\0\x12\x04\x82\x02\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\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\x82\ - \x02\x02\xff\x01\x10\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x82\x02\x02\x08\ - \n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x82\x02\t\r\n\r\n\x05\x04\x01\x02\0\ - \x03\x12\x04\x82\x02\x10\x11\n\x92\x01\n\x04\x04\x01\x02\x01\x12\x04\x86\ - \x02\x02!\x1a\x83\x01\x20The\x20set\x20of\x20label\x20values\x20that\x20\ - uniquely\x20identify\x20this\x20metric.\x20All\n\x20labels\x20listed\x20\ - in\x20the\x20`MetricDescriptor`\x20must\x20be\x20assigned\x20values.\n\n\ - \x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\x86\x02\x02\x82\x02\x12\n\r\n\x05\ - \x04\x01\x02\x01\x06\x12\x04\x86\x02\x02\x15\n\r\n\x05\x04\x01\x02\x01\ - \x01\x12\x04\x86\x02\x16\x1c\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x86\ - \x02\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitored_resource.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitored_resource.rs deleted file mode 100644 index cc04291f0b..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitored_resource.rs +++ /dev/null @@ -1,966 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/monitored_resource.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct MonitoredResourceDescriptor { - // message fields - pub name: ::std::string::String, - pub field_type: ::std::string::String, - pub display_name: ::std::string::String, - pub description: ::std::string::String, - pub labels: ::protobuf::RepeatedField, - pub launch_stage: super::launch_stage::LaunchStage, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MonitoredResourceDescriptor { - fn default() -> &'a MonitoredResourceDescriptor { - ::default_instance() - } -} - -impl MonitoredResourceDescriptor { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; - }, - 7 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 7, &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(5, &self.name); - } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_type); - } - 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); - } - for value in &self.labels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(7, self.launch_stage); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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(5, &self.name)?; - } - if !self.field_type.is_empty() { - os.write_string(1, &self.field_type)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.description.is_empty() { - 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)?; - }; - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.launch_stage))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static MonitoredResourceDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MonitoredResourceDescriptor::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MonitoredResource { - // message fields - pub field_type: ::std::string::String, - 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 MonitoredResource { - fn default() -> &'a MonitoredResource { - ::default_instance() - } -} - -impl MonitoredResource { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::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; - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_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); - 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)?; - } - ::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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static MonitoredResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - 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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MonitoredResourceMetadata { - // message fields - pub system_labels: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, - pub user_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 MonitoredResourceMetadata { - fn default() -> &'a MonitoredResourceMetadata { - ::default_instance() - } -} - -impl MonitoredResourceMetadata { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.user_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 let Some(ref v) = self.system_labels.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.user_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<()> { - 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)?; - } - ::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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static MonitoredResourceMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - 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 ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n#google/api/monitored_resource.proto\x12\ngoogle.api\x1a\x16google/api\ - /label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x1cgoogle/protobuf\ - /struct.proto\"\xfb\x01\n\x1bMonitoredResourceDescriptor\x12\x12\n\x04na\ - me\x18\x05\x20\x01(\tR\x04name\x12\x12\n\x04type\x18\x01\x20\x01(\tR\x04\ - type\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12\x20\n\ - \x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\x123\n\x06labels\x18\ - \x04\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\x06labels\x12:\n\x0cl\ - aunch_stage\x18\x07\x20\x01(\x0e2\x17.google.api.LaunchStageR\x0blaunchS\ - tage\"\xa5\x01\n\x11MonitoredResource\x12\x12\n\x04type\x18\x01\x20\x01(\ - \tR\x04type\x12A\n\x06labels\x18\x02\x20\x03(\x0b2).google.api.Monitored\ - Resource.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\x01\"\xf0\x01\n\x19MonitoredResourceMetadata\x12<\n\rsystem_la\ - bels\x18\x01\x20\x01(\x0b2\x17.google.protobuf.StructR\x0csystemLabels\ - \x12V\n\x0buser_labels\x18\x02\x20\x03(\x0b25.google.api.MonitoredResour\ - ceMetadata.UserLabelsEntryR\nuserLabels\x1a=\n\x0fUserLabelsEntry\x12\ - \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\x93*\n\x06\x12\x04\x0e\0u\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\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\xa3\x04\n\x02\x04\0\ - \x12\x04'\0E\x01\x1a\x96\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\ - 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\ - \x20this\x20object\x20and\n\x20{project_id}\x20is\x20a\x20project\x20ID\ - \x20that\x20provides\x20API-specific\x20context\x20for\n\x20accessing\ - \x20the\x20type.\x20\x20APIs\x20that\x20do\x20not\x20use\x20project\x20i\ - nformation\x20can\x20use\x20the\n\x20resource\x20name\x20format\x20`\"mo\ - nitoredResourceDescriptors/{type}\"`.\n\n\r\n\x05\x04\0\x02\0\x04\x12\ - \x04.\x02'%\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\ - \x8c\x01\n\x04\x04\0\x02\x01\x12\x032\x02\x12\x1a\x7f\x20Required.\x20Th\ - e\x20monitored\x20resource\x20type.\x20For\x20example,\x20the\x20type\n\ - \x20`\"cloudsql_database\"`\x20represents\x20databases\x20in\x20Google\ - \x20Cloud\x20SQL.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x042\x02.\x12\n\x0c\ - \n\x05\x04\0\x02\x01\x05\x12\x032\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\ - \x12\x032\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x032\x10\x11\n\xf5\x01\n\ - \x04\x04\0\x02\x02\x12\x038\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\r\n\x05\x04\0\x02\x02\x04\x12\x048\ - \x022\x12\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x038\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x02\x01\x12\x038\t\x15\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x038\x18\ - \x19\nt\n\x04\x04\0\x02\x03\x12\x03<\x02\x19\x1ag\x20Optional.\x20A\x20d\ - etailed\x20description\x20of\x20the\x20monitored\x20resource\x20type\x20\ - that\x20might\n\x20be\x20used\x20in\x20documentation.\n\n\r\n\x05\x04\0\ - \x02\x03\x04\x12\x04<\x028\x1a\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\x03A\x02\ - &\x1a\xd3\x01\x20Required.\x20A\x20set\x20of\x20labels\x20used\x20to\x20\ - describe\x20instances\x20of\x20this\x20monitored\n\x20resource\x20type.\ - \x20For\x20example,\x20an\x20individual\x20Google\x20Cloud\x20SQL\x20dat\ - abase\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\x03A\x02\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03A\x0b\x1a\n\x0c\n\ - \x05\x04\0\x02\x04\x01\x12\x03A\x1b!\n\x0c\n\x05\x04\0\x02\x04\x03\x12\ - \x03A$%\nO\n\x04\x04\0\x02\x05\x12\x03D\x02\x1f\x1aB\x20Optional.\x20The\ - \x20launch\x20stage\x20of\x20the\x20monitored\x20resource\x20definition.\ - \n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04D\x02A&\n\x0c\n\x05\x04\0\x02\x05\ - \x06\x12\x03D\x02\r\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03D\x0e\x1a\n\x0c\ - \n\x05\x04\0\x02\x05\x03\x12\x03D\x1d\x1e\n\xcb\x06\n\x02\x04\x01\x12\ - \x04T\0^\x01\x1a\xbe\x06\x20An\x20object\x20representing\x20a\x20resourc\ - e\x20that\x20can\x20be\x20used\x20for\x20monitoring,\x20logging,\n\x20bi\ - lling,\x20or\x20other\x20purposes.\x20Examples\x20include\x20virtual\x20\ - machine\x20instances,\n\x20databases,\x20and\x20storage\x20devices\x20su\ - ch\x20as\x20disks.\x20The\x20`type`\x20field\x20identifies\x20a\n\x20[Mo\ - nitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]\x20ob\ - ject\x20that\x20describes\x20the\x20resource's\n\x20schema.\x20Informati\ - on\x20in\x20the\x20`labels`\x20field\x20identifies\x20the\x20actual\x20r\ - esource\x20and\n\x20its\x20attributes\x20according\x20to\x20the\x20schem\ - a.\x20For\x20example,\x20a\x20particular\x20Compute\n\x20Engine\x20VM\ - \x20instance\x20could\x20be\x20represented\x20by\x20the\x20following\x20\ - object,\x20because\x20the\n\x20[MonitoredResourceDescriptor][google.api.\ - MonitoredResourceDescriptor]\x20for\x20`\"gce_instance\"`\x20has\x20labe\ - ls\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\x03T\x08\x19\n\ - \xfb\x01\n\x04\x04\x01\x02\0\x12\x03X\x02\x12\x1a\xed\x01\x20Required.\ - \x20The\x20monitored\x20resource\x20type.\x20This\x20field\x20must\x20ma\ - tch\n\x20the\x20`type`\x20field\x20of\x20a\x20[MonitoredResourceDescript\ - or][google.api.MonitoredResourceDescriptor]\x20object.\x20For\n\x20examp\ - le,\x20the\x20type\x20of\x20a\x20Compute\x20Engine\x20VM\x20instance\x20\ - is\x20`gce_instance`.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04X\x02T\x1b\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\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03X\x10\x11\n\xd7\ - \x01\n\x04\x04\x01\x02\x01\x12\x03]\x02!\x1a\xc9\x01\x20Required.\x20Val\ - ues\x20for\x20all\x20of\x20the\x20labels\x20listed\x20in\x20the\x20assoc\ - iated\x20monitored\n\x20resource\x20descriptor.\x20For\x20example,\x20Co\ - mpute\x20Engine\x20VM\x20instances\x20use\x20the\n\x20labels\x20`\"proje\ - ct_id\"`,\x20`\"instance_id\"`,\x20and\x20`\"zone\"`.\n\n\r\n\x05\x04\ - \x01\x02\x01\x04\x12\x04]\x02X\x12\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\ - \x04f\0u\x01\x1a\xac\x03\x20Auxiliary\x20metadata\x20for\x20a\x20[Monito\ - redResource][google.api.MonitoredResource]\x20object.\n\x20[MonitoredRes\ - ource][google.api.MonitoredResource]\x20objects\x20contain\x20the\x20min\ - imum\x20set\x20of\x20information\x20to\n\x20uniquely\x20identify\x20a\ - \x20monitored\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\x20metadata\x20in\x20this\x20message.\n\n\n\n\x03\x04\x02\x01\ - \x12\x03f\x08!\n\xa1\x03\n\x04\x04\x02\x02\0\x12\x03q\x02+\x1a\x93\x03\ - \x20Output\x20only.\x20Values\x20for\x20predefined\x20system\x20metadata\ - \x20labels.\n\x20System\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\x20label\x20values\x20can\x20be\x20only\x20strings,\x20Bool\ - ean\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\r\ - \n\x05\x04\x02\x02\0\x04\x12\x04q\x02f#\n\x0c\n\x05\x04\x02\x02\0\x06\ - \x12\x03q\x02\x18\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03q\x19&\n\x0c\n\ - \x05\x04\x02\x02\0\x03\x12\x03q)*\nB\n\x04\x04\x02\x02\x01\x12\x03t\x02&\ - \x1a5\x20Output\x20only.\x20A\x20map\x20of\x20user-defined\x20metadata\ - \x20labels.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04t\x02q+\n\x0c\n\x05\ - \x04\x02\x02\x01\x06\x12\x03t\x02\x15\n\x0c\n\x05\x04\x02\x02\x01\x01\ - \x12\x03t\x16!\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03t$%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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitoring.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitoring.rs deleted file mode 100644 index 57b355d429..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitoring.rs +++ /dev/null @@ -1,568 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/monitoring.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Monitoring { - // message fields - pub producer_destinations: ::protobuf::RepeatedField, - pub consumer_destinations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Monitoring { - fn default() -> &'a Monitoring { - ::default_instance() - } -} - -impl Monitoring { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.consumer_destinations)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.producer_destinations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 += ::protobuf::rt::unknown_fields_size(self.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.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)?; - }; - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Monitoring { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Monitoring::new) - } -} - -impl ::protobuf::Clear for Monitoring { - fn clear(&mut self) { - self.producer_destinations.clear(); - self.consumer_destinations.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[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()) - } - - // repeated string metrics = 2; - - - pub fn get_metrics(&self) -> &[::std::string::String] { - &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<::std::string::String>) { - self.metrics = v; - } - - // 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()) - } -} - -impl ::protobuf::Message for Monitoring_MonitoringDestination { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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())?; - }, - }; - } - ::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); - } - 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)?; - } - 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 new() -> Monitoring_MonitoringDestination { - Monitoring_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 default_instance() -> &'static Monitoring_MonitoringDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Monitoring_MonitoringDestination::new) - } -} - -impl ::protobuf::Clear for Monitoring_MonitoringDestination { - fn clear(&mut self) { - self.monitored_resource.clear(); - self.metrics.clear(); - self.unknown_fields.clear(); - } -} - -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 ::protobuf::reflect::ProtobufValue for Monitoring_MonitoringDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1bgoogle/api/monitoring.proto\x12\ngoogle.api\"\xb4\x02\n\nMonitorin\ - g\x12a\n\x15producer_destinations\x18\x01\x20\x03(\x0b2,.google.api.Moni\ - toring.MonitoringDestinationR\x14producerDestinations\x12a\n\x15consumer\ - _destinations\x18\x02\x20\x03(\x0b2,.google.api.Monitoring.MonitoringDes\ - tinationR\x14consumerDestinations\x1a`\n\x15MonitoringDestination\x12-\n\ - \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\xe2\x20\n\x06\x12\x04\x0e\0h\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\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\0h\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/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\x02W\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\x9a\ - \x01\n\x06\x04\0\x03\0\x02\0\x12\x03R\x04\"\x1a\x8a\x01\x20The\x20monito\ - red\x20resource\x20type.\x20The\x20type\x20must\x20be\x20defined\x20in\n\ - \x20[Service.monitored_resources][google.api.Service.monitored_resources\ - ]\x20section.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04R\x04O!\n\x0e\n\ - \x07\x04\0\x03\0\x02\0\x05\x12\x03R\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\ - \x01\x12\x03R\x0b\x1d\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03R\x20!\n\ - \xa5\x01\n\x06\x04\0\x03\0\x02\x01\x12\x03V\x04\x20\x1a\x95\x01\x20Types\ - \x20of\x20the\x20metrics\x20to\x20report\x20to\x20this\x20monitoring\x20\ - destination.\n\x20Each\x20type\x20must\x20be\x20defined\x20in\x20[Servic\ - e.metrics][google.api.Service.metrics]\x20section.\n\n\x0e\n\x07\x04\0\ - \x03\0\x02\x01\x04\x12\x03V\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\ - \x12\x03V\r\x13\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x03V\x14\x1b\n\ - \x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03V\x1e\x1f\n\x9e\x03\n\x04\x04\ - \0\x02\0\x12\x03_\x02;\x1a\x90\x03\x20Monitoring\x20configurations\x20fo\ - r\x20sending\x20metrics\x20to\x20the\x20producer\x20project.\n\x20There\ - \x20can\x20be\x20multiple\x20producer\x20destinations.\x20A\x20monitored\ - \x20resource\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\0\x04\ - \x12\x03_\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03_\x0b\x20\n\x0c\n\x05\ - \x04\0\x02\0\x01\x12\x03_!6\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03_9:\n\x9e\ - \x03\n\x04\x04\0\x02\x01\x12\x03g\x02;\x1a\x90\x03\x20Monitoring\x20conf\ - igurations\x20for\x20sending\x20metrics\x20to\x20the\x20consumer\x20proj\ - ect.\n\x20There\x20can\x20be\x20multiple\x20consumer\x20destinations.\ - \x20A\x20monitored\x20resource\x20type\x20may\n\x20appear\x20in\x20multi\ - ple\x20monitoring\x20destinations\x20if\x20different\x20aggregations\x20\ - are\n\x20needed\x20for\x20different\x20sets\x20of\x20metrics\x20associat\ - ed\x20with\x20that\x20monitored\n\x20resource\x20type.\x20A\x20monitored\ - \x20resource\x20and\x20metric\x20pair\x20may\x20only\x20be\x20used\x20on\ - ce\n\x20in\x20the\x20Monitoring\x20configuration.\n\n\x0c\n\x05\x04\0\ - \x02\x01\x04\x12\x03g\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03g\x0b\ - \x20\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03g!6\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x03g9: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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/quota.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/quota.rs deleted file mode 100644 index 802c871a0a..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/quota.rs +++ /dev/null @@ -1,1175 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/quota.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Quota { - // message fields - pub limits: ::protobuf::RepeatedField, - pub metric_rules: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Quota { - fn default() -> &'a Quota { - ::default_instance() - } -} - -impl Quota { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_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.limits { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 += ::protobuf::rt::unknown_fields_size(self.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.limits { - 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.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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Quota { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Quota::new) - } -} - -impl ::protobuf::Clear for Quota { - fn clear(&mut self) { - self.limits.clear(); - self.metric_rules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MetricRule { - // message fields - pub selector: ::std::string::String, - pub metric_costs: ::std::collections::HashMap<::std::string::String, i64>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MetricRule { - fn default() -> &'a MetricRule { - ::default_instance() - } -} - -impl MetricRule { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(wire_type, is, &mut self.metric_costs)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - 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); - 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)?; - } - ::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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static MetricRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - 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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QuotaLimit { - // message fields - pub name: ::std::string::String, - pub description: ::std::string::String, - pub default_limit: i64, - pub max_limit: i64, - pub free_tier: i64, - pub duration: ::std::string::String, - pub metric: ::std::string::String, - pub unit: ::std::string::String, - pub values: ::std::collections::HashMap<::std::string::String, i64>, - pub display_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QuotaLimit { - fn default() -> &'a QuotaLimit { - ::default_instance() - } -} - -impl QuotaLimit { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 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; - }, - 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; - }, - 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; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.duration)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.metric)?; - }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.unit)?; - }, - 10 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(wire_type, is, &mut self.values)?; - }, - 12 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_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(6, &self.name); - } - if !self.description.is_empty() { - 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); - } - if self.max_limit != 0 { - my_size += ::protobuf::rt::value_size(4, self.max_limit, ::protobuf::wire_format::WireTypeVarint); - } - if self.free_tier != 0 { - my_size += ::protobuf::rt::value_size(7, self.free_tier, ::protobuf::wire_format::WireTypeVarint); - } - if !self.duration.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.duration); - } - if !self.metric.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.metric); - } - 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); - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(6, &self.name)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if self.default_limit != 0 { - os.write_int64(3, self.default_limit)?; - } - if self.max_limit != 0 { - os.write_int64(4, self.max_limit)?; - } - if self.free_tier != 0 { - os.write_int64(7, self.free_tier)?; - } - if !self.duration.is_empty() { - os.write_string(5, &self.duration)?; - } - if !self.metric.is_empty() { - os.write_string(8, &self.metric)?; - } - 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)?; - if !self.display_name.is_empty() { - os.write_string(12, &self.display_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() -> 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(); - self.default_limit = 0; - self.max_limit = 0; - self.free_tier = 0; - self.duration.clear(); - self.metric.clear(); - self.unit.clear(); - self.values.clear(); - self.display_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x16google/api/quota.proto\x12\ngoogle.api\"r\n\x05Quota\x12.\n\x06lim\ - its\x18\x03\x20\x03(\x0b2\x16.google.api.QuotaLimitR\x06limits\x129\n\ - \x0cmetric_rules\x18\x04\x20\x03(\x0b2\x16.google.api.MetricRuleR\x0bmet\ - ricRules\"\xb4\x01\n\nMetricRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\ - \tR\x08selector\x12J\n\x0cmetric_costs\x18\x02\x20\x03(\x0b2'.google.api\ - .MetricRule.MetricCostsEntryR\x0bmetricCosts\x1a>\n\x10MetricCostsEntry\ - \x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\ - \x20\x01(\x03R\x05value:\x028\x01\"\x83\x03\n\nQuotaLimit\x12\x12\n\x04n\ - ame\x18\x06\x20\x01(\tR\x04name\x12\x20\n\x0bdescription\x18\x02\x20\x01\ - (\tR\x0bdescription\x12#\n\rdefault_limit\x18\x03\x20\x01(\x03R\x0cdefau\ - ltLimit\x12\x1b\n\tmax_limit\x18\x04\x20\x01(\x03R\x08maxLimit\x12\x1b\n\ - \tfree_tier\x18\x07\x20\x01(\x03R\x08freeTier\x12\x1a\n\x08duration\x18\ - \x05\x20\x01(\tR\x08duration\x12\x16\n\x06metric\x18\x08\x20\x01(\tR\x06\ - metric\x12\x12\n\x04unit\x18\t\x20\x01(\tR\x04unit\x12:\n\x06values\x18\ - \n\x20\x03(\x0b2\".google.api.QuotaLimit.ValuesEntryR\x06values\x12!\n\ - \x0cdisplay_name\x18\x0c\x20\x01(\tR\x0bdisplayName\x1a9\n\x0bValuesEntr\ - 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\xea8\n\x07\x12\x05\x0e\0\xb6\x01\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\x87\r\n\x02\x04\0\x12\x04K\0R\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\ - vice\x20configuration\x20defines\x20a\x20set\x20of\x20metrics.\n\x20-\ - \x20For\x20API\x20calls,\x20the\x20quota.metric_rules\x20maps\x20methods\ - \x20to\x20metrics\x20with\n\x20\x20\x20corresponding\x20costs.\n\x20-\ - \x20The\x20quota.limits\x20defines\x20limits\x20on\x20the\x20metrics,\ - \x20which\x20will\x20be\x20used\x20for\n\x20\x20\x20quota\x20checks\x20a\ - t\x20runtime.\n\n\x20An\x20example\x20quota\x20configuration\x20in\x20ya\ - ml\x20format:\n\n\x20\x20\x20\x20quota:\n\x20\x20\x20\x20\x20\x20limits:\ - \n\n\x20\x20\x20\x20\x20\x20-\x20name:\x20apiWriteQpsPerProject\n\x20\ - \x20\x20\x20\x20\x20\x20\x20metric:\x20library.googleapis.com/write_call\ - 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\x03K\x08\r\n@\n\x04\ - \x04\0\x02\0\x12\x03M\x02!\x1a3\x20List\x20of\x20`QuotaLimit`\x20definit\ - ions\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\ - \nl\n\x04\x04\0\x02\x01\x12\x03Q\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\0c\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\x90\x01\n\x04\x04\x01\x02\0\x12\x03Z\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\x20details.\n\n\r\n\x05\x04\x01\x02\0\x04\ - \x12\x04Z\x02V\x14\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03Z\x02\x08\n\x0c\ - \n\x05\x04\x01\x02\0\x01\x12\x03Z\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\ - \x12\x03Z\x14\x15\n\xa6\x02\n\x04\x04\x01\x02\x01\x12\x03b\x02&\x1a\x98\ - \x02\x20Metrics\x20to\x20update\x20when\x20the\x20selected\x20methods\ - \x20are\x20called,\x20and\x20the\x20associated\n\x20cost\x20applied\x20t\ - o\x20each\x20metric.\n\n\x20The\x20key\x20of\x20the\x20map\x20is\x20the\ - \x20metric\x20name,\x20and\x20the\x20values\x20are\x20the\x20amount\n\ - \x20increased\x20for\x20the\x20metric\x20against\x20which\x20the\x20quot\ - a\x20limits\x20are\x20defined.\n\x20The\x20value\x20must\x20not\x20be\ - \x20negative.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04b\x02Z\x16\n\x0c\n\ - \x05\x04\x01\x02\x01\x06\x12\x03b\x02\x14\n\x0c\n\x05\x04\x01\x02\x01\ - \x01\x12\x03b\x15!\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03b$%\n\xd8\x01\ - \n\x02\x04\x02\x12\x05h\0\xb6\x01\x01\x1a\xca\x01\x20`QuotaLimit`\x20def\ - ines\x20a\x20specific\x20limit\x20that\x20applies\x20over\x20a\x20specif\ - ied\x20duration\n\x20for\x20a\x20limit\x20type.\x20There\x20can\x20be\ - \x20at\x20most\x20one\x20limit\x20for\x20a\x20duration\x20and\x20limit\n\ - \x20type\x20combination\x20defined\x20within\x20a\x20`QuotaGroup`.\n\n\n\ - \n\x03\x04\x02\x01\x12\x03h\x08\x12\n\xeb\x01\n\x04\x04\x02\x02\0\x12\ - \x03o\x02\x12\x1a\xdd\x01\x20Name\x20of\x20the\x20quota\x20limit.\n\n\ - \x20The\x20name\x20must\x20be\x20provided,\x20and\x20it\x20must\x20be\ - \x20unique\x20within\x20the\x20service.\x20The\n\x20name\x20can\x20only\ - \x20include\x20alphanumeric\x20characters\x20as\x20well\x20as\x20'-'.\n\ - \n\x20The\x20maximum\x20length\x20of\x20the\x20limit\x20name\x20is\x2064\ - \x20characters.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04o\x02h\x14\n\x0c\n\ - \x05\x04\x02\x02\0\x05\x12\x03o\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\ - \x12\x03o\t\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03o\x10\x11\n\xde\x01\n\ - \x04\x04\x02\x02\x01\x12\x03t\x02\x19\x1a\xd0\x01\x20Optional.\x20User-v\ - isible,\x20extended\x20description\x20for\x20this\x20quota\x20limit.\n\ - \x20Should\x20be\x20used\x20only\x20when\x20more\x20context\x20is\x20nee\ - ded\x20to\x20understand\x20this\x20limit\n\x20than\x20provided\x20by\x20\ - the\x20limit's\x20display\x20name\x20(see:\x20`display_name`).\n\n\r\n\ - \x05\x04\x02\x02\x01\x04\x12\x04t\x02o\x12\n\x0c\n\x05\x04\x02\x02\x01\ - \x05\x12\x03t\x02\x08\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03t\t\x14\n\ - \x0c\n\x05\x04\x02\x02\x01\x03\x12\x03t\x17\x18\n\xe8\x03\n\x04\x04\x02\ - \x02\x02\x12\x04\x80\x01\x02\x1a\x1a\xd9\x03\x20Default\x20number\x20of\ - \x20tokens\x20that\x20can\x20be\x20consumed\x20during\x20the\x20specifie\ - d\n\x20duration.\x20This\x20is\x20the\x20number\x20of\x20tokens\x20assig\ - ned\x20when\x20a\x20client\n\x20application\x20developer\x20activates\ - \x20the\x20service\x20for\x20his/her\x20project.\n\n\x20Specifying\x20a\ - \x20value\x20of\x200\x20will\x20block\x20all\x20requests.\x20This\x20can\ - \x20be\x20used\x20if\x20you\n\x20are\x20provisioning\x20quota\x20to\x20s\ - elected\x20consumers\x20and\x20blocking\x20others.\n\x20Similarly,\x20a\ - \x20value\x20of\x20-1\x20will\x20indicate\x20an\x20unlimited\x20quota.\ - \x20No\x20other\n\x20negative\x20values\x20are\x20allowed.\n\n\x20Used\ - \x20by\x20group-based\x20quotas\x20only.\n\n\x0e\n\x05\x04\x02\x02\x02\ - \x04\x12\x05\x80\x01\x02t\x19\n\r\n\x05\x04\x02\x02\x02\x05\x12\x04\x80\ - \x01\x02\x07\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x80\x01\x08\x15\n\r\n\ - \x05\x04\x02\x02\x02\x03\x12\x04\x80\x01\x18\x19\n\xc5\x03\n\x04\x04\x02\ - \x02\x03\x12\x04\x8b\x01\x02\x16\x1a\xb6\x03\x20Maximum\x20number\x20of\ - \x20tokens\x20that\x20can\x20be\x20consumed\x20during\x20the\x20specifie\ - d\n\x20duration.\x20Client\x20application\x20developers\x20can\x20overri\ - de\x20the\x20default\x20limit\x20up\n\x20to\x20this\x20maximum.\x20If\ - \x20specified,\x20this\x20value\x20cannot\x20be\x20set\x20to\x20a\x20val\ - ue\x20less\n\x20than\x20the\x20default\x20limit.\x20If\x20not\x20specifi\ - ed,\x20it\x20is\x20set\x20to\x20the\x20default\x20limit.\n\n\x20To\x20al\ - low\x20clients\x20to\x20apply\x20overrides\x20with\x20no\x20upper\x20bou\ - nd,\x20set\x20this\x20to\x20-1,\n\x20indicating\x20unlimited\x20maximum\ - \x20quota.\n\n\x20Used\x20by\x20group-based\x20quotas\x20only.\n\n\x0f\n\ - \x05\x04\x02\x02\x03\x04\x12\x06\x8b\x01\x02\x80\x01\x1a\n\r\n\x05\x04\ - \x02\x02\x03\x05\x12\x04\x8b\x01\x02\x07\n\r\n\x05\x04\x02\x02\x03\x01\ - \x12\x04\x8b\x01\x08\x11\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\x8b\x01\ - \x14\x15\n\xbf\x03\n\x04\x04\x02\x02\x04\x12\x04\x95\x01\x02\x16\x1a\xb0\ - \x03\x20Free\x20tier\x20value\x20displayed\x20in\x20the\x20Developers\ - \x20Console\x20for\x20this\x20limit.\n\x20The\x20free\x20tier\x20is\x20t\ - he\x20number\x20of\x20tokens\x20that\x20will\x20be\x20subtracted\x20from\ - \x20the\n\x20billed\x20amount\x20when\x20billing\x20is\x20enabled.\n\x20\ - This\x20field\x20can\x20only\x20be\x20set\x20on\x20a\x20limit\x20with\ - \x20duration\x20\"1d\",\x20in\x20a\x20billable\n\x20group;\x20it\x20is\ - \x20invalid\x20on\x20any\x20other\x20limit.\x20If\x20this\x20field\x20is\ - \x20not\x20set,\x20it\n\x20defaults\x20to\x200,\x20indicating\x20that\ - \x20there\x20is\x20no\x20free\x20tier\x20for\x20this\x20service.\n\n\x20\ - Used\x20by\x20group-based\x20quotas\x20only.\n\n\x0f\n\x05\x04\x02\x02\ - \x04\x04\x12\x06\x95\x01\x02\x8b\x01\x16\n\r\n\x05\x04\x02\x02\x04\x05\ - \x12\x04\x95\x01\x02\x07\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\x95\x01\ - \x08\x11\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\x95\x01\x14\x15\nv\n\x04\ - \x04\x02\x02\x05\x12\x04\x9a\x01\x02\x16\x1ah\x20Duration\x20of\x20this\ - \x20limit\x20in\x20textual\x20notation.\x20Must\x20be\x20\"100s\"\x20or\ - \x20\"1d\".\n\n\x20Used\x20by\x20group-based\x20quotas\x20only.\n\n\x0f\ - \n\x05\x04\x02\x02\x05\x04\x12\x06\x9a\x01\x02\x95\x01\x16\n\r\n\x05\x04\ - \x02\x02\x05\x05\x12\x04\x9a\x01\x02\x08\n\r\n\x05\x04\x02\x02\x05\x01\ - \x12\x04\x9a\x01\t\x11\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\x9a\x01\x14\ - \x15\n\xcb\x01\n\x04\x04\x02\x02\x06\x12\x04\x9f\x01\x02\x14\x1a\xbc\x01\ - \x20The\x20name\x20of\x20the\x20metric\x20this\x20quota\x20limit\x20appl\ - ies\x20to.\x20The\x20quota\x20limits\x20with\n\x20the\x20same\x20metric\ - \x20will\x20be\x20checked\x20together\x20during\x20runtime.\x20The\x20me\ - tric\x20must\x20be\n\x20defined\x20within\x20the\x20service\x20config.\n\ - \n\x0f\n\x05\x04\x02\x02\x06\x04\x12\x06\x9f\x01\x02\x9a\x01\x16\n\r\n\ - \x05\x04\x02\x02\x06\x05\x12\x04\x9f\x01\x02\x08\n\r\n\x05\x04\x02\x02\ - \x06\x01\x12\x04\x9f\x01\t\x0f\n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\x9f\ - \x01\x12\x13\n\xf8\x02\n\x04\x04\x02\x02\x07\x12\x04\xaa\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\x0f\n\x05\x04\ - \x02\x02\x07\x04\x12\x06\xaa\x01\x02\x9f\x01\x14\n\r\n\x05\x04\x02\x02\ - \x07\x05\x12\x04\xaa\x01\x02\x08\n\r\n\x05\x04\x02\x02\x07\x01\x12\x04\ - \xaa\x01\t\r\n\r\n\x05\x04\x02\x02\x07\x03\x12\x04\xaa\x01\x10\x11\n\xd5\ - \x01\n\x04\x04\x02\x02\x08\x12\x04\xaf\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\x20sp\ - ecified\x20unit.\x20Currently\x20only\x20STANDARD\x20is\x20supported.\n\ - \n\x0f\n\x05\x04\x02\x02\x08\x04\x12\x06\xaf\x01\x02\xaa\x01\x12\n\r\n\ - \x05\x04\x02\x02\x08\x06\x12\x04\xaf\x01\x02\x14\n\r\n\x05\x04\x02\x02\ - \x08\x01\x12\x04\xaf\x01\x15\x1b\n\r\n\x05\x04\x02\x02\x08\x03\x12\x04\ - \xaf\x01\x1e\x20\n\xfe\x01\n\x04\x04\x02\x02\t\x12\x04\xb5\x01\x02\x1b\ - \x1a\xef\x01\x20User-visible\x20display\x20name\x20for\x20this\x20limit.\ - \n\x20Optional.\x20If\x20not\x20set,\x20the\x20UI\x20will\x20provide\x20\ - a\x20default\x20display\x20name\x20based\x20on\n\x20the\x20quota\x20conf\ - iguration.\x20This\x20field\x20can\x20be\x20used\x20to\x20override\x20th\ - e\x20default\n\x20display\x20name\x20generated\x20from\x20the\x20configu\ - ration.\n\n\x0f\n\x05\x04\x02\x02\t\x04\x12\x06\xb5\x01\x02\xaf\x01!\n\r\ - \n\x05\x04\x02\x02\t\x05\x12\x04\xb5\x01\x02\x08\n\r\n\x05\x04\x02\x02\t\ - \x01\x12\x04\xb5\x01\t\x15\n\r\n\x05\x04\x02\x02\t\x03\x12\x04\xb5\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/resource.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/resource.rs deleted file mode 100644 index 5d334dea61..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/resource.rs +++ /dev/null @@ -1,1056 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/resource.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ResourceDescriptor { - // message fields - pub field_type: ::std::string::String, - pub pattern: ::protobuf::RepeatedField<::std::string::String>, - pub name_field: ::std::string::String, - pub history: ResourceDescriptor_History, - pub plural: ::std::string::String, - pub singular: ::std::string::String, - pub style: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ResourceDescriptor { - fn default() -> &'a ResourceDescriptor { - ::default_instance() - } -} - -impl ResourceDescriptor { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name_field)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.history, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.plural)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.singular)?; - }, - 10 => { - ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.style, 10, &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.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_type); - } - for value in &self.pattern { - my_size += ::protobuf::rt::string_size(2, &value); - }; - 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.plural.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.plural); - } - 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 - } - - 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)?; - } - for v in &self.pattern { - os.write_string(2, &v)?; - }; - 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.plural.is_empty() { - os.write_string(5, &self.plural)?; - } - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static ResourceDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResourceDescriptor::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ResourceDescriptor_History { - HISTORY_UNSPECIFIED = 0, - ORIGINALLY_SINGLE_PATTERN = 1, - FUTURE_MULTI_PATTERN = 2, -} - -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(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 values() -> &'static [Self] { - static values: &'static [ResourceDescriptor_History] = &[ - ResourceDescriptor_History::HISTORY_UNSPECIFIED, - ResourceDescriptor_History::ORIGINALLY_SINGLE_PATTERN, - ResourceDescriptor_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 - } - } - - 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()) - }) - } -} - -impl ::std::marker::Copy for ResourceDescriptor_Style { -} - -impl ::std::default::Default for ResourceDescriptor_Style { - fn default() -> Self { - ResourceDescriptor_Style::STYLE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ResourceDescriptor_Style { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ResourceReference { - // message fields - pub field_type: ::std::string::String, - pub child_type: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ResourceReference { - fn default() -> &'a ResourceReference { - ::default_instance() - } -} - -impl ResourceReference { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.child_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.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_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 - } - - 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.child_type.is_empty() { - os.write_string(2, &self.child_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() -> 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 default_instance() -> &'static ResourceReference { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResourceReference::new) - } -} - -impl ::protobuf::Clear for ResourceReference { - fn clear(&mut self) { - self.field_type.clear(); - self.child_type.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -/// 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_definition: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::FileOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldRepeated { field_number: 1053, phantom: ::std::marker::PhantomData }; - - pub const resource: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 1053, phantom: ::std::marker::PhantomData }; -} - -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\ - \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\xf3U\n\x07\x12\x05\x0e\0\xaa\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\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\ - \x0b\n\x03\x07\0\x04\x12\x04\x1e\x02\x1b%\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\x20describes\x20a\x20resource\x20\ - definition\x20without\x20a\x20corresponding\n\x20message;\x20see\x20[Res\ - ourceDescriptor][].\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[Resou\ - rceDescriptor][].\n\n\n\n\x03\x07\x02\x02\x12\x03'\x07%\n\x0b\n\x03\x07\ - \x02\x04\x12\x04*\x02''\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\x92\x20\n\ - \x02\x04\0\x12\x06\x99\x01\0\x83\x02\x01\x1a\x83\x20\x20A\x20simple\x20d\ - escriptor\x20of\x20a\x20resource\x20type.\n\n\x20ResourceDescriptor\x20a\ - nnotates\x20a\x20resource\x20message\x20(either\x20by\x20means\x20of\x20\ - a\n\x20protobuf\x20annotation\x20or\x20use\x20in\x20the\x20service\x20co\ - nfig),\x20and\x20associates\x20the\n\x20resource's\x20schema,\x20the\x20\ - resource\x20type,\x20and\x20the\x20pattern\x20of\x20the\x20resource\x20n\ - ame.\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}/{k\ - ind}.\n\x20\x20\x20\x20\x20\x20\x20//\x20For\x20Kubernetes\x20resources,\ - \x20the\x20format\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\x20name_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20pattern:\x20\"projects/{project}/topics/{topic}\"\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresou\ - rcemanager.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\x20ResourceDescriptor\x20Yaml\x20config\x20will\ - \x20look\x20like:\n\n\x20\x20\x20\x20\x20resources:\n\x20\x20\x20\x20\ - \x20-\x20type:\x20\"pubsub.googleapis.com/Topic\"\n\x20\x20\x20\x20\x20\ - \x20\x20name_descriptor:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20patte\ - rn:\x20\"projects/{project}/topics/{topic}\"\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googleapis.co\ - m/Project\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name_ext\ - ractor:\x20\"projects/{project}\"\n\n\x20Sometimes,\x20resources\x20have\ - \x20multiple\x20patterns,\x20typically\x20because\x20they\x20can\n\x20li\ - ve\x20under\x20multiple\x20parents.\n\n\x20Example:\n\n\x20\x20\x20\x20\ - \x20message\x20LogEntry\x20{\n\x20\x20\x20\x20\x20\x20\x20option\x20(goo\ - gle.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.googleapi\ - s.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\x20\x20name_descriptor:\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"folders/{folder}/l\ - ogs/{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}\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20name_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\ - attern:\x20\"organizations/{organization}/logs/{log}\"\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googl\ - eapis.com/Organization\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pa\ - rent_name_extractor:\x20\"organizations/{organization}\"\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20name_desc\ - riptor:\x20{\n\x20\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/BillingAcco\ - unt\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name_extractor\ - :\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\x20\ - The\x20ResourceDescriptor\x20Yaml\x20config\x20will\x20look\x20like:\n\n\ - \x20\x20\x20\x20\x20resources:\n\x20\x20\x20\x20\x20-\x20type:\x20'loggi\ - ng.googleapis.com/LogEntry'\n\x20\x20\x20\x20\x20\x20\x20name_descriptor\ - :\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\x20\"projects/{proj\ - ect}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_ty\ - pe:\x20\"cloudresourcemanager.googleapis.com/Project\"\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20parent_name_extractor:\x20\"projects/{projec\ - t}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\x20\"folders/{fo\ - lder}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_t\ - ype:\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-\x20pattern:\x20\"organizations\ - /{organization}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20parent_type:\x20\"cloudresourcemanager.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-\ - \x20pattern:\x20\"billingAccounts/{billing_account}/logs/{log}\"\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"billing.google\ - apis.com/BillingAccount\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\ - arent_name_extractor:\x20\"billingAccounts/{billing_account}\"\n\n\x20Fo\ - r\x20flexible\x20resources,\x20the\x20resource\x20name\x20doesn't\x20con\ - tain\x20parent\x20names,\x20but\n\x20the\x20resource\x20itself\x20has\ - \x20parents\x20for\x20policy\x20evaluation.\n\n\x20Example:\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.googleapis.com/Pr\ - oject\"\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.googleapis.com/Fo\ - lder\"\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\x20like:\n\n\x20\x20\x20\x20\x20resources:\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.googleapis.co\ - m/Project\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\x20\"shel\ - ves/{shelf}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_type:\ - \x20\"cloudresourcemanager.googleapis.com/Folder\"\n\n\x0b\n\x03\x04\0\ - \x01\x12\x04\x99\x01\x08\x1a\nc\n\x04\x04\0\x04\0\x12\x06\x9c\x01\x02\ - \xa8\x01\x03\x1aS\x20A\x20description\x20of\x20the\x20historical\x20or\ - \x20future-looking\x20state\x20of\x20the\n\x20resource\x20pattern.\n\n\r\ - \n\x05\x04\0\x04\0\x01\x12\x04\x9c\x01\x07\x0e\n$\n\x06\x04\0\x04\0\x02\ - \0\x12\x04\x9e\x01\x04\x1c\x1a\x14\x20The\x20\"unset\"\x20value.\n\n\x0f\ - \n\x07\x04\0\x04\0\x02\0\x01\x12\x04\x9e\x01\x04\x17\n\x0f\n\x07\x04\0\ - \x04\0\x02\0\x02\x12\x04\x9e\x01\x1a\x1b\nz\n\x06\x04\0\x04\0\x02\x01\ - \x12\x04\xa2\x01\x04\"\x1aj\x20The\x20resource\x20originally\x20had\x20o\ - ne\x20pattern\x20and\x20launched\x20as\x20such,\x20and\n\x20additional\ - \x20patterns\x20were\x20added\x20later.\n\n\x0f\n\x07\x04\0\x04\0\x02\ - \x01\x01\x12\x04\xa2\x01\x04\x1d\n\x0f\n\x07\x04\0\x04\0\x02\x01\x02\x12\ - \x04\xa2\x01\x20!\n\xdc\x01\n\x06\x04\0\x04\0\x02\x02\x12\x04\xa7\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\xa7\x01\x04\x18\n\x0f\n\x07\x04\0\x04\0\x02\x02\x02\x12\x04\xa7\ - \x01\x1b\x1c\n\\\n\x04\x04\0\x04\x01\x12\x06\xab\x01\x02\xb8\x01\x03\x1a\ - L\x20A\x20flag\x20representing\x20a\x20specific\x20style\x20that\x20a\ - \x20resource\x20claims\x20to\x20conform\x20to.\n\n\r\n\x05\x04\0\x04\x01\ - \x01\x12\x04\xab\x01\x07\x0c\n4\n\x06\x04\0\x04\x01\x02\0\x12\x04\xad\ - \x01\x04\x1a\x1a$\x20The\x20unspecified\x20value.\x20Do\x20not\x20use.\n\ - \n\x0f\n\x07\x04\0\x04\x01\x02\0\x01\x12\x04\xad\x01\x04\x15\n\x0f\n\x07\ - \x04\0\x04\x01\x02\0\x02\x12\x04\xad\x01\x18\x19\n\xdb\x02\n\x06\x04\0\ - \x04\x01\x02\x01\x12\x04\xb7\x01\x04\x1d\x1a\xca\x02\x20This\x20resource\ - \x20is\x20intended\x20to\x20be\x20\"declarative-friendly\".\n\n\x20Decla\ - rative-friendly\x20resources\x20must\x20be\x20more\x20strictly\x20consis\ - tent,\x20and\n\x20setting\x20this\x20to\x20true\x20communicates\x20to\ - \x20tools\x20that\x20this\x20resource\x20should\n\x20adhere\x20to\x20dec\ - larative-friendly\x20expectations.\n\n\x20Note:\x20This\x20is\x20used\ - \x20by\x20the\x20API\x20linter\x20(linter.aip.dev)\x20to\x20enable\n\x20\ - additional\x20checks.\n\n\x0f\n\x07\x04\0\x04\x01\x02\x01\x01\x12\x04\ - \xb7\x01\x04\x18\n\x0f\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x04\xb7\x01\ - \x1b\x1c\n\xec\x03\n\x04\x04\0\x02\0\x12\x04\xc4\x01\x02\x12\x1a\xdd\x03\ - \x20The\x20resource\x20type.\x20It\x20must\x20be\x20in\x20the\x20format\ - \x20of\n\x20{service_name}/{resource_type_kind}.\x20The\x20`resource_typ\ - e_kind`\x20must\x20be\n\x20singular\x20and\x20must\x20not\x20include\x20\ - version\x20numbers.\n\n\x20Example:\x20`storage.googleapis.com/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\x20s\ - hould\x20start\x20with\x20an\x20upper\x20case\x20character\x20and\n\x20s\ - hould\x20use\x20PascalCase\x20(UpperCamelCase).\x20The\x20maximum\x20num\ - ber\x20of\n\x20characters\x20allowed\x20for\x20the\x20`resource_type_kin\ - d`\x20is\x20100.\n\n\x0f\n\x05\x04\0\x02\0\x04\x12\x06\xc4\x01\x02\xb8\ - \x01\x03\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xc4\x01\x02\x08\n\r\n\x05\x04\ - \0\x02\0\x01\x12\x04\xc4\x01\t\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xc4\ - \x01\x10\x11\n\xc5\x05\n\x04\x04\0\x02\x01\x12\x04\xd9\x01\x02\x1e\x1a\ - \xb6\x05\x20Optional.\x20The\x20relative\x20resource\x20name\x20pattern\ - \x20associated\x20with\x20this\x20resource\n\x20type.\x20The\x20DNS\x20p\ - refix\x20of\x20the\x20full\x20resource\x20name\x20shouldn't\x20be\x20spe\ - cified\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\"projects/{project}/knowledg\ - eBases/{knowledge_base}\"\n\n\x20The\x20components\x20in\x20braces\x20co\ - rrespond\x20to\x20the\x20IDs\x20for\x20each\x20resource\x20in\x20the\n\ - \x20hierarchy.\x20It\x20is\x20expected\x20that,\x20if\x20multiple\x20pat\ - terns\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\xd9\x01\x02\n\ - \n\r\n\x05\x04\0\x02\x01\x05\x12\x04\xd9\x01\x0b\x11\n\r\n\x05\x04\0\x02\ - \x01\x01\x12\x04\xd9\x01\x12\x19\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xd9\ - \x01\x1c\x1d\n\x87\x01\n\x04\x04\0\x02\x02\x12\x04\xdd\x01\x02\x18\x1ay\ - \x20Optional.\x20The\x20field\x20on\x20the\x20resource\x20that\x20design\ - ates\x20the\x20resource\x20name\n\x20field.\x20If\x20omitted,\x20this\ - \x20is\x20assumed\x20to\x20be\x20\"name\".\n\n\x0f\n\x05\x04\0\x02\x02\ - \x04\x12\x06\xdd\x01\x02\xd9\x01\x1e\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\ - \xdd\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xdd\x01\t\x13\n\r\n\ - \x05\x04\0\x02\x02\x03\x12\x04\xdd\x01\x16\x17\n\xcc\x04\n\x04\x04\0\x02\ - \x03\x12\x04\xee\x01\x02\x16\x1a\xbd\x04\x20Optional.\x20The\x20historic\ - al\x20or\x20future-looking\x20state\x20of\x20the\x20resource\x20pattern.\ - \n\n\x20Example:\n\n\x20\x20\x20\x20\x20//\x20The\x20InspectTemplate\x20\ - message\x20originally\x20only\x20supported\x20resource\n\x20\x20\x20\x20\ - \x20//\x20names\x20with\x20organization,\x20and\x20project\x20was\x20add\ - ed\x20later.\n\x20\x20\x20\x20\x20message\x20InspectTemplate\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\"dlp.googleapis.com/InspectTem\ - plate\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\"organizations/{organization}/inspectTemplates/{ins\ - pect_template}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"proj\ - ects/{project}/inspectTemplates/{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\x0f\n\x05\x04\0\x02\x03\ - \x04\x12\x06\xee\x01\x02\xdd\x01\x18\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\ - \xee\x01\x02\t\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xee\x01\n\x11\n\r\n\ - \x05\x04\0\x02\x03\x03\x12\x04\xee\x01\x14\x15\n\xe1\x03\n\x04\x04\0\x02\ - \x04\x12\x04\xf8\x01\x02\x14\x1a\xd2\x03\x20The\x20plural\x20name\x20use\ - d\x20in\x20the\x20resource\x20name\x20and\x20permission\x20names,\x20suc\ - h\x20as\n\x20'projects'\x20for\x20the\x20resource\x20name\x20of\x20'proj\ - ects/{project}'\x20and\x20the\x20permission\n\x20name\x20of\x20'cloudres\ - ourcemanager.googleapis.com/projects.get'.\x20It\x20is\x20the\x20same\n\ - \x20concept\x20of\x20the\x20`plural`\x20field\x20in\x20k8s\x20CRD\x20spe\ - c\n\x20https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-res\ - ources/custom-resource-definitions/\n\n\x20Note:\x20The\x20plural\x20for\ - m\x20is\x20required\x20even\x20for\x20singleton\x20resources.\x20See\n\ - \x20https://aip.dev/156\n\n\x0f\n\x05\x04\0\x02\x04\x04\x12\x06\xf8\x01\ - \x02\xee\x01\x16\n\r\n\x05\x04\0\x02\x04\x05\x12\x04\xf8\x01\x02\x08\n\r\ - \n\x05\x04\0\x02\x04\x01\x12\x04\xf8\x01\t\x0f\n\r\n\x05\x04\0\x02\x04\ - \x03\x12\x04\xf8\x01\x12\x13\n\xf9\x01\n\x04\x04\0\x02\x05\x12\x04\xfd\ - \x01\x02\x16\x1a\xea\x01\x20The\x20same\x20concept\x20of\x20the\x20`sing\ - ular`\x20field\x20in\x20k8s\x20CRD\x20spec\n\x20https://kubernetes.io/do\ - cs/tasks/access-kubernetes-api/custom-resources/custom-resource-definiti\ - ons/\n\x20Such\x20as\x20\"project\"\x20for\x20the\x20`resourcemanager.go\ - ogleapis.com/Project`\x20type.\n\n\x0f\n\x05\x04\0\x02\x05\x04\x12\x06\ - \xfd\x01\x02\xf8\x01\x14\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\xfd\x01\x02\ - \x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xfd\x01\t\x11\n\r\n\x05\x04\0\ - \x02\x05\x03\x12\x04\xfd\x01\x14\x15\n\xb4\x01\n\x04\x04\0\x02\x06\x12\ - \x04\x82\x02\x02\x1c\x1a\xa5\x01\x20Style\x20flag(s)\x20for\x20this\x20r\ - esource.\n\x20These\x20indicate\x20that\x20a\x20resource\x20is\x20expect\ - ed\x20to\x20conform\x20to\x20a\x20given\n\x20style.\x20See\x20the\x20spe\ - cific\x20style\x20flags\x20for\x20additional\x20information.\n\n\r\n\x05\ - \x04\0\x02\x06\x04\x12\x04\x82\x02\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\ - \x04\x82\x02\x0b\x10\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\x82\x02\x11\x16\ - \n\r\n\x05\x04\0\x02\x06\x03\x12\x04\x82\x02\x19\x1b\ni\n\x02\x04\x01\ - \x12\x06\x87\x02\0\xaa\x02\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\x87\x02\ - \x08\x19\n\x85\x04\n\x04\x04\x01\x02\0\x12\x04\x9c\x02\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\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\x9c\x02\ - \x02\x87\x02\x1b\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x9c\x02\x02\x08\n\r\ - \n\x05\x04\x01\x02\0\x01\x12\x04\x9c\x02\t\r\n\r\n\x05\x04\x01\x02\0\x03\ - \x12\x04\x9c\x02\x10\x11\n\xf0\x02\n\x04\x04\x01\x02\x01\x12\x04\xa9\x02\ - \x02\x18\x1a\xe1\x02\x20The\x20resource\x20type\x20of\x20a\x20child\x20c\ - ollection\x20that\x20the\x20annotated\x20field\n\x20references.\x20This\ - \x20is\x20useful\x20for\x20annotating\x20the\x20`parent`\x20field\x20tha\ - t\n\x20doesn't\x20have\x20a\x20fixed\x20resource\x20type.\n\n\x20Example\ - :\n\n\x20\x20\x20\x20\x20message\x20ListLogEntriesRequest\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20string\x20parent\x20=\x201\x20[(google.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\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xa9\ - \x02\x02\x9c\x02\x12\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xa9\x02\x02\ - \x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xa9\x02\t\x13\n\r\n\x05\x04\ - \x01\x02\x01\x03\x12\x04\xa9\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/service.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/service.rs deleted file mode 100644 index c315e296d7..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/service.rs +++ /dev/null @@ -1,1694 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/service.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Service { - // message fields - pub name: ::std::string::String, - pub title: ::std::string::String, - 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 config_version: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Service { - fn default() -> &'a Service { - ::default_instance() - } -} - -impl Service { - pub fn new() -> 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.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()) - } -} - -impl ::protobuf::Message for 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.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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; - }, - 22 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_project_id)?; - }, - 33 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.apis)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.types)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.enums)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.documentation)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.backend)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.http)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.quota)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authentication)?; - }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.context)?; - }, - 15 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.usage)?; - }, - 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)?; - }, - 23 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.logs)?; - }, - 24 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metrics)?; - }, - 25 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.monitored_resources)?; - }, - 26 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.billing)?; - }, - 27 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.logging)?; - }, - 28 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.monitoring)?; - }, - 29 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.system_parameters)?; - }, - 37 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_info)?; - }, - 20 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.config_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.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.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; - }; - for value in &self.types { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.enums { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.documentation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.backend.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.http.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.quota.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.authentication.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.context.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.usage.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.endpoints { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.control.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.logs { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.metrics { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_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; - }; - 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() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.system_parameters.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_info.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.config_version.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.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)?; - }; - 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)?; - }; - 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)?; - }; - 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(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(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(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(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(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(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)?; - } - 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)?; - }; - 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)?; - } - 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)?; - }; - 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)?; - }; - 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)?; - }; - 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(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(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(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(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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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<::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.name.clear(); - self.title.clear(); - self.producer_project_id.clear(); - self.id.clear(); - self.apis.clear(); - self.types.clear(); - self.enums.clear(); - self.documentation.clear(); - self.backend.clear(); - self.http.clear(); - self.quota.clear(); - self.authentication.clear(); - self.context.clear(); - self.usage.clear(); - self.endpoints.clear(); - self.control.clear(); - self.logs.clear(); - self.metrics.clear(); - self.monitored_resources.clear(); - self.billing.clear(); - self.logging.clear(); - self.monitoring.clear(); - self.system_parameters.clear(); - self.source_info.clear(); - self.config_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -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\ - \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\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ - \x04name\x12\x14\n\x05title\x18\x02\x20\x01(\tR\x05title\x12.\n\x13produ\ - cer_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.p\ - rotobuf.TypeR\x05types\x12+\n\x05enums\x18\x05\x20\x03(\x0b2\x15.google.\ - protobuf.EnumR\x05enums\x12?\n\rdocumentation\x18\x06\x20\x01(\x0b2\x19.\ - google.api.DocumentationR\rdocumentation\x12-\n\x07backend\x18\x08\x20\ - \x01(\x0b2\x13.google.api.BackendR\x07backend\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.api.ContextR\x07context\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\tendpoints\ - \x12-\n\x07control\x18\x15\x20\x01(\x0b2\x13.google.api.ControlR\x07cont\ - rol\x12-\n\x04logs\x18\x17\x20\x03(\x0b2\x19.google.api.LogDescriptorR\ - \x04logs\x126\n\x07metrics\x18\x18\x20\x03(\x0b2\x1c.google.api.MetricDe\ - scriptorR\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\x07logging\ - \x126\n\nmonitoring\x18\x1c\x20\x01(\x0b2\x16.google.api.MonitoringR\nmo\ - nitoring\x12I\n\x11system_parameters\x18\x1d\x20\x01(\x0b2\x1c.google.ap\ - i.SystemParametersR\x10systemParameters\x127\n\x0bsource_info\x18%\x20\ - \x01(\x0b2\x16.google.api.SourceInfoR\nsourceInfo\x12C\n\x0econfig_versi\ - on\x18\x14\x20\x01(\x0b2\x1c.google.protobuf.UInt32ValueR\rconfigVersion\ - Bn\n\x0ecom.google.apiB\x0cServiceProtoP\x01ZEgoogle.golang.org/genproto\ - /googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xe70\n\x07\ - \x12\x05\x0e\0\xac\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202020\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\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\ - \x1f\n\t\n\x02\x03\x08\x12\x03\x1a\0\x20\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+\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\x05G\0\xac\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\x03G\x08\x0f\n\xf6\x01\n\x04\x04\0\ - \x02\0\x12\x03L\x02\x12\x1a\xe8\x01\x20The\x20service\x20name,\x20which\ - \x20is\x20a\x20DNS-like\x20logical\x20identifier\x20for\x20the\n\x20serv\ - ice,\x20such\x20as\x20`calendar.googleapis.com`.\x20The\x20service\x20na\ - me\n\x20typically\x20goes\x20through\x20DNS\x20verification\x20to\x20mak\ - e\x20sure\x20the\x20owner\n\x20of\x20the\x20service\x20also\x20owns\x20t\ - he\x20DNS\x20name.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04L\x02G\x11\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\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03L\x10\x11\n2\n\x04\x04\0\ - \x02\x01\x12\x03O\x02\x13\x1a%\x20The\x20product\x20title\x20for\x20this\ - \x20service.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04O\x02L\x12\n\x0c\n\x05\ - \x04\0\x02\x01\x05\x12\x03O\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ - \x03O\t\x0e\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03O\x11\x12\n9\n\x04\x04\ - \0\x02\x02\x12\x03R\x02\"\x1a,\x20The\x20Google\x20project\x20that\x20ow\ - ns\x20this\x20service.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04R\x02O\x13\n\ - \x0c\n\x05\x04\0\x02\x02\x05\x12\x03R\x02\x08\n\x0c\n\x05\x04\0\x02\x02\ - \x01\x12\x03R\t\x1c\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03R\x1f!\n\x9f\ - \x02\n\x04\x04\0\x02\x03\x12\x03X\x02\x11\x1a\x91\x02\x20A\x20unique\x20\ - ID\x20for\x20a\x20specific\x20instance\x20of\x20this\x20message,\x20typi\ - cally\x20assigned\n\x20by\x20the\x20client\x20for\x20tracking\x20purpose\ - .\x20Must\x20be\x20no\x20longer\x20than\x2063\x20characters\n\x20and\x20\ - only\x20lower\x20case\x20letters,\x20digits,\x20'.',\x20'_'\x20and\x20'-\ - '\x20are\x20allowed.\x20If\n\x20empty,\x20the\x20server\x20may\x20choose\ - \x20to\x20generate\x20one\x20instead.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\ - \x04X\x02R\"\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03X\x02\x08\n\x0c\n\x05\ - \x04\0\x02\x03\x01\x12\x03X\t\x0b\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03X\ - \x0e\x10\n\x82\x03\n\x04\x04\0\x02\x04\x12\x03_\x02(\x1a\xf4\x02\x20A\ - \x20list\x20of\x20API\x20interfaces\x20exported\x20by\x20this\x20service\ - .\x20Only\x20the\x20`name`\x20field\n\x20of\x20the\x20[google.protobuf.A\ - pi][google.protobuf.Api]\x20needs\x20to\x20be\x20provided\x20by\x20the\ - \x20configuration\n\x20author,\x20as\x20the\x20remaining\x20fields\x20wi\ - ll\x20be\x20derived\x20from\x20the\x20IDL\x20during\x20the\n\x20normaliz\ - ation\x20process.\x20It\x20is\x20an\x20error\x20to\x20specify\x20an\x20A\ - PI\x20interface\x20here\n\x20which\x20cannot\x20be\x20resolved\x20agains\ - t\x20the\x20associated\x20IDL\x20files.\n\n\x0c\n\x05\x04\0\x02\x04\x04\ - \x12\x03_\x02\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03_\x0b\x1e\n\x0c\n\ - \x05\x04\0\x02\x04\x01\x12\x03_\x1f#\n\x0c\n\x05\x04\0\x02\x04\x03\x12\ - \x03_&'\n\xed\x02\n\x04\x04\0\x02\x05\x12\x03i\x02*\x1a\xdf\x02\x20A\x20\ - list\x20of\x20all\x20proto\x20message\x20types\x20included\x20in\x20this\ - \x20API\x20service.\n\x20Types\x20referenced\x20directly\x20or\x20indire\ - ctly\x20by\x20the\x20`apis`\x20are\n\x20automatically\x20included.\x20\ - \x20Messages\x20which\x20are\x20not\x20referenced\x20but\n\x20shall\x20b\ - e\x20included,\x20such\x20as\x20types\x20used\x20by\x20the\x20`google.pr\ - otobuf.Any`\x20type,\n\x20should\x20be\x20listed\x20here\x20by\x20name.\ - \x20Example:\n\n\x20\x20\x20\x20\x20types:\n\x20\x20\x20\x20\x20-\x20nam\ - e:\x20google.protobuf.Int32\n\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03i\x02\ - \n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03i\x0b\x1f\n\x0c\n\x05\x04\0\x02\ - \x05\x01\x12\x03i\x20%\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03i()\n\xaf\ - \x02\n\x04\x04\0\x02\x06\x12\x03r\x02*\x1a\xa1\x02\x20A\x20list\x20of\ - \x20all\x20enum\x20types\x20included\x20in\x20this\x20API\x20service.\ - \x20\x20Enums\n\x20referenced\x20directly\x20or\x20indirectly\x20by\x20t\ - he\x20`apis`\x20are\x20automatically\n\x20included.\x20\x20Enums\x20whic\ - h\x20are\x20not\x20referenced\x20but\x20shall\x20be\x20included\n\x20sho\ - uld\x20be\x20listed\x20here\x20by\x20name.\x20Example:\n\n\x20\x20\x20\ - \x20\x20enums:\n\x20\x20\x20\x20\x20-\x20name:\x20google.someapi.v1.Some\ - Enum\n\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03r\x02\n\n\x0c\n\x05\x04\0\ - \x02\x06\x06\x12\x03r\x0b\x1f\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03r\x20\ - %\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03r()\n,\n\x04\x04\0\x02\x07\x12\ - \x03u\x02\"\x1a\x1f\x20Additional\x20API\x20documentation.\n\n\r\n\x05\ - \x04\0\x02\x07\x04\x12\x04u\x02r*\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03u\ - \x02\x0f\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03u\x10\x1d\n\x0c\n\x05\x04\ - \0\x02\x07\x03\x12\x03u\x20!\n)\n\x04\x04\0\x02\x08\x12\x03x\x02\x16\x1a\ - \x1c\x20API\x20backend\x20configuration.\n\n\r\n\x05\x04\0\x02\x08\x04\ - \x12\x04x\x02u\"\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03x\x02\t\n\x0c\n\ - \x05\x04\0\x02\x08\x01\x12\x03x\n\x11\n\x0c\n\x05\x04\0\x02\x08\x03\x12\ - \x03x\x14\x15\n\"\n\x04\x04\0\x02\t\x12\x03{\x02\x10\x1a\x15\x20HTTP\x20\ - configuration.\n\n\r\n\x05\x04\0\x02\t\x04\x12\x04{\x02x\x16\n\x0c\n\x05\ - \x04\0\x02\t\x06\x12\x03{\x02\x06\n\x0c\n\x05\x04\0\x02\t\x01\x12\x03{\ - \x07\x0b\n\x0c\n\x05\x04\0\x02\t\x03\x12\x03{\x0e\x0f\n#\n\x04\x04\0\x02\ - \n\x12\x03~\x02\x13\x1a\x16\x20Quota\x20configuration.\n\n\r\n\x05\x04\0\ - \x02\n\x04\x12\x04~\x02{\x10\n\x0c\n\x05\x04\0\x02\n\x06\x12\x03~\x02\ - \x07\n\x0c\n\x05\x04\0\x02\n\x01\x12\x03~\x08\r\n\x0c\n\x05\x04\0\x02\n\ - \x03\x12\x03~\x10\x12\n#\n\x04\x04\0\x02\x0b\x12\x04\x81\x01\x02%\x1a\ - \x15\x20Auth\x20configuration.\n\n\x0e\n\x05\x04\0\x02\x0b\x04\x12\x05\ - \x81\x01\x02~\x13\n\r\n\x05\x04\0\x02\x0b\x06\x12\x04\x81\x01\x02\x10\n\ - \r\n\x05\x04\0\x02\x0b\x01\x12\x04\x81\x01\x11\x1f\n\r\n\x05\x04\0\x02\ - \x0b\x03\x12\x04\x81\x01\"$\n&\n\x04\x04\0\x02\x0c\x12\x04\x84\x01\x02\ - \x17\x1a\x18\x20Context\x20configuration.\n\n\x0f\n\x05\x04\0\x02\x0c\ - \x04\x12\x06\x84\x01\x02\x81\x01%\n\r\n\x05\x04\0\x02\x0c\x06\x12\x04\ - \x84\x01\x02\t\n\r\n\x05\x04\0\x02\x0c\x01\x12\x04\x84\x01\n\x11\n\r\n\ - \x05\x04\0\x02\x0c\x03\x12\x04\x84\x01\x14\x16\n@\n\x04\x04\0\x02\r\x12\ - \x04\x87\x01\x02\x13\x1a2\x20Configuration\x20controlling\x20usage\x20of\ - \x20this\x20service.\n\n\x0f\n\x05\x04\0\x02\r\x04\x12\x06\x87\x01\x02\ - \x84\x01\x17\n\r\n\x05\x04\0\x02\r\x06\x12\x04\x87\x01\x02\x07\n\r\n\x05\ - \x04\0\x02\r\x01\x12\x04\x87\x01\x08\r\n\r\n\x05\x04\0\x02\r\x03\x12\x04\ - \x87\x01\x10\x12\n\xb5\x01\n\x04\x04\0\x02\x0e\x12\x04\x8c\x01\x02#\x1a\ - \xa6\x01\x20Configuration\x20for\x20network\x20endpoints.\x20\x20If\x20t\ - his\x20is\x20empty,\x20then\x20an\x20endpoint\n\x20with\x20the\x20same\ - \x20name\x20as\x20the\x20service\x20is\x20automatically\x20generated\x20\ - to\x20service\x20all\n\x20defined\x20APIs.\n\n\r\n\x05\x04\0\x02\x0e\x04\ - \x12\x04\x8c\x01\x02\n\n\r\n\x05\x04\0\x02\x0e\x06\x12\x04\x8c\x01\x0b\ - \x13\n\r\n\x05\x04\0\x02\x0e\x01\x12\x04\x8c\x01\x14\x1d\n\r\n\x05\x04\0\ - \x02\x0e\x03\x12\x04\x8c\x01\x20\"\n<\n\x04\x04\0\x02\x0f\x12\x04\x8f\ - \x01\x02\x17\x1a.\x20Configuration\x20for\x20the\x20service\x20control\ - \x20plane.\n\n\x0f\n\x05\x04\0\x02\x0f\x04\x12\x06\x8f\x01\x02\x8c\x01#\ - \n\r\n\x05\x04\0\x02\x0f\x06\x12\x04\x8f\x01\x02\t\n\r\n\x05\x04\0\x02\ - \x0f\x01\x12\x04\x8f\x01\n\x11\n\r\n\x05\x04\0\x02\x0f\x03\x12\x04\x8f\ - \x01\x14\x16\n6\n\x04\x04\0\x02\x10\x12\x04\x92\x01\x02#\x1a(\x20Defines\ - \x20the\x20logs\x20used\x20by\x20this\x20service.\n\n\r\n\x05\x04\0\x02\ - \x10\x04\x12\x04\x92\x01\x02\n\n\r\n\x05\x04\0\x02\x10\x06\x12\x04\x92\ - \x01\x0b\x18\n\r\n\x05\x04\0\x02\x10\x01\x12\x04\x92\x01\x19\x1d\n\r\n\ - \x05\x04\0\x02\x10\x03\x12\x04\x92\x01\x20\"\n9\n\x04\x04\0\x02\x11\x12\ - \x04\x95\x01\x02)\x1a+\x20Defines\x20the\x20metrics\x20used\x20by\x20thi\ - s\x20service.\n\n\r\n\x05\x04\0\x02\x11\x04\x12\x04\x95\x01\x02\n\n\r\n\ - \x05\x04\0\x02\x11\x06\x12\x04\x95\x01\x0b\x1b\n\r\n\x05\x04\0\x02\x11\ - \x01\x12\x04\x95\x01\x1c#\n\r\n\x05\x04\0\x02\x11\x03\x12\x04\x95\x01&(\ - \n\xd5\x01\n\x04\x04\0\x02\x12\x12\x04\x99\x01\x02@\x1a\xc6\x01\x20Defin\ - es\x20the\x20monitored\x20resources\x20used\x20by\x20this\x20service.\ - \x20This\x20is\x20required\n\x20by\x20the\x20[Service.monitoring][google\ - .api.Service.monitoring]\x20and\x20[Service.logging][google.api.Service.\ - logging]\x20configurations.\n\n\r\n\x05\x04\0\x02\x12\x04\x12\x04\x99\ - \x01\x02\n\n\r\n\x05\x04\0\x02\x12\x06\x12\x04\x99\x01\x0b&\n\r\n\x05\ - \x04\0\x02\x12\x01\x12\x04\x99\x01':\n\r\n\x05\x04\0\x02\x12\x03\x12\x04\ - \x99\x01=?\n&\n\x04\x04\0\x02\x13\x12\x04\x9c\x01\x02\x17\x1a\x18\x20Bil\ - ling\x20configuration.\n\n\x0f\n\x05\x04\0\x02\x13\x04\x12\x06\x9c\x01\ - \x02\x99\x01@\n\r\n\x05\x04\0\x02\x13\x06\x12\x04\x9c\x01\x02\t\n\r\n\ - \x05\x04\0\x02\x13\x01\x12\x04\x9c\x01\n\x11\n\r\n\x05\x04\0\x02\x13\x03\ - \x12\x04\x9c\x01\x14\x16\n&\n\x04\x04\0\x02\x14\x12\x04\x9f\x01\x02\x17\ - \x1a\x18\x20Logging\x20configuration.\n\n\x0f\n\x05\x04\0\x02\x14\x04\ - \x12\x06\x9f\x01\x02\x9c\x01\x17\n\r\n\x05\x04\0\x02\x14\x06\x12\x04\x9f\ - \x01\x02\t\n\r\n\x05\x04\0\x02\x14\x01\x12\x04\x9f\x01\n\x11\n\r\n\x05\ - \x04\0\x02\x14\x03\x12\x04\x9f\x01\x14\x16\n)\n\x04\x04\0\x02\x15\x12\ - \x04\xa2\x01\x02\x1d\x1a\x1b\x20Monitoring\x20configuration.\n\n\x0f\n\ - \x05\x04\0\x02\x15\x04\x12\x06\xa2\x01\x02\x9f\x01\x17\n\r\n\x05\x04\0\ - \x02\x15\x06\x12\x04\xa2\x01\x02\x0c\n\r\n\x05\x04\0\x02\x15\x01\x12\x04\ - \xa2\x01\r\x17\n\r\n\x05\x04\0\x02\x15\x03\x12\x04\xa2\x01\x1a\x1c\n/\n\ - \x04\x04\0\x02\x16\x12\x04\xa5\x01\x02*\x1a!\x20System\x20parameter\x20c\ - onfiguration.\n\n\x0f\n\x05\x04\0\x02\x16\x04\x12\x06\xa5\x01\x02\xa2\ - \x01\x1d\n\r\n\x05\x04\0\x02\x16\x06\x12\x04\xa5\x01\x02\x12\n\r\n\x05\ - \x04\0\x02\x16\x01\x12\x04\xa5\x01\x13$\n\r\n\x05\x04\0\x02\x16\x03\x12\ - \x04\xa5\x01')\nX\n\x04\x04\0\x02\x17\x12\x04\xa8\x01\x02\x1e\x1aJ\x20Ou\ - tput\x20only.\x20The\x20source\x20information\x20for\x20this\x20configur\ - ation\x20if\x20available.\n\n\x0f\n\x05\x04\0\x02\x17\x04\x12\x06\xa8\ - \x01\x02\xa5\x01*\n\r\n\x05\x04\0\x02\x17\x06\x12\x04\xa8\x01\x02\x0c\n\ - \r\n\x05\x04\0\x02\x17\x01\x12\x04\xa8\x01\r\x18\n\r\n\x05\x04\0\x02\x17\ - \x03\x12\x04\xa8\x01\x1b\x1d\nV\n\x04\x04\0\x02\x18\x12\x04\xab\x01\x022\ - \x1aH\x20Deprecated.\x20The\x20service\x20config\x20compiler\x20always\ - \x20sets\x20this\x20field\x20to\x20`3`.\n\n\x0f\n\x05\x04\0\x02\x18\x04\ - \x12\x06\xab\x01\x02\xa8\x01\x1e\n\r\n\x05\x04\0\x02\x18\x06\x12\x04\xab\ - \x01\x02\x1d\n\r\n\x05\x04\0\x02\x18\x01\x12\x04\xab\x01\x1e,\n\r\n\x05\ - \x04\0\x02\x18\x03\x12\x04\xab\x01/1b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/check_error.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/check_error.rs deleted file mode 100644 index 5151bb61b5..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/check_error.rs +++ /dev/null @@ -1,584 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/check_error.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct CheckError { - // message fields - pub code: CheckError_Code, - pub subject: ::std::string::String, - pub detail: ::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 CheckError { - fn default() -> &'a CheckError { - ::default_instance() - } -} - -impl CheckError { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 3 => { - ::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.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.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 - } - - 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)?; - } - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static CheckError { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckError::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[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, -} - -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(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 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, - ]; - 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 ::std::marker::Copy for CheckError_Code { -} - -impl ::std::default::Default for CheckError_Code { - fn default() -> Self { - CheckError_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)) - } -} - -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\x01ZJgoogle.golang.org/genpro\ - to/googleapis/api/servicecontrol/v1;servicecontrol\xf8\x01\x01\xaa\x02\ - \x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceCont\ - rol\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xfa!\n\x06\x12\x04\ - \x0e\0{\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ - \x202020\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\r\n\x05\x04\0\x02\ - \0\x04\x12\x04j\x02g\x03\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\x20error\x20applies.\x20See\x20the\ - \x20specific\x20code\x20enum\x20for\x20more\n\x20details\x20on\x20this\ - \x20field.\x20For\x20example:\n\n\x20-\x20\"project:\"\n\x20-\x20\"folder:\"\n\x20-\x20\"organ\ - ization:\"\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04r\x02j\ - \x10\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\x20\ - error.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04u\x02r\x15\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\r\n\x05\x04\0\x02\x03\x04\ - \x12\x04z\x02u\x14\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/distribution.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/distribution.rs deleted file mode 100644 index 2b417b531b..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/distribution.rs +++ /dev/null @@ -1,1420 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/distribution.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Distribution { - // message fields - pub count: i64, - pub mean: f64, - pub minimum: f64, - pub maximum: f64, - pub sum_of_squared_deviation: f64, - pub bucket_counts: ::std::vec::Vec, - // message oneof groups - pub bucket_option: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Distribution { - fn default() -> &'a Distribution { - ::default_instance() - } -} - -#[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 { - match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(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, - _ => 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)) - } - - // 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 { - } else { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(Distribution_LinearBuckets::new())); - } - match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Distribution_LinearBuckets::new() - } - } - - // .google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8; - - - pub fn get_exponential_buckets(&self) -> &Distribution_ExponentialBuckets { - match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(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, - _ => 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)) - } - - // 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 { - } else { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(Distribution_ExponentialBuckets::new())); - } - match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Distribution_ExponentialBuckets::new() - } - } - - // .google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9; - - - pub fn get_explicit_buckets(&self) -> &Distribution_ExplicitBuckets { - match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(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, - _ => 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)) - } - - // 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 { - } else { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(Distribution_ExplicitBuckets::new())); - } - match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Distribution_ExplicitBuckets::new() - } - } -} - -impl ::protobuf::Message for 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; - } - } - true - } - - fn merge_from(&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; - }, - 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; - }, - 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; - }, - 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; - }, - 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; - }, - 6 => { - ::protobuf::rt::read_repeated_int64_into(wire_type, is, &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()?)); - }, - 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()?)); - }, - 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()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.count != 0 { - my_size += ::protobuf::rt::value_size(1, self.count, ::protobuf::wire_format::WireTypeVarint); - } - if self.mean != 0. { - my_size += 9; - } - if self.minimum != 0. { - my_size += 9; - } - if self.maximum != 0. { - my_size += 9; - } - if self.sum_of_squared_deviation != 0. { - my_size += 9; - } - for value in &self.bucket_counts { - my_size += ::protobuf::rt::value_size(6, *value, ::protobuf::wire_format::WireTypeVarint); - }; - if let ::std::option::Option::Some(ref v) = self.bucket_option { - match v { - &Distribution_oneof_bucket_option::linear_buckets(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Distribution_oneof_bucket_option::exponential_buckets(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Distribution_oneof_bucket_option::explicit_buckets(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.count != 0 { - os.write_int64(1, self.count)?; - } - if self.mean != 0. { - os.write_double(2, self.mean)?; - } - if self.minimum != 0. { - os.write_double(3, self.minimum)?; - } - if self.maximum != 0. { - os.write_double(4, self.maximum)?; - } - if self.sum_of_squared_deviation != 0. { - os.write_double(5, self.sum_of_squared_deviation)?; - } - for v in &self.bucket_counts { - os.write_int64(6, *v)?; - }; - 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_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_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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 { - 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, - )); - ::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.; - self.minimum = 0.; - self.maximum = 0.; - self.sum_of_squared_deviation = 0.; - self.bucket_counts.clear(); - self.bucket_option = ::std::option::Option::None; - self.bucket_option = ::std::option::Option::None; - self.bucket_option = ::std::option::Option::None; - self.unknown_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) - } -} - -impl ::protobuf::reflect::ProtobufValue for Distribution { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 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; - - - 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_LinearBuckets { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&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_LinearBuckets { - Distribution_LinearBuckets::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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_LinearBuckets| { &m.num_finite_buckets }, - |m: &mut Distribution_LinearBuckets| { &mut m.num_finite_buckets }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "width", - |m: &Distribution_LinearBuckets| { &m.width }, - |m: &mut Distribution_LinearBuckets| { &mut m.width }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "offset", - |m: &Distribution_LinearBuckets| { &m.offset }, - |m: &mut Distribution_LinearBuckets| { &mut m.offset }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution.LinearBuckets", - fields, - file_descriptor_proto() - ) - }) - } - - 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; - - - 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_ExponentialBuckets { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&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); - } - if self.growth_factor != 0. { - my_size += 9; - } - 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)?; - } - 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() - } - - fn new() -> Distribution_ExponentialBuckets { - Distribution_ExponentialBuckets::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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_ExponentialBuckets| { &m.num_finite_buckets }, - |m: &mut Distribution_ExponentialBuckets| { &mut m.num_finite_buckets }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "growth_factor", - |m: &Distribution_ExponentialBuckets| { &m.growth_factor }, - |m: &mut Distribution_ExponentialBuckets| { &mut m.growth_factor }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "scale", - |m: &Distribution_ExponentialBuckets| { &m.scale }, - |m: &mut Distribution_ExponentialBuckets| { &mut m.scale }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution.ExponentialBuckets", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Distribution_ExponentialBuckets { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_ExponentialBuckets::new) - } -} - -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(); - } -} - -impl ::std::fmt::Debug for Distribution_ExponentialBuckets { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Distribution_ExponentialBuckets { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a Distribution_ExplicitBuckets { - fn default() -> &'a Distribution_ExplicitBuckets { - ::default_instance() - } -} - -impl Distribution_ExplicitBuckets { - pub fn new() -> Distribution_ExplicitBuckets { - ::std::default::Default::default() - } - - // repeated double bounds = 1; - - - pub fn get_bounds(&self) -> &[f64] { - &self.bounds - } - pub fn clear_bounds(&mut self) { - self.bounds.clear(); - } - - // Param is passed by value, moved - pub fn set_bounds(&mut self, v: ::std::vec::Vec) { - self.bounds = v; - } - - // Mutable pointer to the field. - pub fn mut_bounds(&mut self) -> &mut ::std::vec::Vec { - &mut self.bounds - } - - // Take field - pub fn take_bounds(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.bounds, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for Distribution_ExplicitBuckets { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &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(()) - } - - // 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 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 get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_ExplicitBuckets { - Distribution_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 default_instance() -> &'static Distribution_ExplicitBuckets { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_ExplicitBuckets::new) - } -} - -impl ::protobuf::Clear for Distribution_ExplicitBuckets { - fn clear(&mut self) { - self.bounds.clear(); - self.unknown_fields.clear(); - } -} - -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 ::protobuf::reflect::ProtobufValue for Distribution_ExplicitBuckets { - 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/distribution.proto\x12\x1cgoogle.api.ser\ - 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\xec\x01\n\x20com.google.api.servicecontrol.v1B\x11DistributionProtoP\ - \x01ZJgoogle.golang.org/genproto/googleapis/api/servicecontrol/v1;servic\ - econtrol\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\ - \x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceCont\ - rol::V1J\xdf4\n\x07\x12\x05\x0e\0\xa0\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%\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%\x12\x03\x13\0;\n\x08\n\x01\x08\x12\x03\x14\0a\n\t\n\x02\x08\ - \x0b\x12\x03\x14\0a\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\09\n\t\n\x02\x08\x01\x12\x03\x17\09\ - \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\0:\n\t\n\x02\x08-\x12\x03\x19\0:\n\x91\x03\n\x02\ - \x04\0\x12\x05#\0\xa0\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\x20inform\ - ation:\n\n\x20\x20\x20-\x20the\x20arithmetic\x20mean\x20of\x20the\x20sam\ - ples\n\x20\x20\x20-\x20the\x20minimum\x20and\x20maximum\x20of\x20the\x20\ - samples\n\x20\x20\x20-\x20the\x20sum-squared-deviation\x20of\x20the\x20s\ - amples,\x20used\x20to\x20compute\x20variance\n\x20\x20\x20-\x20a\x20hist\ - ogram\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%\x025\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\x20and\x20overflow\x20buckets,\n\x20the\x20\ - total\x20number\x20of\x20buckets\x20is\x20`num_finite_buckets`\x20+\x202\ - .\n\x20See\x20comments\x20on\x20`bucket_options`\x20for\x20details.\n\n\ - \x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04)\x04%\x19\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\x20line\ - ar\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\x20\ - Must\x20be\x20strictly\x20positive.\n\n\x0f\n\x07\x04\0\x03\0\x02\x01\ - \x04\x12\x04/\x04)!\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\x034\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\x0f\n\x07\x04\0\x03\ - \0\x02\x02\x04\x12\x044\x04/\x15\n\x0e\n\x07\x04\0\x03\0\x02\x02\x05\x12\ - \x034\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x034\x0b\x11\n\x0e\n\ - \x07\x04\0\x03\0\x02\x02\x03\x12\x034\x14\x15\nD\n\x04\x04\0\x03\x01\x12\ - \x048\x02I\x03\x1a6\x20Describing\x20buckets\x20with\x20exponentially\ - \x20growing\x20width.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x038\n\x1c\n\ - \xc1\x01\n\x06\x04\0\x03\x01\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\x0f\n\x07\x04\0\x03\x01\x02\0\x04\x12\ - \x04<\x048\x1e\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\ - \x03B\x04\x1d\x1a\xbd\x01\x20The\x20i'th\x20exponential\x20bucket\x20cov\ - ers\x20the\x20interval\n\x20\x20\x20[scale\x20*\x20growth_factor^(i-1),\ - \x20scale\x20*\x20growth_factor^i)\n\x20where\x20i\x20ranges\x20from\x20\ - 1\x20to\x20num_finite_buckets\x20inclusive.\n\x20Must\x20be\x20larger\ - \x20than\x201.0.\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x04\x12\x04B\x04\x200.\n\n\x0f\ - \n\x07\x04\0\x03\x01\x02\x02\x04\x12\x04H\x04B\x1d\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x02\x05\x12\x03H\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x01\ - \x12\x03H\x0b\x10\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\x12\x03H\x13\x14\ - \nF\n\x04\x04\0\x03\x02\x12\x04L\x02]\x03\x1a8\x20Describing\x20buckets\ - \x20with\x20arbitrary\x20user-provided\x20width.\n\n\x0c\n\x05\x04\0\x03\ - \x02\x01\x12\x03L\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\x20\ - increasing\x20boundaries\x20between\n\x20buckets.\x20Note\x20that\x20a\ - \x20list\x20of\x20length\x20N-1\x20defines\x20N\x20buckets\x20because\n\ - \x20of\x20fenceposting.\x20See\x20comments\x20on\x20`bucket_options`\x20\ - for\x20details.\n\n\x20The\x20i'th\x20finite\x20bucket\x20covers\x20the\ - \x20interval\n\x20\x20\x20[bound[i-1],\x20bound[i])\n\x20where\x20i\x20r\ - anges\x20from\x201\x20to\x20bound_size()\x20-\x201.\x20Note\x20that\x20t\ - here\x20are\x20no\n\x20finite\x20buckets\x20at\x20all\x20if\x20'bound'\ - \x20only\x20contains\x20a\x20single\x20element;\x20in\n\x20that\x20speci\ - al\x20case\x20the\x20single\x20bound\x20defines\x20the\x20boundary\x20be\ - tween\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\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==\ - \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\x03`\x02\x12\x1a@\x20The\x20total\ - \x20number\x20of\x20samples\x20in\x20the\x20distribution.\x20Must\x20be\ - \x20>=\x200.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04`\x02]\x03\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\x03d\x02\x12\x1ak\x20The\x20arithmetic\x20mean\x20of\x20the\x20\ - samples\x20in\x20the\x20distribution.\x20If\x20`count`\x20is\n\x20zero\ - \x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\r\n\x05\x04\0\x02\ - \x01\x04\x12\x04d\x02`\x12\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03d\x02\ - \x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03d\t\r\n\x0c\n\x05\x04\0\x02\ - \x01\x03\x12\x03d\x10\x11\nS\n\x04\x04\0\x02\x02\x12\x03g\x02\x15\x1aF\ - \x20The\x20minimum\x20of\x20the\x20population\x20of\x20values.\x20Ignore\ - d\x20if\x20`count`\x20is\x20zero.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04g\ - \x02d\x12\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03g\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x02\x01\x12\x03g\t\x10\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03g\x13\ - \x14\nS\n\x04\x04\0\x02\x03\x12\x03j\x02\x15\x1aF\x20The\x20maximum\x20o\ - f\x20the\x20population\x20of\x20values.\x20Ignored\x20if\x20`count`\x20i\ - s\x20zero.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04j\x02g\x15\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\x10\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03j\x13\x14\n\xe0\x01\n\ - \x04\x04\0\x02\x04\x12\x03p\x02&\x1a\xd2\x01\x20The\x20sum\x20of\x20squa\ - red\x20deviations\x20from\x20the\x20mean:\n\x20\x20\x20Sum[i=1..count]((\ - x_i\x20-\x20mean)^2)\n\x20where\x20each\x20x_i\x20is\x20a\x20sample\x20v\ - alues.\x20If\x20`count`\x20is\x20zero\x20then\x20this\x20field\n\x20must\ - \x20be\x20zero,\x20otherwise\x20validation\x20of\x20the\x20request\x20fa\ - ils.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04p\x02j\x15\n\x0c\n\x05\x04\0\ - \x02\x04\x05\x12\x03p\x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03p\t!\ - \n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03p$%\n\xb8\x04\n\x04\x04\0\x02\x05\ - \x12\x03}\x02#\x1a\xaa\x04\x20The\x20number\x20of\x20samples\x20in\x20ea\ - ch\x20histogram\x20bucket.\x20`bucket_counts`\x20are\n\x20optional.\x20I\ - f\x20present,\x20they\x20must\x20sum\x20to\x20the\x20`count`\x20value.\n\ - \n\x20The\x20buckets\x20are\x20defined\x20below\x20in\x20`bucket_option`\ - .\x20There\x20are\x20N\x20buckets.\n\x20`bucket_counts[0]`\x20is\x20the\ - \x20number\x20of\x20samples\x20in\x20the\x20underflow\x20bucket.\n\x20`b\ - ucket_counts[1]`\x20to\x20`bucket_counts[N-1]`\x20are\x20the\x20numbers\ - \x20of\x20samples\n\x20in\x20each\x20of\x20the\x20finite\x20buckets.\x20\ - And\x20`bucket_counts[N]\x20is\x20the\x20number\n\x20of\x20samples\x20in\ - \x20the\x20overflow\x20bucket.\x20See\x20the\x20comments\x20of\x20`bucke\ - t_option`\n\x20below\x20for\x20more\x20details.\n\n\x20Any\x20suffix\x20\ - of\x20trailing\x20zeros\x20may\x20be\x20omitted.\n\n\x0c\n\x05\x04\0\x02\ - \x05\x04\x12\x03}\x02\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03}\x0b\x10\n\ - \x0c\n\x05\x04\0\x02\x05\x01\x12\x03}\x11\x1e\n\x0c\n\x05\x04\0\x02\x05\ - \x03\x12\x03}!\"\n\xf2\x08\n\x04\x04\0\x08\0\x12\x06\x96\x01\x02\x9f\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\x20\ - that\x20isn't\x20already\x20provided\x20by\x20`count`).\n\n\x20The\x20fi\ - rst\x20bucket\x20is\x20the\x20underflow\x20bucket\x20which\x20has\x20a\ - \x20lower\x20bound\n\x20of\x20-inf.\x20The\x20last\x20bucket\x20is\x20th\ - e\x20overflow\x20bucket\x20which\x20has\x20an\n\x20upper\x20bound\x20of\ - \x20+inf.\x20All\x20other\x20buckets\x20(if\x20any)\x20are\x20called\x20\ - \"finite\"\n\x20buckets\x20because\x20they\x20have\x20finite\x20lower\ - \x20and\x20upper\x20bounds.\x20As\x20described\n\x20below,\x20there\x20a\ - re\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\x20growing\x20widths.\n\x20\x20\x20\ - (3)\x20Buckets\x20with\x20arbitrary\x20user-provided\x20widths.\n\n\x20I\ - n\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\x20bound\x20of\x20the\x20underflow\x20bucket\x20is\x20e\ - qual\x20to\x20the\n\x20lower\x20bound\x20of\x20the\x20smallest\x20finite\ - \x20bucket;\x20the\x20lower\x20bound\x20of\x20the\n\x20overflow\x20bucke\ - t\x20is\x20equal\x20to\x20the\x20upper\x20bound\x20of\x20the\x20largest\ - \x20finite\n\x20bucket.\n\n\r\n\x05\x04\0\x08\0\x01\x12\x04\x96\x01\x08\ - \x15\n,\n\x04\x04\0\x02\x06\x12\x04\x98\x01\x04%\x1a\x1e\x20Buckets\x20w\ - ith\x20constant\x20width.\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\x98\x01\ - \x04\x11\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\x98\x01\x12\x20\n\r\n\x05\ - \x04\0\x02\x06\x03\x12\x04\x98\x01#$\n9\n\x04\x04\0\x02\x07\x12\x04\x9b\ - \x01\x04/\x1a+\x20Buckets\x20with\x20exponentially\x20growing\x20width.\ - \n\n\r\n\x05\x04\0\x02\x07\x06\x12\x04\x9b\x01\x04\x16\n\r\n\x05\x04\0\ - \x02\x07\x01\x12\x04\x9b\x01\x17*\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\ - \x9b\x01-.\n;\n\x04\x04\0\x02\x08\x12\x04\x9e\x01\x04)\x1a-\x20Buckets\ - \x20with\x20arbitrary\x20user-provided\x20width.\n\n\r\n\x05\x04\0\x02\ - \x08\x06\x12\x04\x9e\x01\x04\x13\n\r\n\x05\x04\0\x02\x08\x01\x12\x04\x9e\ - \x01\x14$\n\r\n\x05\x04\0\x02\x08\x03\x12\x04\x9e\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/http_request.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/http_request.rs deleted file mode 100644 index cef4cbb91c..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/http_request.rs +++ /dev/null @@ -1,879 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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\x01ZJgoogle\ - .golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol\xaa\ - \x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\Service\ - Control\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xbd\x1c\n\x06\x12\ - \x04\x0e\0\\\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyr\ - ight\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\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\r\n\x05\x04\0\x02\0\x04\ - \x12\x04!\x02\x1f\x15\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\x20tha\ - t\x20was\x20requested.\n\x20Example:\x20`\"http://example.com/some/info?\ - color=red\"`.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04&\x02!\x1c\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\x20the\x20request\x20body.\n\n\r\n\x05\x04\0\x02\x02\ - \x04\x12\x04*\x02&\x19\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\x20T\ - he\x20response\x20code\x20indicating\x20the\x20status\x20of\x20the\x20re\ - sponse.\n\x20Examples:\x20200,\x20404.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\ - \x04.\x02*\x19\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\r\n\x05\ - \x04\0\x02\x04\x04\x12\x042\x02.\x13\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\x20cl\ - ient.\x20Example:\n\x20`\"Mozilla/4.0\x20(compatible;\x20MSIE\x206.0;\ - \x20Windows\x2098;\x20Q312461;\x20.NET\n\x20CLR\x201.0.3705)\"`.\n\n\r\n\ - \x05\x04\0\x02\x05\x04\x12\x047\x022\x1a\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\x20\ - IPv6)\x20of\x20the\x20client\x20that\x20issued\x20the\x20HTTP\n\x20reque\ - st.\x20Examples:\x20`\"192.168.1.1\"`,\x20`\"FE80::0202:B3FF:FE1E:8329\"\ - `.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04;\x027\x18\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\ - \x20the\x20origin\x20server\x20that\x20the\x20request\x20was\n\x20sent\ - \x20to.\n\n\r\n\x05\x04\0\x02\x07\x04\x12\x04?\x02;\x17\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\x20request,\x20as\x20defined\x20in\n\x20[HTTP/1.1\x20Header\x20F\ - ield\n\x20Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14\ - .html).\n\n\r\n\x05\x04\0\x02\x08\x04\x12\x04D\x02?\x18\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\x20request\x20was\ - \n\x20received\x20until\x20the\x20response\x20was\x20sent.\n\n\r\n\x05\ - \x04\0\x02\t\x04\x12\x04H\x02D\x15\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.\x20Whet\ - her\x20or\x20not\x20a\x20cache\x20lookup\x20was\x20attempted.\n\n\r\n\ - \x05\x04\0\x02\n\x04\x12\x04K\x02H(\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\x1a\ - O\x20Whether\x20or\x20not\x20an\x20entity\x20was\x20served\x20from\x20ca\ - che\n\x20(with\x20or\x20without\x20validation).\n\n\r\n\x05\x04\0\x02\ - \x0b\x04\x12\x04O\x02K\x19\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\x20response\x20was\x20valid\ - ated\x20with\x20the\x20origin\x20server\x20before\n\x20being\x20served\ - \x20from\x20cache.\x20This\x20field\x20is\x20only\x20meaningful\x20if\ - \x20`cache_hit`\x20is\n\x20True.\n\n\r\n\x05\x04\0\x02\x0c\x04\x12\x04T\ - \x02O\x15\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\x20inserted\x20into\x20cache.\x20Set\x20only\x20wh\ - en\x20a\n\x20cache\x20fill\x20was\x20attempted.\n\n\r\n\x05\x04\0\x02\r\ - \x04\x12\x04X\x02T/\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\x20Protocol\ - \x20used\x20for\x20the\x20request.\x20Examples:\x20\"HTTP/1.1\",\x20\"HT\ - TP/2\",\x20\"websocket\"\n\n\r\n\x05\x04\0\x02\x0e\x04\x12\x04[\x02X\x1e\ - \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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs deleted file mode 100644 index 0bf40f618c..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs +++ /dev/null @@ -1,1491 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/log_entry.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct LogEntry { - // message fields - 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, - pub insert_id: ::std::string::String, - 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, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LogEntry { - fn default() -> &'a LogEntry { - ::default_instance() - } -} - -#[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 { - 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(), - } - } - 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, - _ => 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)) - } - - // 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 { - } else { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(::protobuf::well_known_types::Any::new())); - } - match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_proto_payload(&mut self) -> ::protobuf::well_known_types::Any { - if self.has_proto_payload() { - match self.payload.take() { - ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(v)) => v, - _ => panic!(), - } - } else { - ::protobuf::well_known_types::Any::new() - } - } - - // string text_payload = 3; - - - pub fn get_text_payload(&self) -> &str { - match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(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, - _ => 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)) - } - - // 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 { - } else { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(::std::string::String::new())); - } - match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.protobuf.Struct struct_payload = 6; - - - pub fn get_struct_payload(&self) -> &::protobuf::well_known_types::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(), - } - } - 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, - _ => 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)) - } - - // 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 { - } else { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(::protobuf::well_known_types::Struct::new())); - } - match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_struct_payload(&mut self) -> ::protobuf::well_known_types::Struct { - if self.has_struct_payload() { - match self.payload.take() { - ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 12 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.severity, 12, &mut self.unknown_fields)? - }, - 14 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.http_request)?; - }, - 15 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.trace)?; - }, - 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)); - } - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(is.read_message()?)); - }, - 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()?)); - }, - 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)?; - }, - 17 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_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.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() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.trace.is_empty() { - my_size += ::protobuf::rt::string_size(15, &self.trace); - } - 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; - } - if let ::std::option::Option::Some(ref v) = self.payload { - match v { - &LogEntry_oneof_payload::proto_payload(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &LogEntry_oneof_payload::text_payload(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - &LogEntry_oneof_payload::struct_payload(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(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 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.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)?; - } - 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)?; - }, - &LogEntry_oneof_payload::text_payload(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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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.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) - } -} - -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) - } -} - -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 ::std::fmt::Debug for LogEntryOperation { - 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 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; - - - 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; - } - - // 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 - } - - // 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())?; - }, - }; - } - ::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)?; - } - 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\x01ZJgoogle.golang.org/genproto/g\ - oogleapis/api/servicecontrol/v1;servicecontrol\xaa\x02\x1eGoogle.Cloud.S\ - erviceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Go\ - ogle::Cloud::ServiceControl::V1J\xdc&\n\x06\x12\x04\x0e\0}\x01\n\xbc\x04\ - \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\r\n\x05\x04\0\x02\0\x04\x12\x04$\x02!\x12\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,\x20defaul\ - ts\x20to\x20operation\x20start\x20time.\n\n\r\n\x05\x04\0\x02\x01\x04\ - \x12\x04(\x02$\x13\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\x20\ - of\x20the\x20log\x20entry.\x20The\x20default\x20value\x20is\n\x20`LogSev\ - erity.DEFAULT`.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04,\x02(+\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,\x20if\x20ap\ - plicable.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x040\x02,0\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\x20associated\x20with\x20the\x20log\x20entry,\x20\ - if\x20any.\n\x20If\x20this\x20field\x20contains\x20a\x20relative\x20reso\ - urce\x20name,\x20you\x20can\x20assume\x20the\x20name\x20is\n\x20relative\ - \x20to\x20`//tracing.googleapis.com`.\x20Example:\n\x20`projects/my-proj\ - ectid/traces/06796866738c859f2f19b7cfb3214824`\n\n\r\n\x05\x04\0\x02\x04\ - \x04\x12\x046\x020\x20\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\x20f\ - or\x20deduplication.\x20If\x20omitted,\n\x20the\x20implementation\x20wil\ - l\x20generate\x20one\x20based\x20on\x20operation_id.\n\n\r\n\x05\x04\0\ - \x02\x05\x04\x12\x04:\x026\x14\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\x20log\x20en\ - try.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04>\x02:\x17\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\x20c\ - an\x20be\x20one\x20of\x20multiple\x20types.\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\x20payload,\x20represented\x20as\x20a\ - \x20protocol\x20buffer\x20that\x20is\n\x20expressed\x20as\x20a\x20JSON\ - \x20object.\x20The\x20only\x20accepted\x20type\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,\x20represented\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\x20st\ - ructure\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\x20about\x20an\x20oper\ - ation\x20associated\x20with\x20the\x20log\x20entry,\x20if\n\x20applicabl\ - e.\n\n\r\n\x05\x04\0\x02\n\x04\x12\x04Q\x02M\x03\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.\x20Source\x20code\x20location\x20information\x20\ - associated\x20with\x20the\x20log\x20entry,\n\x20if\x20any.\n\n\r\n\x05\ - \x04\0\x02\x0b\x04\x12\x04U\x02Q#\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\r\n\x05\x04\x01\x02\0\x04\x12\x04]\x02Z\x1b\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\x20Optional.\x20An\x20arbitrary\ - \x20producer\x20identifier.\x20The\x20combination\x20of\n\x20`id`\x20and\ - \x20`producer`\x20must\x20be\x20globally\x20unique.\x20\x20Examples\x20f\ - or\x20`producer`:\n\x20`\"MyDivision.MyBigCompany.com\"`,\x20`\"github.c\ - om/MyProject/MyApplication\"`.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04b\ - \x02]\x10\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\x20lo\ - g\x20entry\x20in\x20the\x20operation.\n\n\r\n\x05\x04\x01\x02\x02\x04\ - \x12\x04e\x02b\x16\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\ - \x20Optional.\x20Set\x20this\x20to\x20True\x20if\x20this\x20is\x20the\ - \x20last\x20log\x20entry\x20in\x20the\x20operation.\n\n\r\n\x05\x04\x01\ - \x02\x03\x04\x12\x04h\x02e\x11\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\x20source\x20code\x20\ - location\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.\x20Depending\x20on\x20the\ - \x20runtime\x20environment,\x20this\n\x20might\x20be\x20a\x20simple\x20n\ - ame\x20or\x20a\x20fully-qualified\x20name.\n\n\r\n\x05\x04\x02\x02\0\x04\ - \x12\x04p\x02m\x20\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\x20indica\ - tes\x20no\x20line\x20number\n\x20available.\n\n\r\n\x05\x04\x02\x02\x01\ - \x04\x12\x04t\x02p\x12\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\ - \x20function\x20or\x20method\x20being\x20invoked,\x20with\n\x20optional\ - \x20context\x20such\x20as\x20the\x20class\x20or\x20package\x20name.\x20T\ - his\x20information\x20may\x20be\n\x20used\x20in\x20contexts\x20such\x20a\ - s\x20the\x20logs\x20viewer,\x20where\x20a\x20file\x20and\x20line\x20numb\ - er\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\r\n\ - \x05\x04\x02\x02\x02\x04\x12\x04|\x02t\x11\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs deleted file mode 100644 index f8e7f79e39..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs +++ /dev/null @@ -1,904 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/metric_value.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct MetricValue { - // message fields - 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>, - // message oneof groups - pub value: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MetricValue { - fn default() -> &'a MetricValue { - ::default_instance() - } -} - -#[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 { - match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::bool_value(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, - _ => 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)) - } - - // int64 int64_value = 5; - - - pub fn get_int64_value(&self) -> i64 { - match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::int64_value(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, - _ => 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)) - } - - // double double_value = 6; - - - pub fn get_double_value(&self) -> f64 { - match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::double_value(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, - _ => 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)) - } - - // string string_value = 7; - - - pub fn get_string_value(&self) -> &str { - match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::string_value(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, - _ => 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)) - } - - // 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 { - } else { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::string_value(::std::string::String::new())); - } - match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::string_value(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.api.servicecontrol.v1.Distribution distribution_value = 8; - - - pub fn get_distribution_value(&self) -> &super::distribution::Distribution { - match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(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, - _ => 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)) - } - - // 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 { - } else { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(super::distribution::Distribution::new())); - } - match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - super::distribution::Distribution::new() - } - } -} - -impl ::protobuf::Message for 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)?; - }, - 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)); - } - self.value = ::std::option::Option::Some(MetricValue_oneof_value::bool_value(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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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); - 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 ::std::option::Option::Some(ref v) = self.value { - match v { - &MetricValue_oneof_value::bool_value(v) => { - my_size += 2; - }, - &MetricValue_oneof_value::int64_value(v) => { - my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint); - }, - &MetricValue_oneof_value::double_value(v) => { - my_size += 9; - }, - &MetricValue_oneof_value::string_value(ref v) => { - my_size += ::protobuf::rt::string_size(7, &v); - }, - &MetricValue_oneof_value::distribution_value(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<()> { - ::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)?; - } - 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 ::std::option::Option::Some(ref v) = self.value { - match v { - &MetricValue_oneof_value::bool_value(v) => { - os.write_bool(4, v)?; - }, - &MetricValue_oneof_value::int64_value(v) => { - os.write_int64(5, v)?; - }, - &MetricValue_oneof_value::double_value(v) => { - os.write_double(6, v)?; - }, - &MetricValue_oneof_value::string_value(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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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(); - self.end_time.clear(); - self.value = ::std::option::Option::None; - self.value = ::std::option::Option::None; - self.value = ::std::option::Option::None; - self.value = ::std::option::Option::None; - self.value = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MetricValueSet { - // message fields - pub metric_name: ::std::string::String, - pub metric_values: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MetricValueSet { - fn default() -> &'a MetricValueSet { - ::default_instance() - } -} - -impl MetricValueSet { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_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.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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static MetricValueSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MetricValueSet::new) - } -} - -impl ::protobuf::Clear for MetricValueSet { - fn clear(&mut self) { - self.metric_name.clear(); - self.metric_values.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -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\x01ZJgoogle.golang.org/genproto/googleapis/ap\ - i/servicecontrol/v1;servicecontrol\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.S\ - erviceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Go\ - ogle::Cloud::ServiceControl::V1J\x83\x15\n\x06\x12\x04\x0e\0N\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\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\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\0C\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\r\ - \n\x05\x04\0\x02\0\x04\x12\x04$\x02\x1f\x15\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\x20appli\ - es.\x20The\x20time\x20period\x20has\x20different\x20semantics\x20for\x20\ - different\x20metric\n\x20types\x20(cumulative,\x20delta,\x20and\x20gauge\ - ).\x20See\x20the\x20metric\x20definition\n\x20documentation\x20in\x20the\ - \x20service\x20configuration\x20for\x20details.\n\n\r\n\x05\x04\0\x02\ - \x01\x04\x12\x04*\x02$!\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\x20o\ - f\x20the\x20time\x20period\x20over\x20which\x20this\x20metric\x20value's\ - \x20measurement\n\x20applies.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04.\x02\ - *+\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\x043\x02B\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\x20rejecte\ - d.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x033\x08\r\n\x1f\n\x04\x04\0\x02\ - \x03\x12\x035\x04\x18\x1a\x12\x20A\x20boolean\x20value.\n\n\x0c\n\x05\ - \x04\0\x02\x03\x05\x12\x035\x04\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\ - \x035\t\x13\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x035\x16\x17\n-\n\x04\x04\ - \0\x02\x04\x12\x038\x04\x1a\x1a\x20\x20A\x20signed\x2064-bit\x20integer\ - \x20value.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x038\x04\t\n\x0c\n\x05\ - \x04\0\x02\x04\x01\x12\x038\n\x15\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x038\ - \x18\x19\n7\n\x04\x04\0\x02\x05\x12\x03;\x04\x1c\x1a*\x20A\x20double\x20\ - precision\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\x03A\x04(\x1a\x17\x20A\x20distribution\x20value.\n\n\x0c\n\x05\ - \x04\0\x02\x07\x06\x12\x03A\x04\x10\n\x0c\n\x05\x04\0\x02\x07\x01\x12\ - \x03A\x11#\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03A&'\n\xaf\x01\n\x02\x04\ - \x01\x12\x04H\0N\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\x03H\x08\x16\nD\n\x04\x04\x01\x02\0\x12\x03J\ - \x02\x19\x1a7\x20The\x20metric\x20name\x20defined\x20in\x20the\x20servic\ - e\x20configuration.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04J\x02H\x18\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\x14\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03J\x17\x18\n)\n\ - \x04\x04\x01\x02\x01\x12\x03M\x02)\x1a\x1c\x20The\x20values\x20in\x20thi\ - s\x20metric.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03M\x02\n\n\x0c\n\ - \x05\x04\x01\x02\x01\x06\x12\x03M\x0b\x16\n\x0c\n\x05\x04\x01\x02\x01\ - \x01\x12\x03M\x17$\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M'(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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/operation.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/operation.rs deleted file mode 100644 index e818366d88..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/operation.rs +++ /dev/null @@ -1,813 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/operation.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Operation { - // message fields - pub operation_id: ::std::string::String, - pub operation_name: ::std::string::String, - 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>, - 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>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Operation { - fn default() -> &'a Operation { - ::default_instance() - } -} - -impl Operation { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_id)?; - }, - 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 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 7 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_value_sets)?; - }, - 8 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.log_entries)?; - }, - 11 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.importance, 11, &mut self.unknown_fields)? - }, - 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())?; - }, - }; - } - ::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 !self.operation_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.operation_name); - } - 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() { - 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::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(6, &self.labels); - for value in &self.metric_value_sets { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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; - }; - if self.importance != Operation_Importance::LOW { - my_size += ::protobuf::rt::enum_size(11, self.importance); - } - 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 - } - - 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 !self.operation_name.is_empty() { - os.write_string(2, &self.operation_name)?; - } - 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(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)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(6, &self.labels, os)?; - 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)?; - }; - 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)?; - }; - if self.importance != Operation_Importance::LOW { - os.write_enum(11, ::protobuf::ProtobufEnum::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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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(); - self.consumer_id.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.labels.clear(); - self.metric_value_sets.clear(); - self.log_entries.clear(); - self.importance = Operation_Importance::LOW; - self.extensions.clear(); - self.unknown_fields.clear(); - } -} - -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::reflect::ProtobufValue for Operation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Operation_Importance { - LOW = 0, - HIGH = 1, -} - -impl ::protobuf::ProtobufEnum for Operation_Importance { - fn value(&self) -> i32 { - *self as i32 - } - - 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 - } - } - - fn values() -> &'static [Self] { - static values: &'static [Operation_Importance] = &[ - Operation_Importance::LOW, - Operation_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 ::std::marker::Copy for Operation_Importance { -} - -impl ::std::default::Default for Operation_Importance { - fn default() -> Self { - Operation_Importance::LOW - } -} - -impl ::protobuf::reflect::ProtobufValue for Operation_Importance { - 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/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\ - \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\x01ZJgoogle.golang.org/genproto/googleapis/api/servi\ - cecontrol/v1;servicecontrol\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceC\ - ontrol.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::C\ - loud::ServiceControl::V1J\x8b&\n\x06\x12\x04\x0e\0x\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\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!\0x\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\x90\x01\n\x06\x04\0\x04\0\x02\0\x12\x03&\x04\x0c\x1a\ - \x80\x01\x20The\x20API\x20implementation\x20may\x20cache\x20and\x20aggre\ - gate\x20the\x20data.\n\x20The\x20data\x20may\x20be\x20lost\x20when\x20ra\ - re\x20and\x20unexpected\x20system\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\x20implementation\x20doesn't\x20cache\x20and\ - \x20aggregate\x20the\x20data.\n\x20If\x20the\x20method\x20returns\x20suc\ - cessfully,\x20it's\x20guaranteed\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\x037\x02\x1a\x1a\xcf\x03\x20Ide\ - ntity\x20of\x20the\x20operation.\x20This\x20must\x20be\x20unique\x20with\ - in\x20the\x20scope\x20of\x20the\n\x20service\x20that\x20generated\x20the\ - \x20operation.\x20If\x20the\x20service\x20calls\n\x20Check()\x20and\x20R\ - eport()\x20on\x20the\x20same\x20operation,\x20the\x20two\x20calls\x20sho\ - uld\x20carry\n\x20the\x20same\x20id.\n\n\x20UUID\x20version\x204\x20is\ - \x20recommended,\x20though\x20not\x20required.\n\x20In\x20scenarios\x20w\ - here\x20an\x20operation\x20is\x20computed\x20from\x20existing\x20informa\ - tion\n\x20and\x20an\x20idempotent\x20id\x20is\x20desirable\x20for\x20ded\ - uplication\x20purpose,\x20UUID\x20version\x205\n\x20is\x20recommended.\ - \x20See\x20RFC\x204122\x20for\x20details.\n\n\r\n\x05\x04\0\x02\0\x04\ - \x12\x047\x02,\x03\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\x20qualif\ - ied\x20name\x20of\x20the\x20operation.\x20Reserved\x20for\x20future\x20u\ - se.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04:\x027\x1a\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\x20cons\ - umer\x20who\x20is\x20using\x20the\x20service.\n\x20This\x20field\x20shou\ - ld\x20be\x20filled\x20in\x20for\x20the\x20operations\x20initiated\x20by\ - \x20a\n\x20consumer,\x20but\x20not\x20for\x20service-initiated\x20operat\ - ions\x20that\x20are\n\x20not\x20related\x20to\x20a\x20specific\x20consum\ - er.\n\n\x20-\x20This\x20can\x20be\x20in\x20one\x20of\x20the\x20following\ - \x20formats:\n\x20\x20\x20\x20\x20-\x20project:PROJECT_ID,\n\x20\x20\x20\ - \x20\x20-\x20project`_`number:PROJECT_NUMBER,\n\x20\x20\x20\x20\x20-\x20\ - projects/PROJECT_ID\x20or\x20PROJECT_NUMBER,\n\x20\x20\x20\x20\x20-\x20f\ - olders/FOLDER_NUMBER,\n\x20\x20\x20\x20\x20-\x20organizations/ORGANIZATI\ - ON_NUMBER,\n\x20\x20\x20\x20\x20-\x20api`_`key:API_KEY.\n\n\r\n\x05\x04\ - \0\x02\x02\x04\x12\x04H\x02:\x1c\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\r\n\x05\ - \x04\0\x02\x03\x04\x12\x04K\x02H\x19\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\xa2\x02\n\x04\x04\0\x02\x04\x12\x03P\x02\ - )\x1a\x94\x02\x20End\x20time\x20of\x20the\x20operation.\n\x20Required\ - \x20when\x20the\x20operation\x20is\x20used\x20in\x20[ServiceController.R\ - eport][google.api.servicecontrol.v1.ServiceController.Report],\n\x20but\ - \x20optional\x20when\x20the\x20operation\x20is\x20used\x20in\x20[Service\ - Controller.Check][google.api.servicecontrol.v1.ServiceController.Check].\ - \n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04P\x02K+\n\x0c\n\x05\x04\0\x02\x04\ - \x06\x12\x03P\x02\x1b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03P\x1c$\n\x0c\ - \n\x05\x04\0\x02\x04\x03\x12\x03P'(\n\xd0\x06\n\x04\x04\0\x02\x05\x12\ - \x03b\x02!\x1a\xc2\x06\x20Labels\x20describing\x20the\x20operation.\x20O\ - nly\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\x20\ - of\x20metric\x20values.\x20When\x20specified,\x20labels\x20defined\x20in\ - \x20the\n\x20\x20\x20metric\x20value\x20override\x20these\x20default.\n\ - \x20-\x20The\x20following\x20labels\x20defined\x20by\x20Google\x20Cloud\ - \x20Platform:\n\x20\x20\x20\x20\x20-\x20`cloud.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`servicecon\ - trol.googleapis.com/user_agent`\x20describing\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`\x20descri\ - bing\x20the\x20service\n\x20\x20\x20\x20\x20\x20\x20\x20used\x20to\x20ha\ - ndle\x20the\x20API\x20request\x20(e.g.\x20ESP),\n\x20\x20\x20\x20\x20-\ - \x20`servicecontrol.googleapis.com/platform`\x20describing\x20the\x20pla\ - tform\n\x20\x20\x20\x20\x20\x20\x20\x20where\x20the\x20API\x20is\x20serv\ - ed,\x20such\x20as\x20App\x20Engine,\x20Compute\x20Engine,\x20or\n\x20\ - \x20\x20\x20\x20\x20\x20\x20Kubernetes\x20Engine.\n\n\r\n\x05\x04\0\x02\ - \x05\x04\x12\x04b\x02P)\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03b\x02\x15\n\ - \x0c\n\x05\x04\0\x02\x05\x01\x12\x03b\x16\x1c\n\x0c\n\x05\x04\0\x02\x05\ - \x03\x12\x03b\x1f\x20\n\x9a\x04\n\x04\x04\0\x02\x06\x12\x03n\x020\x1a\ - \x8c\x04\x20Represents\x20information\x20about\x20this\x20operation.\x20\ - Each\x20MetricValueSet\n\x20corresponds\x20to\x20a\x20metric\x20defined\ - \x20in\x20the\x20service\x20configuration.\n\x20The\x20data\x20type\x20u\ - sed\x20in\x20the\x20MetricValueSet\x20must\x20agree\x20with\n\x20the\x20\ - data\x20type\x20specified\x20in\x20the\x20metric\x20definition.\n\n\x20W\ - ithin\x20a\x20single\x20operation,\x20it\x20is\x20not\x20allowed\x20to\ - \x20have\x20more\x20than\x20one\n\x20MetricValue\x20instances\x20that\ - \x20have\x20the\x20same\x20metric\x20names\x20and\x20identical\n\x20labe\ - l\x20value\x20combinations.\x20If\x20a\x20request\x20has\x20such\x20dupl\ - icated\x20MetricValue\n\x20instances,\x20the\x20entire\x20request\x20is\ - \x20rejected\x20with\n\x20an\x20invalid\x20argument\x20error.\n\n\x0c\n\ - \x05\x04\0\x02\x06\x04\x12\x03n\x02\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\ - \x03n\x0b\x19\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03n\x1a+\n\x0c\n\x05\ - \x04\0\x02\x06\x03\x12\x03n./\n3\n\x04\x04\0\x02\x07\x12\x03q\x02$\x1a&\ - \x20Represents\x20information\x20to\x20be\x20logged.\n\n\x0c\n\x05\x04\0\ - \x02\x07\x04\x12\x03q\x02\n\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03q\x0b\ - \x13\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03q\x14\x1f\n\x0c\n\x05\x04\0\ - \x02\x07\x03\x12\x03q\"#\n9\n\x04\x04\0\x02\x08\x12\x03t\x02\x1d\x1a,\ - \x20DO\x20NOT\x20USE.\x20This\x20is\x20an\x20experimental\x20field.\n\n\ - \r\n\x05\x04\0\x02\x08\x04\x12\x04t\x02q$\n\x0c\n\x05\x04\0\x02\x08\x06\ - \x12\x03t\x02\x0c\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03t\r\x17\n\x0c\n\ - \x05\x04\0\x02\x08\x03\x12\x03t\x1a\x1c\n\x1d\n\x04\x04\0\x02\t\x12\x03w\ - \x02/\x1a\x10\x20Unimplemented.\n\n\x0c\n\x05\x04\0\x02\t\x04\x12\x03w\ - \x02\n\n\x0c\n\x05\x04\0\x02\t\x06\x12\x03w\x0b\x1e\n\x0c\n\x05\x04\0\ - \x02\t\x01\x12\x03w\x1f)\n\x0c\n\x05\x04\0\x02\t\x03\x12\x03w,.b\x06prot\ - o3\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs deleted file mode 100644 index 0458b7cd73..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs +++ /dev/null @@ -1,1614 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/quota_controller.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct AllocateQuotaRequest { - // message fields - pub service_name: ::std::string::String, - pub allocate_operation: ::protobuf::SingularPtrField, - pub service_config_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AllocateQuotaRequest { - fn default() -> &'a AllocateQuotaRequest { - ::default_instance() - } -} - -impl AllocateQuotaRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.allocate_operation)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_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.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_name); - } - if let Some(ref v) = self.allocate_operation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 - } - - 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)?; - } - 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 !self.service_config_id.is_empty() { - os.write_string(4, &self.service_config_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() -> 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 default_instance() -> &'static AllocateQuotaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AllocateQuotaRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QuotaOperation { - // message fields - pub operation_id: ::std::string::String, - pub method_name: ::std::string::String, - pub consumer_id: ::std::string::String, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub quota_metrics: ::protobuf::RepeatedField, - pub quota_mode: QuotaOperation_QuotaMode, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QuotaOperation { - fn default() -> &'a QuotaOperation { - ::default_instance() - } -} - -impl QuotaOperation { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.method_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_id)?; - }, - 4 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.quota_metrics)?; - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.quota_mode, 6, &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.operation_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.operation_id); - } - if !self.method_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.method_name); - } - 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 value in &self.quota_metrics { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.quota_mode != QuotaOperation_QuotaMode::UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.quota_mode); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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 !self.method_name.is_empty() { - os.write_string(2, &self.method_name)?; - } - 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 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)?; - }; - if self.quota_mode != QuotaOperation_QuotaMode::UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.quota_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 - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static QuotaOperation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - 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 ::std::fmt::Debug 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) - } -} - -#[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, -} - -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(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 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, - ]; - 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 ::std::marker::Copy for QuotaOperation_QuotaMode { -} - -impl ::std::default::Default for QuotaOperation_QuotaMode { - fn default() -> Self { - QuotaOperation_QuotaMode::UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for QuotaOperation_QuotaMode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AllocateQuotaResponse { - // message fields - pub operation_id: ::std::string::String, - pub allocate_errors: ::protobuf::RepeatedField, - pub quota_metrics: ::protobuf::RepeatedField, - pub service_config_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AllocateQuotaResponse { - fn default() -> &'a AllocateQuotaResponse { - ::default_instance() - } -} - -impl AllocateQuotaResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.allocate_errors)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.quota_metrics)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_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.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; - }; - for value in &self.quota_metrics { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 - } - - 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)?; - } - 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)?; - }; - 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)?; - }; - if !self.service_config_id.is_empty() { - os.write_string(4, &self.service_config_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() -> 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 default_instance() -> &'static AllocateQuotaResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AllocateQuotaResponse::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QuotaError { - // message fields - pub code: QuotaError_Code, - 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 QuotaError { - fn default() -> &'a QuotaError { - ::default_instance() - } -} - -impl QuotaError { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for QuotaError { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &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.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())?; - }, - }; - } - ::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 != QuotaError_Code::UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.code); - } - 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.code != QuotaError_Code::UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.code))?; - } - 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.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QuotaError", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QuotaError { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QuotaError::new) - } -} - -impl ::protobuf::Clear for QuotaError { - fn clear(&mut self) { - self.code = QuotaError_Code::UNSPECIFIED; - self.subject.clear(); - self.description.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[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, -} - -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(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 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, - ]; - 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 ::std::marker::Copy for QuotaError_Code { -} - -impl ::std::default::Default for QuotaError_Code { - fn default() -> Self { - QuotaError_Code::UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for QuotaError_Code { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -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/api/client.proto\"\xc2\ - \x01\n\x14AllocateQuotaRequest\x12!\n\x0cservice_name\x18\x01\x20\x01(\t\ - R\x0bserviceName\x12[\n\x12allocate_operation\x18\x02\x20\x01(\x0b2,.goo\ - gle.api.servicecontrol.v1.QuotaOperationR\x11allocateOperation\x12*\n\ - \x11service_config_id\x18\x04\x20\x01(\tR\x0fserviceConfigId\"\x98\x04\n\ - \x0eQuotaOperation\x12!\n\x0coperation_id\x18\x01\x20\x01(\tR\x0boperati\ - onId\x12\x1f\n\x0bmethod_name\x18\x02\x20\x01(\tR\nmethodName\x12\x1f\n\ - \x0bconsumer_id\x18\x03\x20\x01(\tR\nconsumerId\x12P\n\x06labels\x18\x04\ - \x20\x03(\x0b28.google.api.servicecontrol.v1.QuotaOperation.LabelsEntryR\ - \x06labels\x12Q\n\rquota_metrics\x18\x05\x20\x03(\x0b2,.google.api.servi\ - cecontrol.v1.MetricValueSetR\x0cquotaMetrics\x12U\n\nquota_mode\x18\x06\ - \x20\x01(\x0e26.google.api.servicecontrol.v1.QuotaOperation.QuotaModeR\t\ - quotaMode\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03\ - key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"j\n\tQuot\ - aMode\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_O\ - NLY\x10\x04\x12\x0f\n\x0bADJUST_ONLY\x10\x05\"\x8c\x02\n\x15AllocateQuot\ - aResponse\x12!\n\x0coperation_id\x18\x01\x20\x01(\tR\x0boperationId\x12Q\ - \n\x0fallocate_errors\x18\x02\x20\x03(\x0b2(.google.api.servicecontrol.v\ - 1.QuotaErrorR\x0eallocateErrors\x12Q\n\rquota_metrics\x18\x03\x20\x03(\ - \x0b2,.google.api.servicecontrol.v1.MetricValueSetR\x0cquotaMetrics\x12*\ - \n\x11service_config_id\x18\x04\x20\x01(\tR\x0fserviceConfigId\"\x94\x02\ - \n\nQuotaError\x12A\n\x04code\x18\x01\x20\x01(\x0e2-.google.api.servicec\ - ontrol.v1.QuotaError.CodeR\x04code\x12\x18\n\x07subject\x18\x02\x20\x01(\ - \tR\x07subject\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescripti\ - on\"\x86\x01\n\x04Code\x12\x0f\n\x0bUNSPECIFIED\x10\0\x12\x16\n\x12RESOU\ - RCE_EXHAUSTED\x10\x08\x12\x16\n\x12BILLING_NOT_ACTIVE\x10k\x12\x13\n\x0f\ - PROJECT_DELETED\x10l\x12\x13\n\x0fAPI_KEY_INVALID\x10i\x12\x13\n\x0fAPI_\ - KEY_EXPIRED\x10p2\xc5\x02\n\x0fQuotaController\x12\xae\x01\n\rAllocateQu\ - ota\x122.google.api.servicecontrol.v1.AllocateQuotaRequest\x1a3.google.a\ - pi.servicecontrol.v1.AllocateQuotaResponse\"4\x82\xd3\xe4\x93\x02.\")/v1\ - /services/{service_name}:allocateQuota:\x01*\x1a\x80\x01\xcaA\x1dservice\ - control.googleapis.com\xd2A]https://www.googleapis.com/auth/cloud-platfo\ - rm,https://www.googleapis.com/auth/servicecontrolB\xef\x01\n\x20com.goog\ - le.api.servicecontrol.v1B\x14QuotaControllerProtoP\x01ZJgoogle.golang.or\ - g/genproto/googleapis/api/servicecontrol/v1;servicecontrol\xf8\x01\x01\ - \xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\Ser\ - viceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xe1J\n\x07\ - \x12\x05\x0e\0\xee\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202020\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\t\n\x02\x03\x01\x12\x03\ - \x13\09\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\0;\ - \n\t\n\x02\x08%\x12\x03\x17\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\05\n\t\n\x02\x08\x08\x12\ - \x03\x1a\05\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\x08\n\ - \x01\x08\x12\x03\x1d\0:\n\t\n\x02\x08-\x12\x03\x1d\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[managed\n\x20service](ht\ - tps://cloud.google.com/service-management/reference/rpc/google.api/servi\ - cemanagement.v1#google.api.servicemanagement.v1.ManagedService).\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\x044\x029\x03\x1a\x93\x04\x20Attempts\x20to\x20allocate\x20qu\ - ota\x20for\x20the\x20specified\x20consumer.\x20It\x20should\x20be\x20cal\ - led\n\x20before\x20the\x20operation\x20is\x20executed.\n\n\x20This\x20me\ - thod\x20requires\x20the\x20`servicemanagement.services.quota`\n\x20permi\ - ssion\x20on\x20the\x20specified\x20service.\x20For\x20more\x20informatio\ - n,\x20see\n\x20[Cloud\x20IAM](https://cloud.google.com/iam).\n\n\x20**NO\ - TE:**\x20The\x20client\x20**must**\x20fail-open\x20on\x20server\x20error\ - s\x20`INTERNAL`,\n\x20`UNKNOWN`,\x20`DEADLINE_EXCEEDED`,\x20and\x20`UNAV\ - AILABLE`.\x20To\x20ensure\x20system\n\x20reliability,\x20the\x20server\ - \x20may\x20inject\x20these\x20errors\x20to\x20prohibit\x20any\x20hard\n\ - \x20dependency\x20on\x20the\x20quota\x20functionality.\n\n\x0c\n\x05\x06\ - \0\x02\0\x01\x12\x034\x06\x13\n\x0c\n\x05\x06\0\x02\0\x02\x12\x034\x14(\ - \n\x0c\n\x05\x06\0\x02\0\x03\x12\x0343H\n\r\n\x05\x06\0\x02\0\x04\x12\ - \x045\x048\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x045\x048\x06\ - \n;\n\x02\x04\0\x12\x04=\0K\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\x03B\x02\x1a\x1a\xbe\x01\x20Name\x20of\ - \x20the\x20service\x20as\x20specified\x20in\x20the\x20service\x20configu\ - ration.\x20For\x20example,\n\x20`\"pubsub.googleapis.com\"`.\n\n\x20See\ - \x20[google.api.Service][google.api.Service]\x20for\x20the\x20definition\ - \x20of\x20a\x20service\x20name.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04B\x02\ - =\x1e\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\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03B\x18\x19\n=\n\ - \x04\x04\0\x02\x01\x12\x03E\x02(\x1a0\x20Operation\x20that\x20describes\ - \x20the\x20quota\x20allocation.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04E\ - \x02B\x1a\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03E\x02\x10\n\x0c\n\x05\x04\ - \0\x02\x01\x01\x12\x03E\x11#\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03E&'\n\ - \xba\x01\n\x04\x04\0\x02\x02\x12\x03J\x02\x1f\x1a\xac\x01\x20Specifies\ - \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\r\n\x05\x04\0\x02\x02\x04\x12\x04J\ - \x02E(\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03J\x02\x08\n\x0c\n\x05\x04\0\ - \x02\x02\x01\x12\x03J\t\x1a\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03J\x1d\ - \x1e\nB\n\x02\x04\x01\x12\x05N\0\xac\x01\x01\x1a5\x20Represents\x20infor\ - mation\x20regarding\x20a\x20quota\x20operation.\n\n\n\n\x03\x04\x01\x01\ - \x12\x03N\x08\x16\n&\n\x04\x04\x01\x04\0\x12\x04P\x02x\x03\x1a\x18\x20Su\ - pported\x20quota\x20modes.\n\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x03P\x07\ - \x10\nB\n\x06\x04\x01\x04\0\x02\0\x12\x03R\x04\x14\x1a3\x20Guard\x20agai\ - nst\x20implicit\x20default.\x20Must\x20not\x20be\x20used.\n\n\x0e\n\x07\ - \x04\x01\x04\0\x02\0\x01\x12\x03R\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\ - \0\x02\x12\x03R\x12\x13\n\xfa\x02\n\x06\x04\x01\x04\0\x02\x01\x12\x03Z\ - \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\x20\ - no\x20quota\x20will\x20be\x20allocated.\n\x20If\x20multiple\x20quotas\ - \x20are\x20part\x20of\x20the\x20request,\x20and\x20one\x20fails,\x20none\ - \x20of\x20the\n\x20quotas\x20are\x20allocated\x20or\x20released.\n\n\x0e\ - \n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03Z\x04\n\n\x0e\n\x07\x04\x01\x04\ - \0\x02\x01\x02\x12\x03Z\r\x0e\n\xf4\x03\n\x06\x04\x01\x04\0\x02\x02\x12\ - \x03d\x04\x14\x1a\xe4\x03\x20The\x20operation\x20allocates\x20quota\x20f\ - or\x20the\x20amount\x20specified\x20in\x20the\x20service\n\x20configurat\ - ion\x20or\x20specified\x20using\x20the\x20quota\x20metrics.\x20If\x20the\ - \x20amount\x20is\n\x20higher\x20than\x20the\x20available\x20quota,\x20re\ - quest\x20does\x20not\x20fail\x20but\x20all\x20available\n\x20quota\x20wi\ - ll\x20be\x20allocated.\n\x20For\x20rate\x20quota,\x20BEST_EFFORT\x20will\ - \x20continue\x20to\x20deduct\x20from\x20other\x20groups\n\x20even\x20if\ - \x20one\x20does\x20not\x20have\x20enough\x20quota.\x20For\x20allocation,\ - \x20it\x20will\x20find\x20the\n\x20minimum\x20available\x20amount\x20acr\ - oss\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\x03d\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03d\x12\x13\ - \n\xb7\x01\n\x06\x04\x01\x04\0\x02\x03\x12\x03i\x04\x13\x1a\xa7\x01\x20F\ - or\x20AllocateQuota\x20request,\x20only\x20checks\x20if\x20there\x20is\ - \x20enough\x20quota\n\x20available\x20and\x20does\x20not\x20change\x20th\ - e\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\x03i\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03i\x11\ - \x12\n\xa8\x02\n\x06\x04\x01\x04\0\x02\x04\x12\x03p\x04\x13\x1a\x98\x02\ - \x20Unimplemented.\x20When\x20used\x20in\x20AllocateQuotaRequest,\x20thi\ - s\x20returns\x20the\n\x20effective\x20quota\x20limit(s)\x20in\x20the\x20\ - response,\x20and\x20no\x20quota\x20check\x20will\x20be\n\x20performed.\ - \x20Not\x20supported\x20for\x20other\x20requests,\x20and\x20even\x20for\ - \n\x20AllocateQuotaRequest,\x20this\x20is\x20currently\x20supported\x20o\ - nly\x20for\x20whitelisted\n\x20services.\n\n\x0e\n\x07\x04\x01\x04\0\x02\ - \x04\x01\x12\x03p\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x02\x12\x03p\ - \x11\x12\n\xc0\x02\n\x06\x04\x01\x04\0\x02\x05\x12\x03w\x04\x14\x1a\xb0\ - \x02\x20The\x20operation\x20allocates\x20quota\x20for\x20the\x20amount\ - \x20specified\x20in\x20the\x20service\n\x20configuration\x20or\x20specif\ - ied\x20using\x20the\x20quota\x20metrics.\x20If\x20the\x20requested\n\x20\ - amount\x20is\x20higher\x20than\x20the\x20available\x20quota,\x20request\ - \x20does\x20not\x20fail\x20and\n\x20remaining\x20quota\x20would\x20becom\ - e\x20negative\x20(going\x20over\x20the\x20limit)\n\x20Not\x20supported\ - \x20for\x20Rate\x20Quota.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x01\x12\ - \x03w\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x02\x12\x03w\x12\x13\n\ - \xe9\x03\n\x04\x04\x01\x02\0\x12\x04\x83\x01\x02\x1a\x1a\xda\x03\x20Iden\ - tity\x20of\x20the\x20operation.\x20This\x20is\x20expected\x20to\x20be\ - \x20unique\x20within\x20the\x20scope\n\x20of\x20the\x20service\x20that\ - \x20generated\x20the\x20operation,\x20and\x20guarantees\x20idempotency\ - \x20in\n\x20case\x20of\x20retries.\n\n\x20In\x20order\x20to\x20ensure\ - \x20best\x20performance\x20and\x20latency\x20in\x20the\x20Quota\x20backe\ - nds,\n\x20operation_ids\x20are\x20optimally\x20associated\x20with\x20tim\ - e,\x20so\x20that\x20related\n\x20operations\x20can\x20be\x20accessed\x20\ - fast\x20in\x20storage.\x20For\x20this\x20reason,\x20the\n\x20recommended\ - \x20token\x20for\x20services\x20that\x20intend\x20to\x20operate\x20at\ - \x20a\x20high\x20QPS\x20is\n\x20Unix\x20time\x20in\x20nanos\x20+\x20UUID\ - \n\n\x0e\n\x05\x04\x01\x02\0\x04\x12\x05\x83\x01\x02x\x03\n\r\n\x05\x04\ - \x01\x02\0\x05\x12\x04\x83\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\ - \x04\x83\x01\t\x15\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x83\x01\x18\x19\n\ - \xf9\x03\n\x04\x04\x01\x02\x01\x12\x04\x8f\x01\x02\x19\x1a\xea\x03\x20Fu\ - lly\x20qualified\x20name\x20of\x20the\x20API\x20method\x20for\x20which\ - \x20this\x20quota\x20operation\x20is\n\x20requested.\x20This\x20name\x20\ - is\x20used\x20for\x20matching\x20quota\x20rules\x20or\x20metric\x20rules\ - \x20and\n\x20billing\x20status\x20rules\x20defined\x20in\x20service\x20c\ - onfiguration.\n\n\x20This\x20field\x20should\x20not\x20be\x20set\x20if\ - \x20any\x20of\x20the\x20following\x20is\x20true:\n\x20(1)\x20the\x20quot\ - a\x20operation\x20is\x20performed\x20on\x20non-API\x20resources.\n\x20(2\ - )\x20quota_metrics\x20is\x20set\x20because\x20the\x20caller\x20is\x20doi\ - ng\x20quota\x20override.\n\n\x20Example\x20of\x20an\x20RPC\x20method\x20\ - name:\n\x20\x20\x20\x20\x20google.example.library.v1.LibraryService.Crea\ - teShelf\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\x8f\x01\x02\x83\x01\ - \x1a\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x8f\x01\x02\x08\n\r\n\x05\x04\ - \x01\x02\x01\x01\x12\x04\x8f\x01\t\x14\n\r\n\x05\x04\x01\x02\x01\x03\x12\ - \x04\x8f\x01\x17\x18\n\xdd\x01\n\x04\x04\x01\x02\x02\x12\x04\x97\x01\x02\ - \x19\x1a\xce\x01\x20Identity\x20of\x20the\x20consumer\x20for\x20whom\x20\ - this\x20quota\x20operation\x20is\x20being\x20performed.\n\n\x20This\x20c\ - an\x20be\x20in\x20one\x20of\x20the\x20following\x20formats:\n\x20\x20\ - \x20project:,\n\x20\x20\x20project_number:,\ - \n\x20\x20\x20api_key:.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\ - \x06\x97\x01\x02\x8f\x01\x19\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\x97\ - \x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x97\x01\t\x14\n\r\n\ - \x05\x04\x01\x02\x02\x03\x12\x04\x97\x01\x17\x18\n0\n\x04\x04\x01\x02\ - \x03\x12\x04\x9a\x01\x02!\x1a\"\x20Labels\x20describing\x20the\x20operat\ - ion.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x9a\x01\x02\x97\x01\x19\n\ - \r\n\x05\x04\x01\x02\x03\x06\x12\x04\x9a\x01\x02\x15\n\r\n\x05\x04\x01\ - \x02\x03\x01\x12\x04\x9a\x01\x16\x1c\n\r\n\x05\x04\x01\x02\x03\x03\x12\ - \x04\x9a\x01\x1f\x20\n\xd0\x04\n\x04\x04\x01\x02\x04\x12\x04\xa8\x01\x02\ - ,\x1a\xc1\x04\x20Represents\x20information\x20about\x20this\x20operation\ - .\x20Each\x20MetricValueSet\n\x20corresponds\x20to\x20a\x20metric\x20def\ - ined\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\xa8\x01\x02\n\n\r\n\x05\x04\x01\x02\ - \x04\x06\x12\x04\xa8\x01\x0b\x19\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\ - \xa8\x01\x1a'\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\xa8\x01*+\n.\n\x04\ - \x04\x01\x02\x05\x12\x04\xab\x01\x02\x1b\x1a\x20\x20Quota\x20mode\x20for\ - \x20this\x20operation.\n\n\x0f\n\x05\x04\x01\x02\x05\x04\x12\x06\xab\x01\ - \x02\xa8\x01,\n\r\n\x05\x04\x01\x02\x05\x06\x12\x04\xab\x01\x02\x0b\n\r\ - \n\x05\x04\x01\x02\x05\x01\x12\x04\xab\x01\x0c\x16\n\r\n\x05\x04\x01\x02\ - \x05\x03\x12\x04\xab\x01\x19\x1a\n>\n\x02\x04\x02\x12\x06\xaf\x01\0\xc5\ - \x01\x01\x1a0\x20Response\x20message\x20for\x20the\x20AllocateQuota\x20m\ - ethod.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xaf\x01\x08\x1d\ny\n\x04\x04\ - \x02\x02\0\x12\x04\xb2\x01\x02\x1a\x1ak\x20The\x20same\x20operation_id\ - \x20value\x20used\x20in\x20the\x20AllocateQuotaRequest.\x20Used\x20for\n\ - \x20logging\x20and\x20diagnostics\x20purposes.\n\n\x0f\n\x05\x04\x02\x02\ - \0\x04\x12\x06\xb2\x01\x02\xaf\x01\x1f\n\r\n\x05\x04\x02\x02\0\x05\x12\ - \x04\xb2\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xb2\x01\t\x15\n\ - \r\n\x05\x04\x02\x02\0\x03\x12\x04\xb2\x01\x18\x19\n7\n\x04\x04\x02\x02\ - \x01\x12\x04\xb5\x01\x02*\x1a)\x20Indicates\x20the\x20decision\x20of\x20\ - the\x20allocate.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\xb5\x01\x02\n\n\ - \r\n\x05\x04\x02\x02\x01\x06\x12\x04\xb5\x01\x0b\x15\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\xb5\x01\x16%\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ - \xb5\x01()\n\xd9\x03\n\x04\x04\x02\x02\x02\x12\x04\xc1\x01\x02,\x1a\xca\ - \x03\x20Quota\x20metrics\x20to\x20indicate\x20the\x20result\x20of\x20all\ - ocation.\x20Depending\x20on\x20the\n\x20request,\x20one\x20or\x20more\ - \x20of\x20the\x20following\x20metrics\x20will\x20be\x20included:\n\n\x20\ - 1.\x20Per\x20quota\x20group\x20or\x20per\x20quota\x20metric\x20increment\ - al\x20usage\x20will\x20be\x20specified\n\x20using\x20the\x20following\ - \x20delta\x20metric\x20:\n\x20\x20\x20\"serviceruntime.googleapis.com/ap\ - i/consumer/quota_used_count\"\n\n\x202.\x20The\x20quota\x20limit\x20reac\ - hed\x20condition\x20will\x20be\x20specified\x20using\x20the\x20following\ - \n\x20boolean\x20metric\x20:\n\x20\x20\x20\"serviceruntime.googleapis.co\ - m/quota/exceeded\"\n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04\xc1\x01\x02\n\ - \n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xc1\x01\x0b\x19\n\r\n\x05\x04\x02\ - \x02\x02\x01\x12\x04\xc1\x01\x1a'\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\ - \xc1\x01*+\nD\n\x04\x04\x02\x02\x03\x12\x04\xc4\x01\x02\x1f\x1a6\x20ID\ - \x20of\x20the\x20actual\x20config\x20used\x20to\x20process\x20the\x20req\ - uest.\n\n\x0f\n\x05\x04\x02\x02\x03\x04\x12\x06\xc4\x01\x02\xc1\x01,\n\r\ - \n\x05\x04\x02\x02\x03\x05\x12\x04\xc4\x01\x02\x08\n\r\n\x05\x04\x02\x02\ - \x03\x01\x12\x04\xc4\x01\t\x1a\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xc4\ - \x01\x1d\x1e\no\n\x02\x04\x03\x12\x06\xc8\x01\0\xee\x01\x01\x1aa\x20Repr\ - esents\x20error\x20information\x20for\x20[QuotaOperation][google.api.ser\ - vicecontrol.v1.QuotaOperation].\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xc8\ - \x01\x08\x12\n\xfe\x02\n\x04\x04\x03\x04\0\x12\x06\xce\x01\x02\xe2\x01\ - \x03\x1a\xed\x02\x20Error\x20codes\x20related\x20to\x20project\x20config\ - \x20validations\x20are\x20deprecated\x20since\x20the\n\x20quota\x20contr\ - oller\x20methods\x20do\x20not\x20perform\x20these\x20validations.\x20Ins\ - tead\x20services\n\x20have\x20to\x20call\x20the\x20Check\x20method,\x20w\ - ithout\x20quota_properties\x20field,\x20to\x20perform\n\x20these\x20vali\ - dations\x20before\x20calling\x20the\x20quota\x20controller\x20methods.\ - \x20These\n\x20methods\x20check\x20only\x20for\x20project\x20deletion\ - \x20to\x20be\x20wipe\x20out\x20compliant.\n\n\r\n\x05\x04\x03\x04\0\x01\ - \x12\x04\xce\x01\x07\x0b\n%\n\x06\x04\x03\x04\0\x02\0\x12\x04\xd0\x01\ - \x04\x14\x1a\x15\x20This\x20is\x20never\x20used.\n\n\x0f\n\x07\x04\x03\ - \x04\0\x02\0\x01\x12\x04\xd0\x01\x04\x0f\n\x0f\n\x07\x04\x03\x04\0\x02\0\ - \x02\x12\x04\xd0\x01\x12\x13\n}\n\x06\x04\x03\x04\0\x02\x01\x12\x04\xd4\ - \x01\x04\x1b\x1am\x20Quota\x20allocation\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\xd4\x01\x04\x16\n\x0f\n\ - \x07\x04\x03\x04\0\x02\x01\x02\x12\x04\xd4\x01\x19\x1a\nb\n\x06\x04\x03\ - \x04\0\x02\x02\x12\x04\xd8\x01\x04\x1d\x1aR\x20Consumer\x20cannot\x20acc\ - ess\x20the\x20service\x20because\x20the\x20service\x20requires\x20active\ - \n\x20billing.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x01\x12\x04\xd8\x01\ - \x04\x16\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x02\x12\x04\xd8\x01\x19\x1c\n\ - P\n\x06\x04\x03\x04\0\x02\x03\x12\x04\xdb\x01\x04\x1a\x1a@\x20Consumer's\ - \x20project\x20has\x20been\x20marked\x20as\x20deleted\x20(soft\x20deleti\ - on).\n\n\x0f\n\x07\x04\x03\x04\0\x02\x03\x01\x12\x04\xdb\x01\x04\x13\n\ - \x0f\n\x07\x04\x03\x04\0\x02\x03\x02\x12\x04\xdb\x01\x16\x19\n/\n\x06\ - \x04\x03\x04\0\x02\x04\x12\x04\xde\x01\x04\x1a\x1a\x1f\x20Specified\x20A\ - PI\x20key\x20is\x20invalid.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x04\x01\x12\ - \x04\xde\x01\x04\x13\n\x0f\n\x07\x04\x03\x04\0\x02\x04\x02\x12\x04\xde\ - \x01\x16\x19\n0\n\x06\x04\x03\x04\0\x02\x05\x12\x04\xe1\x01\x04\x1a\x1a\ - \x20\x20Specified\x20API\x20Key\x20has\x20expired.\n\n\x0f\n\x07\x04\x03\ - \x04\0\x02\x05\x01\x12\x04\xe1\x01\x04\x13\n\x0f\n\x07\x04\x03\x04\0\x02\ - \x05\x02\x12\x04\xe1\x01\x16\x19\n\x1b\n\x04\x04\x03\x02\0\x12\x04\xe5\ - \x01\x02\x10\x1a\r\x20Error\x20code.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\ - \x06\xe5\x01\x02\xe2\x01\x03\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xe5\x01\ - \x02\x06\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xe5\x01\x07\x0b\n\r\n\x05\ - \x04\x03\x02\0\x03\x12\x04\xe5\x01\x0e\x0f\n\xc7\x01\n\x04\x04\x03\x02\ - \x01\x12\x04\xea\x01\x02\x15\x1a\xb8\x01\x20Subject\x20to\x20whom\x20thi\ - s\x20error\x20applies.\x20See\x20the\x20specific\x20enum\x20for\x20more\ - \x20details\n\x20on\x20this\x20field.\x20For\x20example,\x20\"clientip:<\ - ip\x20address\x20of\x20client>\"\x20or\n\x20\"project:\".\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xea\ - \x01\x02\xe5\x01\x10\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xea\x01\x02\ - \x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xea\x01\t\x10\n\r\n\x05\x04\ - \x03\x02\x01\x03\x12\x04\xea\x01\x13\x14\nO\n\x04\x04\x03\x02\x02\x12\ - \x04\xed\x01\x02\x19\x1aA\x20Free-form\x20text\x20that\x20provides\x20de\ - tails\x20on\x20the\x20cause\x20of\x20the\x20error.\n\n\x0f\n\x05\x04\x03\ - \x02\x02\x04\x12\x06\xed\x01\x02\xea\x01\x15\n\r\n\x05\x04\x03\x02\x02\ - \x05\x12\x04\xed\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xed\ - \x01\t\x14\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xed\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs deleted file mode 100644 index 06a61e7123..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs +++ /dev/null @@ -1,69 +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_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 }, -}; - -#[derive(Clone)] -pub struct QuotaControllerClient { - client: ::grpcio::Client, -} - -impl QuotaControllerClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - QuotaControllerClient { - client: ::grpcio::Client::new(channel), - } - } - - 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 { - 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(&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: ::futures::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); -} - -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.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs deleted file mode 100644 index ba99995c30..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs +++ /dev/null @@ -1,2174 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/service_controller.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct CheckRequest { - // message fields - pub service_name: ::std::string::String, - pub operation: ::protobuf::SingularPtrField, - pub service_config_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckRequest { - fn default() -> &'a CheckRequest { - ::default_instance() - } -} - -impl CheckRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.operation)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_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.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_name); - } - if let Some(ref v) = self.operation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 - } - - 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)?; - } - 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 !self.service_config_id.is_empty() { - os.write_string(4, &self.service_config_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() -> 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 default_instance() -> &'static CheckRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CheckResponse { - // message fields - pub operation_id: ::std::string::String, - pub check_errors: ::protobuf::RepeatedField, - pub service_config_id: ::std::string::String, - pub service_rollout_id: ::std::string::String, - pub check_info: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckResponse { - fn default() -> &'a CheckResponse { - ::default_instance() - } -} - -impl CheckResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.check_errors)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; - }, - 11 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_rollout_id)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.check_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.operation_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.operation_id); - } - for value in &self.check_errors { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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() { - 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.operation_id.is_empty() { - os.write_string(1, &self.operation_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)?; - }; - 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 { - 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.check_errors.clear(); - self.service_config_id.clear(); - self.service_rollout_id.clear(); - self.check_info.clear(); - self.unknown_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) - } -} - -impl ::protobuf::reflect::ProtobufValue for CheckResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 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::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())?; - }, - }; - } - ::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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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>( - "consumer_info", - |m: &CheckResponse_CheckInfo| { &m.consumer_info }, - |m: &mut CheckResponse_CheckInfo| { &mut m.consumer_info }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckResponse.CheckInfo", - fields, - file_descriptor_proto() - ) - }) - } - - 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; - - - 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; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: CheckResponse_ConsumerInfo_ConsumerType) { - self.field_type = v; - } - - // int64 consumer_number = 3; - - - pub fn get_consumer_number(&self) -> i64 { - self.consumer_number - } - pub fn clear_consumer_number(&mut self) { - self.consumer_number = 0; - } - - // Param is passed by value, moved - pub fn set_consumer_number(&mut self, v: i64) { - self.consumer_number = v; - } -} - -impl ::protobuf::Message for CheckResponse_ConsumerInfo { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&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())?; - }, - }; - } - ::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); - } - 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))?; - } - 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() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_ConsumerInfo { - CheckResponse_ConsumerInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( - "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 }, - )); - 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::( - "CheckResponse.ConsumerInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CheckResponse_ConsumerInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckResponse_ConsumerInfo::new) - } -} - -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(); - } -} - -impl ::std::fmt::Debug for CheckResponse_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 { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CheckResponse_ConsumerInfo_ConsumerType { - CONSUMER_TYPE_UNSPECIFIED = 0, - PROJECT = 1, - FOLDER = 2, - ORGANIZATION = 3, - SERVICE_SPECIFIC = 4, -} - -impl ::protobuf::ProtobufEnum for CheckResponse_ConsumerInfo_ConsumerType { - fn value(&self) -> i32 { - *self as i32 - } - - 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 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 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()) - }) - } -} - -impl ::std::marker::Copy for CheckResponse_ConsumerInfo_ConsumerType { -} - -impl ::std::default::Default for CheckResponse_ConsumerInfo_ConsumerType { - fn default() -> Self { - CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CheckResponse_ConsumerInfo_ConsumerType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportRequest { - // message fields - pub service_name: ::std::string::String, - pub operations: ::protobuf::RepeatedField, - pub service_config_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportRequest { - fn default() -> &'a ReportRequest { - ::default_instance() - } -} - -impl ReportRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_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.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; - }; - 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 - } - - 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.operations { - 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.service_config_id.is_empty() { - os.write_string(3, &self.service_config_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() -> 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 default_instance() -> &'static ReportRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportResponse { - // message fields - pub report_errors: ::protobuf::RepeatedField, - pub service_config_id: ::std::string::String, - pub service_rollout_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportResponse { - fn default() -> &'a ReportResponse { - ::default_instance() - } -} - -impl ReportResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_rollout_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; - for value in &self.report_errors { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.service_config_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.service_config_id); - } - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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)?; - }; - if !self.service_config_id.is_empty() { - os.write_string(2, &self.service_config_id)?; - } - if !self.service_rollout_id.is_empty() { - os.write_string(4, &self.service_rollout_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() -> 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 default_instance() -> &'static ReportResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportResponse::new) - } -} - -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 ::std::fmt::Debug 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() - } -} - -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()) - } - - // .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 ReportResponse_ReportError { - 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_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(()) - } - - // 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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReportResponse_ReportError { - ReportResponse_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 default_instance() -> &'static ReportResponse_ReportError { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportResponse_ReportError::new) - } -} - -impl ::protobuf::Clear for ReportResponse_ReportError { - fn clear(&mut self) { - self.operation_id.clear(); - self.status.clear(); - self.unknown_fields.clear(); - } -} - -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 ::protobuf::reflect::ProtobufValue for ReportResponse_ReportError { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -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.google/api/\ - servicecontrol/v1/check_error.proto\x1a,google/api/servicecontrol/v1/ope\ - ration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/st\ - atus.proto\x1a\x17google/api/client.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\"\xf3\x05\n\rCheckResponse\x12!\n\x0coperation_id\x18\x01\x20\x01(\tR\ - \x0boperationId\x12K\n\x0ccheck_errors\x18\x02\x20\x03(\x0b2(.google.api\ - .servicecontrol.v1.CheckErrorR\x0bcheckErrors\x12*\n\x11service_config_i\ - d\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\tcheck\ - Info\x1a\x95\x01\n\tCheckInfo\x12)\n\x10unused_arguments\x18\x01\x20\x03\ - (\tR\x0funusedArguments\x12]\n\rconsumer_info\x18\x02\x20\x01(\x0b28.goo\ - gle.api.servicecontrol.v1.CheckResponse.ConsumerInfoR\x0cconsumerInfo\ - \x1a\xa9\x02\n\x0cConsumerInfo\x12%\n\x0eproject_number\x18\x01\x20\x01(\ - \x03R\rprojectNumber\x12Y\n\x04type\x18\x02\x20\x01(\x0e2E.google.api.se\ - rvicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerTypeR\x04type\x12'\n\ - \x0fconsumer_number\x18\x03\x20\x01(\x03R\x0econsumerNumber\"n\n\x0cCons\ - umerType\x12\x1d\n\x19CONSUMER_TYPE_UNSPECIFIED\x10\0\x12\x0b\n\x07PROJE\ - CT\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\x0bserviceName\x12G\n\noperations\ - \x18\x02\x20\x03(\x0b2'.google.api.servicecontrol.v1.OperationR\noperati\ - ons\x12*\n\x11service_config_id\x18\x03\x20\x01(\tR\x0fserviceConfigId\"\ - \xa7\x02\n\x0eReportResponse\x12]\n\rreport_errors\x18\x01\x20\x03(\x0b2\ - 8.google.api.servicecontrol.v1.ReportResponse.ReportErrorR\x0creportErro\ - rs\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\x0bop\ - erationId\x12*\n\x06status\x18\x02\x20\x01(\x0b2\x12.google.rpc.StatusR\ - \x06status2\xbc\x03\n\x11ServiceController\x12\x8e\x01\n\x05Check\x12*.g\ - oogle.api.servicecontrol.v1.CheckRequest\x1a+.google.api.servicecontrol.\ - v1.CheckResponse\",\x82\xd3\xe4\x93\x02&\"!/v1/services/{service_name}:c\ - heck:\x01*\x12\x92\x01\n\x06Report\x12+.google.api.servicecontrol.v1.Rep\ - ortRequest\x1a,.google.api.servicecontrol.v1.ReportResponse\"-\x82\xd3\ - \xe4\x93\x02'\"\"/v1/services/{service_name}:report:\x01*\x1a\x80\x01\ - \xcaA\x1dservicecontrol.googleapis.com\xd2A]https://www.googleapis.com/a\ - uth/cloud-platform,https://www.googleapis.com/auth/servicecontrolB\xf8\ - \x01\n\x20com.google.api.servicecontrol.v1B\x16ServiceControllerProtoP\ - \x01ZJgoogle.golang.org/genproto/googleapis/api/servicecontrol/v1;servic\ - econtrol\xf8\x01\x01\xa2\x02\x04GASC\xaa\x02\x1eGoogle.Cloud.ServiceCont\ - rol.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Clou\ - d::ServiceControl::V1J\xe5L\n\x07\x12\x05\x0e\0\xf8\x01\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\08\n\t\n\x02\x03\x02\x12\x03\x14\0\ - 6\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\0;\n\t\n\x02\ - \x08%\x12\x03\x1a\0;\n\x08\n\x01\x08\x12\x03\x1b\0a\n\t\n\x02\x08\x0b\ - \x12\x03\x1b\0a\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\07\n\t\n\x02\x08\x08\x12\x03\x1d\07\ - \n\x08\n\x01\x08\x12\x03\x1e\09\n\t\n\x02\x08\x01\x12\x03\x1e\09\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\x08\n\x01\x08\x12\x03!\0\ - :\n\t\n\x02\x08-\x12\x03!\0:\n\x99\x02\n\x02\x06\0\x12\x04'\0Y\x01\x1a\ - \x8c\x02\x20[Google\x20Service\x20Control\x20API](/service-control/overv\ - iew)\n\n\x20Lets\x20clients\x20check\x20and\x20report\x20operations\x20a\ - gainst\x20a\x20[managed\n\x20service](https://cloud.google.com/service-m\ - anagement/reference/rpc/google.api/servicemanagement.v1#google.api.servi\ - cemanagement.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\xd6\x06\n\x04\x06\0\x02\0\x12\x04=\x02B\x03\x1a\xc7\ - \x06\x20Checks\x20whether\x20an\x20operation\x20on\x20a\x20service\x20sh\ - ould\x20be\x20allowed\x20to\x20proceed\n\x20based\x20on\x20the\x20config\ - uration\x20of\x20the\x20service\x20and\x20related\x20policies.\x20It\x20\ - must\x20be\n\x20called\x20before\x20the\x20operation\x20is\x20executed.\ - \n\n\x20If\x20feasible,\x20the\x20client\x20should\x20cache\x20the\x20ch\ - eck\x20results\x20and\x20reuse\x20them\x20for\n\x2060\x20seconds.\x20In\ - \x20case\x20of\x20any\x20server\x20errors,\x20the\x20client\x20should\ - \x20rely\x20on\x20the\n\x20cached\x20results\x20for\x20much\x20longer\ - \x20time\x20to\x20avoid\x20outage.\n\x20WARNING:\x20There\x20is\x20gener\ - al\x2060s\x20delay\x20for\x20the\x20configuration\x20and\x20policy\n\x20\ - propagation,\x20therefore\x20callers\x20MUST\x20NOT\x20depend\x20on\x20t\ - he\x20`Check`\x20method\x20having\n\x20the\x20latest\x20policy\x20inform\ - ation.\n\n\x20NOTE:\x20the\x20[CheckRequest][google.api.servicecontrol.v\ - 1.CheckRequest]\x20has\x20the\x20size\x20limit\x20of\x2064KB.\n\n\x20Thi\ - s\x20method\x20requires\x20the\x20`servicemanagement.services.check`\x20\ - permission\n\x20on\x20the\x20specified\x20service.\x20For\x20more\x20inf\ - ormation,\x20see\n\x20[Cloud\x20IAM](https://cloud.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\x20Co\ - ntrol,\x20such\x20as\x20logs\x20and\n\x20metrics.\x20It\x20should\x20be\ - \x20called\x20after\x20an\x20operation\x20is\x20completed.\n\n\x20If\x20\ - feasible,\x20the\x20client\x20should\x20aggregate\x20reporting\x20data\ - \x20for\x20up\x20to\x205\n\x20seconds\x20to\x20reduce\x20API\x20traffic.\ - \x20Limiting\x20aggregation\x20to\x205\x20seconds\x20is\x20to\n\x20reduc\ - e\x20data\x20loss\x20during\x20client\x20crashes.\x20Clients\x20should\ - \x20carefully\x20choose\n\x20the\x20aggregation\x20time\x20window\x20to\ - \x20avoid\x20data\x20loss\x20risk\x20more\x20than\x200.01%\n\x20for\x20b\ - usiness\x20and\x20compliance\x20reasons.\n\n\x20NOTE:\x20the\x20[ReportR\ - equest][google.api.servicecontrol.v1.ReportRequest]\x20has\x20the\x20siz\ - e\x20limit\x20(wire-format\x20byte\x20size)\x20of\n\x201MB.\n\n\x20This\ - \x20method\x20requires\x20the\x20`servicemanagement.services.report`\x20\ - permission\n\x20on\x20the\x20specified\x20service.\x20For\x20more\x20inf\ - ormation,\x20see\n\x20[Google\x20Cloud\x20IAM](https://cloud.google.com/\ - iam).\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03S\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\x20example,\n\x20`\"pubsub.googleap\ - is.com\"`.\n\n\x20See\n\x20[google.api.Service](https://cloud.google.com\ - /service-management/reference/rpc/google.api#google.api.Service)\n\x20fo\ - r\x20the\x20definition\x20of\x20a\x20service\x20name.\n\n\r\n\x05\x04\0\ - \x02\0\x04\x12\x04c\x02\\\x16\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\x20to\x20be\x20checked.\n\n\r\n\x05\x04\0\x02\x01\ - \x04\x12\x04f\x02c\x1a\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\r\n\x05\ - \x04\0\x02\x02\x04\x12\x04m\x02f\x1a\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\xb8\x01\ - \x01\x1a(\x20Response\x20message\x20for\x20the\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\x20information\x20about\x20the\x20ch\ - eck\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\x20that\x20are\x20ignored\x20by\ - \x20the\x20server.\n\x20The\x20client\x20doesn't\x20need\x20to\x20send\ - \x20them\x20for\x20following\x20requests\x20to\x20improve\n\x20performan\ - ce\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\x0f\n\x07\ - \x04\x01\x03\0\x02\x01\x04\x12\x04z\x04w)\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\x20about\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://clo\ - ud.google.com/resource-manager/).\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\x20consumer\x20is\x20a\x20Google\x20Clo\ - ud\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\x20resource\x20container\x20which\x20is\x20defi\ - ned\x20by\x20the\x20service\n\x20producer\x20to\x20offer\x20their\x20use\ - rs\x20the\x20ability\x20to\x20manage\x20service\x20control\n\x20function\ - alities\x20at\x20a\x20finer\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\x20Google\x20cloud\x20project\x20number,\x20e.g.\x20\ - 1234567890.\x20A\x20value\x20of\x200\x20indicates\n\x20no\x20project\x20\ - number\x20is\x20found.\n\n\x20NOTE:\x20This\x20field\x20is\x20deprecated\ - \x20after\x20we\x20support\x20flexible\x20consumer\n\x20id.\x20New\x20co\ - de\x20should\x20not\x20depend\x20on\x20this\x20field\x20anymore.\n\n\x11\ - \n\x07\x04\x01\x03\x01\x02\0\x04\x12\x06\x99\x01\x04\x92\x01\x05\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\x20cons\ - umer\x20which\x20should\x20have\x20been\x20defined\x20in\n\x20[Google\ - \x20Resource\x20Manager](https://cloud.google.com/resource-manager/).\n\ - \n\x11\n\x07\x04\x01\x03\x01\x02\x01\x04\x12\x06\x9d\x01\x04\x99\x01\x1d\ - \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\x20nu\ - mber,\x20folder\n\x20number\x20or\x20organization\x20number\x20e.g.\x201\ - 234567890.\x20A\x20value\x20of\x200\x20indicates\x20no\n\x20consumer\x20\ - number\x20is\x20found.\n\n\x11\n\x07\x04\x01\x03\x01\x02\x02\x04\x12\x06\ - \xa2\x01\x04\x9d\x01\x1a\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\ - \x9f\x01\n\x04\x04\x01\x02\0\x12\x04\xa7\x01\x02\x1a\x1a\x90\x01\x20The\ - \x20same\x20operation_id\x20value\x20used\x20in\x20the\x20[CheckRequest]\ - [google.api.servicecontrol.v1.CheckRequest].\n\x20Used\x20for\x20logging\ - \x20and\x20diagnostics\x20purposes.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\ - \x06\xa7\x01\x02\xa3\x01\x03\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xa7\x01\ - \x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xa7\x01\t\x15\n\r\n\x05\x04\ - \x01\x02\0\x03\x12\x04\xa7\x01\x18\x19\n\xdb\x01\n\x04\x04\x01\x02\x01\ - \x12\x04\xae\x01\x02'\x1a\xcc\x01\x20Indicate\x20the\x20decision\x20of\ - \x20the\x20check.\n\n\x20If\x20no\x20check\x20errors\x20are\x20present,\ - \x20the\x20service\x20should\x20process\x20the\x20operation.\n\x20Otherw\ - ise\x20the\x20service\x20should\x20use\x20the\x20list\x20of\x20errors\ - \x20to\x20determine\x20the\n\x20appropriate\x20action.\n\n\r\n\x05\x04\ - \x01\x02\x01\x04\x12\x04\xae\x01\x02\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\ - \x04\xae\x01\x0b\x15\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xae\x01\x16\"\ - \n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xae\x01%&\nA\n\x04\x04\x01\x02\ - \x02\x12\x04\xb1\x01\x02\x1f\x1a3\x20The\x20actual\x20config\x20id\x20us\ - ed\x20to\x20process\x20the\x20request.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\ - \x12\x06\xb1\x01\x02\xae\x01'\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xb1\ - \x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xb1\x01\t\x1a\n\r\n\ - \x05\x04\x01\x02\x02\x03\x12\x04\xb1\x01\x1d\x1e\nK\n\x04\x04\x01\x02\ - \x03\x12\x04\xb4\x01\x02!\x1a=\x20The\x20current\x20service\x20rollout\ - \x20id\x20used\x20to\x20process\x20the\x20request.\n\n\x0f\n\x05\x04\x01\ - \x02\x03\x04\x12\x06\xb4\x01\x02\xb1\x01\x1f\n\r\n\x05\x04\x01\x02\x03\ - \x05\x12\x04\xb4\x01\x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xb4\ - \x01\t\x1b\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xb4\x01\x1e\x20\nY\n\ - \x04\x04\x01\x02\x04\x12\x04\xb7\x01\x02\x1b\x1aK\x20Feedback\x20data\ - \x20returned\x20from\x20the\x20server\x20during\x20processing\x20a\x20Ch\ - eck\x20request.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\xb7\x01\x02\ - \xb4\x01!\n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\xb7\x01\x02\x0b\n\r\n\ - \x05\x04\x01\x02\x04\x01\x12\x04\xb7\x01\x0c\x16\n\r\n\x05\x04\x01\x02\ - \x04\x03\x12\x04\xb7\x01\x19\x1a\n6\n\x02\x04\x02\x12\x06\xbb\x01\0\xd6\ - \x01\x01\x1a(\x20Request\x20message\x20for\x20the\x20Report\x20method.\n\ - \n\x0b\n\x03\x04\x02\x01\x12\x04\xbb\x01\x08\x15\n\x91\x02\n\x04\x04\x02\ - \x02\0\x12\x04\xc2\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\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xc2\x01\x02\xbb\x01\ - \x17\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xc2\x01\x02\x08\n\r\n\x05\x04\ - \x02\x02\0\x01\x12\x04\xc2\x01\t\x15\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\ - \xc2\x01\x18\x19\n\x96\x04\n\x04\x04\x02\x02\x01\x12\x04\xce\x01\x02$\ - \x1a\x87\x04\x20Operations\x20to\x20be\x20reported.\n\n\x20Typically\x20\ - the\x20service\x20should\x20report\x20one\x20operation\x20per\x20request\ - .\n\x20Putting\x20multiple\x20operations\x20into\x20a\x20single\x20reque\ - st\x20is\x20allowed,\x20but\x20should\n\x20be\x20used\x20only\x20when\ - \x20multiple\x20operations\x20are\x20natually\x20available\x20at\x20the\ - \x20time\n\x20of\x20the\x20report.\n\n\x20There\x20is\x20no\x20limit\x20\ - on\x20the\x20number\x20of\x20operations\x20in\x20the\x20same\x20ReportRe\ - quest,\n\x20however\x20the\x20ReportRequest\x20size\x20should\x20be\x20n\ - o\x20larger\x20than\x201MB.\x20See\n\x20[ReportResponse.report_errors][g\ - oogle.api.servicecontrol.v1.ReportResponse.report_errors]\x20for\x20part\ - ial\x20failure\x20behavior.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\xce\ - \x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xce\x01\x0b\x14\n\r\n\ - \x05\x04\x02\x02\x01\x01\x12\x04\xce\x01\x15\x1f\n\r\n\x05\x04\x02\x02\ - \x01\x03\x12\x04\xce\x01\"#\n\xb6\x01\n\x04\x04\x02\x02\x02\x12\x04\xd5\ - \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\ - \x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xd5\x01\x02\xce\x01$\n\r\n\x05\ - \x04\x02\x02\x02\x05\x12\x04\xd5\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\ - \x01\x12\x04\xd5\x01\t\x1a\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xd5\x01\ - \x1d\x1e\n7\n\x02\x04\x03\x12\x06\xd9\x01\0\xf8\x01\x01\x1a)\x20Response\ - \x20message\x20for\x20the\x20Report\x20method.\n\n\x0b\n\x03\x04\x03\x01\ - \x12\x04\xd9\x01\x08\x16\n|\n\x04\x04\x03\x03\0\x12\x06\xdb\x01\x02\xe1\ - \x01\x03\x1al\x20Represents\x20the\x20processing\x20error\x20of\x20one\ - \x20[Operation][google.api.servicecontrol.v1.Operation]\x20in\x20the\x20\ - request.\n\n\r\n\x05\x04\x03\x03\0\x01\x12\x04\xdb\x01\n\x15\n{\n\x06\ - \x04\x03\x03\0\x02\0\x12\x04\xdd\x01\x04\x1c\x1ak\x20The\x20[Operation.o\ - peration_id][google.api.servicecontrol.v1.Operation.operation_id]\x20val\ - ue\x20from\x20the\x20request.\n\n\x11\n\x07\x04\x03\x03\0\x02\0\x04\x12\ - \x06\xdd\x01\x04\xdb\x01\x17\n\x0f\n\x07\x04\x03\x03\0\x02\0\x05\x12\x04\ - \xdd\x01\x04\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x01\x12\x04\xdd\x01\x0b\ - \x17\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\x12\x04\xdd\x01\x1a\x1b\no\n\ - \x06\x04\x03\x03\0\x02\x01\x12\x04\xe0\x01\x04!\x1a_\x20Details\x20of\ - \x20the\x20error\x20when\x20processing\x20the\x20[Operation][google.api.\ - servicecontrol.v1.Operation].\n\n\x11\n\x07\x04\x03\x03\0\x02\x01\x04\ - \x12\x06\xe0\x01\x04\xdd\x01\x1c\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x06\ - \x12\x04\xe0\x01\x04\x15\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x01\x12\x04\ - \xe0\x01\x16\x1c\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x03\x12\x04\xe0\x01\ - \x1f\x20\n\x8e\x06\n\x04\x04\x03\x02\0\x12\x04\xf1\x01\x02)\x1a\xff\x05\ - \x20Partial\x20failures,\x20one\x20for\x20each\x20`Operation`\x20in\x20t\ - he\x20request\x20that\x20failed\n\x20processing.\x20There\x20are\x20thre\ - e\x20possible\x20combinations\x20of\x20the\x20RPC\x20status:\n\n\x201.\ - \x20The\x20combination\x20of\x20a\x20successful\x20RPC\x20status\x20and\ - \x20an\x20empty\x20`report_errors`\n\x20\x20\x20\x20list\x20indicates\ - \x20a\x20complete\x20success\x20where\x20all\x20`Operations`\x20in\x20th\ - e\n\x20\x20\x20\x20request\x20are\x20processed\x20successfully.\n\x202.\ - \x20The\x20combination\x20of\x20a\x20successful\x20RPC\x20status\x20and\ - \x20a\x20non-empty\n\x20\x20\x20\x20`report_errors`\x20list\x20indicates\ - \x20a\x20partial\x20success\x20where\x20some\n\x20\x20\x20\x20`Operation\ - s`\x20in\x20the\x20request\x20succeeded.\x20Each\n\x20\x20\x20\x20`Opera\ - tion`\x20that\x20failed\x20processing\x20has\x20a\x20corresponding\x20it\ - em\n\x20\x20\x20\x20in\x20this\x20list.\n\x203.\x20A\x20failed\x20RPC\ - \x20status\x20indicates\x20a\x20general\x20non-deterministic\x20failure.\ - \n\x20\x20\x20\x20When\x20this\x20happens,\x20it's\x20impossible\x20to\ - \x20know\x20which\x20of\x20the\n\x20\x20\x20\x20'Operations'\x20in\x20th\ - e\x20request\x20succeeded\x20or\x20failed.\n\n\r\n\x05\x04\x03\x02\0\x04\ - \x12\x04\xf1\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xf1\x01\x0b\ - \x16\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xf1\x01\x17$\n\r\n\x05\x04\x03\ - \x02\0\x03\x12\x04\xf1\x01'(\nA\n\x04\x04\x03\x02\x01\x12\x04\xf4\x01\ - \x02\x1f\x1a3\x20The\x20actual\x20config\x20id\x20used\x20to\x20process\ - \x20the\x20request.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xf4\x01\ - \x02\xf1\x01)\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xf4\x01\x02\x08\n\r\ - \n\x05\x04\x03\x02\x01\x01\x12\x04\xf4\x01\t\x1a\n\r\n\x05\x04\x03\x02\ - \x01\x03\x12\x04\xf4\x01\x1d\x1e\nK\n\x04\x04\x03\x02\x02\x12\x04\xf7\ - \x01\x02\x20\x1a=\x20The\x20current\x20service\x20rollout\x20id\x20used\ - \x20to\x20process\x20the\x20request.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\ - \x12\x06\xf7\x01\x02\xf4\x01\x1f\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\ - \xf7\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xf7\x01\t\x1b\n\r\ - \n\x05\x04\x03\x02\x02\x03\x12\x04\xf7\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller_grpc.rs deleted file mode 100644 index c290d06953..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller_grpc.rs +++ /dev/null @@ -1,97 +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_SERVICE_CONTROLLER_CHECK: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicecontrol.v1.ServiceController/Check", - 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_CONTROLLER_REPORT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicecontrol.v1.ServiceController/Report", - 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 ServiceControllerClient { - client: ::grpcio::Client, -} - -impl ServiceControllerClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - ServiceControllerClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn check_opt(&self, req: &super::service_controller::CheckRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_CONTROLLER_CHECK, req, opt) - } - - pub fn check(&self, req: &super::service_controller::CheckRequest) -> ::grpcio::Result { - self.check_opt(req, ::grpcio::CallOption::default()) - } - - pub fn check_async_opt(&self, req: &super::service_controller::CheckRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_CONTROLLER_CHECK, req, opt) - } - - pub fn check_async(&self, req: &super::service_controller::CheckRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.check_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn report_opt(&self, req: &super::service_controller::ReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_CONTROLLER_REPORT, req, opt) - } - - pub fn report(&self, req: &super::service_controller::ReportRequest) -> ::grpcio::Result { - self.report_opt(req, ::grpcio::CallOption::default()) - } - - pub fn report_async_opt(&self, req: &super::service_controller::ReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_CONTROLLER_REPORT, req, opt) - } - - pub fn report_async(&self, req: &super::service_controller::ReportRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.report_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait ServiceController { - fn check(&mut self, ctx: ::grpcio::RpcContext, req: super::service_controller::CheckRequest, sink: ::grpcio::UnarySink); - fn report(&mut self, ctx: ::grpcio::RpcContext, req: super::service_controller::ReportRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_service_controller(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_CONTROLLER_CHECK, move |ctx, req, resp| { - instance.check(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_SERVICE_CONTROLLER_REPORT, move |ctx, req, resp| { - instance.report(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/resources.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/resources.rs deleted file mode 100644 index 530337657d..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/resources.rs +++ /dev/null @@ -1,3116 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/servicemanagement/v1/resources.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ManagedService { - // message fields - pub service_name: ::std::string::String, - pub producer_project_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ManagedService { - fn default() -> &'a ManagedService { - ::default_instance() - } -} - -impl ManagedService { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_project_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.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.service_name); - } - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static ManagedService { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ManagedService::new) - } -} - -impl ::protobuf::Clear for ManagedService { - fn clear(&mut self) { - self.service_name.clear(); - self.producer_project_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OperationMetadata { - // message fields - pub resource_names: ::protobuf::RepeatedField<::std::string::String>, - pub steps: ::protobuf::RepeatedField, - pub progress_percentage: i32, - pub start_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 OperationMetadata { - fn default() -> &'a OperationMetadata { - ::default_instance() - } -} - -impl OperationMetadata { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.steps)?; - }, - 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; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_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; - 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; - }; - if self.progress_percentage != 0 { - my_size += ::protobuf::rt::value_size(3, self.progress_percentage, ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.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.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)?; - }; - 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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(); - } -} - -impl ::std::fmt::Debug for OperationMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OperationMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 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; - } - - // 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.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; - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: OperationMetadata_Status) { - self.status = v; - } -} - -impl ::protobuf::Message for OperationMetadata_Step { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OperationMetadata_Step { - OperationMetadata_Step::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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() - ) - }) - } - - fn default_instance() -> &'static OperationMetadata_Step { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OperationMetadata_Step::new) - } -} - -impl ::protobuf::Clear for OperationMetadata_Step { - fn clear(&mut self) { - self.description.clear(); - self.status = OperationMetadata_Status::STATUS_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OperationMetadata_Step { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OperationMetadata_Step { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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, -} - -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(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 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, - ]; - 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 ::std::marker::Copy for OperationMetadata_Status { -} - -impl ::std::default::Default for OperationMetadata_Status { - fn default() -> Self { - OperationMetadata_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)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Diagnostic { - // message fields - pub location: ::std::string::String, - pub kind: Diagnostic_Kind, - pub message: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Diagnostic { - fn default() -> &'a Diagnostic { - ::default_instance() - } -} - -impl Diagnostic { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.kind, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.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.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.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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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.message.is_empty() { - os.write_string(3, &self.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() -> 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 default_instance() -> &'static Diagnostic { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Diagnostic::new) - } -} - -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 ::std::fmt::Debug 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, -} - -impl ::protobuf::ProtobufEnum for Diagnostic_Kind { - fn value(&self) -> i32 { - *self as i32 - } - - 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 - } - } - - fn values() -> &'static [Self] { - static values: &'static [Diagnostic_Kind] = &[ - Diagnostic_Kind::WARNING, - Diagnostic_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 ::std::marker::Copy for Diagnostic_Kind { -} - -impl ::std::default::Default for Diagnostic_Kind { - fn default() -> Self { - Diagnostic_Kind::WARNING - } -} - -impl ::protobuf::reflect::ProtobufValue for Diagnostic_Kind { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ConfigSource { - // message fields - pub id: ::std::string::String, - pub files: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -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; - } - - // Mutable pointer to the field. - pub fn mut_files(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.files - } - - // Take field - pub fn take_files(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.files, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.files)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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(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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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(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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static ConfigSource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConfigSource::new) - } -} - -impl ::protobuf::Clear for ConfigSource { - fn clear(&mut self) { - self.id.clear(); - self.files.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ConfigFile { - // message fields - pub file_path: ::std::string::String, - pub file_contents: ::std::vec::Vec, - pub file_type: ConfigFile_FileType, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ConfigFile { - fn default() -> &'a ConfigFile { - ::default_instance() - } -} - -impl ConfigFile { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.file_contents)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.file_type, 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.file_path.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.file_path); - } - 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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static ConfigFile { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConfigFile::new) - } -} - -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 ::std::fmt::Debug 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 - } - - 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 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, - ]; - 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 ::std::marker::Copy for ConfigFile_FileType { -} - -impl ::std::default::Default for ConfigFile_FileType { - fn default() -> Self { - ConfigFile_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)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ConfigRef { - // 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 ConfigRef { - fn default() -> &'a ConfigRef { - ::default_instance() - } -} - -impl ConfigRef { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static ConfigRef { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConfigRef::new) - } -} - -impl ::protobuf::Clear for ConfigRef { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ChangeReport { - // message fields - pub config_changes: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ChangeReport { - fn default() -> &'a ChangeReport { - ::default_instance() - } -} - -impl ChangeReport { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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(); - } - - 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 created_by = 3; - - - pub fn get_created_by(&self) -> &str { - &self.created_by - } - pub fn clear_created_by(&mut self) { - self.created_by.clear(); - } - - // Param is passed by value, moved - pub fn set_created_by(&mut self, v: ::std::string::String) { - self.created_by = v; - } - - // 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 - } - - // Take field - pub fn take_created_by(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.created_by, ::std::string::String::new()) - } - - // .google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4; - - - pub fn get_status(&self) -> Rollout_RolloutStatus { - self.status - } - pub fn clear_status(&mut self) { - self.status = Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: Rollout_RolloutStatus) { - self.status = v; - } - - // .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; - - - pub fn get_traffic_percent_strategy(&self) -> &Rollout_TrafficPercentStrategy { - match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(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, - _ => 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)) - } - - // 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 { - } else { - self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(Rollout_TrafficPercentStrategy::new())); - } - match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Rollout_TrafficPercentStrategy::new() - } - } - - // .google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; - - - pub fn get_delete_service_strategy(&self) -> &Rollout_DeleteServiceStrategy { - match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(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, - _ => 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)) - } - - // 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 { - } else { - self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(Rollout_DeleteServiceStrategy::new())); - } - match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.created_by)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.status, 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.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(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()?)); - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_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.rollout_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.rollout_id); - } - 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.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.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) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Rollout_oneof_strategy::delete_service_strategy(ref v) => { - 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.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 !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.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_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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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.strategy = ::std::option::Option::None; - self.strategy = ::std::option::Option::None; - self.service_name.clear(); - self.unknown_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) - } -} - -impl ::protobuf::reflect::ProtobufValue for Rollout { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 Rollout_TrafficPercentStrategy { - pub fn new() -> Rollout_TrafficPercentStrategy { - ::std::default::Default::default() - } - - // repeated .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.PercentagesEntry percentages = 1; - - - pub fn get_percentages(&self) -> &::std::collections::HashMap<::std::string::String, f64> { - &self.percentages - } - pub fn clear_percentages(&mut self) { - self.percentages.clear(); - } - - // Param is passed by value, moved - pub fn set_percentages(&mut self, v: ::std::collections::HashMap<::std::string::String, f64>) { - self.percentages = v; - } - - // Mutable pointer to the field. - pub fn mut_percentages(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, f64> { - &mut self.percentages - } - - // 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 ::protobuf::Message for Rollout_TrafficPercentStrategy { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &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())?; - }, - }; - } - ::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 - } - - 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(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Rollout_TrafficPercentStrategy { - Rollout_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() - ) - }) - } - - fn default_instance() -> &'static Rollout_TrafficPercentStrategy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Rollout_TrafficPercentStrategy::new) - } -} - -impl ::protobuf::Clear for Rollout_TrafficPercentStrategy { - fn clear(&mut self) { - self.percentages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Rollout_TrafficPercentStrategy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Rollout_TrafficPercentStrategy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Rollout_DeleteServiceStrategy { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Rollout_DeleteServiceStrategy { - fn default() -> &'a Rollout_DeleteServiceStrategy { - ::default_instance() - } -} - -impl Rollout_DeleteServiceStrategy { - pub fn new() -> Rollout_DeleteServiceStrategy { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for Rollout_DeleteServiceStrategy { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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() -> Rollout_DeleteServiceStrategy { - Rollout_DeleteServiceStrategy::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::( - "Rollout.DeleteServiceStrategy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Rollout_DeleteServiceStrategy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Rollout_DeleteServiceStrategy::new) - } -} - -impl ::protobuf::Clear for Rollout_DeleteServiceStrategy { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -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::reflect::ProtobufValue for Rollout_DeleteServiceStrategy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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, -} - -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, - ]; - 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 ::std::marker::Copy for Rollout_RolloutStatus { -} - -impl ::std::default::Default for Rollout_RolloutStatus { - fn default() -> Self { - Rollout_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)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n/google/api/servicemanagement/v1/resources.proto\x12\x1fgoogle.api.ser\ - vicemanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/api/\ - config_change.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google\ - /api/metric.proto\x1a\x16google/api/quota.proto\x1a\x18google/api/servic\ - e.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/a\ - ny.proto\x1a\x20google/protobuf/field_mask.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\x13pro\ - ducer_project_id\x18\x03\x20\x01(\tR\x11producerProjectId\"\xdb\x03\n\ - \x11OperationMetadata\x12%\n\x0eresource_names\x18\x01\x20\x03(\tR\rreso\ - urceNames\x12M\n\x05steps\x18\x02\x20\x03(\x0b27.google.api.servicemanag\ - ement.v1.OperationMetadata.StepR\x05steps\x12/\n\x13progress_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\x06s\ - tatus\x18\x04\x20\x01(\x0e29.google.api.servicemanagement.v1.OperationMe\ - tadata.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\tCANCELL\ - ED\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.servic\ - emanagement.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.servicemanag\ - ement.v1.ConfigFileR\x05files\"\xb7\x02\n\nConfigFile\x12\x1b\n\tfile_pa\ - th\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.a\ - pi.servicemanagement.v1.ConfigFile.FileTypeR\x08fileType\"\x93\x01\n\x08\ - FileType\x12\x19\n\x15FILE_TYPE_UNSPECIFIED\x10\0\x12\x17\n\x13SERVICE_C\ - ONFIG_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\nP\ - ROTO_FILE\x10\x06\"\x1f\n\tConfigRef\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.ConfigChangeR\rconfigChanges\"\xf8\x06\n\x07Ro\ - llout\x12\"\n\nrollout_id\x18\x01\x20\x01(\tR\trolloutIdB\x03\xe0A\x01\ - \x12;\n\x0bcreate_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.Timesta\ - mpR\ncreateTime\x12\x1d\n\ncreated_by\x18\x03\x20\x01(\tR\tcreatedBy\x12\ - N\n\x06status\x18\x04\x20\x01(\x0e26.google.api.servicemanagement.v1.Rol\ - lout.RolloutStatusR\x06status\x12{\n\x18traffic_percent_strategy\x18\x05\ - \x20\x01(\x0b2?.google.api.servicemanagement.v1.Rollout.TrafficPercentSt\ - rategyH\0R\x16trafficPercentStrategy\x12y\n\x17delete_service_strategy\ - \x18\xc8\x01\x20\x01(\x0b2>.google.api.servicemanagement.v1.Rollout.Dele\ - teServiceStrategyH\0R\x15deleteServiceStrategy\x12!\n\x0cservice_name\ - \x18\x08\x20\x01(\tR\x0bserviceName\x1a\xcc\x01\n\x16TrafficPercentStrat\ - egy\x12r\n\x0bpercentages\x18\x01\x20\x03(\x0b2P.google.api.servicemanag\ - ement.v1.Rollout.TrafficPercentStrategy.PercentagesEntryR\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\x1aROLLOU\ - T_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_ROLLED_BACK\x10\x06B\n\ - \n\x08strategyB\xff\x01\n#com.google.api.servicemanagement.v1B\x0eResour\ - cesProtoP\x01ZPgoogle.golang.org/genproto/googleapis/api/servicemanageme\ - nt/v1;servicemanagement\xa2\x02\x04GASM\xaa\x02!Google.Cloud.ServiceMana\ - gement.V1\xca\x02!Google\\Cloud\\ServiceManagement\\V1\xea\x02$Google::C\ - loud::ServiceManagement::V1J\x8dS\n\x07\x12\x05\x0f\0\xaf\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,\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\t\n\x02\x03\x03\x12\x03\x16\0!\n\t\n\x02\x03\x04\x12\x03\ - \x17\0\x20\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\t\n\x02\x03\n\x12\x03\x1d\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\0g\n\t\n\x02\x08\x0b\x12\x03\x20\0g\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\ - \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*\01\x01\ - \x1aU\x20The\x20full\x20representation\x20of\x20a\x20Service\x20that\x20\ - is\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.\x20See\x20the\x20[overview](/se\ - rvice-management/overview)\n\x20for\x20naming\x20requirements.\n\n\r\n\ - \x05\x04\0\x02\0\x04\x12\x04-\x02*\x18\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\x030\x02!\x1a8\ - \x20ID\x20of\x20the\x20project\x20that\x20produces\x20and\x20owns\x20thi\ - s\x20service.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x040\x02-\x1a\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\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x030\x1f\x20\nM\n\x02\ - \x04\x01\x12\x044\0`\x01\x1aA\x20The\x20metadata\x20associated\x20with\ - \x20a\x20long\x20running\x20operation\x20resource.\n\n\n\n\x03\x04\x01\ - \x01\x12\x034\x08\x19\n<\n\x04\x04\x01\x03\0\x12\x046\x02<\x03\x1a.\x20R\ - epresents\x20the\x20status\x20of\x20one\x20operation\x20step.\n\n\x0c\n\ - \x05\x04\x01\x03\0\x01\x12\x036\n\x0e\n3\n\x06\x04\x01\x03\0\x02\0\x12\ - \x038\x04\x1b\x1a$\x20The\x20short\x20description\x20of\x20the\x20step.\ - \n\n\x0f\n\x07\x04\x01\x03\0\x02\0\x04\x12\x048\x046\x10\n\x0e\n\x07\x04\ - \x01\x03\0\x02\0\x05\x12\x038\x04\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x01\ - \x12\x038\x0b\x16\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\x12\x038\x19\x1a\n\ - !\n\x06\x04\x01\x03\0\x02\x01\x12\x03;\x04\x16\x1a\x12\x20The\x20status\ - \x20code.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x04\x12\x04;\x048\x1b\n\ - \x0e\n\x07\x04\x01\x03\0\x02\x01\x06\x12\x03;\x04\n\n\x0e\n\x07\x04\x01\ - \x03\0\x02\x01\x01\x12\x03;\x0b\x11\n\x0e\n\x07\x04\x01\x03\0\x02\x01\ - \x03\x12\x03;\x14\x15\nQ\n\x04\x04\x01\x04\0\x12\x04?\x02R\x03\x1aC\x20C\ - ode\x20describes\x20the\x20status\x20of\x20the\x20operation\x20(or\x20on\ - e\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\x03A\x04\x1b\x1a\x12\x20Unspecifed\x20\ - code.\n\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03A\x04\x16\n\x0e\n\x07\ - \x04\x01\x04\0\x02\0\x02\x12\x03A\x19\x1a\nD\n\x06\x04\x01\x04\0\x02\x01\ - \x12\x03D\x04\r\x1a5\x20The\x20operation\x20or\x20step\x20has\x20complet\ - ed\x20without\x20errors.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03\ - D\x04\x08\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03D\x0b\x0c\n;\n\ - \x06\x04\x01\x04\0\x02\x02\x12\x03G\x04\x14\x1a,\x20The\x20operation\x20\ - or\x20step\x20has\x20not\x20started\x20yet.\n\n\x0e\n\x07\x04\x01\x04\0\ - \x02\x02\x01\x12\x03G\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\ - \x03G\x12\x13\n6\n\x06\x04\x01\x04\0\x02\x03\x12\x03J\x04\x14\x1a'\x20Th\ - e\x20operation\x20or\x20step\x20is\x20in\x20progress.\n\n\x0e\n\x07\x04\ - \x01\x04\0\x02\x03\x01\x12\x03J\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\ - \x03\x02\x12\x03J\x12\x13\n\x8c\x01\n\x06\x04\x01\x04\0\x02\x04\x12\x03N\ - \x04\x0f\x1a}\x20The\x20operation\x20or\x20step\x20has\x20completed\x20w\ - ith\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\x03N\x04\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\ - \x02\x12\x03N\r\x0e\nG\n\x06\x04\x01\x04\0\x02\x05\x12\x03Q\x04\x12\x1a8\ - \x20The\x20operation\x20or\x20step\x20has\x20completed\x20with\x20cancel\ - lation.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x01\x12\x03Q\x04\r\n\x0e\n\ - \x07\x04\x01\x04\0\x02\x05\x02\x12\x03Q\x10\x11\n_\n\x04\x04\x01\x02\0\ - \x12\x03V\x02%\x1aR\x20The\x20full\x20name\x20of\x20the\x20resources\x20\ - that\x20this\x20operation\x20is\x20directly\n\x20associated\x20with.\n\n\ - \x0c\n\x05\x04\x01\x02\0\x04\x12\x03V\x02\n\n\x0c\n\x05\x04\x01\x02\0\ - \x05\x12\x03V\x0b\x11\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03V\x12\x20\n\ - \x0c\n\x05\x04\x01\x02\0\x03\x12\x03V#$\nT\n\x04\x04\x01\x02\x01\x12\x03\ - Y\x02\x1a\x1aG\x20Detailed\x20status\x20information\x20for\x20each\x20st\ - ep.\x20The\x20order\x20is\x20undetermined.\n\n\x0c\n\x05\x04\x01\x02\x01\ - \x04\x12\x03Y\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03Y\x0b\x0f\n\ - \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03Y\x10\x15\n\x0c\n\x05\x04\x01\x02\ - \x01\x03\x12\x03Y\x18\x19\nQ\n\x04\x04\x01\x02\x02\x12\x03\\\x02\x20\x1a\ - D\x20Percentage\x20of\x20completion\x20of\x20this\x20operation,\x20rangi\ - ng\x20from\x200\x20to\x20100.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04\\\ - \x02Y\x1a\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03\\\x02\x07\n\x0c\n\x05\ - \x04\x01\x02\x02\x01\x12\x03\\\x08\x1b\n\x0c\n\x05\x04\x01\x02\x02\x03\ - \x12\x03\\\x1e\x1f\n/\n\x04\x04\x01\x02\x03\x12\x03_\x02+\x1a\"\x20The\ - \x20start\x20time\x20of\x20the\x20operation.\n\n\r\n\x05\x04\x01\x02\x03\ - \x04\x12\x04_\x02\\\x20\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\x04c\0u\x01\x1a4\x20Represents\ - \x20a\x20diagnostic\x20message\x20(error\x20or\x20warning)\n\n\n\n\x03\ - \x04\x02\x01\x12\x03c\x08\x12\n<\n\x04\x04\x02\x04\0\x12\x04e\x02k\x03\ - \x1a.\x20The\x20kind\x20of\x20diagnostic\x20information\x20possible.\n\n\ - \x0c\n\x05\x04\x02\x04\0\x01\x12\x03e\x07\x0b\n$\n\x06\x04\x02\x04\0\x02\ - \0\x12\x03g\x04\x10\x1a\x15\x20Warnings\x20and\x20errors\n\n\x0e\n\x07\ - \x04\x02\x04\0\x02\0\x01\x12\x03g\x04\x0b\n\x0e\n\x07\x04\x02\x04\0\x02\ - \0\x02\x12\x03g\x0e\x0f\n\x1c\n\x06\x04\x02\x04\0\x02\x01\x12\x03j\x04\ - \x0e\x1a\r\x20Only\x20errors\n\n\x0e\n\x07\x04\x02\x04\0\x02\x01\x01\x12\ - \x03j\x04\t\n\x0e\n\x07\x04\x02\x04\0\x02\x01\x02\x12\x03j\x0c\r\nA\n\ - \x04\x04\x02\x02\0\x12\x03n\x02\x16\x1a4\x20File\x20name\x20and\x20line\ - \x20number\x20of\x20the\x20error\x20or\x20warning.\n\n\r\n\x05\x04\x02\ - \x02\0\x04\x12\x04n\x02k\x03\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03n\x02\ - \x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03n\t\x11\n\x0c\n\x05\x04\x02\ - \x02\0\x03\x12\x03n\x14\x15\n;\n\x04\x04\x02\x02\x01\x12\x03q\x02\x10\ - \x1a.\x20The\x20kind\x20of\x20diagnostic\x20information\x20provided.\n\n\ - \r\n\x05\x04\x02\x02\x01\x04\x12\x04q\x02n\x16\n\x0c\n\x05\x04\x02\x02\ - \x01\x06\x12\x03q\x02\x06\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03q\x07\ - \x0b\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03q\x0e\x0f\n7\n\x04\x04\x02\ - \x02\x02\x12\x03t\x02\x15\x1a*\x20Message\x20describing\x20the\x20error\ - \x20or\x20warning.\n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04t\x02q\x10\n\ - \x0c\n\x05\x04\x02\x02\x02\x05\x12\x03t\x02\x08\n\x0c\n\x05\x04\x02\x02\ - \x02\x01\x12\x03t\t\x10\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03t\x13\x14\ - \n}\n\x02\x04\x03\x12\x05y\0\x82\x01\x01\x1ap\x20Represents\x20a\x20sour\ - ce\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\x03y\x08\x14\n\xb6\x01\n\x04\x04\x03\x02\0\x12\x03}\ - \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\r\n\x05\ - \x04\x03\x02\0\x04\x12\x04}\x02y\x16\n\x0c\n\x05\x04\x03\x02\0\x05\x12\ - \x03}\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03}\t\x0b\n\x0c\n\x05\ - \x04\x03\x02\0\x03\x12\x03}\x0e\x0f\n|\n\x04\x04\x03\x02\x01\x12\x04\x81\ - \x01\x02\x20\x1an\x20Set\x20of\x20source\x20configuration\x20files\x20th\ - at\x20are\x20used\x20to\x20generate\x20a\x20service\n\x20configuration\ - \x20(`google.api.Service`).\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04\x81\ - \x01\x02\n\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\x81\x01\x0b\x15\n\r\n\ - \x05\x04\x03\x02\x01\x01\x12\x04\x81\x01\x16\x1b\n\r\n\x05\x04\x03\x02\ - \x01\x03\x12\x04\x81\x01\x1e\x1f\nD\n\x02\x04\x04\x12\x06\x85\x01\0\xac\ - \x01\x01\x1a6\x20Generic\x20specification\x20of\x20a\x20source\x20config\ - uration\x20file\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x85\x01\x08\x12\n\x0e\ - \n\x04\x04\x04\x04\0\x12\x06\x86\x01\x02\xa2\x01\x03\n\r\n\x05\x04\x04\ - \x04\0\x01\x12\x04\x86\x01\x07\x0f\n$\n\x06\x04\x04\x04\0\x02\0\x12\x04\ - \x88\x01\x04\x1e\x1a\x14\x20Unknown\x20file\x20type.\n\n\x0f\n\x07\x04\ - \x04\x04\0\x02\0\x01\x12\x04\x88\x01\x04\x19\n\x0f\n\x07\x04\x04\x04\0\ - \x02\0\x02\x12\x04\x88\x01\x1c\x1d\n0\n\x06\x04\x04\x04\0\x02\x01\x12\ - \x04\x8b\x01\x04\x1c\x1a\x20\x20YAML-specification\x20of\x20service.\n\n\ - \x0f\n\x07\x04\x04\x04\0\x02\x01\x01\x12\x04\x8b\x01\x04\x17\n\x0f\n\x07\ - \x04\x04\x04\0\x02\x01\x02\x12\x04\x8b\x01\x1a\x1b\n<\n\x06\x04\x04\x04\ - \0\x02\x02\x12\x04\x8e\x01\x04\x16\x1a,\x20OpenAPI\x20specification,\x20\ - serialized\x20in\x20JSON.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x01\x12\ - \x04\x8e\x01\x04\x11\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x02\x12\x04\x8e\ - \x01\x14\x15\n<\n\x06\x04\x04\x04\0\x02\x03\x12\x04\x91\x01\x04\x16\x1a,\ - \x20OpenAPI\x20specification,\x20serialized\x20in\x20YAML.\n\n\x0f\n\x07\ - \x04\x04\x04\0\x02\x03\x01\x12\x04\x91\x01\x04\x11\n\x0f\n\x07\x04\x04\ - \x04\0\x02\x03\x02\x12\x04\x91\x01\x14\x15\n\xaa\x02\n\x06\x04\x04\x04\0\ - \x02\x04\x12\x04\x9a\x01\x04\"\x1a\x99\x02\x20FileDescriptorSet,\x20gene\ - rated\x20by\x20protoc.\n\n\x20To\x20generate,\x20use\x20protoc\x20with\ - \x20imports\x20and\x20source\x20info\x20included.\n\x20For\x20an\x20exam\ - ple\x20test.proto\x20file,\x20the\x20following\x20command\x20would\x20pu\ - t\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\x9a\x01\ - \x04\x1d\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x02\x12\x04\x9a\x01\x20!\n\ - \xd3\x02\n\x06\x04\x04\x04\0\x02\x05\x12\x04\xa1\x01\x04\x13\x1a\xc2\x02\ - \x20Uncompiled\x20Proto\x20file.\x20Used\x20for\x20storage\x20and\x20dis\ - play\x20purposes\x20only,\n\x20currently\x20server-side\x20compilation\ - \x20is\x20not\x20supported.\x20Should\x20match\x20the\n\x20inputs\x20to\ - \x20'protoc'\x20command\x20used\x20to\x20generated\x20FILE_DESCRIPTOR_SE\ - T_PROTO.\x20A\n\x20file\x20of\x20this\x20type\x20can\x20only\x20be\x20in\ - cluded\x20if\x20at\x20least\x20one\x20file\x20of\x20type\n\x20FILE_DESCR\ - IPTOR_SET_PROTO\x20is\x20included.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x05\ - \x01\x12\x04\xa1\x01\x04\x0e\n\x0f\n\x07\x04\x04\x04\0\x02\x05\x02\x12\ - \x04\xa1\x01\x11\x12\nP\n\x04\x04\x04\x02\0\x12\x04\xa5\x01\x02\x17\x1aB\ - \x20The\x20file\x20name\x20of\x20the\x20configuration\x20file\x20(full\ - \x20or\x20relative\x20path).\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xa5\ - \x01\x02\xa2\x01\x03\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xa5\x01\x02\x08\ - \n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xa5\x01\t\x12\n\r\n\x05\x04\x04\x02\ - \0\x03\x12\x04\xa5\x01\x15\x16\n3\n\x04\x04\x04\x02\x01\x12\x04\xa8\x01\ - \x02\x1a\x1a%\x20The\x20bytes\x20that\x20constitute\x20the\x20file.\n\n\ - \x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\xa8\x01\x02\xa5\x01\x17\n\r\n\x05\ - \x04\x04\x02\x01\x05\x12\x04\xa8\x01\x02\x07\n\r\n\x05\x04\x04\x02\x01\ - \x01\x12\x04\xa8\x01\x08\x15\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xa8\ - \x01\x18\x19\n?\n\x04\x04\x04\x02\x02\x12\x04\xab\x01\x02\x19\x1a1\x20Th\ - e\x20type\x20of\x20configuration\x20file\x20this\x20represents.\n\n\x0f\ - \n\x05\x04\x04\x02\x02\x04\x12\x06\xab\x01\x02\xa8\x01\x1a\n\r\n\x05\x04\ - \x04\x02\x02\x06\x12\x04\xab\x01\x02\n\n\r\n\x05\x04\x04\x02\x02\x01\x12\ - \x04\xab\x01\x0b\x14\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xab\x01\x17\ - \x18\nH\n\x02\x04\x05\x12\x06\xaf\x01\0\xb3\x01\x01\x1a:\x20Represents\ - \x20a\x20service\x20configuration\x20with\x20its\x20name\x20and\x20id.\n\ - \n\x0b\n\x03\x04\x05\x01\x12\x04\xaf\x01\x08\x11\n\x85\x01\n\x04\x04\x05\ - \x02\0\x12\x04\xb2\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\x0f\n\x05\ - \x04\x05\x02\0\x04\x12\x06\xb2\x01\x02\xaf\x01\x13\n\r\n\x05\x04\x05\x02\ - \0\x05\x12\x04\xb2\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xb2\ - \x01\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xb2\x01\x10\x11\n\xb5\x01\n\ - \x02\x04\x06\x12\x06\xb9\x01\0\xc0\x01\x01\x1a\xa6\x01\x20Change\x20repo\ - rt\x20associated\x20with\x20a\x20particular\x20service\x20configuration.\ - \n\n\x20It\x20contains\x20a\x20list\x20of\x20ConfigChanges\x20based\x20o\ - n\x20the\x20comparison\x20between\n\x20two\x20service\x20configurations.\ - \n\n\x0b\n\x03\x04\x06\x01\x12\x04\xb9\x01\x08\x14\n\xae\x02\n\x04\x04\ - \x06\x02\0\x12\x04\xbf\x01\x026\x1a\x9f\x02\x20List\x20of\x20changes\x20\ - between\x20two\x20service\x20configurations.\n\x20The\x20changes\x20will\ - \x20be\x20alphabetically\x20sorted\x20based\x20on\x20the\x20identifier\n\ - \x20of\x20each\x20change.\n\x20A\x20ConfigChange\x20identifier\x20is\x20\ - a\x20dot\x20separated\x20path\x20to\x20the\x20configuration.\n\x20Exampl\ - e:\x20visibility.rules[selector='LibraryService.CreateBook'].restriction\ - \n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xbf\x01\x02\n\n\r\n\x05\x04\x06\ - \x02\0\x06\x12\x04\xbf\x01\x0b\"\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xbf\ - \x01#1\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xbf\x0145\n\xeb\x01\n\x02\x04\ - \x07\x12\x06\xc5\x01\0\xaf\x02\x01\x1a\xdc\x01\x20A\x20rollout\x20resour\ - ce\x20that\x20defines\x20how\x20service\x20configuration\x20versions\x20\ - are\x20pushed\n\x20to\x20control\x20plane\x20systems.\x20Typically,\x20y\ - ou\x20create\x20a\x20new\x20version\x20of\x20the\n\x20service\x20config,\ - \x20and\x20then\x20create\x20a\x20Rollout\x20to\x20push\x20the\x20servic\ - e\x20config.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xc5\x01\x08\x0f\n\xbd\x06\ - \n\x04\x04\x07\x03\0\x12\x06\xe4\x01\x02\xe9\x01\x03\x1a\xac\x06\x20Stra\ - tegy\x20that\x20specifies\x20how\x20clients\x20of\x20Google\x20Service\ - \x20Controller\x20want\x20to\n\x20send\x20traffic\x20to\x20use\x20differ\ - ent\x20config\x20versions.\x20This\x20is\x20generally\n\x20used\x20by\ - \x20API\x20proxy\x20to\x20split\x20traffic\x20based\x20on\x20your\x20con\ - figured\x20percentage\x20for\n\x20each\x20config\x20version.\n\n\x20One\ - \x20example\x20of\x20how\x20to\x20gradually\x20rollout\x20a\x20new\x20se\ - rvice\x20configuration\x20using\n\x20this\n\x20strategy:\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\x20p\ - ercentages:\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\":\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\"example.googleapis.com/rollout_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\xe4\x01\n\x20\n\xe3\ - \x01\n\x06\x04\x07\x03\0\x02\0\x12\x04\xe8\x01\x04(\x1a\xd2\x01\x20Maps\ - \x20service\x20configuration\x20IDs\x20to\x20their\x20corresponding\x20t\ - raffic\x20percentage.\n\x20Key\x20is\x20the\x20service\x20configuration\ - \x20ID,\x20Value\x20is\x20the\x20traffic\x20percentage\n\x20which\x20mus\ - t\x20be\x20greater\x20than\x200.0\x20and\x20the\x20sum\x20must\x20equal\ - \x20to\x20100.0.\n\n\x11\n\x07\x04\x07\x03\0\x02\0\x04\x12\x06\xe8\x01\ - \x04\xe4\x01\"\n\x0f\n\x07\x04\x07\x03\0\x02\0\x06\x12\x04\xe8\x01\x04\ - \x17\n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\xe8\x01\x18#\n\x0f\n\ - \x07\x04\x07\x03\0\x02\0\x03\x12\x04\xe8\x01&'\n\x94\x01\n\x04\x04\x07\ - \x03\x01\x12\x06\xed\x01\x02\xef\x01\x03\x1a\x83\x01\x20Strategy\x20used\ - \x20to\x20delete\x20a\x20service.\x20This\x20strategy\x20is\x20a\x20plac\ - eholder\x20only\n\x20used\x20by\x20the\x20system\x20generated\x20rollout\ - \x20to\x20delete\x20a\x20service.\n\n\r\n\x05\x04\x07\x03\x01\x01\x12\ - \x04\xed\x01\n\x1f\n&\n\x04\x04\x07\x04\0\x12\x06\xf2\x01\x02\x89\x02\ - \x03\x1a\x16\x20Status\x20of\x20a\x20Rollout.\n\n\r\n\x05\x04\x07\x04\0\ - \x01\x12\x04\xf2\x01\x07\x14\n&\n\x06\x04\x07\x04\0\x02\0\x12\x04\xf4\ - \x01\x04#\x1a\x16\x20No\x20status\x20specified.\n\n\x0f\n\x07\x04\x07\ - \x04\0\x02\0\x01\x12\x04\xf4\x01\x04\x1e\n\x0f\n\x07\x04\x07\x04\0\x02\0\ - \x02\x12\x04\xf4\x01!\"\n-\n\x06\x04\x07\x04\0\x02\x01\x12\x04\xf7\x01\ - \x04\x14\x1a\x1d\x20The\x20Rollout\x20is\x20in\x20progress.\n\n\x0f\n\ - \x07\x04\x07\x04\0\x02\x01\x01\x12\x04\xf7\x01\x04\x0f\n\x0f\n\x07\x04\ - \x07\x04\0\x02\x01\x02\x12\x04\xf7\x01\x12\x13\n9\n\x06\x04\x07\x04\0\ - \x02\x02\x12\x04\xfa\x01\x04\x10\x1a)\x20The\x20Rollout\x20has\x20comple\ - ted\x20successfully.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x01\x12\x04\xfa\ - \x01\x04\x0b\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x02\x12\x04\xfa\x01\x0e\ - \x0f\n\x94\x01\n\x06\x04\x07\x04\0\x02\x03\x12\x04\xfe\x01\x04\x12\x1a\ - \x83\x01\x20The\x20Rollout\x20has\x20been\x20cancelled.\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\xfe\x01\x04\r\n\x0f\n\x07\x04\x07\ - \x04\0\x02\x03\x02\x12\x04\xfe\x01\x10\x11\nQ\n\x06\x04\x07\x04\0\x02\ - \x04\x12\x04\x81\x02\x04\x0f\x1aA\x20The\x20Rollout\x20has\x20failed\x20\ - and\x20the\x20rollback\x20attempt\x20has\x20failed\x20too.\n\n\x0f\n\x07\ - \x04\x07\x04\0\x02\x04\x01\x12\x04\x81\x02\x04\n\n\x0f\n\x07\x04\x07\x04\ - \0\x02\x04\x02\x12\x04\x81\x02\r\x0e\nO\n\x06\x04\x07\x04\0\x02\x05\x12\ - \x04\x84\x02\x04\x10\x1a?\x20The\x20Rollout\x20has\x20not\x20started\x20\ - yet\x20and\x20is\x20pending\x20for\x20execution.\n\n\x0f\n\x07\x04\x07\ - \x04\0\x02\x05\x01\x12\x04\x84\x02\x04\x0b\n\x0f\n\x07\x04\x07\x04\0\x02\ - \x05\x02\x12\x04\x84\x02\x0e\x0f\n]\n\x06\x04\x07\x04\0\x02\x06\x12\x04\ - \x88\x02\x04\x1b\x1aM\x20The\x20Rollout\x20has\x20failed\x20and\x20rolle\ - d\x20back\x20to\x20the\x20previous\x20successful\n\x20Rollout.\n\n\x0f\n\ - \x07\x04\x07\x04\0\x02\x06\x01\x12\x04\x88\x02\x04\x16\n\x0f\n\x07\x04\ - \x07\x04\0\x02\x06\x02\x12\x04\x88\x02\x19\x1a\n\xfe\x03\n\x04\x04\x07\ - \x02\0\x12\x04\x93\x02\x02A\x1a\xef\x03\x20Optional.\x20Unique\x20identi\ - fier\x20of\x20this\x20Rollout.\x20Must\x20be\x20no\x20longer\x20than\x20\ - 63\x20characters\n\x20and\x20only\x20lower\x20case\x20letters,\x20digits\ - ,\x20'.',\x20'_'\x20and\x20'-'\x20are\x20allowed.\n\n\x20If\x20not\x20sp\ - ecified\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\x20th\ - at\x20is\x20reset\x20every\x20day\x20for\x20each\x20service.\n\x20An\x20\ - example\x20of\x20the\x20generated\x20rollout_id\x20is\x20'2016-02-16r1'\ - \n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\x93\x02\x02\x89\x02\x03\n\r\n\ - \x05\x04\x07\x02\0\x05\x12\x04\x93\x02\x02\x08\n\r\n\x05\x04\x07\x02\0\ - \x01\x12\x04\x93\x02\t\x13\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x93\x02\ - \x16\x17\n\r\n\x05\x04\x07\x02\0\x08\x12\x04\x93\x02\x18@\n\x10\n\x08\ - \x04\x07\x02\0\x08\x9c\x08\0\x12\x04\x93\x02\x19?\n7\n\x04\x04\x07\x02\ - \x01\x12\x04\x96\x02\x02,\x1a)\x20Creation\x20time\x20of\x20the\x20rollo\ - ut.\x20Readonly.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\x96\x02\x02\ - \x93\x02A\n\r\n\x05\x04\x07\x02\x01\x06\x12\x04\x96\x02\x02\x1b\n\r\n\ - \x05\x04\x07\x02\x01\x01\x12\x04\x96\x02\x1c'\n\r\n\x05\x04\x07\x02\x01\ - \x03\x12\x04\x96\x02*+\n;\n\x04\x04\x07\x02\x02\x12\x04\x99\x02\x02\x18\ - \x1a-\x20The\x20user\x20who\x20created\x20the\x20Rollout.\x20Readonly.\n\ - \n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\x99\x02\x02\x96\x02,\n\r\n\x05\ - \x04\x07\x02\x02\x05\x12\x04\x99\x02\x02\x08\n\r\n\x05\x04\x07\x02\x02\ - \x01\x12\x04\x99\x02\t\x13\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\x99\x02\ - \x16\x17\n\xa6\x01\n\x04\x04\x07\x02\x03\x12\x04\x9e\x02\x02\x1b\x1a\x97\ - \x01\x20The\x20status\x20of\x20this\x20rollout.\x20Readonly.\x20In\x20ca\ - se\x20of\x20a\x20failed\x20rollout,\n\x20the\x20system\x20will\x20automa\ - tically\x20rollback\x20to\x20the\x20current\x20Rollout\n\x20version.\x20\ - Readonly.\n\n\x0f\n\x05\x04\x07\x02\x03\x04\x12\x06\x9e\x02\x02\x99\x02\ - \x18\n\r\n\x05\x04\x07\x02\x03\x06\x12\x04\x9e\x02\x02\x0f\n\r\n\x05\x04\ - \x07\x02\x03\x01\x12\x04\x9e\x02\x10\x16\n\r\n\x05\x04\x07\x02\x03\x03\ - \x12\x04\x9e\x02\x19\x1a\n\x8b\x01\n\x04\x04\x07\x08\0\x12\x06\xa3\x02\ - \x02\xab\x02\x03\x1a{\x20Strategy\x20that\x20defines\x20which\x20version\ - s\x20of\x20service\x20configurations\x20should\x20be\n\x20pushed\n\x20an\ - d\x20how\x20they\x20should\x20be\x20used\x20at\x20runtime.\n\n\r\n\x05\ - \x04\x07\x08\0\x01\x12\x04\xa3\x02\x08\x10\nc\n\x04\x04\x07\x02\x04\x12\ - \x04\xa6\x02\x048\x1aU\x20Google\x20Service\x20Control\x20selects\x20ser\ - vice\x20configurations\x20based\x20on\n\x20traffic\x20percentage.\n\n\r\ - \n\x05\x04\x07\x02\x04\x06\x12\x04\xa6\x02\x04\x1a\n\r\n\x05\x04\x07\x02\ - \x04\x01\x12\x04\xa6\x02\x1b3\n\r\n\x05\x04\x07\x02\x04\x03\x12\x04\xa6\ - \x0267\n_\n\x04\x04\x07\x02\x05\x12\x04\xaa\x02\x048\x1aQ\x20The\x20stra\ - tegy\x20associated\x20with\x20a\x20rollout\x20to\x20delete\x20a\x20`Mana\ - gedService`.\n\x20Readonly.\n\n\r\n\x05\x04\x07\x02\x05\x06\x12\x04\xaa\ - \x02\x04\x19\n\r\n\x05\x04\x07\x02\x05\x01\x12\x04\xaa\x02\x1a1\n\r\n\ - \x05\x04\x07\x02\x05\x03\x12\x04\xaa\x0247\nE\n\x04\x04\x07\x02\x06\x12\ - \x04\xae\x02\x02\x1a\x1a7\x20The\x20name\x20of\x20the\x20service\x20asso\ - ciated\x20with\x20this\x20Rollout.\n\n\x0f\n\x05\x04\x07\x02\x06\x04\x12\ - \x06\xae\x02\x02\xab\x02\x03\n\r\n\x05\x04\x07\x02\x06\x05\x12\x04\xae\ - \x02\x02\x08\n\r\n\x05\x04\x07\x02\x06\x01\x12\x04\xae\x02\t\x15\n\r\n\ - \x05\x04\x07\x02\x06\x03\x12\x04\xae\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs deleted file mode 100644 index ee3c4bc1bd..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs +++ /dev/null @@ -1,5524 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/servicemanagement/v1/servicemanager.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ListServicesRequest { - // message fields - pub producer_project_id: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub consumer_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListServicesRequest { - fn default() -> &'a ListServicesRequest { - ::default_instance() - } -} - -impl ListServicesRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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_singular_proto3_string_into(wire_type, is, &mut self.consumer_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.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); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.page_token); - } - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.producer_project_id.is_empty() { - os.write_string(1, &self.producer_project_id)?; - } - 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)?; - } - if !self.consumer_id.is_empty() { - os.write_string(7, &self.consumer_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() -> 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 default_instance() -> &'static ListServicesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServicesRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListServicesResponse { - // message fields - pub services: ::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 ListServicesResponse { - fn default() -> &'a ListServicesResponse { - ::default_instance() - } -} - -impl ListServicesResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.services { - 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.services { - 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() -> 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 default_instance() -> &'static ListServicesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServicesResponse::new) - } -} - -impl ::protobuf::Clear for ListServicesResponse { - fn clear(&mut self) { - self.services.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetServiceRequest { - // message fields - pub service_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetServiceRequest { - fn default() -> &'a GetServiceRequest { - ::default_instance() - } -} - -impl GetServiceRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static GetServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetServiceRequest::new) - } -} - -impl ::protobuf::Clear for GetServiceRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateServiceRequest { - // message fields - pub service: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateServiceRequest { - fn default() -> &'a CreateServiceRequest { - ::default_instance() - } -} - -impl CreateServiceRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.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.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() -> 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 default_instance() -> &'static CreateServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateServiceRequest::new) - } -} - -impl ::protobuf::Clear for CreateServiceRequest { - fn clear(&mut self) { - self.service.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteServiceRequest { - // message fields - pub service_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteServiceRequest { - fn default() -> &'a DeleteServiceRequest { - ::default_instance() - } -} - -impl DeleteServiceRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static DeleteServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteServiceRequest::new) - } -} - -impl ::protobuf::Clear for DeleteServiceRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UndeleteServiceRequest { - // message fields - pub service_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UndeleteServiceRequest { - fn default() -> &'a UndeleteServiceRequest { - ::default_instance() - } -} - -impl UndeleteServiceRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static UndeleteServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UndeleteServiceRequest::new) - } -} - -impl ::protobuf::Clear for UndeleteServiceRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UndeleteServiceResponse { - // message fields - pub service: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UndeleteServiceResponse { - fn default() -> &'a UndeleteServiceResponse { - ::default_instance() - } -} - -impl UndeleteServiceResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.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.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() -> 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 default_instance() -> &'static UndeleteServiceResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UndeleteServiceResponse::new) - } -} - -impl ::protobuf::Clear for UndeleteServiceResponse { - fn clear(&mut self) { - self.service.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetServiceConfigRequest { - // message fields - pub service_name: ::std::string::String, - pub config_id: ::std::string::String, - pub view: GetServiceConfigRequest_ConfigView, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetServiceConfigRequest { - fn default() -> &'a GetServiceConfigRequest { - ::default_instance() - } -} - -impl GetServiceConfigRequest { - pub fn new() -> GetServiceConfigRequest { - ::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 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.config_id)?; - }, - 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.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_name); - } - 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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - 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))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static GetServiceConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetServiceConfigRequest::new) - } -} - -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 ::std::fmt::Debug 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, -} - -impl ::protobuf::ProtobufEnum for GetServiceConfigRequest_ConfigView { - fn value(&self) -> i32 { - *self as i32 - } - - 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 - } - } - - fn values() -> &'static [Self] { - static values: &'static [GetServiceConfigRequest_ConfigView] = &[ - GetServiceConfigRequest_ConfigView::BASIC, - GetServiceConfigRequest_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 ::std::marker::Copy for GetServiceConfigRequest_ConfigView { -} - -impl ::std::default::Default for GetServiceConfigRequest_ConfigView { - fn default() -> Self { - GetServiceConfigRequest_ConfigView::BASIC - } -} - -impl ::protobuf::reflect::ProtobufValue for GetServiceConfigRequest_ConfigView { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListServiceConfigsRequest { - // message fields - pub service_name: ::std::string::String, - pub page_token: ::std::string::String, - pub page_size: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListServiceConfigsRequest { - fn default() -> &'a ListServiceConfigsRequest { - ::default_instance() - } -} - -impl ListServiceConfigsRequest { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if !self.page_token.is_empty() { - 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::unknown_fields_size(self.get_unknown_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)?; - } - if !self.page_token.is_empty() { - os.write_string(2, &self.page_token)?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_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 as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static ListServiceConfigsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServiceConfigsRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListServiceConfigsResponse { - // message fields - pub service_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 ListServiceConfigsResponse { - fn default() -> &'a ListServiceConfigsResponse { - ::default_instance() - } -} - -impl ListServiceConfigsResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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_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.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)?; - }; - 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() -> 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 default_instance() -> &'static ListServiceConfigsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServiceConfigsResponse::new) - } -} - -impl ::protobuf::Clear for ListServiceConfigsResponse { - fn clear(&mut self) { - self.service_configs.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateServiceConfigRequest { - // message fields - pub service_name: ::std::string::String, - pub service_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateServiceConfigRequest { - fn default() -> &'a CreateServiceConfigRequest { - ::default_instance() - } -} - -impl CreateServiceConfigRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.service_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.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_name); - } - if let Some(ref v) = self.service_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.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static CreateServiceConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateServiceConfigRequest::new) - } -} - -impl ::protobuf::Clear for CreateServiceConfigRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.service_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SubmitConfigSourceRequest { - // message fields - pub service_name: ::std::string::String, - pub config_source: ::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 SubmitConfigSourceRequest { - fn default() -> &'a SubmitConfigSourceRequest { - ::default_instance() - } -} - -impl SubmitConfigSourceRequest { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if let Some(ref v) = self.config_source.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.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 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() -> 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(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SubmitConfigSourceResponse { - // message fields - pub service_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SubmitConfigSourceResponse { - fn default() -> &'a SubmitConfigSourceResponse { - ::default_instance() - } -} - -impl SubmitConfigSourceResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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_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.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static SubmitConfigSourceResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SubmitConfigSourceResponse::new) - } -} - -impl ::protobuf::Clear for SubmitConfigSourceResponse { - fn clear(&mut self) { - self.service_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateServiceRolloutRequest { - // message fields - pub service_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 CreateServiceRolloutRequest { - fn default() -> &'a CreateServiceRolloutRequest { - ::default_instance() - } -} - -impl CreateServiceRolloutRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::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.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_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.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static CreateServiceRolloutRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateServiceRolloutRequest::new) - } -} - -impl ::protobuf::Clear for CreateServiceRolloutRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.rollout.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListServiceRolloutsRequest { - // message fields - pub service_name: ::std::string::String, - pub page_token: ::std::string::String, - pub page_size: i32, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListServiceRolloutsRequest { - fn default() -> &'a ListServiceRolloutsRequest { - ::default_instance() - } -} - -impl ListServiceRolloutsRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 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.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.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_name); - } - if !self.page_token.is_empty() { - 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); - } - 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.service_name.is_empty() { - os.write_string(1, &self.service_name)?; - } - if !self.page_token.is_empty() { - os.write_string(2, &self.page_token)?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - 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() -> 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 default_instance() -> &'static ListServiceRolloutsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServiceRolloutsRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListServiceRolloutsResponse { - // message fields - pub rollouts: ::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 ListServiceRolloutsResponse { - fn default() -> &'a ListServiceRolloutsResponse { - ::default_instance() - } -} - -impl ListServiceRolloutsResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.rollouts { - 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.rollouts { - 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() -> 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 default_instance() -> &'static ListServiceRolloutsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServiceRolloutsResponse::new) - } -} - -impl ::protobuf::Clear for ListServiceRolloutsResponse { - fn clear(&mut self) { - self.rollouts.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetServiceRolloutRequest { - // message fields - pub service_name: ::std::string::String, - pub rollout_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetServiceRolloutRequest { - fn default() -> &'a GetServiceRolloutRequest { - ::default_instance() - } -} - -impl GetServiceRolloutRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.rollout_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.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_name); - } - 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 - } - - 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)?; - } - if !self.rollout_id.is_empty() { - os.write_string(2, &self.rollout_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() -> 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 default_instance() -> &'static GetServiceRolloutRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetServiceRolloutRequest::new) - } -} - -impl ::protobuf::Clear for GetServiceRolloutRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.rollout_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct EnableServiceRequest { - // message fields - pub service_name: ::std::string::String, - pub consumer_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a EnableServiceRequest { - fn default() -> &'a EnableServiceRequest { - ::default_instance() - } -} - -impl EnableServiceRequest { - pub fn new() -> EnableServiceRequest { - ::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 consumer_id = 2; - - - 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()) - } -} - -impl ::protobuf::Message for 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 { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_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.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.get_unknown_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)?; - } - if !self.consumer_id.is_empty() { - os.write_string(2, &self.consumer_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() -> EnableServiceRequest { - EnableServiceRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &EnableServiceRequest| { &m.service_name }, - |m: &mut EnableServiceRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "consumer_id", - |m: &EnableServiceRequest| { &m.consumer_id }, - |m: &mut EnableServiceRequest| { &mut m.consumer_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "EnableServiceRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static EnableServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(EnableServiceRequest::new) - } -} - -impl ::protobuf::Clear for EnableServiceRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.consumer_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for EnableServiceRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for EnableServiceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct EnableServiceResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a EnableServiceResponse { - fn default() -> &'a EnableServiceResponse { - ::default_instance() - } -} - -impl EnableServiceResponse { - pub fn new() -> EnableServiceResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for EnableServiceResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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() -> 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 default_instance() -> &'static EnableServiceResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(EnableServiceResponse::new) - } -} - -impl ::protobuf::Clear for EnableServiceResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for EnableServiceResponse { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DisableServiceRequest { - // message fields - pub service_name: ::std::string::String, - pub consumer_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DisableServiceRequest { - fn default() -> &'a DisableServiceRequest { - ::default_instance() - } -} - -impl DisableServiceRequest { - pub fn new() -> DisableServiceRequest { - ::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 consumer_id = 2; - - - 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()) - } -} - -impl ::protobuf::Message for DisableServiceRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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_singular_proto3_string_into(wire_type, is, &mut self.consumer_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.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.get_unknown_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)?; - } - if !self.consumer_id.is_empty() { - os.write_string(2, &self.consumer_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() -> DisableServiceRequest { - DisableServiceRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DisableServiceRequest| { &m.service_name }, - |m: &mut DisableServiceRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "consumer_id", - |m: &DisableServiceRequest| { &m.consumer_id }, - |m: &mut DisableServiceRequest| { &mut m.consumer_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DisableServiceRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DisableServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DisableServiceRequest::new) - } -} - -impl ::protobuf::Clear for DisableServiceRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.consumer_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DisableServiceRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DisableServiceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DisableServiceResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DisableServiceResponse { - fn default() -> &'a DisableServiceResponse { - ::default_instance() - } -} - -impl DisableServiceResponse { - pub fn new() -> DisableServiceResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for DisableServiceResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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() -> DisableServiceResponse { - DisableServiceResponse::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::( - "DisableServiceResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DisableServiceResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DisableServiceResponse::new) - } -} - -impl ::protobuf::Clear for DisableServiceResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DisableServiceResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DisableServiceResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GenerateConfigReportRequest { - // message fields - pub new_config: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>, - pub old_config: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GenerateConfigReportRequest { - fn default() -> &'a GenerateConfigReportRequest { - ::default_instance() - } -} - -impl GenerateConfigReportRequest { - pub fn new() -> GenerateConfigReportRequest { - ::std::default::Default::default() - } - - // .google.protobuf.Any new_config = 1; - - - 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(); - } - - pub fn has_new_config(&self) -> bool { - self.new_config.is_some() - } - - // 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); - } - - // 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(); - } - self.new_config.as_mut().unwrap() - } - - // 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()) - } - - // .google.protobuf.Any old_config = 2; - - - 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()) - } - pub fn clear_old_config(&mut self) { - self.old_config.clear(); - } - - pub fn has_old_config(&self) -> bool { - self.old_config.is_some() - } - - // 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); - } - - // 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() - } - - // 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.old_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.new_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.old_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.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)?; - } - 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static GenerateConfigReportRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GenerateConfigReportRequest::new) - } -} - -impl ::protobuf::Clear for GenerateConfigReportRequest { - fn clear(&mut self) { - self.new_config.clear(); - self.old_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GenerateConfigReportResponse { - // message fields - pub service_name: ::std::string::String, - pub id: ::std::string::String, - pub change_reports: ::protobuf::RepeatedField, - pub diagnostics: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GenerateConfigReportResponse { - fn default() -> &'a GenerateConfigReportResponse { - ::default_instance() - } -} - -impl GenerateConfigReportResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.change_reports)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.diagnostics)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.id); - } - for value in &self.change_reports { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - if !self.id.is_empty() { - 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)?; - }; - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static GenerateConfigReportResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GenerateConfigReportResponse::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -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\x20google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\ - \"\xa6\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\tpageTo\ - ken\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\x11GetServ\ - iceRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\ - \x03\xe0A\x02\"f\n\x14CreateServiceRequest\x12N\n\x07service\x18\x01\x20\ - \x01(\x0b2/.google.api.servicemanagement.v1.ManagedServiceR\x07serviceB\ - \x03\xe0A\x02\">\n\x14DeleteServiceRequest\x12&\n\x0cservice_name\x18\ - \x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\"@\n\x16UndeleteServiceReq\ - uest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\ - \x02\"d\n\x17UndeleteServiceResponse\x12I\n\x07service\x18\x01\x20\x01(\ - \x0b2/.google.api.servicemanagement.v1.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.goog\ - le.api.servicemanagement.v1.GetServiceConfigRequest.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_size\x18\x03\x20\x01(\x05R\x08pageSize\"\ - \x82\x01\n\x1aListServiceConfigsResponse\x12<\n\x0fservice_configs\x18\ - \x01\x20\x03(\x0b2\x13.google.api.ServiceR\x0eserviceConfigs\x12&\n\x0fn\ - ext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\x85\x01\n\x1aCreateS\ - erviceConfigRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bservic\ - eNameB\x03\xe0A\x02\x12?\n\x0eservice_config\x18\x02\x20\x01(\x0b2\x13.g\ - oogle.api.ServiceR\rserviceConfigB\x03\xe0A\x02\"\xc6\x01\n\x19SubmitCon\ - figSourceRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNa\ - meB\x03\xe0A\x02\x12W\n\rconfig_source\x18\x02\x20\x01(\x0b2-.google.api\ - .servicemanagement.v1.ConfigSourceR\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\x1bCreateServic\ - eRolloutRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNam\ - eB\x03\xe0A\x02\x12G\n\x07rollout\x18\x02\x20\x01(\x0b2(.google.api.serv\ - icemanagement.v1.RolloutR\x07rolloutB\x03\xe0A\x02\"\x9d\x01\n\x1aListSe\ - rviceRolloutsRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bservi\ - ceNameB\x03\xe0A\x02\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageToke\ - n\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\x08pageSize\x12\x1b\n\x06fi\ - lter\x18\x04\x20\x01(\tR\x06filterB\x03\xe0A\x02\"\x8b\x01\n\x1bListServ\ - iceRolloutsResponse\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\"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\"d\n\x14Enab\ - leServiceRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNa\ - meB\x03\xe0A\x02\x12$\n\x0bconsumer_id\x18\x02\x20\x01(\tR\nconsumerIdB\ - \x03\xe0A\x02\"\x17\n\x15EnableServiceResponse\"e\n\x15DisableServiceReq\ - uest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\ - \x02\x12$\n\x0bconsumer_id\x18\x02\x20\x01(\tR\nconsumerIdB\x03\xe0A\x02\ - \"\x18\n\x16DisableServiceResponse\"\x91\x01\n\x1bGenerateConfigReportRe\ - quest\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.g\ - oogle.protobuf.AnyR\toldConfigB\x03\xe0A\x01\"\xf6\x01\n\x1cGenerateConf\ - igReportResponse\x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNa\ - me\x12\x0e\n\x02id\x18\x02\x20\x01(\tR\x02id\x12T\n\x0echange_reports\ - \x18\x03\x20\x03(\x0b2-.google.api.servicemanagement.v1.ChangeReportR\rc\ - hangeReports\x12M\n\x0bdiagnostics\x18\x04\x20\x03(\x0b2+.google.api.ser\ - vicemanagement.v1.DiagnosticR\x0bdiagnostics2\x92\x1e\n\x0eServiceManage\ - r\x12\xb3\x01\n\x0cListServices\x124.google.api.servicemanagement.v1.Lis\ - tServicesRequest\x1a5.google.api.servicemanagement.v1.ListServicesRespon\ - se\"6\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1/services\xdaA\x1fproducer_proje\ - ct_id,consumer_id\x12\xa5\x01\n\nGetService\x122.google.api.servicemanag\ - ement.v1.GetServiceRequest\x1a/.google.api.servicemanagement.v1.ManagedS\ - ervice\"2\xdaA\x0cservice_name\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/servic\ - es/{service_name}\x12\xf5\x01\n\rCreateService\x125.google.api.servicema\ - nagement.v1.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\ - \x8d\x01\xdaA\x07service\x82\xd3\xe4\x93\x02\x17\"\x0c/v1/services:\x07s\ - ervice\xcaAc\n.google.api.servicemanagement.v1.ManagedService\x121google\ - .api.servicemanagement.v1.OperationMetadata\x12\xe6\x01\n\rDeleteService\ - \x125.google.api.servicemanagement.v1.DeleteServiceRequest\x1a\x1d.googl\ - e.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/services/{\ - service_name}\xdaA\x0cservice_name\xcaAJ\n\x15google.protobuf.Empty\x121\ - google.api.servicemanagement.v1.OperationMetadata\x12\x96\x02\n\x0fUndel\ - eteService\x127.google.api.servicemanagement.v1.UndeleteServiceRequest\ - \x1a\x1d.google.longrunning.Operation\"\xaa\x01\xcaAl\n7google.api.servi\ - cemanagement.v1.UndeleteServiceResponse\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.servicemanagement.v1.ListServiceConfigsRequest\x1a;.google.ap\ - i.servicemanagement.v1.ListServiceConfigsResponse\":\x82\xd3\xe4\x93\x02\ - %\x12#/v1/services/{service_name}/configs\xdaA\x0cservice_name\x12\xde\ - \x01\n\x10GetServiceConfig\x128.google.api.servicemanagement.v1.GetServi\ - ceConfigRequest\x1a\x13.google.api.Service\"{\x82\xd3\xe4\x93\x02W\x12//\ - v1/services/{service_name}/configs/{config_id}Z$\x12\"/v1/services/{serv\ - ice_name}/config\xdaA\x1bservice_name,config_id,view\x12\xc2\x01\n\x13Cr\ - eateServiceConfig\x12;.google.api.servicemanagement.v1.CreateServiceConf\ - igRequest\x1a\x13.google.api.Service\"Y\xdaA\x1bservice_name,service_con\ - fig\x82\xd3\xe4\x93\x025\"#/v1/services/{service_name}/configs:\x0eservi\ - ce_config\x12\xc4\x02\n\x12SubmitConfigSource\x12:.google.api.serviceman\ - agement.v1.SubmitConfigSourceRequest\x1a\x1d.google.longrunning.Operatio\ - n\"\xd2\x01\x82\xd3\xe4\x93\x02/\"*/v1/services/{service_name}/configs:s\ - ubmit:\x01*\xcaAo\n:google.api.servicemanagement.v1.SubmitConfigSourceRe\ - sponse\x121google.api.servicemanagement.v1.OperationMetadata\xdaA(servic\ - e_name,config_source,validate_only\x12\xd4\x01\n\x13ListServiceRollouts\ - \x12;.google.api.servicemanagement.v1.ListServiceRolloutsRequest\x1a<.go\ - ogle.api.servicemanagement.v1.ListServiceRolloutsResponse\"B\x82\xd3\xe4\ - \x93\x02&\x12$/v1/services/{service_name}/rollouts\xdaA\x13service_name,\ - filter\x12\xcd\x01\n\x11GetServiceRollout\x129.google.api.servicemanagem\ - ent.v1.GetServiceRolloutRequest\x1a(.google.api.servicemanagement.v1.Rol\ - lout\"S\xdaA\x17service_name,rollout_id\x82\xd3\xe4\x93\x023\x121/v1/ser\ - vices/{service_name}/rollouts/{rollout_id}\x12\xa1\x02\n\x14CreateServic\ - eRollout\x12<.google.api.servicemanagement.v1.CreateServiceRolloutReques\ - t\x1a\x1d.google.longrunning.Operation\"\xab\x01\x82\xd3\xe4\x93\x02/\"$\ - /v1/services/{service_name}/rollouts:\x07rollout\xdaA\x14service_name,ro\ - llout\xcaA\\\n'google.api.servicemanagement.v1.Rollout\x121google.api.se\ - rvicemanagement.v1.OperationMetadata\x12\xd9\x01\n\x14GenerateConfigRepo\ - rt\x12<.google.api.servicemanagement.v1.GenerateConfigReportRequest\x1a=\ - .google.api.servicemanagement.v1.GenerateConfigReportResponse\"D\x82\xd3\ - \xe4\x93\x02&\"!/v1/services:generateConfigReport:\x01*\xdaA\x15new_conf\ - ig,old_config\x12\xa0\x02\n\rEnableService\x125.google.api.servicemanage\ - ment.v1.EnableServiceRequest\x1a\x1d.google.longrunning.Operation\"\xb8\ - \x01\x88\x02\x01\xdaA\x18service_name,consumer_id\xcaAj\n5google.api.ser\ - vicemanagement.v1.EnableServiceResponse\x121google.api.servicemanagement\ - .v1.OperationMetadata\x82\xd3\xe4\x93\x02'\"\"/v1/services/{service_name\ - }:enable:\x01*\x12\xa4\x02\n\x0eDisableService\x126.google.api.servicema\ - nagement.v1.DisableServiceRequest\x1a\x1d.google.longrunning.Operation\"\ - \xba\x01\x88\x02\x01\xdaA\x18service_name,consumer_id\x82\xd3\xe4\x93\ - \x02(\"#/v1/services/{service_name}:disable:\x01*\xcaAk\n6google.api.ser\ - vicemanagement.v1.DisableServiceResponse\x121google.api.servicemanagemen\ - t.v1.OperationMetadata\x1a\xfd\x01\xd2A\xd6\x01https://www.googleapis.co\ - m/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.rea\ - d-only,https://www.googleapis.com/auth/service.management,https://www.go\ - ogleapis.com/auth/service.management.readonly\xcaA\x20servicemanagement.\ - googleapis.comB\x84\x02\n#com.google.api.servicemanagement.v1B\x13Servic\ - eManagerProtoP\x01ZPgoogle.golang.org/genproto/googleapis/api/serviceman\ - agement/v1;servicemanagement\xa2\x02\x04GASM\xaa\x02!Google.Cloud.Servic\ - eManagement.V1\xca\x02!Google\\Cloud\\ServiceManagement\\V1\xea\x02$Goog\ - le::Cloud::ServiceManagement::V1J\xb3\x99\x01\n\x07\x12\x05\x0e\0\xaf\ - \x04\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\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\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\t\n\x02\x03\x08\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\0g\n\t\n\x02\x08\x0b\x12\x03\x1d\0g\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\04\n\t\n\x02\x08\x08\x12\x03\x1f\04\n\x08\n\x01\x08\x12\x03\ - \x20\0<\n\t\n\x02\x08\x01\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>\n\x08\n\x01\x08\x12\x03#\0=\n\t\n\x02\x08-\x12\x03#\0=\nL\ - \n\x02\x06\0\x12\x05&\0\x98\x02\x01\x1a?\x20[Google\x20Service\x20Manage\ - ment\x20API](/service-management/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\xf3\x02\n\x04\x06\0\x02\0\x12\x047\x02<\ - \x03\x1a\xe4\x02\x20Lists\x20managed\x20services.\n\n\x20Returns\x20all\ - \x20public\x20services.\x20For\x20authenticated\x20users,\x20also\x20ret\ - urns\x20all\n\x20services\x20the\x20calling\x20user\x20has\x20\"servicem\ - anagement.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.\x20Th\ - e\x20`consumer_id`\x20must\x20have\x20the\x20format\n\x20of\x20\"project\ - :{PROJECT-ID}\".\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x037\x06\x12\n\x0c\n\ - \x05\x06\0\x02\0\x02\x12\x037\x13&\n\x0c\n\x05\x06\0\x02\0\x03\x12\x0371\ - E\n\r\n\x05\x06\0\x02\0\x04\x12\x048\x04:\x06\n\x11\n\t\x06\0\x02\0\x04\ - \xb0\xca\xbc\"\x12\x048\x04:\x06\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\na\n\x04\x06\0\ - \x02\x01\x12\x04@\x02E\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\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\x04A\x04C\x06\n\x11\n\t\x06\0\x02\x01\x04\ - \xb0\xca\xbc\"\x12\x04A\x04C\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03D\ - \x04:\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03D\x04:\n\x99\x01\n\ - \x04\x06\0\x02\x02\x12\x04K\x02U\x03\x1a\x8a\x01\x20Creates\x20a\x20new\ - \x20managed\x20service.\n\x20Please\x20note\x20one\x20producer\x20projec\ - t\x20can\x20own\x20no\x20more\x20than\x2020\x20services.\n\n\x20Operatio\ - n\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03K\ - \x06\x13\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03K\x14(\n\x0c\n\x05\x06\0\ - \x02\x02\x03\x12\x03K3O\n\r\n\x05\x06\0\x02\x02\x04\x12\x04L\x04O\x06\n\ - \x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04L\x04O\x06\n\x0c\n\x05\ - \x06\0\x02\x02\x04\x12\x03P\x045\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\ - \x12\x03P\x045\n\r\n\x05\x06\0\x02\x02\x04\x12\x04Q\x04T\x06\n\x0f\n\x07\ - \x06\0\x02\x02\x04\x99\x08\x12\x04Q\x04T\x06\n\xf8\x02\n\x04\x06\0\x02\ - \x03\x12\x04]\x02f\x03\x1a\xe9\x02\x20Deletes\x20a\x20managed\x20service\ - .\x20This\x20method\x20will\x20change\x20the\x20service\x20to\x20the\n\ - \x20`Soft-Delete`\x20state\x20for\x2030\x20days.\x20Within\x20this\x20pe\ - riod,\x20service\x20producers\x20may\n\x20call\x20[UndeleteService][goog\ - le.api.servicemanagement.v1.ServiceManager.UndeleteService]\x20to\x20res\ - tore\x20the\x20service.\n\x20After\x2030\x20days,\x20the\x20service\x20w\ - ill\x20be\x20permanently\x20deleted.\n\n\x20Operation\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03]\x06\x13\n\x0c\ - \n\x05\x06\0\x02\x03\x02\x12\x03]\x14(\n\x0c\n\x05\x06\0\x02\x03\x03\x12\ - \x03]3O\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\x0c\n\x05\x06\0\x02\x03\ - \x04\x12\x03a\x04:\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03a\x04:\ - \n\r\n\x05\x06\0\x02\x03\x04\x12\x04b\x04e\x06\n\x0f\n\x07\x06\0\x02\x03\ - \x04\x99\x08\x12\x04b\x04e\x06\n\x9f\x02\n\x04\x06\0\x02\x04\x12\x04n\ - \x02w\x03\x1a\x90\x02\x20Revives\x20a\x20previously\x20deleted\x20manage\ - d\x20service.\x20The\x20method\x20restores\x20the\n\x20service\x20using\ - \x20the\x20configuration\x20at\x20the\x20time\x20the\x20service\x20was\ - \x20deleted.\n\x20The\x20target\x20service\x20must\x20exist\x20and\x20mu\ - st\x20have\x20been\x20deleted\x20within\x20the\n\x20last\x2030\x20days.\ - \n\n\x20Operation\n\n\x0c\n\x05\ - \x06\0\x02\x04\x01\x12\x03n\x06\x15\n\x0c\n\x05\x06\0\x02\x04\x02\x12\ - \x03n\x16,\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03n7S\n\r\n\x05\x06\0\x02\ - \x04\x04\x12\x04o\x04q\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\ - \x04o\x04q\x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03r\x04:\n\x0f\n\x08\ - \x06\0\x02\x04\x04\x9b\x08\0\x12\x03r\x04:\n\r\n\x05\x06\0\x02\x04\x04\ - \x12\x04s\x04v\x06\n\x0f\n\x07\x06\0\x02\x04\x04\x99\x08\x12\x04s\x04v\ - \x06\nv\n\x04\x06\0\x02\x05\x12\x05{\x02\x80\x01\x03\x1ag\x20Lists\x20th\ - e\x20history\x20of\x20the\x20service\x20configuration\x20for\x20a\x20man\ - aged\x20service,\n\x20from\x20the\x20newest\x20to\x20the\x20oldest.\n\n\ - \x0c\n\x05\x06\0\x02\x05\x01\x12\x03{\x06\x18\n\x0c\n\x05\x06\0\x02\x05\ - \x02\x12\x03{\x192\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03{=W\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\x03\x7f\x04:\ - \n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x03\x7f\x04:\nO\n\x04\x06\0\ - \x02\x06\x12\x06\x83\x01\x02\x8b\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\x83\x01\x06\x16\n\r\n\x05\x06\0\x02\x06\ - \x02\x12\x04\x83\x01\x17.\n\r\n\x05\x06\0\x02\x06\x03\x12\x04\x83\x019K\ - \n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\x84\x01\x04\x89\x01\x06\n\x13\n\t\ - \x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\x84\x01\x04\x89\x01\x06\n\r\n\ - \x05\x06\0\x02\x06\x04\x12\x04\x8a\x01\x04I\n\x10\n\x08\x06\0\x02\x06\ - \x04\x9b\x08\0\x12\x04\x8a\x01\x04I\n\xcc\x03\n\x04\x06\0\x02\x07\x12\ - \x06\x95\x01\x02\x9b\x01\x03\x1a\xbb\x03\x20Creates\x20a\x20new\x20servi\ - ce\x20configuration\x20(version)\x20for\x20a\x20managed\x20service.\n\ - \x20This\x20method\x20only\x20stores\x20the\x20service\x20configuration.\ - \x20To\x20roll\x20out\x20the\x20service\n\x20configuration\x20to\x20back\ - end\x20systems\x20please\x20call\n\x20[CreateServiceRollout][google.api.\ - servicemanagement.v1.ServiceManager.CreateServiceRollout].\n\n\x20Only\ - \x20the\x20100\x20most\x20recent\x20service\x20configurations\x20and\x20\ - ones\x20referenced\x20by\n\x20existing\x20rollouts\x20are\x20kept\x20for\ - \x20each\x20service.\x20The\x20rest\x20will\x20be\x20deleted\n\x20eventu\ - ally.\n\n\r\n\x05\x06\0\x02\x07\x01\x12\x04\x95\x01\x06\x19\n\r\n\x05\ - \x06\0\x02\x07\x02\x12\x04\x95\x01\x1a4\n\r\n\x05\x06\0\x02\x07\x03\x12\ - \x04\x95\x01?Q\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\x96\x01\x04\x99\x01\ - \x06\n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x96\x01\x04\x99\ - \x01\x06\n\r\n\x05\x06\0\x02\x07\x04\x12\x04\x9a\x01\x04I\n\x10\n\x08\ - \x06\0\x02\x07\x04\x9b\x08\0\x12\x04\x9a\x01\x04I\n\x8d\x05\n\x04\x06\0\ - \x02\x08\x12\x06\xaa\x01\x02\xb4\x01\x03\x1a\xfc\x04\x20Creates\x20a\x20\ - new\x20service\x20configuration\x20(version)\x20for\x20a\x20managed\x20s\ - ervice\x20based\n\x20on\n\x20user-supplied\x20configuration\x20source\ - \x20files\x20(for\x20example:\x20OpenAPI\n\x20Specification).\x20This\ - \x20method\x20stores\x20the\x20source\x20configurations\x20as\x20well\ - \x20as\x20the\n\x20generated\x20service\x20configuration.\x20To\x20rollo\ - ut\x20the\x20service\x20configuration\x20to\n\x20other\x20services,\n\ - \x20please\x20call\x20[CreateServiceRollout][google.api.servicemanagemen\ - t.v1.ServiceManager.CreateServiceRollout].\n\n\x20Only\x20the\x20100\x20\ - most\x20recent\x20configuration\x20sources\x20and\x20ones\x20referenced\ - \x20by\n\x20existing\x20service\x20configurtions\x20are\x20kept\x20for\ - \x20each\x20service.\x20The\x20rest\x20will\x20be\n\x20deleted\x20eventu\ - ally.\n\n\x20Operation\n\n\r\n\ - \x05\x06\0\x02\x08\x01\x12\x04\xaa\x01\x06\x18\n\r\n\x05\x06\0\x02\x08\ - \x02\x12\x04\xaa\x01\x192\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\xaa\x01=Y\ - \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\x04V\n\x10\n\x08\x06\0\x02\x08\ - \x04\x9b\x08\0\x12\x04\xaf\x01\x04V\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\x80\x01\n\x04\x06\0\x02\t\x12\x06\xb8\x01\ - \x02\xbd\x01\x03\x1ap\x20Lists\x20the\x20history\x20of\x20the\x20service\ - \x20configuration\x20rollouts\x20for\x20a\x20managed\n\x20service,\x20fr\ - om\x20the\x20newest\x20to\x20the\x20oldest.\n\n\r\n\x05\x06\0\x02\t\x01\ - \x12\x04\xb8\x01\x06\x19\n\r\n\x05\x06\0\x02\t\x02\x12\x04\xb8\x01\x1a4\ - \n\r\n\x05\x06\0\x02\t\x03\x12\x04\xb8\x01?Z\n\x0f\n\x05\x06\0\x02\t\x04\ - \x12\x06\xb9\x01\x04\xbb\x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\ - \x12\x06\xb9\x01\x04\xbb\x01\x06\n\r\n\x05\x06\0\x02\t\x04\x12\x04\xbc\ - \x01\x04A\n\x10\n\x08\x06\0\x02\t\x04\x9b\x08\0\x12\x04\xbc\x01\x04A\nb\ - \n\x04\x06\0\x02\n\x12\x06\xc0\x01\x02\xc5\x01\x03\x1aR\x20Gets\x20a\x20\ - service\x20configuration\x20[rollout][google.api.servicemanagement.v1.Ro\ - llout].\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xc0\x01\x06\x17\n\r\n\x05\ - \x06\0\x02\n\x02\x12\x04\xc0\x01\x180\n\r\n\x05\x06\0\x02\n\x03\x12\x04\ - \xc0\x01;B\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xc1\x01\x04\xc3\x01\x06\n\ - \x13\n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xc1\x01\x04\xc3\x01\x06\n\ - \r\n\x05\x06\0\x02\n\x04\x12\x04\xc4\x01\x04E\n\x10\n\x08\x06\0\x02\n\ - \x04\x9b\x08\0\x12\x04\xc4\x01\x04E\n\xaa\x05\n\x04\x06\0\x02\x0b\x12\ - \x06\xd5\x01\x02\xdf\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\xd5\x01\x06\ - \x1a\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xd5\x01\x1b6\n\r\n\x05\x06\0\ - \x02\x0b\x03\x12\x04\xd5\x01A]\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xd6\ - \x01\x04\xd9\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\ - \xd6\x01\x04\xd9\x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\xda\x01\x04\ - B\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\xda\x01\x04B\n\x0f\n\ - \x05\x06\0\x02\x0b\x04\x12\x06\xdb\x01\x04\xde\x01\x06\n\x11\n\x07\x06\0\ - \x02\x0b\x04\x99\x08\x12\x06\xdb\x01\x04\xde\x01\x06\n\xba\x04\n\x04\x06\ - \0\x02\x0c\x12\x06\xec\x01\x02\xf2\x01\x03\x1a\xa9\x04\x20Generates\x20a\ - nd\x20returns\x20a\x20report\x20(errors,\x20warnings\x20and\x20changes\ - \x20from\n\x20existing\x20configurations)\x20associated\x20with\n\x20Gen\ - erateConfigReportRequest.new_value\n\n\x20If\x20GenerateConfigReportRequ\ - est.old_value\x20is\x20specified,\n\x20GenerateConfigReportRequest\x20wi\ - ll\x20contain\x20a\x20single\x20ChangeReport\x20based\x20on\x20the\n\x20\ - comparison\x20between\x20GenerateConfigReportRequest.new_value\x20and\n\ - \x20GenerateConfigReportRequest.old_value.\n\x20If\x20GenerateConfigRepo\ - rtRequest.old_value\x20is\x20not\x20specified,\x20this\x20method\n\x20wi\ - ll\x20compare\x20GenerateConfigReportRequest.new_value\x20with\x20the\ - \x20last\x20pushed\n\x20service\x20configuration.\n\n\r\n\x05\x06\0\x02\ - \x0c\x01\x12\x04\xec\x01\x06\x1a\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xec\ - \x01\x1b6\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xec\x01A]\n\x0f\n\x05\x06\ - \0\x02\x0c\x04\x12\x06\xed\x01\x04\xf0\x01\x06\n\x13\n\t\x06\0\x02\x0c\ - \x04\xb0\xca\xbc\"\x12\x06\xed\x01\x04\xf0\x01\x06\n\r\n\x05\x06\0\x02\ - \x0c\x04\x12\x04\xf1\x01\x04C\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\ - \x12\x04\xf1\x01\x04C\n\x93\x02\n\x04\x06\0\x02\r\x12\x06\xfa\x01\x02\ - \x85\x02\x03\x1a\x82\x02\x20Enables\x20a\x20[service][google.api.service\ - management.v1.ManagedService]\x20for\x20a\x20project,\x20so\x20it\x20can\ - \x20be\x20used\n\x20for\x20the\x20project.\x20See\n\x20[Cloud\x20Auth\ - \x20Guide](https://cloud.google.com/docs/authentication)\x20for\n\x20mor\ - e\x20information.\n\n\x20Operation\n\ - \n\r\n\x05\x06\0\x02\r\x01\x12\x04\xfa\x01\x06\x13\n\r\n\x05\x06\0\x02\r\ - \x02\x12\x04\xfa\x01\x14(\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xfa\x013O\n\ - \r\n\x05\x06\0\x02\r\x04\x12\x04\xfb\x01\x04\x1d\n\x0e\n\x06\x06\0\x02\r\ - \x04!\x12\x04\xfb\x01\x04\x1d\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xfc\ - \x01\x04\xff\x01\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\xfc\ - \x01\x04\xff\x01\x06\n\r\n\x05\x06\0\x02\r\x04\x12\x04\x80\x02\x04F\n\ - \x10\n\x08\x06\0\x02\r\x04\x9b\x08\0\x12\x04\x80\x02\x04F\n\x0f\n\x05\ - \x06\0\x02\r\x04\x12\x06\x81\x02\x04\x84\x02\x06\n\x11\n\x07\x06\0\x02\r\ - \x04\x99\x08\x12\x06\x81\x02\x04\x84\x02\x06\n\xa0\x02\n\x04\x06\0\x02\ - \x0e\x12\x06\x8c\x02\x02\x97\x02\x03\x1a\x8f\x02\x20Disables\x20a\x20[se\ - rvice][google.api.servicemanagement.v1.ManagedService]\x20for\x20a\x20pr\ - oject,\x20so\x20it\x20can\x20no\x20longer\x20be\n\x20be\x20used\x20for\ - \x20the\x20project.\x20It\x20prevents\x20accidental\x20usage\x20that\x20\ - may\x20cause\n\x20unexpected\x20billing\x20charges\x20or\x20security\x20\ - leaks.\n\n\x20Operation\n\n\r\n\x05\ - \x06\0\x02\x0e\x01\x12\x04\x8c\x02\x06\x14\n\r\n\x05\x06\0\x02\x0e\x02\ - \x12\x04\x8c\x02\x15*\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\x8c\x025Q\n\r\ - \n\x05\x06\0\x02\x0e\x04\x12\x04\x8d\x02\x04\x1d\n\x0e\n\x06\x06\0\x02\ - \x0e\x04!\x12\x04\x8d\x02\x04\x1d\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\ - \x8e\x02\x04\x91\x02\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\ - \x06\x8e\x02\x04\x91\x02\x06\n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\x92\x02\ - \x04F\n\x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\x92\x02\x04F\n\x0f\ - \n\x05\x06\0\x02\x0e\x04\x12\x06\x93\x02\x04\x96\x02\x06\n\x11\n\x07\x06\ - \0\x02\x0e\x04\x99\x08\x12\x06\x93\x02\x04\x96\x02\x06\n:\n\x02\x04\0\ - \x12\x06\x9b\x02\0\xad\x02\x01\x1a,\x20Request\x20message\x20for\x20`Lis\ - tServices`\x20method.\n\n\x0b\n\x03\x04\0\x01\x12\x04\x9b\x02\x08\x1b\nC\ - \n\x04\x04\0\x02\0\x12\x04\x9d\x02\x02!\x1a5\x20Include\x20services\x20p\ - roduced\x20by\x20the\x20specified\x20project.\n\n\x0f\n\x05\x04\0\x02\0\ - \x04\x12\x06\x9d\x02\x02\x9b\x02\x1d\n\r\n\x05\x04\0\x02\0\x05\x12\x04\ - \x9d\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x9d\x02\t\x1c\n\r\n\ - \x05\x04\0\x02\0\x03\x12\x04\x9d\x02\x1f\x20\n\x81\x01\n\x04\x04\0\x02\ - \x01\x12\x04\xa1\x02\x02\x16\x1as\x20The\x20max\x20number\x20of\x20items\ - \x20to\x20include\x20in\x20the\x20response\x20list.\x20Page\x20size\x20i\ - s\x2050\n\x20if\x20not\x20specified.\x20Maximum\x20value\x20is\x20100.\n\ - \n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\xa1\x02\x02\x9d\x02!\n\r\n\x05\ - \x04\0\x02\x01\x05\x12\x04\xa1\x02\x02\x07\n\r\n\x05\x04\0\x02\x01\x01\ - \x12\x04\xa1\x02\x08\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xa1\x02\x14\ - \x15\n`\n\x04\x04\0\x02\x02\x12\x04\xa5\x02\x02\x18\x1aR\x20Token\x20ide\ - ntifying\x20which\x20result\x20to\x20start\x20with;\x20returned\x20by\ - \x20a\x20previous\x20list\n\x20call.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\ - \x06\xa5\x02\x02\xa1\x02\x16\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\xa5\x02\ - \x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xa5\x02\t\x13\n\r\n\x05\x04\ - \0\x02\x02\x03\x12\x04\xa5\x02\x16\x17\n\xaa\x01\n\x04\x04\0\x02\x03\x12\ - \x04\xac\x02\x02-\x1a\x9b\x01\x20Include\x20services\x20consumed\x20by\ - \x20the\x20specified\x20consumer.\n\n\x20The\x20Google\x20Service\x20Man\ - agement\x20implementation\x20accepts\x20the\x20following\n\x20forms:\n\ - \x20-\x20project:\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\ - \xac\x02\x02\xa5\x02\x18\n\r\n\x05\x04\0\x02\x03\x05\x12\x04\xac\x02\x02\ - \x08\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xac\x02\t\x14\n\r\n\x05\x04\0\ - \x02\x03\x03\x12\x04\xac\x02\x17\x18\n\r\n\x05\x04\0\x02\x03\x08\x12\x04\ - \xac\x02\x19,\n\x0e\n\x06\x04\0\x02\x03\x08\x03\x12\x04\xac\x02\x1a+\n;\ - \n\x02\x04\x01\x12\x06\xb0\x02\0\xb6\x02\x01\x1a-\x20Response\x20message\ - \x20for\x20`ListServices`\x20method.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\ - \xb0\x02\x08\x1c\nH\n\x04\x04\x01\x02\0\x12\x04\xb2\x02\x02'\x1a:\x20The\ - \x20returned\x20services\x20will\x20only\x20have\x20the\x20name\x20field\ - \x20set.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\xb2\x02\x02\n\n\r\n\x05\ - \x04\x01\x02\0\x06\x12\x04\xb2\x02\x0b\x19\n\r\n\x05\x04\x01\x02\0\x01\ - \x12\x04\xb2\x02\x1a\"\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xb2\x02%&\nW\ - \n\x04\x04\x01\x02\x01\x12\x04\xb5\x02\x02\x1d\x1aI\x20Token\x20that\x20\ - can\x20be\x20passed\x20to\x20`ListServices`\x20to\x20resume\x20a\x20pagi\ - nated\x20query.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xb5\x02\x02\ - \xb2\x02'\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xb5\x02\x02\x08\n\r\n\ - \x05\x04\x01\x02\x01\x01\x12\x04\xb5\x02\t\x18\n\r\n\x05\x04\x01\x02\x01\ - \x03\x12\x04\xb5\x02\x1b\x1c\n8\n\x02\x04\x02\x12\x06\xb9\x02\0\xbd\x02\ - \x01\x1a*\x20Request\x20message\x20for\x20`GetService`\x20method.\n\n\ - \x0b\n\x03\x04\x02\x01\x12\x04\xb9\x02\x08\x19\n\x98\x01\n\x04\x04\x02\ - \x02\0\x12\x04\xbc\x02\x02C\x1a\x89\x01\x20Required.\x20The\x20name\x20o\ - f\x20the\x20service.\x20\x20See\x20the\x20`ServiceManager`\x20overview\ - \x20for\x20naming\n\x20requirements.\x20\x20For\x20example:\x20`example.\ - googleapis.com`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xbc\x02\x02\xb9\ - \x02\x1b\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xbc\x02\x02\x08\n\r\n\x05\ - \x04\x02\x02\0\x01\x12\x04\xbc\x02\t\x15\n\r\n\x05\x04\x02\x02\0\x03\x12\ - \x04\xbc\x02\x18\x19\n\r\n\x05\x04\x02\x02\0\x08\x12\x04\xbc\x02\x1aB\n\ - \x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xbc\x02\x1bA\n9\n\x02\x04\ - \x03\x12\x06\xc0\x02\0\xc3\x02\x01\x1a+\x20Request\x20message\x20for\x20\ - CreateService\x20method.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xc0\x02\x08\ - \x1c\nB\n\x04\x04\x03\x02\0\x12\x04\xc2\x02\x02F\x1a4\x20Required.\x20In\ - itial\x20values\x20for\x20the\x20service\x20resource.\n\n\x0f\n\x05\x04\ - \x03\x02\0\x04\x12\x06\xc2\x02\x02\xc0\x02\x1e\n\r\n\x05\x04\x03\x02\0\ - \x06\x12\x04\xc2\x02\x02\x10\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc2\x02\ - \x11\x18\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xc2\x02\x1b\x1c\n\r\n\x05\ - \x04\x03\x02\0\x08\x12\x04\xc2\x02\x1dE\n\x10\n\x08\x04\x03\x02\0\x08\ - \x9c\x08\0\x12\x04\xc2\x02\x1eD\n9\n\x02\x04\x04\x12\x06\xc6\x02\0\xca\ - \x02\x01\x1a+\x20Request\x20message\x20for\x20DeleteService\x20method.\n\ - \n\x0b\n\x03\x04\x04\x01\x12\x04\xc6\x02\x08\x1c\n\xa7\x01\n\x04\x04\x04\ - \x02\0\x12\x04\xc9\x02\x02C\x1a\x98\x01\x20Required.\x20The\x20name\x20o\ - f\x20the\x20service.\x20\x20See\x20the\x20[overview](/service-management\ - /overview)\n\x20for\x20naming\x20requirements.\x20\x20For\x20example:\ - \x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\ - \xc9\x02\x02\xc6\x02\x1e\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xc9\x02\x02\ - \x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xc9\x02\t\x15\n\r\n\x05\x04\x04\ - \x02\0\x03\x12\x04\xc9\x02\x18\x19\n\r\n\x05\x04\x04\x02\0\x08\x12\x04\ - \xc9\x02\x1aB\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xc9\x02\ - \x1bA\n;\n\x02\x04\x05\x12\x06\xcd\x02\0\xd1\x02\x01\x1a-\x20Request\x20\ - message\x20for\x20UndeleteService\x20method.\n\n\x0b\n\x03\x04\x05\x01\ - \x12\x04\xcd\x02\x08\x1e\n\xa5\x01\n\x04\x04\x05\x02\0\x12\x04\xd0\x02\ - \x02C\x1a\x96\x01\x20Required.\x20The\x20name\x20of\x20the\x20service.\ - \x20See\x20the\x20[overview](/service-management/overview)\n\x20for\x20n\ - aming\x20requirements.\x20For\x20example:\x20`example.googleapis.com`.\n\ - \n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xd0\x02\x02\xcd\x02\x20\n\r\n\x05\ - \x04\x05\x02\0\x05\x12\x04\xd0\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\ - \x12\x04\xd0\x02\t\x15\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xd0\x02\x18\ - \x19\n\r\n\x05\x04\x05\x02\0\x08\x12\x04\xd0\x02\x1aB\n\x10\n\x08\x04\ - \x05\x02\0\x08\x9c\x08\0\x12\x04\xd0\x02\x1bA\n<\n\x02\x04\x06\x12\x06\ - \xd4\x02\0\xd7\x02\x01\x1a.\x20Response\x20message\x20for\x20UndeleteSer\ - vice\x20method.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xd4\x02\x08\x1f\n)\n\ - \x04\x04\x06\x02\0\x12\x04\xd6\x02\x02\x1d\x1a\x1b\x20Revived\x20service\ - \x20resource.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xd6\x02\x02\xd4\ - \x02!\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\xd6\x02\x02\x10\n\r\n\x05\x04\ - \x06\x02\0\x01\x12\x04\xd6\x02\x11\x18\n\r\n\x05\x04\x06\x02\0\x03\x12\ - \x04\xd6\x02\x1b\x1c\n<\n\x02\x04\x07\x12\x06\xda\x02\0\xf3\x02\x01\x1a.\ - \x20Request\x20message\x20for\x20GetServiceConfig\x20method.\n\n\x0b\n\ - \x03\x04\x07\x01\x12\x04\xda\x02\x08\x1f\n\x0e\n\x04\x04\x07\x04\0\x12\ - \x06\xdb\x02\x02\xe4\x02\x03\n\r\n\x05\x04\x07\x04\0\x01\x12\x04\xdb\x02\ - \x07\x11\nH\n\x06\x04\x07\x04\0\x02\0\x12\x04\xdd\x02\x04\x0e\x1a8\x20Se\ - rver\x20response\x20includes\x20all\x20fields\x20except\x20SourceInfo.\n\ - \n\x0f\n\x07\x04\x07\x04\0\x02\0\x01\x12\x04\xdd\x02\x04\t\n\x0f\n\x07\ - \x04\x07\x04\0\x02\0\x02\x12\x04\xdd\x02\x0c\r\n\xe4\x01\n\x06\x04\x07\ - \x04\0\x02\x01\x12\x04\xe3\x02\x04\r\x1a\xd3\x01\x20Server\x20response\ - \x20includes\x20all\x20fields\x20including\x20SourceInfo.\n\x20SourceFil\ - es\x20are\x20of\x20type\x20'google.api.servicemanagement.v1.ConfigFile'\ - \n\x20and\x20are\x20only\x20available\x20for\x20configs\x20created\x20us\ - ing\x20the\n\x20SubmitConfigSource\x20method.\n\n\x0f\n\x07\x04\x07\x04\ - \0\x02\x01\x01\x12\x04\xe3\x02\x04\x08\n\x0f\n\x07\x04\x07\x04\0\x02\x01\ - \x02\x12\x04\xe3\x02\x0b\x0c\n\xa7\x01\n\x04\x04\x07\x02\0\x12\x04\xe8\ - \x02\x02C\x1a\x98\x01\x20Required.\x20The\x20name\x20of\x20the\x20servic\ - e.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\x20fo\ - r\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.googleap\ - is.com`.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xe8\x02\x02\xe4\x02\x03\ - \n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xe8\x02\x02\x08\n\r\n\x05\x04\x07\ - \x02\0\x01\x12\x04\xe8\x02\t\x15\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xe8\ - \x02\x18\x19\n\r\n\x05\x04\x07\x02\0\x08\x12\x04\xe8\x02\x1aB\n\x10\n\ - \x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xe8\x02\x1bA\n\xa5\x01\n\x04\ - \x04\x07\x02\x01\x12\x04\xee\x02\x02@\x1a\x96\x01\x20Required.\x20The\ - \x20id\x20of\x20the\x20service\x20configuration\x20resource.\n\n\x20This\ - \x20field\x20must\x20be\x20specified\x20for\x20the\x20server\x20to\x20re\ - turn\x20all\x20fields,\x20including\n\x20`SourceInfo`.\n\n\x0f\n\x05\x04\ - \x07\x02\x01\x04\x12\x06\xee\x02\x02\xe8\x02C\n\r\n\x05\x04\x07\x02\x01\ - \x05\x12\x04\xee\x02\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xee\ - \x02\t\x12\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xee\x02\x15\x16\n\r\n\ - \x05\x04\x07\x02\x01\x08\x12\x04\xee\x02\x17?\n\x10\n\x08\x04\x07\x02\ - \x01\x08\x9c\x08\0\x12\x04\xee\x02\x18>\n`\n\x04\x04\x07\x02\x02\x12\x04\ - \xf2\x02\x02\x16\x1aR\x20Specifies\x20which\x20parts\x20of\x20the\x20Ser\ - vice\x20Config\x20should\x20be\x20returned\x20in\x20the\n\x20response.\n\ - \n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xf2\x02\x02\xee\x02@\n\r\n\x05\ - \x04\x07\x02\x02\x06\x12\x04\xf2\x02\x02\x0c\n\r\n\x05\x04\x07\x02\x02\ - \x01\x12\x04\xf2\x02\r\x11\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xf2\x02\ - \x14\x15\n>\n\x02\x04\x08\x12\x06\xf6\x02\0\x81\x03\x01\x1a0\x20Request\ - \x20message\x20for\x20ListServiceConfigs\x20method.\n\n\x0b\n\x03\x04\ - \x08\x01\x12\x04\xf6\x02\x08!\n\xa7\x01\n\x04\x04\x08\x02\0\x12\x04\xf9\ - \x02\x02C\x1a\x98\x01\x20Required.\x20The\x20name\x20of\x20the\x20servic\ - e.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\x20fo\ - r\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.googleap\ - is.com`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xf9\x02\x02\xf6\x02#\n\ - \r\n\x05\x04\x08\x02\0\x05\x12\x04\xf9\x02\x02\x08\n\r\n\x05\x04\x08\x02\ - \0\x01\x12\x04\xf9\x02\t\x15\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xf9\x02\ - \x18\x19\n\r\n\x05\x04\x08\x02\0\x08\x12\x04\xf9\x02\x1aB\n\x10\n\x08\ - \x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xf9\x02\x1bA\n2\n\x04\x04\x08\x02\ - \x01\x12\x04\xfc\x02\x02\x18\x1a$\x20The\x20token\x20of\x20the\x20page\ - \x20to\x20retrieve.\n\n\x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xfc\x02\ - \x02\xf9\x02C\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xfc\x02\x02\x08\n\r\ - \n\x05\x04\x08\x02\x01\x01\x12\x04\xfc\x02\t\x13\n\r\n\x05\x04\x08\x02\ - \x01\x03\x12\x04\xfc\x02\x16\x17\n\x81\x01\n\x04\x04\x08\x02\x02\x12\x04\ - \x80\x03\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\x0f\n\ - \x05\x04\x08\x02\x02\x04\x12\x06\x80\x03\x02\xfc\x02\x18\n\r\n\x05\x04\ - \x08\x02\x02\x05\x12\x04\x80\x03\x02\x07\n\r\n\x05\x04\x08\x02\x02\x01\ - \x12\x04\x80\x03\x08\x11\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\x80\x03\ - \x14\x15\n?\n\x02\x04\t\x12\x06\x84\x03\0\x8a\x03\x01\x1a1\x20Response\ - \x20message\x20for\x20ListServiceConfigs\x20method.\n\n\x0b\n\x03\x04\t\ - \x01\x12\x04\x84\x03\x08\"\n<\n\x04\x04\t\x02\0\x12\x04\x86\x03\x022\x1a\ - .\x20The\x20list\x20of\x20service\x20configuration\x20resources.\n\n\r\n\ - \x05\x04\t\x02\0\x04\x12\x04\x86\x03\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\ - \x04\x86\x03\x0b\x1d\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x86\x03\x1e-\n\r\ - \n\x05\x04\t\x02\0\x03\x12\x04\x86\x0301\n6\n\x04\x04\t\x02\x01\x12\x04\ - \x89\x03\x02\x1d\x1a(\x20The\x20token\x20of\x20the\x20next\x20page\x20of\ - \x20results.\n\n\x0f\n\x05\x04\t\x02\x01\x04\x12\x06\x89\x03\x02\x86\x03\ - 2\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\x89\x03\x02\x08\n\r\n\x05\x04\t\ - \x02\x01\x01\x12\x04\x89\x03\t\x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\ - \x89\x03\x1b\x1c\n?\n\x02\x04\n\x12\x06\x8d\x03\0\x94\x03\x01\x1a1\x20Re\ - quest\x20message\x20for\x20CreateServiceConfig\x20method.\n\n\x0b\n\x03\ - \x04\n\x01\x12\x04\x8d\x03\x08\"\n\xa7\x01\n\x04\x04\n\x02\0\x12\x04\x90\ - \x03\x02C\x1a\x98\x01\x20Required.\x20The\x20name\x20of\x20the\x20servic\ - e.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\x20fo\ - r\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.googleap\ - is.com`.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\x90\x03\x02\x8d\x03$\n\r\ - \n\x05\x04\n\x02\0\x05\x12\x04\x90\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\x90\x03\t\x15\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x90\x03\x18\x19\ - \n\r\n\x05\x04\n\x02\0\x08\x12\x04\x90\x03\x1aB\n\x10\n\x08\x04\n\x02\0\ - \x08\x9c\x08\0\x12\x04\x90\x03\x1bA\n=\n\x04\x04\n\x02\x01\x12\x04\x93\ - \x03\x02Q\x1a/\x20Required.\x20The\x20service\x20configuration\x20resour\ - ce.\n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\x93\x03\x02\x90\x03C\n\r\n\ - \x05\x04\n\x02\x01\x06\x12\x04\x93\x03\x02\x14\n\r\n\x05\x04\n\x02\x01\ - \x01\x12\x04\x93\x03\x15#\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\x93\x03&'\ - \n\r\n\x05\x04\n\x02\x01\x08\x12\x04\x93\x03(P\n\x10\n\x08\x04\n\x02\x01\ - \x08\x9c\x08\0\x12\x04\x93\x03)O\n>\n\x02\x04\x0b\x12\x06\x97\x03\0\xa3\ - \x03\x01\x1a0\x20Request\x20message\x20for\x20SubmitConfigSource\x20meth\ - od.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x97\x03\x08!\n\xa7\x01\n\x04\x04\ - \x0b\x02\0\x12\x04\x9a\x03\x02C\x1a\x98\x01\x20Required.\x20The\x20name\ - \x20of\x20the\x20service.\x20\x20See\x20the\x20[overview](/service-manag\ - ement/overview)\n\x20for\x20naming\x20requirements.\x20\x20For\x20exampl\ - e:\x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\ - \x9a\x03\x02\x97\x03#\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x9a\x03\x02\ - \x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x9a\x03\t\x15\n\r\n\x05\x04\x0b\ - \x02\0\x03\x12\x04\x9a\x03\x18\x19\n\r\n\x05\x04\x0b\x02\0\x08\x12\x04\ - \x9a\x03\x1aB\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\x12\x04\x9a\x03\ - \x1bA\nC\n\x04\x04\x0b\x02\x01\x12\x04\x9d\x03\x02J\x1a5\x20Required.\ - \x20The\x20source\x20configuration\x20for\x20the\x20service.\n\n\x0f\n\ - \x05\x04\x0b\x02\x01\x04\x12\x06\x9d\x03\x02\x9a\x03C\n\r\n\x05\x04\x0b\ - \x02\x01\x06\x12\x04\x9d\x03\x02\x0e\n\r\n\x05\x04\x0b\x02\x01\x01\x12\ - \x04\x9d\x03\x0f\x1c\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x9d\x03\x1f\ - \x20\n\r\n\x05\x04\x0b\x02\x01\x08\x12\x04\x9d\x03!I\n\x10\n\x08\x04\x0b\ - \x02\x01\x08\x9c\x08\0\x12\x04\x9d\x03\"H\n\xd5\x01\n\x04\x04\x0b\x02\ - \x02\x12\x04\xa2\x03\x02B\x1a\xc6\x01\x20Optional.\x20If\x20set,\x20this\ - \x20will\x20result\x20in\x20the\x20generation\x20of\x20a\n\x20`google.ap\ - i.Service`\x20configuration\x20based\x20on\x20the\x20`ConfigSource`\x20p\ - rovided,\n\x20but\x20the\x20generated\x20config\x20and\x20the\x20sources\ - \x20will\x20NOT\x20be\x20persisted.\n\n\x0f\n\x05\x04\x0b\x02\x02\x04\ - \x12\x06\xa2\x03\x02\x9d\x03J\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\xa2\ - \x03\x02\x06\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xa2\x03\x07\x14\n\r\n\ - \x05\x04\x0b\x02\x02\x03\x12\x04\xa2\x03\x17\x18\n\r\n\x05\x04\x0b\x02\ - \x02\x08\x12\x04\xa2\x03\x19A\n\x10\n\x08\x04\x0b\x02\x02\x08\x9c\x08\0\ - \x12\x04\xa2\x03\x1a@\n?\n\x02\x04\x0c\x12\x06\xa6\x03\0\xa9\x03\x01\x1a\ - 1\x20Response\x20message\x20for\x20SubmitConfigSource\x20method.\n\n\x0b\ - \n\x03\x04\x0c\x01\x12\x04\xa6\x03\x08\"\n4\n\x04\x04\x0c\x02\0\x12\x04\ - \xa8\x03\x02(\x1a&\x20The\x20generated\x20service\x20configuration.\n\n\ - \x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xa8\x03\x02\xa6\x03$\n\r\n\x05\x04\ - \x0c\x02\0\x06\x12\x04\xa8\x03\x02\x14\n\r\n\x05\x04\x0c\x02\0\x01\x12\ - \x04\xa8\x03\x15#\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xa8\x03&'\n:\n\x02\ - \x04\r\x12\x06\xac\x03\0\xb3\x03\x01\x1a,\x20Request\x20message\x20for\ - \x20'CreateServiceRollout'\n\n\x0b\n\x03\x04\r\x01\x12\x04\xac\x03\x08#\ - \n\xa7\x01\n\x04\x04\r\x02\0\x12\x04\xaf\x03\x02C\x1a\x98\x01\x20Require\ - d.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20[overvie\ - w](/service-management/overview)\n\x20for\x20naming\x20requirements.\x20\ - \x20For\x20example:\x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\r\x02\ - \0\x04\x12\x06\xaf\x03\x02\xac\x03%\n\r\n\x05\x04\r\x02\0\x05\x12\x04\ - \xaf\x03\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xaf\x03\t\x15\n\r\n\ - \x05\x04\r\x02\0\x03\x12\x04\xaf\x03\x18\x19\n\r\n\x05\x04\r\x02\0\x08\ - \x12\x04\xaf\x03\x1aB\n\x10\n\x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\xaf\ - \x03\x1bA\nX\n\x04\x04\r\x02\x01\x12\x04\xb2\x03\x02?\x1aJ\x20Required.\ - \x20The\x20rollout\x20resource.\x20The\x20`service_name`\x20field\x20is\ - \x20output\x20only.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xb2\x03\x02\ - \xaf\x03C\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xb2\x03\x02\t\n\r\n\x05\ - \x04\r\x02\x01\x01\x12\x04\xb2\x03\n\x11\n\r\n\x05\x04\r\x02\x01\x03\x12\ - \x04\xb2\x03\x14\x15\n\r\n\x05\x04\r\x02\x01\x08\x12\x04\xb2\x03\x16>\n\ - \x10\n\x08\x04\r\x02\x01\x08\x9c\x08\0\x12\x04\xb2\x03\x17=\n9\n\x02\x04\ - \x0e\x12\x06\xb6\x03\0\xcb\x03\x01\x1a+\x20Request\x20message\x20for\x20\ - 'ListServiceRollouts'\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xb6\x03\x08\"\n\ - \xa7\x01\n\x04\x04\x0e\x02\0\x12\x04\xb9\x03\x02C\x1a\x98\x01\x20Require\ - d.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20[overvie\ - w](/service-management/overview)\n\x20for\x20naming\x20requirements.\x20\ - \x20For\x20example:\x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\x0e\ - \x02\0\x04\x12\x06\xb9\x03\x02\xb6\x03$\n\r\n\x05\x04\x0e\x02\0\x05\x12\ - \x04\xb9\x03\x02\x08\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xb9\x03\t\x15\n\ - \r\n\x05\x04\x0e\x02\0\x03\x12\x04\xb9\x03\x18\x19\n\r\n\x05\x04\x0e\x02\ - \0\x08\x12\x04\xb9\x03\x1aB\n\x10\n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\ - \x04\xb9\x03\x1bA\n2\n\x04\x04\x0e\x02\x01\x12\x04\xbc\x03\x02\x18\x1a$\ - \x20The\x20token\x20of\x20the\x20page\x20to\x20retrieve.\n\n\x0f\n\x05\ - \x04\x0e\x02\x01\x04\x12\x06\xbc\x03\x02\xb9\x03C\n\r\n\x05\x04\x0e\x02\ - \x01\x05\x12\x04\xbc\x03\x02\x08\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\ - \xbc\x03\t\x13\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xbc\x03\x16\x17\n\ - \x81\x01\n\x04\x04\x0e\x02\x02\x12\x04\xc0\x03\x02\x16\x1as\x20The\x20ma\ - x\x20number\x20of\x20items\x20to\x20include\x20in\x20the\x20response\x20\ - list.\x20Page\x20size\x20is\x2050\n\x20if\x20not\x20specified.\x20Maximu\ - m\x20value\x20is\x20100.\n\n\x0f\n\x05\x04\x0e\x02\x02\x04\x12\x06\xc0\ - \x03\x02\xbc\x03\x18\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xc0\x03\x02\ - \x07\n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xc0\x03\x08\x11\n\r\n\x05\x04\ - \x0e\x02\x02\x03\x12\x04\xc0\x03\x14\x15\n\xb5\x03\n\x04\x04\x0e\x02\x03\ - \x12\x04\xca\x03\x02=\x1a\xa6\x03\x20Required.\x20Use\x20`filter`\x20to\ - \x20return\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.a\ - pi.servicemanagement.v1.RolloutStatus)\x20'SUCCESS',\n\x20\x20\x20\x20\ - \x20\x20use\x20filter='status=SUCCESS'\n\x20\x20\x20--\x20To\x20limit\ - \x20the\x20results\x20to\x20those\x20in\n\x20\x20\x20\x20\x20\x20[status\ - ](google.api.servicemanagement.v1.RolloutStatus)\x20'CANCELLED'\n\x20\ - \x20\x20\x20\x20\x20or\x20'FAILED',\x20use\x20filter='status=CANCELLED\ - \x20OR\x20status=FAILED'\n\n\x0f\n\x05\x04\x0e\x02\x03\x04\x12\x06\xca\ - \x03\x02\xc0\x03\x16\n\r\n\x05\x04\x0e\x02\x03\x05\x12\x04\xca\x03\x02\ - \x08\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\xca\x03\t\x0f\n\r\n\x05\x04\ - \x0e\x02\x03\x03\x12\x04\xca\x03\x12\x13\n\r\n\x05\x04\x0e\x02\x03\x08\ - \x12\x04\xca\x03\x14<\n\x10\n\x08\x04\x0e\x02\x03\x08\x9c\x08\0\x12\x04\ - \xca\x03\x15;\n@\n\x02\x04\x0f\x12\x06\xce\x03\0\xd4\x03\x01\x1a2\x20Res\ - ponse\x20message\x20for\x20ListServiceRollouts\x20method.\n\n\x0b\n\x03\ - \x04\x0f\x01\x12\x04\xce\x03\x08#\n.\n\x04\x04\x0f\x02\0\x12\x04\xd0\x03\ - \x02\x20\x1a\x20\x20The\x20list\x20of\x20rollout\x20resources.\n\n\r\n\ - \x05\x04\x0f\x02\0\x04\x12\x04\xd0\x03\x02\n\n\r\n\x05\x04\x0f\x02\0\x06\ - \x12\x04\xd0\x03\x0b\x12\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xd0\x03\x13\ - \x1b\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xd0\x03\x1e\x1f\n6\n\x04\x04\ - \x0f\x02\x01\x12\x04\xd3\x03\x02\x1d\x1a(\x20The\x20token\x20of\x20the\ - \x20next\x20page\x20of\x20results.\n\n\x0f\n\x05\x04\x0f\x02\x01\x04\x12\ - \x06\xd3\x03\x02\xd0\x03\x20\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\xd3\ - \x03\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\xd3\x03\t\x18\n\r\n\ - \x05\x04\x0f\x02\x01\x03\x12\x04\xd3\x03\x1b\x1c\n=\n\x02\x04\x10\x12\ - \x06\xd7\x03\0\xde\x03\x01\x1a/\x20Request\x20message\x20for\x20GetServi\ - ceRollout\x20method.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xd7\x03\x08\x20\n\ - \xa7\x01\n\x04\x04\x10\x02\0\x12\x04\xda\x03\x02C\x1a\x98\x01\x20Require\ - d.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20[overvie\ - w](/service-management/overview)\n\x20for\x20naming\x20requirements.\x20\ - \x20For\x20example:\x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\x10\ - \x02\0\x04\x12\x06\xda\x03\x02\xd7\x03\"\n\r\n\x05\x04\x10\x02\0\x05\x12\ - \x04\xda\x03\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xda\x03\t\x15\n\ - \r\n\x05\x04\x10\x02\0\x03\x12\x04\xda\x03\x18\x19\n\r\n\x05\x04\x10\x02\ - \0\x08\x12\x04\xda\x03\x1aB\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\ - \x04\xda\x03\x1bA\n9\n\x04\x04\x10\x02\x01\x12\x04\xdd\x03\x02A\x1a+\x20\ - Required.\x20The\x20id\x20of\x20the\x20rollout\x20resource.\n\n\x0f\n\ - \x05\x04\x10\x02\x01\x04\x12\x06\xdd\x03\x02\xda\x03C\n\r\n\x05\x04\x10\ - \x02\x01\x05\x12\x04\xdd\x03\x02\x08\n\r\n\x05\x04\x10\x02\x01\x01\x12\ - \x04\xdd\x03\t\x13\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xdd\x03\x16\x17\ - \n\r\n\x05\x04\x10\x02\x01\x08\x12\x04\xdd\x03\x18@\n\x10\n\x08\x04\x10\ - \x02\x01\x08\x9c\x08\0\x12\x04\xdd\x03\x19?\n9\n\x02\x04\x11\x12\x06\xe1\ - \x03\0\xf0\x03\x01\x1a+\x20Request\x20message\x20for\x20EnableService\ - \x20method.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xe1\x03\x08\x1c\n|\n\x04\ - \x04\x11\x02\0\x12\x04\xe4\x03\x02C\x1an\x20Required.\x20Name\x20of\x20t\ - he\x20service\x20to\x20enable.\x20Specifying\x20an\x20unknown\x20service\ - \x20name\x20will\n\x20cause\x20the\x20request\x20to\x20fail.\n\n\x0f\n\ - \x05\x04\x11\x02\0\x04\x12\x06\xe4\x03\x02\xe1\x03\x1e\n\r\n\x05\x04\x11\ - \x02\0\x05\x12\x04\xe4\x03\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\ - \xe4\x03\t\x15\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xe4\x03\x18\x19\n\r\n\ - \x05\x04\x11\x02\0\x08\x12\x04\xe4\x03\x1aB\n\x10\n\x08\x04\x11\x02\0\ - \x08\x9c\x08\0\x12\x04\xe4\x03\x1bA\n\xab\x02\n\x04\x04\x11\x02\x01\x12\ - \x04\xef\x03\x02B\x1a\x9c\x02\x20Required.\x20The\x20identity\x20of\x20c\ - onsumer\x20resource\x20which\x20service\x20enablement\x20will\x20be\n\ - \x20applied\x20to.\n\n\x20The\x20Google\x20Service\x20Management\x20impl\ - ementation\x20accepts\x20the\x20following\n\x20forms:\n\x20-\x20\"projec\ - t:\"\n\n\x20Note:\x20this\x20is\x20made\x20compatible\x20wit\ - h\n\x20google.api.servicecontrol.v1.Operation.consumer_id.\n\n\x0f\n\x05\ - \x04\x11\x02\x01\x04\x12\x06\xef\x03\x02\xe4\x03C\n\r\n\x05\x04\x11\x02\ - \x01\x05\x12\x04\xef\x03\x02\x08\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\ - \xef\x03\t\x14\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xef\x03\x17\x18\n\r\ - \n\x05\x04\x11\x02\x01\x08\x12\x04\xef\x03\x19A\n\x10\n\x08\x04\x11\x02\ - \x01\x08\x9c\x08\0\x12\x04\xef\x03\x1a@\n;\n\x02\x04\x12\x12\x06\xf3\x03\ - \0\xf5\x03\x01\x1a-\x20Operation\x20payload\x20for\x20EnableService\x20m\ - ethod.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xf3\x03\x08\x1d\n:\n\x02\x04\ - \x13\x12\x06\xf8\x03\0\x87\x04\x01\x1a,\x20Request\x20message\x20for\x20\ - DisableService\x20method.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xf8\x03\x08\ - \x1d\n}\n\x04\x04\x13\x02\0\x12\x04\xfb\x03\x02C\x1ao\x20Required.\x20Na\ - me\x20of\x20the\x20service\x20to\x20disable.\x20Specifying\x20an\x20unkn\ - own\x20service\x20name\n\x20will\x20cause\x20the\x20request\x20to\x20fai\ - l.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xfb\x03\x02\xf8\x03\x1f\n\r\n\ - \x05\x04\x13\x02\0\x05\x12\x04\xfb\x03\x02\x08\n\r\n\x05\x04\x13\x02\0\ - \x01\x12\x04\xfb\x03\t\x15\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xfb\x03\ - \x18\x19\n\r\n\x05\x04\x13\x02\0\x08\x12\x04\xfb\x03\x1aB\n\x10\n\x08\ - \x04\x13\x02\0\x08\x9c\x08\0\x12\x04\xfb\x03\x1bA\n\xac\x02\n\x04\x04\ - \x13\x02\x01\x12\x04\x86\x04\x02B\x1a\x9d\x02\x20Required.\x20The\x20ide\ - ntity\x20of\x20consumer\x20resource\x20which\x20service\x20disablement\ - \x20will\x20be\n\x20applied\x20to.\n\n\x20The\x20Google\x20Service\x20Ma\ - nagement\x20implementation\x20accepts\x20the\x20following\n\x20forms:\n\ - \x20-\x20\"project:\"\n\n\x20Note:\x20this\x20is\x20made\x20\ - compatible\x20with\n\x20google.api.servicecontrol.v1.Operation.consumer_\ - id.\n\n\x0f\n\x05\x04\x13\x02\x01\x04\x12\x06\x86\x04\x02\xfb\x03C\n\r\n\ - \x05\x04\x13\x02\x01\x05\x12\x04\x86\x04\x02\x08\n\r\n\x05\x04\x13\x02\ - \x01\x01\x12\x04\x86\x04\t\x14\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\x86\ - \x04\x17\x18\n\r\n\x05\x04\x13\x02\x01\x08\x12\x04\x86\x04\x19A\n\x10\n\ - \x08\x04\x13\x02\x01\x08\x9c\x08\0\x12\x04\x86\x04\x1a@\n<\n\x02\x04\x14\ - \x12\x06\x8a\x04\0\x8c\x04\x01\x1a.\x20Operation\x20payload\x20for\x20Di\ - sableService\x20method.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\x8a\x04\x08\ - \x1e\n@\n\x02\x04\x15\x12\x06\x8f\x04\0\x9d\x04\x01\x1a2\x20Request\x20m\ - essage\x20for\x20GenerateConfigReport\x20method.\n\n\x0b\n\x03\x04\x15\ - \x01\x12\x04\x8f\x04\x08#\n\xf2\x02\n\x04\x04\x15\x02\0\x12\x04\x95\x04\ - \x02N\x1a\xe3\x02\x20Required.\x20Service\x20configuration\x20for\x20whi\ - ch\x20we\x20want\x20to\x20generate\x20the\x20report.\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\x0f\n\x05\x04\x15\x02\0\x04\x12\x06\x95\x04\x02\ - \x8f\x04%\n\r\n\x05\x04\x15\x02\0\x06\x12\x04\x95\x04\x02\x15\n\r\n\x05\ - \x04\x15\x02\0\x01\x12\x04\x95\x04\x16\x20\n\r\n\x05\x04\x15\x02\0\x03\ - \x12\x04\x95\x04#$\n\r\n\x05\x04\x15\x02\0\x08\x12\x04\x95\x04%M\n\x10\n\ - \x08\x04\x15\x02\0\x08\x9c\x08\0\x12\x04\x95\x04&L\n\xf3\x02\n\x04\x04\ - \x15\x02\x01\x12\x04\x9c\x04\x02N\x1a\xe4\x02\x20Optional.\x20Service\ - \x20configuration\x20against\x20which\x20the\x20comparison\x20will\x20be\ - \x20done.\n\x20For\x20this\x20version\x20of\x20API,\x20the\x20supported\ - \x20types\x20are\n\x20[google.api.servicemanagement.v1.ConfigRef][google\ - .api.servicemanagement.v1.ConfigRef],\n\x20[google.api.servicemanagement\ - .v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource],\n\x20an\ - d\x20[google.api.Service][google.api.Service]\n\n\x0f\n\x05\x04\x15\x02\ - \x01\x04\x12\x06\x9c\x04\x02\x95\x04N\n\r\n\x05\x04\x15\x02\x01\x06\x12\ - \x04\x9c\x04\x02\x15\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\x9c\x04\x16\ - \x20\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\x9c\x04#$\n\r\n\x05\x04\x15\ - \x02\x01\x08\x12\x04\x9c\x04%M\n\x10\n\x08\x04\x15\x02\x01\x08\x9c\x08\0\ - \x12\x04\x9c\x04&L\nA\n\x02\x04\x16\x12\x06\xa0\x04\0\xaf\x04\x01\x1a3\ - \x20Response\x20message\x20for\x20GenerateConfigReport\x20method.\n\n\ - \x0b\n\x03\x04\x16\x01\x12\x04\xa0\x04\x08$\n;\n\x04\x04\x16\x02\0\x12\ - \x04\xa2\x04\x02\x1a\x1a-\x20Name\x20of\x20the\x20service\x20this\x20rep\ - ort\x20belongs\x20to.\n\n\x0f\n\x05\x04\x16\x02\0\x04\x12\x06\xa2\x04\ - \x02\xa0\x04&\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\xa2\x04\x02\x08\n\r\n\ - \x05\x04\x16\x02\0\x01\x12\x04\xa2\x04\t\x15\n\r\n\x05\x04\x16\x02\0\x03\ - \x12\x04\xa2\x04\x18\x19\nG\n\x04\x04\x16\x02\x01\x12\x04\xa5\x04\x02\ - \x10\x1a9\x20ID\x20of\x20the\x20service\x20configuration\x20this\x20repo\ - rt\x20belongs\x20to.\n\n\x0f\n\x05\x04\x16\x02\x01\x04\x12\x06\xa5\x04\ - \x02\xa2\x04\x1a\n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\xa5\x04\x02\x08\n\ - \r\n\x05\x04\x16\x02\x01\x01\x12\x04\xa5\x04\t\x0b\n\r\n\x05\x04\x16\x02\ - \x01\x03\x12\x04\xa5\x04\x0e\x0f\nk\n\x04\x04\x16\x02\x02\x12\x04\xa9\ - \x04\x02+\x1a]\x20list\x20of\x20ChangeReport,\x20each\x20corresponding\ - \x20to\x20comparison\x20between\x20two\n\x20service\x20configurations.\n\ - \n\r\n\x05\x04\x16\x02\x02\x04\x12\x04\xa9\x04\x02\n\n\r\n\x05\x04\x16\ - \x02\x02\x06\x12\x04\xa9\x04\x0b\x17\n\r\n\x05\x04\x16\x02\x02\x01\x12\ - \x04\xa9\x04\x18&\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\xa9\x04)*\ni\n\ - \x04\x04\x16\x02\x03\x12\x04\xae\x04\x02&\x1a[\x20Errors\x20/\x20Linter\ - \x20warnings\x20associated\x20with\x20the\x20service\x20definition\x20th\ - is\n\x20report\n\x20belongs\x20to.\n\n\r\n\x05\x04\x16\x02\x03\x04\x12\ - \x04\xae\x04\x02\n\n\r\n\x05\x04\x16\x02\x03\x06\x12\x04\xae\x04\x0b\x15\ - \n\r\n\x05\x04\x16\x02\x03\x01\x12\x04\xae\x04\x16!\n\r\n\x05\x04\x16\ - \x02\x03\x03\x12\x04\xae\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs deleted file mode 100644 index dc00893b4c..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager_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_SERVICE_MANAGER_LIST_SERVICES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/ListServices", - 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_GET_SERVICE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/GetService", - 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_CREATE_SERVICE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/CreateService", - 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_DELETE_SERVICE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/DeleteService", - 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_UNDELETE_SERVICE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/UndeleteService", - 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_LIST_SERVICE_CONFIGS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/ListServiceConfigs", - 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_GET_SERVICE_CONFIG: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/GetServiceConfig", - 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_CREATE_SERVICE_CONFIG: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/CreateServiceConfig", - 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_SUBMIT_CONFIG_SOURCE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/SubmitConfigSource", - 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_LIST_SERVICE_ROLLOUTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/ListServiceRollouts", - 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_GET_SERVICE_ROLLOUT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/GetServiceRollout", - 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_CREATE_SERVICE_ROLLOUT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/CreateServiceRollout", - 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_GENERATE_CONFIG_REPORT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.api.servicemanagement.v1.ServiceManager/GenerateConfigReport", - 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_ENABLE_SERVICE: ::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 { - client: ::grpcio::Client, -} - -impl ServiceManagerClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - ServiceManagerClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn list_services_opt(&self, req: &super::servicemanager::ListServicesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_LIST_SERVICES, req, opt) - } - - pub fn list_services(&self, req: &super::servicemanager::ListServicesRequest) -> ::grpcio::Result { - self.list_services_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_services_async_opt(&self, req: &super::servicemanager::ListServicesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_LIST_SERVICES, req, opt) - } - - pub fn list_services_async(&self, req: &super::servicemanager::ListServicesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_services_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_opt(&self, req: &super::servicemanager::GetServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_GET_SERVICE, req, opt) - } - - pub fn get_service(&self, req: &super::servicemanager::GetServiceRequest) -> ::grpcio::Result { - self.get_service_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_async_opt(&self, req: &super::servicemanager::GetServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_GET_SERVICE, req, opt) - } - - pub fn get_service_async(&self, req: &super::servicemanager::GetServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_service_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_service_opt(&self, req: &super::servicemanager::CreateServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_CREATE_SERVICE, req, opt) - } - - pub fn create_service(&self, req: &super::servicemanager::CreateServiceRequest) -> ::grpcio::Result { - self.create_service_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_service_async_opt(&self, req: &super::servicemanager::CreateServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_CREATE_SERVICE, req, opt) - } - - pub fn create_service_async(&self, req: &super::servicemanager::CreateServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_service_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_service_opt(&self, req: &super::servicemanager::DeleteServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_DELETE_SERVICE, req, opt) - } - - pub fn delete_service(&self, req: &super::servicemanager::DeleteServiceRequest) -> ::grpcio::Result { - self.delete_service_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_service_async_opt(&self, req: &super::servicemanager::DeleteServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_DELETE_SERVICE, req, opt) - } - - pub fn delete_service_async(&self, req: &super::servicemanager::DeleteServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_service_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn undelete_service_opt(&self, req: &super::servicemanager::UndeleteServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_UNDELETE_SERVICE, req, opt) - } - - pub fn undelete_service(&self, req: &super::servicemanager::UndeleteServiceRequest) -> ::grpcio::Result { - self.undelete_service_opt(req, ::grpcio::CallOption::default()) - } - - pub fn undelete_service_async_opt(&self, req: &super::servicemanager::UndeleteServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_UNDELETE_SERVICE, req, opt) - } - - pub fn undelete_service_async(&self, req: &super::servicemanager::UndeleteServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.undelete_service_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_service_configs_opt(&self, req: &super::servicemanager::ListServiceConfigsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_LIST_SERVICE_CONFIGS, req, opt) - } - - pub fn list_service_configs(&self, req: &super::servicemanager::ListServiceConfigsRequest) -> ::grpcio::Result { - self.list_service_configs_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_service_configs_async_opt(&self, req: &super::servicemanager::ListServiceConfigsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_LIST_SERVICE_CONFIGS, req, opt) - } - - pub fn list_service_configs_async(&self, req: &super::servicemanager::ListServiceConfigsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_service_configs_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_config_opt(&self, req: &super::servicemanager::GetServiceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_GET_SERVICE_CONFIG, req, opt) - } - - pub fn get_service_config(&self, req: &super::servicemanager::GetServiceConfigRequest) -> ::grpcio::Result { - self.get_service_config_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_config_async_opt(&self, req: &super::servicemanager::GetServiceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_GET_SERVICE_CONFIG, req, opt) - } - - pub fn get_service_config_async(&self, req: &super::servicemanager::GetServiceConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_service_config_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_service_config_opt(&self, req: &super::servicemanager::CreateServiceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_CONFIG, req, opt) - } - - pub fn create_service_config(&self, req: &super::servicemanager::CreateServiceConfigRequest) -> ::grpcio::Result { - self.create_service_config_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_service_config_async_opt(&self, req: &super::servicemanager::CreateServiceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_CONFIG, req, opt) - } - - pub fn create_service_config_async(&self, req: &super::servicemanager::CreateServiceConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_service_config_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn submit_config_source_opt(&self, req: &super::servicemanager::SubmitConfigSourceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_SUBMIT_CONFIG_SOURCE, req, opt) - } - - pub fn submit_config_source(&self, req: &super::servicemanager::SubmitConfigSourceRequest) -> ::grpcio::Result { - self.submit_config_source_opt(req, ::grpcio::CallOption::default()) - } - - pub fn submit_config_source_async_opt(&self, req: &super::servicemanager::SubmitConfigSourceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_SUBMIT_CONFIG_SOURCE, req, opt) - } - - pub fn submit_config_source_async(&self, req: &super::servicemanager::SubmitConfigSourceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.submit_config_source_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_service_rollouts_opt(&self, req: &super::servicemanager::ListServiceRolloutsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_LIST_SERVICE_ROLLOUTS, req, opt) - } - - pub fn list_service_rollouts(&self, req: &super::servicemanager::ListServiceRolloutsRequest) -> ::grpcio::Result { - self.list_service_rollouts_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_service_rollouts_async_opt(&self, req: &super::servicemanager::ListServiceRolloutsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_LIST_SERVICE_ROLLOUTS, req, opt) - } - - pub fn list_service_rollouts_async(&self, req: &super::servicemanager::ListServiceRolloutsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_service_rollouts_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_rollout_opt(&self, req: &super::servicemanager::GetServiceRolloutRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_GET_SERVICE_ROLLOUT, req, opt) - } - - pub fn get_service_rollout(&self, req: &super::servicemanager::GetServiceRolloutRequest) -> ::grpcio::Result { - self.get_service_rollout_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_rollout_async_opt(&self, req: &super::servicemanager::GetServiceRolloutRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_GET_SERVICE_ROLLOUT, req, opt) - } - - pub fn get_service_rollout_async(&self, req: &super::servicemanager::GetServiceRolloutRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_service_rollout_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_service_rollout_opt(&self, req: &super::servicemanager::CreateServiceRolloutRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_ROLLOUT, req, opt) - } - - pub fn create_service_rollout(&self, req: &super::servicemanager::CreateServiceRolloutRequest) -> ::grpcio::Result { - self.create_service_rollout_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_service_rollout_async_opt(&self, req: &super::servicemanager::CreateServiceRolloutRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_ROLLOUT, req, opt) - } - - pub fn create_service_rollout_async(&self, req: &super::servicemanager::CreateServiceRolloutRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_service_rollout_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn generate_config_report_opt(&self, req: &super::servicemanager::GenerateConfigReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SERVICE_MANAGER_GENERATE_CONFIG_REPORT, req, opt) - } - - pub fn generate_config_report(&self, req: &super::servicemanager::GenerateConfigReportRequest) -> ::grpcio::Result { - self.generate_config_report_opt(req, ::grpcio::CallOption::default()) - } - - pub fn generate_config_report_async_opt(&self, req: &super::servicemanager::GenerateConfigReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SERVICE_MANAGER_GENERATE_CONFIG_REPORT, req, opt) - } - - 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: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait ServiceManager { - fn list_services(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::ListServicesRequest, sink: ::grpcio::UnarySink); - fn get_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::GetServiceRequest, sink: ::grpcio::UnarySink); - fn create_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::CreateServiceRequest, sink: ::grpcio::UnarySink); - fn delete_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::DeleteServiceRequest, sink: ::grpcio::UnarySink); - fn undelete_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::UndeleteServiceRequest, sink: ::grpcio::UnarySink); - fn list_service_configs(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::ListServiceConfigsRequest, sink: ::grpcio::UnarySink); - fn get_service_config(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::GetServiceConfigRequest, sink: ::grpcio::UnarySink); - fn create_service_config(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::CreateServiceConfigRequest, sink: ::grpcio::UnarySink); - fn submit_config_source(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::SubmitConfigSourceRequest, sink: ::grpcio::UnarySink); - fn list_service_rollouts(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::ListServiceRolloutsRequest, sink: ::grpcio::UnarySink); - fn get_service_rollout(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::GetServiceRolloutRequest, sink: ::grpcio::UnarySink); - fn create_service_rollout(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::CreateServiceRolloutRequest, sink: ::grpcio::UnarySink); - fn generate_config_report(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::GenerateConfigReportRequest, sink: ::grpcio::UnarySink); - fn enable_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::EnableServiceRequest, sink: ::grpcio::UnarySink); - fn disable_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::DisableServiceRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_service_manager(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_LIST_SERVICES, move |ctx, req, resp| { - instance.list_services(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_GET_SERVICE, move |ctx, req, resp| { - instance.get_service(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_CREATE_SERVICE, move |ctx, req, resp| { - instance.create_service(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_DELETE_SERVICE, move |ctx, req, resp| { - instance.delete_service(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_UNDELETE_SERVICE, move |ctx, req, resp| { - instance.undelete_service(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_LIST_SERVICE_CONFIGS, move |ctx, req, resp| { - instance.list_service_configs(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_GET_SERVICE_CONFIG, move |ctx, req, resp| { - instance.get_service_config(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_CONFIG, move |ctx, req, resp| { - instance.create_service_config(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_SUBMIT_CONFIG_SOURCE, move |ctx, req, resp| { - instance.submit_config_source(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_LIST_SERVICE_ROLLOUTS, move |ctx, req, resp| { - instance.list_service_rollouts(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_GET_SERVICE_ROLLOUT, move |ctx, req, resp| { - instance.get_service_rollout(ctx, req, resp) - }); - let mut instance = s.clone(); - 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.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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/source_info.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/source_info.rs deleted file mode 100644 index 399e94cfee..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/source_info.rs +++ /dev/null @@ -1,235 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/source_info.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct SourceInfo { - // message fields - pub source_files: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SourceInfo { - fn default() -> &'a SourceInfo { - ::default_instance() - } -} - -impl SourceInfo { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.source_files { - 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.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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static SourceInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SourceInfo::new) - } -} - -impl ::protobuf::Clear for SourceInfo { - fn clear(&mut self) { - self.source_files.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1cgoogle/api/source_info.proto\x12\ngoogle.api\x1a\x19google/protobu\ - 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\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\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\ - \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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/system_parameter.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/system_parameter.rs deleted file mode 100644 index 4ff9af7e7b..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/system_parameter.rs +++ /dev/null @@ -1,756 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/system_parameter.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct SystemParameters { - // 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 SystemParameters { - fn default() -> &'a SystemParameters { - ::default_instance() - } -} - -impl SystemParameters { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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() -> 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 default_instance() -> &'static SystemParameters { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SystemParameters::new) - } -} - -impl ::protobuf::Clear for SystemParameters { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SystemParameterRule { - // message fields - pub selector: ::std::string::String, - pub parameters: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SystemParameterRule { - fn default() -> &'a SystemParameterRule { - ::default_instance() - } -} - -impl SystemParameterRule { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.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; - 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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static SystemParameterRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SystemParameterRule::new) - } -} - -impl ::protobuf::Clear for SystemParameterRule { - fn clear(&mut self) { - self.selector.clear(); - self.parameters.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SystemParameter { - // message fields - pub name: ::std::string::String, - pub http_header: ::std::string::String, - pub url_query_parameter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SystemParameter { - fn default() -> &'a SystemParameter { - ::default_instance() - } -} - -impl SystemParameter { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.http_header)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url_query_parameter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.http_header.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.http_header); - } - 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 - } - - 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.http_header.is_empty() { - os.write_string(2, &self.http_header)?; - } - if !self.url_query_parameter.is_empty() { - os.write_string(3, &self.url_query_parameter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static SystemParameter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SystemParameter::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n!google/api/system_parameter.proto\x12\ngoogle.api\"I\n\x10SystemParam\ - eters\x125\n\x05rules\x18\x01\x20\x03(\x0b2\x1f.google.api.SystemParamet\ - erRuleR\x05rules\"n\n\x13SystemParameterRule\x12\x1a\n\x08selector\x18\ - \x01\x20\x01(\tR\x08selector\x12;\n\nparameters\x18\x02\x20\x03(\x0b2\ - \x1b.google.api.SystemParameterR\nparameters\"v\n\x0fSystemParameter\x12\ - \x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1f\n\x0bhttp_header\x18\ - \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\xfc\x19\n\x06\x12\x04\x0e\0^\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\ - \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\ - \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\ - rvice\n\x20config,\x20default\x20system\x20parameters\x20will\x20be\x20u\ - sed.\x20Default\x20system\x20parameters\n\x20and\x20names\x20is\x20imple\ - mentation-dependent.\n\n\x20Example:\x20define\x20api\x20key\x20for\x20a\ - ll\x20methods\n\n\x20\x20\x20\x20\x20system_parameters\n\x20\x20\x20\x20\ - \x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20selector:\ - \x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parameters:\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20name:\x20api_key\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url_query_pa\ - rameter:\x20api_key\n\n\n\x20Example:\x20define\x202\x20api\x20key\x20na\ - mes\x20for\x20a\x20specific\x20method.\n\n\x20\x20\x20\x20\x20system_par\ - ameters\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20-\x20selector:\x20\"/ListShelves\"\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20parameters:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20-\x20name:\x20api_key\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20http_header:\x20Api-Key1\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20name:\x20api_key\n\x20\x20\x20\ - \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\0N\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\xbe\x01\n\x04\x04\x01\ - \x02\0\x12\x03F\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\x20details.\ - \n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04F\x02A\x1d\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\x11\n\ - \x0c\n\x05\x04\x01\x02\0\x03\x12\x03F\x14\x15\n\xa4\x02\n\x04\x04\x01\ - \x02\x01\x12\x03M\x02*\x1a\x96\x02\x20Define\x20parameters.\x20Multiple\ - \x20names\x20may\x20be\x20defined\x20for\x20a\x20parameter.\n\x20For\x20\ - a\x20given\x20method\x20call,\x20only\x20one\x20of\x20them\x20should\x20\ - be\x20used.\x20If\x20multiple\n\x20names\x20are\x20used\x20the\x20behavi\ - or\x20is\x20implementation-dependent.\n\x20If\x20none\x20of\x20the\x20sp\ - ecified\x20names\x20are\x20present\x20the\x20behavior\x20is\n\x20paramet\ - er-dependent.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03M\x02\n\n\x0c\n\ - \x05\x04\x01\x02\x01\x06\x12\x03M\x0b\x1a\n\x0c\n\x05\x04\x01\x02\x01\ - \x01\x12\x03M\x1b%\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M()\n\xc8\x01\ - \n\x02\x04\x02\x12\x04S\0^\x01\x1a\xbb\x01\x20Define\x20a\x20parameter's\ - \x20name\x20and\x20location.\x20The\x20parameter\x20may\x20be\x20passed\ - \x20as\x20either\n\x20an\x20HTTP\x20header\x20or\x20a\x20URL\x20query\ - \x20parameter,\x20and\x20if\x20both\x20are\x20passed\x20the\x20behavior\ - \n\x20is\x20implementation-dependent.\n\n\n\n\x03\x04\x02\x01\x12\x03S\ - \x08\x17\nZ\n\x04\x04\x02\x02\0\x12\x03U\x02\x12\x1aM\x20Define\x20the\ - \x20name\x20of\x20the\x20parameter,\x20such\x20as\x20\"api_key\"\x20.\ - \x20It\x20is\x20case\x20sensitive.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04\ - U\x02S\x19\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\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03U\ - \x10\x11\n]\n\x04\x04\x02\x02\x01\x12\x03Y\x02\x19\x1aP\x20Define\x20the\ - \x20HTTP\x20header\x20name\x20to\x20use\x20for\x20the\x20parameter.\x20I\ - t\x20is\x20case\n\x20insensitive.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\ - \x04Y\x02U\x12\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03Y\x02\x08\n\x0c\n\ - \x05\x04\x02\x02\x01\x01\x12\x03Y\t\x14\n\x0c\n\x05\x04\x02\x02\x01\x03\ - \x12\x03Y\x17\x18\nc\n\x04\x04\x02\x02\x02\x12\x03]\x02!\x1aV\x20Define\ - \x20the\x20URL\x20query\x20parameter\x20name\x20to\x20use\x20for\x20the\ - \x20parameter.\x20It\x20is\x20case\n\x20sensitive.\n\n\r\n\x05\x04\x02\ - \x02\x02\x04\x12\x04]\x02Y\x19\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\x1c\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/usage.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/usage.rs deleted file mode 100644 index ab277b8eee..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/usage.rs +++ /dev/null @@ -1,619 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/usage.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Usage { - // message fields - pub requirements: ::protobuf::RepeatedField<::std::string::String>, - pub rules: ::protobuf::RepeatedField, - pub producer_notification_channel: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Usage { - fn default() -> &'a Usage { - ::default_instance() - } -} - -impl Usage { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_notification_channel)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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; - }; - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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)?; - }; - if !self.producer_notification_channel.is_empty() { - os.write_string(7, &self.producer_notification_channel)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Usage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Usage::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UsageRule { - // message fields - pub selector: ::std::string::String, - pub allow_unregistered_calls: bool, - pub skip_service_control: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UsageRule { - fn default() -> &'a UsageRule { - ::default_instance() - } -} - -impl UsageRule { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.allow_unregistered_calls != false { - my_size += 2; - } - if self.skip_service_control != 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.selector.is_empty() { - os.write_string(1, &self.selector)?; - } - if self.allow_unregistered_calls != false { - os.write_bool(2, self.allow_unregistered_calls)?; - } - if self.skip_service_control != false { - os.write_bool(3, self.skip_service_control)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static UsageRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UsageRule::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x16google/api/usage.proto\x12\ngoogle.api\"\x9c\x01\n\x05Usage\x12\"\ - \n\x0crequirements\x18\x01\x20\x03(\tR\x0crequirements\x12+\n\x05rules\ - \x18\x06\x20\x03(\x0b2\x15.google.api.UsageRuleR\x05rules\x12B\n\x1dprod\ - ucer_notification_channel\x18\x07\x20\x01(\tR\x1bproducerNotificationCha\ - nnel\"\x93\x01\n\tUsageRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\ - \x08selector\x128\n\x18allow_unregistered_calls\x18\x02\x20\x01(\x08R\ - \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\xdb\x1c\n\x06\x12\x04\x0e\0^\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\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\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\r\n\x05\x04\0\x02\x02\x04\x12\ - \x042\x02(\x1f\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\x03\ - 2)*\n\xc0\x06\n\x02\x04\x01\x12\x04N\0^\x01\x1a\xb3\x06\x20Usage\x20conf\ - iguration\x20rules\x20for\x20the\x20service.\n\n\x20NOTE:\x20Under\x20de\ - velopment.\n\n\n\x20Use\x20this\x20rule\x20to\x20configure\x20unregister\ - ed\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\x03N\x08\x11\n\xbe\x01\n\x04\x04\x01\x02\0\ - \x12\x03S\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\r\n\ - \x05\x04\x01\x02\0\x04\x12\x04S\x02N\x13\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\x7f\n\x04\x04\x01\x02\x01\x12\ - \x03W\x02$\x1ar\x20If\x20true,\x20the\x20selected\x20method\x20allows\ - \x20unregistered\x20calls,\x20e.g.\x20calls\n\x20that\x20don't\x20identi\ - fy\x20any\x20user\x20or\x20application.\n\n\r\n\x05\x04\x01\x02\x01\x04\ - \x12\x04W\x02S\x16\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03W\x02\x06\n\ - \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03W\x07\x1f\n\x0c\n\x05\x04\x01\x02\ - \x01\x03\x12\x03W\"#\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\r\n\x05\x04\x01\x02\ - \x02\x04\x12\x04]\x02W$\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_data.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_data.rs deleted file mode 100644 index 9d341c4f05..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_data.rs +++ /dev/null @@ -1,817 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/cluster/v1/bigtable_cluster_data.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Zone { - // message fields - pub name: ::std::string::String, - pub display_name: ::std::string::String, - pub status: Zone_Status, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Zone { - fn default() -> &'a Zone { - ::default_instance() - } -} - -impl Zone { - pub fn new() -> Zone { - ::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.cluster.v1.Zone.Status status = 3; - - - pub fn get_status(&self) -> Zone_Status { - self.status - } - pub fn clear_status(&mut self) { - self.status = Zone_Status::UNKNOWN; - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: Zone_Status) { - self.status = v; - } -} - -impl ::protobuf::Message for Zone { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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.status, 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.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.status != Zone_Status::UNKNOWN { - my_size += ::protobuf::rt::enum_size(3, self.status); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.status != Zone_Status::UNKNOWN { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.status))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Zone { - Zone::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &Zone| { &m.name }, - |m: &mut Zone| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &Zone| { &m.display_name }, - |m: &mut Zone| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "status", - |m: &Zone| { &m.status }, - |m: &mut Zone| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Zone", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Zone { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Zone::new) - } -} - -impl ::protobuf::Clear for Zone { - fn clear(&mut self) { - self.name.clear(); - self.display_name.clear(); - self.status = Zone_Status::UNKNOWN; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Zone { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Zone { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Zone_Status { - UNKNOWN = 0, - OK = 1, - PLANNED_MAINTENANCE = 2, - EMERGENCY_MAINENANCE = 3, -} - -impl ::protobuf::ProtobufEnum for Zone_Status { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Zone_Status::UNKNOWN), - 1 => ::std::option::Option::Some(Zone_Status::OK), - 2 => ::std::option::Option::Some(Zone_Status::PLANNED_MAINTENANCE), - 3 => ::std::option::Option::Some(Zone_Status::EMERGENCY_MAINENANCE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Zone_Status] = &[ - Zone_Status::UNKNOWN, - Zone_Status::OK, - Zone_Status::PLANNED_MAINTENANCE, - Zone_Status::EMERGENCY_MAINENANCE, - ]; - 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::("Zone.Status", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Zone_Status { -} - -impl ::std::default::Default for Zone_Status { - fn default() -> Self { - Zone_Status::UNKNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for Zone_Status { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Cluster { - // message fields - pub name: ::std::string::String, - pub current_operation: ::protobuf::SingularPtrField, - pub display_name: ::std::string::String, - pub serve_nodes: i32, - pub default_storage_type: StorageType, - // 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() - } -} - -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()) - } - - // .google.longrunning.Operation current_operation = 3; - - - pub fn get_current_operation(&self) -> &super::operations::Operation { - self.current_operation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_current_operation(&mut self) { - self.current_operation.clear(); - } - - pub fn has_current_operation(&self) -> bool { - self.current_operation.is_some() - } - - // Param is passed by value, moved - pub fn set_current_operation(&mut self, v: super::operations::Operation) { - self.current_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_current_operation(&mut self) -> &mut super::operations::Operation { - if self.current_operation.is_none() { - self.current_operation.set_default(); - } - self.current_operation.as_mut().unwrap() - } - - // Take field - pub fn take_current_operation(&mut self) -> super::operations::Operation { - self.current_operation.take().unwrap_or_else(|| super::operations::Operation::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()) - } - - // int32 serve_nodes = 5; - - - 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.cluster.v1.StorageType default_storage_type = 8; - - - pub fn get_default_storage_type(&self) -> StorageType { - self.default_storage_type - } - pub fn clear_default_storage_type(&mut self) { - self.default_storage_type = StorageType::STORAGE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_default_storage_type(&mut self, v: StorageType) { - self.default_storage_type = v; - } -} - -impl ::protobuf::Message for Cluster { - fn is_initialized(&self) -> bool { - for v in &self.current_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.name)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.current_operation)?; - }, - 4 => { - ::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.serve_nodes = tmp; - }, - 8 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.default_storage_type, 8, &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 let Some(ref v) = self.current_operation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.display_name); - } - if self.serve_nodes != 0 { - my_size += ::protobuf::rt::value_size(5, self.serve_nodes, ::protobuf::wire_format::WireTypeVarint); - } - if self.default_storage_type != StorageType::STORAGE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(8, self.default_storage_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.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.current_operation.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.display_name.is_empty() { - os.write_string(4, &self.display_name)?; - } - if self.serve_nodes != 0 { - os.write_int32(5, self.serve_nodes)?; - } - if self.default_storage_type != StorageType::STORAGE_UNSPECIFIED { - os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.default_storage_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() -> 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "current_operation", - |m: &Cluster| { &m.current_operation }, - |m: &mut Cluster| { &mut m.current_operation }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &Cluster| { &m.display_name }, - |m: &mut Cluster| { &mut m.display_name }, - )); - 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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "default_storage_type", - |m: &Cluster| { &m.default_storage_type }, - |m: &mut Cluster| { &mut m.default_storage_type }, - )); - ::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.current_operation.clear(); - self.display_name.clear(); - self.serve_nodes = 0; - self.default_storage_type = StorageType::STORAGE_UNSPECIFIED; - 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(Clone,PartialEq,Eq,Debug,Hash)] -pub enum StorageType { - STORAGE_UNSPECIFIED = 0, - STORAGE_SSD = 1, - STORAGE_HDD = 2, -} - -impl ::protobuf::ProtobufEnum for StorageType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(StorageType::STORAGE_UNSPECIFIED), - 1 => ::std::option::Option::Some(StorageType::STORAGE_SSD), - 2 => ::std::option::Option::Some(StorageType::STORAGE_HDD), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [StorageType] = &[ - StorageType::STORAGE_UNSPECIFIED, - StorageType::STORAGE_SSD, - StorageType::STORAGE_HDD, - ]; - 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::("StorageType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for StorageType { -} - -impl ::std::default::Default for StorageType { - fn default() -> Self { - StorageType::STORAGE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for StorageType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n/zones/[a-z][-a-z0-9]*\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04/\ - \x02+\x03\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:\ - \n\x04\x04\0\x02\x01\x12\x032\x02\x1a\x1a-\x20The\x20name\x20of\x20this\ - \x20zone\x20as\x20it\x20appears\x20in\x20UIs.\n\n\r\n\x05\x04\0\x02\x01\ - \x04\x12\x042\x02/\x12\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x032\x02\x08\n\ - \x0c\n\x05\x04\0\x02\x01\x01\x12\x032\t\x15\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x032\x18\x19\n.\n\x04\x04\0\x02\x02\x12\x035\x02\x14\x1a!\x20Th\ - e\x20current\x20state\x20of\x20this\x20zone.\n\n\r\n\x05\x04\0\x02\x02\ - \x04\x12\x045\x022\x1a\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x035\x02\x08\n\ - \x0c\n\x05\x04\0\x02\x02\x01\x12\x035\t\x0f\n\x0c\n\x05\x04\0\x02\x02\ - \x03\x12\x035\x12\x13\nX\n\x02\x04\x01\x12\x049\0P\x01\x1aL\x20An\x20iso\ - lated\x20set\x20of\x20Cloud\x20BigTable\x20resources\x20on\x20which\x20t\ - ables\x20can\x20be\x20hosted.\n\n\n\n\x03\x04\x01\x01\x12\x039\x08\x0f\n\ - \xe0\x01\n\x04\x04\x01\x02\0\x12\x03>\x02\x12\x1a\xd2\x01\x20A\x20perman\ - ent\x20unique\x20identifier\x20for\x20the\x20cluster.\x20For\x20technica\ - l\x20reasons,\x20the\n\x20zone\x20in\x20which\x20the\x20cluster\x20resid\ - es\x20is\x20included\x20here.\n\x20Values\x20are\x20of\x20the\x20form\n\ - \x20projects//zones//clusters/[a-z][-a-z0-9]*\n\n\r\n\x05\ - \x04\x01\x02\0\x04\x12\x04>\x029\x11\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\r\n\x0c\n\x05\x04\ - \x01\x02\0\x03\x12\x03>\x10\x11\n\xf5\x01\n\x04\x04\x01\x02\x01\x12\x03D\ - \x025\x1a\xe7\x01\x20The\x20operation\x20currently\x20running\x20on\x20t\ - he\x20cluster,\x20if\x20any.\n\x20This\x20cannot\x20be\x20set\x20directl\ - y,\x20only\x20through\x20CreateCluster,\x20UpdateCluster,\n\x20or\x20Und\ - eleteCluster.\x20Calls\x20to\x20these\x20methods\x20will\x20be\x20reject\ - ed\x20if\n\x20\"current_operation\"\x20is\x20already\x20set.\n\n\r\n\x05\ - \x04\x01\x02\x01\x04\x12\x04D\x02>\x12\n\x0c\n\x05\x04\x01\x02\x01\x06\ - \x12\x03D\x02\x1e\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03D\x1f0\n\x0c\n\ - \x05\x04\x01\x02\x01\x03\x12\x03D34\nd\n\x04\x04\x01\x02\x02\x12\x03H\ - \x02\x1a\x1aW\x20The\x20descriptive\x20name\x20for\x20this\x20cluster\ - \x20as\x20it\x20appears\x20in\x20UIs.\n\x20Must\x20be\x20unique\x20per\ - \x20zone.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04H\x02D5\n\x0c\n\x05\x04\ - \x01\x02\x02\x05\x12\x03H\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\ - \x03H\t\x15\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03H\x18\x19\nC\n\x04\ - \x04\x01\x02\x03\x12\x03K\x02\x18\x1a6\x20The\x20number\x20of\x20serve\ - \x20nodes\x20allocated\x20to\x20this\x20cluster.\n\n\r\n\x05\x04\x01\x02\ - \x03\x04\x12\x04K\x02H\x1a\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03K\x02\ - \x07\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03K\x08\x13\n\x0c\n\x05\x04\ - \x01\x02\x03\x03\x12\x03K\x16\x17\n\x9b\x01\n\x04\x04\x01\x02\x04\x12\ - \x03O\x02'\x1a\x8d\x01\x20What\x20storage\x20type\x20to\x20use\x20for\ - \x20tables\x20in\x20this\x20cluster.\x20Only\x20configurable\x20at\n\x20\ - cluster\x20creation\x20time.\x20If\x20unspecified,\x20STORAGE_SSD\x20wil\ - l\x20be\x20used.\n\n\r\n\x05\x04\x01\x02\x04\x04\x12\x04O\x02K\x18\n\x0c\ - \n\x05\x04\x01\x02\x04\x06\x12\x03O\x02\r\n\x0c\n\x05\x04\x01\x02\x04\ - \x01\x12\x03O\x0e\"\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03O%&\n\n\n\x02\ - \x05\0\x12\x04R\0\\\x01\n\n\n\x03\x05\0\x01\x12\x03R\x05\x10\n4\n\x04\ - \x05\0\x02\0\x12\x03T\x02\x1a\x1a'\x20The\x20storage\x20type\x20used\x20\ - is\x20unspecified.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03T\x02\x15\n\x0c\ - \n\x05\x05\0\x02\0\x02\x12\x03T\x18\x19\nR\n\x04\x05\0\x02\x01\x12\x03W\ - \x02\x12\x1aE\x20Data\x20will\x20be\x20stored\x20in\x20SSD,\x20providing\ - \x20low\x20and\x20consistent\x20latencies.\n\n\x0c\n\x05\x05\0\x02\x01\ - \x01\x12\x03W\x02\r\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03W\x10\x11\nZ\n\ - \x04\x05\0\x02\x02\x12\x03[\x02\x12\x1aM\x20Data\x20will\x20be\x20stored\ - \x20in\x20HDD,\x20providing\x20high\x20and\x20less\x20predictable\n\x20l\ - atencies.\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\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service.rs deleted file mode 100644 index f207bff4d9..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service.rs +++ /dev/null @@ -1,206 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/cluster/v1/bigtable_cluster_service.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n?google/bigtable/admin/cluster/v1/bigtable_cluster_service.proto\x12\ - \x20google.bigtable.admin.cluster.v1\x1a\x1cgoogle/api/annotations.proto\ - \x1a = ::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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_grpc.rs deleted file mode 100644 index 7aac41a74c..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_grpc.rs +++ /dev/null @@ -1,237 +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_BIGTABLE_CLUSTER_SERVICE_LIST_ZONES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/ListZones", - 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_CLUSTER_SERVICE_GET_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/GetCluster", - 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_CLUSTER_SERVICE_LIST_CLUSTERS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/ListClusters", - 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_CLUSTER_SERVICE_CREATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/CreateCluster", - 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_CLUSTER_SERVICE_UPDATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/UpdateCluster", - 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_CLUSTER_SERVICE_DELETE_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/DeleteCluster", - 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_CLUSTER_SERVICE_UNDELETE_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/UndeleteCluster", - 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 BigtableClusterServiceClient { - client: ::grpcio::Client, -} - -impl BigtableClusterServiceClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - BigtableClusterServiceClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn list_zones_opt(&self, req: &super::bigtable_cluster_service_messages::ListZonesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_ZONES, req, opt) - } - - pub fn list_zones(&self, req: &super::bigtable_cluster_service_messages::ListZonesRequest) -> ::grpcio::Result { - self.list_zones_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_zones_async_opt(&self, req: &super::bigtable_cluster_service_messages::ListZonesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_ZONES, req, opt) - } - - pub fn list_zones_async(&self, req: &super::bigtable_cluster_service_messages::ListZonesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_zones_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_cluster_opt(&self, req: &super::bigtable_cluster_service_messages::GetClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_GET_CLUSTER, req, opt) - } - - pub fn get_cluster(&self, req: &super::bigtable_cluster_service_messages::GetClusterRequest) -> ::grpcio::Result { - self.get_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_cluster_async_opt(&self, req: &super::bigtable_cluster_service_messages::GetClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_GET_CLUSTER, req, opt) - } - - pub fn get_cluster_async(&self, req: &super::bigtable_cluster_service_messages::GetClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_clusters_opt(&self, req: &super::bigtable_cluster_service_messages::ListClustersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_CLUSTERS, req, opt) - } - - pub fn list_clusters(&self, req: &super::bigtable_cluster_service_messages::ListClustersRequest) -> ::grpcio::Result { - self.list_clusters_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_clusters_async_opt(&self, req: &super::bigtable_cluster_service_messages::ListClustersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_CLUSTERS, req, opt) - } - - pub fn list_clusters_async(&self, req: &super::bigtable_cluster_service_messages::ListClustersRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_clusters_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_cluster_opt(&self, req: &super::bigtable_cluster_service_messages::CreateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_CREATE_CLUSTER, req, opt) - } - - pub fn create_cluster(&self, req: &super::bigtable_cluster_service_messages::CreateClusterRequest) -> ::grpcio::Result { - self.create_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_cluster_async_opt(&self, req: &super::bigtable_cluster_service_messages::CreateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_CREATE_CLUSTER, req, opt) - } - - pub fn create_cluster_async(&self, req: &super::bigtable_cluster_service_messages::CreateClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_cluster_opt(&self, req: &super::bigtable_cluster_data::Cluster, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_UPDATE_CLUSTER, req, opt) - } - - pub fn update_cluster(&self, req: &super::bigtable_cluster_data::Cluster) -> ::grpcio::Result { - self.update_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_cluster_async_opt(&self, req: &super::bigtable_cluster_data::Cluster, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_UPDATE_CLUSTER, req, opt) - } - - pub fn update_cluster_async(&self, req: &super::bigtable_cluster_data::Cluster) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_cluster_opt(&self, req: &super::bigtable_cluster_service_messages::DeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_DELETE_CLUSTER, req, opt) - } - - pub fn delete_cluster(&self, req: &super::bigtable_cluster_service_messages::DeleteClusterRequest) -> ::grpcio::Result { - self.delete_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_cluster_async_opt(&self, req: &super::bigtable_cluster_service_messages::DeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_DELETE_CLUSTER, req, opt) - } - - pub fn delete_cluster_async(&self, req: &super::bigtable_cluster_service_messages::DeleteClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn undelete_cluster_opt(&self, req: &super::bigtable_cluster_service_messages::UndeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_UNDELETE_CLUSTER, req, opt) - } - - pub fn undelete_cluster(&self, req: &super::bigtable_cluster_service_messages::UndeleteClusterRequest) -> ::grpcio::Result { - self.undelete_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn undelete_cluster_async_opt(&self, req: &super::bigtable_cluster_service_messages::UndeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_UNDELETE_CLUSTER, req, opt) - } - - pub fn undelete_cluster_async(&self, req: &super::bigtable_cluster_service_messages::UndeleteClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.undelete_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait BigtableClusterService { - fn list_zones(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::ListZonesRequest, sink: ::grpcio::UnarySink); - fn get_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::GetClusterRequest, sink: ::grpcio::UnarySink); - fn list_clusters(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::ListClustersRequest, sink: ::grpcio::UnarySink); - fn create_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::CreateClusterRequest, sink: ::grpcio::UnarySink); - fn update_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_data::Cluster, sink: ::grpcio::UnarySink); - fn delete_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::DeleteClusterRequest, sink: ::grpcio::UnarySink); - fn undelete_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::UndeleteClusterRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_bigtable_cluster_service(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_ZONES, move |ctx, req, resp| { - instance.list_zones(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_GET_CLUSTER, move |ctx, req, resp| { - instance.get_cluster(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_CLUSTERS, move |ctx, req, resp| { - instance.list_clusters(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_CREATE_CLUSTER, move |ctx, req, resp| { - instance.create_cluster(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_UPDATE_CLUSTER, move |ctx, req, resp| { - instance.update_cluster(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_DELETE_CLUSTER, move |ctx, req, resp| { - instance.delete_cluster(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_UNDELETE_CLUSTER, move |ctx, req, resp| { - instance.undelete_cluster(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.rs deleted file mode 100644 index 7c3c4eafce..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.rs +++ /dev/null @@ -1,2637 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/cluster/v1/bigtable_cluster_service_messages.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ListZonesRequest { - // 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 ListZonesRequest { - fn default() -> &'a ListZonesRequest { - ::default_instance() - } -} - -impl ListZonesRequest { - pub fn new() -> ListZonesRequest { - ::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 ListZonesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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() -> ListZonesRequest { - ListZonesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListZonesRequest| { &m.name }, - |m: &mut ListZonesRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListZonesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListZonesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListZonesRequest::new) - } -} - -impl ::protobuf::Clear for ListZonesRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListZonesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListZonesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListZonesResponse { - // message fields - pub zones: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListZonesResponse { - fn default() -> &'a ListZonesResponse { - ::default_instance() - } -} - -impl ListZonesResponse { - pub fn new() -> ListZonesResponse { - ::std::default::Default::default() - } - - // repeated .google.bigtable.admin.cluster.v1.Zone zones = 1; - - - pub fn get_zones(&self) -> &[super::bigtable_cluster_data::Zone] { - &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) { - self.zones = v; - } - - // Mutable pointer to the field. - pub fn mut_zones(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.zones - } - - // Take field - pub fn take_zones(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.zones, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ListZonesResponse { - fn is_initialized(&self) -> bool { - for v in &self.zones { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &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.zones)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.zones { - 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.zones { - 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() -> ListZonesResponse { - ListZonesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "zones", - |m: &ListZonesResponse| { &m.zones }, - |m: &mut ListZonesResponse| { &mut m.zones }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListZonesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListZonesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListZonesResponse::new) - } -} - -impl ::protobuf::Clear for ListZonesResponse { - fn clear(&mut self) { - self.zones.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListZonesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListZonesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetClusterRequest { - // 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 GetClusterRequest { - fn default() -> &'a GetClusterRequest { - ::default_instance() - } -} - -impl GetClusterRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static GetClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetClusterRequest::new) - } -} - -impl ::protobuf::Clear for GetClusterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListClustersRequest { - // 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 ListClustersRequest { - fn default() -> &'a ListClustersRequest { - ::default_instance() - } -} - -impl ListClustersRequest { - pub fn new() -> ListClustersRequest { - ::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 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.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() -> 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>( - "name", - |m: &ListClustersRequest| { &m.name }, - |m: &mut ListClustersRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListClustersRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListClustersRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListClustersRequest::new) - } -} - -impl ::protobuf::Clear for ListClustersRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListClustersResponse { - // message fields - pub clusters: ::protobuf::RepeatedField, - pub failed_zones: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListClustersResponse { - fn default() -> &'a ListClustersResponse { - ::default_instance() - } -} - -impl ListClustersResponse { - pub fn new() -> ListClustersResponse { - ::std::default::Default::default() - } - - // repeated .google.bigtable.admin.cluster.v1.Cluster clusters = 1; - - - pub fn get_clusters(&self) -> &[super::bigtable_cluster_data::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 .google.bigtable.admin.cluster.v1.Zone failed_zones = 2; - - - pub fn get_failed_zones(&self) -> &[super::bigtable_cluster_data::Zone] { - &self.failed_zones - } - pub fn clear_failed_zones(&mut self) { - self.failed_zones.clear(); - } - - // Param is passed by value, moved - pub fn set_failed_zones(&mut self, v: ::protobuf::RepeatedField) { - self.failed_zones = v; - } - - // Mutable pointer to the field. - pub fn mut_failed_zones(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.failed_zones - } - - // Take field - pub fn take_failed_zones(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.failed_zones, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ListClustersResponse { - fn is_initialized(&self) -> bool { - for v in &self.clusters { - if !v.is_initialized() { - return false; - } - }; - for v in &self.failed_zones { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.failed_zones)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.clusters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.failed_zones { - 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.clusters { - 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.failed_zones { - 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() -> 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::ProtobufTypeMessage>( - "failed_zones", - |m: &ListClustersResponse| { &m.failed_zones }, - |m: &mut ListClustersResponse| { &mut m.failed_zones }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListClustersResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListClustersResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListClustersResponse::new) - } -} - -impl ::protobuf::Clear for ListClustersResponse { - fn clear(&mut self) { - self.clusters.clear(); - self.failed_zones.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateClusterRequest { - // message fields - pub name: ::std::string::String, - pub cluster_id: ::std::string::String, - pub cluster: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateClusterRequest { - fn default() -> &'a CreateClusterRequest { - ::default_instance() - } -} - -impl CreateClusterRequest { - pub fn new() -> CreateClusterRequest { - ::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_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.cluster.v1.Cluster cluster = 3; - - - pub fn get_cluster(&self) -> &super::bigtable_cluster_data::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::bigtable_cluster_data::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::bigtable_cluster_data::Cluster { - if self.cluster.is_none() { - self.cluster.set_default(); - } - self.cluster.as_mut().unwrap() - } - - // Take field - pub fn take_cluster(&mut self) -> super::bigtable_cluster_data::Cluster { - self.cluster.take().unwrap_or_else(|| super::bigtable_cluster_data::Cluster::new()) - } -} - -impl ::protobuf::Message for 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.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cluster_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cluster)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.cluster_id); - } - 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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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>( - "name", - |m: &CreateClusterRequest| { &m.name }, - |m: &mut CreateClusterRequest| { &mut m.name }, - )); - 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 default_instance() -> &'static CreateClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateClusterRequest::new) - } -} - -impl ::protobuf::Clear for CreateClusterRequest { - fn clear(&mut self) { - self.name.clear(); - self.cluster_id.clear(); - self.cluster.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -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>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateClusterMetadata { - fn default() -> &'a CreateClusterMetadata { - ::default_instance() - } -} - -impl CreateClusterMetadata { - pub fn new() -> CreateClusterMetadata { - ::std::default::Default::default() - } - - // .google.bigtable.admin.cluster.v1.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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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() -> 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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateClusterMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateClusterMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateClusterMetadata::new) - } -} - -impl ::protobuf::Clear for CreateClusterMetadata { - 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 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateClusterMetadata { - // message fields - pub original_request: ::protobuf::SingularPtrField, - pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub cancel_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 UpdateClusterMetadata { - fn default() -> &'a UpdateClusterMetadata { - ::default_instance() - } -} - -impl UpdateClusterMetadata { - pub fn new() -> UpdateClusterMetadata { - ::std::default::Default::default() - } - - // .google.bigtable.admin.cluster.v1.Cluster original_request = 1; - - - pub fn get_original_request(&self) -> &super::bigtable_cluster_data::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::bigtable_cluster_data::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::bigtable_cluster_data::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::bigtable_cluster_data::Cluster { - self.original_request.take().unwrap_or_else(|| super::bigtable_cluster_data::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 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()) - } - - // .google.protobuf.Timestamp finish_time = 4; - - - 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 UpdateClusterMetadata { - 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.cancel_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.cancel_time)?; - }, - 4 => { - ::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.cancel_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.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.finish_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() -> 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_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>>( - "cancel_time", - |m: &UpdateClusterMetadata| { &m.cancel_time }, - |m: &mut UpdateClusterMetadata| { &mut m.cancel_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 default_instance() -> &'static UpdateClusterMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateClusterMetadata::new) - } -} - -impl ::protobuf::Clear for UpdateClusterMetadata { - fn clear(&mut self) { - self.original_request.clear(); - self.request_time.clear(); - self.cancel_time.clear(); - self.finish_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateClusterMetadata { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteClusterRequest { - // 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 DeleteClusterRequest { - fn default() -> &'a DeleteClusterRequest { - ::default_instance() - } -} - -impl DeleteClusterRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static DeleteClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteClusterRequest::new) - } -} - -impl ::protobuf::Clear for DeleteClusterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UndeleteClusterRequest { - // 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 UndeleteClusterRequest { - fn default() -> &'a UndeleteClusterRequest { - ::default_instance() - } -} - -impl UndeleteClusterRequest { - pub fn new() -> UndeleteClusterRequest { - ::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 UndeleteClusterRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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() -> UndeleteClusterRequest { - UndeleteClusterRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UndeleteClusterRequest| { &m.name }, - |m: &mut UndeleteClusterRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UndeleteClusterRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UndeleteClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UndeleteClusterRequest::new) - } -} - -impl ::protobuf::Clear for UndeleteClusterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UndeleteClusterRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UndeleteClusterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UndeleteClusterMetadata { - // message fields - 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 UndeleteClusterMetadata { - fn default() -> &'a UndeleteClusterMetadata { - ::default_instance() - } -} - -impl UndeleteClusterMetadata { - pub fn new() -> UndeleteClusterMetadata { - ::std::default::Default::default() - } - - // .google.protobuf.Timestamp request_time = 1; - - - 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 = 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(); - } - - 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 UndeleteClusterMetadata { - 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; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::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)?; - }, - 2 => { - ::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.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.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)?; - } - 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UndeleteClusterMetadata { - UndeleteClusterMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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: &UndeleteClusterMetadata| { &m.request_time }, - |m: &mut UndeleteClusterMetadata| { &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: &UndeleteClusterMetadata| { &m.finish_time }, - |m: &mut UndeleteClusterMetadata| { &mut m.finish_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UndeleteClusterMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UndeleteClusterMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UndeleteClusterMetadata::new) - } -} - -impl ::protobuf::Clear for UndeleteClusterMetadata { - fn clear(&mut self) { - self.request_time.clear(); - self.finish_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UndeleteClusterMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UndeleteClusterMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct V2OperationMetadata { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a V2OperationMetadata { - fn default() -> &'a V2OperationMetadata { - ::default_instance() - } -} - -impl V2OperationMetadata { - pub fn new() -> V2OperationMetadata { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for V2OperationMetadata { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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() -> V2OperationMetadata { - V2OperationMetadata::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::( - "V2OperationMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static V2OperationMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(V2OperationMetadata::new) - } -} - -impl ::protobuf::Clear for V2OperationMetadata { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for V2OperationMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for V2OperationMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \nHgoogle/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.pr\ - oto\x12\x20google.bigtable.admin.cluster.v1\x1a\n\n\r\n\ - \x05\x04\0\x02\0\x04\x12\x04\x1f\x02\x1b\x1a\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\r\n\x0c\n\ - \x05\x04\0\x02\0\x03\x12\x03\x1f\x10\x11\nD\n\x02\x04\x01\x12\x04#\0&\ - \x01\x1a8\x20Response\x20message\x20for\x20BigtableClusterService.ListZo\ - nes.\n\n\n\n\x03\x04\x01\x01\x12\x03#\x08\x19\n+\n\x04\x04\x01\x02\0\x12\ - \x03%\x02\x1a\x1a\x1e\x20The\x20list\x20of\x20requested\x20zones.\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\x0f\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03%\x10\x15\n\ - \x0c\n\x05\x04\x01\x02\0\x03\x12\x03%\x18\x19\nD\n\x02\x04\x02\x12\x04)\ - \0-\x01\x1a8\x20Request\x20message\x20for\x20BigtableClusterService.GetC\ - luster.\n\n\n\n\x03\x04\x02\x01\x12\x03)\x08\x19\n\x83\x01\n\x04\x04\x02\ - \x02\0\x12\x03,\x02\x12\x1av\x20The\x20unique\x20name\x20of\x20the\x20re\ - quested\x20cluster.\n\x20Values\x20are\x20of\x20the\x20form\x20projects/\ - /zones//clusters/\n\n\r\n\x05\x04\x02\x02\0\x04\ - \x12\x04,\x02)\x1b\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\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\ - \x03,\x10\x11\nF\n\x02\x04\x03\x12\x040\04\x01\x1a:\x20Request\x20messag\ - e\x20for\x20BigtableClusterService.ListClusters.\n\n\n\n\x03\x04\x03\x01\ - \x12\x030\x08\x1b\n\x83\x01\n\x04\x04\x03\x02\0\x12\x033\x02\x12\x1av\ - \x20The\x20unique\x20name\x20of\x20the\x20project\x20for\x20which\x20a\ - \x20list\x20of\x20clusters\x20is\x20requested.\n\x20Values\x20are\x20of\ - \x20the\x20form\x20projects/\n\n\r\n\x05\x04\x03\x02\0\x04\x12\ - \x043\x020\x1d\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x033\x02\x08\n\x0c\n\ - \x05\x04\x03\x02\0\x01\x12\x033\t\r\n\x0c\n\x05\x04\x03\x02\0\x03\x12\ - \x033\x10\x11\nG\n\x02\x04\x04\x12\x047\0=\x01\x1a;\x20Response\x20messa\ - ge\x20for\x20BigtableClusterService.ListClusters.\n\n\n\n\x03\x04\x04\ - \x01\x12\x037\x08\x1c\n.\n\x04\x04\x04\x02\0\x12\x039\x02\x20\x1a!\x20Th\ - e\x20list\x20of\x20requested\x20Clusters.\n\n\x0c\n\x05\x04\x04\x02\0\ - \x04\x12\x039\x02\n\n\x0c\n\x05\x04\x04\x02\0\x06\x12\x039\x0b\x12\n\x0c\ - \n\x05\x04\x04\x02\0\x01\x12\x039\x13\x1b\n\x0c\n\x05\x04\x04\x02\0\x03\ - \x12\x039\x1e\x1f\nC\n\x04\x04\x04\x02\x01\x12\x03<\x02!\x1a6\x20The\x20\ - zones\x20for\x20which\x20clusters\x20could\x20not\x20be\x20retrieved.\n\ - \n\x0c\n\x05\x04\x04\x02\x01\x04\x12\x03<\x02\n\n\x0c\n\x05\x04\x04\x02\ - \x01\x06\x12\x03<\x0b\x0f\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03<\x10\ - \x1c\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03<\x1f\x20\nG\n\x02\x04\x05\ - \x12\x04@\0N\x01\x1a;\x20Request\x20message\x20for\x20BigtableClusterSer\ - vice.CreateCluster.\n\n\n\n\x03\x04\x05\x01\x12\x03@\x08\x1c\n\x82\x01\n\ - \x04\x04\x05\x02\0\x12\x03C\x02\x12\x1au\x20The\x20unique\x20name\x20of\ - \x20the\x20zone\x20in\x20which\x20to\x20create\x20the\x20cluster.\n\x20V\ - alues\x20are\x20of\x20the\x20form\x20projects//zones/\n\n\ - \r\n\x05\x04\x05\x02\0\x04\x12\x04C\x02@\x1e\n\x0c\n\x05\x04\x05\x02\0\ - \x05\x12\x03C\x02\x08\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03C\t\r\n\x0c\n\ - \x05\x04\x05\x02\0\x03\x12\x03C\x10\x11\n\xc5\x01\n\x04\x04\x05\x02\x01\ - \x12\x03H\x02\x18\x1a\xb7\x01\x20The\x20id\x20to\x20be\x20used\x20when\ - \x20referring\x20to\x20the\x20new\x20cluster\x20within\x20its\x20zone,\n\ - \x20e.g.\x20just\x20the\x20\"test-cluster\"\x20section\x20of\x20the\x20f\ - ull\x20name\n\x20\"projects//zones//clusters/test-cluster\ - \".\n\n\r\n\x05\x04\x05\x02\x01\x04\x12\x04H\x02C\x12\n\x0c\n\x05\x04\ - \x05\x02\x01\x05\x12\x03H\x02\x08\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\ - \x03H\t\x13\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x03H\x16\x17\nu\n\x04\ - \x04\x05\x02\x02\x12\x03M\x02\x16\x1ah\x20The\x20cluster\x20to\x20create\ - .\n\x20The\x20\"name\",\x20\"delete_time\",\x20and\x20\"current_operatio\ - n\"\x20fields\x20must\x20be\x20left\n\x20blank.\n\n\r\n\x05\x04\x05\x02\ - \x02\x04\x12\x04M\x02H\x18\n\x0c\n\x05\x04\x05\x02\x02\x06\x12\x03M\x02\ - \t\n\x0c\n\x05\x04\x05\x02\x02\x01\x12\x03M\n\x11\n\x0c\n\x05\x04\x05\ - \x02\x02\x03\x12\x03M\x14\x15\n`\n\x02\x04\x06\x12\x04R\0[\x01\x1aT\x20M\ - etadata\x20type\x20for\x20the\x20operation\x20returned\x20by\n\x20Bigtab\ - leClusterService.CreateCluster.\n\n\n\n\x03\x04\x06\x01\x12\x03R\x08\x1d\ - \nI\n\x04\x04\x06\x02\0\x12\x03T\x02,\x1a<\x20The\x20request\x20which\ - \x20prompted\x20the\x20creation\x20of\x20this\x20operation.\n\n\r\n\x05\ - \x04\x06\x02\0\x04\x12\x04T\x02R\x1f\n\x0c\n\x05\x04\x06\x02\0\x06\x12\ - \x03T\x02\x16\n\x0c\n\x05\x04\x06\x02\0\x01\x12\x03T\x17'\n\x0c\n\x05\ - \x04\x06\x02\0\x03\x12\x03T*+\n?\n\x04\x04\x06\x02\x01\x12\x03W\x02-\x1a\ - 2\x20The\x20time\x20at\x20which\x20original_request\x20was\x20received.\ - \n\n\r\n\x05\x04\x06\x02\x01\x04\x12\x04W\x02T,\n\x0c\n\x05\x04\x06\x02\ - \x01\x06\x12\x03W\x02\x1b\n\x0c\n\x05\x04\x06\x02\x01\x01\x12\x03W\x1c(\ - \n\x0c\n\x05\x04\x06\x02\x01\x03\x12\x03W+,\nU\n\x04\x04\x06\x02\x02\x12\ - \x03Z\x02,\x1aH\x20The\x20time\x20at\x20which\x20this\x20operation\x20fa\ - iled\x20or\x20was\x20completed\x20successfully.\n\n\r\n\x05\x04\x06\x02\ - \x02\x04\x12\x04Z\x02W-\n\x0c\n\x05\x04\x06\x02\x02\x06\x12\x03Z\x02\x1b\ - \n\x0c\n\x05\x04\x06\x02\x02\x01\x12\x03Z\x1c'\n\x0c\n\x05\x04\x06\x02\ - \x02\x03\x12\x03Z*+\n`\n\x02\x04\x07\x12\x04_\0m\x01\x1aT\x20Metadata\ - \x20type\x20for\x20the\x20operation\x20returned\x20by\n\x20BigtableClust\ - erService.UpdateCluster.\n\n\n\n\x03\x04\x07\x01\x12\x03_\x08\x1d\nI\n\ - \x04\x04\x07\x02\0\x12\x03a\x02\x1f\x1a<\x20The\x20request\x20which\x20p\ - rompted\x20the\x20creation\x20of\x20this\x20operation.\n\n\r\n\x05\x04\ - \x07\x02\0\x04\x12\x04a\x02_\x1f\n\x0c\n\x05\x04\x07\x02\0\x06\x12\x03a\ - \x02\t\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03a\n\x1a\n\x0c\n\x05\x04\x07\ - \x02\0\x03\x12\x03a\x1d\x1e\n?\n\x04\x04\x07\x02\x01\x12\x03d\x02-\x1a2\ - \x20The\x20time\x20at\x20which\x20original_request\x20was\x20received.\n\ - \n\r\n\x05\x04\x07\x02\x01\x04\x12\x04d\x02a\x1f\n\x0c\n\x05\x04\x07\x02\ - \x01\x06\x12\x03d\x02\x1b\n\x0c\n\x05\x04\x07\x02\x01\x01\x12\x03d\x1c(\ - \n\x0c\n\x05\x04\x07\x02\x01\x03\x12\x03d+,\n\xbc\x01\n\x04\x04\x07\x02\ - \x02\x12\x03i\x02,\x1a\xae\x01\x20The\x20time\x20at\x20which\x20this\x20\ - operation\x20was\x20cancelled.\x20If\x20set,\x20this\x20operation\x20is\ - \n\x20in\x20the\x20process\x20of\x20undoing\x20itself\x20(which\x20is\ - \x20guaranteed\x20to\x20succeed)\x20and\n\x20cannot\x20be\x20cancelled\ - \x20again.\n\n\r\n\x05\x04\x07\x02\x02\x04\x12\x04i\x02d-\n\x0c\n\x05\ - \x04\x07\x02\x02\x06\x12\x03i\x02\x1b\n\x0c\n\x05\x04\x07\x02\x02\x01\ - \x12\x03i\x1c'\n\x0c\n\x05\x04\x07\x02\x02\x03\x12\x03i*+\nU\n\x04\x04\ - \x07\x02\x03\x12\x03l\x02,\x1aH\x20The\x20time\x20at\x20which\x20this\ - \x20operation\x20failed\x20or\x20was\x20completed\x20successfully.\n\n\r\ - \n\x05\x04\x07\x02\x03\x04\x12\x04l\x02i,\n\x0c\n\x05\x04\x07\x02\x03\ - \x06\x12\x03l\x02\x1b\n\x0c\n\x05\x04\x07\x02\x03\x01\x12\x03l\x1c'\n\ - \x0c\n\x05\x04\x07\x02\x03\x03\x12\x03l*+\nG\n\x02\x04\x08\x12\x04p\0t\ - \x01\x1a;\x20Request\x20message\x20for\x20BigtableClusterService.DeleteC\ - luster.\n\n\n\n\x03\x04\x08\x01\x12\x03p\x08\x1c\n\x87\x01\n\x04\x04\x08\ - \x02\0\x12\x03s\x02\x12\x1az\x20The\x20unique\x20name\x20of\x20the\x20cl\ - uster\x20to\x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\x20form\ - \x20projects//zones//clusters/\n\n\r\n\x05\x04\ - \x08\x02\0\x04\x12\x04s\x02p\x1e\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03s\ - \x02\x08\n\x0c\n\x05\x04\x08\x02\0\x01\x12\x03s\t\r\n\x0c\n\x05\x04\x08\ - \x02\0\x03\x12\x03s\x10\x11\nI\n\x02\x04\t\x12\x04w\0{\x01\x1a=\x20Reque\ - st\x20message\x20for\x20BigtableClusterService.UndeleteCluster.\n\n\n\n\ - \x03\x04\t\x01\x12\x03w\x08\x1e\n\x8a\x01\n\x04\x04\t\x02\0\x12\x03z\x02\ - \x12\x1a}\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20to\x20be\ - \x20un-deleted.\n\x20Values\x20are\x20of\x20the\x20form\x20projects//zones//clusters/\n\n\r\n\x05\x04\t\x02\0\x04\x12\ - \x04z\x02w\x20\n\x0c\n\x05\x04\t\x02\0\x05\x12\x03z\x02\x08\n\x0c\n\x05\ - \x04\t\x02\0\x01\x12\x03z\t\r\n\x0c\n\x05\x04\t\x02\0\x03\x12\x03z\x10\ - \x11\nc\n\x02\x04\n\x12\x05\x7f\0\x85\x01\x01\x1aV\x20Metadata\x20type\ - \x20for\x20the\x20operation\x20returned\x20by\n\x20BigtableClusterServic\ - e.UndeleteCluster.\n\n\n\n\x03\x04\n\x01\x12\x03\x7f\x08\x1f\nD\n\x04\ - \x04\n\x02\0\x12\x04\x81\x01\x02-\x1a6\x20The\x20time\x20at\x20which\x20\ - the\x20original\x20request\x20was\x20received.\n\n\x0e\n\x05\x04\n\x02\0\ - \x04\x12\x05\x81\x01\x02\x7f!\n\r\n\x05\x04\n\x02\0\x06\x12\x04\x81\x01\ - \x02\x1b\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x81\x01\x1c(\n\r\n\x05\x04\n\ - \x02\0\x03\x12\x04\x81\x01+,\nV\n\x04\x04\n\x02\x01\x12\x04\x84\x01\x02,\ - \x1aH\x20The\x20time\x20at\x20which\x20this\x20operation\x20failed\x20or\ - \x20was\x20completed\x20successfully.\n\n\x0f\n\x05\x04\n\x02\x01\x04\ - \x12\x06\x84\x01\x02\x81\x01-\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\x84\ - \x01\x02\x1b\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x84\x01\x1c'\n\r\n\x05\ - \x04\n\x02\x01\x03\x12\x04\x84\x01*+\n\xa2\x01\n\x02\x04\x0b\x12\x04\x89\ - \x01\0\x1e\x1a\x95\x01\x20Metadata\x20type\x20for\x20operations\x20initi\ - ated\x20by\x20the\x20V2\x20BigtableAdmin\x20service.\n\x20More\x20comple\ - te\x20information\x20for\x20such\x20operations\x20is\x20available\x20via\ - \x20the\x20V2\x20API.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x89\x01\x08\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_data.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_data.rs deleted file mode 100644 index af4f5569de..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_data.rs +++ /dev/null @@ -1,1526 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/table/v1/bigtable_table_data.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Table { - // message fields - pub name: ::std::string::String, - pub current_operation: ::protobuf::SingularPtrField, - pub column_families: ::std::collections::HashMap<::std::string::String, ColumnFamily>, - pub granularity: Table_TimestampGranularity, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Table { - fn default() -> &'a Table { - ::default_instance() - } -} - -impl Table { - pub fn new() -> Table { - ::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.longrunning.Operation current_operation = 2; - - - pub fn get_current_operation(&self) -> &super::operations::Operation { - self.current_operation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_current_operation(&mut self) { - self.current_operation.clear(); - } - - pub fn has_current_operation(&self) -> bool { - self.current_operation.is_some() - } - - // Param is passed by value, moved - pub fn set_current_operation(&mut self, v: super::operations::Operation) { - self.current_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_current_operation(&mut self) -> &mut super::operations::Operation { - if self.current_operation.is_none() { - self.current_operation.set_default(); - } - self.current_operation.as_mut().unwrap() - } - - // Take field - pub fn take_current_operation(&mut self) -> super::operations::Operation { - self.current_operation.take().unwrap_or_else(|| super::operations::Operation::new()) - } - - // repeated .google.bigtable.admin.table.v1.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.table.v1.Table.TimestampGranularity granularity = 4; - - - pub fn get_granularity(&self) -> Table_TimestampGranularity { - self.granularity - } - pub fn clear_granularity(&mut self) { - self.granularity = Table_TimestampGranularity::MILLIS; - } - - // Param is passed by value, moved - pub fn set_granularity(&mut self, v: Table_TimestampGranularity) { - self.granularity = v; - } -} - -impl ::protobuf::Message for Table { - fn is_initialized(&self) -> bool { - for v in &self.current_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.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.current_operation)?; - }, - 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)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.current_operation.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.column_families); - if self.granularity != Table_TimestampGranularity::MILLIS { - my_size += ::protobuf::rt::enum_size(4, self.granularity); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.current_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)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(3, &self.column_families, os)?; - if self.granularity != Table_TimestampGranularity::MILLIS { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.granularity))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "current_operation", - |m: &Table| { &m.current_operation }, - |m: &mut Table| { &mut m.current_operation }, - )); - 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 }, - )); - ::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.current_operation.clear(); - self.column_families.clear(); - self.granularity = Table_TimestampGranularity::MILLIS; - 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(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Table_TimestampGranularity { - MILLIS = 0, -} - -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::MILLIS), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Table_TimestampGranularity] = &[ - 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::MILLIS - } -} - -impl ::protobuf::reflect::ProtobufValue for Table_TimestampGranularity { - 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 name: ::std::string::String, - pub gc_expression: ::std::string::String, - 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() - } - - // 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 gc_expression = 2; - - - pub fn get_gc_expression(&self) -> &str { - &self.gc_expression - } - pub fn clear_gc_expression(&mut self) { - self.gc_expression.clear(); - } - - // Param is passed by value, moved - pub fn set_gc_expression(&mut self, v: ::std::string::String) { - self.gc_expression = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gc_expression(&mut self) -> &mut ::std::string::String { - &mut self.gc_expression - } - - // Take field - pub fn take_gc_expression(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.gc_expression, ::std::string::String::new()) - } - - // .google.bigtable.admin.table.v1.GcRule gc_rule = 3; - - - 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_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gc_expression)?; - }, - 3 => { - ::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 !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.gc_expression.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.gc_expression); - } - 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 !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.gc_expression.is_empty() { - os.write_string(2, &self.gc_expression)?; - } - if let Some(ref v) = self.gc_rule.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() -> 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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ColumnFamily| { &m.name }, - |m: &mut ColumnFamily| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gc_expression", - |m: &ColumnFamily| { &m.gc_expression }, - |m: &mut ColumnFamily| { &mut m.gc_expression }, - )); - 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.name.clear(); - self.gc_expression.clear(); - 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.table.v1.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.table.v1.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.table.v1.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.table.v1.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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n8google/bigtable/admin/table/v1/bigtable_table_data.proto\x12\x1egoogl\ - e.bigtable.admin.table.v1\x1a#google/longrunning/operations.proto\x1a\ - \x1egoogle/protobuf/duration.proto\"\xbe\x03\n\x05Table\x12\x12\n\x04nam\ - e\x18\x01\x20\x01(\tR\x04name\x12J\n\x11current_operation\x18\x02\x20\ - \x01(\x0b2\x1d.google.longrunning.OperationR\x10currentOperation\x12b\n\ - \x0fcolumn_families\x18\x03\x20\x03(\x0b29.google.bigtable.admin.table.v\ - 1.Table.ColumnFamiliesEntryR\x0ecolumnFamilies\x12\\\n\x0bgranularity\ - \x18\x04\x20\x01(\x0e2:.google.bigtable.admin.table.v1.Table.TimestampGr\ - anularityR\x0bgranularity\x1ao\n\x13ColumnFamiliesEntry\x12\x10\n\x03key\ - \x18\x01\x20\x01(\tR\x03key\x12B\n\x05value\x18\x02\x20\x01(\x0b2,.googl\ - e.bigtable.admin.table.v1.ColumnFamilyR\x05value:\x028\x01\"\"\n\x14Time\ - stampGranularity\x12\n\n\x06MILLIS\x10\0\"\x88\x01\n\x0cColumnFamily\x12\ - \x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12#\n\rgc_expression\x18\x02\ - \x20\x01(\tR\x0cgcExpression\x12?\n\x07gc_rule\x18\x03\x20\x01(\x0b2&.go\ - ogle.bigtable.admin.table.v1.GcRuleR\x06gcRule\"\xa8\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.protobuf.DurationH\0R\x06\ - maxAge\x12Y\n\x0cintersection\x18\x03\x20\x01(\x0b23.google.bigtable.adm\ - in.table.v1.GcRule.IntersectionH\0R\x0cintersection\x12D\n\x05union\x18\ - \x04\x20\x01(\x0b2,.google.bigtable.admin.table.v1.GcRule.UnionH\0R\x05u\ - nion\x1aL\n\x0cIntersection\x12<\n\x05rules\x18\x01\x20\x03(\x0b2&.googl\ - e.bigtable.admin.table.v1.GcRuleR\x05rules\x1aE\n\x05Union\x12<\n\x05rul\ - es\x18\x01\x20\x03(\x0b2&.google.bigtable.admin.table.v1.GcRuleR\x05rule\ - sB\x06\n\x04ruleB\x83\x01\n\"com.google.bigtable.admin.table.v1B\x16Bigt\ - ableTableDataProtoP\x01ZCgoogle.golang.org/genproto/googleapis/bigtable/\ - admin/table/v1;tableJ\xff%\n\x06\x12\x04\x0e\0z\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\ - 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\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\07\n\t\n\x02\x08\x08\x12\ - \x03\x17\07\n\x08\n\x01\x08\x12\x03\x18\0;\n\t\n\x02\x08\x01\x12\x03\x18\ - \0;\n\x90\x01\n\x02\x04\0\x12\x04\x1c\0/\x01\x1a\x83\x01\x20A\x20collect\ - ion\x20of\x20user\x20data\x20indexed\x20by\x20row,\x20column,\x20and\x20\ - timestamp.\n\x20Each\x20table\x20is\x20served\x20using\x20the\x20resourc\ - es\x20of\x20its\x20parent\x20cluster.\n\n\n\n\x03\x04\0\x01\x12\x03\x1c\ - \x08\r\n\x0b\n\x04\x04\0\x04\0\x12\x03\x1d\x02+\n\x0c\n\x05\x04\0\x04\0\ - \x01\x12\x03\x1d\x07\x1b\n\r\n\x06\x04\0\x04\0\x02\0\x12\x03\x1d\x1e)\n\ - \x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\x1d\x1e$\n\x0e\n\x07\x04\0\x04\ - \0\x02\0\x02\x12\x03\x1d'(\na\n\x04\x04\0\x02\0\x12\x03!\x02\x12\x1aT\ - \x20A\x20unique\x20identifier\x20of\x20the\x20form\n\x20/t\ - ables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04!\ - \x02\x1d+\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\x01\n\x04\x04\0\x02\x01\x12\x03&\x025\x1a\xc7\x01\x20If\x20this\x20\ - Table\x20is\x20in\x20the\x20process\x20of\x20being\x20created,\x20the\ - \x20Operation\x20used\x20to\n\x20track\x20its\x20progress.\x20As\x20long\ - \x20as\x20this\x20operation\x20is\x20present,\x20the\x20Table\x20will\n\ - \x20not\x20accept\x20any\x20Table\x20Admin\x20or\x20Read/Write\x20reques\ - ts.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04&\x02!\x12\n\x0c\n\x05\x04\0\ - \x02\x01\x06\x12\x03&\x02\x1e\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03&\x1f\ - 0\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03&34\nY\n\x04\x04\0\x02\x02\x12\ - \x03)\x020\x1aL\x20The\x20column\x20families\x20configured\x20for\x20thi\ - s\x20table,\x20mapped\x20by\x20column\x20family\x20id.\n\n\r\n\x05\x04\0\ - \x02\x02\x04\x12\x04)\x02&5\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\xcc\x01\n\x04\x04\0\x02\x03\x12\x03.\x02'\x1a\xbe\ - \x01\x20The\x20granularity\x20(e.g.\x20MILLIS,\x20MICROS)\x20at\x20which\ - \x20timestamps\x20are\x20stored\x20in\n\x20this\x20table.\x20Timestamps\ - \x20not\x20matching\x20the\x20granularity\x20will\x20be\x20rejected.\n\ - \x20Cannot\x20be\x20changed\x20once\x20the\x20table\x20is\x20created.\n\ - \n\r\n\x05\x04\0\x02\x03\x04\x12\x04.\x02)0\n\x0c\n\x05\x04\0\x02\x03\ - \x06\x12\x03.\x02\x16\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03.\x17\"\n\x0c\ - \n\x05\x04\0\x02\x03\x03\x12\x03.%&\nQ\n\x02\x04\x01\x12\x042\0[\x01\x1a\ - E\x20A\x20set\x20of\x20columns\x20within\x20a\x20table\x20which\x20share\ - \x20a\x20common\x20configuration.\n\n\n\n\x03\x04\x01\x01\x12\x032\x08\ - \x14\n\xac\x01\n\x04\x04\x01\x02\0\x12\x036\x02\x12\x1a\x9e\x01\x20A\x20\ - unique\x20identifier\x20of\x20the\x20form\x20/columnFamilies\ - /[-_.a-zA-Z0-9]+\n\x20The\x20last\x20segment\x20is\x20the\x20same\x20as\ - \x20the\x20\"name\"\x20field\x20in\n\x20google.bigtable.v1.Family.\n\n\r\ - \n\x05\x04\x01\x02\0\x04\x12\x046\x022\x16\n\x0c\n\x05\x04\x01\x02\0\x05\ - \x12\x036\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x036\t\r\n\x0c\n\x05\ - \x04\x01\x02\0\x03\x12\x036\x10\x11\n\x97\t\n\x04\x04\x01\x02\x01\x12\ - \x03Q\x02\x1b\x1a\x89\t\x20Garbage\x20collection\x20expression\x20specif\ - ied\x20by\x20the\x20following\x20grammar:\n\x20\x20\x20GC\x20=\x20EXPR\n\ - \x20\x20\x20\x20\x20\x20|\x20\"\"\x20;\n\x20\x20\x20EXPR\x20=\x20EXPR,\ - \x20\"||\",\x20EXPR\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20(*\x20lowest\x20precedence\x20*)\n\x20\x20\x20\x20\x20\x20\x20\x20|\ - \x20EXPR,\x20\"&&\",\x20EXPR\n\x20\x20\x20\x20\x20\x20\x20\x20|\x20\"(\"\ - ,\x20EXPR,\x20\")\"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20(*\x20highest\x20precedence\x20*)\n\x20\x20\x20\x20\x20\x20\ - \x20\x20|\x20PROP\x20;\n\x20\x20\x20PROP\x20=\x20\"version()\x20>\",\x20\ - NUM32\n\x20\x20\x20\x20\x20\x20\x20\x20|\x20\"age()\x20>\",\x20NUM64,\ - \x20[\x20UNIT\x20]\x20;\n\x20\x20\x20NUM32\x20=\x20non-zero-digit\x20{\ - \x20digit\x20}\x20;\x20\x20\x20\x20(*\x20#\x20NUM32\x20<=\x202^32\x20-\ - \x201\x20*)\n\x20\x20\x20NUM64\x20=\x20non-zero-digit\x20{\x20digit\x20}\ - \x20;\x20\x20\x20\x20(*\x20#\x20NUM64\x20<=\x202^63\x20-\x201\x20*)\n\ - \x20\x20\x20UNIT\x20=\x20\x20\"d\"\x20|\x20\"h\"\x20|\x20\"m\"\x20\x20(*\ - \x20d=days,\x20h=hours,\x20m=minutes,\x20else\x20micros\x20*)\n\x20GC\ - \x20expressions\x20can\x20be\x20up\x20to\x20500\x20characters\x20in\x20l\ - ength\n\n\x20The\x20different\x20types\x20of\x20PROP\x20are\x20defined\ - \x20as\x20follows:\n\x20\x20\x20version()\x20-\x20cell\x20index,\x20coun\ - ting\x20from\x20most\x20recent\x20and\x20starting\x20at\x201\n\x20\x20\ - \x20age()\x20-\x20age\x20of\x20the\x20cell\x20(current\x20time\x20minus\ - \x20cell\x20timestamp)\n\n\x20Example:\x20\"version()\x20>\x203\x20||\ - \x20(age()\x20>\x203d\x20&&\x20version()\x20>\x201)\"\n\x20\x20\x20drop\ - \x20cells\x20beyond\x20the\x20most\x20recent\x20three,\x20and\x20drop\ - \x20cells\x20older\x20than\x20three\n\x20\x20\x20days\x20unless\x20they'\ - re\x20the\x20most\x20recent\x20cell\x20in\x20the\x20row/column\n\n\x20Ga\ - rbage\x20collection\x20executes\x20opportunistically\x20in\x20the\x20bac\ - kground,\x20and\x20so\n\x20it's\x20possible\x20for\x20reads\x20to\x20ret\ - urn\x20a\x20cell\x20even\x20if\x20it\x20matches\x20the\x20active\x20GC\n\ - \x20expression\x20for\x20its\x20family.\n\n\r\n\x05\x04\x01\x02\x01\x04\ - \x12\x04Q\x026\x12\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03Q\x02\x08\n\ - \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03Q\t\x16\n\x0c\n\x05\x04\x01\x02\ - \x01\x03\x12\x03Q\x19\x1a\n\xba\x02\n\x04\x04\x01\x02\x02\x12\x03Z\x02\ - \x15\x1a\xac\x02\x20Garbage\x20collection\x20rule\x20specified\x20as\x20\ - a\x20protobuf.\n\x20Supersedes\x20`gc_expression`.\n\x20Must\x20serializ\ - e\x20to\x20at\x20most\x20500\x20bytes.\n\n\x20NOTE:\x20Garbage\x20collec\ - tion\x20executes\x20opportunistically\x20in\x20the\x20background,\x20and\ - \n\x20so\x20it's\x20possible\x20for\x20reads\x20to\x20return\x20a\x20cel\ - l\x20even\x20if\x20it\x20matches\x20the\x20active\n\x20GC\x20expression\ - \x20for\x20its\x20family.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04Z\x02Q\ - \x1b\n\x0c\n\x05\x04\x01\x02\x02\x06\x12\x03Z\x02\x08\n\x0c\n\x05\x04\ - \x01\x02\x02\x01\x12\x03Z\t\x10\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03Z\ - \x13\x14\nS\n\x02\x04\x02\x12\x04^\0z\x01\x1aG\x20Rule\x20for\x20determi\ - ning\x20which\x20cells\x20to\x20delete\x20during\x20garbage\x20collectio\ - n.\n\n\n\n\x03\x04\x02\x01\x12\x03^\x08\x0e\nM\n\x04\x04\x02\x03\0\x12\ - \x04`\x02c\x03\x1a?\x20A\x20GcRule\x20which\x20deletes\x20cells\x20match\ - ing\x20all\x20of\x20the\x20given\x20rules.\n\n\x0c\n\x05\x04\x02\x03\0\ - \x01\x12\x03`\n\x16\nV\n\x06\x04\x02\x03\0\x02\0\x12\x03b\x04\x1e\x1aG\ - \x20Only\x20delete\x20cells\x20which\x20would\x20be\x20deleted\x20by\x20\ - every\x20element\x20of\x20`rules`.\n\n\x0e\n\x07\x04\x02\x03\0\x02\0\x04\ - \x12\x03b\x04\x0c\n\x0e\n\x07\x04\x02\x03\0\x02\0\x06\x12\x03b\r\x13\n\ - \x0e\n\x07\x04\x02\x03\0\x02\0\x01\x12\x03b\x14\x19\n\x0e\n\x07\x04\x02\ - \x03\0\x02\0\x03\x12\x03b\x1c\x1d\nM\n\x04\x04\x02\x03\x01\x12\x04f\x02i\ - \x03\x1a?\x20A\x20GcRule\x20which\x20deletes\x20cells\x20matching\x20any\ - \x20of\x20the\x20given\x20rules.\n\n\x0c\n\x05\x04\x02\x03\x01\x01\x12\ - \x03f\n\x0f\nO\n\x06\x04\x02\x03\x01\x02\0\x12\x03h\x04\x1e\x1a@\x20Dele\ - te\x20cells\x20which\x20would\x20be\x20deleted\x20by\x20any\x20element\ - \x20of\x20`rules`.\n\n\x0e\n\x07\x04\x02\x03\x01\x02\0\x04\x12\x03h\x04\ - \x0c\n\x0e\n\x07\x04\x02\x03\x01\x02\0\x06\x12\x03h\r\x13\n\x0e\n\x07\ - \x04\x02\x03\x01\x02\0\x01\x12\x03h\x14\x19\n\x0e\n\x07\x04\x02\x03\x01\ - \x02\0\x03\x12\x03h\x1c\x1d\n\x0c\n\x04\x04\x02\x08\0\x12\x04k\x02y\x03\ - \n\x0c\n\x05\x04\x02\x08\0\x01\x12\x03k\x08\x0c\nE\n\x04\x04\x02\x02\0\ - \x12\x03m\x04\x1f\x1a8\x20Delete\x20all\x20cells\x20in\x20a\x20column\ - \x20except\x20the\x20most\x20recent\x20N.\n\n\x0c\n\x05\x04\x02\x02\0\ - \x05\x12\x03m\x04\t\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03m\n\x1a\n\x0c\n\ - \x05\x04\x02\x02\0\x03\x12\x03m\x1d\x1e\n\x9f\x01\n\x04\x04\x02\x02\x01\ - \x12\x03r\x04)\x1a\x91\x01\x20Delete\x20cells\x20in\x20a\x20column\x20ol\ - der\x20than\x20the\x20given\x20age.\n\x20Values\x20must\x20be\x20at\x20l\ - east\x20one\x20millisecond,\x20and\x20will\x20be\x20truncated\x20to\n\ - \x20microsecond\x20granularity.\n\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\ - \x03r\x04\x1c\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03r\x1d$\n\x0c\n\x05\ - \x04\x02\x02\x01\x03\x12\x03r'(\nG\n\x04\x04\x02\x02\x02\x12\x03u\x04\"\ - \x1a:\x20Delete\x20cells\x20that\x20would\x20be\x20deleted\x20by\x20ever\ - y\x20nested\x20rule.\n\n\x0c\n\x05\x04\x02\x02\x02\x06\x12\x03u\x04\x10\ - \n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03u\x11\x1d\n\x0c\n\x05\x04\x02\ - \x02\x02\x03\x12\x03u\x20!\nE\n\x04\x04\x02\x02\x03\x12\x03x\x04\x14\x1a\ - 8\x20Delete\x20cells\x20that\x20would\x20be\x20deleted\x20by\x20any\x20n\ - ested\x20rule.\n\n\x0c\n\x05\x04\x02\x02\x03\x06\x12\x03x\x04\t\n\x0c\n\ - \x05\x04\x02\x02\x03\x01\x12\x03x\n\x0f\n\x0c\n\x05\x04\x02\x02\x03\x03\ - \x12\x03x\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service.rs deleted file mode 100644 index b590446b75..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service.rs +++ /dev/null @@ -1,148 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/table/v1/bigtable_table_service.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n;google/bigtable/admin/table/v1/bigtable_table_service.proto\x12\x1ego\ - ogle.bigtable.admin.table.v1\x1a\x1cgoogle/api/annotations.proto\x1a8goo\ - gle/bigtable/admin/table/v1/bigtable_table_data.proto\x1aDgoogle/bigtabl\ - e/admin/table/v1/bigtable_table_service_messages.proto\x1a\x1bgoogle/pro\ - tobuf/empty.proto2\xbe\x0c\n\x14BigtableTableService\x12\xa4\x01\n\x0bCr\ - eateTable\x122.google.bigtable.admin.table.v1.CreateTableRequest\x1a%.go\ - ogle.bigtable.admin.table.v1.Table\":\x82\xd3\xe4\x93\x024\"//v1/{name=p\ - rojects/*/zones/*/clusters/*}/tables:\x01*\x12\xac\x01\n\nListTables\x12\ - 1.google.bigtable.admin.table.v1.ListTablesRequest\x1a2.google.bigtable.\ - admin.table.v1.ListTablesResponse\"7\x82\xd3\xe4\x93\x021\x12//v1/{name=\ - projects/*/zones/*/clusters/*}/tables\x12\x9d\x01\n\x08GetTable\x12/.goo\ - gle.bigtable.admin.table.v1.GetTableRequest\x1a%.google.bigtable.admin.t\ - able.v1.Table\"9\x82\xd3\xe4\x93\x023\x121/v1/{name=projects/*/zones/*/c\ - lusters/*/tables/*}\x12\x94\x01\n\x0bDeleteTable\x122.google.bigtable.ad\ - min.table.v1.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\ - \xe4\x93\x023*1/v1/{name=projects/*/zones/*/clusters/*/tables/*}\x12\x9e\ - \x01\n\x0bRenameTable\x122.google.bigtable.admin.table.v1.RenameTableReq\ - uest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02=\"8/v1/{name=p\ - rojects/*/zones/*/clusters/*/tables/*}:rename:\x01*\x12\xca\x01\n\x12Cre\ - ateColumnFamily\x129.google.bigtable.admin.table.v1.CreateColumnFamilyRe\ - quest\x1a,.google.bigtable.admin.table.v1.ColumnFamily\"K\x82\xd3\xe4\ - \x93\x02E\"@/v1/{name=projects/*/zones/*/clusters/*/tables/*}/columnFami\ - lies:\x01*\x12\xbf\x01\n\x12UpdateColumnFamily\x12,.google.bigtable.admi\ - n.table.v1.ColumnFamily\x1a,.google.bigtable.admin.table.v1.ColumnFamily\ - \"M\x82\xd3\xe4\x93\x02G\x1aB/v1/{name=projects/*/zones/*/clusters/*/tab\ - les/*/columnFamilies/*}:\x01*\x12\xb3\x01\n\x12DeleteColumnFamily\x129.g\ - oogle.bigtable.admin.table.v1.DeleteColumnFamilyRequest\x1a\x16.google.p\ - rotobuf.Empty\"J\x82\xd3\xe4\x93\x02D*B/v1/{name=projects/*/zones/*/clus\ - ters/*/tables/*/columnFamilies/*}\x12\xb2\x01\n\x0eBulkDeleteRows\x125.g\ - oogle.bigtable.admin.table.v1.BulkDeleteRowsRequest\x1a\x16.google.proto\ - buf.Empty\"Q\x82\xd3\xe4\x93\x02K\"F/v1/{table_name=projects/*/zones/*/c\ - lusters/*/tables/*}:bulkDeleteRows:\x01*B\x87\x01\n\"com.google.bigtable\ - .admin.table.v1B\x1aBigtableTableServicesProtoP\x01ZCgoogle.golang.org/g\ - enproto/googleapis/bigtable/admin/table/v1;tableJ\x8c\x13\n\x06\x12\x04\ - \x0e\0g\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\ - \x202017\x20Google\x20Inc.\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\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\0B\n\t\n\x02\ - \x03\x02\x12\x03\x14\0N\n\t\n\x02\x03\x03\x12\x03\x15\0%\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\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\xa9\x01\n\x02\x06\0\x12\x04\x1f\0g\x01\x1a\ - \x9c\x01\x20Service\x20for\x20creating,\x20configuring,\x20and\x20deleti\ - ng\x20Cloud\x20Bigtable\x20tables.\n\x20Provides\x20access\x20to\x20the\ - \x20table\x20schemas\x20only,\x20not\x20the\x20data\x20stored\x20within\ - \x20the\n\x20tables.\n\n\n\n\x03\x06\0\x01\x12\x03\x1f\x08\x1c\n\xad\x01\ - \n\x04\x06\0\x02\0\x12\x04#\x02(\x03\x1a\x9e\x01\x20Creates\x20a\x20new\ - \x20table,\x20to\x20be\x20served\x20from\x20a\x20specified\x20cluster.\n\ - \x20The\x20table\x20can\x20be\x20created\x20with\x20a\x20full\x20set\x20\ - of\x20initial\x20column\x20families,\n\x20specified\x20in\x20the\x20requ\ - est.\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\nN\n\x04\x06\0\x02\x01\x12\x04+\x02/\x03\x1a@\ - \x20Lists\x20the\x20names\x20of\x20all\x20tables\x20served\x20from\x20a\ - \x20specified\x20cluster.\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\nV\n\x04\x06\0\ - \x02\x02\x12\x042\x026\x03\x1aH\x20Gets\x20the\x20schema\x20of\x20the\ - \x20specified\x20table,\x20including\x20its\x20column\x20families.\n\n\ - \x0c\n\x05\x06\0\x02\x02\x01\x12\x032\x06\x0e\n\x0c\n\x05\x06\0\x02\x02\ - \x02\x12\x032\x0f\x1e\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x032).\n\r\n\x05\ - \x06\0\x02\x02\x04\x12\x043\x045\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\ - \xbc\"\x12\x043\x045\x06\nJ\n\x04\x06\0\x02\x03\x12\x049\x02=\x03\x1a<\ - \x20Permanently\x20deletes\x20a\x20specified\x20table\x20and\x20all\x20o\ - f\x20its\x20data.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x039\x06\x11\n\x0c\ - \n\x05\x06\0\x02\x03\x02\x12\x039\x12$\n\x0c\n\x05\x06\0\x02\x03\x03\x12\ - \x039/D\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{\n\x04\x06\0\x02\x04\x12\ - \x04A\x02F\x03\x1am\x20Changes\x20the\x20name\x20of\x20a\x20specified\ - \x20table.\n\x20Cannot\x20be\x20used\x20to\x20move\x20tables\x20between\ - \x20clusters,\x20zones,\x20or\x20projects.\n\n\x0c\n\x05\x06\0\x02\x04\ - \x01\x12\x03A\x06\x11\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03A\x12$\n\x0c\ - \n\x05\x06\0\x02\x04\x03\x12\x03A/D\n\r\n\x05\x06\0\x02\x04\x04\x12\x04B\ - \x04E\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04B\x04E\x06\nE\ - \n\x04\x06\0\x02\x05\x12\x04I\x02N\x03\x1a7\x20Creates\x20a\x20new\x20co\ - lumn\x20family\x20within\x20a\x20specified\x20table.\n\n\x0c\n\x05\x06\0\ - \x02\x05\x01\x12\x03I\x06\x18\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03I\x19\ - 2\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03I=I\n\r\n\x05\x06\0\x02\x05\x04\ - \x12\x04J\x04M\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04J\ - \x04M\x06\nG\n\x04\x06\0\x02\x06\x12\x04Q\x02V\x03\x1a9\x20Changes\x20th\ - e\x20configuration\x20of\x20a\x20specified\x20column\x20family.\n\n\x0c\ - \n\x05\x06\0\x02\x06\x01\x12\x03Q\x06\x18\n\x0c\n\x05\x06\0\x02\x06\x02\ - \x12\x03Q\x19%\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03Q0<\n\r\n\x05\x06\0\ - \x02\x06\x04\x12\x04R\x04U\x06\n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\ - \x12\x04R\x04U\x06\nR\n\x04\x06\0\x02\x07\x12\x04Y\x02^\x03\x1aD\x20Perm\ - anently\x20deletes\x20a\x20specified\x20column\x20family\x20and\x20all\ - \x20of\x20its\x20data.\n\n\x0c\n\x05\x06\0\x02\x07\x01\x12\x03Y\x06\x18\ - \n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03Y\x192\n\x0c\n\x05\x06\0\x02\x07\ - \x03\x12\x03Z\x0f$\n\r\n\x05\x06\0\x02\x07\x04\x12\x04[\x04]\x06\n\x11\n\ - \t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x04[\x04]\x06\nO\n\x04\x06\0\x02\ - \x08\x12\x04a\x02f\x03\x1aA\x20Delete\x20all\x20rows\x20in\x20a\x20table\ - \x20corresponding\x20to\x20a\x20particular\x20prefix\n\n\x0c\n\x05\x06\0\ - \x02\x08\x01\x12\x03a\x06\x14\n\x0c\n\x05\x06\0\x02\x08\x02\x12\x03a\x15\ - *\n\x0c\n\x05\x06\0\x02\x08\x03\x12\x03a5J\n\r\n\x05\x06\0\x02\x08\x04\ - \x12\x04b\x04e\x06\n\x11\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x04b\ - \x04e\x06b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_grpc.rs deleted file mode 100644 index 28113922fb..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_grpc.rs +++ /dev/null @@ -1,293 +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_BIGTABLE_TABLE_SERVICE_CREATE_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/CreateTable", - 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_SERVICE_LIST_TABLES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/ListTables", - 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_SERVICE_GET_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/GetTable", - 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_SERVICE_DELETE_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/DeleteTable", - 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_SERVICE_RENAME_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/RenameTable", - 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_SERVICE_CREATE_COLUMN_FAMILY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/CreateColumnFamily", - 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_SERVICE_UPDATE_COLUMN_FAMILY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/UpdateColumnFamily", - 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_SERVICE_DELETE_COLUMN_FAMILY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/DeleteColumnFamily", - 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_SERVICE_BULK_DELETE_ROWS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.table.v1.BigtableTableService/BulkDeleteRows", - 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 BigtableTableServiceClient { - client: ::grpcio::Client, -} - -impl BigtableTableServiceClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - BigtableTableServiceClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_table_opt(&self, req: &super::bigtable_table_service_messages::CreateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_TABLE, req, opt) - } - - pub fn create_table(&self, req: &super::bigtable_table_service_messages::CreateTableRequest) -> ::grpcio::Result { - self.create_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_table_async_opt(&self, req: &super::bigtable_table_service_messages::CreateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_TABLE, req, opt) - } - - pub fn create_table_async(&self, req: &super::bigtable_table_service_messages::CreateTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_table_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_tables_opt(&self, req: &super::bigtable_table_service_messages::ListTablesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_LIST_TABLES, req, opt) - } - - pub fn list_tables(&self, req: &super::bigtable_table_service_messages::ListTablesRequest) -> ::grpcio::Result { - self.list_tables_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_tables_async_opt(&self, req: &super::bigtable_table_service_messages::ListTablesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_LIST_TABLES, req, opt) - } - - pub fn list_tables_async(&self, req: &super::bigtable_table_service_messages::ListTablesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_tables_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_table_opt(&self, req: &super::bigtable_table_service_messages::GetTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_GET_TABLE, req, opt) - } - - pub fn get_table(&self, req: &super::bigtable_table_service_messages::GetTableRequest) -> ::grpcio::Result { - self.get_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_table_async_opt(&self, req: &super::bigtable_table_service_messages::GetTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_GET_TABLE, req, opt) - } - - pub fn get_table_async(&self, req: &super::bigtable_table_service_messages::GetTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_table_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_table_opt(&self, req: &super::bigtable_table_service_messages::DeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_TABLE, req, opt) - } - - pub fn delete_table(&self, req: &super::bigtable_table_service_messages::DeleteTableRequest) -> ::grpcio::Result { - self.delete_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_table_async_opt(&self, req: &super::bigtable_table_service_messages::DeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_TABLE, req, opt) - } - - pub fn delete_table_async(&self, req: &super::bigtable_table_service_messages::DeleteTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_table_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn rename_table_opt(&self, req: &super::bigtable_table_service_messages::RenameTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_RENAME_TABLE, req, opt) - } - - pub fn rename_table(&self, req: &super::bigtable_table_service_messages::RenameTableRequest) -> ::grpcio::Result { - self.rename_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn rename_table_async_opt(&self, req: &super::bigtable_table_service_messages::RenameTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_RENAME_TABLE, req, opt) - } - - pub fn rename_table_async(&self, req: &super::bigtable_table_service_messages::RenameTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.rename_table_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_column_family_opt(&self, req: &super::bigtable_table_service_messages::CreateColumnFamilyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_COLUMN_FAMILY, req, opt) - } - - pub fn create_column_family(&self, req: &super::bigtable_table_service_messages::CreateColumnFamilyRequest) -> ::grpcio::Result { - self.create_column_family_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_column_family_async_opt(&self, req: &super::bigtable_table_service_messages::CreateColumnFamilyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_COLUMN_FAMILY, req, opt) - } - - pub fn create_column_family_async(&self, req: &super::bigtable_table_service_messages::CreateColumnFamilyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_column_family_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_column_family_opt(&self, req: &super::bigtable_table_data::ColumnFamily, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_UPDATE_COLUMN_FAMILY, req, opt) - } - - pub fn update_column_family(&self, req: &super::bigtable_table_data::ColumnFamily) -> ::grpcio::Result { - self.update_column_family_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_column_family_async_opt(&self, req: &super::bigtable_table_data::ColumnFamily, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_UPDATE_COLUMN_FAMILY, req, opt) - } - - pub fn update_column_family_async(&self, req: &super::bigtable_table_data::ColumnFamily) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_column_family_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_column_family_opt(&self, req: &super::bigtable_table_service_messages::DeleteColumnFamilyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_COLUMN_FAMILY, req, opt) - } - - pub fn delete_column_family(&self, req: &super::bigtable_table_service_messages::DeleteColumnFamilyRequest) -> ::grpcio::Result { - self.delete_column_family_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_column_family_async_opt(&self, req: &super::bigtable_table_service_messages::DeleteColumnFamilyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_COLUMN_FAMILY, req, opt) - } - - pub fn delete_column_family_async(&self, req: &super::bigtable_table_service_messages::DeleteColumnFamilyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_column_family_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn bulk_delete_rows_opt(&self, req: &super::bigtable_table_service_messages::BulkDeleteRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_BULK_DELETE_ROWS, req, opt) - } - - pub fn bulk_delete_rows(&self, req: &super::bigtable_table_service_messages::BulkDeleteRowsRequest) -> ::grpcio::Result { - self.bulk_delete_rows_opt(req, ::grpcio::CallOption::default()) - } - - pub fn bulk_delete_rows_async_opt(&self, req: &super::bigtable_table_service_messages::BulkDeleteRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_BULK_DELETE_ROWS, req, opt) - } - - pub fn bulk_delete_rows_async(&self, req: &super::bigtable_table_service_messages::BulkDeleteRowsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.bulk_delete_rows_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait BigtableTableService { - fn create_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::CreateTableRequest, sink: ::grpcio::UnarySink); - fn list_tables(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::ListTablesRequest, sink: ::grpcio::UnarySink); - fn get_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::GetTableRequest, sink: ::grpcio::UnarySink); - fn delete_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::DeleteTableRequest, sink: ::grpcio::UnarySink); - fn rename_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::RenameTableRequest, sink: ::grpcio::UnarySink); - fn create_column_family(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::CreateColumnFamilyRequest, sink: ::grpcio::UnarySink); - fn update_column_family(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_data::ColumnFamily, sink: ::grpcio::UnarySink); - fn delete_column_family(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::DeleteColumnFamilyRequest, sink: ::grpcio::UnarySink); - fn bulk_delete_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::BulkDeleteRowsRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_bigtable_table_service(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_TABLE, move |ctx, req, resp| { - instance.create_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_LIST_TABLES, move |ctx, req, resp| { - instance.list_tables(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_GET_TABLE, move |ctx, req, resp| { - instance.get_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_TABLE, move |ctx, req, resp| { - instance.delete_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_RENAME_TABLE, move |ctx, req, resp| { - instance.rename_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_COLUMN_FAMILY, move |ctx, req, resp| { - instance.create_column_family(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_UPDATE_COLUMN_FAMILY, move |ctx, req, resp| { - instance.update_column_family(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_COLUMN_FAMILY, move |ctx, req, resp| { - instance.delete_column_family(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_BULK_DELETE_ROWS, move |ctx, req, resp| { - instance.bulk_delete_rows(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_messages.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_messages.rs deleted file mode 100644 index 814465df1f..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_messages.rs +++ /dev/null @@ -1,2039 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/table/v1/bigtable_table_service_messages.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct CreateTableRequest { - // message fields - pub name: ::std::string::String, - pub table_id: ::std::string::String, - pub table: ::protobuf::SingularPtrField, - pub initial_split_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 CreateTableRequest { - fn default() -> &'a CreateTableRequest { - ::default_instance() - } -} - -impl CreateTableRequest { - pub fn new() -> CreateTableRequest { - ::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 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()) - } - - // .google.bigtable.admin.table.v1.Table table = 3; - - - pub fn get_table(&self) -> &super::bigtable_table_data::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::bigtable_table_data::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::bigtable_table_data::Table { - if self.table.is_none() { - self.table.set_default(); - } - self.table.as_mut().unwrap() - } - - // Take field - pub fn take_table(&mut self) -> super::bigtable_table_data::Table { - self.table.take().unwrap_or_else(|| super::bigtable_table_data::Table::new()) - } - - // repeated string initial_split_keys = 4; - - - pub fn get_initial_split_keys(&self) -> &[::std::string::String] { - &self.initial_split_keys - } - pub fn clear_initial_split_keys(&mut self) { - self.initial_split_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_initial_split_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.initial_split_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_initial_split_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.initial_split_keys - } - - // Take field - pub fn take_initial_split_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.initial_split_keys, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for CreateTableRequest { - fn is_initialized(&self) -> bool { - for v in &self.table { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.table)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.initial_split_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.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.table_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.table_id); - } - 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; - } - for value in &self.initial_split_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.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.table_id.is_empty() { - os.write_string(2, &self.table_id)?; - } - 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)?; - } - for v in &self.initial_split_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() -> CreateTableRequest { - CreateTableRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &CreateTableRequest| { &m.name }, - |m: &mut CreateTableRequest| { &mut m.name }, - )); - 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::ProtobufTypeString>( - "initial_split_keys", - |m: &CreateTableRequest| { &m.initial_split_keys }, - |m: &mut CreateTableRequest| { &mut m.initial_split_keys }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateTableRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateTableRequest::new) - } -} - -impl ::protobuf::Clear for CreateTableRequest { - fn clear(&mut self) { - self.name.clear(); - self.table_id.clear(); - self.table.clear(); - self.initial_split_keys.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateTableRequest { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTablesRequest { - // 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 ListTablesRequest { - fn default() -> &'a ListTablesRequest { - ::default_instance() - } -} - -impl ListTablesRequest { - pub fn new() -> ListTablesRequest { - ::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 ListTablesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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() -> 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: &ListTablesRequest| { &m.name }, - |m: &mut ListTablesRequest| { &mut m.name }, - )); - ::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.name.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, - // 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.table.v1.Table tables = 1; - - - pub fn get_tables(&self) -> &[super::bigtable_table_data::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()) - } -} - -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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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, - // 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()) - } -} - -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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 }, - )); - ::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.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 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 RenameTableRequest { - // message fields - pub name: ::std::string::String, - pub new_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RenameTableRequest { - fn default() -> &'a RenameTableRequest { - ::default_instance() - } -} - -impl RenameTableRequest { - pub fn new() -> RenameTableRequest { - ::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 new_id = 2; - - - pub fn get_new_id(&self) -> &str { - &self.new_id - } - pub fn clear_new_id(&mut self) { - self.new_id.clear(); - } - - // Param is passed by value, moved - pub fn set_new_id(&mut self, v: ::std::string::String) { - self.new_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_new_id(&mut self) -> &mut ::std::string::String { - &mut self.new_id - } - - // Take field - pub fn take_new_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.new_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for RenameTableRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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.new_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.new_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.new_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.new_id.is_empty() { - os.write_string(2, &self.new_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() -> RenameTableRequest { - RenameTableRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &RenameTableRequest| { &m.name }, - |m: &mut RenameTableRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "new_id", - |m: &RenameTableRequest| { &m.new_id }, - |m: &mut RenameTableRequest| { &mut m.new_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RenameTableRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RenameTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RenameTableRequest::new) - } -} - -impl ::protobuf::Clear for RenameTableRequest { - fn clear(&mut self) { - self.name.clear(); - self.new_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RenameTableRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RenameTableRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateColumnFamilyRequest { - // message fields - pub name: ::std::string::String, - pub column_family_id: ::std::string::String, - pub column_family: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateColumnFamilyRequest { - fn default() -> &'a CreateColumnFamilyRequest { - ::default_instance() - } -} - -impl CreateColumnFamilyRequest { - pub fn new() -> CreateColumnFamilyRequest { - ::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 column_family_id = 2; - - - pub fn get_column_family_id(&self) -> &str { - &self.column_family_id - } - pub fn clear_column_family_id(&mut self) { - self.column_family_id.clear(); - } - - // Param is passed by value, moved - pub fn set_column_family_id(&mut self, v: ::std::string::String) { - self.column_family_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_column_family_id(&mut self) -> &mut ::std::string::String { - &mut self.column_family_id - } - - // Take field - pub fn take_column_family_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.column_family_id, ::std::string::String::new()) - } - - // .google.bigtable.admin.table.v1.ColumnFamily column_family = 3; - - - pub fn get_column_family(&self) -> &super::bigtable_table_data::ColumnFamily { - self.column_family.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_column_family(&mut self) { - self.column_family.clear(); - } - - pub fn has_column_family(&self) -> bool { - self.column_family.is_some() - } - - // Param is passed by value, moved - pub fn set_column_family(&mut self, v: super::bigtable_table_data::ColumnFamily) { - self.column_family = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_column_family(&mut self) -> &mut super::bigtable_table_data::ColumnFamily { - if self.column_family.is_none() { - self.column_family.set_default(); - } - self.column_family.as_mut().unwrap() - } - - // Take field - pub fn take_column_family(&mut self) -> super::bigtable_table_data::ColumnFamily { - self.column_family.take().unwrap_or_else(|| super::bigtable_table_data::ColumnFamily::new()) - } -} - -impl ::protobuf::Message for CreateColumnFamilyRequest { - fn is_initialized(&self) -> bool { - for v in &self.column_family { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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.column_family_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.column_family)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.column_family_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.column_family_id); - } - if let Some(ref v) = self.column_family.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.column_family_id.is_empty() { - os.write_string(2, &self.column_family_id)?; - } - if let Some(ref v) = self.column_family.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() -> CreateColumnFamilyRequest { - CreateColumnFamilyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &CreateColumnFamilyRequest| { &m.name }, - |m: &mut CreateColumnFamilyRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "column_family_id", - |m: &CreateColumnFamilyRequest| { &m.column_family_id }, - |m: &mut CreateColumnFamilyRequest| { &mut m.column_family_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "column_family", - |m: &CreateColumnFamilyRequest| { &m.column_family }, - |m: &mut CreateColumnFamilyRequest| { &mut m.column_family }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateColumnFamilyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateColumnFamilyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateColumnFamilyRequest::new) - } -} - -impl ::protobuf::Clear for CreateColumnFamilyRequest { - fn clear(&mut self) { - self.name.clear(); - self.column_family_id.clear(); - self.column_family.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateColumnFamilyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateColumnFamilyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteColumnFamilyRequest { - // 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 DeleteColumnFamilyRequest { - fn default() -> &'a DeleteColumnFamilyRequest { - ::default_instance() - } -} - -impl DeleteColumnFamilyRequest { - pub fn new() -> DeleteColumnFamilyRequest { - ::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 DeleteColumnFamilyRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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() -> DeleteColumnFamilyRequest { - DeleteColumnFamilyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteColumnFamilyRequest| { &m.name }, - |m: &mut DeleteColumnFamilyRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteColumnFamilyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteColumnFamilyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteColumnFamilyRequest::new) - } -} - -impl ::protobuf::Clear for DeleteColumnFamilyRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteColumnFamilyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteColumnFamilyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BulkDeleteRowsRequest { - // message fields - pub table_name: ::std::string::String, - // message oneof groups - pub target: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BulkDeleteRowsRequest { - fn default() -> &'a BulkDeleteRowsRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum BulkDeleteRowsRequest_oneof_target { - row_key_prefix(::std::vec::Vec), - delete_all_data_from_table(bool), -} - -impl BulkDeleteRowsRequest { - pub fn new() -> BulkDeleteRowsRequest { - ::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()) - } - - // bytes row_key_prefix = 2; - - - pub fn get_row_key_prefix(&self) -> &[u8] { - match self.target { - ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::row_key_prefix(ref v)) => v, - _ => &[], - } - } - 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(BulkDeleteRowsRequest_oneof_target::row_key_prefix(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_row_key_prefix(&mut self, v: ::std::vec::Vec) { - self.target = ::std::option::Option::Some(BulkDeleteRowsRequest_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(BulkDeleteRowsRequest_oneof_target::row_key_prefix(_)) = self.target { - } else { - self.target = ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::row_key_prefix(::std::vec::Vec::new())); - } - match self.target { - ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::row_key_prefix(ref mut v)) => v, - _ => panic!(), - } - } - - // 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(BulkDeleteRowsRequest_oneof_target::row_key_prefix(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bool delete_all_data_from_table = 3; - - - pub fn get_delete_all_data_from_table(&self) -> bool { - match self.target { - ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(v)) => v, - _ => false, - } - } - 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(BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_delete_all_data_from_table(&mut self, v: bool) { - self.target = ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(v)) - } -} - -impl ::protobuf::Message for BulkDeleteRowsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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 => { - 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(BulkDeleteRowsRequest_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(BulkDeleteRowsRequest_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())?; - }, - }; - } - ::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 let ::std::option::Option::Some(ref v) = self.target { - match v { - &BulkDeleteRowsRequest_oneof_target::row_key_prefix(ref v) => { - my_size += ::protobuf::rt::bytes_size(2, &v); - }, - &BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(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.table_name.is_empty() { - os.write_string(1, &self.table_name)?; - } - if let ::std::option::Option::Some(ref v) = self.target { - match v { - &BulkDeleteRowsRequest_oneof_target::row_key_prefix(ref v) => { - os.write_bytes(2, v)?; - }, - &BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(v) => { - os.write_bool(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() -> BulkDeleteRowsRequest { - BulkDeleteRowsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &BulkDeleteRowsRequest| { &m.table_name }, - |m: &mut BulkDeleteRowsRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "row_key_prefix", - BulkDeleteRowsRequest::has_row_key_prefix, - BulkDeleteRowsRequest::get_row_key_prefix, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "delete_all_data_from_table", - BulkDeleteRowsRequest::has_delete_all_data_from_table, - BulkDeleteRowsRequest::get_delete_all_data_from_table, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BulkDeleteRowsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BulkDeleteRowsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BulkDeleteRowsRequest::new) - } -} - -impl ::protobuf::Clear for BulkDeleteRowsRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.target = ::std::option::Option::None; - self.target = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BulkDeleteRowsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BulkDeleteRowsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \nDgoogle/bigtable/admin/table/v1/bigtable_table_service_messages.proto\ - \x12\x1egoogle.bigtable.admin.table.v1\x1a8google/bigtable/admin/table/v\ - 1/bigtable_table_data.proto\"\xae\x01\n\x12CreateTableRequest\x12\x12\n\ - \x04name\x18\x01\x20\x01(\tR\x04name\x12\x19\n\x08table_id\x18\x02\x20\ - \x01(\tR\x07tableId\x12;\n\x05table\x18\x03\x20\x01(\x0b2%.google.bigtab\ - le.admin.table.v1.TableR\x05table\x12,\n\x12initial_split_keys\x18\x04\ - \x20\x03(\tR\x10initialSplitKeys\"'\n\x11ListTablesRequest\x12\x12\n\x04\ - name\x18\x01\x20\x01(\tR\x04name\"S\n\x12ListTablesResponse\x12=\n\x06ta\ - bles\x18\x01\x20\x03(\x0b2%.google.bigtable.admin.table.v1.TableR\x06tab\ - les\"%\n\x0fGetTableRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04nam\ - e\"(\n\x12DeleteTableRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04na\ - me\"?\n\x12RenameTableRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04n\ - ame\x12\x15\n\x06new_id\x18\x02\x20\x01(\tR\x05newId\"\xac\x01\n\x19Crea\ - teColumnFamilyRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12(\ - \n\x10column_family_id\x18\x02\x20\x01(\tR\x0ecolumnFamilyId\x12Q\n\rcol\ - umn_family\x18\x03\x20\x01(\x0b2,.google.bigtable.admin.table.v1.ColumnF\ - amilyR\x0ccolumnFamily\"/\n\x19DeleteColumnFamilyRequest\x12\x12\n\x04na\ - me\x18\x01\x20\x01(\tR\x04name\"\xa6\x01\n\x15BulkDeleteRowsRequest\x12\ - \x1d\n\ntable_name\x18\x01\x20\x01(\tR\ttableName\x12&\n\x0erow_key_pref\ - ix\x18\x02\x20\x01(\x0cH\0R\x0crowKeyPrefix\x12<\n\x1adelete_all_data_fr\ - om_table\x18\x03\x20\x01(\x08H\0R\x16deleteAllDataFromTableB\x08\n\x06ta\ - rgetB\x8e\x01\n\"com.google.bigtable.admin.table.v1B!BigtableTableServic\ - eMessagesProtoP\x01ZCgoogle.golang.org/genproto/googleapis/bigtable/admi\ - n/table/v1;tableJ\x85!\n\x06\x12\x04\x0e\0r\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\0B\n\x08\n\ - \x01\x08\x12\x03\x14\0Z\n\t\n\x02\x08\x0b\x12\x03\x14\0Z\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\0B\n\t\n\x02\x08\x08\x12\x03\x16\0B\n\x08\n\x01\x08\x12\x03\x17\0;\ - \n\t\n\x02\x08\x01\x12\x03\x17\0;\n\n\n\x02\x04\0\x12\x04\x19\05\x01\n\n\ - \n\x03\x04\0\x01\x12\x03\x19\x08\x1a\nO\n\x04\x04\0\x02\0\x12\x03\x1b\ - \x02\x12\x1aB\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20in\x20\ - which\x20to\x20create\x20the\x20new\x20table.\n\n\r\n\x05\x04\0\x02\0\ - \x04\x12\x04\x1b\x02\x19\x1c\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\r\n\x0c\n\x05\x04\0\x02\0\ - \x03\x12\x03\x1b\x10\x11\n\x94\x01\n\x04\x04\0\x02\x01\x12\x03\x1f\x02\ - \x16\x1a\x86\x01\x20The\x20name\x20by\x20which\x20the\x20new\x20table\ - \x20should\x20be\x20referred\x20to\x20within\x20the\x20cluster,\n\x20e.g\ - .\x20\"foobar\"\x20rather\x20than\x20\"/tables/foobar\".\n\ - \n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x1f\x02\x1b\x12\n\x0c\n\x05\x04\0\ - \x02\x01\x05\x12\x03\x1f\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\ - \x1f\t\x11\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x1f\x14\x15\n\x9c\x01\n\ - \x04\x04\0\x02\x02\x12\x03#\x02\x12\x1a\x8e\x01\x20The\x20Table\x20to\ - \x20create.\x20The\x20`name`\x20field\x20of\x20the\x20Table\x20and\x20al\ - l\x20of\x20its\n\x20ColumnFamilies\x20must\x20be\x20left\x20blank,\x20an\ - d\x20will\x20be\x20populated\x20in\x20the\x20response.\n\n\r\n\x05\x04\0\ - \x02\x02\x04\x12\x04#\x02\x1f\x16\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\n\x84\x06\n\x04\x04\0\x02\x03\x12\x034\x02\ - )\x1a\xf6\x05\x20The\x20optional\x20list\x20of\x20row\x20keys\x20that\ - \x20will\x20be\x20used\x20to\x20initially\x20split\x20the\n\x20table\x20\ - into\x20several\x20tablets\x20(Tablets\x20are\x20similar\x20to\x20HBase\ - \x20regions).\n\x20Given\x20two\x20split\x20keys,\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\x20Ex\ - ample:\n\x20\x20*\x20Row\x20keys\x20:=\x20[\"a\",\x20\"apple\",\x20\"cus\ - tom\",\x20\"customer_1\",\x20\"customer_2\",\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"other\",\x20\"zz\"]\n\x20\ - \x20*\x20initial_split_keys\x20:=\x20[\"apple\",\x20\"customer_1\",\x20\ - \"customer_2\",\x20\"other\"]\n\x20\x20*\x20Key\x20assignment:\n\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-\x20Tab\ - let\x202\x20[apple,\x20customer_1)\x20\x20\x20\x20\x20\x20=>\x20{\"apple\ - \",\x20\"custom\"}.\n\x20\x20\x20\x20-\x20Tablet\x203\x20[customer_1,\ - \x20customer_2)\x20=>\x20{\"customer_1\"}.\n\x20\x20\x20\x20-\x20Tablet\ - \x204\x20[customer_2,\x20other)\x20\x20\x20\x20\x20\x20=>\x20{\"customer\ - _2\"}.\n\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\"z\ - z\"}.\n\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x034\x02\n\n\x0c\n\x05\x04\0\ - \x02\x03\x05\x12\x034\x0b\x11\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x034\x12\ - $\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x034'(\n\n\n\x02\x04\x01\x12\x047\0:\ - \x01\n\n\n\x03\x04\x01\x01\x12\x037\x08\x19\nP\n\x04\x04\x01\x02\0\x12\ - \x039\x02\x12\x1aC\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20f\ - or\x20which\x20tables\x20should\x20be\x20listed.\n\n\r\n\x05\x04\x01\x02\ - \0\x04\x12\x049\x027\x1b\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x039\x02\x08\ - \n\x0c\n\x05\x04\x01\x02\0\x01\x12\x039\t\r\n\x0c\n\x05\x04\x01\x02\0\ - \x03\x12\x039\x10\x11\n\n\n\x02\x04\x02\x12\x04<\0@\x01\n\n\n\x03\x04\ - \x02\x01\x12\x03<\x08\x1a\nt\n\x04\x04\x02\x02\0\x12\x03?\x02\x1c\x1ag\ - \x20The\x20tables\x20present\x20in\x20the\x20requested\x20cluster.\n\x20\ - At\x20present,\x20only\x20the\x20names\x20of\x20the\x20tables\x20are\x20\ - populated.\n\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03?\x02\n\n\x0c\n\x05\ - \x04\x02\x02\0\x06\x12\x03?\x0b\x10\n\x0c\n\x05\x04\x02\x02\0\x01\x12\ - \x03?\x11\x17\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03?\x1a\x1b\n\n\n\x02\ - \x04\x03\x12\x04B\0E\x01\n\n\n\x03\x04\x03\x01\x12\x03B\x08\x17\n6\n\x04\ - \x04\x03\x02\0\x12\x03D\x02\x12\x1a)\x20The\x20unique\x20name\x20of\x20t\ - he\x20requested\x20table.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04D\x02B\ - \x19\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03D\x02\x08\n\x0c\n\x05\x04\x03\ - \x02\0\x01\x12\x03D\t\r\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03D\x10\x11\n\ - \n\n\x02\x04\x04\x12\x04G\0J\x01\n\n\n\x03\x04\x04\x01\x12\x03G\x08\x1a\ - \n:\n\x04\x04\x04\x02\0\x12\x03I\x02\x12\x1a-\x20The\x20unique\x20name\ - \x20of\x20the\x20table\x20to\x20be\x20deleted.\n\n\r\n\x05\x04\x04\x02\0\ - \x04\x12\x04I\x02G\x1c\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03I\x02\x08\n\ - \x0c\n\x05\x04\x04\x02\0\x01\x12\x03I\t\r\n\x0c\n\x05\x04\x04\x02\0\x03\ - \x12\x03I\x10\x11\n\n\n\x02\x04\x05\x12\x04L\0S\x01\n\n\n\x03\x04\x05\ - \x01\x12\x03L\x08\x1a\n4\n\x04\x04\x05\x02\0\x12\x03N\x02\x12\x1a'\x20Th\ - e\x20current\x20unique\x20name\x20of\x20the\x20table.\n\n\r\n\x05\x04\ - \x05\x02\0\x04\x12\x04N\x02L\x1c\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03N\ - \x02\x08\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03N\t\r\n\x0c\n\x05\x04\x05\ - \x02\0\x03\x12\x03N\x10\x11\n\x9f\x01\n\x04\x04\x05\x02\x01\x12\x03R\x02\ - \x14\x1a\x91\x01\x20The\x20new\x20name\x20by\x20which\x20the\x20table\ - \x20should\x20be\x20referred\x20to\x20within\x20its\x20containing\n\x20c\ - luster,\x20e.g.\x20\"foobar\"\x20rather\x20than\x20\"/tabl\ - es/foobar\".\n\n\r\n\x05\x04\x05\x02\x01\x04\x12\x04R\x02N\x12\n\x0c\n\ - \x05\x04\x05\x02\x01\x05\x12\x03R\x02\x08\n\x0c\n\x05\x04\x05\x02\x01\ - \x01\x12\x03R\t\x0f\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x03R\x12\x13\n\n\ - \n\x02\x04\x06\x12\x04U\0_\x01\n\n\n\x03\x04\x06\x01\x12\x03U\x08!\nU\n\ - \x04\x04\x06\x02\0\x12\x03W\x02\x12\x1aH\x20The\x20unique\x20name\x20of\ - \x20the\x20table\x20in\x20which\x20to\x20create\x20the\x20new\x20column\ - \x20family.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04W\x02U#\n\x0c\n\x05\x04\ - \x06\x02\0\x05\x12\x03W\x02\x08\n\x0c\n\x05\x04\x06\x02\0\x01\x12\x03W\t\ - \r\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03W\x10\x11\n\xa0\x01\n\x04\x04\ - \x06\x02\x01\x12\x03[\x02\x1e\x1a\x92\x01\x20The\x20name\x20by\x20which\ - \x20the\x20new\x20column\x20family\x20should\x20be\x20referred\x20to\x20\ - within\x20the\n\x20table,\x20e.g.\x20\"foobar\"\x20rather\x20than\x20\"<\ - table_name>/columnFamilies/foobar\".\n\n\r\n\x05\x04\x06\x02\x01\x04\x12\ - \x04[\x02W\x12\n\x0c\n\x05\x04\x06\x02\x01\x05\x12\x03[\x02\x08\n\x0c\n\ - \x05\x04\x06\x02\x01\x01\x12\x03[\t\x19\n\x0c\n\x05\x04\x06\x02\x01\x03\ - \x12\x03[\x1c\x1d\nP\n\x04\x04\x06\x02\x02\x12\x03^\x02!\x1aC\x20The\x20\ - column\x20family\x20to\x20create.\x20The\x20`name`\x20field\x20must\x20b\ - e\x20left\x20blank.\n\n\r\n\x05\x04\x06\x02\x02\x04\x12\x04^\x02[\x1e\n\ - \x0c\n\x05\x04\x06\x02\x02\x06\x12\x03^\x02\x0e\n\x0c\n\x05\x04\x06\x02\ - \x02\x01\x12\x03^\x0f\x1c\n\x0c\n\x05\x04\x06\x02\x02\x03\x12\x03^\x1f\ - \x20\n\n\n\x02\x04\x07\x12\x04a\0d\x01\n\n\n\x03\x04\x07\x01\x12\x03a\ - \x08!\nB\n\x04\x04\x07\x02\0\x12\x03c\x02\x12\x1a5\x20The\x20unique\x20n\ - ame\x20of\x20the\x20column\x20family\x20to\x20be\x20deleted.\n\n\r\n\x05\ - \x04\x07\x02\0\x04\x12\x04c\x02a#\n\x0c\n\x05\x04\x07\x02\0\x05\x12\x03c\ - \x02\x08\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03c\t\r\n\x0c\n\x05\x04\x07\ - \x02\0\x03\x12\x03c\x10\x11\n\n\n\x02\x04\x08\x12\x04f\0r\x01\n\n\n\x03\ - \x04\x08\x01\x12\x03f\x08\x1d\nO\n\x04\x04\x08\x02\0\x12\x03h\x02\x18\ - \x1aB\x20The\x20unique\x20name\x20of\x20the\x20table\x20on\x20which\x20t\ - o\x20perform\x20the\x20bulk\x20delete\n\n\r\n\x05\x04\x08\x02\0\x04\x12\ - \x04h\x02f\x1f\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03h\x02\x08\n\x0c\n\ - \x05\x04\x08\x02\0\x01\x12\x03h\t\x13\n\x0c\n\x05\x04\x08\x02\0\x03\x12\ - \x03h\x16\x17\n\x0c\n\x04\x04\x08\x08\0\x12\x04j\x02q\x03\n\x0c\n\x05\ - \x04\x08\x08\0\x01\x12\x03j\x08\x0e\nb\n\x04\x04\x08\x02\x01\x12\x03m\ - \x04\x1d\x1aU\x20Delete\x20all\x20rows\x20that\x20start\x20with\x20this\ - \x20row\x20key\x20prefix.\x20Prefix\x20cannot\x20be\n\x20zero\x20length.\ - \n\n\x0c\n\x05\x04\x08\x02\x01\x05\x12\x03m\x04\t\n\x0c\n\x05\x04\x08\ - \x02\x01\x01\x12\x03m\n\x18\n\x0c\n\x05\x04\x08\x02\x01\x03\x12\x03m\x1b\ - \x1c\nN\n\x04\x04\x08\x02\x02\x12\x03p\x04(\x1aA\x20Delete\x20all\x20row\ - s\x20in\x20the\x20table.\x20Setting\x20this\x20to\x20false\x20is\x20a\ - \x20no-op.\n\n\x0c\n\x05\x04\x08\x02\x02\x05\x12\x03p\x04\x08\n\x0c\n\ - \x05\x04\x08\x02\x02\x01\x12\x03p\t#\n\x0c\n\x05\x04\x08\x02\x02\x03\x12\ - \x03p&'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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs deleted file mode 100644 index 06b774ca9c..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs +++ /dev/null @@ -1,5783 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/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_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct CreateInstanceRequest { - // message fields - pub parent: ::std::string::String, - pub instance_id: ::std::string::String, - pub instance: ::protobuf::SingularPtrField, - pub clusters: ::std::collections::HashMap<::std::string::String, super::instance::Cluster>, - // 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.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()) - } -} - -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)?; - }, - 4 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.clusters)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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::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); - 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)?; - } - ::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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - 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 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.clusters.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 GetInstanceRequest { - // 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 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 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.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 ListInstancesRequest { - // message fields - pub parent: ::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 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()) - } - - // 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 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 => { - ::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_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_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() -> 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 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_token.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 failed_locations: ::protobuf::RepeatedField<::std::string::String>, - 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.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()) - } -} - -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_repeated_string_into(wire_type, is, &mut self.failed_locations)?; - }, - 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.instances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.failed_locations { - my_size += ::protobuf::rt::string_size(2, &value); - }; - 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.instances { - 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.failed_locations { - os.write_string(2, &v)?; - }; - 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() -> 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 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.failed_locations.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 PartialUpdateInstanceRequest { - // message fields - pub instance: ::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 PartialUpdateInstanceRequest { - fn default() -> &'a PartialUpdateInstanceRequest { - ::default_instance() - } -} - -impl PartialUpdateInstanceRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.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.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.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.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() -> 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 default_instance() -> &'static PartialUpdateInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartialUpdateInstanceRequest::new) - } -} - -impl ::protobuf::Clear for PartialUpdateInstanceRequest { - fn clear(&mut self) { - self.instance.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteInstanceRequest { - // 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 DeleteInstanceRequest { - fn default() -> &'a DeleteInstanceRequest { - ::default_instance() - } -} - -impl DeleteInstanceRequest { - pub fn new() -> DeleteInstanceRequest { - ::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 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static DeleteInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteInstanceRequest::new) - } -} - -impl ::protobuf::Clear for DeleteInstanceRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateClusterRequest { - // message fields - pub parent: ::std::string::String, - pub cluster_id: ::std::string::String, - pub cluster: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateClusterRequest { - fn default() -> &'a CreateClusterRequest { - ::default_instance() - } -} - -impl CreateClusterRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cluster_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cluster)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.cluster_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.cluster_id); - } - 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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static CreateClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateClusterRequest::new) - } -} - -impl ::protobuf::Clear for CreateClusterRequest { - fn clear(&mut self) { - self.parent.clear(); - self.cluster_id.clear(); - self.cluster.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetClusterRequest { - // 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 GetClusterRequest { - fn default() -> &'a GetClusterRequest { - ::default_instance() - } -} - -impl GetClusterRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static GetClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetClusterRequest::new) - } -} - -impl ::protobuf::Clear for GetClusterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListClustersRequest { - // message fields - pub parent: ::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 ListClustersRequest { - fn default() -> &'a ListClustersRequest { - ::default_instance() - } -} - -impl ListClustersRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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_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_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() -> 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 default_instance() -> &'static ListClustersRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListClustersRequest::new) - } -} - -impl ::protobuf::Clear for ListClustersRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListClustersResponse { - // message fields - pub clusters: ::protobuf::RepeatedField, - pub failed_locations: ::protobuf::RepeatedField<::std::string::String>, - 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 ListClustersResponse { - fn default() -> &'a ListClustersResponse { - ::default_instance() - } -} - -impl ListClustersResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.failed_locations)?; - }, - 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.clusters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.failed_locations { - my_size += ::protobuf::rt::string_size(2, &value); - }; - 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.clusters { - 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.failed_locations { - os.write_string(2, &v)?; - }; - 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() -> 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 default_instance() -> &'static ListClustersResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListClustersResponse::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteClusterRequest { - // 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 DeleteClusterRequest { - fn default() -> &'a DeleteClusterRequest { - ::default_instance() - } -} - -impl DeleteClusterRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static DeleteClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteClusterRequest::new) - } -} - -impl ::protobuf::Clear for DeleteClusterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -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>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateInstanceMetadata { - fn default() -> &'a CreateInstanceMetadata { - ::default_instance() - } -} - -impl CreateInstanceMetadata { - pub fn new() -> 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(); - } - - 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: CreateInstanceRequest) { - 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 CreateInstanceRequest { - 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) -> 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(()) - } - - // 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() -> 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 default_instance() -> &'static CreateInstanceMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateInstanceMetadata::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -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>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateInstanceMetadata { - fn default() -> &'a UpdateInstanceMetadata { - ::default_instance() - } -} - -impl UpdateInstanceMetadata { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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() -> 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 default_instance() -> &'static UpdateInstanceMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateInstanceMetadata::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -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>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateClusterMetadata { - fn default() -> &'a CreateClusterMetadata { - ::default_instance() - } -} - -impl CreateClusterMetadata { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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() -> 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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateClusterMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateClusterMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateClusterMetadata::new) - } -} - -impl ::protobuf::Clear for CreateClusterMetadata { - 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 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateClusterMetadata { - // 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 UpdateClusterMetadata { - fn default() -> &'a UpdateClusterMetadata { - ::default_instance() - } -} - -impl UpdateClusterMetadata { - pub fn new() -> UpdateClusterMetadata { - ::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()) - } -} - -impl ::protobuf::Message for UpdateClusterMetadata { - 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() -> 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_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 default_instance() -> &'static UpdateClusterMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateClusterMetadata::new) - } -} - -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 ::std::fmt::Debug for UpdateClusterMetadata { - 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) - } -} - -#[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() - } -} - -impl ::protobuf::Message for UpdateAppProfileMetadata { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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() -> 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 fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateAppProfileMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateAppProfileMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateAppProfileMetadata::new) - } -} - -impl ::protobuf::Clear for UpdateAppProfileMetadata { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateAppProfileMetadata { - 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) - } -} - -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\"R\n\x12GetInstanceRequest\x12<\n\x04name\ - \x18\x01\x20\x01(\tR\x04nameB(\xfaA\"\n\x20bigtable.googleapis.com/Insta\ - nce\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\ - \"U\n\x15DeleteInstanceRequest\x12<\n\x04name\x18\x01\x20\x01(\tR\x04nam\ - eB(\xfaA\"\n\x20bigtable.googleapis.com/Instance\xe0A\x02\"\xbe\x01\n\ - \x14CreateClusterRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\ - (\xe0A\x02\xfaA\"\n\x20bigtable.googleapis.com/Instance\x12\"\n\ncluster\ - _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\"P\n\x11GetClusterRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\ - \x04nameB'\xfaA!\n\x1fbigtable.googleapis.com/Cluster\xe0A\x02\"v\n\x13L\ - istClustersRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\xfaA\ - \"\n\x20bigtable.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.ClusterR\ - \x08clusters\x12)\n\x10failed_locations\x18\x02\x20\x03(\tR\x0ffailedLoc\ - ations\x12&\n\x0fnext_page_token\x18\x03\x20\x01(\tR\rnextPageToken\"S\n\ - \x14DeleteClusterRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\ - \xfaA!\n\x1fbigtable.googleapis.com/Cluster\xe0A\x02\"\xf0\x01\n\x16Crea\ - teInstanceMetadata\x12Z\n\x10original_request\x18\x01\x20\x01(\x0b2/.goo\ - gle.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\"\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\"\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\"\xfb\x01\n\x17CreateAppProfileRequest\x12@\n\x06p\ - arent\x18\x01\x20\x01(\tR\x06parentB(\xe0A\x02\xfaA\"\n\x20bigtable.goog\ - leapis.com/Instance\x12)\n\x0eapp_profile_id\x18\x02\x20\x01(\tR\x0cappP\ - rofileIdB\x03\xe0A\x02\x12J\n\x0bapp_profile\x18\x03\x20\x01(\x0b2$.goog\ - le.bigtable.admin.v2.AppProfileR\nappProfileB\x03\xe0A\x02\x12'\n\x0fign\ - ore_warnings\x18\x04\x20\x01(\x08R\x0eignoreWarnings\"V\n\x14GetAppProfi\ - leRequest\x12>\n\x04name\x18\x01\x20\x01(\tR\x04nameB*\xe0A\x02\xfaA$\n\ - \"bigtable.googleapis.com/AppProfile\"\x96\x01\n\x16ListAppProfilesReque\ - st\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\xe0A\x02\xfaA\"\n\ - \x20bigtable.googleapis.com/Instance\x12\x1b\n\tpage_size\x18\x03\x20\ - \x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageTo\ - ken\"\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\x10\ - failed_locations\x18\x03\x20\x03(\tR\x0ffailedLocations\"\xd0\x01\n\x17U\ - pdateAppProfileRequest\x12J\n\x0bapp_profile\x18\x01\x20\x01(\x0b2$.goog\ - le.bigtable.admin.v2.AppProfileR\nappProfileB\x03\xe0A\x02\x12@\n\x0bupd\ - ate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMas\ - kB\x03\xe0A\x02\x12'\n\x0fignore_warnings\x18\x03\x20\x01(\x08R\x0eignor\ - eWarnings\"\x87\x01\n\x17DeleteAppProfileRequest\x12>\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB*\xe0A\x02\xfaA$\n\"bigtable.googleapis.com/AppProf\ - ile\x12,\n\x0fignore_warnings\x18\x02\x20\x01(\x08R\x0eignoreWarningsB\ - \x03\xe0A\x02\"\x1a\n\x18UpdateAppProfileMetadata2\x92\x1e\n\x15Bigtable\ - InstanceAdmin\x12\xda\x01\n\x0eCreateInstance\x12/.google.bigtable.admin\ - .v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xdaA$p\ - arent,instance_id,instance,clusters\xcaA\"\n\x08Instance\x12\x16CreateIn\ - stanceMetadata\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\ - \x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInst\ - anceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\x82\xd3\xe4\x93\ - \x02#\x12!/v2/{name=projects/*/instances/*}\xdaA\x04name\x12\xa4\x01\n\r\ - ListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.go\ - ogle.bigtable.admin.v2.ListInstancesResponse\"2\xdaA\x06parent\x82\xd3\ - \xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpd\ - ateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtabl\ - e.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/ins\ - tances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x126.google.bigta\ - ble.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Ope\ - ration\"x\x82\xd3\xe4\x93\x0262*/v2/{instance.name=projects/*/instances/\ - *}:\x08instance\xdaA\x14instance,update_mask\xcaA\"\n\x08Instance\x12\ - \x16UpdateInstanceMetadata\x12\x8b\x01\n\x0eDeleteInstance\x12/.google.b\ - igtable.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.bigtable.admin.v2.CreateCluste\ - rRequest\x1a\x1d.google.longrunning.Operation\"|\xcaA\x20\n\x07Cluster\ - \x12\x15CreateClusterMetadata\x82\xd3\xe4\x93\x027\",/v2/{parent=project\ - s/*/instances/*}/clusters:\x07cluster\xdaA\x19parent,cluster_id,cluster\ - \x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterReque\ - st\x1a!.google.bigtable.admin.v2.Cluster\";\xdaA\x04name\x82\xd3\xe4\x93\ - \x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0c\ - ListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..goog\ - le.bigtable.admin.v2.ListClustersResponse\"=\xdaA\x06parent\x82\xd3\xe4\ - \x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\ - \rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.lon\ - grunning.Operation\"Z\x82\xd3\xe4\x93\x021\x1a,/v2/{name=projects/*/inst\ - ances/*/clusters/*}:\x01*\xcaA\x20\n\x07Cluster\x12\x15UpdateClusterMeta\ - data\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteCl\ - usterRequest\x1a\x16.google.protobuf.Empty\";\xdaA\x04name\x82\xd3\xe4\ - \x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\ - \x10CreateAppProfile\x121.google.bigtable.admin.v2.CreateAppProfileReque\ - st\x1a$.google.bigtable.admin.v2.AppProfile\"h\x82\xd3\xe4\x93\x02>\"//v\ - 2/{parent=projects/*/instances/*}/appProfiles:\x0bapp_profile\xdaA!paren\ - t,app_profile_id,app_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bi\ - gtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppPr\ - ofile\">\x82\xd3\xe4\x93\x021\x12//v2/{name=projects/*/instances/*/appPr\ - ofiles/*}\xdaA\x04name\x12\xb8\x01\n\x0fListAppProfiles\x120.google.bigt\ - able.admin.v2.ListAppProfilesRequest\x1a1.google.bigtable.admin.v2.ListA\ - ppProfilesResponse\"@\x82\xd3\xe4\x93\x021\x12//v2/{parent=projects/*/in\ - stances/*}/appProfiles\xdaA\x06parent\x12\xfa\x01\n\x10UpdateAppProfile\ - \x121.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.lo\ - ngrunning.Operation\"\x93\x01\xdaA\x17app_profile,update_mask\xcaA&\n\nA\ - ppProfile\x12\x18UpdateAppProfileMetadata\x82\xd3\xe4\x93\x02J2;/v2/{app\ - _profile.name=projects/*/instances/*/appProfiles/*}:\x0bapp_profile\x12\ - \x9d\x01\n\x10DeleteAppProfile\x121.google.bigtable.admin.v2.DeleteAppPr\ - ofileRequest\x1a\x16.google.protobuf.Empty\">\x82\xd3\xe4\x93\x021*//v2/\ - {name=projects/*/instances/*/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/*/instanc\ - es/*}:getIamPolicy:\x01*\xdaA\x08resource\x12\x9a\x01\n\x0cSetIamPolicy\ - \x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"O\ - \xdaA\x0fresource,policy\x82\xd3\xe4\x93\x027\"2/v2/{resource=projects/*\ - /instances/*}:setIamPolicy:\x01*\x12\xc5\x01\n\x12TestIamPermissions\x12\ - (.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPerm\ - issionsResponse\"Z\xdaA\x14resource,permissions\x82\xd3\xe4\x93\x02=\"8/\ - v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*\x1a\x9a\ - \x03\xcaA\x1cbigtableadmin.googleapis.com\xd2A\xf7\x02https://www.google\ - apis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.ad\ - min.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,http\ - s://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.\ - com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cl\ - oud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\ - \xe2\x01\n\x1ccom.google.bigtable.admin.v2B\x1aBigtableInstanceAdminProt\ - oP\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\x9d\x8e\ - \x01\n\x07\x12\x05\x0e\0\xbd\x04\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202020\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\xec\x01\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\n4\ - \n\x04\x06\0\x02\0\x12\x045\x02?\x03\x1a&\x20Create\x20an\x20instance\ - \x20within\x20a\x20project.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x035\x06\ - \x14\n\x0c\n\x05\x06\0\x02\0\x02\x12\x035\x15*\n\x0c\n\x05\x06\0\x02\0\ - \x03\x12\x0355Q\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:\x04R\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x03:\x04R\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\n3\n\x04\x06\0\x02\x01\x12\x04B\x02G\x03\x1a%\ - \x20Gets\x20information\x20about\x20an\x20instance.\n\n\x0c\n\x05\x06\0\ - \x02\x01\x01\x12\x03B\x06\x11\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03B\x12\ - $\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03B/7\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?\n\x04\x06\0\x02\x02\x12\x04J\x02\ - O\x03\x1a1\x20Lists\x20information\x20about\x20instances\x20in\x20a\x20p\ - roject.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03J\x06\x13\n\x0c\n\x05\x06\ - \0\x02\x02\x02\x12\x03J\x14(\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03J3H\n\ - \r\n\x05\x06\0\x02\x02\x04\x12\x04K\x04M\x06\n\x11\n\t\x06\0\x02\x02\x04\ - \xb0\xca\xbc\"\x12\x04K\x04M\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03N\ - \x044\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03N\x044\n\xcc\x01\n\ - \x04\x06\0\x02\x03\x12\x04T\x02Y\x03\x1a\xbd\x01\x20Updates\x20an\x20ins\ - tance\x20within\x20a\x20project.\x20This\x20method\x20updates\x20only\ - \x20the\x20display\n\x20name\x20and\x20type\x20for\x20an\x20Instance.\ - \x20To\x20update\x20other\x20Instance\x20properties,\x20such\x20as\n\x20\ - labels,\x20use\x20PartialUpdateInstance.\n\n\x0c\n\x05\x06\0\x02\x03\x01\ - \x12\x03T\x06\x14\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03T\x15\x1d\n\x0c\n\ - \x05\x06\0\x02\x03\x03\x12\x03T(0\n\r\n\x05\x06\0\x02\x03\x04\x12\x04U\ - \x04X\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04U\x04X\x06\n\ - \xa2\x01\n\x04\x06\0\x02\x04\x12\x04]\x02g\x03\x1a\x93\x01\x20Partially\ - \x20updates\x20an\x20instance\x20within\x20a\x20project.\x20This\x20meth\ - od\x20can\x20modify\x20all\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\x03]\x06\x1b\n\x0c\n\x05\x06\0\x02\x04\ - \x02\x12\x03]\x1c8\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03]C_\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\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03b\x04B\n\ - \x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03b\x04B\n\r\n\x05\x06\0\x02\ - \x04\x04\x12\x04c\x04f\x06\n\x0f\n\x07\x06\0\x02\x04\x04\x99\x08\x12\x04\ - c\x04f\x06\n2\n\x04\x06\0\x02\x05\x12\x04j\x02o\x03\x1a$\x20Delete\x20an\ - \x20instance\x20from\x20a\x20project.\n\n\x0c\n\x05\x06\0\x02\x05\x01\ - \x12\x03j\x06\x14\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03j\x15*\n\x0c\n\ - \x05\x06\0\x02\x05\x03\x12\x03j5J\n\r\n\x05\x06\0\x02\x05\x04\x12\x04k\ - \x04m\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04k\x04m\x06\n\ - \x0c\n\x05\x06\0\x02\x05\x04\x12\x03n\x042\n\x0f\n\x08\x06\0\x02\x05\x04\ - \x9b\x08\0\x12\x03n\x042\n5\n\x04\x06\0\x02\x06\x12\x04r\x02|\x03\x1a'\ - \x20Creates\x20a\x20cluster\x20within\x20an\x20instance.\n\n\x0c\n\x05\ - \x06\0\x02\x06\x01\x12\x03r\x06\x13\n\x0c\n\x05\x06\0\x02\x06\x02\x12\ - \x03r\x14(\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03r3O\n\r\n\x05\x06\0\x02\ - \x06\x04\x12\x04s\x04v\x06\n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\ - \x04s\x04v\x06\n\x0c\n\x05\x06\0\x02\x06\x04\x12\x03w\x04G\n\x0f\n\x08\ - \x06\0\x02\x06\x04\x9b\x08\0\x12\x03w\x04G\n\r\n\x05\x06\0\x02\x06\x04\ - \x12\x04x\x04{\x06\n\x0f\n\x07\x06\0\x02\x06\x04\x99\x08\x12\x04x\x04{\ - \x06\n2\n\x04\x06\0\x02\x07\x12\x05\x7f\x02\x84\x01\x03\x1a#\x20Gets\x20\ - information\x20about\x20a\x20cluster.\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-4\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\nB\n\x04\x06\0\x02\x08\x12\x06\x87\x01\x02\x8c\x01\x03\x1a2\x20Lis\ - ts\x20information\x20about\x20clusters\x20in\x20an\x20instance.\n\n\r\n\ - \x05\x06\0\x02\x08\x01\x12\x04\x87\x01\x06\x12\n\r\n\x05\x06\0\x02\x08\ - \x02\x12\x04\x87\x01\x13&\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\x87\x011E\ - \n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\x88\x01\x04\x8a\x01\x06\n\x13\n\t\ - \x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x06\x88\x01\x04\x8a\x01\x06\n\r\n\ - \x05\x06\0\x02\x08\x04\x12\x04\x8b\x01\x044\n\x10\n\x08\x06\0\x02\x08\ - \x04\x9b\x08\0\x12\x04\x8b\x01\x044\n7\n\x04\x06\0\x02\t\x12\x06\x8f\x01\ - \x02\x98\x01\x03\x1a'\x20Updates\x20a\x20cluster\x20within\x20an\x20inst\ - ance.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\x8f\x01\x06\x13\n\r\n\x05\x06\ - \0\x02\t\x02\x12\x04\x8f\x01\x14\x1b\n\r\n\x05\x06\0\x02\t\x03\x12\x04\ - \x8f\x01&B\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\x90\x01\x04\x93\x01\x06\n\ - \x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\x90\x01\x04\x93\x01\x06\n\ - \x0f\n\x05\x06\0\x02\t\x04\x12\x06\x94\x01\x04\x97\x01\x06\n\x11\n\x07\ - \x06\0\x02\t\x04\x99\x08\x12\x06\x94\x01\x04\x97\x01\x06\n5\n\x04\x06\0\ - \x02\n\x12\x06\x9b\x01\x02\xa0\x01\x03\x1a%\x20Deletes\x20a\x20cluster\ - \x20from\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\x9b\x01\ - \x06\x13\n\r\n\x05\x06\0\x02\n\x02\x12\x04\x9b\x01\x14(\n\r\n\x05\x06\0\ - \x02\n\x03\x12\x04\x9b\x013H\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\r\n\x05\x06\0\x02\n\x04\x12\x04\x9f\x01\x042\n\x10\n\ - \x08\x06\0\x02\n\x04\x9b\x08\0\x12\x04\x9f\x01\x042\n<\n\x04\x06\0\x02\ - \x0b\x12\x06\xa3\x01\x02\xa9\x01\x03\x1a,\x20Creates\x20an\x20app\x20pro\ - file\x20within\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\ - \xa3\x01\x06\x16\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xa3\x01\x17.\n\r\n\ - \x05\x06\0\x02\x0b\x03\x12\x04\xa3\x019C\n\x0f\n\x05\x06\0\x02\x0b\x04\ - \x12\x06\xa4\x01\x04\xa7\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\ - \"\x12\x06\xa4\x01\x04\xa7\x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\ - \xa8\x01\x04O\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\xa8\x01\ - \x04O\n8\n\x04\x06\0\x02\x0c\x12\x06\xac\x01\x02\xb1\x01\x03\x1a(\x20Get\ - s\x20information\x20about\x20an\x20app\x20profile.\n\n\r\n\x05\x06\0\x02\ - \x0c\x01\x12\x04\xac\x01\x06\x13\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xac\ - \x01\x14(\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xac\x013=\n\x0f\n\x05\x06\ - \0\x02\x0c\x04\x12\x06\xad\x01\x04\xaf\x01\x06\n\x13\n\t\x06\0\x02\x0c\ - \x04\xb0\xca\xbc\"\x12\x06\xad\x01\x04\xaf\x01\x06\n\r\n\x05\x06\0\x02\ - \x0c\x04\x12\x04\xb0\x01\x042\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\ - \x12\x04\xb0\x01\x042\nF\n\x04\x06\0\x02\r\x12\x06\xb4\x01\x02\xb9\x01\ - \x03\x1a6\x20Lists\x20information\x20about\x20app\x20profiles\x20in\x20a\ - n\x20instance.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\xb4\x01\x06\x15\n\r\n\ - \x05\x06\0\x02\r\x02\x12\x04\xb4\x01\x16,\n\r\n\x05\x06\0\x02\r\x03\x12\ - \x04\xb4\x017N\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xb5\x01\x04\xb7\x01\ - \x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\xb5\x01\x04\xb7\x01\ - \x06\n\r\n\x05\x06\0\x02\r\x04\x12\x04\xb8\x01\x044\n\x10\n\x08\x06\0\ - \x02\r\x04\x9b\x08\0\x12\x04\xb8\x01\x044\n<\n\x04\x06\0\x02\x0e\x12\x06\ - \xbc\x01\x02\xc6\x01\x03\x1a,\x20Updates\x20an\x20app\x20profile\x20with\ - in\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x0e\x01\x12\x04\xbc\x01\x06\ - \x16\n\r\n\x05\x06\0\x02\x0e\x02\x12\x04\xbc\x01\x17.\n\r\n\x05\x06\0\ - \x02\x0e\x03\x12\x04\xbc\x019U\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xbd\ - \x01\x04\xc0\x01\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\ - \xbd\x01\x04\xc0\x01\x06\n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\xc1\x01\x04\ - E\n\x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\xc1\x01\x04E\n\x0f\n\ - \x05\x06\0\x02\x0e\x04\x12\x06\xc2\x01\x04\xc5\x01\x06\n\x11\n\x07\x06\0\ - \x02\x0e\x04\x99\x08\x12\x06\xc2\x01\x04\xc5\x01\x06\n:\n\x04\x06\0\x02\ - \x0f\x12\x06\xc9\x01\x02\xce\x01\x03\x1a*\x20Deletes\x20an\x20app\x20pro\ - file\x20from\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x0f\x01\x12\x04\ - \xc9\x01\x06\x16\n\r\n\x05\x06\0\x02\x0f\x02\x12\x04\xc9\x01\x17.\n\r\n\ - \x05\x06\0\x02\x0f\x03\x12\x04\xc9\x019N\n\x0f\n\x05\x06\0\x02\x0f\x04\ - \x12\x06\xca\x01\x04\xcc\x01\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\xca\xbc\ - \"\x12\x06\xca\x01\x04\xcc\x01\x06\n\r\n\x05\x06\0\x02\x0f\x04\x12\x04\ - \xcd\x01\x042\n\x10\n\x08\x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\xcd\x01\ - \x042\n\x9a\x01\n\x04\x06\0\x02\x10\x12\x06\xd2\x01\x02\xd8\x01\x03\x1a\ - \x89\x01\x20Gets\x20the\x20access\x20control\x20policy\x20for\x20an\x20i\ - nstance\x20resource.\x20Returns\x20an\x20empty\n\x20policy\x20if\x20an\ - \x20instance\x20exists\x20but\x20does\x20not\x20have\x20a\x20policy\x20s\ - et.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\x04\xd2\x01\x06\x12\n\r\n\x05\x06\ - \0\x02\x10\x02\x12\x04\xd2\x01\x134\n\r\n\x05\x06\0\x02\x10\x03\x12\x04\ - \xd2\x01?S\n\x0f\n\x05\x06\0\x02\x10\x04\x12\x06\xd3\x01\x04\xd6\x01\x06\ - \n\x13\n\t\x06\0\x02\x10\x04\xb0\xca\xbc\"\x12\x06\xd3\x01\x04\xd6\x01\ - \x06\n\r\n\x05\x06\0\x02\x10\x04\x12\x04\xd7\x01\x046\n\x10\n\x08\x06\0\ - \x02\x10\x04\x9b\x08\0\x12\x04\xd7\x01\x046\nh\n\x04\x06\0\x02\x11\x12\ - \x06\xdc\x01\x02\xe2\x01\x03\x1aX\x20Sets\x20the\x20access\x20control\ - \x20policy\x20on\x20an\x20instance\x20resource.\x20Replaces\x20any\n\x20\ - existing\x20policy.\n\n\r\n\x05\x06\0\x02\x11\x01\x12\x04\xdc\x01\x06\ - \x12\n\r\n\x05\x06\0\x02\x11\x02\x12\x04\xdc\x01\x134\n\r\n\x05\x06\0\ - \x02\x11\x03\x12\x04\xdc\x01?S\n\x0f\n\x05\x06\0\x02\x11\x04\x12\x06\xdd\ - \x01\x04\xe0\x01\x06\n\x13\n\t\x06\0\x02\x11\x04\xb0\xca\xbc\"\x12\x06\ - \xdd\x01\x04\xe0\x01\x06\n\r\n\x05\x06\0\x02\x11\x04\x12\x04\xe1\x01\x04\ - =\n\x10\n\x08\x06\0\x02\x11\x04\x9b\x08\0\x12\x04\xe1\x01\x04=\n]\n\x04\ - \x06\0\x02\x12\x12\x06\xe5\x01\x02\xeb\x01\x03\x1aM\x20Returns\x20permis\ - sions\x20that\x20the\x20caller\x20has\x20on\x20the\x20specified\x20insta\ - nce\x20resource.\n\n\r\n\x05\x06\0\x02\x12\x01\x12\x04\xe5\x01\x06\x18\n\ - \r\n\x05\x06\0\x02\x12\x02\x12\x04\xe5\x01\x19@\n\r\n\x05\x06\0\x02\x12\ - \x03\x12\x04\xe5\x01Ks\n\x0f\n\x05\x06\0\x02\x12\x04\x12\x06\xe6\x01\x04\ - \xe9\x01\x06\n\x13\n\t\x06\0\x02\x12\x04\xb0\xca\xbc\"\x12\x06\xe6\x01\ - \x04\xe9\x01\x06\n\r\n\x05\x06\0\x02\x12\x04\x12\x04\xea\x01\x04B\n\x10\ - \n\x08\x06\0\x02\x12\x04\x9b\x08\0\x12\x04\xea\x01\x04B\nI\n\x02\x04\0\ - \x12\x06\xef\x01\0\x88\x02\x01\x1a;\x20Request\x20message\x20for\x20Bigt\ - ableInstanceAdmin.CreateInstance.\n\n\x0b\n\x03\x04\0\x01\x12\x04\xef\ - \x01\x08\x1d\n\x8d\x01\n\x04\x04\0\x02\0\x12\x06\xf2\x01\x02\xf7\x01\x04\ - \x1a}\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20project\x20i\ - n\x20which\x20to\x20create\x20the\x20new\x20instance.\n\x20Values\x20are\ - \x20of\x20the\x20form\x20`projects/{project}`.\n\n\x0f\n\x05\x04\0\x02\0\ - \x04\x12\x06\xf2\x01\x02\xef\x01\x1f\n\r\n\x05\x04\0\x02\0\x05\x12\x04\ - \xf2\x01\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xf2\x01\t\x0f\n\r\n\ - \x05\x04\0\x02\0\x03\x12\x04\xf2\x01\x12\x13\n\x0f\n\x05\x04\0\x02\0\x08\ - \x12\x06\xf2\x01\x14\xf7\x01\x03\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\ - \x12\x04\xf3\x01\x04*\n\x11\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x06\xf4\ - \x01\x04\xf6\x01\x05\n\xb4\x01\n\x04\x04\0\x02\x01\x12\x04\xfc\x01\x02B\ - \x1a\xa5\x01\x20Required.\x20The\x20ID\x20to\x20be\x20used\x20when\x20re\ - ferring\x20to\x20the\x20new\x20instance\x20within\x20its\x20project,\n\ - \x20e.g.,\x20just\x20`myinstance`\x20rather\x20than\n\x20`projects/mypro\ - ject/instances/myinstance`.\n\n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\xfc\ - \x01\x02\xf7\x01\x04\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\xfc\x01\x02\x08\ - \n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xfc\x01\t\x14\n\r\n\x05\x04\0\x02\ - \x01\x03\x12\x04\xfc\x01\x17\x18\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\xfc\ - \x01\x19A\n\x10\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x04\xfc\x01\x1a@\n\ - a\n\x04\x04\0\x02\x02\x12\x04\x80\x02\x02A\x1aS\x20Required.\x20The\x20i\ - nstance\x20to\x20create.\n\x20Fields\x20marked\x20`OutputOnly`\x20must\ - \x20be\x20left\x20blank.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\x80\x02\ - \x02\xfc\x01B\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x80\x02\x02\n\n\r\n\ - \x05\x04\0\x02\x02\x01\x12\x04\x80\x02\x0b\x13\n\r\n\x05\x04\0\x02\x02\ - \x03\x12\x04\x80\x02\x16\x17\n\r\n\x05\x04\0\x02\x02\x08\x12\x04\x80\x02\ - \x18@\n\x10\n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x04\x80\x02\x19?\n\xaf\ - \x02\n\x04\x04\0\x02\x03\x12\x04\x87\x02\x02M\x1a\xa0\x02\x20Required.\ - \x20The\x20clusters\x20to\x20be\x20created\x20within\x20the\x20instance,\ - \x20mapped\x20by\x20desired\n\x20cluster\x20ID,\x20e.g.,\x20just\x20`myc\ - luster`\x20rather\x20than\n\x20`projects/myproject/instances/myinstance/\ - clusters/mycluster`.\n\x20Fields\x20marked\x20`OutputOnly`\x20must\x20be\ - \x20left\x20blank.\n\x20Currently,\x20at\x20most\x20four\x20clusters\x20\ - can\x20be\x20specified.\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\x87\x02\ - \x02\x80\x02A\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x87\x02\x02\x16\n\r\n\ - \x05\x04\0\x02\x03\x01\x12\x04\x87\x02\x17\x1f\n\r\n\x05\x04\0\x02\x03\ - \x03\x12\x04\x87\x02\"#\n\r\n\x05\x04\0\x02\x03\x08\x12\x04\x87\x02$L\n\ - \x10\n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\x04\x87\x02%K\nF\n\x02\x04\ - \x01\x12\x06\x8b\x02\0\x94\x02\x01\x1a8\x20Request\x20message\x20for\x20\ - BigtableInstanceAdmin.GetInstance.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x8b\ - \x02\x08\x1a\n\x89\x01\n\x04\x04\x01\x02\0\x12\x06\x8e\x02\x02\x93\x02\ - \x04\x1ay\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20requeste\ - d\x20instance.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{pro\ - ject}/instances/{instance}`.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\x8e\ - \x02\x02\x8b\x02\x1c\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x8e\x02\x02\x08\ - \n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x8e\x02\t\r\n\r\n\x05\x04\x01\x02\0\ - \x03\x12\x04\x8e\x02\x10\x11\n\x0f\n\x05\x04\x01\x02\0\x08\x12\x06\x8e\ - \x02\x12\x93\x02\x03\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x04\x8f\ - \x02\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x06\x90\x02\x04\x92\ - \x02\x05\nH\n\x02\x04\x02\x12\x06\x97\x02\0\xa3\x02\x01\x1a:\x20Request\ - \x20message\x20for\x20BigtableInstanceAdmin.ListInstances.\n\n\x0b\n\x03\ - \x04\x02\x01\x12\x04\x97\x02\x08\x1c\n\x95\x01\n\x04\x04\x02\x02\0\x12\ - \x06\x9a\x02\x02\x9f\x02\x04\x1a\x84\x01\x20Required.\x20The\x20unique\ - \x20name\x20of\x20the\x20project\x20for\x20which\x20a\x20list\x20of\x20i\ - nstances\x20is\x20requested.\n\x20Values\x20are\x20of\x20the\x20form\x20\ - `projects/{project}`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\x9a\x02\ - \x02\x97\x02\x1e\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\x0f\n\r\n\x05\x04\x02\x02\0\ - \x03\x12\x04\x9a\x02\x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\x9a\ - \x02\x14\x9f\x02\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\x9b\ - \x02\x04*\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\x9c\x02\x04\x9e\ - \x02\x05\n=\n\x04\x04\x02\x02\x01\x12\x04\xa2\x02\x02\x18\x1a/\x20DEPREC\ - ATED:\x20This\x20field\x20is\x20unused\x20and\x20ignored.\n\n\x0f\n\x05\ - \x04\x02\x02\x01\x04\x12\x06\xa2\x02\x02\x9f\x02\x04\n\r\n\x05\x04\x02\ - \x02\x01\x05\x12\x04\xa2\x02\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\ - \x04\xa2\x02\t\x13\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa2\x02\x16\x17\ - \nI\n\x02\x04\x03\x12\x06\xa6\x02\0\xb4\x02\x01\x1a;\x20Response\x20mess\ - age\x20for\x20BigtableInstanceAdmin.ListInstances.\n\n\x0b\n\x03\x04\x03\ - \x01\x12\x04\xa6\x02\x08\x1d\n0\n\x04\x04\x03\x02\0\x12\x04\xa8\x02\x02\ - \"\x1a\"\x20The\x20list\x20of\x20requested\x20instances.\n\n\r\n\x05\x04\ - \x03\x02\0\x04\x12\x04\xa8\x02\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\ - \xa8\x02\x0b\x13\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xa8\x02\x14\x1d\n\r\ - \n\x05\x04\x03\x02\0\x03\x12\x04\xa8\x02\x20!\n\x95\x03\n\x04\x04\x03\ - \x02\x01\x12\x04\xb0\x02\x02'\x1a\x86\x03\x20Locations\x20from\x20which\ - \x20Instance\x20information\x20could\x20not\x20be\x20retrieved,\n\x20due\ - \x20to\x20an\x20outage\x20or\x20some\x20other\x20transient\x20condition.\ - \n\x20Instances\x20whose\x20Clusters\x20are\x20all\x20in\x20one\x20of\ - \x20the\x20failed\x20locations\n\x20may\x20be\x20missing\x20from\x20`ins\ - tances`,\x20and\x20Instances\x20with\x20at\x20least\x20one\n\x20Cluster\ - \x20in\x20a\x20failed\x20location\x20may\x20only\x20have\x20partial\x20i\ - nformation\x20returned.\n\x20Values\x20are\x20of\x20the\x20form\x20`proj\ - ects//locations/`\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\ - \x04\xb0\x02\x02\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xb0\x02\x0b\x11\ - \n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xb0\x02\x12\"\n\r\n\x05\x04\x03\ - \x02\x01\x03\x12\x04\xb0\x02%&\n=\n\x04\x04\x03\x02\x02\x12\x04\xb3\x02\ - \x02\x1d\x1a/\x20DEPRECATED:\x20This\x20field\x20is\x20unused\x20and\x20\ - ignored.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xb3\x02\x02\xb0\x02'\ - \n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xb3\x02\x02\x08\n\r\n\x05\x04\x03\ - \x02\x02\x01\x12\x04\xb3\x02\t\x18\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\ - \xb3\x02\x1b\x1c\nP\n\x02\x04\x04\x12\x06\xb7\x02\0\xbe\x02\x01\x1aB\x20\ - Request\x20message\x20for\x20BigtableInstanceAdmin.PartialUpdateInstance\ - .\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xb7\x02\x08$\nX\n\x04\x04\x04\x02\0\ - \x12\x04\xb9\x02\x02A\x1aJ\x20Required.\x20The\x20Instance\x20which\x20w\ - ill\x20(partially)\x20replace\x20the\x20current\x20value.\n\n\x0f\n\x05\ - \x04\x04\x02\0\x04\x12\x06\xb9\x02\x02\xb7\x02&\n\r\n\x05\x04\x04\x02\0\ - \x06\x12\x04\xb9\x02\x02\n\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xb9\x02\ - \x0b\x13\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xb9\x02\x16\x17\n\r\n\x05\ - \x04\x04\x02\0\x08\x12\x04\xb9\x02\x18@\n\x10\n\x08\x04\x04\x02\0\x08\ - \x9c\x08\0\x12\x04\xb9\x02\x19?\nj\n\x04\x04\x04\x02\x01\x12\x04\xbd\x02\ - \x02U\x1a\\\x20Required.\x20The\x20subset\x20of\x20Instance\x20fields\ - \x20which\x20should\x20be\x20replaced.\n\x20Must\x20be\x20explicitly\x20\ - set.\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\xbd\x02\x02\xb9\x02A\n\r\ - \n\x05\x04\x04\x02\x01\x06\x12\x04\xbd\x02\x02\x1b\n\r\n\x05\x04\x04\x02\ - \x01\x01\x12\x04\xbd\x02\x1c'\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xbd\ - \x02*+\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xbd\x02,T\n\x10\n\x08\x04\ - \x04\x02\x01\x08\x9c\x08\0\x12\x04\xbd\x02-S\nI\n\x02\x04\x05\x12\x06\ - \xc1\x02\0\xca\x02\x01\x1a;\x20Request\x20message\x20for\x20BigtableInst\ - anceAdmin.DeleteInstance.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xc1\x02\x08\ - \x1d\n\x8d\x01\n\x04\x04\x05\x02\0\x12\x06\xc4\x02\x02\xc9\x02\x04\x1a}\ - \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20instance\x20to\ - \x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects/\ - {project}/instances/{instance}`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\ - \xc4\x02\x02\xc1\x02\x1f\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xc4\x02\x02\ - \x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xc4\x02\t\r\n\r\n\x05\x04\x05\ - \x02\0\x03\x12\x04\xc4\x02\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\ - \xc4\x02\x12\xc9\x02\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\ - \xc5\x02\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xc6\x02\x04\ - \xc8\x02\x05\nH\n\x02\x04\x06\x12\x06\xcd\x02\0\xe0\x02\x01\x1a:\x20Requ\ - est\x20message\x20for\x20BigtableInstanceAdmin.CreateCluster.\n\n\x0b\n\ - \x03\x04\x06\x01\x12\x04\xcd\x02\x08\x1c\n\xa4\x01\n\x04\x04\x06\x02\0\ - \x12\x06\xd1\x02\x02\xd6\x02\x04\x1a\x93\x01\x20Required.\x20The\x20uniq\ - ue\x20name\x20of\x20the\x20instance\x20in\x20which\x20to\x20create\x20th\ - e\x20new\x20cluster.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`proje\ - cts/{project}/instances/{instance}`.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\ - \x06\xd1\x02\x02\xcd\x02\x1e\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xd1\x02\ - \x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xd1\x02\t\x0f\n\r\n\x05\x04\ - \x06\x02\0\x03\x12\x04\xd1\x02\x12\x13\n\x0f\n\x05\x04\x06\x02\0\x08\x12\ - \x06\xd1\x02\x14\xd6\x02\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\ - \x04\xd2\x02\x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xd3\x02\ - \x04\xd5\x02\x05\n\xc6\x01\n\x04\x04\x06\x02\x01\x12\x04\xdb\x02\x02A\ - \x1a\xb7\x01\x20Required.\x20The\x20ID\x20to\x20be\x20used\x20when\x20re\ - ferring\x20to\x20the\x20new\x20cluster\x20within\x20its\x20instance,\n\ - \x20e.g.,\x20just\x20`mycluster`\x20rather\x20than\n\x20`projects/myproj\ - ect/instances/myinstance/clusters/mycluster`.\n\n\x0f\n\x05\x04\x06\x02\ - \x01\x04\x12\x06\xdb\x02\x02\xd6\x02\x04\n\r\n\x05\x04\x06\x02\x01\x05\ - \x12\x04\xdb\x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xdb\x02\t\ - \x13\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xdb\x02\x16\x17\n\r\n\x05\x04\ - \x06\x02\x01\x08\x12\x04\xdb\x02\x18@\n\x10\n\x08\x04\x06\x02\x01\x08\ - \x9c\x08\0\x12\x04\xdb\x02\x19?\nd\n\x04\x04\x06\x02\x02\x12\x04\xdf\x02\ - \x02?\x1aV\x20Required.\x20The\x20cluster\x20to\x20be\x20created.\n\x20F\ - ields\x20marked\x20`OutputOnly`\x20must\x20be\x20left\x20blank.\n\n\x0f\ - \n\x05\x04\x06\x02\x02\x04\x12\x06\xdf\x02\x02\xdb\x02A\n\r\n\x05\x04\ - \x06\x02\x02\x06\x12\x04\xdf\x02\x02\t\n\r\n\x05\x04\x06\x02\x02\x01\x12\ - \x04\xdf\x02\n\x11\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\xdf\x02\x14\x15\ - \n\r\n\x05\x04\x06\x02\x02\x08\x12\x04\xdf\x02\x16>\n\x10\n\x08\x04\x06\ - \x02\x02\x08\x9c\x08\0\x12\x04\xdf\x02\x17=\nE\n\x02\x04\x07\x12\x06\xe3\ - \x02\0\xec\x02\x01\x1a7\x20Request\x20message\x20for\x20BigtableInstance\ - Admin.GetCluster.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xe3\x02\x08\x19\n\ - \x9c\x01\n\x04\x04\x07\x02\0\x12\x06\xe6\x02\x02\xeb\x02\x04\x1a\x8b\x01\ - \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20requested\x20clus\ - ter.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/inst\ - ances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\x07\x02\0\x04\ - \x12\x06\xe6\x02\x02\xe3\x02\x1b\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\r\n\r\n\x05\ - \x04\x07\x02\0\x03\x12\x04\xe6\x02\x10\x11\n\x0f\n\x05\x04\x07\x02\0\x08\ - \x12\x06\xe6\x02\x12\xeb\x02\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\ - \x12\x04\xe7\x02\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xe8\ - \x02\x04\xea\x02\x05\nG\n\x02\x04\x08\x12\x06\xef\x02\0\xfd\x02\x01\x1a9\ - \x20Request\x20message\x20for\x20BigtableInstanceAdmin.ListClusters.\n\n\ - \x0b\n\x03\x04\x08\x01\x12\x04\xef\x02\x08\x1b\n\x9c\x02\n\x04\x04\x08\ - \x02\0\x12\x06\xf4\x02\x02\xf9\x02\x04\x1a\x8b\x02\x20Required.\x20The\ - \x20unique\x20name\x20of\x20the\x20instance\x20for\x20which\x20a\x20list\ - \x20of\x20clusters\x20is\x20requested.\n\x20Values\x20are\x20of\x20the\ - \x20form\x20`projects/{project}/instances/{instance}`.\n\x20Use\x20`{ins\ - tance}\x20=\x20'-'`\x20to\x20list\x20Clusters\x20for\x20all\x20Instances\ - \x20in\x20a\x20project,\n\x20e.g.,\x20`projects/myproject/instances/-`.\ - \n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xf4\x02\x02\xef\x02\x1d\n\r\n\ - \x05\x04\x08\x02\0\x05\x12\x04\xf4\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\ - \x01\x12\x04\xf4\x02\t\x0f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xf4\x02\ - \x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xf4\x02\x14\xf9\x02\x03\n\ - \x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xf5\x02\x04*\n\x11\n\x07\ - \x04\x08\x02\0\x08\x9f\x08\x12\x06\xf6\x02\x04\xf8\x02\x05\n=\n\x04\x04\ - \x08\x02\x01\x12\x04\xfc\x02\x02\x18\x1a/\x20DEPRECATED:\x20This\x20fiel\ - d\x20is\x20unused\x20and\x20ignored.\n\n\x0f\n\x05\x04\x08\x02\x01\x04\ - \x12\x06\xfc\x02\x02\xf9\x02\x04\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\ - \xfc\x02\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xfc\x02\t\x13\n\r\ - \n\x05\x04\x08\x02\x01\x03\x12\x04\xfc\x02\x16\x17\nH\n\x02\x04\t\x12\ - \x06\x80\x03\0\x8d\x03\x01\x1a:\x20Response\x20message\x20for\x20Bigtabl\ - eInstanceAdmin.ListClusters.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x80\x03\x08\ - \x1c\n/\n\x04\x04\t\x02\0\x12\x04\x82\x03\x02\x20\x1a!\x20The\x20list\ - \x20of\x20requested\x20clusters.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\x82\ - \x03\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\x82\x03\x0b\x12\n\r\n\x05\ - \x04\t\x02\0\x01\x12\x04\x82\x03\x13\x1b\n\r\n\x05\x04\t\x02\0\x03\x12\ - \x04\x82\x03\x1e\x1f\n\xb6\x02\n\x04\x04\t\x02\x01\x12\x04\x89\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\x89\x03\x02\n\n\r\n\x05\x04\t\ - \x02\x01\x05\x12\x04\x89\x03\x0b\x11\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\ - \x89\x03\x12\"\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x89\x03%&\n=\n\x04\ - \x04\t\x02\x02\x12\x04\x8c\x03\x02\x1d\x1a/\x20DEPRECATED:\x20This\x20fi\ - eld\x20is\x20unused\x20and\x20ignored.\n\n\x0f\n\x05\x04\t\x02\x02\x04\ - \x12\x06\x8c\x03\x02\x89\x03'\n\r\n\x05\x04\t\x02\x02\x05\x12\x04\x8c\ - \x03\x02\x08\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\x8c\x03\t\x18\n\r\n\x05\ - \x04\t\x02\x02\x03\x12\x04\x8c\x03\x1b\x1c\nH\n\x02\x04\n\x12\x06\x90\ - \x03\0\x99\x03\x01\x1a:\x20Request\x20message\x20for\x20BigtableInstance\ - Admin.DeleteCluster.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x90\x03\x08\x1c\n\ - \xa0\x01\n\x04\x04\n\x02\0\x12\x06\x93\x03\x02\x98\x03\x04\x1a\x8f\x01\ - \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20to\x20\ - be\x20deleted.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{pro\ - ject}/instances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\n\x02\ - \0\x04\x12\x06\x93\x03\x02\x90\x03\x1e\n\r\n\x05\x04\n\x02\0\x05\x12\x04\ - \x93\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x93\x03\t\r\n\r\n\x05\ - \x04\n\x02\0\x03\x12\x04\x93\x03\x10\x11\n\x0f\n\x05\x04\n\x02\0\x08\x12\ - \x06\x93\x03\x12\x98\x03\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\ - \x04\x94\x03\x04*\n\x11\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x06\x95\x03\ - \x04\x97\x03\x05\nJ\n\x02\x04\x0b\x12\x06\x9c\x03\0\xa5\x03\x01\x1a<\x20\ - The\x20metadata\x20for\x20the\x20Operation\x20returned\x20by\x20CreateIn\ - stance.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x9c\x03\x08\x1e\nZ\n\x04\x04\ - \x0b\x02\0\x12\x04\x9e\x03\x02-\x1aL\x20The\x20request\x20that\x20prompt\ - ed\x20the\x20initiation\x20of\x20this\x20CreateInstance\x20operation.\n\ - \n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\x9e\x03\x02\x9c\x03\x20\n\r\n\x05\ - \x04\x0b\x02\0\x06\x12\x04\x9e\x03\x02\x17\n\r\n\x05\x04\x0b\x02\0\x01\ - \x12\x04\x9e\x03\x18(\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x9e\x03+,\nD\n\ - \x04\x04\x0b\x02\x01\x12\x04\xa1\x03\x02-\x1a6\x20The\x20time\x20at\x20w\ - hich\x20the\x20original\x20request\x20was\x20received.\n\n\x0f\n\x05\x04\ - \x0b\x02\x01\x04\x12\x06\xa1\x03\x02\x9e\x03-\n\r\n\x05\x04\x0b\x02\x01\ - \x06\x12\x04\xa1\x03\x02\x1b\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xa1\ - \x03\x1c(\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xa1\x03+,\nU\n\x04\x04\ - \x0b\x02\x02\x12\x04\xa4\x03\x02,\x1aG\x20The\x20time\x20at\x20which\x20\ - the\x20operation\x20failed\x20or\x20was\x20completed\x20successfully.\n\ - \n\x0f\n\x05\x04\x0b\x02\x02\x04\x12\x06\xa4\x03\x02\xa1\x03-\n\r\n\x05\ - \x04\x0b\x02\x02\x06\x12\x04\xa4\x03\x02\x1b\n\r\n\x05\x04\x0b\x02\x02\ - \x01\x12\x04\xa4\x03\x1c'\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xa4\x03*\ - +\nJ\n\x02\x04\x0c\x12\x06\xa8\x03\0\xb1\x03\x01\x1a<\x20The\x20metadata\ - \x20for\x20the\x20Operation\x20returned\x20by\x20UpdateInstance.\n\n\x0b\ - \n\x03\x04\x0c\x01\x12\x04\xa8\x03\x08\x1e\nZ\n\x04\x04\x0c\x02\0\x12\ - \x04\xaa\x03\x024\x1aL\x20The\x20request\x20that\x20prompted\x20the\x20i\ - nitiation\x20of\x20this\x20UpdateInstance\x20operation.\n\n\x0f\n\x05\ - \x04\x0c\x02\0\x04\x12\x06\xaa\x03\x02\xa8\x03\x20\n\r\n\x05\x04\x0c\x02\ - \0\x06\x12\x04\xaa\x03\x02\x1e\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xaa\ - \x03\x1f/\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xaa\x0323\nD\n\x04\x04\x0c\ - \x02\x01\x12\x04\xad\x03\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\ - \x20original\x20request\x20was\x20received.\n\n\x0f\n\x05\x04\x0c\x02\ - \x01\x04\x12\x06\xad\x03\x02\xaa\x034\n\r\n\x05\x04\x0c\x02\x01\x06\x12\ - \x04\xad\x03\x02\x1b\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xad\x03\x1c(\ - \n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xad\x03+,\nU\n\x04\x04\x0c\x02\ - \x02\x12\x04\xb0\x03\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20o\ - peration\x20failed\x20or\x20was\x20completed\x20successfully.\n\n\x0f\n\ - \x05\x04\x0c\x02\x02\x04\x12\x06\xb0\x03\x02\xad\x03-\n\r\n\x05\x04\x0c\ - \x02\x02\x06\x12\x04\xb0\x03\x02\x1b\n\r\n\x05\x04\x0c\x02\x02\x01\x12\ - \x04\xb0\x03\x1c'\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xb0\x03*+\nI\n\ - \x02\x04\r\x12\x06\xb4\x03\0\xbd\x03\x01\x1a;\x20The\x20metadata\x20for\ - \x20the\x20Operation\x20returned\x20by\x20CreateCluster.\n\n\x0b\n\x03\ - \x04\r\x01\x12\x04\xb4\x03\x08\x1d\nY\n\x04\x04\r\x02\0\x12\x04\xb6\x03\ - \x02,\x1aK\x20The\x20request\x20that\x20prompted\x20the\x20initiation\ - \x20of\x20this\x20CreateCluster\x20operation.\n\n\x0f\n\x05\x04\r\x02\0\ - \x04\x12\x06\xb6\x03\x02\xb4\x03\x1f\n\r\n\x05\x04\r\x02\0\x06\x12\x04\ - \xb6\x03\x02\x16\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xb6\x03\x17'\n\r\n\ - \x05\x04\r\x02\0\x03\x12\x04\xb6\x03*+\nD\n\x04\x04\r\x02\x01\x12\x04\ - \xb9\x03\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20original\x20r\ - equest\x20was\x20received.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xb9\ - \x03\x02\xb6\x03,\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xb9\x03\x02\x1b\n\ - \r\n\x05\x04\r\x02\x01\x01\x12\x04\xb9\x03\x1c(\n\r\n\x05\x04\r\x02\x01\ - \x03\x12\x04\xb9\x03+,\nU\n\x04\x04\r\x02\x02\x12\x04\xbc\x03\x02,\x1aG\ - \x20The\x20time\x20at\x20which\x20the\x20operation\x20failed\x20or\x20wa\ - s\x20completed\x20successfully.\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\ - \xbc\x03\x02\xb9\x03-\n\r\n\x05\x04\r\x02\x02\x06\x12\x04\xbc\x03\x02\ - \x1b\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xbc\x03\x1c'\n\r\n\x05\x04\r\ - \x02\x02\x03\x12\x04\xbc\x03*+\nI\n\x02\x04\x0e\x12\x06\xc0\x03\0\xc9\ - \x03\x01\x1a;\x20The\x20metadata\x20for\x20the\x20Operation\x20returned\ - \x20by\x20UpdateCluster.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xc0\x03\x08\ - \x1d\nY\n\x04\x04\x0e\x02\0\x12\x04\xc2\x03\x02\x1f\x1aK\x20The\x20reque\ - st\x20that\x20prompted\x20the\x20initiation\x20of\x20this\x20UpdateClust\ - er\x20operation.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xc2\x03\x02\xc0\ - \x03\x1f\n\r\n\x05\x04\x0e\x02\0\x06\x12\x04\xc2\x03\x02\t\n\r\n\x05\x04\ - \x0e\x02\0\x01\x12\x04\xc2\x03\n\x1a\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\ - \xc2\x03\x1d\x1e\nD\n\x04\x04\x0e\x02\x01\x12\x04\xc5\x03\x02-\x1a6\x20T\ - he\x20time\x20at\x20which\x20the\x20original\x20request\x20was\x20receiv\ - ed.\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\x12\x06\xc5\x03\x02\xc2\x03\x1f\n\ - \r\n\x05\x04\x0e\x02\x01\x06\x12\x04\xc5\x03\x02\x1b\n\r\n\x05\x04\x0e\ - \x02\x01\x01\x12\x04\xc5\x03\x1c(\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\ - \xc5\x03+,\nU\n\x04\x04\x0e\x02\x02\x12\x04\xc8\x03\x02,\x1aG\x20The\x20\ - time\x20at\x20which\x20the\x20operation\x20failed\x20or\x20was\x20comple\ - ted\x20successfully.\n\n\x0f\n\x05\x04\x0e\x02\x02\x04\x12\x06\xc8\x03\ - \x02\xc5\x03-\n\r\n\x05\x04\x0e\x02\x02\x06\x12\x04\xc8\x03\x02\x1b\n\r\ - \n\x05\x04\x0e\x02\x02\x01\x12\x04\xc8\x03\x1c'\n\r\n\x05\x04\x0e\x02\ - \x02\x03\x12\x04\xc8\x03*+\nK\n\x02\x04\x0f\x12\x06\xcc\x03\0\xe2\x03\ - \x01\x1a=\x20Request\x20message\x20for\x20BigtableInstanceAdmin.CreateAp\ - pProfile.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xcc\x03\x08\x1f\n\xa8\x01\n\ - \x04\x04\x0f\x02\0\x12\x06\xd0\x03\x02\xd5\x03\x04\x1a\x97\x01\x20Requir\ - ed.\x20The\x20unique\x20name\x20of\x20the\x20instance\x20in\x20which\x20\ - to\x20create\x20the\x20new\x20app\x20profile.\n\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects/{project}/instances/{instance}`.\n\n\x0f\ - \n\x05\x04\x0f\x02\0\x04\x12\x06\xd0\x03\x02\xcc\x03!\n\r\n\x05\x04\x0f\ - \x02\0\x05\x12\x04\xd0\x03\x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\ - \xd0\x03\t\x0f\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xd0\x03\x12\x13\n\x0f\ - \n\x05\x04\x0f\x02\0\x08\x12\x06\xd0\x03\x14\xd5\x03\x03\n\x10\n\x08\x04\ - \x0f\x02\0\x08\x9c\x08\0\x12\x04\xd1\x03\x04*\n\x11\n\x07\x04\x0f\x02\0\ - \x08\x9f\x08\x12\x06\xd2\x03\x04\xd4\x03\x05\n\xcd\x01\n\x04\x04\x0f\x02\ - \x01\x12\x04\xda\x03\x02E\x1a\xbe\x01\x20Required.\x20The\x20ID\x20to\ - \x20be\x20used\x20when\x20referring\x20to\x20the\x20new\x20app\x20profil\ - e\x20within\x20its\n\x20instance,\x20e.g.,\x20just\x20`myprofile`\x20rat\ - her\x20than\n\x20`projects/myproject/instances/myinstance/appProfiles/my\ - profile`.\n\n\x0f\n\x05\x04\x0f\x02\x01\x04\x12\x06\xda\x03\x02\xd5\x03\ - \x04\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\xda\x03\x02\x08\n\r\n\x05\x04\ - \x0f\x02\x01\x01\x12\x04\xda\x03\t\x17\n\r\n\x05\x04\x0f\x02\x01\x03\x12\ - \x04\xda\x03\x1a\x1b\n\r\n\x05\x04\x0f\x02\x01\x08\x12\x04\xda\x03\x1cD\ - \n\x10\n\x08\x04\x0f\x02\x01\x08\x9c\x08\0\x12\x04\xda\x03\x1dC\ne\n\x04\ - \x04\x0f\x02\x02\x12\x04\xde\x03\x02F\x1aW\x20Required.\x20The\x20app\ - \x20profile\x20to\x20be\x20created.\n\x20Fields\x20marked\x20`OutputOnly\ - `\x20will\x20be\x20ignored.\n\n\x0f\n\x05\x04\x0f\x02\x02\x04\x12\x06\ - \xde\x03\x02\xda\x03E\n\r\n\x05\x04\x0f\x02\x02\x06\x12\x04\xde\x03\x02\ - \x0c\n\r\n\x05\x04\x0f\x02\x02\x01\x12\x04\xde\x03\r\x18\n\r\n\x05\x04\ - \x0f\x02\x02\x03\x12\x04\xde\x03\x1b\x1c\n\r\n\x05\x04\x0f\x02\x02\x08\ - \x12\x04\xde\x03\x1dE\n\x10\n\x08\x04\x0f\x02\x02\x08\x9c\x08\0\x12\x04\ - \xde\x03\x1eD\nL\n\x04\x04\x0f\x02\x03\x12\x04\xe1\x03\x02\x1b\x1a>\x20I\ - f\x20true,\x20ignore\x20safety\x20checks\x20when\x20creating\x20the\x20a\ - pp\x20profile.\n\n\x0f\n\x05\x04\x0f\x02\x03\x04\x12\x06\xe1\x03\x02\xde\ - \x03F\n\r\n\x05\x04\x0f\x02\x03\x05\x12\x04\xe1\x03\x02\x06\n\r\n\x05\ - \x04\x0f\x02\x03\x01\x12\x04\xe1\x03\x07\x16\n\r\n\x05\x04\x0f\x02\x03\ - \x03\x12\x04\xe1\x03\x19\x1a\nH\n\x02\x04\x10\x12\x06\xe5\x03\0\xee\x03\ - \x01\x1a:\x20Request\x20message\x20for\x20BigtableInstanceAdmin.GetAppPr\ - ofile.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xe5\x03\x08\x1c\n\xa7\x01\n\x04\ - \x04\x10\x02\0\x12\x06\xe8\x03\x02\xed\x03\x04\x1a\x96\x01\x20Required.\ - \x20The\x20unique\x20name\x20of\x20the\x20requested\x20app\x20profile.\ - \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ - s/{instance}/appProfiles/{app_profile}`.\n\n\x0f\n\x05\x04\x10\x02\0\x04\ - \x12\x06\xe8\x03\x02\xe5\x03\x1e\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\xe8\ - \x03\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xe8\x03\t\r\n\r\n\x05\ - \x04\x10\x02\0\x03\x12\x04\xe8\x03\x10\x11\n\x0f\n\x05\x04\x10\x02\0\x08\ - \x12\x06\xe8\x03\x12\xed\x03\x03\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\ - \x12\x04\xe9\x03\x04*\n\x11\n\x07\x04\x10\x02\0\x08\x9f\x08\x12\x06\xea\ - \x03\x04\xec\x03\x05\nJ\n\x02\x04\x11\x12\x06\xf1\x03\0\x8b\x04\x01\x1a<\ - \x20Request\x20message\x20for\x20BigtableInstanceAdmin.ListAppProfiles.\ - \n\n\x0b\n\x03\x04\x11\x01\x12\x04\xf1\x03\x08\x1e\n\xa4\x02\n\x04\x04\ - \x11\x02\0\x12\x06\xf7\x03\x02\xfc\x03\x04\x1a\x93\x02\x20Required.\x20T\ - he\x20unique\x20name\x20of\x20the\x20instance\x20for\x20which\x20a\x20li\ - st\x20of\x20app\x20profiles\x20is\n\x20requested.\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects/{project}/instances/{instance}`.\n\x20Use\ - \x20`{instance}\x20=\x20'-'`\x20to\x20list\x20AppProfiles\x20for\x20all\ - \x20Instances\x20in\x20a\x20project,\n\x20e.g.,\x20`projects/myproject/i\ - nstances/-`.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\xf7\x03\x02\xf1\x03\ - \x20\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xf7\x03\x02\x08\n\r\n\x05\x04\ - \x11\x02\0\x01\x12\x04\xf7\x03\t\x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\ - \xf7\x03\x12\x13\n\x0f\n\x05\x04\x11\x02\0\x08\x12\x06\xf7\x03\x14\xfc\ - \x03\x03\n\x10\n\x08\x04\x11\x02\0\x08\x9c\x08\0\x12\x04\xf8\x03\x04*\n\ - \x11\n\x07\x04\x11\x02\0\x08\x9f\x08\x12\x06\xf9\x03\x04\xfb\x03\x05\n\ - \xbd\x03\n\x04\x04\x11\x02\x01\x12\x04\x87\x04\x02\x16\x1a\xae\x03\x20Ma\ - ximum\x20number\x20of\x20results\x20per\x20page.\n\n\x20A\x20page_size\ - \x20of\x20zero\x20lets\x20the\x20server\x20choose\x20the\x20number\x20of\ - \x20items\x20to\x20return.\n\x20A\x20page_size\x20which\x20is\x20strictl\ - y\x20positive\x20will\x20return\x20at\x20most\x20that\x20many\x20items.\ - \n\x20A\x20negative\x20page_size\x20will\x20cause\x20an\x20error.\n\n\ - \x20Following\x20the\x20first\x20request,\x20subsequent\x20paginated\x20\ - calls\x20are\x20not\x20required\n\x20to\x20pass\x20a\x20page_size.\x20If\ - \x20a\x20page_size\x20is\x20set\x20in\x20subsequent\x20calls,\x20it\x20m\ - ust\n\x20match\x20the\x20page_size\x20given\x20in\x20the\x20first\x20req\ - uest.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\x87\x04\x02\xfc\x03\x04\ - \n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\x87\x04\x02\x07\n\r\n\x05\x04\x11\ - \x02\x01\x01\x12\x04\x87\x04\x08\x11\n\r\n\x05\x04\x11\x02\x01\x03\x12\ - \x04\x87\x04\x14\x15\nK\n\x04\x04\x11\x02\x02\x12\x04\x8a\x04\x02\x18\ - \x1a=\x20The\x20value\x20of\x20`next_page_token`\x20returned\x20by\x20a\ - \x20previous\x20call.\n\n\x0f\n\x05\x04\x11\x02\x02\x04\x12\x06\x8a\x04\ - \x02\x87\x04\x16\n\r\n\x05\x04\x11\x02\x02\x05\x12\x04\x8a\x04\x02\x08\n\ - \r\n\x05\x04\x11\x02\x02\x01\x12\x04\x8a\x04\t\x13\n\r\n\x05\x04\x11\x02\ - \x02\x03\x12\x04\x8a\x04\x16\x17\nK\n\x02\x04\x12\x12\x06\x8e\x04\0\x9c\ - \x04\x01\x1a=\x20Response\x20message\x20for\x20BigtableInstanceAdmin.Lis\ - tAppProfiles.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\x8e\x04\x08\x1f\n3\n\x04\ - \x04\x12\x02\0\x12\x04\x90\x04\x02'\x1a%\x20The\x20list\x20of\x20request\ - ed\x20app\x20profiles.\n\n\r\n\x05\x04\x12\x02\0\x04\x12\x04\x90\x04\x02\ - \n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\x90\x04\x0b\x15\n\r\n\x05\x04\x12\ - \x02\0\x01\x12\x04\x90\x04\x16\"\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\x90\ - \x04%&\n\xaa\x01\n\x04\x04\x12\x02\x01\x12\x04\x95\x04\x02\x1d\x1a\x9b\ - \x01\x20Set\x20if\x20not\x20all\x20app\x20profiles\x20could\x20be\x20ret\ - urned\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\x0f\n\x05\x04\x12\x02\x01\x04\x12\x06\ - \x95\x04\x02\x90\x04'\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\x95\x04\x02\ - \x08\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\x95\x04\t\x18\n\r\n\x05\x04\ - \x12\x02\x01\x03\x12\x04\x95\x04\x1b\x1c\n\x90\x02\n\x04\x04\x12\x02\x02\ - \x12\x04\x9b\x04\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\x12\x02\x02\x04\x12\x04\ - \x9b\x04\x02\n\n\r\n\x05\x04\x12\x02\x02\x05\x12\x04\x9b\x04\x0b\x11\n\r\ - \n\x05\x04\x12\x02\x02\x01\x12\x04\x9b\x04\x12\"\n\r\n\x05\x04\x12\x02\ - \x02\x03\x12\x04\x9b\x04%&\nK\n\x02\x04\x13\x12\x06\x9f\x04\0\xa9\x04\ - \x01\x1a=\x20Request\x20message\x20for\x20BigtableInstanceAdmin.UpdateAp\ - pProfile.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\x9f\x04\x08\x1f\n[\n\x04\x04\ - \x13\x02\0\x12\x04\xa1\x04\x02F\x1aM\x20Required.\x20The\x20app\x20profi\ - le\x20which\x20will\x20(partially)\x20replace\x20the\x20current\x20value\ - .\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xa1\x04\x02\x9f\x04!\n\r\n\x05\ - \x04\x13\x02\0\x06\x12\x04\xa1\x04\x02\x0c\n\r\n\x05\x04\x13\x02\0\x01\ - \x12\x04\xa1\x04\r\x18\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xa1\x04\x1b\ - \x1c\n\r\n\x05\x04\x13\x02\0\x08\x12\x04\xa1\x04\x1dE\n\x10\n\x08\x04\ - \x13\x02\0\x08\x9c\x08\0\x12\x04\xa1\x04\x1eD\n|\n\x04\x04\x13\x02\x01\ - \x12\x04\xa5\x04\x02U\x1an\x20Required.\x20The\x20subset\x20of\x20app\ - \x20profile\x20fields\x20which\x20should\x20be\x20replaced.\n\x20If\x20u\ - nset,\x20all\x20fields\x20will\x20be\x20replaced.\n\n\x0f\n\x05\x04\x13\ - \x02\x01\x04\x12\x06\xa5\x04\x02\xa1\x04F\n\r\n\x05\x04\x13\x02\x01\x06\ - \x12\x04\xa5\x04\x02\x1b\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xa5\x04\ - \x1c'\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xa5\x04*+\n\r\n\x05\x04\x13\ - \x02\x01\x08\x12\x04\xa5\x04,T\n\x10\n\x08\x04\x13\x02\x01\x08\x9c\x08\0\ - \x12\x04\xa5\x04-S\nL\n\x04\x04\x13\x02\x02\x12\x04\xa8\x04\x02\x1b\x1a>\ - \x20If\x20true,\x20ignore\x20safety\x20checks\x20when\x20updating\x20the\ - \x20app\x20profile.\n\n\x0f\n\x05\x04\x13\x02\x02\x04\x12\x06\xa8\x04\ - \x02\xa5\x04U\n\r\n\x05\x04\x13\x02\x02\x05\x12\x04\xa8\x04\x02\x06\n\r\ - \n\x05\x04\x13\x02\x02\x01\x12\x04\xa8\x04\x07\x16\n\r\n\x05\x04\x13\x02\ - \x02\x03\x12\x04\xa8\x04\x19\x1a\nK\n\x02\x04\x14\x12\x06\xac\x04\0\xb8\ - \x04\x01\x1a=\x20Request\x20message\x20for\x20BigtableInstanceAdmin.Dele\ - teAppProfile.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\xac\x04\x08\x1f\n\xab\ - \x01\n\x04\x04\x14\x02\0\x12\x06\xaf\x04\x02\xb4\x04\x04\x1a\x9a\x01\x20\ - Required.\x20The\x20unique\x20name\x20of\x20the\x20app\x20profile\x20to\ - \x20be\x20deleted.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/\ - {project}/instances/{instance}/appProfiles/{app_profile}`.\n\n\x0f\n\x05\ - \x04\x14\x02\0\x04\x12\x06\xaf\x04\x02\xac\x04!\n\r\n\x05\x04\x14\x02\0\ - \x05\x12\x04\xaf\x04\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xaf\x04\ - \t\r\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\xaf\x04\x10\x11\n\x0f\n\x05\x04\ - \x14\x02\0\x08\x12\x06\xaf\x04\x12\xb4\x04\x03\n\x10\n\x08\x04\x14\x02\0\ - \x08\x9c\x08\0\x12\x04\xb0\x04\x04*\n\x11\n\x07\x04\x14\x02\0\x08\x9f\ - \x08\x12\x06\xb1\x04\x04\xb3\x04\x05\nV\n\x04\x04\x14\x02\x01\x12\x04\ - \xb7\x04\x02D\x1aH\x20Required.\x20If\x20true,\x20ignore\x20safety\x20ch\ - ecks\x20when\x20deleting\x20the\x20app\x20profile.\n\n\x0f\n\x05\x04\x14\ - \x02\x01\x04\x12\x06\xb7\x04\x02\xb4\x04\x04\n\r\n\x05\x04\x14\x02\x01\ - \x05\x12\x04\xb7\x04\x02\x06\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xb7\ - \x04\x07\x16\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xb7\x04\x19\x1a\n\r\n\ - \x05\x04\x14\x02\x01\x08\x12\x04\xb7\x04\x1bC\n\x10\n\x08\x04\x14\x02\ - \x01\x08\x9c\x08\0\x12\x04\xb7\x04\x1cB\nL\n\x02\x04\x15\x12\x06\xbb\x04\ - \0\xbd\x04\x01\x1a>\x20The\x20metadata\x20for\x20the\x20Operation\x20ret\ - urned\x20by\x20UpdateAppProfile.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xbb\ - \x04\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs deleted file mode 100644 index 07ee5167a5..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs +++ /dev/null @@ -1,573 +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_BIGTABLE_INSTANCE_ADMIN_CREATE_INSTANCE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance", - 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_GET_INSTANCE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetInstance", - 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_LIST_INSTANCES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances", - 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_UPDATE_INSTANCE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateInstance", - 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_PARTIAL_UPDATE_INSTANCE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateInstance", - 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_INSTANCE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteInstance", - 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_CREATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateCluster", - 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_GET_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetCluster", - 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_LIST_CLUSTERS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters", - 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_UPDATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateCluster", - 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", - 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_CREATE_APP_PROFILE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile", - 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_GET_APP_PROFILE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetAppProfile", - 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_LIST_APP_PROFILES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListAppProfiles", - 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_UPDATE_APP_PROFILE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateAppProfile", - 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_APP_PROFILE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteAppProfile", - 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_GET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/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_BIGTABLE_INSTANCE_ADMIN_SET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/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_BIGTABLE_INSTANCE_ADMIN_TEST_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/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 BigtableInstanceAdminClient { - client: ::grpcio::Client, -} - -impl BigtableInstanceAdminClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - BigtableInstanceAdminClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_instance_opt(&self, req: &super::bigtable_instance_admin::CreateInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_INSTANCE, req, opt) - } - - pub fn create_instance(&self, req: &super::bigtable_instance_admin::CreateInstanceRequest) -> ::grpcio::Result { - self.create_instance_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_instance_async_opt(&self, req: &super::bigtable_instance_admin::CreateInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_INSTANCE, req, opt) - } - - pub fn create_instance_async(&self, req: &super::bigtable_instance_admin::CreateInstanceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_instance_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_instance_opt(&self, req: &super::bigtable_instance_admin::GetInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_INSTANCE, req, opt) - } - - pub fn get_instance(&self, req: &super::bigtable_instance_admin::GetInstanceRequest) -> ::grpcio::Result { - self.get_instance_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_instance_async_opt(&self, req: &super::bigtable_instance_admin::GetInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_INSTANCE, req, opt) - } - - pub fn get_instance_async(&self, req: &super::bigtable_instance_admin::GetInstanceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_instance_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_instances_opt(&self, req: &super::bigtable_instance_admin::ListInstancesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_INSTANCES, req, opt) - } - - pub fn list_instances(&self, req: &super::bigtable_instance_admin::ListInstancesRequest) -> ::grpcio::Result { - self.list_instances_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_instances_async_opt(&self, req: &super::bigtable_instance_admin::ListInstancesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_INSTANCES, req, opt) - } - - pub fn list_instances_async(&self, req: &super::bigtable_instance_admin::ListInstancesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_instances_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_instance_opt(&self, req: &super::instance::Instance, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_INSTANCE, req, opt) - } - - pub fn update_instance(&self, req: &super::instance::Instance) -> ::grpcio::Result { - self.update_instance_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_instance_async_opt(&self, req: &super::instance::Instance, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_INSTANCE, req, opt) - } - - pub fn update_instance_async(&self, req: &super::instance::Instance) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_instance_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn partial_update_instance_opt(&self, req: &super::bigtable_instance_admin::PartialUpdateInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_PARTIAL_UPDATE_INSTANCE, req, opt) - } - - pub fn partial_update_instance(&self, req: &super::bigtable_instance_admin::PartialUpdateInstanceRequest) -> ::grpcio::Result { - self.partial_update_instance_opt(req, ::grpcio::CallOption::default()) - } - - pub fn partial_update_instance_async_opt(&self, req: &super::bigtable_instance_admin::PartialUpdateInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_PARTIAL_UPDATE_INSTANCE, req, opt) - } - - pub fn partial_update_instance_async(&self, req: &super::bigtable_instance_admin::PartialUpdateInstanceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.partial_update_instance_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_instance_opt(&self, req: &super::bigtable_instance_admin::DeleteInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_INSTANCE, req, opt) - } - - pub fn delete_instance(&self, req: &super::bigtable_instance_admin::DeleteInstanceRequest) -> ::grpcio::Result { - self.delete_instance_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_instance_async_opt(&self, req: &super::bigtable_instance_admin::DeleteInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_INSTANCE, req, opt) - } - - pub fn delete_instance_async(&self, req: &super::bigtable_instance_admin::DeleteInstanceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_instance_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_cluster_opt(&self, req: &super::bigtable_instance_admin::CreateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_CLUSTER, req, opt) - } - - pub fn create_cluster(&self, req: &super::bigtable_instance_admin::CreateClusterRequest) -> ::grpcio::Result { - self.create_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_cluster_async_opt(&self, req: &super::bigtable_instance_admin::CreateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_CLUSTER, req, opt) - } - - pub fn create_cluster_async(&self, req: &super::bigtable_instance_admin::CreateClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_cluster_opt(&self, req: &super::bigtable_instance_admin::GetClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_CLUSTER, req, opt) - } - - pub fn get_cluster(&self, req: &super::bigtable_instance_admin::GetClusterRequest) -> ::grpcio::Result { - self.get_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_cluster_async_opt(&self, req: &super::bigtable_instance_admin::GetClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_CLUSTER, req, opt) - } - - pub fn get_cluster_async(&self, req: &super::bigtable_instance_admin::GetClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_clusters_opt(&self, req: &super::bigtable_instance_admin::ListClustersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_CLUSTERS, req, opt) - } - - pub fn list_clusters(&self, req: &super::bigtable_instance_admin::ListClustersRequest) -> ::grpcio::Result { - self.list_clusters_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_clusters_async_opt(&self, req: &super::bigtable_instance_admin::ListClustersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_CLUSTERS, req, opt) - } - - pub fn list_clusters_async(&self, req: &super::bigtable_instance_admin::ListClustersRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_clusters_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_cluster_opt(&self, req: &super::instance::Cluster, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_CLUSTER, req, opt) - } - - pub fn update_cluster(&self, req: &super::instance::Cluster) -> ::grpcio::Result { - self.update_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_cluster_async_opt(&self, req: &super::instance::Cluster, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_CLUSTER, req, opt) - } - - pub fn update_cluster_async(&self, req: &super::instance::Cluster) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.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) - } - - pub fn delete_cluster(&self, req: &super::bigtable_instance_admin::DeleteClusterRequest) -> ::grpcio::Result { - self.delete_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_cluster_async_opt(&self, req: &super::bigtable_instance_admin::DeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_CLUSTER, req, opt) - } - - pub fn delete_cluster_async(&self, req: &super::bigtable_instance_admin::DeleteClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_app_profile_opt(&self, req: &super::bigtable_instance_admin::CreateAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_APP_PROFILE, req, opt) - } - - pub fn create_app_profile(&self, req: &super::bigtable_instance_admin::CreateAppProfileRequest) -> ::grpcio::Result { - self.create_app_profile_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_app_profile_async_opt(&self, req: &super::bigtable_instance_admin::CreateAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_APP_PROFILE, req, opt) - } - - pub fn create_app_profile_async(&self, req: &super::bigtable_instance_admin::CreateAppProfileRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_app_profile_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_app_profile_opt(&self, req: &super::bigtable_instance_admin::GetAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_APP_PROFILE, req, opt) - } - - pub fn get_app_profile(&self, req: &super::bigtable_instance_admin::GetAppProfileRequest) -> ::grpcio::Result { - self.get_app_profile_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_app_profile_async_opt(&self, req: &super::bigtable_instance_admin::GetAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_APP_PROFILE, req, opt) - } - - pub fn get_app_profile_async(&self, req: &super::bigtable_instance_admin::GetAppProfileRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_app_profile_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_app_profiles_opt(&self, req: &super::bigtable_instance_admin::ListAppProfilesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_APP_PROFILES, req, opt) - } - - pub fn list_app_profiles(&self, req: &super::bigtable_instance_admin::ListAppProfilesRequest) -> ::grpcio::Result { - self.list_app_profiles_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_app_profiles_async_opt(&self, req: &super::bigtable_instance_admin::ListAppProfilesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_APP_PROFILES, req, opt) - } - - pub fn list_app_profiles_async(&self, req: &super::bigtable_instance_admin::ListAppProfilesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_app_profiles_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_app_profile_opt(&self, req: &super::bigtable_instance_admin::UpdateAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_APP_PROFILE, req, opt) - } - - pub fn update_app_profile(&self, req: &super::bigtable_instance_admin::UpdateAppProfileRequest) -> ::grpcio::Result { - self.update_app_profile_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_app_profile_async_opt(&self, req: &super::bigtable_instance_admin::UpdateAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_APP_PROFILE, req, opt) - } - - pub fn update_app_profile_async(&self, req: &super::bigtable_instance_admin::UpdateAppProfileRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_app_profile_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_app_profile_opt(&self, req: &super::bigtable_instance_admin::DeleteAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_APP_PROFILE, req, opt) - } - - pub fn delete_app_profile(&self, req: &super::bigtable_instance_admin::DeleteAppProfileRequest) -> ::grpcio::Result { - self.delete_app_profile_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_app_profile_async_opt(&self, req: &super::bigtable_instance_admin::DeleteAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_APP_PROFILE, req, opt) - } - - pub fn delete_app_profile_async(&self, req: &super::bigtable_instance_admin::DeleteAppProfileRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_app_profile_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_INSTANCE_ADMIN_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_BIGTABLE_INSTANCE_ADMIN_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 set_iam_policy_opt(&self, req: &super::iam_policy::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_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_BIGTABLE_INSTANCE_ADMIN_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 test_iam_permissions_opt(&self, req: &super::iam_policy::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_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_BIGTABLE_INSTANCE_ADMIN_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: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait BigtableInstanceAdmin { - fn create_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::CreateInstanceRequest, sink: ::grpcio::UnarySink); - fn get_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::GetInstanceRequest, sink: ::grpcio::UnarySink); - fn list_instances(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::ListInstancesRequest, sink: ::grpcio::UnarySink); - fn update_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::instance::Instance, sink: ::grpcio::UnarySink); - fn partial_update_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::PartialUpdateInstanceRequest, sink: ::grpcio::UnarySink); - fn delete_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::DeleteInstanceRequest, sink: ::grpcio::UnarySink); - fn create_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::CreateClusterRequest, sink: ::grpcio::UnarySink); - fn get_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::GetClusterRequest, sink: ::grpcio::UnarySink); - fn list_clusters(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::ListClustersRequest, sink: ::grpcio::UnarySink); - fn update_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::instance::Cluster, sink: ::grpcio::UnarySink); - fn delete_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::DeleteClusterRequest, sink: ::grpcio::UnarySink); - fn create_app_profile(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::CreateAppProfileRequest, sink: ::grpcio::UnarySink); - fn get_app_profile(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::GetAppProfileRequest, sink: ::grpcio::UnarySink); - fn list_app_profiles(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::ListAppProfilesRequest, sink: ::grpcio::UnarySink); - fn update_app_profile(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::UpdateAppProfileRequest, sink: ::grpcio::UnarySink); - fn delete_app_profile(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::DeleteAppProfileRequest, sink: ::grpcio::UnarySink); - fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_bigtable_instance_admin(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_INSTANCE, move |ctx, req, resp| { - instance.create_instance(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_INSTANCE, move |ctx, req, resp| { - instance.get_instance(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_INSTANCES, move |ctx, req, resp| { - instance.list_instances(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_INSTANCE, move |ctx, req, resp| { - instance.update_instance(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_PARTIAL_UPDATE_INSTANCE, move |ctx, req, resp| { - instance.partial_update_instance(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_INSTANCE, move |ctx, req, resp| { - instance.delete_instance(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_CLUSTER, move |ctx, req, resp| { - instance.create_cluster(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_CLUSTER, move |ctx, req, resp| { - instance.get_cluster(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_CLUSTERS, move |ctx, req, resp| { - instance.list_clusters(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_CLUSTER, move |ctx, req, resp| { - instance.update_cluster(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_CLUSTER, move |ctx, req, resp| { - instance.delete_cluster(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_APP_PROFILE, move |ctx, req, resp| { - instance.create_app_profile(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_APP_PROFILE, move |ctx, req, resp| { - instance.get_app_profile(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_APP_PROFILES, move |ctx, req, resp| { - instance.list_app_profiles(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_APP_PROFILE, move |ctx, req, resp| { - instance.update_app_profile(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_APP_PROFILE, move |ctx, req, resp| { - instance.delete_app_profile(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_IAM_POLICY, move |ctx, req, resp| { - instance.get_iam_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_SET_IAM_POLICY, move |ctx, req, resp| { - instance.set_iam_policy(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_TEST_IAM_PERMISSIONS, move |ctx, req, resp| { - instance.test_iam_permissions(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs deleted file mode 100644 index 716626f237..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs +++ /dev/null @@ -1,8598 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/v2/bigtable_table_admin.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct RestoreTableRequest { - // message fields - pub parent: ::std::string::String, - pub table_id: ::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 RestoreTableRequest { - fn default() -> &'a RestoreTableRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreTableRequest_oneof_source { - backup(::std::string::String), -} - -impl RestoreTableRequest { - pub fn new() -> RestoreTableRequest { - ::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 backup = 3; - - - pub fn get_backup(&self) -> &str { - match self.source { - ::std::option::Option::Some(RestoreTableRequest_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(RestoreTableRequest_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(RestoreTableRequest_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(RestoreTableRequest_oneof_source::backup(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(RestoreTableRequest_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(RestoreTableRequest_oneof_source::backup(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for RestoreTableRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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.table_id)?; - }, - 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()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.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); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RestoreTableRequest { - RestoreTableRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static RestoreTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreTableRequest::new) - } -} - -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 ::std::fmt::Debug for RestoreTableRequest { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RestoreTableMetadata { - // message fields - 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, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RestoreTableMetadata { - fn default() -> &'a RestoreTableMetadata { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreTableMetadata_oneof_source_info { - backup_info(super::table::BackupInfo), -} - -impl RestoreTableMetadata { - pub fn new() -> RestoreTableMetadata { - ::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; - - - 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 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(RestoreTableMetadata_oneof_source_info::backup_info(..)) => 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)) - } - - // 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 { - } else { - self.source_info = ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(super::table::BackupInfo::new())); - } - match self.source_info { - ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(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, - _ => panic!(), - } - } else { - super::table::BackupInfo::new() - } - } - - // string optimize_table_operation_name = 4; - - - 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(); - } - - // 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; - } - - // 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 - } - - // 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()) - } - - // .google.bigtable.admin.v2.OperationProgress progress = 5; - - - 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()) - } -} - -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(()) - } - - // 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_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 { - 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; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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 { - 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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RestoreTableMetadata { - RestoreTableMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static RestoreTableMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreTableMetadata::new) - } -} - -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 ::std::fmt::Debug for RestoreTableMetadata { - 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 OptimizeRestoredTableMetadata { - pub fn new() -> OptimizeRestoredTableMetadata { - ::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.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()) - } -} - -impl ::protobuf::Message for OptimizeRestoredTableMetadata { - 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)?; - }, - 2 => { - ::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(()) - } - - // 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.progress.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.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OptimizeRestoredTableMetadata { - OptimizeRestoredTableMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static OptimizeRestoredTableMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OptimizeRestoredTableMetadata::new) - } -} - -impl ::protobuf::Clear for OptimizeRestoredTableMetadata { - fn clear(&mut self) { - self.name.clear(); - self.progress.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OptimizeRestoredTableMetadata { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateTableRequest { - // message fields - pub parent: ::std::string::String, - pub table_id: ::std::string::String, - pub table: ::protobuf::SingularPtrField, - pub initial_splits: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateTableRequest { - fn default() -> &'a CreateTableRequest { - ::default_instance() - } -} - -impl CreateTableRequest { - pub fn new() -> CreateTableRequest { - ::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()) - } - - // .google.bigtable.admin.v2.Table table = 3; - - - 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()) - } - - // 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_id)?; - }, - 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())?; - }, - }; - } - ::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.table_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.table_id); - } - 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; - } - 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 - } - - 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 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)?; - } - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static CreateTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateTableRequest::new) - } -} - -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 ::std::fmt::Debug for CreateTableRequest { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateTableRequest_Split { - // message fields - pub key: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateTableRequest_Split { - fn default() -> &'a CreateTableRequest_Split { - ::default_instance() - } -} - -impl CreateTableRequest_Split { - pub fn new() -> CreateTableRequest_Split { - ::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()) - } -} - -impl ::protobuf::Message for CreateTableRequest_Split { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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::bytes_size(1, &self.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.key.is_empty() { - os.write_bytes(1, &self.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() -> CreateTableRequest_Split { - CreateTableRequest_Split::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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 default_instance() -> &'static CreateTableRequest_Split { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateTableRequest_Split::new) - } -} - -impl ::protobuf::Clear for CreateTableRequest_Split { - fn clear(&mut self) { - self.key.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateTableRequest_Split { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateTableFromSnapshotRequest { - // message fields - pub parent: ::std::string::String, - pub table_id: ::std::string::String, - pub source_snapshot: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateTableFromSnapshotRequest { - fn default() -> &'a CreateTableFromSnapshotRequest { - ::default_instance() - } -} - -impl CreateTableFromSnapshotRequest { - pub fn new() -> CreateTableFromSnapshotRequest { - ::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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_id)?; - }, - 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())?; - }, - }; - } - ::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.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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.table_id.is_empty() { - os.write_string(2, &self.table_id)?; - } - if !self.source_snapshot.is_empty() { - os.write_string(3, &self.source_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 - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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: &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 default_instance() -> &'static CreateTableFromSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateTableFromSnapshotRequest::new) - } -} - -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 ::std::fmt::Debug for CreateTableFromSnapshotRequest { - 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) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a DropRowRangeRequest { - fn default() -> &'a DropRowRangeRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum DropRowRangeRequest_oneof_target { - row_key_prefix(::std::vec::Vec), - delete_all_data_from_table(bool), -} - -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()) - } - - // 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 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, - } - } - - // 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())); - } - match self.target { - ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(ref mut v)) => v, - _ => panic!(), - } - } - - // 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bool delete_all_data_from_table = 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 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, - } - } - - // 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())?; - }, - }; - } - ::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; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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: &DropRowRangeRequest| { &m.name }, - |m: &mut DropRowRangeRequest| { &mut m.name }, - )); - 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::accessor::make_singular_bool_accessor::<_>( - "delete_all_data_from_table", - DropRowRangeRequest::has_delete_all_data_from_table, - DropRowRangeRequest::get_delete_all_data_from_table, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DropRowRangeRequest", - fields, - file_descriptor_proto() - ) - }) - } - - 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) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a ListTablesRequest { - fn default() -> &'a ListTablesRequest { - ::default_instance() - } -} - -impl ListTablesRequest { - pub fn new() -> ListTablesRequest { - ::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.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; - } - - // 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 = 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 ListTablesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)? - }, - 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())?; - }, - }; - } - ::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 != 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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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 != 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<()> { - 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 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 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 - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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 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>, - // 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 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()) - } - - // .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(); - } - - 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 = 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(); - } - - 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 CreateBackupMetadata { - 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)?; - }, - 4 => { - ::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 !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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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>( - "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 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.source_table.clear(); - self.start_time.clear(); - self.end_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 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.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()) - } -} - -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 order_by: ::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()) - } - - // 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()) - } -} - -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 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.order_by)?; - }, - 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())?; - }, - }; - } - ::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.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); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &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.order_by.is_empty() { - os.write_string(3, &self.order_by)?; - } - 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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::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 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.order_by.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.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()) - } -} - -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) - } -} - -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\"\ - \xc0\x01\n\x13RestoreTableRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\ - \x06parentB(\xfaA\"\n\x20bigtable.googleapis.com/Instance\xe0A\x02\x12\ - \x1e\n\x08table_id\x18\x02\x20\x01(\tR\x07tableIdB\x03\xe0A\x02\x12=\n\ - \x06backup\x18\x03\x20\x01(\tH\0R\x06backupB#\xfaA\x20\n\x1ebigtable.goo\ - gleapis.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\"\xa8\x02\ - \n\x12CreateTableRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\ - (\xfaA\"\n\x20bigtable.googleapis.com/Instance\xe0A\x02\x12\x1e\n\x08tab\ - le_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\"\xd5\x01\n\x1eCreateTableFro\ - mSnapshotRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\xfaA\"\ - \n\x20bigtable.googleapis.com/Instance\xe0A\x02\x12\x1e\n\x08table_id\ - \x18\x02\x20\x01(\tR\x07tableIdB\x03\xe0A\x02\x12Q\n\x0fsource_snapshot\ - \x18\x03\x20\x01(\tR\x0esourceSnapshotB(\xfaA\"\n\x20bigtable.googleapis\ - .com/Snapshot\xe0A\x02\"\xc0\x01\n\x13DropRowRangeRequest\x129\n\x04name\ - \x18\x01\x20\x01(\tR\x04nameB%\xe0A\x02\xfaA\x1f\n\x1dbigtable.googleapi\ - s.com/Table\x12&\n\x0erow_key_prefix\x18\x02\x20\x01(\x0cH\0R\x0crowKeyP\ - refix\x12<\n\x1adelete_all_data_from_table\x18\x03\x20\x01(\x08H\0R\x16d\ - eleteAllDataFromTableB\x08\n\x06target\"\xcb\x01\n\x11ListTablesRequest\ - \x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\xfaA\"\n\x20bigtable.g\ - oogleapis.com/Instance\xe0A\x02\x128\n\x04view\x18\x02\x20\x01(\x0e2$.go\ - ogle.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\"\x86\x01\n\x0fGetTableRequest\x129\ - \n\x04name\x18\x01\x20\x01(\tR\x04nameB%\xe0A\x02\xfaA\x1f\n\x1dbigtable\ - .googleapis.com/Table\x128\n\x04view\x18\x02\x20\x01(\x0e2$.google.bigta\ - ble.admin.v2.Table.ViewR\x04view\"O\n\x12DeleteTableRequest\x129\n\x04na\ - me\x18\x01\x20\x01(\tR\x04nameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/T\ - able\xe0A\x02\"\x89\x03\n\x1bModifyColumnFamiliesRequest\x129\n\x04name\ - \x18\x01\x20\x01(\tR\x04nameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/Tab\ - le\xe0A\x02\x12m\n\rmodifications\x18\x02\x20\x03(\x0b2B.google.bigtable\ - .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\"\\\n\x1fGenerateConsistency\ - TokenRequest\x129\n\x04name\x18\x01\x20\x01(\tR\x04nameB%\xfaA\x1f\n\x1d\ - bigtable.googleapis.com/Table\xe0A\x02\"O\n\x20GenerateConsistencyTokenR\ - esponse\x12+\n\x11consistency_token\x18\x01\x20\x01(\tR\x10consistencyTo\ - ken\"\x86\x01\n\x17CheckConsistencyRequest\x129\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/Table\xe0A\x02\ - \x120\n\x11consistency_token\x18\x02\x20\x01(\tR\x10consistencyTokenB\ - \x03\xe0A\x02\":\n\x18CheckConsistencyResponse\x12\x1e\n\nconsistent\x18\ - \x01\x20\x01(\x08R\nconsistent\"\x89\x02\n\x14SnapshotTableRequest\x129\ - \n\x04name\x18\x01\x20\x01(\tR\x04nameB%\xe0A\x02\xfaA\x1f\n\x1dbigtable\ - .googleapis.com/Table\x12A\n\x07cluster\x18\x02\x20\x01(\tR\x07clusterB'\ - \xfaA!\n\x1fbigtable.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\x0bdescrip\ - tion\x18\x05\x20\x01(\tR\x0bdescription\"R\n\x12GetSnapshotRequest\x12<\ - \n\x04name\x18\x01\x20\x01(\tR\x04nameB(\xe0A\x02\xfaA\"\n\x20bigtable.g\ - oogleapis.com/Snapshot\"\x93\x01\n\x14ListSnapshotsRequest\x12?\n\x06par\ - ent\x18\x01\x20\x01(\tR\x06parentB'\xe0A\x02\xfaA!\n\x1fbigtable.googlea\ - pis.com/Cluster\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\x15Lis\ - tSnapshotsResponse\x12@\n\tsnapshots\x18\x01\x20\x03(\x0b2\".google.bigt\ - able.admin.v2.SnapshotR\tsnapshots\x12&\n\x0fnext_page_token\x18\x02\x20\ - \x01(\tR\rnextPageToken\"U\n\x15DeleteSnapshotRequest\x12<\n\x04name\x18\ - \x01\x20\x01(\tR\x04nameB(\xe0A\x02\xfaA\"\n\x20bigtable.googleapis.com/\ - Snapshot\"\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\"\xb7\x01\n\x13CreateBackup\ - Request\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\n\x1fbigt\ - able.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\"N\n\x10GetBackupRequest\x12:\n\x04nam\ - e\x18\x01\x20\x01(\tR\x04nameB&\xfaA\x20\n\x1ebigtable.googleapis.com/Ba\ - ckup\xe0A\x02\"Q\n\x13DeleteBackupRequest\x12:\n\x04name\x18\x01\x20\x01\ - (\tR\x04nameB&\xfaA\x20\n\x1ebigtable.googleapis.com/Backup\xe0A\x02\"\ - \xc4\x01\n\x12ListBackupsRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\ - \x06parentB'\xe0A\x02\xfaA!\n\x1fbigtable.googleapis.com/Cluster\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\rnextPageToken2\x98%\n\x12BigtableTableAdmin\x12\xab\x01\n\x0bC\ - reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.goog\ - le.bigtable.admin.v2.Table\"M\x82\xd3\xe4\x93\x02/\"*/v2/{parent=project\ - s/*/instances/*}/tables:\x01*\xdaA\x15parent,table_id,table\x12\x8a\x02\ - \n\x17CreateTableFromSnapshot\x128.google.bigtable.admin.v2.CreateTableF\ - romSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xcaA(\ - \n\x05Table\x12\x1fCreateTableFromSnapshotMetadata\xdaA\x1fparent,table_\ - id,source_snapshot\x82\xd3\xe4\x93\x02B\"=/v2/{parent=projects/*/instanc\ - es/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.goo\ - gle.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.Li\ - stTablesResponse\";\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/inst\ - ances/*}/tables\xdaA\x06parent\x12\x91\x01\n\x08GetTable\x12).google.big\ - table.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\ - \x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\xda\ - A\x04name\x12\x8e\x01\n\x0bDeleteTable\x12,.google.bigtable.admin.v2.Del\ - eteTableRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\xe4\x93\x02,**/\ - v2/{name=projects/*/instances/*/tables/*}\xdaA\x04name\x12\xcf\x01\n\x14\ - ModifyColumnFamilies\x125.google.bigtable.admin.v2.ModifyColumnFamiliesR\ - equest\x1a\x1f.google.bigtable.admin.v2.Table\"_\xdaA\x12name,modificati\ - ons\x82\xd3\xe4\x93\x02D\"?/v2/{name=projects/*/instances/*/tables/*}:mo\ - difyColumnFamilies:\x01*\x12\x99\x01\n\x0cDropRowRange\x12-.google.bigta\ - ble.admin.v2.DropRowRangeRequest\x1a\x16.google.protobuf.Empty\"B\x82\ - \xd3\xe4\x93\x02<\"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRa\ - nge:\x01*\x12\xe8\x01\n\x18GenerateConsistencyToken\x129.google.bigtable\ - .admin.v2.GenerateConsistencyTokenRequest\x1a:.google.bigtable.admin.v2.\ - GenerateConsistencyTokenResponse\"U\x82\xd3\xe4\x93\x02H\"C/v2/{name=pro\ - jects/*/instances/*/tables/*}:generateConsistencyToken:\x01*\xdaA\x04nam\ - e\x12\xda\x01\n\x10CheckConsistency\x121.google.bigtable.admin.v2.CheckC\ - onsistencyRequest\x1a2.google.bigtable.admin.v2.CheckConsistencyResponse\ - \"_\x82\xd3\xe4\x93\x02@\";/v2/{name=projects/*/instances/*/tables/*}:ch\ - eckConsistency:\x01*\xdaA\x16name,consistency_token\x12\xea\x01\n\rSnaps\ - hotTable\x12..google.bigtable.admin.v2.SnapshotTableRequest\x1a\x1d.goog\ - le.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x028\"3/v2/{name=proj\ - ects/*/instances/*/tables/*}:snapshot:\x01*\xdaA$name,cluster,snapshot_i\ - d,description\xcaA!\n\x08Snapshot\x12\x15SnapshotTableMetadata\x12\xa8\ - \x01\n\x0bGetSnapshot\x12,.google.bigtable.admin.v2.GetSnapshotRequest\ - \x1a\".google.bigtable.admin.v2.Snapshot\"G\x82\xd3\xe4\x93\x02:\x128/v2\ - /{name=projects/*/instances/*/clusters/*/snapshots/*}\xdaA\x04name\x12\ - \xbb\x01\n\rListSnapshots\x12..google.bigtable.admin.v2.ListSnapshotsReq\ - uest\x1a/.google.bigtable.admin.v2.ListSnapshotsResponse\"I\xdaA\x06pare\ - nt\x82\xd3\xe4\x93\x02:\x128/v2/{parent=projects/*/instances/*/clusters/\ - *}/snapshots\x12\xa2\x01\n\x0eDeleteSnapshot\x12/.google.bigtable.admin.\ - v2.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"G\xdaA\x04name\ - \x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/instances/*/clusters/*/snaps\ - hots/*}\x12\xe0\x01\n\x0cCreateBackup\x12-.google.bigtable.admin.v2.Crea\ - teBackupRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\x82\xd3\ - \xe4\x93\x02@\"6/v2/{parent=projects/*/instances/*/clusters/*}/backups:\ - \x06backup\xdaA\x17parent,backup_id,backup\xcaA\x1e\n\x06Backup\x12\x14C\ - reateBackupMetadata\x12\xa0\x01\n\tGetBackup\x12*.google.bigtable.admin.\ - v2.GetBackupRequest\x1a\x20.google.bigtable.admin.v2.Backup\"E\x82\xd3\ - \xe4\x93\x028\x126/v2/{name=projects/*/instances/*/clusters/*/backups/*}\ - \xdaA\x04name\x12\xc3\x01\n\x0cUpdateBackup\x12-.google.bigtable.admin.v\ - 2.UpdateBackupRequest\x1a\x20.google.bigtable.admin.v2.Backup\"b\xdaA\ - \x12backup,update_mask\x82\xd3\xe4\x93\x02G2=/v2/{backup.name=projects/*\ - /instances/*/clusters/*/backups/*}:\x06backup\x12\x9c\x01\n\x0cDeleteBac\ - kup\x12-.google.bigtable.admin.v2.DeleteBackupRequest\x1a\x16.google.pro\ - tobuf.Empty\"E\x82\xd3\xe4\x93\x028*6/v2/{name=projects/*/instances/*/cl\ - usters/*/backups/*}\xdaA\x04name\x12\xb3\x01\n\x0bListBackups\x12,.googl\ - e.bigtable.admin.v2.ListBackupsRequest\x1a-.google.bigtable.admin.v2.Lis\ - tBackupsResponse\"G\xdaA\x06parent\x82\xd3\xe4\x93\x028\x126/v2/{parent=\ - projects/*/instances/*/clusters/*}/backups\x12\xbb\x01\n\x0cRestoreTable\ - \x12-.google.bigtable.admin.v2.RestoreTableRequest\x1a\x1d.google.longru\ - nning.Operation\"]\x82\xd3\xe4\x93\x027\"2/v2/{parent=projects/*/instanc\ - es/*}/tables:restore:\x01*\xcaA\x1d\n\x05Table\x12\x14RestoreTableMetada\ - ta\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\";/v\ - 2/{resource=projects/*/instances/*/tables/*}:getIamPolicy:\x01*ZL\"G/v2/\ - {resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy:\x01\ - *\xdaA\x08resource\x12\xf3\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.Set\ - IamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa7\x01\xdaA\x0fresource\ - ,policy\x82\xd3\xe4\x93\x02\x8e\x01\";/v2/{resource=projects/*/instances\ - /*/tables/*}:setIamPolicy:\x01*ZL\"G/v2/{resource=projects/*/instances/*\ - /clusters/*/backups/*}:setIamPolicy:\x01*\x12\xa4\x02\n\x12TestIamPermis\ - sions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.Te\ - stIamPermissionsResponse\"\xb8\x01\xdaA\x14resource,permissions\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*\x1a\xde\x02\xd2A\xbb\x02https://w\ - ww.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bi\ - gtable.admin.table,https://www.googleapis.com/auth/cloud-bigtable.admin,\ - https://www.googleapis.com/auth/cloud-bigtable.admin.table,https://www.g\ - oogleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-\ - platform.read-only\xcaA\x1cbigtableadmin.googleapis.comB\xdf\x01\n\x1cco\ - m.google.bigtable.admin.v2B\x17BigtableTableAdminProtoP\x01Z=google.gola\ - ng.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Clo\ - ud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\ - \x02\"Google::Cloud::Bigtable::Admin::V2J\xca\xa2\x02\n\x07\x12\x05\x0e\ - \0\xea\x07\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyrig\ - ht\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\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#\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\xcb\x02\x01\x1a\x9e\x01\x20Service\x20for\x20creating,\x20co\ - nfiguring,\x20and\x20deleting\x20Cloud\x20Bigtable\x20tables.\n\n\n\x20P\ - rovides\x20access\x20to\x20the\x20table\x20schemas\x20only,\x20not\x20th\ - e\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\x20table\x20can\x20be\x20created\x20\ - with\x20a\x20full\x20set\x20of\x20initial\x20column\x20families,\n\x20sp\ - ecified\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\x04J\x02T\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\x20the\x20same\x20instance.\n\n\x20\ - Note:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\ - \x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currentl\ - y\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\ - \n\x20feature\x20might\x20be\x20changed\x20in\x20backward-incompatible\ - \x20ways\x20and\x20is\x20not\n\x20recommended\x20for\x20production\x20us\ - e.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecatio\ - n\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\ - \x03JGc\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\x0c\n\x05\x06\0\x02\x01\ - \x04\x12\x03O\x04M\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03O\x04M\ - \n\r\n\x05\x06\0\x02\x01\x04\x12\x04P\x04S\x06\n\x0f\n\x07\x06\0\x02\x01\ - \x04\x99\x08\x12\x04P\x04S\x06\nB\n\x04\x06\0\x02\x02\x12\x04W\x02\\\x03\ - \x1a4\x20Lists\x20all\x20tables\x20served\x20from\x20a\x20specified\x20i\ - nstance.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03W\x06\x10\n\x0c\n\x05\ - \x06\0\x02\x02\x02\x12\x03W\x11\"\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03W\ - -?\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[\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_\x02d\x03\x1a6\x20Gets\x20metadata\x20informa\ - tion\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\ - \x04`\x04b\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04`\x04b\ - \x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03c\x042\n\x0f\n\x08\x06\0\x02\ - \x03\x04\x9b\x08\0\x12\x03c\x042\nJ\n\x04\x06\0\x02\x04\x12\x04g\x02l\ - \x03\x1a<\x20Permanently\x20deletes\x20a\x20specified\x20table\x20and\ - \x20all\x20of\x20its\x20data.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03g\ - \x06\x11\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03g\x12$\n\x0c\n\x05\x06\0\ - \x02\x04\x03\x12\x03g/D\n\r\n\x05\x06\0\x02\x04\x04\x12\x04h\x04j\x06\n\ - \x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04h\x04j\x06\n\x0c\n\x05\ - \x06\0\x02\x04\x04\x12\x03k\x042\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\ - \x12\x03k\x042\n\x9b\x02\n\x04\x06\0\x02\x05\x12\x04r\x02x\x03\x1a\x8c\ - \x02\x20Performs\x20a\x20series\x20of\x20column\x20family\x20modificatio\ - ns\x20on\x20the\x20specified\x20table.\n\x20Either\x20all\x20or\x20none\ - \x20of\x20the\x20modifications\x20will\x20occur\x20before\x20this\x20met\ - hod\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\x03r\x06\x1a\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03r\x1b6\n\ - \x0c\n\x05\x06\0\x02\x05\x03\x12\x03rAF\n\r\n\x05\x06\0\x02\x05\x04\x12\ - \x04s\x04v\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04s\x04v\ - \x06\n\x0c\n\x05\x06\0\x02\x05\x04\x12\x03w\x04@\n\x0f\n\x08\x06\0\x02\ - \x05\x04\x9b\x08\0\x12\x03w\x04@\n\xbc\x01\n\x04\x06\0\x02\x06\x12\x05}\ - \x02\x82\x01\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\x20tabl\ - e,\x20or\x20only\x20those\x20that\x20match\x20a\n\x20particular\x20prefi\ - x.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03}\x06\x12\n\x0c\n\x05\x06\0\ - \x02\x06\x02\x12\x03}\x13&\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03}1F\n\ - \x0e\n\x05\x06\0\x02\x06\x04\x12\x05~\x04\x81\x01\x06\n\x12\n\t\x06\0\ - \x02\x06\x04\xb0\xca\xbc\"\x12\x05~\x04\x81\x01\x06\n\xf5\x01\n\x04\x06\ - \0\x02\x07\x12\x06\x88\x01\x02\x8e\x01\x03\x1a\xe4\x01\x20Generates\x20a\ - \x20consistency\x20token\x20for\x20a\x20Table,\x20which\x20can\x20be\x20\ - used\x20in\n\x20CheckConsistency\x20to\x20check\x20whether\x20mutations\ - \x20to\x20the\x20table\x20that\x20finished\n\x20before\x20this\x20call\ - \x20started\x20have\x20been\x20replicated.\x20The\x20tokens\x20will\x20b\ - e\x20available\n\x20for\x2090\x20days.\n\n\r\n\x05\x06\0\x02\x07\x01\x12\ - \x04\x88\x01\x06\x1e\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\x88\x01\x1f>\n\ - \r\n\x05\x06\0\x02\x07\x03\x12\x04\x88\x01Ii\n\x0f\n\x05\x06\0\x02\x07\ - \x04\x12\x06\x89\x01\x04\x8c\x01\x06\n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\ - \xbc\"\x12\x06\x89\x01\x04\x8c\x01\x06\n\r\n\x05\x06\0\x02\x07\x04\x12\ - \x04\x8d\x01\x042\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\0\x12\x04\x8d\ - \x01\x042\n\xbd\x01\n\x04\x06\0\x02\x08\x12\x06\x93\x01\x02\x99\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\r\n\x05\x06\0\ - \x02\x08\x01\x12\x04\x93\x01\x06\x16\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\ - \x93\x01\x17.\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\x93\x019Q\n\x0f\n\x05\ - \x06\0\x02\x08\x04\x12\x06\x94\x01\x04\x97\x01\x06\n\x13\n\t\x06\0\x02\ - \x08\x04\xb0\xca\xbc\"\x12\x06\x94\x01\x04\x97\x01\x06\n\r\n\x05\x06\0\ - \x02\x08\x04\x12\x04\x98\x01\x04D\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\ - \0\x12\x04\x98\x01\x04D\n\xca\x03\n\x04\x06\0\x02\t\x12\x06\xa3\x01\x02\ - \xad\x01\x03\x1a\xb9\x03\x20Creates\x20a\x20new\x20snapshot\x20in\x20the\ - \x20specified\x20cluster\x20from\x20the\x20specified\n\x20source\x20tabl\ - e.\x20The\x20cluster\x20and\x20the\x20table\x20must\x20be\x20in\x20the\ - \x20same\x20instance.\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\ - \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\t\x01\ - \x12\x04\xa3\x01\x06\x13\n\r\n\x05\x06\0\x02\t\x02\x12\x04\xa3\x01\x14(\ - \n\r\n\x05\x06\0\x02\t\x03\x12\x04\xa3\x013O\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\r\n\x05\x06\0\x02\t\x04\x12\x04\xa8\ - \x01\x04R\n\x10\n\x08\x06\0\x02\t\x04\x9b\x08\0\x12\x04\xa8\x01\x04R\n\ - \x0f\n\x05\x06\0\x02\t\x04\x12\x06\xa9\x01\x04\xac\x01\x06\n\x11\n\x07\ - \x06\0\x02\t\x04\x99\x08\x12\x06\xa9\x01\x04\xac\x01\x06\n\xf8\x02\n\x04\ - \x06\0\x02\n\x12\x06\xb6\x01\x02\xbb\x01\x03\x1a\xe7\x02\x20Gets\x20meta\ - data\x20information\x20about\x20the\x20specified\x20snapshot.\n\n\x20Not\ - e:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20B\ - igtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20\ - available\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20\ - feature\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\x20p\ - olicy.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xb6\x01\x06\x11\n\r\n\x05\x06\ - \0\x02\n\x02\x12\x04\xb6\x01\x12$\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xb6\ - \x01/7\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xb7\x01\x04\xb9\x01\x06\n\x13\ - \n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xb7\x01\x04\xb9\x01\x06\n\r\n\ - \x05\x06\0\x02\n\x04\x12\x04\xba\x01\x042\n\x10\n\x08\x06\0\x02\n\x04\ - \x9b\x08\0\x12\x04\xba\x01\x042\n\xfb\x02\n\x04\x06\0\x02\x0b\x12\x06\ - \xc4\x01\x02\xc9\x01\x03\x1a\xea\x02\x20Lists\x20all\x20snapshots\x20ass\ - ociated\x20with\x20the\x20specified\x20cluster.\n\n\x20Note:\x20This\x20\ - is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20sna\ - pshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20available\x20t\ - o\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\x20mig\ - ht\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\x0b\x01\x12\x04\xc4\x01\x06\x13\n\r\n\x05\x06\0\x02\x0b\ - \x02\x12\x04\xc4\x01\x14(\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\xc4\x013H\ - \n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xc5\x01\x04\xc7\x01\x06\n\x13\n\t\ - \x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xc5\x01\x04\xc7\x01\x06\n\r\n\ - \x05\x06\0\x02\x0b\x04\x12\x04\xc8\x01\x044\n\x10\n\x08\x06\0\x02\x0b\ - \x04\x9b\x08\0\x12\x04\xc8\x01\x044\n\xec\x02\n\x04\x06\0\x02\x0c\x12\ - \x06\xd2\x01\x02\xd7\x01\x03\x1a\xdb\x02\x20Permanently\x20deletes\x20th\ - e\x20specified\x20snapshot.\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\r\n\x05\x06\0\x02\ - \x0c\x01\x12\x04\xd2\x01\x06\x14\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xd2\ - \x01\x15*\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xd2\x015J\n\x0f\n\x05\x06\ - \0\x02\x0c\x04\x12\x06\xd3\x01\x04\xd5\x01\x06\n\x13\n\t\x06\0\x02\x0c\ - \x04\xb0\xca\xbc\"\x12\x06\xd3\x01\x04\xd5\x01\x06\n\r\n\x05\x06\0\x02\ - \x0c\x04\x12\x04\xd6\x01\x042\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\ - \x12\x04\xd6\x01\x042\n\x98\x04\n\x04\x06\0\x02\r\x12\x06\xe1\x01\x02\ - \xeb\x01\x03\x1a\x87\x04\x20Starts\x20creating\x20a\x20new\x20Cloud\x20B\ - igtable\x20Backup.\x20\x20The\x20returned\x20backup\n\x20[long-running\ - \x20operation][google.longrunning.Operation]\x20can\x20be\x20used\x20to\ - \n\x20track\x20creation\x20of\x20the\x20backup.\x20The\n\x20[metadata][g\ - oogle.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[Creat\ - eBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata].\x20The\ - \n\x20[response][google.longrunning.Operation.response]\x20field\x20type\ - \x20is\n\x20[Backup][google.bigtable.admin.v2.Backup],\x20if\x20successf\ - ul.\x20Cancelling\x20the\x20returned\x20operation\x20will\x20stop\x20the\ - \n\x20creation\x20and\x20delete\x20the\x20backup.\n\n\r\n\x05\x06\0\x02\ - \r\x01\x12\x04\xe1\x01\x06\x12\n\r\n\x05\x06\0\x02\r\x02\x12\x04\xe1\x01\ - \x13&\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xe1\x011M\n\x0f\n\x05\x06\0\x02\ - \r\x04\x12\x06\xe2\x01\x04\xe5\x01\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\ - \xbc\"\x12\x06\xe2\x01\x04\xe5\x01\x06\n\r\n\x05\x06\0\x02\r\x04\x12\x04\ - \xe6\x01\x04E\n\x10\n\x08\x06\0\x02\r\x04\x9b\x08\0\x12\x04\xe6\x01\x04E\ - \n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xe7\x01\x04\xea\x01\x06\n\x11\n\x07\ - \x06\0\x02\r\x04\x99\x08\x12\x06\xe7\x01\x04\xea\x01\x06\nP\n\x04\x06\0\ - \x02\x0e\x12\x06\xee\x01\x02\xf3\x01\x03\x1a@\x20Gets\x20metadata\x20on\ - \x20a\x20pending\x20or\x20completed\x20Cloud\x20Bigtable\x20Backup.\n\n\ - \r\n\x05\x06\0\x02\x0e\x01\x12\x04\xee\x01\x06\x0f\n\r\n\x05\x06\0\x02\ - \x0e\x02\x12\x04\xee\x01\x10\x20\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\xee\ - \x01+1\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xef\x01\x04\xf1\x01\x06\n\ - \x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xef\x01\x04\xf1\x01\x06\ - \n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\xf2\x01\x042\n\x10\n\x08\x06\0\x02\ - \x0e\x04\x9b\x08\0\x12\x04\xf2\x01\x042\nG\n\x04\x06\0\x02\x0f\x12\x06\ - \xf6\x01\x02\xfc\x01\x03\x1a7\x20Updates\x20a\x20pending\x20or\x20comple\ - ted\x20Cloud\x20Bigtable\x20Backup.\n\n\r\n\x05\x06\0\x02\x0f\x01\x12\ - \x04\xf6\x01\x06\x12\n\r\n\x05\x06\0\x02\x0f\x02\x12\x04\xf6\x01\x13&\n\ - \r\n\x05\x06\0\x02\x0f\x03\x12\x04\xf6\x0117\n\x0f\n\x05\x06\0\x02\x0f\ - \x04\x12\x06\xf7\x01\x04\xfa\x01\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\xca\ - \xbc\"\x12\x06\xf7\x01\x04\xfa\x01\x06\n\r\n\x05\x06\0\x02\x0f\x04\x12\ - \x04\xfb\x01\x04@\n\x10\n\x08\x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\xfb\ - \x01\x04@\nG\n\x04\x06\0\x02\x10\x12\x06\xff\x01\x02\x84\x02\x03\x1a7\ - \x20Deletes\x20a\x20pending\x20or\x20completed\x20Cloud\x20Bigtable\x20b\ - ackup.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\x04\xff\x01\x06\x12\n\r\n\x05\ - \x06\0\x02\x10\x02\x12\x04\xff\x01\x13&\n\r\n\x05\x06\0\x02\x10\x03\x12\ - \x04\xff\x011F\n\x0f\n\x05\x06\0\x02\x10\x04\x12\x06\x80\x02\x04\x82\x02\ - \x06\n\x13\n\t\x06\0\x02\x10\x04\xb0\xca\xbc\"\x12\x06\x80\x02\x04\x82\ - \x02\x06\n\r\n\x05\x06\0\x02\x10\x04\x12\x04\x83\x02\x042\n\x10\n\x08\ - \x06\0\x02\x10\x04\x9b\x08\0\x12\x04\x83\x02\x042\n\\\n\x04\x06\0\x02\ - \x11\x12\x06\x88\x02\x02\x8d\x02\x03\x1aL\x20Lists\x20Cloud\x20Bigtable\ - \x20backups.\x20Returns\x20both\x20completed\x20and\x20pending\n\x20back\ - ups.\n\n\r\n\x05\x06\0\x02\x11\x01\x12\x04\x88\x02\x06\x11\n\r\n\x05\x06\ - \0\x02\x11\x02\x12\x04\x88\x02\x12$\n\r\n\x05\x06\0\x02\x11\x03\x12\x04\ - \x88\x02/B\n\x0f\n\x05\x06\0\x02\x11\x04\x12\x06\x89\x02\x04\x8b\x02\x06\ - \n\x13\n\t\x06\0\x02\x11\x04\xb0\xca\xbc\"\x12\x06\x89\x02\x04\x8b\x02\ - \x06\n\r\n\x05\x06\0\x02\x11\x04\x12\x04\x8c\x02\x044\n\x10\n\x08\x06\0\ - \x02\x11\x04\x9b\x08\0\x12\x04\x8c\x02\x044\n\xb5\x04\n\x04\x06\0\x02\ - \x12\x12\x06\x97\x02\x02\xa0\x02\x03\x1a\xa4\x04\x20Create\x20a\x20new\ - \x20table\x20by\x20restoring\x20from\x20a\x20completed\x20backup.\x20The\ - \x20new\x20table\n\x20must\x20be\x20in\x20the\x20same\x20instance\x20as\ - \x20the\x20instance\x20containing\x20the\x20backup.\x20\x20The\n\x20retu\ - rned\x20table\x20[long-running\x20operation][google.longrunning.Operatio\ - n]\x20can\n\x20be\x20used\x20to\x20track\x20the\x20progress\x20of\x20the\ - \x20operation,\x20and\x20to\x20cancel\x20it.\x20\x20The\n\x20[metadata][\ - google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[Rest\ - oreTableMetadata][google.bigtable.admin.RestoreTableMetadata].\x20\x20Th\ - e\n\x20[response][google.longrunning.Operation.response]\x20type\x20is\n\ - \x20[Table][google.bigtable.admin.v2.Table],\x20if\x20successful.\n\n\r\ - \n\x05\x06\0\x02\x12\x01\x12\x04\x97\x02\x06\x12\n\r\n\x05\x06\0\x02\x12\ - \x02\x12\x04\x97\x02\x13&\n\r\n\x05\x06\0\x02\x12\x03\x12\x04\x97\x021M\ - \n\x0f\n\x05\x06\0\x02\x12\x04\x12\x06\x98\x02\x04\x9b\x02\x06\n\x13\n\t\ - \x06\0\x02\x12\x04\xb0\xca\xbc\"\x12\x06\x98\x02\x04\x9b\x02\x06\n\x0f\n\ - \x05\x06\0\x02\x12\x04\x12\x06\x9c\x02\x04\x9f\x02\x06\n\x11\n\x07\x06\0\ - \x02\x12\x04\x99\x08\x12\x06\x9c\x02\x04\x9f\x02\x06\n\xa2\x01\n\x04\x06\ - \0\x02\x13\x12\x06\xa5\x02\x02\xaf\x02\x03\x1a\x91\x01\x20Gets\x20the\ - \x20access\x20control\x20policy\x20for\x20a\x20Table\x20or\x20Backup\x20\ - resource.\n\x20Returns\x20an\x20empty\x20policy\x20if\x20the\x20resource\ - \x20exists\x20but\x20does\x20not\x20have\x20a\x20policy\n\x20set.\n\n\r\ - \n\x05\x06\0\x02\x13\x01\x12\x04\xa5\x02\x06\x12\n\r\n\x05\x06\0\x02\x13\ - \x02\x12\x04\xa5\x02\x134\n\r\n\x05\x06\0\x02\x13\x03\x12\x04\xa5\x02?S\ - \n\x0f\n\x05\x06\0\x02\x13\x04\x12\x06\xa6\x02\x04\xad\x02\x06\n\x13\n\t\ - \x06\0\x02\x13\x04\xb0\xca\xbc\"\x12\x06\xa6\x02\x04\xad\x02\x06\n\r\n\ - \x05\x06\0\x02\x13\x04\x12\x04\xae\x02\x046\n\x10\n\x08\x06\0\x02\x13\ - \x04\x9b\x08\0\x12\x04\xae\x02\x046\nn\n\x04\x06\0\x02\x14\x12\x06\xb3\ - \x02\x02\xbd\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\x14\x01\x12\x04\xb3\x02\ - \x06\x12\n\r\n\x05\x06\0\x02\x14\x02\x12\x04\xb3\x02\x134\n\r\n\x05\x06\ - \0\x02\x14\x03\x12\x04\xb3\x02?S\n\x0f\n\x05\x06\0\x02\x14\x04\x12\x06\ - \xb4\x02\x04\xbb\x02\x06\n\x13\n\t\x06\0\x02\x14\x04\xb0\xca\xbc\"\x12\ - \x06\xb4\x02\x04\xbb\x02\x06\n\r\n\x05\x06\0\x02\x14\x04\x12\x04\xbc\x02\ - \x04=\n\x10\n\x08\x06\0\x02\x14\x04\x9b\x08\0\x12\x04\xbc\x02\x04=\nd\n\ - \x04\x06\0\x02\x15\x12\x06\xc0\x02\x02\xca\x02\x03\x1aT\x20Returns\x20pe\ - rmissions\x20that\x20the\x20caller\x20has\x20on\x20the\x20specified\x20T\ - able\x20or\x20Backup\x20resource.\n\n\r\n\x05\x06\0\x02\x15\x01\x12\x04\ - \xc0\x02\x06\x18\n\r\n\x05\x06\0\x02\x15\x02\x12\x04\xc0\x02\x19@\n\r\n\ - \x05\x06\0\x02\x15\x03\x12\x04\xc0\x02Ks\n\x0f\n\x05\x06\0\x02\x15\x04\ - \x12\x06\xc1\x02\x04\xc8\x02\x06\n\x13\n\t\x06\0\x02\x15\x04\xb0\xca\xbc\ - \"\x12\x06\xc1\x02\x04\xc8\x02\x06\n\r\n\x05\x06\0\x02\x15\x04\x12\x04\ - \xc9\x02\x04B\n\x10\n\x08\x06\0\x02\x15\x04\x9b\x08\0\x12\x04\xc9\x02\ - \x04B\nj\n\x02\x04\0\x12\x06\xcf\x02\0\xe8\x02\x01\x1a\\\x20The\x20reque\ - st\x20for\n\x20[RestoreTable][google.bigtable.admin.v2.BigtableTableAdmi\ - n.RestoreTable].\n\n\x0b\n\x03\x04\0\x01\x12\x04\xcf\x02\x08\x1b\n\xd7\ - \x01\n\x04\x04\0\x02\0\x12\x06\xd3\x02\x02\xd8\x02\x04\x1a\xc6\x01\x20Re\ - quired.\x20The\x20name\x20of\x20the\x20instance\x20in\x20which\x20to\x20\ - create\x20the\x20restored\n\x20table.\x20This\x20instance\x20must\x20be\ - \x20the\x20parent\x20of\x20the\x20source\x20backup.\x20Values\x20are\n\ - \x20of\x20the\x20form\x20`projects//instances/`.\n\n\ - \x0f\n\x05\x04\0\x02\0\x04\x12\x06\xd3\x02\x02\xcf\x02\x1d\n\r\n\x05\x04\ - \0\x02\0\x05\x12\x04\xd3\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\ - \xd3\x02\t\x0f\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xd3\x02\x12\x13\n\x0f\n\ - \x05\x04\0\x02\0\x08\x12\x06\xd3\x02\x14\xd8\x02\x03\n\x10\n\x08\x04\0\ - \x02\0\x08\x9c\x08\0\x12\x04\xd4\x02\x04*\n\x11\n\x07\x04\0\x02\0\x08\ - \x9f\x08\x12\x06\xd5\x02\x04\xd7\x02\x05\n\xf5\x01\n\x04\x04\0\x02\x01\ - \x12\x04\xde\x02\x02?\x1a\xe6\x01\x20Required.\x20The\x20id\x20of\x20the\ - \x20table\x20to\x20create\x20and\x20restore\x20to.\x20This\n\x20table\ - \x20must\x20not\x20already\x20exist.\x20The\x20`table_id`\x20appended\ - \x20to\n\x20`parent`\x20forms\x20the\x20full\x20table\x20name\x20of\x20t\ - he\x20form\n\x20`projects//instances//tables/`.\n\n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\xde\x02\x02\xd8\x02\x04\n\r\ - \n\x05\x04\0\x02\x01\x05\x12\x04\xde\x02\x02\x08\n\r\n\x05\x04\0\x02\x01\ - \x01\x12\x04\xde\x02\t\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xde\x02\ - \x14\x15\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\xde\x02\x16>\n\x10\n\x08\ - \x04\0\x02\x01\x08\x9c\x08\0\x12\x04\xde\x02\x17=\n=\n\x04\x04\0\x08\0\ - \x12\x06\xe1\x02\x02\xe7\x02\x03\x1a-\x20Required.\x20The\x20source\x20f\ - rom\x20which\x20to\x20restore.\n\n\r\n\x05\x04\0\x08\0\x01\x12\x04\xe1\ - \x02\x08\x0e\n\xa4\x01\n\x04\x04\0\x02\x02\x12\x06\xe4\x02\x04\xe6\x02\ - \x1a\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\xe4\x02\x04\n\n\r\n\x05\x04\0\x02\x02\ - \x01\x12\x04\xe4\x02\x0b\x11\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xe4\x02\ - \x14\x15\n\x0f\n\x05\x04\0\x02\x02\x08\x12\x06\xe4\x02\x16\xe6\x02\x19\n\ - \x11\n\x07\x04\0\x02\x02\x08\x9f\x08\x12\x06\xe4\x02\x17\xe6\x02\x18\n\ - \x94\x01\n\x02\x04\x01\x12\x06\xec\x02\0\x87\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\xec\x02\x08\x1c\n@\n\x04\x04\ - \x01\x02\0\x12\x04\xee\x02\x02\x12\x1a2\x20Name\x20of\x20the\x20table\ - \x20being\x20created\x20and\x20restored\x20to.\n\n\x0f\n\x05\x04\x01\x02\ - \0\x04\x12\x06\xee\x02\x02\xec\x02\x1e\n\r\n\x05\x04\x01\x02\0\x05\x12\ - \x04\xee\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xee\x02\t\r\n\r\ - \n\x05\x04\x01\x02\0\x03\x12\x04\xee\x02\x10\x11\n/\n\x04\x04\x01\x02\ - \x01\x12\x04\xf1\x02\x02$\x1a!\x20The\x20type\x20of\x20the\x20restore\ - \x20source.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xf1\x02\x02\xee\ - \x02\x12\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xf1\x02\x02\x13\n\r\n\x05\ - \x04\x01\x02\x01\x01\x12\x04\xf1\x02\x14\x1f\n\r\n\x05\x04\x01\x02\x01\ - \x03\x12\x04\xf1\x02\"#\n\xac\x01\n\x04\x04\x01\x08\0\x12\x06\xf5\x02\ - \x02\xf7\x02\x03\x1a\x9b\x01\x20Information\x20about\x20the\x20source\ - \x20used\x20to\x20restore\x20the\x20table,\x20as\x20specified\x20by\n\ - \x20`source`\x20in\x20[RestoreTableRequest][google.bigtable.admin.v2.Res\ - toreTableRequest].\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\xf5\x02\x08\x13\ - \n\x0c\n\x04\x04\x01\x02\x02\x12\x04\xf6\x02\x04\x1f\n\r\n\x05\x04\x01\ - \x02\x02\x06\x12\x04\xf6\x02\x04\x0e\n\r\n\x05\x04\x01\x02\x02\x01\x12\ - \x04\xf6\x02\x0f\x1a\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xf6\x02\x1d\ - \x1e\n\xca\x04\n\x04\x04\x01\x02\x03\x12\x04\x82\x03\x02+\x1a\xbb\x04\ - \x20If\x20exists,\x20the\x20name\x20of\x20the\x20long-running\x20operati\ - on\x20that\x20will\x20be\x20used\x20to\n\x20track\x20the\x20post-restore\ - \x20optimization\x20process\x20to\x20optimize\x20the\x20performance\x20o\ - f\n\x20the\x20restored\x20table.\x20The\x20metadata\x20type\x20of\x20the\ - \x20long-running\x20operation\x20is\n\x20[OptimizeRestoreTableMetadata][\ - ].\x20The\x20response\x20type\x20is\n\x20[Empty][google.protobuf.Empty].\ - \x20This\x20long-running\x20operation\x20may\x20be\n\x20automatically\ - \x20created\x20by\x20the\x20system\x20if\x20applicable\x20after\x20the\n\ - \x20RestoreTable\x20long-running\x20operation\x20completes\x20successful\ - ly.\x20This\x20operation\n\x20may\x20not\x20be\x20created\x20if\x20the\ - \x20table\x20is\x20already\x20optimized\x20or\x20the\x20restore\x20was\n\ - \x20not\x20successful.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x82\x03\ - \x02\xf7\x02\x03\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\x82\x03\x02\x08\n\ - \r\n\x05\x04\x01\x02\x03\x01\x12\x04\x82\x03\t&\n\r\n\x05\x04\x01\x02\ - \x03\x03\x12\x04\x82\x03)*\nx\n\x04\x04\x01\x02\x04\x12\x04\x86\x03\x02!\ - \x1aj\x20The\x20progress\x20of\x20the\x20[RestoreTable][google.bigtable.\ - admin.v2.BigtableTableAdmin.RestoreTable]\n\x20operation.\n\n\x0f\n\x05\ - \x04\x01\x02\x04\x04\x12\x06\x86\x03\x02\x82\x03+\n\r\n\x05\x04\x01\x02\ - \x04\x06\x12\x04\x86\x03\x02\x13\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\ - \x86\x03\x14\x1c\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x86\x03\x1f\x20\n\ - \xa1\x02\n\x02\x04\x02\x12\x06\x8d\x03\0\x93\x03\x01\x1a\x92\x02\x20Meta\ - data\x20type\x20for\x20the\x20long-running\x20operation\x20used\x20to\ - \x20track\x20the\x20progress\n\x20of\x20optimizations\x20performed\x20on\ - \x20a\x20newly\x20restored\x20table.\x20This\x20long-running\n\x20operat\ - ion\x20is\x20automatically\x20created\x20by\x20the\x20system\x20after\ - \x20the\x20successful\n\x20completion\x20of\x20a\x20table\x20restore,\ - \x20and\x20cannot\x20be\x20cancelled.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\ - \x8d\x03\x08%\n;\n\x04\x04\x02\x02\0\x12\x04\x8f\x03\x02\x12\x1a-\x20Nam\ - e\x20of\x20the\x20restored\x20table\x20being\x20optimized.\n\n\x0f\n\x05\ - \x04\x02\x02\0\x04\x12\x06\x8f\x03\x02\x8d\x03'\n\r\n\x05\x04\x02\x02\0\ - \x05\x12\x04\x8f\x03\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x8f\x03\ - \t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x8f\x03\x10\x11\n?\n\x04\x04\ - \x02\x02\x01\x12\x04\x92\x03\x02!\x1a1\x20The\x20progress\x20of\x20the\ - \x20post-restore\x20optimizations.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\ - \x06\x92\x03\x02\x8f\x03\x12\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\x92\ - \x03\x02\x13\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x92\x03\x14\x1c\n\r\n\ - \x05\x04\x02\x02\x01\x03\x12\x04\x92\x03\x1f\x20\n\x98\x01\n\x02\x04\x03\ - \x12\x06\x97\x03\0\xc0\x03\x01\x1a\x89\x01\x20Request\x20message\x20for\ - \n\x20[google.bigtable.admin.v2.BigtableTableAdmin.CreateTable][google.b\ - igtable.admin.v2.BigtableTableAdmin.CreateTable]\n\n\x0b\n\x03\x04\x03\ - \x01\x12\x04\x97\x03\x08\x1a\nC\n\x04\x04\x03\x03\0\x12\x06\x99\x03\x02\ - \x9c\x03\x03\x1a3\x20An\x20initial\x20split\x20point\x20for\x20a\x20newl\ - y\x20created\x20table.\n\n\r\n\x05\x04\x03\x03\0\x01\x12\x04\x99\x03\n\ - \x0f\n?\n\x06\x04\x03\x03\0\x02\0\x12\x04\x9b\x03\x04\x12\x1a/\x20Row\ - \x20key\x20to\x20use\x20as\x20an\x20initial\x20tablet\x20boundary.\n\n\ - \x11\n\x07\x04\x03\x03\0\x02\0\x04\x12\x06\x9b\x03\x04\x99\x03\x11\n\x0f\ - \n\x07\x04\x03\x03\0\x02\0\x05\x12\x04\x9b\x03\x04\t\n\x0f\n\x07\x04\x03\ - \x03\0\x02\0\x01\x12\x04\x9b\x03\n\r\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\ - \x12\x04\x9b\x03\x10\x11\n\x9d\x01\n\x04\x04\x03\x02\0\x12\x06\xa0\x03\ - \x02\xa5\x03\x04\x1a\x8c\x01\x20Required.\x20The\x20unique\x20name\x20of\ - \x20the\x20instance\x20in\x20which\x20to\x20create\x20the\x20table.\n\ - \x20Values\x20are\x20of\x20the\x20form\x20`projects/{project}/instances/\ - {instance}`.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\x06\xa0\x03\x02\x9c\x03\ - \x03\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\ - \xba\x01\n\x04\x04\x03\x02\x01\x12\x04\xaa\x03\x02?\x1a\xab\x01\x20Requi\ - red.\x20The\x20name\x20by\x20which\x20the\x20new\x20table\x20should\x20b\ - e\x20referred\x20to\x20within\x20the\x20parent\n\x20instance,\x20e.g.,\ - \x20`foobar`\x20rather\x20than\x20`{parent}/tables/foobar`.\n\x20Maximum\ - \x2050\x20characters.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xaa\x03\ - \x02\xa5\x03\x04\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xaa\x03\x02\x08\n\ - \r\n\x05\x04\x03\x02\x01\x01\x12\x04\xaa\x03\t\x11\n\r\n\x05\x04\x03\x02\ - \x01\x03\x12\x04\xaa\x03\x14\x15\n\r\n\x05\x04\x03\x02\x01\x08\x12\x04\ - \xaa\x03\x16>\n\x10\n\x08\x04\x03\x02\x01\x08\x9c\x08\0\x12\x04\xaa\x03\ - \x17=\n.\n\x04\x04\x03\x02\x02\x12\x04\xad\x03\x02;\x1a\x20\x20Required.\ - \x20The\x20Table\x20to\x20create.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\ - \x06\xad\x03\x02\xaa\x03?\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\xad\x03\ - \x02\x07\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xad\x03\x08\r\n\r\n\x05\ - \x04\x03\x02\x02\x03\x12\x04\xad\x03\x10\x11\n\r\n\x05\x04\x03\x02\x02\ - \x08\x12\x04\xad\x03\x12:\n\x10\n\x08\x04\x03\x02\x02\x08\x9c\x08\0\x12\ - \x04\xad\x03\x139\n\x99\x06\n\x04\x04\x03\x02\x03\x12\x04\xbf\x03\x02$\ - \x1a\x8a\x06\x20The\x20optional\x20list\x20of\x20row\x20keys\x20that\x20\ - will\x20be\x20used\x20to\x20initially\x20split\x20the\n\x20table\x20into\ - \x20several\x20tablets\x20(tablets\x20are\x20similar\x20to\x20HBase\x20r\ - egions).\n\x20Given\x20two\x20split\x20keys,\x20`s1`\x20and\x20`s2`,\x20\ - three\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*\x20in\ - itial_split_keys\x20:=\x20`[\"apple\",\x20\"customer_1\",\x20\"customer_\ - 2\",\x20\"other\"]`\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\ - ,\x20customer_2)\x20=>\x20{\"customer_1\"}.`\n\x20\x20\x20\x20\x20-\x20T\ - ablet\x204\x20`[customer_2,\x20other)\x20\x20\x20\x20\x20\x20=>\x20{\"cu\ - stomer_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{\"oth\ - er\",\x20\"zz\"}.`\n\n\r\n\x05\x04\x03\x02\x03\x04\x12\x04\xbf\x03\x02\n\ - \n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xbf\x03\x0b\x10\n\r\n\x05\x04\x03\ - \x02\x03\x01\x12\x04\xbf\x03\x11\x1f\n\r\n\x05\x04\x03\x02\x03\x03\x12\ - \x04\xbf\x03\"#\n\xdd\x03\n\x02\x04\x04\x12\x06\xc9\x03\0\xe1\x03\x01\ - \x1a\xce\x03\x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2\ - .BigtableTableAdmin.CreateTableFromSnapshot][google.bigtable.admin.v2.Bi\ - gtableTableAdmin.CreateTableFromSnapshot]\n\n\x20Note:\x20This\x20is\x20\ - a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots\ - .\x20This\n\x20feature\x20is\x20not\x20currently\x20available\x20to\x20m\ - ost\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\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\x0b\n\x03\ - \x04\x04\x01\x12\x04\xc9\x03\x08&\n\x9d\x01\n\x04\x04\x04\x02\0\x12\x06\ - \xcc\x03\x02\xd1\x03\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\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xcc\x03\x02\ - \xc9\x03(\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xcc\x03\x02\x08\n\r\n\x05\ - \x04\x04\x02\0\x01\x12\x04\xcc\x03\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\ - \x04\xcc\x03\x12\x13\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xcc\x03\x14\ - \xd1\x03\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xcd\x03\x04\ - *\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\xce\x03\x04\xd0\x03\x05\ - \n\xa2\x01\n\x04\x04\x04\x02\x01\x12\x04\xd5\x03\x02?\x1a\x93\x01\x20Req\ - uired.\x20The\x20name\x20by\x20which\x20the\x20new\x20table\x20should\ - \x20be\x20referred\x20to\x20within\x20the\x20parent\n\x20instance,\x20e.\ - g.,\x20`foobar`\x20rather\x20than\x20`{parent}/tables/foobar`.\n\n\x0f\n\ - \x05\x04\x04\x02\x01\x04\x12\x06\xd5\x03\x02\xd1\x03\x04\n\r\n\x05\x04\ - \x04\x02\x01\x05\x12\x04\xd5\x03\x02\x08\n\r\n\x05\x04\x04\x02\x01\x01\ - \x12\x04\xd5\x03\t\x11\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xd5\x03\x14\ - \x15\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xd5\x03\x16>\n\x10\n\x08\x04\ - \x04\x02\x01\x08\x9c\x08\0\x12\x04\xd5\x03\x17=\n\x83\x02\n\x04\x04\x04\ - \x02\x02\x12\x06\xdb\x03\x02\xe0\x03\x04\x1a\xf2\x01\x20Required.\x20The\ - \x20unique\x20name\x20of\x20the\x20snapshot\x20from\x20which\x20to\x20re\ - store\x20the\x20table.\x20The\n\x20snapshot\x20and\x20the\x20table\x20mu\ - st\x20be\x20in\x20the\x20same\x20instance.\n\x20Values\x20are\x20of\x20t\ - he\x20form\n\x20`projects/{project}/instances/{instance}/clusters/{clust\ - er}/snapshots/{snapshot}`.\n\n\x0f\n\x05\x04\x04\x02\x02\x04\x12\x06\xdb\ - \x03\x02\xd5\x03?\n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\xdb\x03\x02\x08\ - \n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\xdb\x03\t\x18\n\r\n\x05\x04\x04\ - \x02\x02\x03\x12\x04\xdb\x03\x1b\x1c\n\x0f\n\x05\x04\x04\x02\x02\x08\x12\ - \x06\xdb\x03\x1d\xe0\x03\x03\n\x10\n\x08\x04\x04\x02\x02\x08\x9c\x08\0\ - \x12\x04\xdc\x03\x04*\n\x11\n\x07\x04\x04\x02\x02\x08\x9f\x08\x12\x06\ - \xdd\x03\x04\xdf\x03\x05\n\x9a\x01\n\x02\x04\x05\x12\x06\xe5\x03\0\xf9\ - \x03\x01\x1a\x8b\x01\x20Request\x20message\x20for\n\x20[google.bigtable.\ - admin.v2.BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.Bigta\ - bleTableAdmin.DropRowRange]\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xe5\x03\ - \x08\x1b\n\xae\x01\n\x04\x04\x05\x02\0\x12\x06\xe9\x03\x02\xee\x03\x04\ - \x1a\x9d\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\ - \x20on\x20which\x20to\x20drop\x20a\x20range\x20of\x20rows.\n\x20Values\ - \x20are\x20of\x20the\x20form\n\x20`projects/{project}/instances/{instanc\ - e}/tables/{table}`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xe9\x03\x02\ - \xe5\x03\x1d\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xe9\x03\x02\x08\n\r\n\ - \x05\x04\x05\x02\0\x01\x12\x04\xe9\x03\t\r\n\r\n\x05\x04\x05\x02\0\x03\ - \x12\x04\xe9\x03\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xe9\x03\ - \x12\xee\x03\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xea\x03\ - \x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xeb\x03\x04\xed\x03\ - \x05\n/\n\x04\x04\x05\x08\0\x12\x06\xf1\x03\x02\xf8\x03\x03\x1a\x1f\x20D\ - elete\x20all\x20rows\x20or\x20by\x20prefix.\n\n\r\n\x05\x04\x05\x08\0\ - \x01\x12\x04\xf1\x03\x08\x0e\nc\n\x04\x04\x05\x02\x01\x12\x04\xf4\x03\ - \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\x05\x02\x01\x05\x12\x04\xf4\x03\x04\t\n\r\n\x05\x04\x05\ - \x02\x01\x01\x12\x04\xf4\x03\n\x18\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\ - \xf4\x03\x1b\x1c\nO\n\x04\x04\x05\x02\x02\x12\x04\xf7\x03\x04(\x1aA\x20D\ - elete\x20all\x20rows\x20in\x20the\x20table.\x20Setting\x20this\x20to\x20\ - false\x20is\x20a\x20no-op.\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\xf7\ - \x03\x04\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xf7\x03\t#\n\r\n\x05\ - \x04\x05\x02\x02\x03\x12\x04\xf7\x03&'\n\x96\x01\n\x02\x04\x06\x12\x06\ - \xfd\x03\0\x98\x04\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\x06\x01\x12\x04\ - \xfd\x03\x08\x19\n\xa2\x01\n\x04\x04\x06\x02\0\x12\x06\x80\x04\x02\x85\ - \x04\x04\x1a\x91\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\ - \x20instance\x20for\x20which\x20tables\x20should\x20be\x20listed.\n\x20V\ - alues\x20are\x20of\x20the\x20form\x20`projects/{project}/instances/{inst\ - ance}`.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\x80\x04\x02\xfd\x03\x1b\ - \n\r\n\x05\x04\x06\x02\0\x05\x12\x04\x80\x04\x02\x08\n\r\n\x05\x04\x06\ - \x02\0\x01\x12\x04\x80\x04\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\x80\ - \x04\x12\x13\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\x80\x04\x14\x85\x04\ - \x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\x81\x04\x04*\n\x11\ - \n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\x82\x04\x04\x84\x04\x05\n\x89\ - \x01\n\x04\x04\x06\x02\x01\x12\x04\x89\x04\x02\x16\x1a{\x20The\x20view\ - \x20to\x20be\x20applied\x20to\x20the\x20returned\x20tables'\x20fields.\n\ - \x20Only\x20NAME_ONLY\x20view\x20(default)\x20and\x20REPLICATION_VIEW\ - \x20are\x20supported.\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\x89\x04\ - \x02\x85\x04\x04\n\r\n\x05\x04\x06\x02\x01\x06\x12\x04\x89\x04\x02\x0c\n\ - \r\n\x05\x04\x06\x02\x01\x01\x12\x04\x89\x04\r\x11\n\r\n\x05\x04\x06\x02\ - \x01\x03\x12\x04\x89\x04\x14\x15\n\xbd\x03\n\x04\x04\x06\x02\x02\x12\x04\ - \x94\x04\x02\x16\x1a\xae\x03\x20Maximum\x20number\x20of\x20results\x20pe\ - r\x20page.\n\n\x20A\x20page_size\x20of\x20zero\x20lets\x20the\x20server\ - \x20choose\x20the\x20number\x20of\x20items\x20to\x20return.\n\x20A\x20pa\ - ge_size\x20which\x20is\x20strictly\x20positive\x20will\x20return\x20at\ - \x20most\x20that\x20many\x20items.\n\x20A\x20negative\x20page_size\x20wi\ - ll\x20cause\x20an\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\x0f\n\x05\x04\x06\x02\ - \x02\x04\x12\x06\x94\x04\x02\x89\x04\x16\n\r\n\x05\x04\x06\x02\x02\x05\ - \x12\x04\x94\x04\x02\x07\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\x94\x04\ - \x08\x11\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\x94\x04\x14\x15\nK\n\x04\ - \x04\x06\x02\x03\x12\x04\x97\x04\x02\x18\x1a=\x20The\x20value\x20of\x20`\ - next_page_token`\x20returned\x20by\x20a\x20previous\x20call.\n\n\x0f\n\ - \x05\x04\x06\x02\x03\x04\x12\x06\x97\x04\x02\x94\x04\x16\n\r\n\x05\x04\ - \x06\x02\x03\x05\x12\x04\x97\x04\x02\x08\n\r\n\x05\x04\x06\x02\x03\x01\ - \x12\x04\x97\x04\t\x13\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\x97\x04\x16\ - \x17\n\x97\x01\n\x02\x04\x07\x12\x06\x9c\x04\0\xa4\x04\x01\x1a\x88\x01\ - \x20Response\x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTa\ - bleAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTab\ - les]\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x9c\x04\x08\x1a\n=\n\x04\x04\x07\ - \x02\0\x12\x04\x9e\x04\x02\x1c\x1a/\x20The\x20tables\x20present\x20in\ - \x20the\x20requested\x20instance.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\ - \x9e\x04\x02\n\n\r\n\x05\x04\x07\x02\0\x06\x12\x04\x9e\x04\x0b\x10\n\r\n\ - \x05\x04\x07\x02\0\x01\x12\x04\x9e\x04\x11\x17\n\r\n\x05\x04\x07\x02\0\ - \x03\x12\x04\x9e\x04\x1a\x1b\n\xa4\x01\n\x04\x04\x07\x02\x01\x12\x04\xa3\ - \x04\x02\x1d\x1a\x95\x01\x20Set\x20if\x20not\x20all\x20tables\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\x0f\n\x05\x04\x07\x02\ - \x01\x04\x12\x06\xa3\x04\x02\x9e\x04\x1c\n\r\n\x05\x04\x07\x02\x01\x05\ - \x12\x04\xa3\x04\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xa3\x04\t\ - \x18\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xa3\x04\x1b\x1c\n\x92\x01\n\ - \x02\x04\x08\x12\x06\xa8\x04\0\xb6\x04\x01\x1a\x83\x01\x20Request\x20mes\ - sage\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.GetTable][\ - google.bigtable.admin.v2.BigtableTableAdmin.GetTable]\n\n\x0b\n\x03\x04\ - \x08\x01\x12\x04\xa8\x04\x08\x17\n\x97\x01\n\x04\x04\x08\x02\0\x12\x06\ - \xac\x04\x02\xb1\x04\x04\x1a\x86\x01\x20Required.\x20The\x20unique\x20na\ - me\x20of\x20the\x20requested\x20table.\n\x20Values\x20are\x20of\x20the\ - \x20form\n\x20`projects/{project}/instances/{instance}/tables/{table}`.\ - \n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xac\x04\x02\xa8\x04\x19\n\r\n\ - \x05\x04\x08\x02\0\x05\x12\x04\xac\x04\x02\x08\n\r\n\x05\x04\x08\x02\0\ - \x01\x12\x04\xac\x04\t\r\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xac\x04\x10\ - \x11\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xac\x04\x12\xb1\x04\x03\n\x10\ - \n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xad\x04\x04*\n\x11\n\x07\x04\ - \x08\x02\0\x08\x9f\x08\x12\x06\xae\x04\x04\xb0\x04\x05\nq\n\x04\x04\x08\ - \x02\x01\x12\x04\xb5\x04\x02\x16\x1ac\x20The\x20view\x20to\x20be\x20appl\ - ied\x20to\x20the\x20returned\x20table's\x20fields.\n\x20Defaults\x20to\ - \x20`SCHEMA_VIEW`\x20if\x20unspecified.\n\n\x0f\n\x05\x04\x08\x02\x01\ - \x04\x12\x06\xb5\x04\x02\xb1\x04\x04\n\r\n\x05\x04\x08\x02\x01\x06\x12\ - \x04\xb5\x04\x02\x0c\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xb5\x04\r\x11\ - \n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xb5\x04\x14\x15\n\x98\x01\n\x02\ - \x04\t\x12\x06\xba\x04\0\xc4\x04\x01\x1a\x89\x01\x20Request\x20message\ - \x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][g\ - oogle.bigtable.admin.v2.BigtableTableAdmin.DeleteTable]\n\n\x0b\n\x03\ - \x04\t\x01\x12\x04\xba\x04\x08\x1a\n\x9b\x01\n\x04\x04\t\x02\0\x12\x06\ - \xbe\x04\x02\xc3\x04\x04\x1a\x8a\x01\x20Required.\x20The\x20unique\x20na\ - me\x20of\x20the\x20table\x20to\x20be\x20deleted.\n\x20Values\x20are\x20o\ - f\x20the\x20form\n\x20`projects/{project}/instances/{instance}/tables/{t\ - able}`.\n\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\xbe\x04\x02\xba\x04\x1c\n\ - \r\n\x05\x04\t\x02\0\x05\x12\x04\xbe\x04\x02\x08\n\r\n\x05\x04\t\x02\0\ - \x01\x12\x04\xbe\x04\t\r\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xbe\x04\x10\ - \x11\n\x0f\n\x05\x04\t\x02\0\x08\x12\x06\xbe\x04\x12\xc3\x04\x03\n\x10\n\ - \x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xbf\x04\x04*\n\x11\n\x07\x04\t\ - \x02\0\x08\x9f\x08\x12\x06\xc0\x04\x04\xc2\x04\x05\n\xaa\x01\n\x02\x04\n\ - \x12\x06\xc8\x04\0\xed\x04\x01\x1a\x9b\x01\x20Request\x20message\x20for\ - \n\x20[google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies]\ - [google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies]\n\n\ - \x0b\n\x03\x04\n\x01\x12\x04\xc8\x04\x08#\nL\n\x04\x04\n\x03\0\x12\x06\ - \xca\x04\x02\xdc\x04\x03\x1a<\x20A\x20create,\x20update,\x20or\x20delete\ - \x20of\x20a\x20particular\x20column\x20family.\n\n\r\n\x05\x04\n\x03\0\ - \x01\x12\x04\xca\x04\n\x16\n=\n\x06\x04\n\x03\0\x02\0\x12\x04\xcc\x04\ - \x04\x12\x1a-\x20The\x20ID\x20of\x20the\x20column\x20family\x20to\x20be\ - \x20modified.\n\n\x11\n\x07\x04\n\x03\0\x02\0\x04\x12\x06\xcc\x04\x04\ - \xca\x04\x18\n\x0f\n\x07\x04\n\x03\0\x02\0\x05\x12\x04\xcc\x04\x04\n\n\ - \x0f\n\x07\x04\n\x03\0\x02\0\x01\x12\x04\xcc\x04\x0b\r\n\x0f\n\x07\x04\n\ - \x03\0\x02\0\x03\x12\x04\xcc\x04\x10\x11\n1\n\x06\x04\n\x03\0\x08\0\x12\ - \x06\xcf\x04\x04\xdb\x04\x05\x1a\x1f\x20Column\x20familiy\x20modificatio\ - ns.\n\n\x0f\n\x07\x04\n\x03\0\x08\0\x01\x12\x04\xcf\x04\n\r\ny\n\x06\x04\ - \n\x03\0\x02\x01\x12\x04\xd2\x04\x06\x1e\x1ai\x20Create\x20a\x20new\x20c\ - olumn\x20family\x20with\x20the\x20specified\x20schema,\x20or\x20fail\x20\ - if\n\x20one\x20already\x20exists\x20with\x20the\x20given\x20ID.\n\n\x0f\ - \n\x07\x04\n\x03\0\x02\x01\x06\x12\x04\xd2\x04\x06\x12\n\x0f\n\x07\x04\n\ - \x03\0\x02\x01\x01\x12\x04\xd2\x04\x13\x19\n\x0f\n\x07\x04\n\x03\0\x02\ - \x01\x03\x12\x04\xd2\x04\x1c\x1d\n\x82\x01\n\x06\x04\n\x03\0\x02\x02\x12\ - \x04\xd6\x04\x06\x1e\x1ar\x20Update\x20an\x20existing\x20column\x20famil\ - y\x20to\x20the\x20specified\x20schema,\x20or\x20fail\n\x20if\x20no\x20co\ - lumn\x20family\x20exists\x20with\x20the\x20given\x20ID.\n\n\x0f\n\x07\ - \x04\n\x03\0\x02\x02\x06\x12\x04\xd6\x04\x06\x12\n\x0f\n\x07\x04\n\x03\0\ - \x02\x02\x01\x12\x04\xd6\x04\x13\x19\n\x0f\n\x07\x04\n\x03\0\x02\x02\x03\ - \x12\x04\xd6\x04\x1c\x1d\ng\n\x06\x04\n\x03\0\x02\x03\x12\x04\xda\x04\ - \x06\x14\x1aW\x20Drop\x20(delete)\x20the\x20column\x20family\x20with\x20\ - the\x20given\x20ID,\x20or\x20fail\x20if\x20no\x20such\n\x20family\x20exi\ - sts.\n\n\x0f\n\x07\x04\n\x03\0\x02\x03\x05\x12\x04\xda\x04\x06\n\n\x0f\n\ - \x07\x04\n\x03\0\x02\x03\x01\x12\x04\xda\x04\x0b\x0f\n\x0f\n\x07\x04\n\ - \x03\0\x02\x03\x03\x12\x04\xda\x04\x12\x13\n\xaf\x01\n\x04\x04\n\x02\0\ - \x12\x06\xe1\x04\x02\xe6\x04\x04\x1a\x9e\x01\x20Required.\x20The\x20uniq\ - ue\x20name\x20of\x20the\x20table\x20whose\x20families\x20should\x20be\ - \x20modified.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{pr\ - oject}/instances/{instance}/tables/{table}`.\n\n\x0f\n\x05\x04\n\x02\0\ - \x04\x12\x06\xe1\x04\x02\xdc\x04\x03\n\r\n\x05\x04\n\x02\0\x05\x12\x04\ - \xe1\x04\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xe1\x04\t\r\n\r\n\x05\ - \x04\n\x02\0\x03\x12\x04\xe1\x04\x10\x11\n\x0f\n\x05\x04\n\x02\0\x08\x12\ - \x06\xe1\x04\x12\xe6\x04\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\ - \x04\xe2\x04\x04*\n\x11\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x06\xe3\x04\ - \x04\xe5\x04\x05\n\x87\x02\n\x04\x04\n\x02\x01\x12\x04\xec\x04\x02S\x1a\ - \xf8\x01\x20Required.\x20Modifications\x20to\x20be\x20atomically\x20appl\ - ied\x20to\x20the\x20specified\x20table's\x20families.\n\x20Entries\x20ar\ - e\x20applied\x20in\x20order,\x20meaning\x20that\x20earlier\x20modificati\ - ons\x20can\x20be\n\x20masked\x20by\x20later\x20ones\x20(in\x20the\x20cas\ - e\x20of\x20repeated\x20updates\x20to\x20the\x20same\x20family,\n\x20for\ - \x20example).\n\n\r\n\x05\x04\n\x02\x01\x04\x12\x04\xec\x04\x02\n\n\r\n\ - \x05\x04\n\x02\x01\x06\x12\x04\xec\x04\x0b\x17\n\r\n\x05\x04\n\x02\x01\ - \x01\x12\x04\xec\x04\x18%\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xec\x04()\ - \n\r\n\x05\x04\n\x02\x01\x08\x12\x04\xec\x04*R\n\x10\n\x08\x04\n\x02\x01\ - \x08\x9c\x08\0\x12\x04\xec\x04+Q\n\xb2\x01\n\x02\x04\x0b\x12\x06\xf1\x04\ - \0\xfb\x04\x01\x1a\xa3\x01\x20Request\x20message\x20for\n\x20[google.big\ - table.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigta\ - ble.admin.v2.BigtableTableAdmin.GenerateConsistencyToken]\n\n\x0b\n\x03\ - \x04\x0b\x01\x12\x04\xf1\x04\x08'\n\xb5\x01\n\x04\x04\x0b\x02\0\x12\x06\ - \xf5\x04\x02\xfa\x04\x04\x1a\xa4\x01\x20Required.\x20The\x20unique\x20na\ - me\x20of\x20the\x20Table\x20for\x20which\x20to\x20create\x20a\x20consist\ - ency\x20token.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{p\ - roject}/instances/{instance}/tables/{table}`.\n\n\x0f\n\x05\x04\x0b\x02\ - \0\x04\x12\x06\xf5\x04\x02\xf1\x04)\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\ - \xf5\x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xf5\x04\t\r\n\r\n\ - \x05\x04\x0b\x02\0\x03\x12\x04\xf5\x04\x10\x11\n\x0f\n\x05\x04\x0b\x02\0\ - \x08\x12\x06\xf5\x04\x12\xfa\x04\x03\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\ - \x08\0\x12\x04\xf6\x04\x04*\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\ - \x06\xf7\x04\x04\xf9\x04\x05\n\xb3\x01\n\x02\x04\x0c\x12\x06\xff\x04\0\ - \x82\x05\x01\x1a\xa4\x01\x20Response\x20message\x20for\n\x20[google.bigt\ - able.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtab\ - le.admin.v2.BigtableTableAdmin.GenerateConsistencyToken]\n\n\x0b\n\x03\ - \x04\x0c\x01\x12\x04\xff\x04\x08(\n0\n\x04\x04\x0c\x02\0\x12\x04\x81\x05\ - \x02\x1f\x1a\"\x20The\x20generated\x20consistency\x20token.\n\n\x0f\n\ - \x05\x04\x0c\x02\0\x04\x12\x06\x81\x05\x02\xff\x04*\n\r\n\x05\x04\x0c\ - \x02\0\x05\x12\x04\x81\x05\x02\x08\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\ - \x81\x05\t\x1a\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x81\x05\x1d\x1e\n\xa2\ - \x01\n\x02\x04\r\x12\x06\x86\x05\0\x93\x05\x01\x1a\x93\x01\x20Request\ - \x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.Che\ - ckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsiste\ - ncy]\n\n\x0b\n\x03\x04\r\x01\x12\x04\x86\x05\x08\x1f\n\xb8\x01\n\x04\x04\ - \r\x02\0\x12\x06\x8a\x05\x02\x8f\x05\x04\x1a\xa7\x01\x20Required.\x20The\ - \x20unique\x20name\x20of\x20the\x20Table\x20for\x20which\x20to\x20check\ - \x20replication\x20consistency.\n\x20Values\x20are\x20of\x20the\x20form\ - \n\x20`projects/{project}/instances/{instance}/tables/{table}`.\n\n\x0f\ - \n\x05\x04\r\x02\0\x04\x12\x06\x8a\x05\x02\x86\x05!\n\r\n\x05\x04\r\x02\ - \0\x05\x12\x04\x8a\x05\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\x8a\x05\ - \t\r\n\r\n\x05\x04\r\x02\0\x03\x12\x04\x8a\x05\x10\x11\n\x0f\n\x05\x04\r\ - \x02\0\x08\x12\x06\x8a\x05\x12\x8f\x05\x03\n\x10\n\x08\x04\r\x02\0\x08\ - \x9c\x08\0\x12\x04\x8b\x05\x04*\n\x11\n\x07\x04\r\x02\0\x08\x9f\x08\x12\ - \x06\x8c\x05\x04\x8e\x05\x05\nY\n\x04\x04\r\x02\x01\x12\x04\x92\x05\x02H\ - \x1aK\x20Required.\x20The\x20token\x20created\x20using\x20GenerateConsis\ - tencyToken\x20for\x20the\x20Table.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\ - \x06\x92\x05\x02\x8f\x05\x04\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\x92\x05\ - \x02\x08\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\x92\x05\t\x1a\n\r\n\x05\x04\ - \r\x02\x01\x03\x12\x04\x92\x05\x1d\x1e\n\r\n\x05\x04\r\x02\x01\x08\x12\ - \x04\x92\x05\x1fG\n\x10\n\x08\x04\r\x02\x01\x08\x9c\x08\0\x12\x04\x92\ - \x05\x20F\n\xa3\x01\n\x02\x04\x0e\x12\x06\x97\x05\0\x9b\x05\x01\x1a\x94\ - \x01\x20Response\x20message\x20for\n\x20[google.bigtable.admin.v2.Bigtab\ - leTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdm\ - in.CheckConsistency]\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x97\x05\x08\x20\n\ - \x9a\x01\n\x04\x04\x0e\x02\0\x12\x04\x9a\x05\x02\x16\x1a\x8b\x01\x20True\ - \x20only\x20if\x20the\x20token\x20is\x20consistent.\x20A\x20token\x20is\ - \x20consistent\x20if\x20replication\n\x20has\x20caught\x20up\x20with\x20\ - the\x20restrictions\x20specified\x20in\x20the\x20request.\n\n\x0f\n\x05\ - \x04\x0e\x02\0\x04\x12\x06\x9a\x05\x02\x97\x05\"\n\r\n\x05\x04\x0e\x02\0\ - \x05\x12\x04\x9a\x05\x02\x06\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\x9a\x05\ - \x07\x11\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x9a\x05\x14\x15\n\xc9\x03\n\ - \x02\x04\x0f\x12\x06\xa4\x05\0\xc7\x05\x01\x1a\xba\x03\x20Request\x20mes\ - sage\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTa\ - ble][google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable]\n\n\x20N\ - ote:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\ - \x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currentl\ - y\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\ - \n\x20feature\x20might\x20be\x20changed\x20in\x20backward-incompatible\ - \x20ways\x20and\x20is\x20not\x20recommended\n\x20for\x20production\x20us\ - e.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecatio\ - n\x20policy.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xa4\x05\x08\x1c\n\xa8\x01\ - \n\x04\x04\x0f\x02\0\x12\x06\xa8\x05\x02\xad\x05\x04\x1a\x97\x01\x20Requ\ - ired.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20have\x20th\ - e\x20snapshot\x20taken.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`pr\ - ojects/{project}/instances/{instance}/tables/{table}`.\n\n\x0f\n\x05\x04\ - \x0f\x02\0\x04\x12\x06\xa8\x05\x02\xa4\x05\x1e\n\r\n\x05\x04\x0f\x02\0\ - \x05\x12\x04\xa8\x05\x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xa8\x05\ - \t\r\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xa8\x05\x10\x11\n\x0f\n\x05\x04\ - \x0f\x02\0\x08\x12\x06\xa8\x05\x12\xad\x05\x03\n\x10\n\x08\x04\x0f\x02\0\ - \x08\x9c\x08\0\x12\x04\xa9\x05\x04*\n\x11\n\x07\x04\x0f\x02\0\x08\x9f\ - \x08\x12\x06\xaa\x05\x04\xac\x05\x05\n\xb2\x01\n\x04\x04\x0f\x02\x01\x12\ - \x06\xb2\x05\x02\xb7\x05\x04\x1a\xa1\x01\x20Required.\x20The\x20name\x20\ - of\x20the\x20cluster\x20where\x20the\x20snapshot\x20will\x20be\x20create\ - d\x20in.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project\ - }/instances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\x0f\x02\ - \x01\x04\x12\x06\xb2\x05\x02\xad\x05\x04\n\r\n\x05\x04\x0f\x02\x01\x05\ - \x12\x04\xb2\x05\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\xb2\x05\t\ - \x10\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\xb2\x05\x13\x14\n\x0f\n\x05\ - \x04\x0f\x02\x01\x08\x12\x06\xb2\x05\x15\xb7\x05\x03\n\x10\n\x08\x04\x0f\ - \x02\x01\x08\x9c\x08\0\x12\x04\xb3\x05\x04*\n\x11\n\x07\x04\x0f\x02\x01\ - \x08\x9f\x08\x12\x06\xb4\x05\x04\xb6\x05\x05\n\x8c\x02\n\x04\x04\x0f\x02\ - \x02\x12\x04\xbd\x05\x02B\x1a\xfd\x01\x20Required.\x20The\x20ID\x20by\ - \x20which\x20the\x20new\x20snapshot\x20should\x20be\x20referred\x20to\ - \x20within\x20the\x20parent\n\x20cluster,\x20e.g.,\x20`mysnapshot`\x20of\ - \x20the\x20form:\x20`[_a-zA-Z0-9][-_.a-zA-Z0-9]*`\n\x20rather\x20than\n\ - \x20`projects/{project}/instances/{instance}/clusters/{cluster}/snapshot\ - s/mysnapshot`.\n\n\x0f\n\x05\x04\x0f\x02\x02\x04\x12\x06\xbd\x05\x02\xb7\ - \x05\x04\n\r\n\x05\x04\x0f\x02\x02\x05\x12\x04\xbd\x05\x02\x08\n\r\n\x05\ - \x04\x0f\x02\x02\x01\x12\x04\xbd\x05\t\x14\n\r\n\x05\x04\x0f\x02\x02\x03\ - \x12\x04\xbd\x05\x17\x18\n\r\n\x05\x04\x0f\x02\x02\x08\x12\x04\xbd\x05\ - \x19A\n\x10\n\x08\x04\x0f\x02\x02\x08\x9c\x08\0\x12\x04\xbd\x05\x1a@\n\ - \x9c\x02\n\x04\x04\x0f\x02\x03\x12\x04\xc3\x05\x02#\x1a\x8d\x02\x20The\ - \x20amount\x20of\x20time\x20that\x20the\x20new\x20snapshot\x20can\x20sta\ - y\x20active\x20after\x20it\x20is\n\x20created.\x20Once\x20'ttl'\x20expir\ - es,\x20the\x20snapshot\x20will\x20get\x20deleted.\x20The\x20maximum\n\ - \x20amount\x20of\x20time\x20a\x20snapshot\x20can\x20stay\x20active\x20is\ - \x207\x20days.\x20If\x20'ttl'\x20is\x20not\n\x20specified,\x20the\x20def\ - ault\x20value\x20of\x2024\x20hours\x20will\x20be\x20used.\n\n\x0f\n\x05\ - \x04\x0f\x02\x03\x04\x12\x06\xc3\x05\x02\xbd\x05B\n\r\n\x05\x04\x0f\x02\ - \x03\x06\x12\x04\xc3\x05\x02\x1a\n\r\n\x05\x04\x0f\x02\x03\x01\x12\x04\ - \xc3\x05\x1b\x1e\n\r\n\x05\x04\x0f\x02\x03\x03\x12\x04\xc3\x05!\"\n,\n\ - \x04\x04\x0f\x02\x04\x12\x04\xc6\x05\x02\x19\x1a\x1e\x20Description\x20o\ - f\x20the\x20snapshot.\n\n\x0f\n\x05\x04\x0f\x02\x04\x04\x12\x06\xc6\x05\ - \x02\xc3\x05#\n\r\n\x05\x04\x0f\x02\x04\x05\x12\x04\xc6\x05\x02\x08\n\r\ - \n\x05\x04\x0f\x02\x04\x01\x12\x04\xc6\x05\t\x14\n\r\n\x05\x04\x0f\x02\ - \x04\x03\x12\x04\xc6\x05\x17\x18\n\xc5\x03\n\x02\x04\x10\x12\x06\xd0\x05\ - \0\xda\x05\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\x10\ - \x01\x12\x04\xd0\x05\x08\x1a\n\xb3\x01\n\x04\x04\x10\x02\0\x12\x06\xd4\ - \x05\x02\xd9\x05\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\x0f\n\x05\x04\x10\x02\0\x04\x12\x06\xd4\x05\ - \x02\xd0\x05\x1c\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\xd4\x05\x02\x08\n\r\ - \n\x05\x04\x10\x02\0\x01\x12\x04\xd4\x05\t\r\n\r\n\x05\x04\x10\x02\0\x03\ - \x12\x04\xd4\x05\x10\x11\n\x0f\n\x05\x04\x10\x02\0\x08\x12\x06\xd4\x05\ - \x12\xd9\x05\x03\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\x04\xd5\x05\ - \x04*\n\x11\n\x07\x04\x10\x02\0\x08\x9f\x08\x12\x06\xd6\x05\x04\xd8\x05\ - \x05\n\xc9\x03\n\x02\x04\x11\x12\x06\xe3\x05\0\xf6\x05\x01\x1a\xba\x03\ - \x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTab\ - leAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListS\ - napshots]\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\x20release\ - \x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20\ - not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20cust\ - omers.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\x20backward-\ - incompatible\x20ways\x20and\x20is\x20not\x20recommended\n\x20for\x20prod\ - uction\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\ - \x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xe3\x05\x08\ - \x1c\n\xbf\x02\n\x04\x04\x11\x02\0\x12\x06\xe9\x05\x02\xee\x05\x04\x1a\ - \xae\x02\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20cluster\ - \x20for\x20which\x20snapshots\x20should\x20be\x20listed.\n\x20Values\x20\ - are\x20of\x20the\x20form\n\x20`projects/{project}/instances/{instance}/c\ - lusters/{cluster}`.\n\x20Use\x20`{cluster}\x20=\x20'-'`\x20to\x20list\ - \x20snapshots\x20for\x20all\x20clusters\x20in\x20an\x20instance,\n\x20e.\ - g.,\x20`projects/{project}/instances/{instance}/clusters/-`.\n\n\x0f\n\ - \x05\x04\x11\x02\0\x04\x12\x06\xe9\x05\x02\xe3\x05\x1e\n\r\n\x05\x04\x11\ - \x02\0\x05\x12\x04\xe9\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\ - \xe9\x05\t\x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xe9\x05\x12\x13\n\x0f\ - \n\x05\x04\x11\x02\0\x08\x12\x06\xe9\x05\x14\xee\x05\x03\n\x10\n\x08\x04\ - \x11\x02\0\x08\x9c\x08\0\x12\x04\xea\x05\x04*\n\x11\n\x07\x04\x11\x02\0\ - \x08\x9f\x08\x12\x06\xeb\x05\x04\xed\x05\x05\ni\n\x04\x04\x11\x02\x01\ - \x12\x04\xf2\x05\x02\x16\x1a[\x20The\x20maximum\x20number\x20of\x20snaps\ - hots\x20to\x20return\x20per\x20page.\n\x20CURRENTLY\x20UNIMPLEMENTED\x20\ - AND\x20IGNORED.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\xf2\x05\x02\ - \xee\x05\x04\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xf2\x05\x02\x07\n\r\n\ - \x05\x04\x11\x02\x01\x01\x12\x04\xf2\x05\x08\x11\n\r\n\x05\x04\x11\x02\ - \x01\x03\x12\x04\xf2\x05\x14\x15\nK\n\x04\x04\x11\x02\x02\x12\x04\xf5\ - \x05\x02\x18\x1a=\x20The\x20value\x20of\x20`next_page_token`\x20returned\ - \x20by\x20a\x20previous\x20call.\n\n\x0f\n\x05\x04\x11\x02\x02\x04\x12\ - \x06\xf5\x05\x02\xf2\x05\x16\n\r\n\x05\x04\x11\x02\x02\x05\x12\x04\xf5\ - \x05\x02\x08\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xf5\x05\t\x13\n\r\n\ - \x05\x04\x11\x02\x02\x03\x12\x04\xf5\x05\x16\x17\n\xca\x03\n\x02\x04\x12\ - \x12\x06\xff\x05\0\x87\x06\x01\x1a\xbb\x03\x20Response\x20message\x20for\ - \n\x20[google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google\ - .bigtable.admin.v2.BigtableTableAdmin.ListSnapshots]\n\n\x20Note:\x20Thi\ - s\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\ - \x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20availab\ - le\x20to\x20most\x20Cloud\x20Bigtable\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\x12\x01\x12\x04\xff\x05\x08\x1d\n?\n\x04\x04\x12\x02\0\ - \x12\x04\x81\x06\x02\"\x1a1\x20The\x20snapshots\x20present\x20in\x20the\ - \x20requested\x20cluster.\n\n\r\n\x05\x04\x12\x02\0\x04\x12\x04\x81\x06\ - \x02\n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\x81\x06\x0b\x13\n\r\n\x05\x04\ - \x12\x02\0\x01\x12\x04\x81\x06\x14\x1d\n\r\n\x05\x04\x12\x02\0\x03\x12\ - \x04\x81\x06\x20!\n\xa7\x01\n\x04\x04\x12\x02\x01\x12\x04\x86\x06\x02\ - \x1d\x1a\x98\x01\x20Set\x20if\x20not\x20all\x20snapshots\x20could\x20be\ - \x20returned\x20in\x20a\x20single\x20response.\n\x20Pass\x20this\x20valu\ - e\x20to\x20`page_token`\x20in\x20another\x20request\x20to\x20get\x20the\ - \x20next\n\x20page\x20of\x20results.\n\n\x0f\n\x05\x04\x12\x02\x01\x04\ - \x12\x06\x86\x06\x02\x81\x06\"\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\x86\ - \x06\x02\x08\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\x86\x06\t\x18\n\r\n\ - \x05\x04\x12\x02\x01\x03\x12\x04\x86\x06\x1b\x1c\n\xcb\x03\n\x02\x04\x13\ - \x12\x06\x90\x06\0\x9a\x06\x01\x1a\xbc\x03\x20Request\x20message\x20for\ - \n\x20[google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot][googl\ - e.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot]\n\n\x20Note:\x20T\ - his\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\ - \x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20availab\ - le\x20to\x20most\x20Cloud\x20Bigtable\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\x13\x01\x12\x04\x90\x06\x08\x1d\n\xb7\x01\n\x04\x04\x13\ - \x02\0\x12\x06\x94\x06\x02\x99\x06\x04\x1a\xa6\x01\x20Required.\x20The\ - \x20unique\x20name\x20of\x20the\x20snapshot\x20to\x20be\x20deleted.\n\ - \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ - s/{instance}/clusters/{cluster}/snapshots/{snapshot}`.\n\n\x0f\n\x05\x04\ - \x13\x02\0\x04\x12\x06\x94\x06\x02\x90\x06\x1f\n\r\n\x05\x04\x13\x02\0\ - \x05\x12\x04\x94\x06\x02\x08\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\x94\x06\ - \t\r\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\x94\x06\x10\x11\n\x0f\n\x05\x04\ - \x13\x02\0\x08\x12\x06\x94\x06\x12\x99\x06\x03\n\x10\n\x08\x04\x13\x02\0\ - \x08\x9c\x08\0\x12\x04\x95\x06\x04*\n\x11\n\x07\x04\x13\x02\0\x08\x9f\ - \x08\x12\x06\x96\x06\x04\x98\x06\x05\n\xf7\x02\n\x02\x04\x14\x12\x06\xa2\ - \x06\0\xab\x06\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\x14\x01\x12\x04\xa2\x06\x08\x1d\nY\n\x04\x04\x14\x02\0\x12\x04\xa4\ - \x06\x02,\x1aK\x20The\x20request\x20that\x20prompted\x20the\x20initiatio\ - n\x20of\x20this\x20SnapshotTable\x20operation.\n\n\x0f\n\x05\x04\x14\x02\ - \0\x04\x12\x06\xa4\x06\x02\xa2\x06\x1f\n\r\n\x05\x04\x14\x02\0\x06\x12\ - \x04\xa4\x06\x02\x16\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xa4\x06\x17'\n\ - \r\n\x05\x04\x14\x02\0\x03\x12\x04\xa4\x06*+\nD\n\x04\x04\x14\x02\x01\ - \x12\x04\xa7\x06\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20origi\ - nal\x20request\x20was\x20received.\n\n\x0f\n\x05\x04\x14\x02\x01\x04\x12\ - \x06\xa7\x06\x02\xa4\x06,\n\r\n\x05\x04\x14\x02\x01\x06\x12\x04\xa7\x06\ - \x02\x1b\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xa7\x06\x1c(\n\r\n\x05\ - \x04\x14\x02\x01\x03\x12\x04\xa7\x06+,\nU\n\x04\x04\x14\x02\x02\x12\x04\ - \xaa\x06\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20operation\x20\ - failed\x20or\x20was\x20completed\x20successfully.\n\n\x0f\n\x05\x04\x14\ - \x02\x02\x04\x12\x06\xaa\x06\x02\xa7\x06-\n\r\n\x05\x04\x14\x02\x02\x06\ - \x12\x04\xaa\x06\x02\x1b\n\r\n\x05\x04\x14\x02\x02\x01\x12\x04\xaa\x06\ - \x1c'\n\r\n\x05\x04\x14\x02\x02\x03\x12\x04\xaa\x06*+\n\x81\x03\n\x02\ - \x04\x15\x12\x06\xb3\x06\0\xbd\x06\x01\x1a\xf2\x02\x20The\x20metadata\ - \x20for\x20the\x20Operation\x20returned\x20by\x20CreateTableFromSnapshot\ - .\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\x20recommended\n\x20for\x20product\ - ion\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20d\ - eprecation\x20policy.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xb3\x06\x08'\nd\ - \n\x04\x04\x15\x02\0\x12\x04\xb6\x06\x026\x1aV\x20The\x20request\x20that\ - \x20prompted\x20the\x20initiation\x20of\x20this\x20CreateTableFromSnapsh\ - ot\n\x20operation.\n\n\x0f\n\x05\x04\x15\x02\0\x04\x12\x06\xb6\x06\x02\ - \xb3\x06)\n\r\n\x05\x04\x15\x02\0\x06\x12\x04\xb6\x06\x02\x20\n\r\n\x05\ - \x04\x15\x02\0\x01\x12\x04\xb6\x06!1\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\ - \xb6\x0645\nD\n\x04\x04\x15\x02\x01\x12\x04\xb9\x06\x02-\x1a6\x20The\x20\ - time\x20at\x20which\x20the\x20original\x20request\x20was\x20received.\n\ - \n\x0f\n\x05\x04\x15\x02\x01\x04\x12\x06\xb9\x06\x02\xb6\x066\n\r\n\x05\ - \x04\x15\x02\x01\x06\x12\x04\xb9\x06\x02\x1b\n\r\n\x05\x04\x15\x02\x01\ - \x01\x12\x04\xb9\x06\x1c(\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\xb9\x06+\ - ,\nU\n\x04\x04\x15\x02\x02\x12\x04\xbc\x06\x02,\x1aG\x20The\x20time\x20a\ - t\x20which\x20the\x20operation\x20failed\x20or\x20was\x20completed\x20su\ - ccessfully.\n\n\x0f\n\x05\x04\x15\x02\x02\x04\x12\x06\xbc\x06\x02\xb9\ - \x06-\n\r\n\x05\x04\x15\x02\x02\x06\x12\x04\xbc\x06\x02\x1b\n\r\n\x05\ - \x04\x15\x02\x02\x01\x12\x04\xbc\x06\x1c'\n\r\n\x05\x04\x15\x02\x02\x03\ - \x12\x04\xbc\x06*+\ni\n\x02\x04\x16\x12\x06\xc0\x06\0\xd5\x06\x01\x1a[\ - \x20The\x20request\x20for\x20[CreateBackup][google.bigtable.admin.v2.Big\ - tableTableAdmin.CreateBackup].\n\n\x0b\n\x03\x04\x16\x01\x12\x04\xc0\x06\ - \x08\x1b\n\xef\x01\n\x04\x04\x16\x02\0\x12\x06\xc4\x06\x02\xc9\x06\x04\ - \x1a\xde\x01\x20Required.\x20This\x20must\x20be\x20one\x20of\x20the\x20c\ - lusters\x20in\x20the\x20instance\x20in\x20which\x20this\n\x20table\x20is\ - \x20located.\x20The\x20backup\x20will\x20be\x20stored\x20in\x20this\x20c\ - luster.\x20Values\x20are\n\x20of\x20the\x20form\x20`projects/{project}/i\ - nstances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\x16\x02\0\x04\ - \x12\x06\xc4\x06\x02\xc0\x06\x1d\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\xc4\ - \x06\x02\x08\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\xc4\x06\t\x0f\n\r\n\x05\ - \x04\x16\x02\0\x03\x12\x04\xc4\x06\x12\x13\n\x0f\n\x05\x04\x16\x02\0\x08\ - \x12\x06\xc4\x06\x14\xc9\x06\x03\n\x10\n\x08\x04\x16\x02\0\x08\x9c\x08\0\ - \x12\x04\xc5\x06\x04*\n\x11\n\x07\x04\x16\x02\0\x08\x9f\x08\x12\x06\xc6\ - \x06\x04\xc8\x06\x05\n\x89\x03\n\x04\x04\x16\x02\x01\x12\x04\xd1\x06\x02\ - @\x1a\xfa\x02\x20Required.\x20The\x20id\x20of\x20the\x20backup\x20to\x20\ - be\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\x0f\n\x05\x04\x16\x02\x01\x04\x12\ - \x06\xd1\x06\x02\xc9\x06\x04\n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\xd1\ - \x06\x02\x08\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\xd1\x06\t\x12\n\r\n\ - \x05\x04\x16\x02\x01\x03\x12\x04\xd1\x06\x15\x16\n\r\n\x05\x04\x16\x02\ - \x01\x08\x12\x04\xd1\x06\x17?\n\x10\n\x08\x04\x16\x02\x01\x08\x9c\x08\0\ - \x12\x04\xd1\x06\x18>\n/\n\x04\x04\x16\x02\x02\x12\x04\xd4\x06\x02=\x1a!\ - \x20Required.\x20The\x20backup\x20to\x20create.\n\n\x0f\n\x05\x04\x16\ - \x02\x02\x04\x12\x06\xd4\x06\x02\xd1\x06@\n\r\n\x05\x04\x16\x02\x02\x06\ - \x12\x04\xd4\x06\x02\x08\n\r\n\x05\x04\x16\x02\x02\x01\x12\x04\xd4\x06\t\ - \x0f\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\xd4\x06\x12\x13\n\r\n\x05\x04\ - \x16\x02\x02\x08\x12\x04\xd4\x06\x14<\n\x10\n\x08\x04\x16\x02\x02\x08\ - \x9c\x08\0\x12\x04\xd4\x06\x15;\n\x86\x01\n\x02\x04\x17\x12\x06\xd9\x06\ - \0\xe5\x06\x01\x1ax\x20Metadata\x20type\x20for\x20the\x20operation\x20re\ - turned\x20by\n\x20[CreateBackup][google.bigtable.admin.v2.BigtableTableA\ - dmin.CreateBackup].\n\n\x0b\n\x03\x04\x17\x01\x12\x04\xd9\x06\x08\x1c\n5\ - \n\x04\x04\x17\x02\0\x12\x04\xdb\x06\x02\x12\x1a'\x20The\x20name\x20of\ - \x20the\x20backup\x20being\x20created.\n\n\x0f\n\x05\x04\x17\x02\0\x04\ - \x12\x06\xdb\x06\x02\xd9\x06\x1e\n\r\n\x05\x04\x17\x02\0\x05\x12\x04\xdb\ - \x06\x02\x08\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\xdb\x06\t\r\n\r\n\x05\ - \x04\x17\x02\0\x03\x12\x04\xdb\x06\x10\x11\nA\n\x04\x04\x17\x02\x01\x12\ - \x04\xde\x06\x02\x1a\x1a3\x20The\x20name\x20of\x20the\x20table\x20the\ - \x20backup\x20is\x20created\x20from.\n\n\x0f\n\x05\x04\x17\x02\x01\x04\ - \x12\x06\xde\x06\x02\xdb\x06\x12\n\r\n\x05\x04\x17\x02\x01\x05\x12\x04\ - \xde\x06\x02\x08\n\r\n\x05\x04\x17\x02\x01\x01\x12\x04\xde\x06\t\x15\n\r\ - \n\x05\x04\x17\x02\x01\x03\x12\x04\xde\x06\x18\x19\n9\n\x04\x04\x17\x02\ - \x02\x12\x04\xe1\x06\x02+\x1a+\x20The\x20time\x20at\x20which\x20this\x20\ - operation\x20started.\n\n\x0f\n\x05\x04\x17\x02\x02\x04\x12\x06\xe1\x06\ - \x02\xde\x06\x1a\n\r\n\x05\x04\x17\x02\x02\x06\x12\x04\xe1\x06\x02\x1b\n\ - \r\n\x05\x04\x17\x02\x02\x01\x12\x04\xe1\x06\x1c&\n\r\n\x05\x04\x17\x02\ - \x02\x03\x12\x04\xe1\x06)*\nS\n\x04\x04\x17\x02\x03\x12\x04\xe4\x06\x02)\ - \x1aE\x20If\x20set,\x20the\x20time\x20at\x20which\x20this\x20operation\ - \x20finished\x20or\x20was\x20cancelled.\n\n\x0f\n\x05\x04\x17\x02\x03\ - \x04\x12\x06\xe4\x06\x02\xe1\x06+\n\r\n\x05\x04\x17\x02\x03\x06\x12\x04\ - \xe4\x06\x02\x1b\n\r\n\x05\x04\x17\x02\x03\x01\x12\x04\xe4\x06\x1c$\n\r\ - \n\x05\x04\x17\x02\x03\x03\x12\x04\xe4\x06'(\ni\n\x02\x04\x18\x12\x06\ - \xe8\x06\0\xf5\x06\x01\x1a[\x20The\x20request\x20for\x20[UpdateBackup][g\ - oogle.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup].\n\n\x0b\n\x03\ - \x04\x18\x01\x12\x04\xe8\x06\x08\x1b\n\xf1\x01\n\x04\x04\x18\x02\0\x12\ - \x04\xed\x06\x02=\x1a\xe2\x01\x20Required.\x20The\x20backup\x20to\x20upd\ - ate.\x20`backup.name`,\x20and\x20the\x20fields\x20to\x20be\x20updated\n\ - \x20as\x20specified\x20by\x20`update_mask`\x20are\x20required.\x20Other\ - \x20fields\x20are\x20ignored.\n\x20Update\x20is\x20only\x20supported\x20\ - for\x20the\x20following\x20fields:\n\x20\x20*\x20`backup.expire_time`.\n\ - \n\x0f\n\x05\x04\x18\x02\0\x04\x12\x06\xed\x06\x02\xe8\x06\x1d\n\r\n\x05\ - \x04\x18\x02\0\x06\x12\x04\xed\x06\x02\x08\n\r\n\x05\x04\x18\x02\0\x01\ - \x12\x04\xed\x06\t\x0f\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xed\x06\x12\ - \x13\n\r\n\x05\x04\x18\x02\0\x08\x12\x04\xed\x06\x14<\n\x10\n\x08\x04\ - \x18\x02\0\x08\x9c\x08\0\x12\x04\xed\x06\x15;\n\xd6\x02\n\x04\x04\x18\ - \x02\x01\x12\x04\xf4\x06\x02U\x1a\xc7\x02\x20Required.\x20A\x20mask\x20s\ - pecifying\x20which\x20fields\x20(e.g.\x20`expire_time`)\x20in\x20the\n\ - \x20Backup\x20resource\x20should\x20be\x20updated.\x20This\x20mask\x20is\ - \x20relative\x20to\x20the\x20Backup\n\x20resource,\x20not\x20to\x20the\ - \x20request\x20message.\x20The\x20field\x20mask\x20must\x20always\x20be\ - \n\x20specified;\x20this\x20prevents\x20any\x20future\x20fields\x20from\ - \x20being\x20erased\x20accidentally\n\x20by\x20clients\x20that\x20do\x20\ - not\x20know\x20about\x20them.\n\n\x0f\n\x05\x04\x18\x02\x01\x04\x12\x06\ - \xf4\x06\x02\xed\x06=\n\r\n\x05\x04\x18\x02\x01\x06\x12\x04\xf4\x06\x02\ - \x1b\n\r\n\x05\x04\x18\x02\x01\x01\x12\x04\xf4\x06\x1c'\n\r\n\x05\x04\ - \x18\x02\x01\x03\x12\x04\xf4\x06*+\n\r\n\x05\x04\x18\x02\x01\x08\x12\x04\ - \xf4\x06,T\n\x10\n\x08\x04\x18\x02\x01\x08\x9c\x08\0\x12\x04\xf4\x06-S\n\ - c\n\x02\x04\x19\x12\x06\xf8\x06\0\x82\x07\x01\x1aU\x20The\x20request\x20\ - for\x20[GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup\ - ].\n\n\x0b\n\x03\x04\x19\x01\x12\x04\xf8\x06\x08\x18\n\x98\x01\n\x04\x04\ - \x19\x02\0\x12\x06\xfc\x06\x02\x81\x07\x04\x1a\x87\x01\x20Required.\x20N\ - ame\x20of\x20the\x20backup.\n\x20Values\x20are\x20of\x20the\x20form\n\ - \x20`projects/{project}/instances/{instance}/clusters/{cluster}/backups/\ - {backup}`.\n\n\x0f\n\x05\x04\x19\x02\0\x04\x12\x06\xfc\x06\x02\xf8\x06\ - \x1a\n\r\n\x05\x04\x19\x02\0\x05\x12\x04\xfc\x06\x02\x08\n\r\n\x05\x04\ - \x19\x02\0\x01\x12\x04\xfc\x06\t\r\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\ - \xfc\x06\x10\x11\n\x0f\n\x05\x04\x19\x02\0\x08\x12\x06\xfc\x06\x12\x81\ - \x07\x03\n\x10\n\x08\x04\x19\x02\0\x08\x9c\x08\0\x12\x04\xfd\x06\x04*\n\ - \x11\n\x07\x04\x19\x02\0\x08\x9f\x08\x12\x06\xfe\x06\x04\x80\x07\x05\ni\ - \n\x02\x04\x1a\x12\x06\x85\x07\0\x8f\x07\x01\x1a[\x20The\x20request\x20f\ - or\x20[DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteB\ - ackup].\n\n\x0b\n\x03\x04\x1a\x01\x12\x04\x85\x07\x08\x1b\n\xa2\x01\n\ - \x04\x04\x1a\x02\0\x12\x06\x89\x07\x02\x8e\x07\x04\x1a\x91\x01\x20Requir\ - ed.\x20Name\x20of\x20the\x20backup\x20to\x20delete.\n\x20Values\x20are\ - \x20of\x20the\x20form\n\x20`projects/{project}/instances/{instance}/clus\ - ters/{cluster}/backups/{backup}`.\n\n\x0f\n\x05\x04\x1a\x02\0\x04\x12\ - \x06\x89\x07\x02\x85\x07\x1d\n\r\n\x05\x04\x1a\x02\0\x05\x12\x04\x89\x07\ - \x02\x08\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\x89\x07\t\r\n\r\n\x05\x04\ - \x1a\x02\0\x03\x12\x04\x89\x07\x10\x11\n\x0f\n\x05\x04\x1a\x02\0\x08\x12\ - \x06\x89\x07\x12\x8e\x07\x03\n\x10\n\x08\x04\x1a\x02\0\x08\x9c\x08\0\x12\ - \x04\x8a\x07\x04*\n\x11\n\x07\x04\x1a\x02\0\x08\x9f\x08\x12\x06\x8b\x07\ - \x04\x8d\x07\x05\ng\n\x02\x04\x1b\x12\x06\x92\x07\0\xdf\x07\x01\x1aY\x20\ - The\x20request\x20for\x20[ListBackups][google.bigtable.admin.v2.Bigtable\ - TableAdmin.ListBackups].\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\x92\x07\x08\ - \x1a\n\x9a\x02\n\x04\x04\x1b\x02\0\x12\x06\x97\x07\x02\x9c\x07\x04\x1a\ - \x89\x02\x20Required.\x20The\x20cluster\x20to\x20list\x20backups\x20from\ - .\x20\x20Values\x20are\x20of\x20the\n\x20form\x20`projects/{project}/ins\ - tances/{instance}/clusters/{cluster}`.\n\x20Use\x20`{cluster}\x20=\x20'-\ - '`\x20to\x20list\x20backups\x20for\x20all\x20clusters\x20in\x20an\x20ins\ - tance,\n\x20e.g.,\x20`projects/{project}/instances/{instance}/clusters/-\ - `.\n\n\x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\x97\x07\x02\x92\x07\x1c\n\r\n\ - \x05\x04\x1b\x02\0\x05\x12\x04\x97\x07\x02\x08\n\r\n\x05\x04\x1b\x02\0\ - \x01\x12\x04\x97\x07\t\x0f\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\x97\x07\ - \x12\x13\n\x0f\n\x05\x04\x1b\x02\0\x08\x12\x06\x97\x07\x14\x9c\x07\x03\n\ - \x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\x98\x07\x04*\n\x11\n\x07\ - \x04\x1b\x02\0\x08\x9f\x08\x12\x06\x99\x07\x04\x9b\x07\x05\n\xc9\x0c\n\ - \x04\x04\x1b\x02\x01\x12\x04\xbe\x07\x02\x14\x1a\xba\x0c\x20A\x20filter\ - \x20expression\x20that\x20filters\x20backups\x20listed\x20in\x20the\x20r\ - esponse.\n\x20The\x20expression\x20must\x20specify\x20the\x20field\x20na\ - me,\x20a\x20comparison\x20operator,\n\x20and\x20the\x20value\x20that\x20\ - you\x20want\x20to\x20use\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:.\x20Colon\x20':'\x20represents\x20a\x20HAS\x20opera\ - tor\x20which\x20is\n\x20roughly\x20synonymous\x20with\x20equality.\x20Fi\ - lter\x20rules\x20are\x20case\x20insensitive.\n\n\x20The\x20fields\x20eli\ - gible\x20for\x20filtering\x20are:\n\x20\x20\x20*\x20`name`\n\x20\x20\x20\ - *\x20`source_table`\n\x20\x20\x20*\x20`state`\n\x20\x20\x20*\x20`start_t\ - ime`\x20(and\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM\ - :SSZ)\n\x20\x20\x20*\x20`end_time`\x20(and\x20values\x20are\x20of\x20the\ - \x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\x20\x20\x20*\x20`expire_time`\x20(\ - and\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\ - \x20\x20\x20*\x20`size_bytes`\n\n\x20To\x20filter\x20on\x20multiple\x20e\ - xpressions,\x20provide\x20each\x20separate\x20expression\x20within\n\x20\ - parentheses.\x20By\x20default,\x20each\x20expression\x20is\x20an\x20AND\ - \x20expression.\x20However,\n\x20you\x20can\x20include\x20AND,\x20OR,\ - \x20and\x20NOT\x20expressions\x20explicitly.\n\n\x20Some\x20examples\x20\ - of\x20using\x20filters\x20are:\n\n\x20\x20\x20*\x20`name:\"exact\"`\x20-\ - ->\x20The\x20backup's\x20name\x20is\x20the\x20string\x20\"exact\".\n\x20\ - \x20\x20*\x20`name:howl`\x20-->\x20The\x20backup's\x20name\x20contains\ - \x20the\x20string\x20\"howl\".\n\x20\x20\x20*\x20`source_table:prod`\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-->\x20The\x20source_table's\x20\ - name\x20contains\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\x20cre\ - ated\x20and\x20ready\x20for\x20use.\n\x20\x20\x20*\x20`(name:howl)\x20AN\ - D\x20(start_time\x20<\x20\\\"2018-03-28T14:50:00Z\\\")`\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20-->\x20The\x20backup\x20name\x20contains\x20\ - the\x20string\x20\"howl\"\x20and\x20start_time\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20of\x20the\x20backup\x20is\x20before\x202\ - 018-03-28T14:50:00Z.\n\x20\x20\x20*\x20`size_bytes\x20>\x2010000000000`\ - \x20-->\x20The\x20backup's\x20size\x20is\x20greater\x20than\x2010GB\n\n\ - \x0f\n\x05\x04\x1b\x02\x01\x04\x12\x06\xbe\x07\x02\x9c\x07\x04\n\r\n\x05\ - \x04\x1b\x02\x01\x05\x12\x04\xbe\x07\x02\x08\n\r\n\x05\x04\x1b\x02\x01\ - \x01\x12\x04\xbe\x07\t\x0f\n\r\n\x05\x04\x1b\x02\x01\x03\x12\x04\xbe\x07\ - \x12\x13\n\x8a\x06\n\x04\x04\x1b\x02\x02\x12\x04\xd4\x07\x02\x16\x1a\xfb\ - \x05\x20An\x20expression\x20for\x20specifying\x20the\x20sort\x20order\ - \x20of\x20the\x20results\x20of\x20the\x20request.\n\x20The\x20string\x20\ - value\x20should\x20specify\x20one\x20or\x20more\x20fields\x20in\x20[Back\ - up][google.bigtable.admin.v2.Backup].\x20The\x20full\n\x20syntax\x20is\ - \x20described\x20at\x20https://aip.dev/132#ordering.\n\n\x20Fields\x20su\ - pported\x20are:\n\x20\x20\x20\x20*\x20name\n\x20\x20\x20\x20*\x20source_\ - table\n\x20\x20\x20\x20*\x20expire_time\n\x20\x20\x20\x20*\x20start_time\ - \n\x20\x20\x20\x20*\x20end_time\n\x20\x20\x20\x20*\x20size_bytes\n\x20\ - \x20\x20\x20*\x20state\n\n\x20For\x20example,\x20\"start_time\".\x20The\ - \x20default\x20sorting\x20order\x20is\x20ascending.\n\x20To\x20specify\ - \x20descending\x20order\x20for\x20the\x20field,\x20a\x20suffix\x20\"\x20\ - desc\"\x20should\n\x20be\x20appended\x20to\x20the\x20field\x20name.\x20F\ - or\x20example,\x20\"start_time\x20desc\".\n\x20Redundant\x20space\x20cha\ - racters\x20in\x20the\x20syntax\x20are\x20insigificant.\n\n\x20If\x20orde\ - r_by\x20is\x20empty,\x20results\x20will\x20be\x20sorted\x20by\x20`start_\ - time`\x20in\x20descending\n\x20order\x20starting\x20from\x20the\x20most\ - \x20recently\x20created\x20backup.\n\n\x0f\n\x05\x04\x1b\x02\x02\x04\x12\ - \x06\xd4\x07\x02\xbe\x07\x14\n\r\n\x05\x04\x1b\x02\x02\x05\x12\x04\xd4\ - \x07\x02\x08\n\r\n\x05\x04\x1b\x02\x02\x01\x12\x04\xd4\x07\t\x11\n\r\n\ - \x05\x04\x1b\x02\x02\x03\x12\x04\xd4\x07\x14\x15\n\x84\x01\n\x04\x04\x1b\ - \x02\x03\x12\x04\xd8\x07\x02\x16\x1av\x20Number\x20of\x20backups\x20to\ - \x20be\x20returned\x20in\x20the\x20response.\x20If\x200\x20or\n\x20less,\ - \x20defaults\x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20s\ - ize.\n\n\x0f\n\x05\x04\x1b\x02\x03\x04\x12\x06\xd8\x07\x02\xd4\x07\x16\n\ - \r\n\x05\x04\x1b\x02\x03\x05\x12\x04\xd8\x07\x02\x07\n\r\n\x05\x04\x1b\ - \x02\x03\x01\x12\x04\xd8\x07\x08\x11\n\r\n\x05\x04\x1b\x02\x03\x03\x12\ - \x04\xd8\x07\x14\x15\n\x94\x02\n\x04\x04\x1b\x02\x04\x12\x04\xde\x07\x02\ - \x18\x1a\x85\x02\x20If\x20non-empty,\x20`page_token`\x20should\x20contai\ - n\x20a\n\x20[next_page_token][google.bigtable.admin.v2.ListBackupsRespon\ - se.next_page_token]\x20from\x20a\n\x20previous\x20[ListBackupsResponse][\ - google.bigtable.admin.v2.ListBackupsResponse]\x20to\x20the\x20same\x20`p\ - arent`\x20and\x20with\x20the\x20same\n\x20`filter`.\n\n\x0f\n\x05\x04\ - \x1b\x02\x04\x04\x12\x06\xde\x07\x02\xd8\x07\x16\n\r\n\x05\x04\x1b\x02\ - \x04\x05\x12\x04\xde\x07\x02\x08\n\r\n\x05\x04\x1b\x02\x04\x01\x12\x04\ - \xde\x07\t\x13\n\r\n\x05\x04\x1b\x02\x04\x03\x12\x04\xde\x07\x16\x17\nh\ - \n\x02\x04\x1c\x12\x06\xe2\x07\0\xea\x07\x01\x1aZ\x20The\x20response\x20\ - for\x20[ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBac\ - kups].\n\n\x0b\n\x03\x04\x1c\x01\x12\x04\xe2\x07\x08\x1b\n-\n\x04\x04\ - \x1c\x02\0\x12\x04\xe4\x07\x02\x1e\x1a\x1f\x20The\x20list\x20of\x20match\ - ing\x20backups.\n\n\r\n\x05\x04\x1c\x02\0\x04\x12\x04\xe4\x07\x02\n\n\r\ - \n\x05\x04\x1c\x02\0\x06\x12\x04\xe4\x07\x0b\x11\n\r\n\x05\x04\x1c\x02\0\ - \x01\x12\x04\xe4\x07\x12\x19\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xe4\x07\ - \x1c\x1d\n\xb3\x01\n\x04\x04\x1c\x02\x01\x12\x04\xe9\x07\x02\x1d\x1a\xa4\ - \x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\ - \n\x20[ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBack\ - ups]\x20call\x20to\x20fetch\x20more\n\x20of\x20the\x20matching\x20backup\ - s.\n\n\x0f\n\x05\x04\x1c\x02\x01\x04\x12\x06\xe9\x07\x02\xe4\x07\x1e\n\r\ - \n\x05\x04\x1c\x02\x01\x05\x12\x04\xe9\x07\x02\x08\n\r\n\x05\x04\x1c\x02\ - \x01\x01\x12\x04\xe9\x07\t\x18\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xe9\ - \x07\x1b\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs deleted file mode 100644 index 9c730f1fd1..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs +++ /dev/null @@ -1,657 +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_BIGTABLE_TABLE_ADMIN_CREATE_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable", - 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_CREATE_TABLE_FROM_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTableFromSnapshot", - 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_TABLES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/ListTables", - 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_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/GetTable", - 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", - 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", - 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_DROP_ROW_RANGE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange", - 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_GENERATE_CONSISTENCY_TOKEN: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/GenerateConsistencyToken", - 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_CHECK_CONSISTENCY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency", - 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_SNAPSHOT_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/SnapshotTable", - 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_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/GetSnapshot", - 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_SNAPSHOTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/ListSnapshots", - 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_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSnapshot", - 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_CREATE_BACKUP: ::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_GET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/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_BIGTABLE_TABLE_ADMIN_SET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/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_BIGTABLE_TABLE_ADMIN_TEST_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/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 BigtableTableAdminClient { - client: ::grpcio::Client, -} - -impl BigtableTableAdminClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - BigtableTableAdminClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_table_opt(&self, req: &super::bigtable_table_admin::CreateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE, req, opt) - } - - pub fn create_table(&self, req: &super::bigtable_table_admin::CreateTableRequest) -> ::grpcio::Result { - self.create_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_table_async_opt(&self, req: &super::bigtable_table_admin::CreateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE, req, opt) - } - - pub fn create_table_async(&self, req: &super::bigtable_table_admin::CreateTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_table_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_table_from_snapshot_opt(&self, req: &super::bigtable_table_admin::CreateTableFromSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE_FROM_SNAPSHOT, req, opt) - } - - pub fn create_table_from_snapshot(&self, req: &super::bigtable_table_admin::CreateTableFromSnapshotRequest) -> ::grpcio::Result { - self.create_table_from_snapshot_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_table_from_snapshot_async_opt(&self, req: &super::bigtable_table_admin::CreateTableFromSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE_FROM_SNAPSHOT, req, opt) - } - - pub fn create_table_from_snapshot_async(&self, req: &super::bigtable_table_admin::CreateTableFromSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_table_from_snapshot_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_tables_opt(&self, req: &super::bigtable_table_admin::ListTablesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_TABLES, req, opt) - } - - pub fn list_tables(&self, req: &super::bigtable_table_admin::ListTablesRequest) -> ::grpcio::Result { - self.list_tables_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_tables_async_opt(&self, req: &super::bigtable_table_admin::ListTablesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_TABLES, req, opt) - } - - pub fn list_tables_async(&self, req: &super::bigtable_table_admin::ListTablesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_tables_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_table_opt(&self, req: &super::bigtable_table_admin::GetTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_GET_TABLE, req, opt) - } - - pub fn get_table(&self, req: &super::bigtable_table_admin::GetTableRequest) -> ::grpcio::Result { - self.get_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_table_async_opt(&self, req: &super::bigtable_table_admin::GetTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_GET_TABLE, req, opt) - } - - pub fn get_table_async(&self, req: &super::bigtable_table_admin::GetTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_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) - } - - pub fn delete_table(&self, req: &super::bigtable_table_admin::DeleteTableRequest) -> ::grpcio::Result { - self.delete_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_table_async_opt(&self, req: &super::bigtable_table_admin::DeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_TABLE, req, opt) - } - - pub fn delete_table_async(&self, req: &super::bigtable_table_admin::DeleteTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_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) - } - - pub fn modify_column_families(&self, req: &super::bigtable_table_admin::ModifyColumnFamiliesRequest) -> ::grpcio::Result { - self.modify_column_families_opt(req, ::grpcio::CallOption::default()) - } - - pub fn modify_column_families_async_opt(&self, req: &super::bigtable_table_admin::ModifyColumnFamiliesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_MODIFY_COLUMN_FAMILIES, req, opt) - } - - pub fn modify_column_families_async(&self, req: &super::bigtable_table_admin::ModifyColumnFamiliesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.modify_column_families_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn drop_row_range_opt(&self, req: &super::bigtable_table_admin::DropRowRangeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_DROP_ROW_RANGE, req, opt) - } - - pub fn drop_row_range(&self, req: &super::bigtable_table_admin::DropRowRangeRequest) -> ::grpcio::Result { - self.drop_row_range_opt(req, ::grpcio::CallOption::default()) - } - - pub fn drop_row_range_async_opt(&self, req: &super::bigtable_table_admin::DropRowRangeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_DROP_ROW_RANGE, req, opt) - } - - pub fn drop_row_range_async(&self, req: &super::bigtable_table_admin::DropRowRangeRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.drop_row_range_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn generate_consistency_token_opt(&self, req: &super::bigtable_table_admin::GenerateConsistencyTokenRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_GENERATE_CONSISTENCY_TOKEN, req, opt) - } - - pub fn generate_consistency_token(&self, req: &super::bigtable_table_admin::GenerateConsistencyTokenRequest) -> ::grpcio::Result { - self.generate_consistency_token_opt(req, ::grpcio::CallOption::default()) - } - - pub fn generate_consistency_token_async_opt(&self, req: &super::bigtable_table_admin::GenerateConsistencyTokenRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_GENERATE_CONSISTENCY_TOKEN, req, opt) - } - - pub fn generate_consistency_token_async(&self, req: &super::bigtable_table_admin::GenerateConsistencyTokenRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.generate_consistency_token_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn check_consistency_opt(&self, req: &super::bigtable_table_admin::CheckConsistencyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_CHECK_CONSISTENCY, req, opt) - } - - pub fn check_consistency(&self, req: &super::bigtable_table_admin::CheckConsistencyRequest) -> ::grpcio::Result { - self.check_consistency_opt(req, ::grpcio::CallOption::default()) - } - - pub fn check_consistency_async_opt(&self, req: &super::bigtable_table_admin::CheckConsistencyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_CHECK_CONSISTENCY, req, opt) - } - - pub fn check_consistency_async(&self, req: &super::bigtable_table_admin::CheckConsistencyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.check_consistency_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn snapshot_table_opt(&self, req: &super::bigtable_table_admin::SnapshotTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_SNAPSHOT_TABLE, req, opt) - } - - pub fn snapshot_table(&self, req: &super::bigtable_table_admin::SnapshotTableRequest) -> ::grpcio::Result { - self.snapshot_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn snapshot_table_async_opt(&self, req: &super::bigtable_table_admin::SnapshotTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_SNAPSHOT_TABLE, req, opt) - } - - pub fn snapshot_table_async(&self, req: &super::bigtable_table_admin::SnapshotTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.snapshot_table_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_snapshot_opt(&self, req: &super::bigtable_table_admin::GetSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_GET_SNAPSHOT, req, opt) - } - - pub fn get_snapshot(&self, req: &super::bigtable_table_admin::GetSnapshotRequest) -> ::grpcio::Result { - self.get_snapshot_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_snapshot_async_opt(&self, req: &super::bigtable_table_admin::GetSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_GET_SNAPSHOT, req, opt) - } - - pub fn get_snapshot_async(&self, req: &super::bigtable_table_admin::GetSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_snapshot_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_snapshots_opt(&self, req: &super::bigtable_table_admin::ListSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_SNAPSHOTS, req, opt) - } - - pub fn list_snapshots(&self, req: &super::bigtable_table_admin::ListSnapshotsRequest) -> ::grpcio::Result { - self.list_snapshots_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_snapshots_async_opt(&self, req: &super::bigtable_table_admin::ListSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_SNAPSHOTS, req, opt) - } - - pub fn list_snapshots_async(&self, req: &super::bigtable_table_admin::ListSnapshotsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_snapshots_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_snapshot_opt(&self, req: &super::bigtable_table_admin::DeleteSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_SNAPSHOT, req, opt) - } - - pub fn delete_snapshot(&self, req: &super::bigtable_table_admin::DeleteSnapshotRequest) -> ::grpcio::Result { - self.delete_snapshot_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_snapshot_async_opt(&self, req: &super::bigtable_table_admin::DeleteSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_SNAPSHOT, req, opt) - } - - pub fn delete_snapshot_async(&self, req: &super::bigtable_table_admin::DeleteSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - 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 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) - } - - 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_BIGTABLE_TABLE_ADMIN_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 set_iam_policy_opt(&self, req: &super::iam_policy::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_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_BIGTABLE_TABLE_ADMIN_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 test_iam_permissions_opt(&self, req: &super::iam_policy::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_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_BIGTABLE_TABLE_ADMIN_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: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait BigtableTableAdmin { - fn create_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::CreateTableRequest, sink: ::grpcio::UnarySink); - fn create_table_from_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::CreateTableFromSnapshotRequest, sink: ::grpcio::UnarySink); - fn list_tables(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::ListTablesRequest, sink: ::grpcio::UnarySink); - fn get_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::GetTableRequest, sink: ::grpcio::UnarySink); - fn delete_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::DeleteTableRequest, sink: ::grpcio::UnarySink); - fn modify_column_families(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::ModifyColumnFamiliesRequest, sink: ::grpcio::UnarySink); - fn drop_row_range(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::DropRowRangeRequest, sink: ::grpcio::UnarySink); - fn generate_consistency_token(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::GenerateConsistencyTokenRequest, sink: ::grpcio::UnarySink); - fn check_consistency(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::CheckConsistencyRequest, sink: ::grpcio::UnarySink); - fn snapshot_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::SnapshotTableRequest, sink: ::grpcio::UnarySink); - fn get_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::GetSnapshotRequest, sink: ::grpcio::UnarySink); - fn list_snapshots(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::ListSnapshotsRequest, sink: ::grpcio::UnarySink); - fn delete_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::DeleteSnapshotRequest, sink: ::grpcio::UnarySink); - fn create_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::CreateBackupRequest, sink: ::grpcio::UnarySink); - fn get_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::GetBackupRequest, sink: ::grpcio::UnarySink); - fn update_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::UpdateBackupRequest, sink: ::grpcio::UnarySink); - fn delete_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::DeleteBackupRequest, sink: ::grpcio::UnarySink); - fn list_backups(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::ListBackupsRequest, sink: ::grpcio::UnarySink); - fn restore_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::RestoreTableRequest, sink: ::grpcio::UnarySink); - fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_bigtable_table_admin(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE, move |ctx, req, resp| { - instance.create_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE_FROM_SNAPSHOT, move |ctx, req, resp| { - instance.create_table_from_snapshot(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_TABLES, move |ctx, req, resp| { - instance.list_tables(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GET_TABLE, move |ctx, req, resp| { - instance.get_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_TABLE, move |ctx, req, resp| { - instance.delete_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_MODIFY_COLUMN_FAMILIES, move |ctx, req, resp| { - instance.modify_column_families(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_DROP_ROW_RANGE, move |ctx, req, resp| { - instance.drop_row_range(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GENERATE_CONSISTENCY_TOKEN, move |ctx, req, resp| { - instance.generate_consistency_token(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_CHECK_CONSISTENCY, move |ctx, req, resp| { - instance.check_consistency(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_SNAPSHOT_TABLE, move |ctx, req, resp| { - instance.snapshot_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GET_SNAPSHOT, move |ctx, req, resp| { - instance.get_snapshot(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_SNAPSHOTS, move |ctx, req, resp| { - instance.list_snapshots(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_SNAPSHOT, move |ctx, req, resp| { - instance.delete_snapshot(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_BACKUP, move |ctx, req, resp| { - instance.create_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GET_BACKUP, move |ctx, req, resp| { - instance.get_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_UPDATE_BACKUP, move |ctx, req, resp| { - instance.update_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_BACKUP, move |ctx, req, resp| { - instance.delete_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_BACKUPS, move |ctx, req, resp| { - instance.list_backups(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_RESTORE_TABLE, move |ctx, req, resp| { - instance.restore_table(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GET_IAM_POLICY, move |ctx, req, resp| { - instance.get_iam_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_SET_IAM_POLICY, move |ctx, req, resp| { - instance.set_iam_policy(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_TEST_IAM_PERMISSIONS, move |ctx, req, resp| { - instance.test_iam_permissions(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/common.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/common.rs deleted file mode 100644 index 8741778f03..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/common.rs +++ /dev/null @@ -1,416 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/v2/common.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_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(Clone,PartialEq,Eq,Debug,Hash)] -pub enum StorageType { - STORAGE_TYPE_UNSPECIFIED = 0, - SSD = 1, - HDD = 2, -} - -impl ::protobuf::ProtobufEnum for StorageType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(StorageType::STORAGE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(StorageType::SSD), - 2 => ::std::option::Option::Some(StorageType::HDD), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [StorageType] = &[ - StorageType::STORAGE_TYPE_UNSPECIFIED, - StorageType::SSD, - StorageType::HDD, - ]; - 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::("StorageType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for StorageType { -} - -impl ::std::default::Default for StorageType { - fn default() -> Self { - StorageType::STORAGE_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for StorageType { - 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/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\xc5\x0c\n\x06\x12\x04\x0e\05\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\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\r\n\x05\x04\0\x02\0\x04\x12\x04-\x02*\x1b\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\x20the\x20request\x20was\x20received.\ - \n\n\r\n\x05\x04\0\x02\x01\x04\x12\x040\x02-\x1d\n\x0c\n\x05\x04\0\x02\ - \x01\x06\x12\x030\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\x20operat\ - ion\x20failed\x20or\x20was\x20completed\n\x20successfully.\n\n\r\n\x05\ - \x04\0\x02\x02\x04\x12\x044\x020+\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/instance.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/instance.rs deleted file mode 100644 index d504d400f4..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/instance.rs +++ /dev/null @@ -1,2062 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/v2/instance.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Instance { - // message fields - pub name: ::std::string::String, - pub display_name: ::std::string::String, - pub state: Instance_State, - pub field_type: Instance_Type, - 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 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 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()) - } -} - -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 { - 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.state != Instance_State::STATE_NOT_KNOWN { - my_size += ::protobuf::rt::enum_size(3, self.state); - } - if self.field_type != Instance_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.field_type); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(5, &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<()> { - 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)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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>( - "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 }, - )); - ::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.display_name.clear(); - self.state = Instance_State::STATE_NOT_KNOWN; - self.field_type = Instance_Type::TYPE_UNSPECIFIED; - self.labels.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_NOT_KNOWN = 0, - READY = 1, - CREATING = 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_NOT_KNOWN), - 1 => ::std::option::Option::Some(Instance_State::READY), - 2 => ::std::option::Option::Some(Instance_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, - ]; - 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_NOT_KNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for Instance_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Instance_Type { - TYPE_UNSPECIFIED = 0, - PRODUCTION = 1, - DEVELOPMENT = 2, -} - -impl ::protobuf::ProtobufEnum for Instance_Type { - 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 values() -> &'static [Self] { - static values: &'static [Instance_Type] = &[ - Instance_Type::TYPE_UNSPECIFIED, - Instance_Type::PRODUCTION, - Instance_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 ::std::marker::Copy for Instance_Type { -} - -impl ::std::default::Default for Instance_Type { - fn default() -> Self { - Instance_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)) - } -} - -#[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, - // 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() - } -} - -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.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 { - 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; - }, - 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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_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.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_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, - // 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), -} - -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() - } - } -} - -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; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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, - )); - ::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.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 { - // 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() - } -} - -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 { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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() -> 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 fields = ::std::vec::Vec::new(); - ::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.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)?; - } - 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) - } -} - -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\"\x91\x04\n\x08Instance\x12\ - \x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x03\x12&\n\x0cdispl\ - ay_name\x18\x02\x20\x01(\tR\x0bdisplayNameB\x03\xe0A\x02\x12>\n\x05state\ - \x18\x03\x20\x01(\x0e2(.google.bigtable.admin.v2.Instance.StateR\x05stat\ - e\x12;\n\x04type\x18\x04\x20\x01(\x0e2'.google.bigtable.admin.v2.Instanc\ - e.TypeR\x04type\x12F\n\x06labels\x18\x05\x20\x03(\x0b2..google.bigtable.\ - admin.v2.Instance.LabelsEntryR\x06labels\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\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\0\ - \x12\t\n\x05READY\x10\x01\x12\x0c\n\x08CREATING\x10\x02\"=\n\x04Type\x12\ - \x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\ - \x0bDEVELOPMENT\x10\x02:N\xeaAK\n\x20bigtable.googleapis.com/Instance\ - \x12'projects/{project}/instances/{instance}\"\xa2\x05\n\x07Cluster\x12\ - \x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x03\x12B\n\x08locat\ - ion\x18\x02\x20\x01(\tR\x08locationB&\xfaA#\n!locations.googleapis.com/L\ - ocation\x12B\n\x05state\x18\x03\x20\x01(\x0e2'.google.bigtable.admin.v2.\ - Cluster.StateR\x05stateB\x03\xe0A\x03\x12$\n\x0bserve_nodes\x18\x04\x20\ - \x01(\x05R\nserveNodesB\x03\xe0A\x02\x12W\n\x14default_storage_type\x18\ - \x05\x20\x01(\x0e2%.google.bigtable.admin.v2.StorageTypeR\x12defaultStor\ - ageType\x12d\n\x11encryption_config\x18\x06\x20\x01(\x0b22.google.bigtab\ - le.admin.v2.Cluster.EncryptionConfigR\x10encryptionConfigB\x03\xe0A\x05\ - \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\x04:`\xeaA]\n\x1fbigtable.googleapis.com/Cluster\x12:projects/{proj\ - ect}/instances/{instance}/clusters/{cluster}\"\xde\x04\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\x0bdescription\x18\x03\x20\x01(\tR\x0bdescrip\ - tion\x12\x82\x01\n\x1dmulti_cluster_routing_use_any\x18\x05\x20\x01(\x0b\ - 2>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\0R\x19\ - multiClusterRoutingUseAny\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\ncluster_id\x18\x01\x20\x01(\tR\tclus\ - terId\x12<\n\x1aallow_transactional_writes\x18\x02\x20\x01(\x08R\x18allo\ - wTransactionalWritesB\x10\n\x0erouting_policy:j\xeaAg\n\"bigtable.google\ - apis.com/AppProfile\x12Aprojects/{project}/instances/{instance}/appProfi\ - les/{app_profile}B\xd0\x02\n\x1ccom.google.bigtable.admin.v2B\rInstanceP\ - rotoP\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::V2\xeaAx\n!clo\ - udkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{locatio\ - n}/keyRings/{key_ring}/cryptoKeys/{crypto_key}J\xdbK\n\x07\x12\x05\x0e\0\ - \xf4\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\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\x08\n\x01\x08\x12\x03\ - \x1c\0;\n\t\n\x02\x08-\x12\x03\x1c\0;\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\n\xe2\x01\n\x02\x04\ - \0\x12\x04&\0k\x01\x1a\xd5\x01\x20A\x20collection\x20of\x20Bigtable\x20[\ - Tables][google.bigtable.admin.v2.Table]\x20and\n\x20the\x20resources\x20\ - that\x20serve\x20them.\n\x20All\x20tables\x20in\x20an\x20instance\x20are\ - \x20served\x20from\x20all\n\x20[Clusters][google.bigtable.admin.v2.Clust\ - er]\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-\x028\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\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\x033\ - \x04\x0e\x1aS\x20The\x20instance\x20has\x20been\x20successfully\x20creat\ - ed\x20and\x20can\x20serve\x20requests\n\x20to\x20its\x20tables.\n\n\x0e\ - \n\x07\x04\0\x04\0\x02\x01\x01\x12\x033\x04\t\n\x0e\n\x07\x04\0\x04\0\ - \x02\x01\x02\x12\x033\x0c\r\n|\n\x06\x04\0\x04\0\x02\x02\x12\x037\x04\ - \x11\x1am\x20The\x20instance\x20is\x20currently\x20being\x20created,\x20\ - and\x20may\x20be\x20destroyed\n\x20if\x20the\x20creation\x20process\x20e\ - ncounters\x20an\x20error.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x037\ - \x04\x0c\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x037\x0f\x10\n)\n\x04\ - \x04\0\x04\x01\x12\x04;\x02M\x03\x1a\x1b\x20The\x20type\x20of\x20the\x20\ - instance.\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\x20\ - of\x20the\x20instance\x20is\x20unspecified.\x20If\x20set\x20when\x20crea\ - ting\x20an\n\x20instance,\x20a\x20`PRODUCTION`\x20instance\x20will\x20be\ - \x20created.\x20If\x20set\x20when\x20updating\n\x20an\x20instance,\x20th\ - e\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\x03C\x04\x13\x1aR\x20An\ - \x20instance\x20meant\x20for\x20production\x20use.\x20`serve_nodes`\x20m\ - ust\x20be\x20set\n\x20on\x20the\x20cluster.\n\n\x0e\n\x07\x04\0\x04\x01\ - \x02\x01\x01\x12\x03C\x04\x0e\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\ - \x03C\x11\x12\n\xb7\x03\n\x06\x04\0\x04\x01\x02\x02\x12\x03L\x04\x14\x1a\ - \xa7\x03\x20The\x20instance\x20is\x20meant\x20for\x20development\x20and\ - \x20testing\x20purposes\x20only;\x20it\x20has\n\x20no\x20performance\x20\ - or\x20uptime\x20guarantees\x20and\x20is\x20not\x20covered\x20by\x20SLA.\ - \n\x20After\x20a\x20development\x20instance\x20is\x20created,\x20it\x20c\ - an\x20be\x20upgraded\x20by\n\x20updating\x20the\x20instance\x20to\x20typ\ - e\x20`PRODUCTION`.\x20An\x20instance\x20created\n\x20as\x20a\x20producti\ - on\x20instance\x20cannot\x20be\x20changed\x20to\x20a\x20development\x20i\ - nstance.\n\x20When\x20creating\x20a\x20development\x20instance,\x20`serv\ - e_nodes`\x20on\x20the\x20cluster\x20must\n\x20not\x20be\x20set.\n\n\x0e\ - \n\x07\x04\0\x04\x01\x02\x02\x01\x12\x03L\x04\x0f\n\x0e\n\x07\x04\0\x04\ - \x01\x02\x02\x02\x12\x03L\x12\x13\n\x81\x01\n\x04\x04\0\x02\0\x12\x03Q\ - \x02>\x1at\x20The\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\r\n\x05\x04\0\x02\0\x04\x12\x04Q\x02M\x03\n\ - \x0c\n\x05\x04\0\x02\0\x05\x12\x03Q\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\ - \x12\x03Q\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03Q\x10\x11\n\x0c\n\x05\ - \x04\0\x02\0\x08\x12\x03Q\x12=\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\ - \x03Q\x13<\n\xab\x01\n\x04\x04\0\x02\x01\x12\x03V\x02C\x1a\x9d\x01\x20Re\ - quired.\x20The\x20descriptive\x20name\x20for\x20this\x20instance\x20as\ - \x20it\x20appears\x20in\x20UIs.\n\x20Can\x20be\x20changed\x20at\x20any\ - \x20time,\x20but\x20should\x20be\x20kept\x20globally\x20unique\n\x20to\ - \x20avoid\x20confusion.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04V\x02Q>\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\x15\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03V\x18\x19\n\x0c\ - \n\x05\x04\0\x02\x01\x08\x12\x03V\x1aB\n\x0f\n\x08\x04\0\x02\x01\x08\x9c\ - \x08\0\x12\x03V\x1bA\nA\n\x04\x04\0\x02\x02\x12\x03Z\x02\x12\x1a4\x20(`O\ - utputOnly`)\n\x20The\x20current\x20state\x20of\x20the\x20instance.\n\n\r\ - \n\x05\x04\0\x02\x02\x04\x12\x04Z\x02VC\n\x0c\n\x05\x04\0\x02\x02\x06\ - \x12\x03Z\x02\x07\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03Z\x08\r\n\x0c\n\ - \x05\x04\0\x02\x02\x03\x12\x03Z\x10\x11\nB\n\x04\x04\0\x02\x03\x12\x03]\ - \x02\x10\x1a5\x20The\x20type\x20of\x20the\x20instance.\x20Defaults\x20to\ - \x20`PRODUCTION`.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04]\x02Z\x12\n\x0c\ - \n\x05\x04\0\x02\x03\x06\x12\x03]\x02\x06\n\x0c\n\x05\x04\0\x02\x03\x01\ - \x12\x03]\x07\x0b\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03]\x0e\x0f\n\x82\ - \x05\n\x04\x04\0\x02\x04\x12\x03j\x02!\x1a\xf4\x04\x20Labels\x20are\x20a\ - \x20flexible\x20and\x20lightweight\x20mechanism\x20for\x20organizing\x20\ - cloud\n\x20resources\x20into\x20groups\x20that\x20reflect\x20a\x20custom\ - er's\x20organizational\x20needs\x20and\n\x20deployment\x20strategies.\ - \x20They\x20can\x20be\x20used\x20to\x20filter\x20resources\x20and\x20agg\ - regate\n\x20metrics.\n\n\x20*\x20Label\x20keys\x20must\x20be\x20between\ - \x201\x20and\x2063\x20characters\x20long\x20and\x20must\x20conform\x20to\ - \n\x20\x20\x20the\x20regular\x20expression:\x20`[\\p{Ll}\\p{Lo}][\\p{Ll}\ - \\p{Lo}\\p{N}_-]{0,62}`.\n\x20*\x20Label\x20values\x20must\x20be\x20betw\ - een\x200\x20and\x2063\x20characters\x20long\x20and\x20must\x20conform\ - \x20to\n\x20\x20\x20the\x20regular\x20expression:\x20`[\\p{Ll}\\p{Lo}\\p\ - {N}_-]{0,63}`.\n\x20*\x20No\x20more\x20than\x2064\x20labels\x20can\x20be\ - \x20associated\x20with\x20a\x20given\x20resource.\n\x20*\x20Keys\x20and\ - \x20values\x20must\x20both\x20be\x20under\x20128\x20bytes.\n\n\r\n\x05\ - \x04\0\x02\x04\x04\x12\x04j\x02]\x10\n\x0c\n\x05\x04\0\x02\x04\x06\x12\ - \x03j\x02\x15\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03j\x16\x1c\n\x0c\n\x05\ - \x04\0\x02\x04\x03\x12\x03j\x1f\x20\n\xc9\x01\n\x02\x04\x01\x12\x05p\0\ - \xbb\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]\x20in\x20the\x20pare\ - nt\n\x20[Instance][google.bigtable.admin.v2.Instance].\n\n\n\n\x03\x04\ - \x01\x01\x12\x03p\x08\x0f\n\x0b\n\x03\x04\x01\x07\x12\x04q\x02t\x04\n\r\ - \n\x05\x04\x01\x07\x9d\x08\x12\x04q\x02t\x04\na\n\x04\x04\x01\x03\0\x12\ - \x05x\x02\x84\x01\x03\x1aR\x20Cloud\x20Key\x20Management\x20Service\x20(\ - Cloud\x20KMS)\x20settings\x20for\x20a\x20CMEK-protected\n\x20cluster.\n\ - \n\x0c\n\x05\x04\x01\x03\0\x01\x12\x03x\n\x1a\n\xfd\x03\n\x06\x04\x01\ - \x03\0\x02\0\x12\x06\x81\x01\x04\x83\x01\x07\x1a\xea\x03\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\x203)\x20A\ - ll\x20clusters\x20within\x20an\x20instance\x20must\x20use\x20the\x20same\ - \x20CMEK\x20key.\n\n\x10\n\x07\x04\x01\x03\0\x02\0\x04\x12\x05\x81\x01\ - \x04x\x1c\n\x0f\n\x07\x04\x01\x03\0\x02\0\x05\x12\x04\x81\x01\x04\n\n\ - \x0f\n\x07\x04\x01\x03\0\x02\0\x01\x12\x04\x81\x01\x0b\x17\n\x0f\n\x07\ - \x04\x01\x03\0\x02\0\x03\x12\x04\x81\x01\x1a\x1b\n\x11\n\x07\x04\x01\x03\ - \0\x02\0\x08\x12\x06\x81\x01\x1c\x83\x01\x06\n\x13\n\t\x04\x01\x03\0\x02\ - \0\x08\x9f\x08\x12\x06\x81\x01\x1d\x83\x01\x05\n/\n\x04\x04\x01\x04\0\ - \x12\x06\x87\x01\x02\x9d\x01\x03\x1a\x1f\x20Possible\x20states\x20of\x20\ - a\x20cluster.\n\n\r\n\x05\x04\x01\x04\0\x01\x12\x04\x87\x01\x07\x0c\nC\n\ - \x06\x04\x01\x04\0\x02\0\x12\x04\x89\x01\x04\x18\x1a3\x20The\x20state\ - \x20of\x20the\x20cluster\x20could\x20not\x20be\x20determined.\n\n\x0f\n\ - \x07\x04\x01\x04\0\x02\0\x01\x12\x04\x89\x01\x04\x13\n\x0f\n\x07\x04\x01\ - \x04\0\x02\0\x02\x12\x04\x89\x01\x16\x17\n[\n\x06\x04\x01\x04\0\x02\x01\ - \x12\x04\x8c\x01\x04\x0e\x1aK\x20The\x20cluster\x20has\x20been\x20succes\ - sfully\x20created\x20and\x20is\x20ready\x20to\x20serve\x20requests.\n\n\ - \x0f\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x04\x8c\x01\x04\t\n\x0f\n\x07\ - \x04\x01\x04\0\x02\x01\x02\x12\x04\x8c\x01\x0c\r\n\xbf\x01\n\x06\x04\x01\ - \x04\0\x02\x02\x12\x04\x91\x01\x04\x11\x1a\xae\x01\x20The\x20cluster\x20\ - is\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\x0f\n\x07\x04\x01\x04\0\x02\x02\x01\x12\ - \x04\x91\x01\x04\x0c\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x04\x91\ - \x01\x0f\x10\n\xbe\x02\n\x06\x04\x01\x04\0\x02\x03\x12\x04\x98\x01\x04\ - \x11\x1a\xad\x02\x20The\x20cluster\x20is\x20currently\x20being\x20resize\ - d,\x20and\x20may\x20revert\x20to\x20its\x20previous\n\x20node\x20count\ - \x20if\x20the\x20process\x20encounters\x20an\x20error.\n\x20A\x20cluster\ - \x20is\x20still\x20capable\x20of\x20serving\x20requests\x20while\x20bein\ - g\x20resized,\n\x20but\x20may\x20exhibit\x20performance\x20as\x20if\x20i\ - ts\x20number\x20of\x20allocated\x20nodes\x20is\n\x20between\x20the\x20st\ - arting\x20and\x20requested\x20states.\n\n\x0f\n\x07\x04\x01\x04\0\x02\ - \x03\x01\x12\x04\x98\x01\x04\x0c\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x02\ - \x12\x04\x98\x01\x0f\x10\n\x86\x01\n\x06\x04\x01\x04\0\x02\x04\x12\x04\ - \x9c\x01\x04\x11\x1av\x20The\x20cluster\x20has\x20no\x20backing\x20nodes\ - .\x20The\x20data\x20(tables)\x20still\n\x20exist,\x20but\x20no\x20operat\ - ions\x20can\x20be\x20performed\x20on\x20the\x20cluster.\n\n\x0f\n\x07\ - \x04\x01\x04\0\x02\x04\x01\x12\x04\x9c\x01\x04\x0c\n\x0f\n\x07\x04\x01\ - \x04\0\x02\x04\x02\x12\x04\x9c\x01\x0f\x10\n\x8b\x01\n\x04\x04\x01\x02\0\ - \x12\x04\xa1\x01\x02>\x1a}\x20The\x20unique\x20name\x20of\x20the\x20clus\ - ter.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/inst\ - ances/{instance}/clusters/[a-z][-a-z0-9]*`.\n\n\x0f\n\x05\x04\x01\x02\0\ - \x04\x12\x06\xa1\x01\x02\x9d\x01\x03\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\ - \xa1\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xa1\x01\t\r\n\r\n\ - \x05\x04\x01\x02\0\x03\x12\x04\xa1\x01\x10\x11\n\r\n\x05\x04\x01\x02\0\ - \x08\x12\x04\xa1\x01\x12=\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\ - \x04\xa1\x01\x13<\n\xa4\x02\n\x04\x04\x01\x02\x01\x12\x06\xa8\x01\x02\ - \xaa\x01\x05\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/{project}/locations/{zone}`.\n\n\x0f\n\x05\ - \x04\x01\x02\x01\x04\x12\x06\xa8\x01\x02\xa1\x01>\n\r\n\x05\x04\x01\x02\ - \x01\x05\x12\x04\xa8\x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\ - \xa8\x01\t\x11\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xa8\x01\x14\x15\n\ - \x0f\n\x05\x04\x01\x02\x01\x08\x12\x06\xa8\x01\x16\xaa\x01\x04\n\x11\n\ - \x07\x04\x01\x02\x01\x08\x9f\x08\x12\x06\xa8\x01\x17\xaa\x01\x03\n1\n\ - \x04\x04\x01\x02\x02\x12\x04\xad\x01\x02>\x1a#\x20The\x20current\x20stat\ - e\x20of\x20the\x20cluster.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\xad\ - \x01\x02\xaa\x01\x05\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\xad\x01\x02\ - \x07\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xad\x01\x08\r\n\r\n\x05\x04\ - \x01\x02\x02\x03\x12\x04\xad\x01\x10\x11\n\r\n\x05\x04\x01\x02\x02\x08\ - \x12\x04\xad\x01\x12=\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\x12\x04\ - \xad\x01\x13<\n\x8f\x01\n\x04\x04\x01\x02\x03\x12\x04\xb1\x01\x02A\x1a\ - \x80\x01\x20Required.\x20The\x20number\x20of\x20nodes\x20allocated\x20to\ - \x20this\x20cluster.\x20More\x20nodes\x20enable\n\x20higher\x20throughpu\ - t\x20and\x20more\x20consistent\x20performance.\n\n\x0f\n\x05\x04\x01\x02\ - \x03\x04\x12\x06\xb1\x01\x02\xad\x01>\n\r\n\x05\x04\x01\x02\x03\x05\x12\ - \x04\xb1\x01\x02\x07\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xb1\x01\x08\ - \x13\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xb1\x01\x16\x17\n\r\n\x05\x04\ - \x01\x02\x03\x08\x12\x04\xb1\x01\x18@\n\x10\n\x08\x04\x01\x02\x03\x08\ - \x9c\x08\0\x12\x04\xb1\x01\x19?\n\x91\x01\n\x04\x04\x01\x02\x04\x12\x04\ - \xb6\x01\x02'\x1a\x82\x01\x20(`CreationOnly`)\n\x20The\x20type\x20of\x20\ - storage\x20used\x20by\x20this\x20cluster\x20to\x20serve\x20its\n\x20pare\ - nt\x20instance's\x20tables,\x20unless\x20explicitly\x20overridden.\n\n\ - \x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\xb6\x01\x02\xb1\x01A\n\r\n\x05\ - \x04\x01\x02\x04\x06\x12\x04\xb6\x01\x02\r\n\r\n\x05\x04\x01\x02\x04\x01\ - \x12\x04\xb6\x01\x0e\"\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\xb6\x01%&\n\ - V\n\x04\x04\x01\x02\x05\x12\x06\xb9\x01\x02\xba\x010\x1aF\x20Immutable.\ - \x20The\x20encryption\x20configuration\x20for\x20CMEK-protected\x20clust\ - ers.\n\n\x0f\n\x05\x04\x01\x02\x05\x04\x12\x06\xb9\x01\x02\xb6\x01'\n\r\ - \n\x05\x04\x01\x02\x05\x06\x12\x04\xb9\x01\x02\x12\n\r\n\x05\x04\x01\x02\ - \x05\x01\x12\x04\xb9\x01\x13$\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\xb9\ - \x01'(\n\r\n\x05\x04\x01\x02\x05\x08\x12\x04\xba\x01\x06/\n\x10\n\x08\ - \x04\x01\x02\x05\x08\x9c\x08\0\x12\x04\xba\x01\x07.\n\x82\x01\n\x02\x04\ - \x02\x12\x06\xbf\x01\0\xf4\x01\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\x02\x01\x12\x04\xbf\x01\x08\x12\n\r\n\x03\x04\x02\x07\x12\x06\ - \xc0\x01\x02\xc3\x01\x04\n\x0f\n\x05\x04\x02\x07\x9d\x08\x12\x06\xc0\x01\ - \x02\xc3\x01\x04\n\xca\x02\n\x04\x04\x02\x03\0\x12\x04\xca\x01\x02&\x1a\ - \xbb\x02\x20Read/write\x20requests\x20are\x20routed\x20to\x20the\x20near\ - est\x20cluster\x20in\x20the\x20instance,\x20and\n\x20will\x20fail\x20ove\ - r\x20to\x20the\x20nearest\x20cluster\x20that\x20is\x20available\x20in\ - \x20the\x20event\x20of\n\x20transient\x20errors\x20or\x20delays.\x20Clus\ - ters\x20in\x20a\x20region\x20are\x20considered\n\x20equidistant.\x20Choo\ - sing\x20this\x20option\x20sacrifices\x20read-your-writes\x20consistency\ - \n\x20to\x20improve\x20availability.\n\n\r\n\x05\x04\x02\x03\0\x01\x12\ - \x04\xca\x01\n#\n\xb0\x01\n\x04\x04\x02\x03\x01\x12\x06\xcf\x01\x02\xd7\ - \x01\x03\x1a\x9f\x01\x20Unconditionally\x20routes\x20all\x20read/write\ - \x20requests\x20to\x20a\x20specific\x20cluster.\n\x20This\x20option\x20p\ - reserves\x20read-your-writes\x20consistency\x20but\x20does\x20not\x20imp\ - rove\n\x20availability.\n\n\r\n\x05\x04\x02\x03\x01\x01\x12\x04\xcf\x01\ - \n\x1e\nL\n\x06\x04\x02\x03\x01\x02\0\x12\x04\xd1\x01\x04\x1a\x1a<\x20Th\ - e\x20cluster\x20to\x20which\x20read/write\x20requests\x20should\x20be\ - \x20routed.\n\n\x11\n\x07\x04\x02\x03\x01\x02\0\x04\x12\x06\xd1\x01\x04\ - \xcf\x01\x20\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x05\x12\x04\xd1\x01\x04\n\ - \n\x0f\n\x07\x04\x02\x03\x01\x02\0\x01\x12\x04\xd1\x01\x0b\x15\n\x0f\n\ - \x07\x04\x02\x03\x01\x02\0\x03\x12\x04\xd1\x01\x18\x19\n\xd1\x01\n\x06\ - \x04\x02\x03\x01\x02\x01\x12\x04\xd6\x01\x04(\x1a\xc0\x01\x20Whether\x20\ - or\x20not\x20`CheckAndMutateRow`\x20and\x20`ReadModifyWriteRow`\x20reque\ - sts\x20are\n\x20allowed\x20by\x20this\x20app\x20profile.\x20It\x20is\x20\ - unsafe\x20to\x20send\x20these\x20requests\x20to\n\x20the\x20same\x20tabl\ - e/row/column\x20in\x20multiple\x20clusters.\n\n\x11\n\x07\x04\x02\x03\ - \x01\x02\x01\x04\x12\x06\xd6\x01\x04\xd1\x01\x1a\n\x0f\n\x07\x04\x02\x03\ - \x01\x02\x01\x05\x12\x04\xd6\x01\x04\x08\n\x0f\n\x07\x04\x02\x03\x01\x02\ - \x01\x01\x12\x04\xd6\x01\t#\n\x0f\n\x07\x04\x02\x03\x01\x02\x01\x03\x12\ - \x04\xd6\x01&'\n\xaf\x01\n\x04\x04\x02\x02\0\x12\x04\xdc\x01\x02\x12\x1a\ - \xa0\x01\x20(`OutputOnly`)\n\x20The\x20unique\x20name\x20of\x20the\x20ap\ - p\x20profile.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{proj\ - ect}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.\n\n\ - \x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xdc\x01\x02\xd7\x01\x03\n\r\n\x05\ - \x04\x02\x02\0\x05\x12\x04\xdc\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\ - \x12\x04\xdc\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xdc\x01\x10\x11\ - \n\xcd\x03\n\x04\x04\x02\x02\x01\x12\x04\xe6\x01\x02\x12\x1a\xbe\x03\x20\ - Strongly\x20validated\x20etag\x20for\x20optimistic\x20concurrency\x20con\ - trol.\x20Preserve\x20the\n\x20value\x20returned\x20from\x20`GetAppProfil\ - e`\x20when\x20calling\x20`UpdateAppProfile`\x20to\n\x20fail\x20the\x20re\ - quest\x20if\x20there\x20has\x20been\x20a\x20modification\x20in\x20the\ - \x20mean\x20time.\x20The\n\x20`update_mask`\x20of\x20the\x20request\x20n\ - eed\x20not\x20include\x20`etag`\x20for\x20this\x20protection\n\x20to\x20\ - apply.\n\x20See\x20[Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag)\ - \x20and\n\x20[RFC\x207232](https://tools.ietf.org/html/rfc7232#section-2\ - .3)\x20for\x20more\n\x20details.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\ - \x06\xe6\x01\x02\xdc\x01\x12\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xe6\ - \x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xe6\x01\t\r\n\r\n\x05\ - \x04\x02\x02\x01\x03\x12\x04\xe6\x01\x10\x11\nS\n\x04\x04\x02\x02\x02\ - \x12\x04\xe9\x01\x02\x19\x1aE\x20Optional\x20long\x20form\x20description\ - \x20of\x20the\x20use\x20case\x20for\x20this\x20AppProfile.\n\n\x0f\n\x05\ - \x04\x02\x02\x02\x04\x12\x06\xe9\x01\x02\xe6\x01\x12\n\r\n\x05\x04\x02\ - \x02\x02\x05\x12\x04\xe9\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\ - \x04\xe9\x01\t\x14\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xe9\x01\x17\x18\ - \n|\n\x04\x04\x02\x08\0\x12\x06\xed\x01\x02\xf3\x01\x03\x1al\x20The\x20r\ - outing\x20policy\x20for\x20all\x20read/write\x20requests\x20that\x20use\ - \x20this\x20app\x20profile.\n\x20A\x20value\x20must\x20be\x20explicitly\ - \x20set.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\xed\x01\x08\x16\n3\n\x04\ - \x04\x02\x02\x03\x12\x04\xef\x01\x04@\x1a%\x20Use\x20a\x20multi-cluster\ - \x20routing\x20policy.\n\n\r\n\x05\x04\x02\x02\x03\x06\x12\x04\xef\x01\ - \x04\x1d\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xef\x01\x1e;\n\r\n\x05\ - \x04\x02\x02\x03\x03\x12\x04\xef\x01>?\n4\n\x04\x04\x02\x02\x04\x12\x04\ - \xf2\x01\x044\x1a&\x20Use\x20a\x20single-cluster\x20routing\x20policy.\n\ - \n\r\n\x05\x04\x02\x02\x04\x06\x12\x04\xf2\x01\x04\x18\n\r\n\x05\x04\x02\ - \x02\x04\x01\x12\x04\xf2\x01\x19/\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\ - \xf2\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/table.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/table.rs deleted file mode 100644 index ab1781c731..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/table.rs +++ /dev/null @@ -1,4158 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/admin/v2/table.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct RestoreInfo { - // message fields - pub source_type: RestoreSourceType, - // message oneof groups - pub source_info: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RestoreInfo { - fn default() -> &'a RestoreInfo { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreInfo_oneof_source_info { - backup_info(BackupInfo), -} - -impl RestoreInfo { - pub fn new() -> RestoreInfo { - ::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() - } - } -} - -impl ::protobuf::Message for RestoreInfo { - 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)); - } - self.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_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; - if self.source_type != RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.source_type); - } - 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; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_type != RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.source_type))?; - } - 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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RestoreInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreInfo::new) - } -} - -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 ::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 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, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Table { - fn default() -> &'a Table { -
::default_instance() - } -} - -impl Table { - pub fn new() -> Table { - ::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.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()) - } -} - -impl ::protobuf::Message for Table { - fn is_initialized(&self) -> bool { - for v in &self.restore_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.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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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 - } - - 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 - } - } - - 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 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()) - } - - // .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()) - } - - // .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()) - } - - // 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; - } - - // .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; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Backup_State) { - self.state = v; - } - - // .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 has_encryption_info(&self) -> bool { - self.encryption_info.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_info(&mut self, v: 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 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) -> 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; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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.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 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 - } - - 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 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(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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>( - "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_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 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.name.clear(); - self.source_table.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 ::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 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, - // 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 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()) - } - - // string source_table = 4; - - - 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()) - } -} - -impl ::protobuf::Message for BackupInfo { - 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)?; - }, - 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_proto3_string_into(wire_type, is, &mut self.source_table)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.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.source_table.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.source_table); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.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.source_table.is_empty() { - os.write_string(4, &self.source_table)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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>>( - "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 }, - )); - ::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.start_time.clear(); - self.end_time.clear(); - self.source_table.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(Clone,PartialEq,Eq,Debug,Hash)] -pub enum RestoreSourceType { - RESTORE_SOURCE_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::RESTORE_SOURCE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(RestoreSourceType::BACKUP), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [RestoreSourceType] = &[ - RestoreSourceType::RESTORE_SOURCE_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::RESTORE_SOURCE_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for RestoreSourceType { - 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/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\"\ - \xd1\t\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\rclusterStates\x12\\\n\x0fcolumn_families\x18\x03\ - \x20\x03(\x0b23.google.bigtable.admin.v2.Table.ColumnFamiliesEntryR\x0ec\ - olumnFamilies\x12V\n\x0bgranularity\x18\x04\x20\x01(\x0e24.google.bigtab\ - le.admin.v2.Table.TimestampGranularityR\x0bgranularity\x12H\n\x0crestore\ - _info\x18\x06\x20\x01(\x0b2%.google.bigtable.admin.v2.RestoreInfoR\x0bre\ - storeInfo\x1a\xe3\x02\n\x0cClusterState\x12j\n\x11replication_state\x18\ - \x01\x20\x01(\x0e2=.google.bigtable.admin.v2.Table.ClusterState.Replicat\ - ionStateR\x10replicationState\x12V\n\x0fencryption_info\x18\x02\x20\x03(\ - \x0b2(.google.bigtable.admin.v2.EncryptionInfoR\x0eencryptionInfoB\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_MAINTENANC\ - E\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\ - \x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1an\n\x12ClusterStatesEn\ - try\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\x03key\x12<\n\x05value\x18\x02\x20\x01(\x0b2&.google.bigtable.admin\ - .v2.ColumnFamilyR\x05value:\x028\x01\"I\n\x14TimestampGranularity\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:Z\xeaAW\ - \n\x1dbigtable.googleapis.com/Table\x126projects/{project}/instances/{in\ - stance}/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\x0emaxN\ - umVersions\x124\n\x07max_age\x18\x02\x20\x01(\x0b2\x19.google.protobuf.D\ - urationH\0R\x06maxAge\x12S\n\x0cintersection\x18\x03\x20\x01(\x0b2-.goog\ - le.bigtable.admin.v2.GcRule.IntersectionH\0R\x0cintersection\x12>\n\x05u\ - nion\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.GcRuleR\x05\ - rulesB\x06\n\x04rule\"\x8a\x03\n\x0eEncryptionInfo\x12e\n\x0fencryption_\ - type\x18\x03\x20\x01(\x0e27.google.bigtable.admin.v2.EncryptionInfo.Encr\ - yptionTypeR\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\rkmsKeyVersionB0\ - \xfaA*\n(cloudkms.googleapis.com/CryptoKeyVersion\xe0A\x03\"q\n\x0eEncry\ - ptionType\x12\x1f\n\x1bENCRYPTION_TYPE_UNSPECIFIED\x10\0\x12\x1d\n\x19GO\ - OGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1bCUSTOMER_MANAGED_ENCRYPTION\ - \x10\x02\"\x95\x04\n\x08Snapshot\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ - \x04name\x12B\n\x0csource_table\x18\x02\x20\x01(\x0b2\x1f.google.bigtabl\ - e.admin.v2.TableR\x0bsourceTable\x12&\n\x0fdata_size_bytes\x18\x03\x20\ - \x01(\x03R\rdataSizeBytes\x12;\n\x0bcreate_time\x18\x04\x20\x01(\x0b2\ - \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\x02:v\xeaAs\n\x20bigtable.googleapis.com/Snap\ - shot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snap\ - shots/{snapshot}\"\xf4\x04\n\x06Backup\x12\x17\n\x04name\x18\x01\x20\x01\ - (\tR\x04nameB\x03\xe0A\x03\x12)\n\x0csource_table\x18\x02\x20\x01(\tR\ - \x0bsourceTableB\x06\xe0A\x05\xe0A\x02\x12@\n\x0bexpire_time\x18\x03\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\nexpireTimeB\x03\xe0A\x02\x12>\ - \n\nstart_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tsta\ - rtTimeB\x03\xe0A\x03\x12:\n\x08end_time\x18\x05\x20\x01(\x0b2\x1a.google\ - .protobuf.TimestampR\x07endTimeB\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.v2.Backup.StateR\x05stateB\x03\xe0A\ - \x03\x12V\n\x0fencryption_info\x18\t\x20\x01(\x0b2(.google.bigtable.admi\ - n.v2.EncryptionInfoR\x0eencryptionInfoB\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:p\xeaAm\n\x1ebigtable.googleapis.com/Backup\x12Kprojec\ - ts/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\ - \xcd\x01\n\nBackupInfo\x12\x1b\n\x06backup\x18\x01\x20\x01(\tR\x06backup\ - B\x03\xe0A\x03\x12>\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.proto\ - buf.TimestampR\tstartTimeB\x03\xe0A\x03\x12:\n\x08end_time\x18\x03\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTimeB\x03\xe0A\x03\x12&\ - \n\x0csource_table\x18\x04\x20\x01(\tR\x0bsourceTableB\x03\xe0A\x03*D\n\ - \x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\0\ - \x12\n\n\x06BACKUP\x10\x01B\xfc\x02\n\x1ccom.google.bigtable.admin.v2B\n\ - TableProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2\ - ;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Clou\ - d\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xeaA\ - \xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{projec\ - t}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryp\ - toKeyVersions/{crypto_key_version}J\xa9{\n\x07\x12\x05\x0e\0\x94\x03\x01\ - \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\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\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\n7\n\x02\x05\0\x12\x04%\0+\x01\x1a+\x20In\ - dicates\x20the\x20type\x20of\x20the\x20restore\x20source.\n\n\n\n\x03\ - \x05\0\x01\x12\x03%\x05\x16\n%\n\x04\x05\0\x02\0\x12\x03'\x02&\x1a\x18\ - \x20No\x20restore\x20associated.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03'\ - \x02!\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03'$%\n>\n\x04\x05\0\x02\x01\x12\ - \x03*\x02\r\x1a1\x20A\x20backup\x20was\x20used\x20as\x20the\x20source\ - \x20of\x20the\x20restore.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03*\x02\ - \x08\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03*\x0b\x0c\n0\n\x02\x04\0\x12\ - \x04.\08\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\x030\x02$\ - \x1a!\x20The\x20type\x20of\x20the\x20restore\x20source.\n\n\r\n\x05\x04\ - \0\x02\0\x04\x12\x040\x02.\x15\n\x0c\n\x05\x04\0\x02\0\x06\x12\x030\x02\ - \x13\n\x0c\n\x05\x04\0\x02\0\x01\x12\x030\x14\x1f\n\x0c\n\x05\x04\0\x02\ - \0\x03\x12\x030\"#\nG\n\x04\x04\0\x08\0\x12\x043\x027\x03\x1a9\x20Inform\ - ation\x20about\x20the\x20source\x20used\x20to\x20restore\x20the\x20table\ - .\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x033\x08\x13\ng\n\x04\x04\0\x02\x01\ - \x12\x036\x04\x1f\x1aZ\x20Information\x20about\x20the\x20backup\x20used\ - \x20to\x20restore\x20the\x20table.\x20The\x20backup\n\x20may\x20no\x20lo\ - nger\x20exist.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x036\x04\x0e\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x036\x0f\x1a\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x036\x1d\x1e\n\x91\x01\n\x02\x04\x01\x12\x05<\0\xa9\x01\x01\x1a\x83\ - \x01\x20A\x20collection\x20of\x20user\x20data\x20indexed\x20by\x20row,\ - \x20column,\x20and\x20timestamp.\n\x20Each\x20table\x20is\x20served\x20u\ - sing\x20the\x20resources\x20of\x20its\x20parent\x20cluster.\n\n\n\n\x03\ - \x04\x01\x01\x12\x03<\x08\r\n\x0b\n\x03\x04\x01\x07\x12\x04=\x02@\x04\n\ - \r\n\x05\x04\x01\x07\x9d\x08\x12\x04=\x02@\x04\nD\n\x04\x04\x01\x03\0\ - \x12\x04C\x02k\x03\x1a6\x20The\x20state\x20of\x20a\x20table's\x20data\ - \x20in\x20a\x20particular\x20cluster.\n\n\x0c\n\x05\x04\x01\x03\0\x01\ - \x12\x03C\n\x16\n+\n\x06\x04\x01\x03\0\x04\0\x12\x04E\x04_\x05\x1a\x1b\ - \x20Table\x20replication\x20states.\n\n\x0e\n\x07\x04\x01\x03\0\x04\0\ - \x01\x12\x03E\t\x19\nQ\n\x08\x04\x01\x03\0\x04\0\x02\0\x12\x03G\x06\x1a\ - \x1a@\x20The\x20replication\x20state\x20of\x20the\x20table\x20is\x20unkn\ - own\x20in\x20this\x20cluster.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\0\x01\ - \x12\x03G\x06\x15\n\x10\n\t\x04\x01\x03\0\x04\0\x02\0\x02\x12\x03G\x18\ - \x19\n\xda\x01\n\x08\x04\x01\x03\0\x04\0\x02\x01\x12\x03L\x06\x17\x1a\ - \xc8\x01\x20The\x20cluster\x20was\x20recently\x20created,\x20and\x20the\ - \x20table\x20must\x20finish\x20copying\n\x20over\x20pre-existing\x20data\ - \x20from\x20other\x20clusters\x20before\x20it\x20can\x20begin\n\x20recei\ - ving\x20live\x20replication\x20updates\x20and\x20serving\x20Data\x20API\ - \x20requests.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x01\x01\x12\x03L\x06\ - \x12\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x01\x02\x12\x03L\x15\x16\n\x85\ - \x01\n\x08\x04\x01\x03\0\x04\0\x02\x02\x12\x03P\x06\x1e\x1at\x20The\x20t\ - able\x20is\x20temporarily\x20unable\x20to\x20serve\x20Data\x20API\x20req\ - uests\x20from\x20this\n\x20cluster\x20due\x20to\x20planned\x20internal\ - \x20maintenance.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x02\x01\x12\x03P\ - \x06\x19\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x02\x02\x12\x03P\x1c\x1d\n\ - \x8b\x01\n\x08\x04\x01\x03\0\x04\0\x02\x03\x12\x03T\x06\x20\x1az\x20The\ - \x20table\x20is\x20temporarily\x20unable\x20to\x20serve\x20Data\x20API\ - \x20requests\x20from\x20this\n\x20cluster\x20due\x20to\x20unplanned\x20o\ - r\x20emergency\x20maintenance.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x03\ - \x01\x12\x03T\x06\x1b\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x03\x02\x12\x03T\ - \x1e\x1f\n\xba\x01\n\x08\x04\x01\x03\0\x04\0\x02\x04\x12\x03Y\x06\x10\ - \x1a\xa8\x01\x20The\x20table\x20can\x20serve\x20Data\x20API\x20requests\ - \x20from\x20this\x20cluster.\x20Depending\x20on\n\x20replication\x20dela\ - y,\x20reads\x20may\x20not\x20immediately\x20reflect\x20the\x20state\x20o\ - f\x20the\n\x20table\x20in\x20other\x20clusters.\n\n\x10\n\t\x04\x01\x03\ - \0\x04\0\x02\x04\x01\x12\x03Y\x06\x0b\n\x10\n\t\x04\x01\x03\0\x04\0\x02\ - \x04\x02\x12\x03Y\x0e\x0f\n\xc8\x01\n\x08\x04\x01\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,\x20the\n\x20table\x20will\x20transition\x20to\x20`R\ - EADY`\x20state.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x05\x01\x12\x03^\x06\ - \x16\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x05\x02\x12\x03^\x19\x1a\nU\n\x06\ - \x04\x01\x03\0\x02\0\x12\x03b\x04+\x1aF\x20Output\x20only.\x20The\x20sta\ - te\x20of\x20replication\x20for\x20the\x20table\x20in\x20this\x20cluster.\ - \n\n\x0f\n\x07\x04\x01\x03\0\x02\0\x04\x12\x04b\x04_\x05\n\x0e\n\x07\x04\ - \x01\x03\0\x02\0\x06\x12\x03b\x04\x14\n\x0e\n\x07\x04\x01\x03\0\x02\0\ - \x01\x12\x03b\x15&\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\x12\x03b)*\n\xda\ - \x02\n\x06\x04\x01\x03\0\x02\x01\x12\x04i\x04j4\x1a\xc9\x02\x20Output\ - \x20only.\x20The\x20encryption\x20information\x20for\x20the\x20table\x20\ - in\x20this\x20cluster.\n\x20If\x20the\x20encryption\x20key\x20protecting\ - \x20this\x20resource\x20is\x20customer\x20managed,\x20then\n\x20its\x20v\ - ersion\x20can\x20be\x20rotated\x20in\x20Cloud\x20Key\x20Management\x20Se\ - rvice\x20(Cloud\x20KMS).\n\x20The\x20primary\x20version\x20of\x20the\x20\ - key\x20and\x20its\x20status\x20will\x20be\x20reflected\x20here\x20when\n\ - \x20changes\x20propagate\x20from\x20Cloud\x20KMS.\n\n\x0e\n\x07\x04\x01\ - \x03\0\x02\x01\x04\x12\x03i\x04\x0c\n\x0e\n\x07\x04\x01\x03\0\x02\x01\ - \x06\x12\x03i\r\x1b\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\x03i\x1c+\ - \n\x0e\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x03i./\n\x0e\n\x07\x04\x01\ - \x03\0\x02\x01\x08\x12\x03j\x083\n\x11\n\n\x04\x01\x03\0\x02\x01\x08\x9c\ - \x08\0\x12\x03j\t2\nk\n\x04\x04\x01\x04\0\x12\x04o\x02v\x03\x1a]\x20Poss\ - ible\x20timestamp\x20granularities\x20to\x20use\x20when\x20keeping\x20mu\ - ltiple\x20versions\n\x20of\x20data\x20in\x20a\x20table.\n\n\x0c\n\x05\ - \x04\x01\x04\0\x01\x12\x03o\x07\x1b\n\x8c\x01\n\x06\x04\x01\x04\0\x02\0\ - \x12\x03r\x04*\x1a}\x20The\x20user\x20did\x20not\x20specify\x20a\x20gran\ - ularity.\x20Should\x20not\x20be\x20returned.\n\x20When\x20specified\x20d\ - uring\x20table\x20creation,\x20MILLIS\x20will\x20be\x20used.\n\n\x0e\n\ - \x07\x04\x01\x04\0\x02\0\x01\x12\x03r\x04%\n\x0e\n\x07\x04\x01\x04\0\x02\ - \0\x02\x12\x03r()\nH\n\x06\x04\x01\x04\0\x02\x01\x12\x03u\x04\x0f\x1a9\ - \x20The\x20table\x20keeps\x20data\x20versioned\x20at\x20a\x20granularity\ - \x20of\x201ms.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03u\x04\n\n\ - \x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03u\r\x0e\n6\n\x04\x04\x01\x04\ - \x01\x12\x05y\x02\x8c\x01\x03\x1a'\x20Defines\x20a\x20view\x20over\x20a\ - \x20table's\x20fields.\n\n\x0c\n\x05\x04\x01\x04\x01\x01\x12\x03y\x07\ - \x0b\nT\n\x06\x04\x01\x04\x01\x02\0\x12\x03{\x04\x19\x1aE\x20Uses\x20the\ - \x20default\x20view\x20for\x20each\x20method\x20as\x20documented\x20in\ - \x20its\x20request.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\0\x01\x12\x03{\x04\ - \x14\n\x0e\n\x07\x04\x01\x04\x01\x02\0\x02\x12\x03{\x17\x18\n'\n\x06\x04\ - \x01\x04\x01\x02\x01\x12\x03~\x04\x12\x1a\x18\x20Only\x20populates\x20`n\ - ame`.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\x01\x01\x12\x03~\x04\r\n\x0e\n\ - \x07\x04\x01\x04\x01\x02\x01\x02\x12\x03~\x10\x11\nQ\n\x06\x04\x01\x04\ - \x01\x02\x02\x12\x04\x81\x01\x04\x14\x1aA\x20Only\x20populates\x20`name`\ - \x20and\x20fields\x20related\x20to\x20the\x20table's\x20schema.\n\n\x0f\ - \n\x07\x04\x01\x04\x01\x02\x02\x01\x12\x04\x81\x01\x04\x0f\n\x0f\n\x07\ - \x04\x01\x04\x01\x02\x02\x02\x12\x04\x81\x01\x12\x13\n]\n\x06\x04\x01\ - \x04\x01\x02\x03\x12\x04\x85\x01\x04\x19\x1aM\x20Only\x20populates\x20`n\ - ame`\x20and\x20fields\x20related\x20to\x20the\x20table's\x20replication\ - \n\x20state.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\x03\x01\x12\x04\x85\x01\ - \x04\x14\n\x0f\n\x07\x04\x01\x04\x01\x02\x03\x02\x12\x04\x85\x01\x17\x18\ - \n[\n\x06\x04\x01\x04\x01\x02\x04\x12\x04\x88\x01\x04\x18\x1aK\x20Only\ - \x20populates\x20'name'\x20and\x20fields\x20related\x20to\x20the\x20tabl\ - e's\x20encryption\x20state.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\x04\x01\ - \x12\x04\x88\x01\x04\x13\n\x0f\n\x07\x04\x01\x04\x01\x02\x04\x02\x12\x04\ - \x88\x01\x16\x17\n'\n\x06\x04\x01\x04\x01\x02\x05\x12\x04\x8b\x01\x04\r\ - \x1a\x17\x20Populates\x20all\x20fields.\n\n\x0f\n\x07\x04\x01\x04\x01\ - \x02\x05\x01\x12\x04\x8b\x01\x04\x08\n\x0f\n\x07\x04\x01\x04\x01\x02\x05\ - \x02\x12\x04\x8b\x01\x0b\x0c\n\xd3\x01\n\x04\x04\x01\x02\0\x12\x04\x91\ - \x01\x02\x12\x1a\xc4\x01\x20The\x20unique\x20name\x20of\x20the\x20table.\ - \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ - s/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.\n\x20Views:\x20`NAME_O\ - NLY`,\x20`SCHEMA_VIEW`,\x20`REPLICATION_VIEW`,\x20`FULL`\n\n\x0f\n\x05\ - \x04\x01\x02\0\x04\x12\x06\x91\x01\x02\x8c\x01\x03\n\r\n\x05\x04\x01\x02\ - \0\x05\x12\x04\x91\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x91\ - \x01\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x91\x01\x10\x11\n\xd8\x02\n\ - \x04\x04\x01\x02\x01\x12\x04\x98\x01\x02/\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\x0f\n\x05\x04\x01\x02\x01\x04\x12\ - \x06\x98\x01\x02\x91\x01\x12\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\x98\ - \x01\x02\x1b\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x98\x01\x1c*\n\r\n\ - \x05\x04\x01\x02\x01\x03\x12\x04\x98\x01-.\n\x8a\x01\n\x04\x04\x01\x02\ - \x02\x12\x04\x9d\x01\x020\x1a|\x20(`CreationOnly`)\n\x20The\x20column\ - \x20families\x20configured\x20for\x20this\x20table,\x20mapped\x20by\x20c\ - olumn\x20family\x20ID.\n\x20Views:\x20`SCHEMA_VIEW`,\x20`FULL`\n\n\x0f\n\ - \x05\x04\x01\x02\x02\x04\x12\x06\x9d\x01\x02\x98\x01/\n\r\n\x05\x04\x01\ - \x02\x02\x06\x12\x04\x9d\x01\x02\x1b\n\r\n\x05\x04\x01\x02\x02\x01\x12\ - \x04\x9d\x01\x1c+\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x9d\x01./\n\x8f\ - \x02\n\x04\x04\x01\x02\x03\x12\x04\xa4\x01\x02'\x1a\x80\x02\x20(`Creatio\ - nOnly`)\n\x20The\x20granularity\x20(i.e.\x20`MILLIS`)\x20at\x20which\x20\ - timestamps\x20are\x20stored\x20in\n\x20this\x20table.\x20Timestamps\x20n\ - ot\x20matching\x20the\x20granularity\x20will\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\ - \x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\xa4\x01\x02\x9d\x010\n\r\n\x05\ - \x04\x01\x02\x03\x06\x12\x04\xa4\x01\x02\x16\n\r\n\x05\x04\x01\x02\x03\ - \x01\x12\x04\xa4\x01\x17\"\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xa4\x01\ - %&\n\xa4\x01\n\x04\x04\x01\x02\x04\x12\x04\xa8\x01\x02\x1f\x1a\x95\x01\ - \x20Output\x20only.\x20If\x20this\x20table\x20was\x20restored\x20from\ - \x20another\x20data\x20source\x20(e.g.\x20a\n\x20backup),\x20this\x20fie\ - ld\x20will\x20be\x20populated\x20with\x20information\x20about\x20the\x20\ - restore.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\xa8\x01\x02\xa4\x01'\ - \n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\xa8\x01\x02\r\n\r\n\x05\x04\x01\ - \x02\x04\x01\x12\x04\xa8\x01\x0e\x1a\n\r\n\x05\x04\x01\x02\x04\x03\x12\ - \x04\xa8\x01\x1d\x1e\nS\n\x02\x04\x02\x12\x06\xac\x01\0\xb4\x01\x01\x1aE\ - \x20A\x20set\x20of\x20columns\x20within\x20a\x20table\x20which\x20share\ - \x20a\x20common\x20configuration.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xac\ - \x01\x08\x14\n\x9e\x02\n\x04\x04\x02\x02\0\x12\x04\xb3\x01\x02\x15\x1a\ - \x8f\x02\x20Garbage\x20collection\x20rule\x20specified\x20as\x20a\x20pro\ - tobuf.\n\x20Must\x20serialize\x20to\x20at\x20most\x20500\x20bytes.\n\n\ - \x20NOTE:\x20Garbage\x20collection\x20executes\x20opportunistically\x20i\ - n\x20the\x20background,\x20and\n\x20so\x20it's\x20possible\x20for\x20rea\ - ds\x20to\x20return\x20a\x20cell\x20even\x20if\x20it\x20matches\x20the\ - \x20active\n\x20GC\x20expression\x20for\x20its\x20family.\n\n\x0f\n\x05\ - \x04\x02\x02\0\x04\x12\x06\xb3\x01\x02\xac\x01\x16\n\r\n\x05\x04\x02\x02\ - \0\x06\x12\x04\xb3\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xb3\ - \x01\t\x10\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xb3\x01\x13\x14\nU\n\x02\ - \x04\x03\x12\x06\xb7\x01\0\xd4\x01\x01\x1aG\x20Rule\x20for\x20determinin\ - g\x20which\x20cells\x20to\x20delete\x20during\x20garbage\x20collection.\ - \n\n\x0b\n\x03\x04\x03\x01\x12\x04\xb7\x01\x08\x0e\nO\n\x04\x04\x03\x03\ - \0\x12\x06\xb9\x01\x02\xbc\x01\x03\x1a?\x20A\x20GcRule\x20which\x20delet\ - es\x20cells\x20matching\x20all\x20of\x20the\x20given\x20rules.\n\n\r\n\ - \x05\x04\x03\x03\0\x01\x12\x04\xb9\x01\n\x16\nW\n\x06\x04\x03\x03\0\x02\ - \0\x12\x04\xbb\x01\x04\x1e\x1aG\x20Only\x20delete\x20cells\x20which\x20w\ - ould\x20be\x20deleted\x20by\x20every\x20element\x20of\x20`rules`.\n\n\ - \x0f\n\x07\x04\x03\x03\0\x02\0\x04\x12\x04\xbb\x01\x04\x0c\n\x0f\n\x07\ - \x04\x03\x03\0\x02\0\x06\x12\x04\xbb\x01\r\x13\n\x0f\n\x07\x04\x03\x03\0\ - \x02\0\x01\x12\x04\xbb\x01\x14\x19\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\ - \x12\x04\xbb\x01\x1c\x1d\nO\n\x04\x04\x03\x03\x01\x12\x06\xbf\x01\x02\ - \xc2\x01\x03\x1a?\x20A\x20GcRule\x20which\x20deletes\x20cells\x20matchin\ - g\x20any\x20of\x20the\x20given\x20rules.\n\n\r\n\x05\x04\x03\x03\x01\x01\ - \x12\x04\xbf\x01\n\x0f\nP\n\x06\x04\x03\x03\x01\x02\0\x12\x04\xc1\x01\ - \x04\x1e\x1a@\x20Delete\x20cells\x20which\x20would\x20be\x20deleted\x20b\ - y\x20any\x20element\x20of\x20`rules`.\n\n\x0f\n\x07\x04\x03\x03\x01\x02\ - \0\x04\x12\x04\xc1\x01\x04\x0c\n\x0f\n\x07\x04\x03\x03\x01\x02\0\x06\x12\ - \x04\xc1\x01\r\x13\n\x0f\n\x07\x04\x03\x03\x01\x02\0\x01\x12\x04\xc1\x01\ - \x14\x19\n\x0f\n\x07\x04\x03\x03\x01\x02\0\x03\x12\x04\xc1\x01\x1c\x1d\n\ - +\n\x04\x04\x03\x08\0\x12\x06\xc5\x01\x02\xd3\x01\x03\x1a\x1b\x20Garbage\ - \x20collection\x20rules.\n\n\r\n\x05\x04\x03\x08\0\x01\x12\x04\xc5\x01\ - \x08\x0c\nF\n\x04\x04\x03\x02\0\x12\x04\xc7\x01\x04\x1f\x1a8\x20Delete\ - \x20all\x20cells\x20in\x20a\x20column\x20except\x20the\x20most\x20recent\ - \x20N.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xc7\x01\x04\t\n\r\n\x05\x04\ - \x03\x02\0\x01\x12\x04\xc7\x01\n\x1a\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\ - \xc7\x01\x1d\x1e\n\xa0\x01\n\x04\x04\x03\x02\x01\x12\x04\xcc\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\x03\x02\x01\x06\x12\x04\xcc\x01\x04\ - \x1c\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xcc\x01\x1d$\n\r\n\x05\x04\ - \x03\x02\x01\x03\x12\x04\xcc\x01'(\nH\n\x04\x04\x03\x02\x02\x12\x04\xcf\ - \x01\x04\"\x1a:\x20Delete\x20cells\x20that\x20would\x20be\x20deleted\x20\ - by\x20every\x20nested\x20rule.\n\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\ - \xcf\x01\x04\x10\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xcf\x01\x11\x1d\n\ - \r\n\x05\x04\x03\x02\x02\x03\x12\x04\xcf\x01\x20!\nF\n\x04\x04\x03\x02\ - \x03\x12\x04\xd2\x01\x04\x14\x1a8\x20Delete\x20cells\x20that\x20would\ - \x20be\x20deleted\x20by\x20any\x20nested\x20rule.\n\n\r\n\x05\x04\x03\ - \x02\x03\x06\x12\x04\xd2\x01\x04\t\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\ - \xd2\x01\n\x0f\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xd2\x01\x12\x13\n\ - \xe4\x01\n\x02\x04\x04\x12\x06\xda\x01\0\x81\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\x04\x01\x12\x04\xda\x01\x08\x16\n;\n\x04\ - \x04\x04\x04\0\x12\x06\xdc\x01\x02\xed\x01\x03\x1a+\x20Possible\x20encry\ - ption\x20types\x20for\x20a\x20resource.\n\n\r\n\x05\x04\x04\x04\0\x01\ - \x12\x04\xdc\x01\x07\x15\n[\n\x06\x04\x04\x04\0\x02\0\x12\x04\xde\x01\ - \x04$\x1aK\x20Encryption\x20type\x20was\x20not\x20specified,\x20though\ - \x20data\x20at\x20rest\x20remains\x20encrypted.\n\n\x0f\n\x07\x04\x04\ - \x04\0\x02\0\x01\x12\x04\xde\x01\x04\x1f\n\x0f\n\x07\x04\x04\x04\0\x02\0\ - \x02\x12\x04\xde\x01\"#\n\xbb\x01\n\x06\x04\x04\x04\0\x02\x01\x12\x04\ - \xe3\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\x04\x04\0\x02\x01\x01\x12\x04\xe3\x01\x04\x1d\n\ - \x0f\n\x07\x04\x04\x04\0\x02\x01\x02\x12\x04\xe3\x01\x20!\n\x8f\x03\n\ - \x06\x04\x04\x04\0\x02\x02\x12\x04\xec\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\x04\x04\0\x02\x02\x01\x12\x04\xec\x01\x04\x1f\n\x0f\ - \n\x07\x04\x04\x04\0\x02\x02\x02\x12\x04\xec\x01\"#\nT\n\x04\x04\x04\x02\ - \0\x12\x06\xf0\x01\x02\xf1\x012\x1aD\x20Output\x20only.\x20The\x20type\ - \x20of\x20encryption\x20used\x20to\x20protect\x20this\x20resource.\n\n\ - \x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xf0\x01\x02\xed\x01\x03\n\r\n\x05\ - \x04\x04\x02\0\x06\x12\x04\xf0\x01\x02\x10\n\r\n\x05\x04\x04\x02\0\x01\ - \x12\x04\xf0\x01\x11\x20\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xf0\x01#$\n\ - \r\n\x05\x04\x04\x02\0\x08\x12\x04\xf1\x01\x061\n\x10\n\x08\x04\x04\x02\ - \0\x08\x9c\x08\0\x12\x04\xf1\x01\x070\n\xb0\x01\n\x04\x04\x04\x02\x01\ - \x12\x06\xf6\x01\x02\xf7\x012\x1a\x9f\x01\x20Output\x20only.\x20The\x20s\ - tatus\x20of\x20encrypt/decrypt\x20calls\x20on\x20underlying\x20data\x20f\ - or\n\x20this\x20resource.\x20Regardless\x20of\x20status,\x20the\x20exist\ - ing\x20data\x20is\x20always\x20encrypted\n\x20at\x20rest.\n\n\x0f\n\x05\ - \x04\x04\x02\x01\x04\x12\x06\xf6\x01\x02\xf1\x012\n\r\n\x05\x04\x04\x02\ - \x01\x06\x12\x04\xf6\x01\x02\x13\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\ - \xf6\x01\x14%\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xf6\x01()\n\r\n\x05\ - \x04\x04\x02\x01\x08\x12\x04\xf7\x01\x061\n\x10\n\x08\x04\x04\x02\x01\ - \x08\x9c\x08\0\x12\x04\xf7\x01\x070\n\x94\x01\n\x04\x04\x04\x02\x02\x12\ - \x06\xfb\x01\x02\x80\x02\x04\x1a\x83\x01\x20Output\x20only.\x20The\x20ve\ - rsion\x20of\x20the\x20Cloud\x20KMS\x20key\x20specified\x20in\x20the\x20p\ - arent\n\x20cluster\x20that\x20is\x20in\x20use\x20for\x20the\x20data\x20u\ - nderlying\x20this\x20table.\n\n\x0f\n\x05\x04\x04\x02\x02\x04\x12\x06\ - \xfb\x01\x02\xf7\x012\n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\xfb\x01\x02\ - \x08\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\xfb\x01\t\x18\n\r\n\x05\x04\ - \x04\x02\x02\x03\x12\x04\xfb\x01\x1b\x1c\n\x0f\n\x05\x04\x04\x02\x02\x08\ - \x12\x06\xfb\x01\x1d\x80\x02\x03\n\x10\n\x08\x04\x04\x02\x02\x08\x9c\x08\ - \0\x12\x04\xfc\x01\x04-\n\x11\n\x07\x04\x04\x02\x02\x08\x9f\x08\x12\x06\ - \xfd\x01\x04\xff\x01\x05\n\xc8\x03\n\x02\x04\x05\x12\x06\x8a\x02\0\xb9\ - \x02\x01\x1a\xb9\x03\x20A\x20snapshot\x20of\x20a\x20table\x20at\x20a\x20\ - particular\x20time.\x20A\x20snapshot\x20can\x20be\x20used\x20as\x20a\n\ - \x20checkpoint\x20for\x20data\x20restoration\x20or\x20a\x20data\x20sourc\ - e\x20for\x20a\x20new\x20table.\n\n\x20Note:\x20This\x20is\x20a\x20privat\ - e\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\x05\x01\ - \x12\x04\x8a\x02\x08\x10\n\r\n\x03\x04\x05\x07\x12\x06\x8b\x02\x02\x8e\ - \x02\x04\n\x0f\n\x05\x04\x05\x07\x9d\x08\x12\x06\x8b\x02\x02\x8e\x02\x04\ - \n0\n\x04\x04\x05\x04\0\x12\x06\x91\x02\x02\x9c\x02\x03\x1a\x20\x20Possi\ - ble\x20states\x20of\x20a\x20snapshot.\n\n\r\n\x05\x04\x05\x04\0\x01\x12\ - \x04\x91\x02\x07\x0c\nD\n\x06\x04\x05\x04\0\x02\0\x12\x04\x93\x02\x04\ - \x18\x1a4\x20The\x20state\x20of\x20the\x20snapshot\x20could\x20not\x20be\ - \x20determined.\n\n\x0f\n\x07\x04\x05\x04\0\x02\0\x01\x12\x04\x93\x02\ - \x04\x13\n\x0f\n\x07\x04\x05\x04\0\x02\0\x02\x12\x04\x93\x02\x16\x17\nX\ - \n\x06\x04\x05\x04\0\x02\x01\x12\x04\x96\x02\x04\x0e\x1aH\x20The\x20snap\ - shot\x20has\x20been\x20successfully\x20created\x20and\x20can\x20serve\ - \x20all\x20requests.\n\n\x0f\n\x07\x04\x05\x04\0\x02\x01\x01\x12\x04\x96\ - \x02\x04\t\n\x0f\n\x07\x04\x05\x04\0\x02\x01\x02\x12\x04\x96\x02\x0c\r\n\ - \xc4\x01\n\x06\x04\x05\x04\0\x02\x02\x12\x04\x9b\x02\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\x05\x04\0\x02\x02\x01\x12\x04\x9b\x02\x04\x0c\n\x0f\n\x07\x04\x05\ - \x04\0\x02\x02\x02\x12\x04\x9b\x02\x0f\x10\n\xaa\x01\n\x04\x04\x05\x02\0\ - \x12\x04\xa1\x02\x02\x12\x1a\x9b\x01\x20Output\x20only.\x20The\x20unique\ - \x20name\x20of\x20the\x20snapshot.\n\x20Values\x20are\x20of\x20the\x20fo\ - rm\n\x20`projects/{project}/instances/{instance}/clusters/{cluster}/snap\ - shots/{snapshot}`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xa1\x02\x02\ - \x9c\x02\x03\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xa1\x02\x02\x08\n\r\n\ - \x05\x04\x05\x02\0\x01\x12\x04\xa1\x02\t\r\n\r\n\x05\x04\x05\x02\0\x03\ - \x12\x04\xa1\x02\x10\x11\nQ\n\x04\x04\x05\x02\x01\x12\x04\xa4\x02\x02\ - \x19\x1aC\x20Output\x20only.\x20The\x20source\x20table\x20at\x20the\x20t\ - ime\x20the\x20snapshot\x20was\x20taken.\n\n\x0f\n\x05\x04\x05\x02\x01\ - \x04\x12\x06\xa4\x02\x02\xa1\x02\x12\n\r\n\x05\x04\x05\x02\x01\x06\x12\ - \x04\xa4\x02\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xa4\x02\x08\ - \x14\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xa4\x02\x17\x18\n\xf4\x01\n\ - \x04\x04\x05\x02\x02\x12\x04\xaa\x02\x02\x1c\x1a\xe5\x01\x20Output\x20on\ - ly.\x20The\x20size\x20of\x20the\x20data\x20in\x20the\x20source\x20table\ - \x20at\x20the\x20time\x20the\n\x20snapshot\x20was\x20taken.\x20In\x20som\ - e\x20cases,\x20this\x20value\x20may\x20be\x20computed\n\x20asynchronousl\ - y\x20via\x20a\x20background\x20process\x20and\x20a\x20placeholder\x20of\ - \x200\x20will\x20be\x20used\n\x20in\x20the\x20meantime.\n\n\x0f\n\x05\ - \x04\x05\x02\x02\x04\x12\x06\xaa\x02\x02\xa4\x02\x19\n\r\n\x05\x04\x05\ - \x02\x02\x05\x12\x04\xaa\x02\x02\x07\n\r\n\x05\x04\x05\x02\x02\x01\x12\ - \x04\xaa\x02\x08\x17\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\xaa\x02\x1a\ - \x1b\nC\n\x04\x04\x05\x02\x03\x12\x04\xad\x02\x02,\x1a5\x20Output\x20onl\ - y.\x20The\x20time\x20when\x20the\x20snapshot\x20is\x20created.\n\n\x0f\n\ - \x05\x04\x05\x02\x03\x04\x12\x06\xad\x02\x02\xaa\x02\x1c\n\r\n\x05\x04\ - \x05\x02\x03\x06\x12\x04\xad\x02\x02\x1b\n\r\n\x05\x04\x05\x02\x03\x01\ - \x12\x04\xad\x02\x1c'\n\r\n\x05\x04\x05\x02\x03\x03\x12\x04\xad\x02*+\n\ - \xd7\x01\n\x04\x04\x05\x02\x04\x12\x04\xb2\x02\x02,\x1a\xc8\x01\x20Outpu\ - t\x20only.\x20The\x20time\x20when\x20the\x20snapshot\x20will\x20be\x20de\ - leted.\x20The\x20maximum\x20amount\n\x20of\x20time\x20a\x20snapshot\x20c\ - an\x20stay\x20active\x20is\x20365\x20days.\x20If\x20'ttl'\x20is\x20not\ - \x20specified,\n\x20the\x20default\x20maximum\x20of\x20365\x20days\x20wi\ - ll\x20be\x20used.\n\n\x0f\n\x05\x04\x05\x02\x04\x04\x12\x06\xb2\x02\x02\ - \xad\x02,\n\r\n\x05\x04\x05\x02\x04\x06\x12\x04\xb2\x02\x02\x1b\n\r\n\ - \x05\x04\x05\x02\x04\x01\x12\x04\xb2\x02\x1c'\n\r\n\x05\x04\x05\x02\x04\ - \x03\x12\x04\xb2\x02*+\n?\n\x04\x04\x05\x02\x05\x12\x04\xb5\x02\x02\x12\ - \x1a1\x20Output\x20only.\x20The\x20current\x20state\x20of\x20the\x20snap\ - shot.\n\n\x0f\n\x05\x04\x05\x02\x05\x04\x12\x06\xb5\x02\x02\xb2\x02,\n\r\ - \n\x05\x04\x05\x02\x05\x06\x12\x04\xb5\x02\x02\x07\n\r\n\x05\x04\x05\x02\ - \x05\x01\x12\x04\xb5\x02\x08\r\n\r\n\x05\x04\x05\x02\x05\x03\x12\x04\xb5\ - \x02\x10\x11\n9\n\x04\x04\x05\x02\x06\x12\x04\xb8\x02\x02\x19\x1a+\x20Ou\ - tput\x20only.\x20Description\x20of\x20the\x20snapshot.\n\n\x0f\n\x05\x04\ - \x05\x02\x06\x04\x12\x06\xb8\x02\x02\xb5\x02\x12\n\r\n\x05\x04\x05\x02\ - \x06\x05\x12\x04\xb8\x02\x02\x08\n\r\n\x05\x04\x05\x02\x06\x01\x12\x04\ - \xb8\x02\t\x14\n\r\n\x05\x04\x05\x02\x06\x03\x12\x04\xb8\x02\x17\x18\n3\ - \n\x02\x04\x06\x12\x06\xbc\x02\0\x81\x03\x01\x1a%\x20A\x20backup\x20of\ - \x20a\x20Cloud\x20Bigtable\x20table.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\ - \xbc\x02\x08\x0e\n\r\n\x03\x04\x06\x07\x12\x06\xbd\x02\x02\xc0\x02\x04\n\ - \x0f\n\x05\x04\x06\x07\x9d\x08\x12\x06\xbd\x02\x02\xc0\x02\x04\n<\n\x04\ - \x04\x06\x04\0\x12\x06\xc3\x02\x02\xcd\x02\x03\x1a,\x20Indicates\x20the\ - \x20current\x20state\x20of\x20the\x20backup.\n\n\r\n\x05\x04\x06\x04\0\ - \x01\x12\x04\xc3\x02\x07\x0c\n\x20\n\x06\x04\x06\x04\0\x02\0\x12\x04\xc5\ - \x02\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0f\n\x07\x04\x06\x04\0\ - \x02\0\x01\x12\x04\xc5\x02\x04\x15\n\x0f\n\x07\x04\x06\x04\0\x02\0\x02\ - \x12\x04\xc5\x02\x18\x19\n\x89\x01\n\x06\x04\x06\x04\0\x02\x01\x12\x04\ - \xc9\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\ - \x06\x04\0\x02\x01\x01\x12\x04\xc9\x02\x04\x0c\n\x0f\n\x07\x04\x06\x04\0\ - \x02\x01\x02\x12\x04\xc9\x02\x0f\x10\n;\n\x06\x04\x06\x04\0\x02\x02\x12\ - \x04\xcc\x02\x04\x0e\x1a+\x20The\x20backup\x20is\x20complete\x20and\x20r\ - eady\x20for\x20use.\n\n\x0f\n\x07\x04\x06\x04\0\x02\x02\x01\x12\x04\xcc\ - \x02\x04\t\n\x0f\n\x07\x04\x06\x04\0\x02\x02\x02\x12\x04\xcc\x02\x0c\r\n\ - \xce\x03\n\x04\x04\x06\x02\0\x12\x04\xd9\x02\x02>\x1a\xbf\x03\x20Output\ - \x20only.\x20A\x20globally\x20unique\x20identifier\x20for\x20the\x20back\ - up\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\x20fin\ - al\x20segment\x20of\x20the\x20name\x20must\x20be\x20between\x201\x20and\ - \x2050\x20characters\n\x20in\x20length.\n\n\x20The\x20backup\x20is\x20st\ - ored\x20in\x20the\x20cluster\x20identified\x20by\x20the\x20prefix\x20of\ - \x20the\x20backup\n\x20name\x20of\x20the\x20form\n\x20`projects/{project\ - }/instances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\x06\x02\0\ - \x04\x12\x06\xd9\x02\x02\xcd\x02\x03\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\r\n\x05\x04\x06\x02\0\ - \x08\x12\x04\xd9\x02\x12=\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\ - \x04\xd9\x02\x13<\n\xec\x01\n\x04\x04\x06\x02\x01\x12\x06\xde\x02\x02\ - \xe1\x02\x04\x1a\xdb\x01\x20Required.\x20Immutable.\x20Name\x20of\x20the\ - \x20table\x20from\x20which\x20this\x20backup\x20was\x20created.\n\x20Thi\ - s\x20needs\x20to\x20be\x20in\x20the\x20same\x20instance\x20as\x20the\x20\ - backup.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/i\ - nstances/{instance}/tables/{source_table}`.\n\n\x0f\n\x05\x04\x06\x02\ - \x01\x04\x12\x06\xde\x02\x02\xd9\x02>\n\r\n\x05\x04\x06\x02\x01\x05\x12\ - \x04\xde\x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xde\x02\t\x15\ - \n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xde\x02\x18\x19\n\x0f\n\x05\x04\ - \x06\x02\x01\x08\x12\x06\xde\x02\x1a\xe1\x02\x03\n\x10\n\x08\x04\x06\x02\ - \x01\x08\x9c\x08\0\x12\x04\xdf\x02\x04+\n\x10\n\x08\x04\x06\x02\x01\x08\ - \x9c\x08\x01\x12\x04\xe0\x02\x04*\n\xae\x02\n\x04\x04\x06\x02\x02\x12\ - \x06\xe8\x02\x02\xe9\x02/\x1a\x9d\x02\x20Required.\x20The\x20expiration\ - \x20time\x20of\x20the\x20backup,\x20with\x20microseconds\n\x20granularit\ - y\x20that\x20must\x20be\x20at\x20least\x206\x20hours\x20and\x20at\x20mos\ - t\x2030\x20days\n\x20from\x20the\x20time\x20the\x20request\x20is\x20rece\ - ived.\x20Once\x20the\x20`expire_time`\n\x20has\x20passed,\x20Cloud\x20Bi\ - gtable\x20will\x20delete\x20the\x20backup\x20and\x20free\x20the\n\x20res\ - ources\x20used\x20by\x20the\x20backup.\n\n\x0f\n\x05\x04\x06\x02\x02\x04\ - \x12\x06\xe8\x02\x02\xe1\x02\x04\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\ - \xe8\x02\x02\x1b\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xe8\x02\x1c'\n\r\ - \n\x05\x04\x06\x02\x02\x03\x12\x04\xe8\x02*+\n\r\n\x05\x04\x06\x02\x02\ - \x08\x12\x04\xe9\x02\x06.\n\x10\n\x08\x04\x06\x02\x02\x08\x9c\x08\0\x12\ - \x04\xe9\x02\x07-\n\x9b\x02\n\x04\x04\x06\x02\x03\x12\x06\xf0\x02\x02\ - \xf1\x022\x1a\x8a\x02\x20Output\x20only.\x20`start_time`\x20is\x20the\ - \x20time\x20that\x20the\x20backup\x20was\x20started\n\x20(i.e.\x20approx\ - imately\x20the\x20time\x20the\n\x20[CreateBackup][google.bigtable.admin.\ - v2.BigtableTableAdmin.CreateBackup]\n\x20request\x20is\x20received).\x20\ - \x20The\x20row\x20data\x20in\x20this\x20backup\x20will\x20be\x20no\x20ol\ - der\x20than\n\x20this\x20timestamp.\n\n\x0f\n\x05\x04\x06\x02\x03\x04\ - \x12\x06\xf0\x02\x02\xe9\x02/\n\r\n\x05\x04\x06\x02\x03\x06\x12\x04\xf0\ - \x02\x02\x1b\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\xf0\x02\x1c&\n\r\n\ - \x05\x04\x06\x02\x03\x03\x12\x04\xf0\x02)*\n\r\n\x05\x04\x06\x02\x03\x08\ - \x12\x04\xf1\x02\x061\n\x10\n\x08\x04\x06\x02\x03\x08\x9c\x08\0\x12\x04\ - \xf1\x02\x070\n\x96\x01\n\x04\x04\x06\x02\x04\x12\x06\xf5\x02\x02\xf6\ - \x022\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\x0f\n\x05\x04\x06\x02\x04\x04\x12\x06\xf5\x02\x02\xf1\x02\ - 2\n\r\n\x05\x04\x06\x02\x04\x06\x12\x04\xf5\x02\x02\x1b\n\r\n\x05\x04\ - \x06\x02\x04\x01\x12\x04\xf5\x02\x1c$\n\r\n\x05\x04\x06\x02\x04\x03\x12\ - \x04\xf5\x02'(\n\r\n\x05\x04\x06\x02\x04\x08\x12\x04\xf6\x02\x061\n\x10\ - \n\x08\x04\x06\x02\x04\x08\x9c\x08\0\x12\x04\xf6\x02\x070\n9\n\x04\x04\ - \x06\x02\x05\x12\x04\xf9\x02\x02C\x1a+\x20Output\x20only.\x20Size\x20of\ - \x20the\x20backup\x20in\x20bytes.\n\n\x0f\n\x05\x04\x06\x02\x05\x04\x12\ - \x06\xf9\x02\x02\xf6\x022\n\r\n\x05\x04\x06\x02\x05\x05\x12\x04\xf9\x02\ - \x02\x07\n\r\n\x05\x04\x06\x02\x05\x01\x12\x04\xf9\x02\x08\x12\n\r\n\x05\ - \x04\x06\x02\x05\x03\x12\x04\xf9\x02\x15\x16\n\r\n\x05\x04\x06\x02\x05\ - \x08\x12\x04\xf9\x02\x17B\n\x10\n\x08\x04\x06\x02\x05\x08\x9c\x08\0\x12\ - \x04\xf9\x02\x18A\n=\n\x04\x04\x06\x02\x06\x12\x04\xfc\x02\x02>\x1a/\x20\ - Output\x20only.\x20The\x20current\x20state\x20of\x20the\x20backup.\n\n\ - \x0f\n\x05\x04\x06\x02\x06\x04\x12\x06\xfc\x02\x02\xf9\x02C\n\r\n\x05\ - \x04\x06\x02\x06\x06\x12\x04\xfc\x02\x02\x07\n\r\n\x05\x04\x06\x02\x06\ - \x01\x12\x04\xfc\x02\x08\r\n\r\n\x05\x04\x06\x02\x06\x03\x12\x04\xfc\x02\ - \x10\x11\n\r\n\x05\x04\x06\x02\x06\x08\x12\x04\xfc\x02\x12=\n\x10\n\x08\ - \x04\x06\x02\x06\x08\x9c\x08\0\x12\x04\xfc\x02\x13<\nI\n\x04\x04\x06\x02\ - \x07\x12\x06\xff\x02\x02\x80\x032\x1a9\x20Output\x20only.\x20The\x20encr\ - yption\x20information\x20for\x20the\x20backup.\n\n\x0f\n\x05\x04\x06\x02\ - \x07\x04\x12\x06\xff\x02\x02\xfc\x02>\n\r\n\x05\x04\x06\x02\x07\x06\x12\ - \x04\xff\x02\x02\x10\n\r\n\x05\x04\x06\x02\x07\x01\x12\x04\xff\x02\x11\ - \x20\n\r\n\x05\x04\x06\x02\x07\x03\x12\x04\xff\x02#$\n\r\n\x05\x04\x06\ - \x02\x07\x08\x12\x04\x80\x03\x061\n\x10\n\x08\x04\x06\x02\x07\x08\x9c\ - \x08\0\x12\x04\x80\x03\x070\n+\n\x02\x04\x07\x12\x06\x84\x03\0\x94\x03\ - \x01\x1a\x1d\x20Information\x20about\x20a\x20backup.\n\n\x0b\n\x03\x04\ - \x07\x01\x12\x04\x84\x03\x08\x12\n0\n\x04\x04\x07\x02\0\x12\x04\x86\x03\ - \x02@\x1a\"\x20Output\x20only.\x20Name\x20of\x20the\x20backup.\n\n\x0f\n\ - \x05\x04\x07\x02\0\x04\x12\x06\x86\x03\x02\x84\x03\x14\n\r\n\x05\x04\x07\ - \x02\0\x05\x12\x04\x86\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\ - \x86\x03\t\x0f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x86\x03\x12\x13\n\r\n\ - \x05\x04\x07\x02\0\x08\x12\x04\x86\x03\x14?\n\x10\n\x08\x04\x07\x02\0\ - \x08\x9c\x08\0\x12\x04\x86\x03\x15>\n\x82\x01\n\x04\x04\x07\x02\x01\x12\ - \x06\x8a\x03\x02\x8b\x032\x1ar\x20Output\x20only.\x20The\x20time\x20that\ - \x20the\x20backup\x20was\x20started.\x20Row\x20data\x20in\x20the\x20back\ - up\n\x20will\x20be\x20no\x20older\x20than\x20this\x20timestamp.\n\n\x0f\ - \n\x05\x04\x07\x02\x01\x04\x12\x06\x8a\x03\x02\x86\x03@\n\r\n\x05\x04\ - \x07\x02\x01\x06\x12\x04\x8a\x03\x02\x1b\n\r\n\x05\x04\x07\x02\x01\x01\ - \x12\x04\x8a\x03\x1c&\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\x8a\x03)*\n\ - \r\n\x05\x04\x07\x02\x01\x08\x12\x04\x8b\x03\x061\n\x10\n\x08\x04\x07\ - \x02\x01\x08\x9c\x08\0\x12\x04\x8b\x03\x070\n\x84\x01\n\x04\x04\x07\x02\ - \x02\x12\x06\x8f\x03\x02\x90\x032\x1at\x20Output\x20only.\x20This\x20tim\ - e\x20that\x20the\x20backup\x20was\x20finished.\x20Row\x20data\x20in\x20t\ - he\n\x20backup\x20will\x20be\x20no\x20newer\x20than\x20this\x20timestamp\ - .\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\x8f\x03\x02\x8b\x032\n\r\n\ - \x05\x04\x07\x02\x02\x06\x12\x04\x8f\x03\x02\x1b\n\r\n\x05\x04\x07\x02\ - \x02\x01\x12\x04\x8f\x03\x1c$\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\x8f\ - \x03'(\n\r\n\x05\x04\x07\x02\x02\x08\x12\x04\x90\x03\x061\n\x10\n\x08\ - \x04\x07\x02\x02\x08\x9c\x08\0\x12\x04\x90\x03\x070\nK\n\x04\x04\x07\x02\ - \x03\x12\x04\x93\x03\x02F\x1a=\x20Output\x20only.\x20Name\x20of\x20the\ - \x20table\x20the\x20backup\x20was\x20created\x20from.\n\n\x0f\n\x05\x04\ - \x07\x02\x03\x04\x12\x06\x93\x03\x02\x90\x032\n\r\n\x05\x04\x07\x02\x03\ - \x05\x12\x04\x93\x03\x02\x08\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\x93\ - \x03\t\x15\n\r\n\x05\x04\x07\x02\x03\x03\x12\x04\x93\x03\x18\x19\n\r\n\ - \x05\x04\x07\x02\x03\x08\x12\x04\x93\x03\x1aE\n\x10\n\x08\x04\x07\x02\ - \x03\x08\x9c\x08\0\x12\x04\x93\x03\x1bDb\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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_data.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_data.rs deleted file mode 100644 index 1eefe40800..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_data.rs +++ /dev/null @@ -1,6599 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/v1/bigtable_data.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Row { - // message fields - pub key: ::std::vec::Vec, - pub families: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Row { - fn default() -> &'a Row { - ::default_instance() - } -} - -impl Row { - pub fn new() -> 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.v1.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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.families)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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::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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Row { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Row::new) - } -} - -impl ::protobuf::Clear for Row { - fn clear(&mut self) { - self.key.clear(); - self.families.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Family { - // message fields - pub name: ::std::string::String, - pub columns: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Family { - fn default() -> &'a Family { - ::default_instance() - } -} - -impl Family { - pub fn new() -> 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.v1.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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.columns)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.columns { - 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.columns { - 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() -> 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 default_instance() -> &'static Family { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Family::new) - } -} - -impl ::protobuf::Clear for Family { - fn clear(&mut self) { - self.name.clear(); - self.columns.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Column { - // message fields - pub qualifier: ::std::vec::Vec, - pub cells: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Column { - fn default() -> &'a Column { - ::default_instance() - } -} - -impl Column { - pub fn new() -> 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.v1.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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cells)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Column { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Column::new) - } -} - -impl ::protobuf::Clear for Column { - fn clear(&mut self) { - self.qualifier.clear(); - self.cells.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Cell { - // message fields - pub timestamp_micros: i64, - pub value: ::std::vec::Vec, - pub labels: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Cell { - fn default() -> &'a Cell { - ::default_instance() - } -} - -impl Cell { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(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; - if self.timestamp_micros != 0 { - my_size += ::protobuf::rt::value_size(1, self.timestamp_micros, ::protobuf::wire_format::WireTypeVarint); - } - if !self.value.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.value); - } - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.timestamp_micros != 0 { - os.write_int64(1, self.timestamp_micros)?; - } - if !self.value.is_empty() { - os.write_bytes(2, &self.value)?; - } - for v in &self.labels { - 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() -> 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 default_instance() -> &'static Cell { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Cell::new) - } -} - -impl ::protobuf::Clear for Cell { - fn clear(&mut self) { - self.timestamp_micros = 0; - self.value.clear(); - self.labels.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RowRange { - // message fields - pub start_key: ::std::vec::Vec, - pub end_key: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RowRange { - fn default() -> &'a RowRange { - ::default_instance() - } -} - -impl RowRange { - pub fn new() -> RowRange { - ::std::default::Default::default() - } - - // bytes start_key = 2; - - - pub fn get_start_key(&self) -> &[u8] { - &self.start_key - } - pub fn clear_start_key(&mut self) { - self.start_key.clear(); - } - - // Param is passed by value, moved - pub fn set_start_key(&mut self, v: ::std::vec::Vec) { - self.start_key = v; - } - - // 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::vec::Vec { - &mut self.start_key - } - - // Take field - pub fn take_start_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.start_key, ::std::vec::Vec::new()) - } - - // bytes end_key = 3; - - - pub fn get_end_key(&self) -> &[u8] { - &self.end_key - } - pub fn clear_end_key(&mut self) { - self.end_key.clear(); - } - - // Param is passed by value, moved - pub fn set_end_key(&mut self, v: ::std::vec::Vec) { - self.end_key = v; - } - - // 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::vec::Vec { - &mut self.end_key - } - - // Take field - pub fn take_end_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.end_key, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for 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 { - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.start_key)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.end_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.start_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.start_key); - } - if !self.end_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(3, &self.end_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.start_key.is_empty() { - os.write_bytes(2, &self.start_key)?; - } - if !self.end_key.is_empty() { - os.write_bytes(3, &self.end_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() -> 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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "start_key", - |m: &RowRange| { &m.start_key }, - |m: &mut RowRange| { &mut m.start_key }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "end_key", - |m: &RowRange| { &m.end_key }, - |m: &mut RowRange| { &mut m.end_key }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowRange", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RowRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowRange::new) - } -} - -impl ::protobuf::Clear for RowRange { - fn clear(&mut self) { - self.start_key.clear(); - self.end_key.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a RowSet { - fn default() -> &'a RowSet { - ::default_instance() - } -} - -impl RowSet { - pub fn new() -> RowSet { - ::std::default::Default::default() - } - - // 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(); - } - - // Param is passed by value, moved - pub fn set_row_keys(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec>) { - self.row_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_row_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec> { - &mut self.row_keys - } - - // Take field - pub fn take_row_keys(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec> { - ::std::mem::replace(&mut self.row_keys, ::protobuf::RepeatedField::new()) - } - - // repeated .google.bigtable.v1.RowRange row_ranges = 2; - - - pub fn get_row_ranges(&self) -> &[RowRange] { - &self.row_ranges - } - pub fn clear_row_ranges(&mut self) { - self.row_ranges.clear(); - } - - // Param is passed by value, moved - pub fn set_row_ranges(&mut self, v: ::protobuf::RepeatedField) { - self.row_ranges = v; - } - - // Mutable pointer to the field. - pub fn mut_row_ranges(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.row_ranges - } - - // Take field - pub fn take_row_ranges(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.row_ranges, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_ranges)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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 += ::protobuf::rt::unknown_fields_size(self.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.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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static RowSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowSet::new) - } -} - -impl ::protobuf::Clear for RowSet { - fn clear(&mut self) { - self.row_keys.clear(); - self.row_ranges.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ColumnRange { - // message fields - pub family_name: ::std::string::String, - // message oneof groups - pub start_qualifier: ::std::option::Option, - pub end_qualifier: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ColumnRange { - fn default() -> &'a ColumnRange { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ColumnRange_oneof_start_qualifier { - start_qualifier_inclusive(::std::vec::Vec), - start_qualifier_exclusive(::std::vec::Vec), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ColumnRange_oneof_end_qualifier { - end_qualifier_inclusive(::std::vec::Vec), - end_qualifier_exclusive(::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_inclusive = 2; - - - pub fn get_start_qualifier_inclusive(&self) -> &[u8] { - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(ref v)) => v, - _ => &[], - } - } - pub fn clear_start_qualifier_inclusive(&mut self) { - self.start_qualifier = ::std::option::Option::None; - } - - pub fn has_start_qualifier_inclusive(&self) -> bool { - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_start_qualifier_inclusive(&mut self, v: ::std::vec::Vec) { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(v)) - } - - // Mutable pointer to the field. - pub fn mut_start_qualifier_inclusive(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(_)) = self.start_qualifier { - } else { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(::std::vec::Vec::new())); - } - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_start_qualifier_inclusive(&mut self) -> ::std::vec::Vec { - if self.has_start_qualifier_inclusive() { - match self.start_qualifier.take() { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes start_qualifier_exclusive = 3; - - - pub fn get_start_qualifier_exclusive(&self) -> &[u8] { - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(ref v)) => v, - _ => &[], - } - } - pub fn clear_start_qualifier_exclusive(&mut self) { - self.start_qualifier = ::std::option::Option::None; - } - - pub fn has_start_qualifier_exclusive(&self) -> bool { - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_start_qualifier_exclusive(&mut self, v: ::std::vec::Vec) { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(v)) - } - - // Mutable pointer to the field. - pub fn mut_start_qualifier_exclusive(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(_)) = self.start_qualifier { - } else { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(::std::vec::Vec::new())); - } - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_start_qualifier_exclusive(&mut self) -> ::std::vec::Vec { - if self.has_start_qualifier_exclusive() { - match self.start_qualifier.take() { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_qualifier_inclusive = 4; - - - pub fn get_end_qualifier_inclusive(&self) -> &[u8] { - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(ref v)) => v, - _ => &[], - } - } - pub fn clear_end_qualifier_inclusive(&mut self) { - self.end_qualifier = ::std::option::Option::None; - } - - pub fn has_end_qualifier_inclusive(&self) -> bool { - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_end_qualifier_inclusive(&mut self, v: ::std::vec::Vec) { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(v)) - } - - // Mutable pointer to the field. - pub fn mut_end_qualifier_inclusive(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(_)) = self.end_qualifier { - } else { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(::std::vec::Vec::new())); - } - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_end_qualifier_inclusive(&mut self) -> ::std::vec::Vec { - if self.has_end_qualifier_inclusive() { - match self.end_qualifier.take() { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_qualifier_exclusive = 5; - - - pub fn get_end_qualifier_exclusive(&self) -> &[u8] { - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(ref v)) => v, - _ => &[], - } - } - pub fn clear_end_qualifier_exclusive(&mut self) { - self.end_qualifier = ::std::option::Option::None; - } - - pub fn has_end_qualifier_exclusive(&self) -> bool { - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_end_qualifier_exclusive(&mut self, v: ::std::vec::Vec) { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(v)) - } - - // Mutable pointer to the field. - pub fn mut_end_qualifier_exclusive(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(_)) = self.end_qualifier { - } else { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(::std::vec::Vec::new())); - } - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_end_qualifier_exclusive(&mut self) -> ::std::vec::Vec { - if self.has_end_qualifier_exclusive() { - match self.end_qualifier.take() { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } -} - -impl ::protobuf::Message for 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_inclusive(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_exclusive(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_inclusive(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_exclusive(is.read_bytes()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let ::std::option::Option::Some(ref v) = self.start_qualifier { - match v { - &ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(ref v) => { - my_size += ::protobuf::rt::bytes_size(2, &v); - }, - &ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(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_inclusive(ref v) => { - my_size += ::protobuf::rt::bytes_size(4, &v); - }, - &ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(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 - } - - 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 let ::std::option::Option::Some(ref v) = self.start_qualifier { - match v { - &ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(ref v) => { - os.write_bytes(2, v)?; - }, - &ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(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_inclusive(ref v) => { - os.write_bytes(4, v)?; - }, - &ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(ref v) => { - os.write_bytes(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() -> 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_inclusive", - ColumnRange::has_start_qualifier_inclusive, - ColumnRange::get_start_qualifier_inclusive, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "start_qualifier_exclusive", - ColumnRange::has_start_qualifier_exclusive, - ColumnRange::get_start_qualifier_exclusive, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_qualifier_inclusive", - ColumnRange::has_end_qualifier_inclusive, - ColumnRange::get_end_qualifier_inclusive, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_qualifier_exclusive", - ColumnRange::has_end_qualifier_exclusive, - ColumnRange::get_end_qualifier_exclusive, - )); - ::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(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct TimestampRange { - // message fields - pub start_timestamp_micros: i64, - pub end_timestamp_micros: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TimestampRange { - fn default() -> &'a TimestampRange { - ::default_instance() - } -} - -impl TimestampRange { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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); - } - 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::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static TimestampRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TimestampRange::new) - } -} - -impl ::protobuf::Clear for TimestampRange { - fn clear(&mut self) { - self.start_timestamp_micros = 0; - self.end_timestamp_micros = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ValueRange { - // message oneof groups - pub start_value: ::std::option::Option, - pub end_value: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ValueRange { - fn default() -> &'a ValueRange { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ValueRange_oneof_start_value { - start_value_inclusive(::std::vec::Vec), - start_value_exclusive(::std::vec::Vec), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ValueRange_oneof_end_value { - end_value_inclusive(::std::vec::Vec), - end_value_exclusive(::std::vec::Vec), -} - -impl ValueRange { - pub fn new() -> ValueRange { - ::std::default::Default::default() - } - - // bytes start_value_inclusive = 1; - - - pub fn get_start_value_inclusive(&self) -> &[u8] { - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(ref v)) => v, - _ => &[], - } - } - pub fn clear_start_value_inclusive(&mut self) { - self.start_value = ::std::option::Option::None; - } - - pub fn has_start_value_inclusive(&self) -> bool { - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_start_value_inclusive(&mut self, v: ::std::vec::Vec) { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(v)) - } - - // Mutable pointer to the field. - pub fn mut_start_value_inclusive(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(_)) = self.start_value { - } else { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(::std::vec::Vec::new())); - } - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_start_value_inclusive(&mut self) -> ::std::vec::Vec { - if self.has_start_value_inclusive() { - match self.start_value.take() { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes start_value_exclusive = 2; - - - pub fn get_start_value_exclusive(&self) -> &[u8] { - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(ref v)) => v, - _ => &[], - } - } - pub fn clear_start_value_exclusive(&mut self) { - self.start_value = ::std::option::Option::None; - } - - pub fn has_start_value_exclusive(&self) -> bool { - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_start_value_exclusive(&mut self, v: ::std::vec::Vec) { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(v)) - } - - // Mutable pointer to the field. - pub fn mut_start_value_exclusive(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(_)) = self.start_value { - } else { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(::std::vec::Vec::new())); - } - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_start_value_exclusive(&mut self) -> ::std::vec::Vec { - if self.has_start_value_exclusive() { - match self.start_value.take() { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_value_inclusive = 3; - - - pub fn get_end_value_inclusive(&self) -> &[u8] { - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(ref v)) => v, - _ => &[], - } - } - pub fn clear_end_value_inclusive(&mut self) { - self.end_value = ::std::option::Option::None; - } - - pub fn has_end_value_inclusive(&self) -> bool { - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_end_value_inclusive(&mut self, v: ::std::vec::Vec) { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(v)) - } - - // Mutable pointer to the field. - pub fn mut_end_value_inclusive(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(_)) = self.end_value { - } else { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(::std::vec::Vec::new())); - } - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_end_value_inclusive(&mut self) -> ::std::vec::Vec { - if self.has_end_value_inclusive() { - match self.end_value.take() { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_value_exclusive = 4; - - - pub fn get_end_value_exclusive(&self) -> &[u8] { - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(ref v)) => v, - _ => &[], - } - } - pub fn clear_end_value_exclusive(&mut self) { - self.end_value = ::std::option::Option::None; - } - - pub fn has_end_value_exclusive(&self) -> bool { - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_end_value_exclusive(&mut self, v: ::std::vec::Vec) { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(v)) - } - - // Mutable pointer to the field. - pub fn mut_end_value_exclusive(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(_)) = self.end_value { - } else { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(::std::vec::Vec::new())); - } - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_end_value_exclusive(&mut self) -> ::std::vec::Vec { - if self.has_end_value_exclusive() { - match self.end_value.take() { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } -} - -impl ::protobuf::Message for 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_inclusive(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_exclusive(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_inclusive(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_exclusive(is.read_bytes()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.start_value { - match v { - &ValueRange_oneof_start_value::start_value_inclusive(ref v) => { - my_size += ::protobuf::rt::bytes_size(1, &v); - }, - &ValueRange_oneof_start_value::start_value_exclusive(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_inclusive(ref v) => { - my_size += ::protobuf::rt::bytes_size(3, &v); - }, - &ValueRange_oneof_end_value::end_value_exclusive(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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.start_value { - match v { - &ValueRange_oneof_start_value::start_value_inclusive(ref v) => { - os.write_bytes(1, v)?; - }, - &ValueRange_oneof_start_value::start_value_exclusive(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_inclusive(ref v) => { - os.write_bytes(3, v)?; - }, - &ValueRange_oneof_end_value::end_value_exclusive(ref v) => { - os.write_bytes(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() -> ValueRange { - ValueRange::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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_inclusive", - ValueRange::has_start_value_inclusive, - ValueRange::get_start_value_inclusive, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "start_value_exclusive", - ValueRange::has_start_value_exclusive, - ValueRange::get_start_value_exclusive, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_value_inclusive", - ValueRange::has_end_value_inclusive, - ValueRange::get_end_value_inclusive, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_value_exclusive", - ValueRange::has_end_value_exclusive, - ValueRange::get_end_value_exclusive, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ValueRange", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ValueRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ValueRange::new) - } -} - -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 ::std::fmt::Debug for ValueRange { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ValueRange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RowFilter { - // message oneof groups - pub filter: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RowFilter { - fn default() -> &'a RowFilter { - ::default_instance() - } -} - -#[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() - } - - // .google.bigtable.v1.RowFilter.Chain chain = 1; - - - pub fn get_chain(&self) -> &RowFilter_Chain { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::chain(RowFilter_Chain::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::chain(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_chain(&mut self) -> RowFilter_Chain { - if self.has_chain() { - match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::chain(v)) => v, - _ => panic!(), - } - } else { - RowFilter_Chain::new() - } - } - - // .google.bigtable.v1.RowFilter.Interleave interleave = 2; - - - pub fn get_interleave(&self) -> &RowFilter_Interleave { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::interleave(RowFilter_Interleave::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::interleave(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_interleave(&mut self) -> RowFilter_Interleave { - if self.has_interleave() { - match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::interleave(v)) => v, - _ => panic!(), - } - } else { - RowFilter_Interleave::new() - } - } - - // .google.bigtable.v1.RowFilter.Condition condition = 3; - - - pub fn get_condition(&self) -> &RowFilter_Condition { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::condition(RowFilter_Condition::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::condition(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_condition(&mut self) -> RowFilter_Condition { - if self.has_condition() { - match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::condition(v)) => v, - _ => panic!(), - } - } else { - RowFilter_Condition::new() - } - } - - // bool sink = 16; - - - pub fn get_sink(&self) -> bool { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_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, - _ => 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)) - } - - // bool pass_all_filter = 17; - - - pub fn get_pass_all_filter(&self) -> bool { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::pass_all_filter(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, - _ => 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)) - } - - // bool block_all_filter = 18; - - - pub fn get_block_all_filter(&self) -> bool { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::block_all_filter(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, - _ => 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)) - } - - // bytes row_key_regex_filter = 4; - - - pub fn get_row_key_regex_filter(&self) -> &[u8] { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(::std::vec::Vec::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // double row_sample_filter = 14; - - - pub fn get_row_sample_filter(&self) -> f64 { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_sample_filter(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, - _ => 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)) - } - - // string family_name_regex_filter = 5; - - - pub fn get_family_name_regex_filter(&self) -> &str { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(::std::string::String::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // bytes column_qualifier_regex_filter = 6; - - - pub fn get_column_qualifier_regex_filter(&self) -> &[u8] { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(::std::vec::Vec::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // .google.bigtable.v1.ColumnRange column_range_filter = 7; - - - pub fn get_column_range_filter(&self) -> &ColumnRange { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ColumnRange::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ColumnRange::new() - } - } - - // .google.bigtable.v1.TimestampRange timestamp_range_filter = 8; - - - pub fn get_timestamp_range_filter(&self) -> &TimestampRange { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(TimestampRange::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - TimestampRange::new() - } - } - - // bytes value_regex_filter = 9; - - - pub fn get_value_regex_filter(&self) -> &[u8] { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(::std::vec::Vec::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // .google.bigtable.v1.ValueRange value_range_filter = 15; - - - pub fn get_value_range_filter(&self) -> &ValueRange { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ValueRange::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ValueRange::new() - } - } - - // int32 cells_per_row_offset_filter = 10; - - - pub fn get_cells_per_row_offset_filter(&self) -> i32 { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_offset_filter(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, - _ => 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)) - } - - // int32 cells_per_row_limit_filter = 11; - - - pub fn get_cells_per_row_limit_filter(&self) -> i32 { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_limit_filter(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, - _ => 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)) - } - - // int32 cells_per_column_limit_filter = 12; - - - pub fn get_cells_per_column_limit_filter(&self) -> i32 { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_column_limit_filter(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, - _ => 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)) - } - - // bool strip_value_transformer = 13; - - - pub fn get_strip_value_transformer(&self) -> bool { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::strip_value_transformer(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, - _ => 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)) - } - - // string apply_label_transformer = 19; - - - pub fn get_apply_label_transformer(&self) -> &str { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(::std::string::String::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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())?; - }, - }; - } - ::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.filter { - match v { - &RowFilter_oneof_filter::chain(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::interleave(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::condition(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::sink(v) => { - my_size += 3; - }, - &RowFilter_oneof_filter::pass_all_filter(v) => { - my_size += 3; - }, - &RowFilter_oneof_filter::block_all_filter(v) => { - my_size += 3; - }, - &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { - my_size += ::protobuf::rt::bytes_size(4, &v); - }, - &RowFilter_oneof_filter::row_sample_filter(v) => { - my_size += 9; - }, - &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { - my_size += ::protobuf::rt::string_size(5, &v); - }, - &RowFilter_oneof_filter::column_qualifier_regex_filter(ref v) => { - my_size += ::protobuf::rt::bytes_size(6, &v); - }, - &RowFilter_oneof_filter::column_range_filter(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::timestamp_range_filter(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::value_regex_filter(ref v) => { - my_size += ::protobuf::rt::bytes_size(9, &v); - }, - &RowFilter_oneof_filter::value_range_filter(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { - my_size += ::protobuf::rt::value_size(10, v, ::protobuf::wire_format::WireTypeVarint); - }, - &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { - my_size += ::protobuf::rt::value_size(11, v, ::protobuf::wire_format::WireTypeVarint); - }, - &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { - my_size += ::protobuf::rt::value_size(12, v, ::protobuf::wire_format::WireTypeVarint); - }, - &RowFilter_oneof_filter::strip_value_transformer(v) => { - my_size += 2; - }, - &RowFilter_oneof_filter::apply_label_transformer(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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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) => { - os.write_bool(16, v)?; - }, - &RowFilter_oneof_filter::pass_all_filter(v) => { - os.write_bool(17, v)?; - }, - &RowFilter_oneof_filter::block_all_filter(v) => { - os.write_bool(18, v)?; - }, - &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { - os.write_bytes(4, v)?; - }, - &RowFilter_oneof_filter::row_sample_filter(v) => { - os.write_double(14, v)?; - }, - &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { - os.write_string(5, v)?; - }, - &RowFilter_oneof_filter::column_qualifier_regex_filter(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)?; - }, - &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)?; - }, - &RowFilter_oneof_filter::value_regex_filter(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)?; - }, - &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { - os.write_int32(10, v)?; - }, - &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { - os.write_int32(11, v)?; - }, - &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { - os.write_int32(12, v)?; - }, - &RowFilter_oneof_filter::strip_value_transformer(v) => { - os.write_bool(13, v)?; - }, - &RowFilter_oneof_filter::apply_label_transformer(ref v) => { - os.write_string(19, 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() -> 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; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.unknown_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) - } -} - -impl ::protobuf::reflect::ProtobufValue for RowFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 RowFilter_Chain { - pub fn new() -> RowFilter_Chain { - ::std::default::Default::default() - } - - // repeated .google.bigtable.v1.RowFilter filters = 1; - - - pub fn get_filters(&self) -> &[RowFilter] { - &self.filters - } - pub fn clear_filters(&mut self) { - self.filters.clear(); - } - - // Param is passed by value, moved - pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { - self.filters = v; - } - - // Mutable pointer to the field. - pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.filters - } - - // Take field - pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for RowFilter_Chain { - 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())?; - }, - }; - } - ::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_Chain { - RowFilter_Chain::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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_Chain| { &m.filters }, - |m: &mut RowFilter_Chain| { &mut m.filters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowFilter.Chain", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RowFilter_Chain { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowFilter_Chain::new) - } -} - -impl ::protobuf::Clear for RowFilter_Chain { - fn clear(&mut self) { - self.filters.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RowFilter_Chain { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RowFilter_Chain { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a RowFilter_Interleave { - fn default() -> &'a RowFilter_Interleave { - ::default_instance() - } -} - -impl RowFilter_Interleave { - pub fn new() -> RowFilter_Interleave { - ::std::default::Default::default() - } - - // repeated .google.bigtable.v1.RowFilter filters = 1; - - - pub fn get_filters(&self) -> &[RowFilter] { - &self.filters - } - pub fn clear_filters(&mut self) { - self.filters.clear(); - } - - // Param is passed by value, moved - pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { - self.filters = v; - } - - // Mutable pointer to the field. - pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.filters - } - - // Take field - pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) - } -} - -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())?; - }, - }; - } - ::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() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowFilter.Interleave", - fields, - file_descriptor_proto() - ) - }) - } - - 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.v1.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.v1.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); - } - - // 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(); - } - 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.v1.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(); - } - 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; - } - }; - for v in &self.true_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.false_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_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())?; - }, - }; - } - ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_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)?; - } - 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 new() -> RowFilter_Condition { - RowFilter_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 default_instance() -> &'static RowFilter_Condition { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowFilter_Condition::new) - } -} - -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 ::std::fmt::Debug for RowFilter_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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Mutation { - // message oneof groups - pub mutation: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Mutation { - fn default() -> &'a Mutation { - ::default_instance() - } -} - -#[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() - } - - // .google.bigtable.v1.Mutation.SetCell set_cell = 1; - - - pub fn get_set_cell(&self) -> &Mutation_SetCell { - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(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, - _ => 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)) - } - - // 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 { - } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(Mutation_SetCell::new())); - } - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Mutation_SetCell::new() - } - } - - // .google.bigtable.v1.Mutation.DeleteFromColumn delete_from_column = 2; - - - pub fn get_delete_from_column(&self) -> &Mutation_DeleteFromColumn { - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(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, - _ => 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)) - } - - // 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 { - } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(Mutation_DeleteFromColumn::new())); - } - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Mutation_DeleteFromColumn::new() - } - } - - // .google.bigtable.v1.Mutation.DeleteFromFamily delete_from_family = 3; - - - pub fn get_delete_from_family(&self) -> &Mutation_DeleteFromFamily { - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(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, - _ => 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)) - } - - // 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 { - } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(Mutation_DeleteFromFamily::new())); - } - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Mutation_DeleteFromFamily::new() - } - } - - // .google.bigtable.v1.Mutation.DeleteFromRow delete_from_row = 4; - - - pub fn get_delete_from_row(&self) -> &Mutation_DeleteFromRow { - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(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, - _ => 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)) - } - - // 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 { - } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(Mutation_DeleteFromRow::new())); - } - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Mutation_DeleteFromRow::new() - } - } -} - -impl ::protobuf::Message for 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())?; - }, - }; - } - ::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.mutation { - match v { - &Mutation_oneof_mutation::set_cell(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Mutation_oneof_mutation::delete_from_column(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Mutation_oneof_mutation::delete_from_family(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Mutation_oneof_mutation::delete_from_row(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.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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 { - 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 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.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 ::std::fmt::Debug 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) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a Mutation_SetCell { - fn default() -> &'a Mutation_SetCell { - ::default_instance() - } -} - -impl Mutation_SetCell { - pub fn new() -> Mutation_SetCell { - ::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()) - } - - // 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>( - "family_name", - |m: &Mutation_SetCell| { &m.family_name }, - |m: &mut Mutation_SetCell| { &mut m.family_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "column_qualifier", - |m: &Mutation_SetCell| { &m.column_qualifier }, - |m: &mut Mutation_SetCell| { &mut m.column_qualifier }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "timestamp_micros", - |m: &Mutation_SetCell| { &m.timestamp_micros }, - |m: &mut Mutation_SetCell| { &mut m.timestamp_micros }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "value", - |m: &Mutation_SetCell| { &m.value }, - |m: &mut Mutation_SetCell| { &mut m.value }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation.SetCell", - fields, - file_descriptor_proto() - ) - }) - } - - 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.v1.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; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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())?; - }, - }; - } - ::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 Some(ref v) = self.time_range.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.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 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_DeleteFromColumn { - Mutation_DeleteFromColumn::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_DeleteFromColumn| { &m.family_name }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.family_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "column_qualifier", - |m: &Mutation_DeleteFromColumn| { &m.column_qualifier }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.column_qualifier }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "time_range", - |m: &Mutation_DeleteFromColumn| { &m.time_range }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.time_range }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation.DeleteFromColumn", - fields, - file_descriptor_proto() - ) - }) - } - - 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 - } - - // 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)?; - } - 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n&google/bigtable/v1/bigtable_data.proto\x12\x12google.bigtable.v1\"O\n\ - \x03Row\x12\x10\n\x03key\x18\x01\x20\x01(\x0cR\x03key\x126\n\x08families\ - \x18\x02\x20\x03(\x0b2\x1a.google.bigtable.v1.FamilyR\x08families\"R\n\ - \x06Family\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x124\n\x07colum\ - ns\x18\x02\x20\x03(\x0b2\x1a.google.bigtable.v1.ColumnR\x07columns\"V\n\ - \x06Column\x12\x1c\n\tqualifier\x18\x01\x20\x01(\x0cR\tqualifier\x12.\n\ - \x05cells\x18\x02\x20\x03(\x0b2\x18.google.bigtable.v1.CellR\x05cells\"_\ - \n\x04Cell\x12)\n\x10timestamp_micros\x18\x01\x20\x01(\x03R\x0ftimestamp\ - Micros\x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\x12\x16\n\x06la\ - bels\x18\x03\x20\x03(\tR\x06labels\"@\n\x08RowRange\x12\x1b\n\tstart_key\ - \x18\x02\x20\x01(\x0cR\x08startKey\x12\x17\n\x07end_key\x18\x03\x20\x01(\ - \x0cR\x06endKey\"`\n\x06RowSet\x12\x19\n\x08row_keys\x18\x01\x20\x03(\ - \x0cR\x07rowKeys\x12;\n\nrow_ranges\x18\x02\x20\x03(\x0b2\x1c.google.big\ - table.v1.RowRangeR\trowRanges\"\xc2\x02\n\x0bColumnRange\x12\x1f\n\x0bfa\ - mily_name\x18\x01\x20\x01(\tR\nfamilyName\x12<\n\x19start_qualifier_incl\ - usive\x18\x02\x20\x01(\x0cH\0R\x17startQualifierInclusive\x12<\n\x19star\ - t_qualifier_exclusive\x18\x03\x20\x01(\x0cH\0R\x17startQualifierExclusiv\ - e\x128\n\x17end_qualifier_inclusive\x18\x04\x20\x01(\x0cH\x01R\x15endQua\ - lifierInclusive\x128\n\x17end_qualifier_exclusive\x18\x05\x20\x01(\x0cH\ - \x01R\x15endQualifierExclusiveB\x11\n\x0fstart_qualifierB\x0f\n\rend_qua\ - lifier\"x\n\x0eTimestampRange\x124\n\x16start_timestamp_micros\x18\x01\ - \x20\x01(\x03R\x14startTimestampMicros\x120\n\x14end_timestamp_micros\ - \x18\x02\x20\x01(\x03R\x12endTimestampMicros\"\xf8\x01\n\nValueRange\x12\ - 4\n\x15start_value_inclusive\x18\x01\x20\x01(\x0cH\0R\x13startValueInclu\ - sive\x124\n\x15start_value_exclusive\x18\x02\x20\x01(\x0cH\0R\x13startVa\ - lueExclusive\x120\n\x13end_value_inclusive\x18\x03\x20\x01(\x0cH\x01R\ - \x11endValueInclusive\x120\n\x13end_value_exclusive\x18\x04\x20\x01(\x0c\ - H\x01R\x11endValueExclusiveB\r\n\x0bstart_valueB\x0b\n\tend_value\"\xfc\ - \x0b\n\tRowFilter\x12;\n\x05chain\x18\x01\x20\x01(\x0b2#.google.bigtable\ - .v1.RowFilter.ChainH\0R\x05chain\x12J\n\ninterleave\x18\x02\x20\x01(\x0b\ - 2(.google.bigtable.v1.RowFilter.InterleaveH\0R\ninterleave\x12G\n\tcondi\ - tion\x18\x03\x20\x01(\x0b2'.google.bigtable.v1.RowFilter.ConditionH\0R\t\ - condition\x12\x14\n\x04sink\x18\x10\x20\x01(\x08H\0R\x04sink\x12(\n\x0fp\ - ass_all_filter\x18\x11\x20\x01(\x08H\0R\rpassAllFilter\x12*\n\x10block_a\ - ll_filter\x18\x12\x20\x01(\x08H\0R\x0eblockAllFilter\x121\n\x14row_key_r\ - egex_filter\x18\x04\x20\x01(\x0cH\0R\x11rowKeyRegexFilter\x12,\n\x11row_\ - sample_filter\x18\x0e\x20\x01(\x01H\0R\x0frowSampleFilter\x129\n\x18fami\ - ly_name_regex_filter\x18\x05\x20\x01(\tH\0R\x15familyNameRegexFilter\x12\ - C\n\x1dcolumn_qualifier_regex_filter\x18\x06\x20\x01(\x0cH\0R\x1acolumnQ\ - ualifierRegexFilter\x12Q\n\x13column_range_filter\x18\x07\x20\x01(\x0b2\ - \x1f.google.bigtable.v1.ColumnRangeH\0R\x11columnRangeFilter\x12Z\n\x16t\ - imestamp_range_filter\x18\x08\x20\x01(\x0b2\".google.bigtable.v1.Timesta\ - mpRangeH\0R\x14timestampRangeFilter\x12.\n\x12value_regex_filter\x18\t\ - \x20\x01(\x0cH\0R\x10valueRegexFilter\x12N\n\x12value_range_filter\x18\ - \x0f\x20\x01(\x0b2\x1e.google.bigtable.v1.ValueRangeH\0R\x10valueRangeFi\ - lter\x12>\n\x1bcells_per_row_offset_filter\x18\n\x20\x01(\x05H\0R\x17cel\ - lsPerRowOffsetFilter\x12<\n\x1acells_per_row_limit_filter\x18\x0b\x20\ - \x01(\x05H\0R\x16cellsPerRowLimitFilter\x12B\n\x1dcells_per_column_limit\ - _filter\x18\x0c\x20\x01(\x05H\0R\x19cellsPerColumnLimitFilter\x128\n\x17\ - strip_value_transformer\x18\r\x20\x01(\x08H\0R\x15stripValueTransformer\ - \x128\n\x17apply_label_transformer\x18\x13\x20\x01(\tH\0R\x15applyLabelT\ - ransformer\x1a@\n\x05Chain\x127\n\x07filters\x18\x01\x20\x03(\x0b2\x1d.g\ - oogle.bigtable.v1.RowFilterR\x07filters\x1aE\n\nInterleave\x127\n\x07fil\ - ters\x18\x01\x20\x03(\x0b2\x1d.google.bigtable.v1.RowFilterR\x07filters\ - \x1a\xd7\x01\n\tCondition\x12H\n\x10predicate_filter\x18\x01\x20\x01(\ - \x0b2\x1d.google.bigtable.v1.RowFilterR\x0fpredicateFilter\x12>\n\x0btru\ - e_filter\x18\x02\x20\x01(\x0b2\x1d.google.bigtable.v1.RowFilterR\ntrueFi\ - lter\x12@\n\x0cfalse_filter\x18\x03\x20\x01(\x0b2\x1d.google.bigtable.v1\ - .RowFilterR\x0bfalseFilterB\x08\n\x06filter\"\xf0\x05\n\x08Mutation\x12A\ - \n\x08set_cell\x18\x01\x20\x01(\x0b2$.google.bigtable.v1.Mutation.SetCel\ - lH\0R\x07setCell\x12]\n\x12delete_from_column\x18\x02\x20\x01(\x0b2-.goo\ - gle.bigtable.v1.Mutation.DeleteFromColumnH\0R\x10deleteFromColumn\x12]\n\ - \x12delete_from_family\x18\x03\x20\x01(\x0b2-.google.bigtable.v1.Mutatio\ - n.DeleteFromFamilyH\0R\x10deleteFromFamily\x12T\n\x0fdelete_from_row\x18\ - \x04\x20\x01(\x0b2*.google.bigtable.v1.Mutation.DeleteFromRowH\0R\rdelet\ - eFromRow\x1a\x96\x01\n\x07SetCell\x12\x1f\n\x0bfamily_name\x18\x01\x20\ - \x01(\tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0cR\ - \x0fcolumnQualifier\x12)\n\x10timestamp_micros\x18\x03\x20\x01(\x03R\x0f\ - timestampMicros\x12\x14\n\x05value\x18\x04\x20\x01(\x0cR\x05value\x1a\ - \xa1\x01\n\x10DeleteFromColumn\x12\x1f\n\x0bfamily_name\x18\x01\x20\x01(\ - \tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0cR\x0fcolu\ - mnQualifier\x12A\n\ntime_range\x18\x03\x20\x01(\x0b2\".google.bigtable.v\ - 1.TimestampRangeR\ttimeRange\x1a3\n\x10DeleteFromFamily\x12\x1f\n\x0bfam\ - ily_name\x18\x01\x20\x01(\tR\nfamilyName\x1a\x0f\n\rDeleteFromRowB\n\n\ - \x08mutation\"\xbb\x01\n\x13ReadModifyWriteRule\x12\x1f\n\x0bfamily_name\ - \x18\x01\x20\x01(\tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\ - \x01(\x0cR\x0fcolumnQualifier\x12#\n\x0cappend_value\x18\x03\x20\x01(\ - \x0cH\0R\x0bappendValue\x12+\n\x10increment_amount\x18\x04\x20\x01(\x03H\ - \0R\x0fincrementAmountB\x06\n\x04ruleBi\n\x16com.google.bigtable.v1B\x11\ - BigtableDataProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v\ - 1;bigtableJ\xf4\xb2\x01\n\x07\x12\x05\x0e\0\x80\x04\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\ - \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\0Q\n\t\n\x02\x08\x0b\x12\x03\x12\0Q\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\x90\x01\n\x02\x04\0\x12\x04\x19\0\"\x01\x1a\ - \x83\x01\x20Specifies\x20the\x20complete\x20(requested)\x20contents\x20o\ - f\x20a\x20single\x20row\x20of\x20a\x20table.\n\x20Rows\x20which\x20excee\ - d\x20256MiB\x20in\x20size\x20cannot\x20be\x20read\x20in\x20full.\n\n\n\n\ - \x03\x04\0\x01\x12\x03\x19\x08\x0b\n\xe2\x01\n\x04\x04\0\x02\0\x12\x03\ - \x1d\x02\x10\x1a\xd4\x01\x20The\x20unique\x20key\x20which\x20identifies\ - \x20this\x20row\x20within\x20its\x20table.\x20This\x20is\x20the\x20same\ - \n\x20key\x20that's\x20used\x20to\x20identify\x20the\x20row\x20in,\x20fo\ - r\x20example,\x20a\x20MutateRowRequest.\n\x20May\x20contain\x20any\x20no\ - n-empty\x20byte\x20string\x20up\x20to\x204KiB\x20in\x20length.\n\n\r\n\ - \x05\x04\0\x02\0\x04\x12\x04\x1d\x02\x19\r\n\x0c\n\x05\x04\0\x02\0\x05\ - \x12\x03\x1d\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1d\x08\x0b\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1d\x0e\x0f\n{\n\x04\x04\0\x02\x01\ - \x12\x03!\x02\x1f\x1an\x20May\x20be\x20empty,\x20but\x20only\x20if\x20th\ - e\x20entire\x20row\x20is\x20empty.\n\x20The\x20mutual\x20ordering\x20of\ - \x20column\x20families\x20is\x20not\x20specified.\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\ - \x11\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03!\x12\x1a\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x03!\x1d\x1e\nX\n\x02\x04\x01\x12\x04%\00\x01\x1aL\x20S\ - pecifies\x20(some\x20of)\x20the\x20contents\x20of\x20a\x20single\x20row/\ - column\x20family\x20of\x20a\x20table.\n\n\n\n\x03\x04\x01\x01\x12\x03%\ - \x08\x0e\n\x83\x03\n\x04\x04\x01\x02\0\x12\x03,\x02\x12\x1a\xf5\x02\x20T\ - he\x20unique\x20key\x20which\x20identifies\x20this\x20family\x20within\ - \x20its\x20row.\x20This\x20is\x20the\n\x20same\x20key\x20that's\x20used\ - \x20to\x20identify\x20the\x20family\x20in,\x20for\x20example,\x20a\x20Ro\ - wFilter\n\x20which\x20sets\x20its\x20\"family_name_regex_filter\"\x20fie\ - ld.\n\x20Must\x20match\x20[-_.a-zA-Z0-9]+,\x20except\x20that\x20Aggregat\ - ingRowProcessors\x20may\n\x20produce\x20cells\x20in\x20a\x20sentinel\x20\ - family\x20with\x20an\x20empty\x20name.\n\x20Must\x20be\x20no\x20greater\ - \x20than\x2064\x20characters\x20in\x20length.\n\n\r\n\x05\x04\x01\x02\0\ - \x04\x12\x04,\x02%\x10\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\r\n\x0c\n\x05\x04\x01\x02\0\x03\ - \x12\x03,\x10\x11\nL\n\x04\x04\x01\x02\x01\x12\x03/\x02\x1e\x1a?\x20Must\ - \x20not\x20be\x20empty.\x20Sorted\x20in\x20order\x20of\x20increasing\x20\ - \"qualifier\".\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03/\x02\n\n\x0c\n\ - \x05\x04\x01\x02\x01\x06\x12\x03/\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\ - \x01\x12\x03/\x12\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03/\x1c\x1d\n\ - Q\n\x02\x04\x02\x12\x043\0=\x01\x1aE\x20Specifies\x20(some\x20of)\x20the\ - \x20contents\x20of\x20a\x20single\x20row/column\x20of\x20a\x20table.\n\n\ - \n\n\x03\x04\x02\x01\x12\x033\x08\x0e\n\xad\x02\n\x04\x04\x02\x02\0\x12\ - \x039\x02\x16\x1a\x9f\x02\x20The\x20unique\x20key\x20which\x20identifies\ - \x20this\x20column\x20within\x20its\x20family.\x20This\x20is\x20the\n\ - \x20same\x20key\x20that's\x20used\x20to\x20identify\x20the\x20column\x20\ - in,\x20for\x20example,\x20a\x20RowFilter\n\x20which\x20sets\x20its\x20\"\ - column_qualifier_regex_filter\"\x20field.\n\x20May\x20contain\x20any\x20\ - byte\x20string,\x20including\x20the\x20empty\x20string,\x20up\x20to\x201\ - 6kiB\x20in\n\x20length.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x049\x023\x10\ - \n\x0c\n\x05\x04\x02\x02\0\x05\x12\x039\x02\x07\n\x0c\n\x05\x04\x02\x02\ - \0\x01\x12\x039\x08\x11\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x039\x14\x15\n\ - S\n\x04\x04\x02\x02\x01\x12\x03<\x02\x1a\x1aF\x20Must\x20not\x20be\x20em\ - pty.\x20Sorted\x20in\x20order\x20of\x20decreasing\x20\"timestamp_micros\ - \".\n\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03<\x02\n\n\x0c\n\x05\x04\x02\ - \x02\x01\x06\x12\x03<\x0b\x0f\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03<\ - \x10\x15\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03<\x18\x19\n[\n\x02\x04\ - \x03\x12\x04@\0P\x01\x1aO\x20Specifies\x20(some\x20of)\x20the\x20content\ - s\x20of\x20a\x20single\x20row/column/timestamp\x20of\x20a\x20table.\n\n\ - \n\n\x03\x04\x03\x01\x12\x03@\x08\x0c\n\xf8\x02\n\x04\x04\x03\x02\0\x12\ - \x03G\x02\x1d\x1a\xea\x02\x20The\x20cell's\x20stored\x20timestamp,\x20wh\ - ich\x20also\x20uniquely\x20identifies\x20it\x20within\n\x20its\x20column\ - .\n\x20Values\x20are\x20always\x20expressed\x20in\x20microseconds,\x20bu\ - t\x20individual\x20tables\x20may\x20set\n\x20a\x20coarser\x20\"granulari\ - ty\"\x20to\x20further\x20restrict\x20the\x20allowed\x20values.\x20For\n\ - \x20example,\x20a\x20table\x20which\x20specifies\x20millisecond\x20granu\ - larity\x20will\x20only\x20allow\n\x20values\x20of\x20\"timestamp_micros\ - \"\x20which\x20are\x20multiples\x20of\x201000.\n\n\r\n\x05\x04\x03\x02\0\ - \x04\x12\x04G\x02@\x0e\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03G\x02\x07\n\ - \x0c\n\x05\x04\x03\x02\0\x01\x12\x03G\x08\x18\n\x0c\n\x05\x04\x03\x02\0\ - \x03\x12\x03G\x1b\x1c\n\x7f\n\x04\x04\x03\x02\x01\x12\x03L\x02\x12\x1ar\ - \x20The\x20value\x20stored\x20in\x20the\x20cell.\n\x20May\x20contain\x20\ - any\x20byte\x20string,\x20including\x20the\x20empty\x20string,\x20up\x20\ - to\x20100MiB\x20in\n\x20length.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04L\ - \x02G\x1d\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03L\x02\x07\n\x0c\n\x05\ - \x04\x03\x02\x01\x01\x12\x03L\x08\r\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\ - \x03L\x10\x11\nY\n\x04\x04\x03\x02\x02\x12\x03O\x02\x1d\x1aL\x20Labels\ - \x20applied\x20to\x20the\x20cell\x20by\x20a\x20[RowFilter][google.bigtab\ - le.v1.RowFilter].\n\n\x0c\n\x05\x04\x03\x02\x02\x04\x12\x03O\x02\n\n\x0c\ - \n\x05\x04\x03\x02\x02\x05\x12\x03O\x0b\x11\n\x0c\n\x05\x04\x03\x02\x02\ - \x01\x12\x03O\x12\x18\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03O\x1b\x1c\n\ - 3\n\x02\x04\x04\x12\x04S\0Y\x01\x1a'\x20Specifies\x20a\x20contiguous\x20\ - range\x20of\x20rows.\n\n\n\n\x03\x04\x04\x01\x12\x03S\x08\x10\nU\n\x04\ - \x04\x04\x02\0\x12\x03U\x02\x16\x1aH\x20Inclusive\x20lower\x20bound.\x20\ - If\x20left\x20empty,\x20interpreted\x20as\x20the\x20empty\x20string.\n\n\ - \r\n\x05\x04\x04\x02\0\x04\x12\x04U\x02S\x12\n\x0c\n\x05\x04\x04\x02\0\ - \x05\x12\x03U\x02\x07\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03U\x08\x11\n\ - \x0c\n\x05\x04\x04\x02\0\x03\x12\x03U\x14\x15\nM\n\x04\x04\x04\x02\x01\ - \x12\x03X\x02\x14\x1a@\x20Exclusive\x20upper\x20bound.\x20If\x20left\x20\ - empty,\x20interpreted\x20as\x20infinity.\n\n\r\n\x05\x04\x04\x02\x01\x04\ - \x12\x04X\x02U\x16\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03X\x02\x07\n\ - \x0c\n\x05\x04\x04\x02\x01\x01\x12\x03X\x08\x0f\n\x0c\n\x05\x04\x04\x02\ - \x01\x03\x12\x03X\x12\x13\n5\n\x02\x04\x05\x12\x04\\\0b\x01\x1a)\x20Spec\ - ifies\x20a\x20non-contiguous\x20set\x20of\x20rows.\n\n\n\n\x03\x04\x05\ - \x01\x12\x03\\\x08\x0e\n/\n\x04\x04\x05\x02\0\x12\x03^\x02\x1e\x1a\"\x20\ - Single\x20rows\x20included\x20in\x20the\x20set.\n\n\x0c\n\x05\x04\x05\ - \x02\0\x04\x12\x03^\x02\n\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03^\x0b\x10\ - \n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03^\x11\x19\n\x0c\n\x05\x04\x05\x02\ - \0\x03\x12\x03^\x1c\x1d\n9\n\x04\x04\x05\x02\x01\x12\x03a\x02#\x1a,\x20C\ - ontiguous\x20row\x20ranges\x20included\x20in\x20the\x20set.\n\n\x0c\n\ - \x05\x04\x05\x02\x01\x04\x12\x03a\x02\n\n\x0c\n\x05\x04\x05\x02\x01\x06\ - \x12\x03a\x0b\x13\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03a\x14\x1e\n\x0c\ - \n\x05\x04\x05\x02\x01\x03\x12\x03a!\"\n\xeb\x01\n\x02\x04\x06\x12\x04h\ - \0\x7f\x01\x1a\xde\x01\x20Specifies\x20a\x20contiguous\x20range\x20of\ - \x20columns\x20within\x20a\x20single\x20column\x20family.\n\x20The\x20ra\ - nge\x20spans\x20from\x20:\x20to\n\x20:,\x20where\x20both\x20bounds\x20can\x20be\ - \x20either\x20inclusive\x20or\n\x20exclusive.\n\n\n\n\x03\x04\x06\x01\ - \x12\x03h\x08\x13\nK\n\x04\x04\x06\x02\0\x12\x03j\x02\x19\x1a>\x20The\ - \x20name\x20of\x20the\x20column\x20family\x20within\x20which\x20this\x20\ - range\x20falls.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04j\x02h\x15\n\x0c\n\ - \x05\x04\x06\x02\0\x05\x12\x03j\x02\x08\n\x0c\n\x05\x04\x06\x02\0\x01\ - \x12\x03j\t\x14\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03j\x17\x18\n\xa1\x01\ - \n\x04\x04\x06\x08\0\x12\x04n\x02t\x03\x1a\x92\x01\x20The\x20column\x20q\ - ualifier\x20at\x20which\x20to\x20start\x20the\x20range\x20(within\x20'co\ - lumn_family').\n\x20If\x20neither\x20field\x20is\x20set,\x20interpreted\ - \x20as\x20the\x20empty\x20string,\x20inclusive.\n\n\x0c\n\x05\x04\x06\ - \x08\0\x01\x12\x03n\x08\x17\nG\n\x04\x04\x06\x02\x01\x12\x03p\x04(\x1a:\ - \x20Used\x20when\x20giving\x20an\x20inclusive\x20lower\x20bound\x20for\ - \x20the\x20range.\n\n\x0c\n\x05\x04\x06\x02\x01\x05\x12\x03p\x04\t\n\x0c\ - \n\x05\x04\x06\x02\x01\x01\x12\x03p\n#\n\x0c\n\x05\x04\x06\x02\x01\x03\ - \x12\x03p&'\nG\n\x04\x04\x06\x02\x02\x12\x03s\x04(\x1a:\x20Used\x20when\ - \x20giving\x20an\x20exclusive\x20lower\x20bound\x20for\x20the\x20range.\ - \n\n\x0c\n\x05\x04\x06\x02\x02\x05\x12\x03s\x04\t\n\x0c\n\x05\x04\x06\ - \x02\x02\x01\x12\x03s\n#\n\x0c\n\x05\x04\x06\x02\x02\x03\x12\x03s&'\n\ - \xa2\x01\n\x04\x04\x06\x08\x01\x12\x04x\x02~\x03\x1a\x93\x01\x20The\x20c\ - olumn\x20qualifier\x20at\x20which\x20to\x20end\x20the\x20range\x20(withi\ - n\x20'column_family').\n\x20If\x20neither\x20field\x20is\x20set,\x20inte\ - rpreted\x20as\x20the\x20infinite\x20string,\x20exclusive.\n\n\x0c\n\x05\ - \x04\x06\x08\x01\x01\x12\x03x\x08\x15\nG\n\x04\x04\x06\x02\x03\x12\x03z\ - \x04&\x1a:\x20Used\x20when\x20giving\x20an\x20inclusive\x20upper\x20boun\ - d\x20for\x20the\x20range.\n\n\x0c\n\x05\x04\x06\x02\x03\x05\x12\x03z\x04\ - \t\n\x0c\n\x05\x04\x06\x02\x03\x01\x12\x03z\n!\n\x0c\n\x05\x04\x06\x02\ - \x03\x03\x12\x03z$%\nG\n\x04\x04\x06\x02\x04\x12\x03}\x04&\x1a:\x20Used\ - \x20when\x20giving\x20an\x20exclusive\x20upper\x20bound\x20for\x20the\ - \x20range.\n\n\x0c\n\x05\x04\x06\x02\x04\x05\x12\x03}\x04\t\n\x0c\n\x05\ - \x04\x06\x02\x04\x01\x12\x03}\n!\n\x0c\n\x05\x04\x06\x02\x04\x03\x12\x03\ - }$%\nG\n\x02\x04\x07\x12\x06\x82\x01\0\x88\x01\x01\x1a9\x20Specified\x20\ - a\x20contiguous\x20range\x20of\x20microsecond\x20timestamps.\n\n\x0b\n\ - \x03\x04\x07\x01\x12\x04\x82\x01\x08\x16\nG\n\x04\x04\x07\x02\0\x12\x04\ - \x84\x01\x02#\x1a9\x20Inclusive\x20lower\x20bound.\x20If\x20left\x20empt\ - y,\x20interpreted\x20as\x200.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\ - \x84\x01\x02\x82\x01\x18\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\x84\x01\x02\ - \x07\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x84\x01\x08\x1e\n\r\n\x05\x04\ - \x07\x02\0\x03\x12\x04\x84\x01!\"\nN\n\x04\x04\x07\x02\x01\x12\x04\x87\ - \x01\x02!\x1a@\x20Exclusive\x20upper\x20bound.\x20If\x20left\x20empty,\ - \x20interpreted\x20as\x20infinity.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\ - \x06\x87\x01\x02\x84\x01#\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\x87\x01\ - \x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\x87\x01\x08\x1c\n\r\n\x05\ - \x04\x07\x02\x01\x03\x12\x04\x87\x01\x1f\x20\n@\n\x02\x04\x08\x12\x06\ - \x8b\x01\0\x9f\x01\x01\x1a2\x20Specifies\x20a\x20contiguous\x20range\x20\ - of\x20raw\x20byte\x20values.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\x8b\x01\ - \x08\x12\n~\n\x04\x04\x08\x08\0\x12\x06\x8e\x01\x02\x94\x01\x03\x1an\x20\ - The\x20value\x20at\x20which\x20to\x20start\x20the\x20range.\n\x20If\x20n\ - either\x20field\x20is\x20set,\x20interpreted\x20as\x20the\x20empty\x20st\ - ring,\x20inclusive.\n\n\r\n\x05\x04\x08\x08\0\x01\x12\x04\x8e\x01\x08\ - \x13\nH\n\x04\x04\x08\x02\0\x12\x04\x90\x01\x04$\x1a:\x20Used\x20when\ - \x20giving\x20an\x20inclusive\x20lower\x20bound\x20for\x20the\x20range.\ - \n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\x90\x01\x04\t\n\r\n\x05\x04\x08\ - \x02\0\x01\x12\x04\x90\x01\n\x1f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x90\ - \x01\"#\nH\n\x04\x04\x08\x02\x01\x12\x04\x93\x01\x04$\x1a:\x20Used\x20wh\ - en\x20giving\x20an\x20exclusive\x20lower\x20bound\x20for\x20the\x20range\ - .\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\x93\x01\x04\t\n\r\n\x05\x04\ - \x08\x02\x01\x01\x12\x04\x93\x01\n\x1f\n\r\n\x05\x04\x08\x02\x01\x03\x12\ - \x04\x93\x01\"#\n\x7f\n\x04\x04\x08\x08\x01\x12\x06\x98\x01\x02\x9e\x01\ - \x03\x1ao\x20The\x20value\x20at\x20which\x20to\x20end\x20the\x20range.\n\ - \x20If\x20neither\x20field\x20is\x20set,\x20interpreted\x20as\x20the\x20\ - infinite\x20string,\x20exclusive.\n\n\r\n\x05\x04\x08\x08\x01\x01\x12\ - \x04\x98\x01\x08\x11\nH\n\x04\x04\x08\x02\x02\x12\x04\x9a\x01\x04\"\x1a:\ - \x20Used\x20when\x20giving\x20an\x20inclusive\x20upper\x20bound\x20for\ - \x20the\x20range.\n\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\x9a\x01\x04\t\ - \n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\x9a\x01\n\x1d\n\r\n\x05\x04\x08\ - \x02\x02\x03\x12\x04\x9a\x01\x20!\nH\n\x04\x04\x08\x02\x03\x12\x04\x9d\ - \x01\x04\"\x1a:\x20Used\x20when\x20giving\x20an\x20exclusive\x20upper\ - \x20bound\x20for\x20the\x20range.\n\n\r\n\x05\x04\x08\x02\x03\x05\x12\ - \x04\x9d\x01\x04\t\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\x9d\x01\n\x1d\n\ - \r\n\x05\x04\x08\x02\x03\x03\x12\x04\x9d\x01\x20!\n\xa5\x0f\n\x02\x04\t\ - \x12\x06\xc2\x01\0\xa4\x03\x01\x1a\x96\x0f\x20Takes\x20a\x20row\x20as\ - \x20input\x20and\x20produces\x20an\x20alternate\x20view\x20of\x20the\x20\ - row\x20based\x20on\n\x20specified\x20rules.\x20For\x20example,\x20a\x20R\ - owFilter\x20might\x20trim\x20down\x20a\x20row\x20to\x20include\n\x20just\ - \x20the\x20cells\x20from\x20columns\x20matching\x20a\x20given\x20regular\ - \x20expression,\x20or\x20might\n\x20return\x20all\x20the\x20cells\x20of\ - \x20a\x20row\x20but\x20not\x20their\x20values.\x20More\x20complicated\ - \x20filters\n\x20can\x20be\x20composed\x20out\x20of\x20these\x20componen\ - ts\x20to\x20express\x20requests\x20such\x20as,\x20\"within\n\x20every\ - \x20column\x20of\x20a\x20particular\x20family,\x20give\x20just\x20the\ - \x20two\x20most\x20recent\x20cells\n\x20which\x20are\x20older\x20than\ - \x20timestamp\x20X.\"\n\n\x20There\x20are\x20two\x20broad\x20categories\ - \x20of\x20RowFilters\x20(true\x20filters\x20and\x20transformers),\n\x20a\ - s\x20well\x20as\x20two\x20ways\x20to\x20compose\x20simple\x20filters\x20\ - into\x20more\x20complex\x20ones\n\x20(chains\x20and\x20interleaves).\x20\ - They\x20work\x20as\x20follows:\n\n\x20*\x20True\x20filters\x20alter\x20t\ - he\x20input\x20row\x20by\x20excluding\x20some\x20of\x20its\x20cells\x20w\ - holesale\n\x20from\x20the\x20output\x20row.\x20An\x20example\x20of\x20a\ - \x20true\x20filter\x20is\x20the\x20\"value_regex_filter\",\n\x20which\ - \x20excludes\x20cells\x20whose\x20values\x20don't\x20match\x20the\x20spe\ - cified\x20pattern.\x20All\n\x20regex\x20true\x20filters\x20use\x20RE2\ - \x20syntax\x20(https://github.com/google/re2/wiki/Syntax)\n\x20in\x20raw\ - \x20byte\x20mode\x20(RE2::Latin1),\x20and\x20are\x20evaluated\x20as\x20f\ - ull\x20matches.\x20An\n\x20important\x20point\x20to\x20keep\x20in\x20min\ - d\x20is\x20that\x20RE2(.)\x20is\x20equivalent\x20by\x20default\x20to\n\ - \x20RE2([^\\n]),\x20meaning\x20that\x20it\x20does\x20not\x20match\x20new\ - lines.\x20When\x20attempting\x20to\x20match\n\x20an\x20arbitrary\x20byte\ - ,\x20you\x20should\x20therefore\x20use\x20the\x20escape\x20sequence\x20'\ - \\C',\x20which\n\x20may\x20need\x20to\x20be\x20further\x20escaped\x20as\ - \x20'\\\\C'\x20in\x20your\x20client\x20language.\n\n\x20*\x20Transformer\ - s\x20alter\x20the\x20input\x20row\x20by\x20changing\x20the\x20values\x20\ - of\x20some\x20of\x20its\n\x20cells\x20in\x20the\x20output,\x20without\ - \x20excluding\x20them\x20completely.\x20Currently,\x20the\x20only\n\x20s\ - upported\x20transformer\x20is\x20the\x20\"strip_value_transformer\",\x20\ - which\x20replaces\x20every\n\x20cell's\x20value\x20with\x20the\x20empty\ - \x20string.\n\n\x20*\x20Chains\x20and\x20interleaves\x20are\x20described\ - \x20in\x20more\x20detail\x20in\x20the\n\x20RowFilter.Chain\x20and\x20Row\ - Filter.Interleave\x20documentation.\n\n\x20The\x20total\x20serialized\ - \x20size\x20of\x20a\x20RowFilter\x20message\x20must\x20not\n\x20exceed\ - \x204096\x20bytes,\x20and\x20RowFilters\x20may\x20not\x20be\x20nested\ - \x20within\x20each\x20other\n\x20(in\x20Chains\x20or\x20Interleaves)\x20\ - to\x20a\x20depth\x20of\x20more\x20than\x2020.\n\n\x0b\n\x03\x04\t\x01\ - \x12\x04\xc2\x01\x08\x11\nV\n\x04\x04\t\x03\0\x12\x06\xc4\x01\x02\xc9\ - \x01\x03\x1aF\x20A\x20RowFilter\x20which\x20sends\x20rows\x20through\x20\ - several\x20RowFilters\x20in\x20sequence.\n\n\r\n\x05\x04\t\x03\0\x01\x12\ - \x04\xc4\x01\n\x0f\n\xc9\x01\n\x06\x04\t\x03\0\x02\0\x12\x04\xc8\x01\x04\ - #\x1a\xb8\x01\x20The\x20elements\x20of\x20\"filters\"\x20are\x20chained\ - \x20together\x20to\x20process\x20the\x20input\x20row:\n\x20in\x20row\x20\ - ->\x20f(0)\x20->\x20intermediate\x20row\x20->\x20f(1)\x20->\x20...\x20->\ - \x20f(N)\x20->\x20out\x20row\n\x20The\x20full\x20chain\x20is\x20executed\ - \x20atomically.\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x04\x12\x04\xc8\x01\x04\ - \x0c\n\x0f\n\x07\x04\t\x03\0\x02\0\x06\x12\x04\xc8\x01\r\x16\n\x0f\n\x07\ - \x04\t\x03\0\x02\0\x01\x12\x04\xc8\x01\x17\x1e\n\x0f\n\x07\x04\t\x03\0\ - \x02\0\x03\x12\x04\xc8\x01!\"\nx\n\x04\x04\t\x03\x01\x12\x06\xcd\x01\x02\ - \xe7\x01\x03\x1ah\x20A\x20RowFilter\x20which\x20sends\x20each\x20row\x20\ - to\x20each\x20of\x20several\x20component\n\x20RowFilters\x20and\x20inter\ - leaves\x20the\x20results.\n\n\r\n\x05\x04\t\x03\x01\x01\x12\x04\xcd\x01\ - \n\x14\n\xe2\n\n\x06\x04\t\x03\x01\x02\0\x12\x04\xe6\x01\x04#\x1a\xd1\n\ - \x20The\x20elements\x20of\x20\"filters\"\x20all\x20process\x20a\x20copy\ - \x20of\x20the\x20input\x20row,\x20and\x20the\n\x20results\x20are\x20pool\ - ed,\x20sorted,\x20and\x20combined\x20into\x20a\x20single\x20output\x20ro\ - w.\n\x20If\x20multiple\x20cells\x20are\x20produced\x20with\x20the\x20sam\ - e\x20column\x20and\x20timestamp,\n\x20they\x20will\x20all\x20appear\x20i\ - n\x20the\x20output\x20row\x20in\x20an\x20unspecified\x20mutual\x20order.\ - \n\x20Consider\x20the\x20following\x20example,\x20with\x20three\x20filte\ - rs:\n\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\x20input\x20row\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--------------------------------------------\ - ---------\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|\n\x20\x20\x20\x20\x20\x20\x20f(0)\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20f(1)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20f(2)\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|\n\x201:\ - \x20foo,bar,10,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foo,\ - bar,10,z\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,bar,\ - 7,a\n\x202:\x20foo,blah,11,z\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20far,blah,5,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - far,blah,5,x\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|\n\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|\n\x201:\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20foo,bar,10,z\x20\x20\x20\x20\x20//\x20could\x20have\x20switc\ - hed\x20with\x20#2\n\x202:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foo,bar,10,x\x20\x20\ - \x20\x20\x20//\x20could\x20have\x20switched\x20with\x20#1\n\x203:\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20foo,blah,11,z\n\x204:\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,\ - bar,7,a\n\x205:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,blah,5,x\x20\x20\x20\x20\x20\ - //\x20identical\x20to\x20#6\n\x206:\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,blah,5,x\ - \x20\x20\x20\x20\x20//\x20identical\x20to\x20#5\n\x20All\x20interleaved\ - \x20filters\x20are\x20executed\x20atomically.\n\n\x0f\n\x07\x04\t\x03\ - \x01\x02\0\x04\x12\x04\xe6\x01\x04\x0c\n\x0f\n\x07\x04\t\x03\x01\x02\0\ - \x06\x12\x04\xe6\x01\r\x16\n\x0f\n\x07\x04\t\x03\x01\x02\0\x01\x12\x04\ - \xe6\x01\x17\x1e\n\x0f\n\x07\x04\t\x03\x01\x02\0\x03\x12\x04\xe6\x01!\"\ - \n\xb4\x03\n\x04\x04\t\x03\x02\x12\x06\xf0\x01\x02\xfd\x01\x03\x1a\xa3\ - \x03\x20A\x20RowFilter\x20which\x20evaluates\x20one\x20of\x20two\x20poss\ - ible\x20RowFilters,\x20depending\x20on\n\x20whether\x20or\x20not\x20a\ - \x20predicate\x20RowFilter\x20outputs\x20any\x20cells\x20from\x20the\x20\ - input\x20row.\n\n\x20IMPORTANT\x20NOTE:\x20The\x20predicate\x20filter\ - \x20does\x20not\x20execute\x20atomically\x20with\x20the\n\x20true\x20and\ - \x20false\x20filters,\x20which\x20may\x20lead\x20to\x20inconsistent\x20o\ - r\x20unexpected\n\x20results.\x20Additionally,\x20Condition\x20filters\ - \x20have\x20poor\x20performance,\x20especially\n\x20when\x20filters\x20a\ - re\x20set\x20for\x20the\x20false\x20condition.\n\n\r\n\x05\x04\t\x03\x02\ - \x01\x12\x04\xf0\x01\n\x13\n\xa0\x01\n\x06\x04\t\x03\x02\x02\0\x12\x04\ - \xf3\x01\x04#\x1a\x8f\x01\x20If\x20\"predicate_filter\"\x20outputs\x20an\ - y\x20cells,\x20then\x20\"true_filter\"\x20will\x20be\n\x20evaluated\x20o\ - n\x20the\x20input\x20row.\x20Otherwise,\x20\"false_filter\"\x20will\x20b\ - e\x20evaluated.\n\n\x11\n\x07\x04\t\x03\x02\x02\0\x04\x12\x06\xf3\x01\ - \x04\xf0\x01\x15\n\x0f\n\x07\x04\t\x03\x02\x02\0\x06\x12\x04\xf3\x01\x04\ - \r\n\x0f\n\x07\x04\t\x03\x02\x02\0\x01\x12\x04\xf3\x01\x0e\x1e\n\x0f\n\ - \x07\x04\t\x03\x02\x02\0\x03\x12\x04\xf3\x01!\"\n\xa2\x01\n\x06\x04\t\ - \x03\x02\x02\x01\x12\x04\xf7\x01\x04\x1e\x1a\x91\x01\x20The\x20filter\ - \x20to\x20apply\x20to\x20the\x20input\x20row\x20if\x20\"predicate_filter\ - \"\x20returns\x20any\n\x20results.\x20If\x20not\x20provided,\x20no\x20re\ - sults\x20will\x20be\x20returned\x20in\x20the\x20true\x20case.\n\n\x11\n\ - \x07\x04\t\x03\x02\x02\x01\x04\x12\x06\xf7\x01\x04\xf3\x01#\n\x0f\n\x07\ - \x04\t\x03\x02\x02\x01\x06\x12\x04\xf7\x01\x04\r\n\x0f\n\x07\x04\t\x03\ - \x02\x02\x01\x01\x12\x04\xf7\x01\x0e\x19\n\x0f\n\x07\x04\t\x03\x02\x02\ - \x01\x03\x12\x04\xf7\x01\x1c\x1d\n\xac\x01\n\x06\x04\t\x03\x02\x02\x02\ - \x12\x04\xfc\x01\x04\x1f\x1a\x9b\x01\x20The\x20filter\x20to\x20apply\x20\ - to\x20the\x20input\x20row\x20if\x20\"predicate_filter\"\x20does\x20not\n\ - \x20return\x20any\x20results.\x20If\x20not\x20provided,\x20no\x20results\ - \x20will\x20be\x20returned\x20in\x20the\n\x20false\x20case.\n\n\x11\n\ - \x07\x04\t\x03\x02\x02\x02\x04\x12\x06\xfc\x01\x04\xf7\x01\x1e\n\x0f\n\ - \x07\x04\t\x03\x02\x02\x02\x06\x12\x04\xfc\x01\x04\r\n\x0f\n\x07\x04\t\ - \x03\x02\x02\x02\x01\x12\x04\xfc\x01\x0e\x1a\n\x0f\n\x07\x04\t\x03\x02\ - \x02\x02\x03\x12\x04\xfc\x01\x1d\x1e\n\x86\x01\n\x04\x04\t\x08\0\x12\x06\ - \x81\x02\x02\xa3\x03\x03\x1av\x20Which\x20of\x20the\x20possible\x20RowFi\ - lter\x20types\x20to\x20apply.\x20If\x20none\x20are\x20set,\x20this\n\x20\ - RowFilter\x20returns\x20all\x20cells\x20in\x20the\x20input\x20row.\n\n\r\ - \n\x05\x04\t\x08\0\x01\x12\x04\x81\x02\x08\x0e\ni\n\x04\x04\t\x02\0\x12\ - \x04\x84\x02\x04\x14\x1a[\x20Applies\x20several\x20RowFilters\x20to\x20t\ - he\x20data\x20in\x20sequence,\x20progressively\n\x20narrowing\x20the\x20\ - results.\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\x84\x02\x04\t\n\r\n\x05\x04\ - \t\x02\0\x01\x12\x04\x84\x02\n\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x84\ - \x02\x12\x13\n]\n\x04\x04\t\x02\x01\x12\x04\x88\x02\x04\x1e\x1aO\x20Appl\ - ies\x20several\x20RowFilters\x20to\x20the\x20data\x20in\x20parallel\x20a\ - nd\x20combines\x20the\n\x20results.\n\n\r\n\x05\x04\t\x02\x01\x06\x12\ - \x04\x88\x02\x04\x0e\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x88\x02\x0f\x19\ - \n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x88\x02\x1c\x1d\nq\n\x04\x04\t\x02\ - \x02\x12\x04\x8c\x02\x04\x1c\x1ac\x20Applies\x20one\x20of\x20two\x20poss\ - ible\x20RowFilters\x20to\x20the\x20data\x20based\x20on\x20the\x20output\ - \x20of\n\x20a\x20predicate\x20RowFilter.\n\n\r\n\x05\x04\t\x02\x02\x06\ - \x12\x04\x8c\x02\x04\r\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\x8c\x02\x0e\ - \x17\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\x8c\x02\x1a\x1b\n\x97\x14\n\x04\ - \x04\t\x02\x03\x12\x04\xc9\x02\x04\x13\x1a\x88\x14\x20ADVANCED\x20USE\ - \x20ONLY.\n\x20Hook\x20for\x20introspection\x20into\x20the\x20RowFilter.\ - \x20Outputs\x20all\x20cells\x20directly\x20to\n\x20the\x20output\x20of\ - \x20the\x20read\x20rather\x20than\x20to\x20any\x20parent\x20filter.\x20C\ - onsider\x20the\n\x20following\x20example:\n\n\x20Chain(\n\x20\x20\x20Fam\ - ilyRegex(\"A\"),\n\x20\x20\x20Interleave(\n\x20\x20\x20\x20\x20All(),\n\ - \x20\x20\x20\x20\x20Chain(Label(\"foo\"),\x20Sink())\n\x20\x20\x20),\n\ - \x20\x20\x20QualifierRegex(\"B\")\n\x20)\n\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\ - A,A,1,w\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\x20A,B,2,x\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\x20B,B,4,z\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|\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20FamilyRegex(\"A\")\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|\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\x20A,A,1,w\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\x20A,B,2,x\ - \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|\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\x20\x20|\x20\x20\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\ - \x20All()\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20Label(foo)\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|\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20A,A,1,w\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20A,A,1,w,labels:[foo]\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20A,B,2,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20A,B,2,x,labels:[foo]\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|\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\x20Sink()\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\ - |\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20+--------\ - ----+\x20\x20\x20\x20\x20\x20x------+\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20A,A,1,w,labels:[foo]\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\x20A,B,2,x,labels:[foo]\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\x20A,A,1,w\x20\x20\x20\x20\x20\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\x20A,B,2,x\x20\x20\x20\x20\x20\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\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QualifierRegex(\"B\")\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\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20A,B,2,x\x20\x20\x20\x20\x20\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\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|\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\x20A,A,1,w,labels:[foo]\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\ - \x20A,B,2,x,labels:[foo]\x20\x20//\x20could\x20be\x20switched\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\x20A,B,2,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20//\x20could\x20be\x20switched\n\n\x20Despite\x20being\ - \x20excluded\x20by\x20the\x20qualifier\x20filter,\x20a\x20copy\x20of\x20\ - every\x20cell\n\x20that\x20reaches\x20the\x20sink\x20is\x20present\x20in\ - \x20the\x20final\x20result.\n\n\x20As\x20with\x20an\x20[Interleave][goog\ - le.bigtable.v1.RowFilter.Interleave],\n\x20duplicate\x20cells\x20are\x20\ - possible,\x20and\x20appear\x20in\x20an\x20unspecified\x20mutual\x20order\ - .\n\x20In\x20this\x20case\x20we\x20have\x20a\x20duplicate\x20with\x20col\ - umn\x20\"A:B\"\x20and\x20timestamp\x202,\n\x20because\x20one\x20copy\x20\ - passed\x20through\x20the\x20all\x20filter\x20while\x20the\x20other\x20wa\ - s\n\x20passed\x20through\x20the\x20label\x20and\x20sink.\x20Note\x20that\ - \x20one\x20copy\x20has\x20label\x20\"foo\",\n\x20while\x20the\x20other\ - \x20does\x20not.\n\n\x20Cannot\x20be\x20used\x20within\x20the\x20`predic\ - ate_filter`,\x20`true_filter`,\x20or\n\x20`false_filter`\x20of\x20a\x20[\ - Condition][google.bigtable.v1.RowFilter.Condition].\n\n\r\n\x05\x04\t\ - \x02\x03\x05\x12\x04\xc9\x02\x04\x08\n\r\n\x05\x04\t\x02\x03\x01\x12\x04\ - \xc9\x02\t\r\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xc9\x02\x10\x12\n\x8a\ - \x01\n\x04\x04\t\x02\x04\x12\x04\xcd\x02\x04\x1e\x1a|\x20Matches\x20all\ - \x20cells,\x20regardless\x20of\x20input.\x20Functionally\x20equivalent\ - \x20to\n\x20leaving\x20`filter`\x20unset,\x20but\x20included\x20for\x20c\ - ompleteness.\n\n\r\n\x05\x04\t\x02\x04\x05\x12\x04\xcd\x02\x04\x08\n\r\n\ - \x05\x04\t\x02\x04\x01\x12\x04\xcd\x02\t\x18\n\r\n\x05\x04\t\x02\x04\x03\ - \x12\x04\xcd\x02\x1b\x1d\nw\n\x04\x04\t\x02\x05\x12\x04\xd1\x02\x04\x1f\ - \x1ai\x20Does\x20not\x20match\x20any\x20cells,\x20regardless\x20of\x20in\ - put.\x20Useful\x20for\x20temporarily\n\x20disabling\x20just\x20part\x20o\ - f\x20a\x20filter.\n\n\r\n\x05\x04\t\x02\x05\x05\x12\x04\xd1\x02\x04\x08\ - \n\r\n\x05\x04\t\x02\x05\x01\x12\x04\xd1\x02\t\x19\n\r\n\x05\x04\t\x02\ - \x05\x03\x12\x04\xd1\x02\x1c\x1e\n\xa4\x03\n\x04\x04\t\x02\x06\x12\x04\ - \xda\x02\x04#\x1a\x95\x03\x20Matches\x20only\x20cells\x20from\x20rows\ - \x20whose\x20keys\x20satisfy\x20the\x20given\x20RE2\x20regex.\x20In\n\ - \x20other\x20words,\x20passes\x20through\x20the\x20entire\x20row\x20when\ - \x20the\x20key\x20matches,\x20and\n\x20otherwise\x20produces\x20an\x20em\ - pty\x20row.\n\x20Note\x20that,\x20since\x20row\x20keys\x20can\x20contain\ - \x20arbitrary\x20bytes,\x20the\x20'\\C'\x20escape\n\x20sequence\x20must\ - \x20be\x20used\x20if\x20a\x20true\x20wildcard\x20is\x20desired.\x20The\ - \x20'.'\x20character\n\x20will\x20not\x20match\x20the\x20new\x20line\x20\ - character\x20'\\n',\x20which\x20may\x20be\x20present\x20in\x20a\n\x20bin\ - ary\x20key.\n\n\r\n\x05\x04\t\x02\x06\x05\x12\x04\xda\x02\x04\t\n\r\n\ - \x05\x04\t\x02\x06\x01\x12\x04\xda\x02\n\x1e\n\r\n\x05\x04\t\x02\x06\x03\ - \x12\x04\xda\x02!\"\ny\n\x04\x04\t\x02\x07\x12\x04\xde\x02\x04\"\x1ak\ - \x20Matches\x20all\x20cells\x20from\x20a\x20row\x20with\x20probability\ - \x20p,\x20and\x20matches\x20no\x20cells\n\x20from\x20the\x20row\x20with\ - \x20probability\x201-p.\n\n\r\n\x05\x04\t\x02\x07\x05\x12\x04\xde\x02\ - \x04\n\n\r\n\x05\x04\t\x02\x07\x01\x12\x04\xde\x02\x0b\x1c\n\r\n\x05\x04\ - \t\x02\x07\x03\x12\x04\xde\x02\x1f!\n\xf0\x02\n\x04\x04\t\x02\x08\x12\ - \x04\xe6\x02\x04(\x1a\xe1\x02\x20Matches\x20only\x20cells\x20from\x20col\ - umns\x20whose\x20families\x20satisfy\x20the\x20given\x20RE2\n\x20regex.\ - \x20For\x20technical\x20reasons,\x20the\x20regex\x20must\x20not\x20conta\ - in\x20the\x20':'\n\x20character,\x20even\x20if\x20it\x20is\x20not\x20bei\ - ng\x20used\x20as\x20a\x20literal.\n\x20Note\x20that,\x20since\x20column\ - \x20families\x20cannot\x20contain\x20the\x20new\x20line\x20character\n\ - \x20'\\n',\x20it\x20is\x20sufficient\x20to\x20use\x20'.'\x20as\x20a\x20f\ - ull\x20wildcard\x20when\x20matching\n\x20column\x20family\x20names.\n\n\ - \r\n\x05\x04\t\x02\x08\x05\x12\x04\xe6\x02\x04\n\n\r\n\x05\x04\t\x02\x08\ - \x01\x12\x04\xe6\x02\x0b#\n\r\n\x05\x04\t\x02\x08\x03\x12\x04\xe6\x02&'\ - \n\xd2\x02\n\x04\x04\t\x02\t\x12\x04\xee\x02\x04,\x1a\xc3\x02\x20Matches\ - \x20only\x20cells\x20from\x20columns\x20whose\x20qualifiers\x20satisfy\ - \x20the\x20given\x20RE2\n\x20regex.\n\x20Note\x20that,\x20since\x20colum\ - n\x20qualifiers\x20can\x20contain\x20arbitrary\x20bytes,\x20the\x20'\\C'\ - \n\x20escape\x20sequence\x20must\x20be\x20used\x20if\x20a\x20true\x20wil\ - dcard\x20is\x20desired.\x20The\x20'.'\n\x20character\x20will\x20not\x20m\ - atch\x20the\x20new\x20line\x20character\x20'\\n',\x20which\x20may\x20be\ - \n\x20present\x20in\x20a\x20binary\x20qualifier.\n\n\r\n\x05\x04\t\x02\t\ - \x05\x12\x04\xee\x02\x04\t\n\r\n\x05\x04\t\x02\t\x01\x12\x04\xee\x02\n'\ - \n\r\n\x05\x04\t\x02\t\x03\x12\x04\xee\x02*+\nG\n\x04\x04\t\x02\n\x12\ - \x04\xf1\x02\x04(\x1a9\x20Matches\x20only\x20cells\x20from\x20columns\ - \x20within\x20the\x20given\x20range.\n\n\r\n\x05\x04\t\x02\n\x06\x12\x04\ - \xf1\x02\x04\x0f\n\r\n\x05\x04\t\x02\n\x01\x12\x04\xf1\x02\x10#\n\r\n\ - \x05\x04\t\x02\n\x03\x12\x04\xf1\x02&'\nJ\n\x04\x04\t\x02\x0b\x12\x04\ - \xf4\x02\x04.\x1a<\x20Matches\x20only\x20cells\x20with\x20timestamps\x20\ - within\x20the\x20given\x20range.\n\n\r\n\x05\x04\t\x02\x0b\x06\x12\x04\ - \xf4\x02\x04\x12\n\r\n\x05\x04\t\x02\x0b\x01\x12\x04\xf4\x02\x13)\n\r\n\ - \x05\x04\t\x02\x0b\x03\x12\x04\xf4\x02,-\n\xc3\x02\n\x04\x04\t\x02\x0c\ - \x12\x04\xfb\x02\x04!\x1a\xb4\x02\x20Matches\x20only\x20cells\x20with\ - \x20values\x20that\x20satisfy\x20the\x20given\x20regular\x20expression.\ - \n\x20Note\x20that,\x20since\x20cell\x20values\x20can\x20contain\x20arbi\ - trary\x20bytes,\x20the\x20'\\C'\x20escape\n\x20sequence\x20must\x20be\ - \x20used\x20if\x20a\x20true\x20wildcard\x20is\x20desired.\x20The\x20'.'\ - \x20character\n\x20will\x20not\x20match\x20the\x20new\x20line\x20charact\ - er\x20'\\n',\x20which\x20may\x20be\x20present\x20in\x20a\n\x20binary\x20\ - value.\n\n\r\n\x05\x04\t\x02\x0c\x05\x12\x04\xfb\x02\x04\t\n\r\n\x05\x04\ - \t\x02\x0c\x01\x12\x04\xfb\x02\n\x1c\n\r\n\x05\x04\t\x02\x0c\x03\x12\x04\ - \xfb\x02\x1f\x20\nP\n\x04\x04\t\x02\r\x12\x04\xfe\x02\x04'\x1aB\x20Match\ - es\x20only\x20cells\x20with\x20values\x20that\x20fall\x20within\x20the\ - \x20given\x20range.\n\n\r\n\x05\x04\t\x02\r\x06\x12\x04\xfe\x02\x04\x0e\ - \n\r\n\x05\x04\t\x02\r\x01\x12\x04\xfe\x02\x0f!\n\r\n\x05\x04\t\x02\r\ - \x03\x12\x04\xfe\x02$&\n\xcc\x01\n\x04\x04\t\x02\x0e\x12\x04\x83\x03\x04\ - +\x1a\xbd\x01\x20Skips\x20the\x20first\x20N\x20cells\x20of\x20each\x20ro\ - w,\x20matching\x20all\x20subsequent\x20cells.\n\x20If\x20duplicate\x20ce\ - lls\x20are\x20present,\x20as\x20is\x20possible\x20when\x20using\x20an\ - \x20Interleave,\n\x20each\x20copy\x20of\x20the\x20cell\x20is\x20counted\ - \x20separately.\n\n\r\n\x05\x04\t\x02\x0e\x05\x12\x04\x83\x03\x04\t\n\r\ - \n\x05\x04\t\x02\x0e\x01\x12\x04\x83\x03\n%\n\r\n\x05\x04\t\x02\x0e\x03\ - \x12\x04\x83\x03(*\n\xb4\x01\n\x04\x04\t\x02\x0f\x12\x04\x88\x03\x04*\ - \x1a\xa5\x01\x20Matches\x20only\x20the\x20first\x20N\x20cells\x20of\x20e\ - ach\x20row.\n\x20If\x20duplicate\x20cells\x20are\x20present,\x20as\x20is\ - \x20possible\x20when\x20using\x20an\x20Interleave,\n\x20each\x20copy\x20\ - of\x20the\x20cell\x20is\x20counted\x20separately.\n\n\r\n\x05\x04\t\x02\ - \x0f\x05\x12\x04\x88\x03\x04\t\n\r\n\x05\x04\t\x02\x0f\x01\x12\x04\x88\ - \x03\n$\n\r\n\x05\x04\t\x02\x0f\x03\x12\x04\x88\x03')\n\xf3\x02\n\x04\ - \x04\t\x02\x10\x12\x04\x90\x03\x04-\x1a\xe4\x02\x20Matches\x20only\x20th\ - e\x20most\x20recent\x20N\x20cells\x20within\x20each\x20column.\x20For\ - \x20example,\n\x20if\x20N=2,\x20this\x20filter\x20would\x20match\x20colu\ - mn\x20\"foo:bar\"\x20at\x20timestamps\x2010\x20and\x209,\n\x20skip\x20al\ - l\x20earlier\x20cells\x20in\x20\"foo:bar\",\x20and\x20then\x20begin\x20m\ - atching\x20again\x20in\n\x20column\x20\"foo:bar2\".\n\x20If\x20duplicate\ - \x20cells\x20are\x20present,\x20as\x20is\x20possible\x20when\x20using\ - \x20an\x20Interleave,\n\x20each\x20copy\x20of\x20the\x20cell\x20is\x20co\ - unted\x20separately.\n\n\r\n\x05\x04\t\x02\x10\x05\x12\x04\x90\x03\x04\t\ - \n\r\n\x05\x04\t\x02\x10\x01\x12\x04\x90\x03\n'\n\r\n\x05\x04\t\x02\x10\ - \x03\x12\x04\x90\x03*,\nA\n\x04\x04\t\x02\x11\x12\x04\x93\x03\x04&\x1a3\ - \x20Replaces\x20each\x20cell's\x20value\x20with\x20the\x20empty\x20strin\ - g.\n\n\r\n\x05\x04\t\x02\x11\x05\x12\x04\x93\x03\x04\x08\n\r\n\x05\x04\t\ - \x02\x11\x01\x12\x04\x93\x03\t\x20\n\r\n\x05\x04\t\x02\x11\x03\x12\x04\ - \x93\x03#%\n\xf5\x04\n\x04\x04\t\x02\x12\x12\x04\xa2\x03\x04(\x1a\xe6\ - \x04\x20Applies\x20the\x20given\x20label\x20to\x20all\x20cells\x20in\x20\ - the\x20output\x20row.\x20This\x20allows\n\x20the\x20client\x20to\x20dete\ - rmine\x20which\x20results\x20were\x20produced\x20from\x20which\x20part\ - \x20of\n\x20the\x20filter.\n\n\x20Values\x20must\x20be\x20at\x20most\x20\ - 15\x20characters\x20in\x20length,\x20and\x20match\x20the\x20RE2\n\x20pat\ - tern\x20[a-z0-9\\\\-]+\n\n\x20Due\x20to\x20a\x20technical\x20limitation,\ - \x20it\x20is\x20not\x20currently\x20possible\x20to\x20apply\n\x20multipl\ - e\x20labels\x20to\x20a\x20cell.\x20As\x20a\x20result,\x20a\x20Chain\x20m\ - ay\x20have\x20no\x20more\x20than\n\x20one\x20sub-filter\x20which\x20cont\ - ains\x20a\x20apply_label_transformer.\x20It\x20is\x20okay\x20for\n\x20an\ - \x20Interleave\x20to\x20contain\x20multiple\x20apply_label_transformers,\ - \x20as\x20they\x20will\n\x20be\x20applied\x20to\x20separate\x20copies\ - \x20of\x20the\x20input.\x20This\x20may\x20be\x20relaxed\x20in\x20the\n\ - \x20future.\n\n\r\n\x05\x04\t\x02\x12\x05\x12\x04\xa2\x03\x04\n\n\r\n\ - \x05\x04\t\x02\x12\x01\x12\x04\xa2\x03\x0b\"\n\r\n\x05\x04\t\x02\x12\x03\ - \x12\x04\xa2\x03%'\nR\n\x02\x04\n\x12\x06\xa7\x03\0\xe4\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\xa7\x03\ - \x08\x10\nH\n\x04\x04\n\x03\0\x12\x06\xa9\x03\x02\xbb\x03\x03\x1a8\x20A\ - \x20Mutation\x20which\x20sets\x20the\x20value\x20of\x20the\x20specified\ - \x20cell.\n\n\r\n\x05\x04\n\x03\0\x01\x12\x04\xa9\x03\n\x11\nk\n\x06\x04\ - \n\x03\0\x02\0\x12\x04\xac\x03\x04\x1b\x1a[\x20The\x20name\x20of\x20the\ - \x20family\x20into\x20which\x20new\x20data\x20should\x20be\x20written.\n\ - \x20Must\x20match\x20[-_.a-zA-Z0-9]+\n\n\x11\n\x07\x04\n\x03\0\x02\0\x04\ - \x12\x06\xac\x03\x04\xa9\x03\x13\n\x0f\n\x07\x04\n\x03\0\x02\0\x05\x12\ - \x04\xac\x03\x04\n\n\x0f\n\x07\x04\n\x03\0\x02\0\x01\x12\x04\xac\x03\x0b\ - \x16\n\x0f\n\x07\x04\n\x03\0\x02\0\x03\x12\x04\xac\x03\x19\x1a\n\x89\x01\ - \n\x06\x04\n\x03\0\x02\x01\x12\x04\xb0\x03\x04\x1f\x1ay\x20The\x20qualif\ - ier\x20of\x20the\x20column\x20into\x20which\x20new\x20data\x20should\x20\ - be\x20written.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\x20\ - the\x20empty\x20string.\n\n\x11\n\x07\x04\n\x03\0\x02\x01\x04\x12\x06\ - \xb0\x03\x04\xac\x03\x1b\n\x0f\n\x07\x04\n\x03\0\x02\x01\x05\x12\x04\xb0\ - \x03\x04\t\n\x0f\n\x07\x04\n\x03\0\x02\x01\x01\x12\x04\xb0\x03\n\x1a\n\ - \x0f\n\x07\x04\n\x03\0\x02\x01\x03\x12\x04\xb0\x03\x1d\x1e\n\xd3\x02\n\ - \x06\x04\n\x03\0\x02\x02\x12\x04\xb7\x03\x04\x1f\x1a\xc2\x02\x20The\x20t\ - imestamp\x20of\x20the\x20cell\x20into\x20which\x20new\x20data\x20should\ - \x20be\x20written.\n\x20Use\x20-1\x20for\x20current\x20Bigtable\x20serve\ - r\x20time.\n\x20Otherwise,\x20the\x20client\x20should\x20set\x20this\x20\ - value\x20itself,\x20noting\x20that\x20the\n\x20default\x20value\x20is\ - \x20a\x20timestamp\x20of\x20zero\x20if\x20the\x20field\x20is\x20left\x20\ - unspecified.\n\x20Values\x20must\x20match\x20the\x20\"granularity\"\x20o\ - f\x20the\x20table\x20(e.g.\x20micros,\x20millis).\n\n\x11\n\x07\x04\n\ - \x03\0\x02\x02\x04\x12\x06\xb7\x03\x04\xb0\x03\x1f\n\x0f\n\x07\x04\n\x03\ - \0\x02\x02\x05\x12\x04\xb7\x03\x04\t\n\x0f\n\x07\x04\n\x03\0\x02\x02\x01\ - \x12\x04\xb7\x03\n\x1a\n\x0f\n\x07\x04\n\x03\0\x02\x02\x03\x12\x04\xb7\ - \x03\x1d\x1e\nB\n\x06\x04\n\x03\0\x02\x03\x12\x04\xba\x03\x04\x14\x1a2\ - \x20The\x20value\x20to\x20be\x20written\x20into\x20the\x20specified\x20c\ - ell.\n\n\x11\n\x07\x04\n\x03\0\x02\x03\x04\x12\x06\xba\x03\x04\xb7\x03\ - \x1f\n\x0f\n\x07\x04\n\x03\0\x02\x03\x05\x12\x04\xba\x03\x04\t\n\x0f\n\ - \x07\x04\n\x03\0\x02\x03\x01\x12\x04\xba\x03\n\x0f\n\x0f\n\x07\x04\n\x03\ - \0\x02\x03\x03\x12\x04\xba\x03\x12\x13\n\x8d\x01\n\x04\x04\n\x03\x01\x12\ - \x06\xbf\x03\x02\xca\x03\x03\x1a}\x20A\x20Mutation\x20which\x20deletes\ - \x20cells\x20from\x20the\x20specified\x20column,\x20optionally\n\x20rest\ - ricting\x20the\x20deletions\x20to\x20a\x20given\x20timestamp\x20range.\n\ - \n\r\n\x05\x04\n\x03\x01\x01\x12\x04\xbf\x03\n\x1a\nh\n\x06\x04\n\x03\ - \x01\x02\0\x12\x04\xc2\x03\x04\x1b\x1aX\x20The\x20name\x20of\x20the\x20f\ - amily\x20from\x20which\x20cells\x20should\x20be\x20deleted.\n\x20Must\ - \x20match\x20[-_.a-zA-Z0-9]+\n\n\x11\n\x07\x04\n\x03\x01\x02\0\x04\x12\ - \x06\xc2\x03\x04\xbf\x03\x1c\n\x0f\n\x07\x04\n\x03\x01\x02\0\x05\x12\x04\ - \xc2\x03\x04\n\n\x0f\n\x07\x04\n\x03\x01\x02\0\x01\x12\x04\xc2\x03\x0b\ - \x16\n\x0f\n\x07\x04\n\x03\x01\x02\0\x03\x12\x04\xc2\x03\x19\x1a\n\x86\ - \x01\n\x06\x04\n\x03\x01\x02\x01\x12\x04\xc6\x03\x04\x1f\x1av\x20The\x20\ - qualifier\x20of\x20the\x20column\x20from\x20which\x20cells\x20should\x20\ - be\x20deleted.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\x20\ - the\x20empty\x20string.\n\n\x11\n\x07\x04\n\x03\x01\x02\x01\x04\x12\x06\ - \xc6\x03\x04\xc2\x03\x1b\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x05\x12\x04\ - \xc6\x03\x04\t\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x01\x12\x04\xc6\x03\n\ - \x1a\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x03\x12\x04\xc6\x03\x1d\x1e\nO\n\ - \x06\x04\n\x03\x01\x02\x02\x12\x04\xc9\x03\x04\"\x1a?\x20The\x20range\ - \x20of\x20timestamps\x20within\x20which\x20cells\x20should\x20be\x20dele\ - ted.\n\n\x11\n\x07\x04\n\x03\x01\x02\x02\x04\x12\x06\xc9\x03\x04\xc6\x03\ - \x1f\n\x0f\n\x07\x04\n\x03\x01\x02\x02\x06\x12\x04\xc9\x03\x04\x12\n\x0f\ - \n\x07\x04\n\x03\x01\x02\x02\x01\x12\x04\xc9\x03\x13\x1d\n\x0f\n\x07\x04\ - \n\x03\x01\x02\x02\x03\x12\x04\xc9\x03\x20!\nV\n\x04\x04\n\x03\x02\x12\ - \x06\xcd\x03\x02\xd1\x03\x03\x1aF\x20A\x20Mutation\x20which\x20deletes\ - \x20all\x20cells\x20from\x20the\x20specified\x20column\x20family.\n\n\r\ - \n\x05\x04\n\x03\x02\x01\x12\x04\xcd\x03\n\x1a\nh\n\x06\x04\n\x03\x02\ - \x02\0\x12\x04\xd0\x03\x04\x1b\x1aX\x20The\x20name\x20of\x20the\x20famil\ - y\x20from\x20which\x20cells\x20should\x20be\x20deleted.\n\x20Must\x20mat\ - ch\x20[-_.a-zA-Z0-9]+\n\n\x11\n\x07\x04\n\x03\x02\x02\0\x04\x12\x06\xd0\ - \x03\x04\xcd\x03\x1c\n\x0f\n\x07\x04\n\x03\x02\x02\0\x05\x12\x04\xd0\x03\ - \x04\n\n\x0f\n\x07\x04\n\x03\x02\x02\0\x01\x12\x04\xd0\x03\x0b\x16\n\x0f\ - \n\x07\x04\n\x03\x02\x02\0\x03\x12\x04\xd0\x03\x19\x1a\nK\n\x04\x04\n\ - \x03\x03\x12\x04\xd4\x03\x02\x1a\x1a=\x20A\x20Mutation\x20which\x20delet\ - es\x20all\x20cells\x20from\x20the\x20containing\x20row.\n\n\r\n\x05\x04\ - \n\x03\x03\x01\x12\x04\xd4\x03\n\x17\n@\n\x04\x04\n\x08\0\x12\x06\xd7\ - \x03\x02\xe3\x03\x03\x1a0\x20Which\x20of\x20the\x20possible\x20Mutation\ - \x20types\x20to\x20apply.\n\n\r\n\x05\x04\n\x08\0\x01\x12\x04\xd7\x03\ - \x08\x10\n#\n\x04\x04\n\x02\0\x12\x04\xd9\x03\x04\x19\x1a\x15\x20Set\x20\ - a\x20cell's\x20value.\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\xd9\x03\x04\ - \x0b\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xd9\x03\x0c\x14\n\r\n\x05\x04\n\ - \x02\0\x03\x12\x04\xd9\x03\x17\x18\n,\n\x04\x04\n\x02\x01\x12\x04\xdc\ - \x03\x04,\x1a\x1e\x20Deletes\x20cells\x20from\x20a\x20column.\n\n\r\n\ - \x05\x04\n\x02\x01\x06\x12\x04\xdc\x03\x04\x14\n\r\n\x05\x04\n\x02\x01\ - \x01\x12\x04\xdc\x03\x15'\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xdc\x03*+\ - \n3\n\x04\x04\n\x02\x02\x12\x04\xdf\x03\x04,\x1a%\x20Deletes\x20cells\ - \x20from\x20a\x20column\x20family.\n\n\r\n\x05\x04\n\x02\x02\x06\x12\x04\ - \xdf\x03\x04\x14\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xdf\x03\x15'\n\r\n\ - \x05\x04\n\x02\x02\x03\x12\x04\xdf\x03*+\n2\n\x04\x04\n\x02\x03\x12\x04\ - \xe2\x03\x04&\x1a$\x20Deletes\x20cells\x20from\x20the\x20entire\x20row.\ - \n\n\r\n\x05\x04\n\x02\x03\x06\x12\x04\xe2\x03\x04\x11\n\r\n\x05\x04\n\ - \x02\x03\x01\x12\x04\xe2\x03\x12!\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\ - \xe2\x03$%\nm\n\x02\x04\x0b\x12\x06\xe8\x03\0\x80\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\xe8\x03\x08\x1b\nt\n\x04\x04\x0b\x02\0\x12\x04\xeb\x03\ - \x02\x19\x1af\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\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\xeb\x03\x02\ - \xe8\x03\x1d\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xeb\x03\x02\x08\n\r\n\ - \x05\x04\x0b\x02\0\x01\x12\x04\xeb\x03\t\x14\n\r\n\x05\x04\x0b\x02\0\x03\ - \x12\x04\xeb\x03\x17\x18\n\x94\x01\n\x04\x04\x0b\x02\x01\x12\x04\xf0\x03\ - \x02\x1d\x1a\x85\x01\x20The\x20qualifier\x20of\x20the\x20column\x20to\ - \x20which\x20the\x20read/modify/write\x20should\x20be\n\x20applied.\n\ - \x20Can\x20be\x20any\x20byte\x20string,\x20including\x20the\x20empty\x20\ - string.\n\n\x0f\n\x05\x04\x0b\x02\x01\x04\x12\x06\xf0\x03\x02\xeb\x03\ - \x19\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xf0\x03\x02\x07\n\r\n\x05\x04\ - \x0b\x02\x01\x01\x12\x04\xf0\x03\x08\x18\n\r\n\x05\x04\x0b\x02\x01\x03\ - \x12\x04\xf0\x03\x1b\x1c\nj\n\x04\x04\x0b\x08\0\x12\x06\xf4\x03\x02\xff\ - \x03\x03\x1aZ\x20The\x20rule\x20used\x20to\x20determine\x20the\x20column\ - 's\x20new\x20latest\x20value\x20from\x20its\x20current\n\x20latest\x20va\ - lue.\n\n\r\n\x05\x04\x0b\x08\0\x01\x12\x04\xf4\x03\x08\x0c\n\xab\x01\n\ - \x04\x04\x0b\x02\x02\x12\x04\xf8\x03\x04\x1b\x1a\x9c\x01\x20Rule\x20spec\ - ifying\x20that\x20\"append_value\"\x20be\x20appended\x20to\x20the\x20exi\ - sting\x20value.\n\x20If\x20the\x20targeted\x20cell\x20is\x20unset,\x20it\ - \x20will\x20be\x20treated\x20as\x20containing\x20the\n\x20empty\x20strin\ - g.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\xf8\x03\x04\t\n\r\n\x05\x04\ - \x0b\x02\x02\x01\x12\x04\xf8\x03\n\x16\n\r\n\x05\x04\x0b\x02\x02\x03\x12\ - \x04\xf8\x03\x19\x1a\n\xb3\x02\n\x04\x04\x0b\x02\x03\x12\x04\xfe\x03\x04\ - \x1f\x1a\xa4\x02\x20Rule\x20specifying\x20that\x20\"increment_amount\"\ - \x20be\x20added\x20to\x20the\x20existing\x20value.\n\x20If\x20the\x20tar\ - geted\x20cell\x20is\x20unset,\x20it\x20will\x20be\x20treated\x20as\x20co\ - ntaining\x20a\x20zero.\n\x20Otherwise,\x20the\x20targeted\x20cell\x20mus\ - t\x20contain\x20an\x208-byte\x20value\x20(interpreted\n\x20as\x20a\x2064\ - -bit\x20big-endian\x20signed\x20integer),\x20or\x20the\x20entire\x20requ\ - est\x20will\x20fail.\n\n\r\n\x05\x04\x0b\x02\x03\x05\x12\x04\xfe\x03\x04\ - \t\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\xfe\x03\n\x1a\n\r\n\x05\x04\x0b\ - \x02\x03\x03\x12\x04\xfe\x03\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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service.rs deleted file mode 100644 index 0f20a38d50..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service.rs +++ /dev/null @@ -1,134 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/v1/bigtable_service.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n)google/bigtable/v1/bigtable_service.proto\x12\x12google.bigtable.v1\ - \x1a\x1cgoogle/api/annotations.proto\x1a&google/bigtable/v1/bigtable_dat\ - a.proto\x1a2google/bigtable/v1/bigtable_service_messages.proto\x1a\x1bgo\ - ogle/protobuf/empty.proto2\xdd\x08\n\x0fBigtableService\x12\xa5\x01\n\ - \x08ReadRows\x12#.google.bigtable.v1.ReadRowsRequest\x1a$.google.bigtabl\ - e.v1.ReadRowsResponse\"L\x82\xd3\xe4\x93\x02F\"A/v1/{table_name=projects\ - /*/zones/*/clusters/*/tables/*}/rows:read:\x01*0\x01\x12\xb7\x01\n\rSamp\ - leRowKeys\x12(.google.bigtable.v1.SampleRowKeysRequest\x1a).google.bigta\ - ble.v1.SampleRowKeysResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{table_name\ - =projects/*/zones/*/clusters/*/tables/*}/rows:sampleKeys0\x01\x12\xa3\ - \x01\n\tMutateRow\x12$.google.bigtable.v1.MutateRowRequest\x1a\x16.googl\ - e.protobuf.Empty\"X\x82\xd3\xe4\x93\x02R\"M/v1/{table_name=projects/*/zo\ - nes/*/clusters/*/tables/*}/rows/{row_key}:mutate:\x01*\x12\xaa\x01\n\nMu\ - tateRows\x12%.google.bigtable.v1.MutateRowsRequest\x1a&.google.bigtable.\ - v1.MutateRowsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{table_name=projects\ - /*/zones/*/clusters/*/tables/*}:mutateRows:\x01*\x12\xd2\x01\n\x11CheckA\ - ndMutateRow\x12,.google.bigtable.v1.CheckAndMutateRowRequest\x1a-.google\ - .bigtable.v1.CheckAndMutateRowResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{ta\ - ble_name=projects/*/zones/*/clusters/*/tables/*}/rows/{row_key}:checkAnd\ - Mutate:\x01*\x12\xbf\x01\n\x12ReadModifyWriteRow\x12-.google.bigtable.v1\ - .ReadModifyWriteRowRequest\x1a\x17.google.bigtable.v1.Row\"a\x82\xd3\xe4\ - \x93\x02[\"V/v1/{table_name=projects/*/zones/*/clusters/*/tables/*}/rows\ - /{row_key}:readModifyWrite:\x01*Bp\n\x16com.google.bigtable.v1B\x15Bigta\ - bleServicesProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v1\ - ;bigtable\x88\x01\x01J\xb1\x13\n\x06\x12\x04\x0e\0[\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\ - \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\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\x08\n\x01\x08\x12\x03\x17\0Q\ - \n\t\n\x02\x08\x0b\x12\x03\x17\0Q\n\x08\n\x01\x08\x12\x03\x18\0$\n\t\n\ - \x02\x08\x11\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\06\n\t\n\x02\x08\x08\ - \x12\x03\x1a\06\n\x08\n\x01\x08\x12\x03\x1b\0/\n\t\n\x02\x08\x01\x12\x03\ - \x1b\0/\nI\n\x02\x06\0\x12\x04\x1e\0[\x01\x1a=\x20Service\x20for\x20read\ - ing\x20from\x20and\x20writing\x20to\x20existing\x20Bigtables.\n\n\n\n\ - \x03\x06\0\x01\x12\x03\x1e\x08\x17\n\xf5\x01\n\x04\x06\0\x02\0\x12\x04#\ - \x02(\x03\x1a\xe6\x01\x20Streams\x20back\x20the\x20contents\x20of\x20all\ - \x20requested\x20rows,\x20optionally\x20applying\n\x20the\x20same\x20Rea\ - der\x20filter\x20to\x20each.\x20Depending\x20on\x20their\x20size,\x20row\ - s\x20may\x20be\n\x20broken\x20up\x20across\x20multiple\x20responses,\x20\ - but\x20atomicity\x20of\x20each\x20row\x20will\x20still\n\x20be\x20preser\ - ved.\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$\x04\ - '\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04$\x04'\x06\n\xed\ - \x01\n\x04\x06\0\x02\x01\x12\x04.\x023\x03\x1a\xde\x01\x20Returns\x20a\ - \x20sample\x20of\x20row\x20keys\x20in\x20the\x20table.\x20The\x20returne\ - d\x20row\x20keys\x20will\n\x20delimit\x20contiguous\x20sections\x20of\ - \x20the\x20table\x20of\x20approximately\x20equal\x20size,\n\x20which\x20\ - can\x20be\x20used\x20to\x20break\x20up\x20the\x20data\x20for\x20distribu\ - ted\x20tasks\x20like\n\x20mapreduces.\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\x06\x12\x03/\x0f\x15\n\x0c\n\x05\x06\0\x02\x01\x03\ - \x12\x03/\x16+\n\r\n\x05\x06\0\x02\x01\x04\x12\x040\x042\x06\n\x11\n\t\ - \x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x040\x042\x06\n\x87\x01\n\x04\x06\0\ - \x02\x02\x12\x047\x02<\x03\x1ay\x20Mutates\x20a\x20row\x20atomically.\ - \x20Cells\x20already\x20present\x20in\x20the\x20row\x20are\x20left\n\x20\ - unchanged\x20unless\x20explicitly\x20changed\x20by\x20'mutation'.\n\n\ - \x0c\n\x05\x06\0\x02\x02\x01\x12\x037\x06\x0f\n\x0c\n\x05\x06\0\x02\x02\ - \x02\x12\x037\x10\x20\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x037+@\n\r\n\x05\ - \x06\0\x02\x02\x04\x12\x048\x04;\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\ - \xbc\"\x12\x048\x04;\x06\n\xa0\x01\n\x04\x06\0\x02\x03\x12\x04A\x02F\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\x03A\x06\x10\n\x0c\n\x05\ - \x06\0\x02\x03\x02\x12\x03A\x11\"\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03A\ - -?\n\r\n\x05\x06\0\x02\x03\x04\x12\x04B\x04E\x06\n\x11\n\t\x06\0\x02\x03\ - \x04\xb0\xca\xbc\"\x12\x04B\x04E\x06\nZ\n\x04\x06\0\x02\x04\x12\x04I\x02\ - O\x03\x1aL\x20Mutates\x20a\x20row\x20atomically\x20based\x20on\x20the\ - \x20output\x20of\x20a\x20predicate\x20Reader\x20filter.\n\n\x0c\n\x05\ - \x06\0\x02\x04\x01\x12\x03I\x06\x17\n\x0c\n\x05\x06\0\x02\x04\x02\x12\ - \x03I\x180\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03J\x0f(\n\r\n\x05\x06\0\ - \x02\x04\x04\x12\x04K\x04N\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\ - \x12\x04K\x04N\x06\n\x9b\x02\n\x04\x06\0\x02\x05\x12\x04U\x02Z\x03\x1a\ - \x8c\x02\x20Modifies\x20a\x20row\x20atomically,\x20reading\x20the\x20lat\ - est\x20existing\x20timestamp/value\x20from\n\x20the\x20specified\x20colu\ - mns\x20and\x20writing\x20a\x20new\x20value\x20at\n\x20max(existing\x20ti\ - mestamp,\x20current\x20server\x20time)\x20based\x20on\x20pre-defined\n\ - \x20read/modify/write\x20rules.\x20Returns\x20the\x20new\x20contents\x20\ - of\x20all\x20modified\x20cells.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03U\ - \x06\x18\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03U\x192\n\x0c\n\x05\x06\0\ - \x02\x05\x03\x12\x03U=@\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\x06b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_grpc.rs deleted file mode 100644 index c59a997504..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_grpc.rs +++ /dev/null @@ -1,193 +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_BIGTABLE_SERVICE_READ_ROWS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.bigtable.v1.BigtableService/ReadRows", - 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_SERVICE_SAMPLE_ROW_KEYS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.bigtable.v1.BigtableService/SampleRowKeys", - 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_SERVICE_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.v1.BigtableService/MutateRow", - 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_SERVICE_MUTATE_ROWS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.v1.BigtableService/MutateRows", - 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_SERVICE_CHECK_AND_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.v1.BigtableService/CheckAndMutateRow", - 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_SERVICE_READ_MODIFY_WRITE_ROW: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.v1.BigtableService/ReadModifyWriteRow", - 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 BigtableServiceClient { - client: ::grpcio::Client, -} - -impl BigtableServiceClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - BigtableServiceClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn read_rows_opt(&self, req: &super::bigtable_service_messages::ReadRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_BIGTABLE_SERVICE_READ_ROWS, req, opt) - } - - pub fn read_rows(&self, req: &super::bigtable_service_messages::ReadRowsRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.read_rows_opt(req, ::grpcio::CallOption::default()) - } - - pub fn sample_row_keys_opt(&self, req: &super::bigtable_service_messages::SampleRowKeysRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_BIGTABLE_SERVICE_SAMPLE_ROW_KEYS, req, opt) - } - - pub fn sample_row_keys(&self, req: &super::bigtable_service_messages::SampleRowKeysRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.sample_row_keys_opt(req, ::grpcio::CallOption::default()) - } - - pub fn mutate_row_opt(&self, req: &super::bigtable_service_messages::MutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_SERVICE_MUTATE_ROW, req, opt) - } - - pub fn mutate_row(&self, req: &super::bigtable_service_messages::MutateRowRequest) -> ::grpcio::Result { - self.mutate_row_opt(req, ::grpcio::CallOption::default()) - } - - pub fn mutate_row_async_opt(&self, req: &super::bigtable_service_messages::MutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_SERVICE_MUTATE_ROW, req, opt) - } - - pub fn mutate_row_async(&self, req: &super::bigtable_service_messages::MutateRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.mutate_row_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn mutate_rows_opt(&self, req: &super::bigtable_service_messages::MutateRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_SERVICE_MUTATE_ROWS, req, opt) - } - - pub fn mutate_rows(&self, req: &super::bigtable_service_messages::MutateRowsRequest) -> ::grpcio::Result { - self.mutate_rows_opt(req, ::grpcio::CallOption::default()) - } - - pub fn mutate_rows_async_opt(&self, req: &super::bigtable_service_messages::MutateRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_SERVICE_MUTATE_ROWS, req, opt) - } - - pub fn mutate_rows_async(&self, req: &super::bigtable_service_messages::MutateRowsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.mutate_rows_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn check_and_mutate_row_opt(&self, req: &super::bigtable_service_messages::CheckAndMutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_SERVICE_CHECK_AND_MUTATE_ROW, req, opt) - } - - pub fn check_and_mutate_row(&self, req: &super::bigtable_service_messages::CheckAndMutateRowRequest) -> ::grpcio::Result { - self.check_and_mutate_row_opt(req, ::grpcio::CallOption::default()) - } - - pub fn check_and_mutate_row_async_opt(&self, req: &super::bigtable_service_messages::CheckAndMutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_SERVICE_CHECK_AND_MUTATE_ROW, req, opt) - } - - pub fn check_and_mutate_row_async(&self, req: &super::bigtable_service_messages::CheckAndMutateRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.check_and_mutate_row_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn read_modify_write_row_opt(&self, req: &super::bigtable_service_messages::ReadModifyWriteRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_SERVICE_READ_MODIFY_WRITE_ROW, req, opt) - } - - pub fn read_modify_write_row(&self, req: &super::bigtable_service_messages::ReadModifyWriteRowRequest) -> ::grpcio::Result { - self.read_modify_write_row_opt(req, ::grpcio::CallOption::default()) - } - - pub fn read_modify_write_row_async_opt(&self, req: &super::bigtable_service_messages::ReadModifyWriteRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_SERVICE_READ_MODIFY_WRITE_ROW, req, opt) - } - - pub fn read_modify_write_row_async(&self, req: &super::bigtable_service_messages::ReadModifyWriteRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.read_modify_write_row_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait BigtableService { - fn read_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::ReadRowsRequest, sink: ::grpcio::ServerStreamingSink); - fn sample_row_keys(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::SampleRowKeysRequest, sink: ::grpcio::ServerStreamingSink); - fn mutate_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::MutateRowRequest, sink: ::grpcio::UnarySink); - fn mutate_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::MutateRowsRequest, sink: ::grpcio::UnarySink); - fn check_and_mutate_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::CheckAndMutateRowRequest, sink: ::grpcio::UnarySink); - fn read_modify_write_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::ReadModifyWriteRowRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_bigtable_service(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_SERVICE_READ_ROWS, move |ctx, req, resp| { - instance.read_rows(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_SERVICE_SAMPLE_ROW_KEYS, move |ctx, req, resp| { - instance.sample_row_keys(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_SERVICE_MUTATE_ROW, move |ctx, req, resp| { - instance.mutate_row(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_SERVICE_MUTATE_ROWS, move |ctx, req, resp| { - instance.mutate_rows(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_SERVICE_CHECK_AND_MUTATE_ROW, move |ctx, req, resp| { - instance.check_and_mutate_row(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_BIGTABLE_SERVICE_READ_MODIFY_WRITE_ROW, move |ctx, req, resp| { - instance.read_modify_write_row(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_messages.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_messages.rs deleted file mode 100644 index 4d0a1e7efa..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_messages.rs +++ /dev/null @@ -1,3319 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/v1/bigtable_service_messages.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ReadRowsRequest { - // message fields - pub table_name: ::std::string::String, - pub filter: ::protobuf::SingularPtrField, - pub allow_row_interleaving: bool, - pub num_rows_limit: i64, - // message oneof groups - pub target: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadRowsRequest { - fn default() -> &'a ReadRowsRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ReadRowsRequest_oneof_target { - row_key(::std::vec::Vec), - row_range(super::bigtable_data::RowRange), - row_set(super::bigtable_data::RowSet), -} - -impl ReadRowsRequest { - pub fn new() -> 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()) - } - - // bytes row_key = 2; - - - pub fn get_row_key(&self) -> &[u8] { - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(ref v)) => v, - _ => &[], - } - } - pub fn clear_row_key(&mut self) { - self.target = ::std::option::Option::None; - } - - pub fn has_row_key(&self) -> bool { - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_row_key(&mut self, v: ::std::vec::Vec) { - self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(v)) - } - - // Mutable pointer to the field. - pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(_)) = self.target { - } else { - self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(::std::vec::Vec::new())); - } - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_row_key(&mut self) -> ::std::vec::Vec { - if self.has_row_key() { - match self.target.take() { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // .google.bigtable.v1.RowRange row_range = 3; - - - pub fn get_row_range(&self) -> &super::bigtable_data::RowRange { - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_row_range(&mut self) { - self.target = ::std::option::Option::None; - } - - pub fn has_row_range(&self) -> bool { - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_row_range(&mut self, v: super::bigtable_data::RowRange) { - self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(v)) - } - - // Mutable pointer to the field. - pub fn mut_row_range(&mut self) -> &mut super::bigtable_data::RowRange { - if let ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(_)) = self.target { - } else { - self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(super::bigtable_data::RowRange::new())); - } - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_row_range(&mut self) -> super::bigtable_data::RowRange { - if self.has_row_range() { - match self.target.take() { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(v)) => v, - _ => panic!(), - } - } else { - super::bigtable_data::RowRange::new() - } - } - - // .google.bigtable.v1.RowSet row_set = 8; - - - pub fn get_row_set(&self) -> &super::bigtable_data::RowSet { - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_row_set(&mut self) { - self.target = ::std::option::Option::None; - } - - pub fn has_row_set(&self) -> bool { - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_row_set(&mut self, v: super::bigtable_data::RowSet) { - self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(v)) - } - - // Mutable pointer to the field. - pub fn mut_row_set(&mut self) -> &mut super::bigtable_data::RowSet { - if let ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(_)) = self.target { - } else { - self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(super::bigtable_data::RowSet::new())); - } - match self.target { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_row_set(&mut self) -> super::bigtable_data::RowSet { - if self.has_row_set() { - match self.target.take() { - ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(v)) => v, - _ => panic!(), - } - } else { - super::bigtable_data::RowSet::new() - } - } - - // .google.bigtable.v1.RowFilter filter = 5; - - - pub fn get_filter(&self) -> &super::bigtable_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::bigtable_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::bigtable_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::bigtable_data::RowFilter { - self.filter.take().unwrap_or_else(|| super::bigtable_data::RowFilter::new()) - } - - // bool allow_row_interleaving = 6; - - - pub fn get_allow_row_interleaving(&self) -> bool { - self.allow_row_interleaving - } - pub fn clear_allow_row_interleaving(&mut self) { - self.allow_row_interleaving = false; - } - - // Param is passed by value, moved - pub fn set_allow_row_interleaving(&mut self, v: bool) { - self.allow_row_interleaving = v; - } - - // int64 num_rows_limit = 7; - - - pub fn get_num_rows_limit(&self) -> i64 { - self.num_rows_limit - } - pub fn clear_num_rows_limit(&mut self) { - self.num_rows_limit = 0; - } - - // Param is passed by value, moved - pub fn set_num_rows_limit(&mut self, v: i64) { - self.num_rows_limit = v; - } -} - -impl ::protobuf::Message for ReadRowsRequest { - fn is_initialized(&self) -> bool { - if let Some(ReadRowsRequest_oneof_target::row_range(ref v)) = self.target { - if !v.is_initialized() { - return false; - } - } - if let Some(ReadRowsRequest_oneof_target::row_set(ref v)) = self.target { - 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)?; - }, - 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(ReadRowsRequest_oneof_target::row_key(is.read_bytes()?)); - }, - 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(ReadRowsRequest_oneof_target::row_range(is.read_message()?)); - }, - 8 => { - 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(ReadRowsRequest_oneof_target::row_set(is.read_message()?)); - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.filter)?; - }, - 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.allow_row_interleaving = 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.num_rows_limit = 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.table_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.table_name); - } - if let Some(ref v) = self.filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.allow_row_interleaving != false { - my_size += 2; - } - if self.num_rows_limit != 0 { - my_size += ::protobuf::rt::value_size(7, self.num_rows_limit, ::protobuf::wire_format::WireTypeVarint); - } - if let ::std::option::Option::Some(ref v) = self.target { - match v { - &ReadRowsRequest_oneof_target::row_key(ref v) => { - my_size += ::protobuf::rt::bytes_size(2, &v); - }, - &ReadRowsRequest_oneof_target::row_range(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReadRowsRequest_oneof_target::row_set(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 let Some(ref v) = self.filter.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.allow_row_interleaving != false { - os.write_bool(6, self.allow_row_interleaving)?; - } - if self.num_rows_limit != 0 { - os.write_int64(7, self.num_rows_limit)?; - } - if let ::std::option::Option::Some(ref v) = self.target { - match v { - &ReadRowsRequest_oneof_target::row_key(ref v) => { - os.write_bytes(2, v)?; - }, - &ReadRowsRequest_oneof_target::row_range(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)?; - }, - &ReadRowsRequest_oneof_target::row_set(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() -> 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_singular_bytes_accessor::<_>( - "row_key", - ReadRowsRequest::has_row_key, - ReadRowsRequest::get_row_key, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::bigtable_data::RowRange>( - "row_range", - ReadRowsRequest::has_row_range, - ReadRowsRequest::get_row_range, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::bigtable_data::RowSet>( - "row_set", - ReadRowsRequest::has_row_set, - ReadRowsRequest::get_row_set, - )); - 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::ProtobufTypeBool>( - "allow_row_interleaving", - |m: &ReadRowsRequest| { &m.allow_row_interleaving }, - |m: &mut ReadRowsRequest| { &mut m.allow_row_interleaving }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "num_rows_limit", - |m: &ReadRowsRequest| { &m.num_rows_limit }, - |m: &mut ReadRowsRequest| { &mut m.num_rows_limit }, - )); - ::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.target = ::std::option::Option::None; - self.target = ::std::option::Option::None; - self.target = ::std::option::Option::None; - self.filter.clear(); - self.allow_row_interleaving = false; - self.num_rows_limit = 0; - 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) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadRowsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadRowsResponse { - // message fields - pub row_key: ::std::vec::Vec, - pub chunks: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadRowsResponse { - fn default() -> &'a ReadRowsResponse { - ::default_instance() - } -} - -impl ReadRowsResponse { - pub fn new() -> ReadRowsResponse { - ::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()) - } - - // repeated .google.bigtable.v1.ReadRowsResponse.Chunk chunks = 2; - - - pub fn get_chunks(&self) -> &[ReadRowsResponse_Chunk] { - &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()) - } -} - -impl ::protobuf::Message for ReadRowsResponse { - fn is_initialized(&self) -> bool { - for v in &self.chunks { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::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.chunks)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - for value in &self.chunks { - 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.row_key.is_empty() { - os.write_bytes(1, &self.row_key)?; - } - for v in &self.chunks { - 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() -> 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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_key", - |m: &ReadRowsResponse| { &m.row_key }, - |m: &mut ReadRowsResponse| { &mut m.row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "chunks", - |m: &ReadRowsResponse| { &m.chunks }, - |m: &mut ReadRowsResponse| { &mut m.chunks }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadRowsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadRowsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadRowsResponse::new) - } -} - -impl ::protobuf::Clear for ReadRowsResponse { - fn clear(&mut self) { - self.row_key.clear(); - self.chunks.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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_Chunk { - // message oneof groups - pub chunk: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadRowsResponse_Chunk { - fn default() -> &'a ReadRowsResponse_Chunk { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ReadRowsResponse_Chunk_oneof_chunk { - row_contents(super::bigtable_data::Family), - reset_row(bool), - commit_row(bool), -} - -impl ReadRowsResponse_Chunk { - pub fn new() -> ReadRowsResponse_Chunk { - ::std::default::Default::default() - } - - // .google.bigtable.v1.Family row_contents = 1; - - - pub fn get_row_contents(&self) -> &super::bigtable_data::Family { - match self.chunk { - ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_row_contents(&mut self) { - self.chunk = ::std::option::Option::None; - } - - pub fn has_row_contents(&self) -> bool { - match self.chunk { - ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_row_contents(&mut self, v: super::bigtable_data::Family) { - self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(v)) - } - - // Mutable pointer to the field. - pub fn mut_row_contents(&mut self) -> &mut super::bigtable_data::Family { - if let ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(_)) = self.chunk { - } else { - self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(super::bigtable_data::Family::new())); - } - match self.chunk { - ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_row_contents(&mut self) -> super::bigtable_data::Family { - if self.has_row_contents() { - match self.chunk.take() { - ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(v)) => v, - _ => panic!(), - } - } else { - super::bigtable_data::Family::new() - } - } - - // bool reset_row = 2; - - - pub fn get_reset_row(&self) -> bool { - match self.chunk { - ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::reset_row(v)) => v, - _ => false, - } - } - pub fn clear_reset_row(&mut self) { - self.chunk = ::std::option::Option::None; - } - - pub fn has_reset_row(&self) -> bool { - match self.chunk { - ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::reset_row(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_reset_row(&mut self, v: bool) { - self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::reset_row(v)) - } - - // bool commit_row = 3; - - - pub fn get_commit_row(&self) -> bool { - match self.chunk { - ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::commit_row(v)) => v, - _ => false, - } - } - pub fn clear_commit_row(&mut self) { - self.chunk = ::std::option::Option::None; - } - - pub fn has_commit_row(&self) -> bool { - match self.chunk { - ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::commit_row(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_commit_row(&mut self, v: bool) { - self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::commit_row(v)) - } -} - -impl ::protobuf::Message for ReadRowsResponse_Chunk { - fn is_initialized(&self) -> bool { - if let Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(ref v)) = self.chunk { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&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.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::reset_row(is.read_bool()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::commit_row(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 let ::std::option::Option::Some(ref v) = self.chunk { - match v { - &ReadRowsResponse_Chunk_oneof_chunk::row_contents(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReadRowsResponse_Chunk_oneof_chunk::reset_row(v) => { - my_size += 2; - }, - &ReadRowsResponse_Chunk_oneof_chunk::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 let ::std::option::Option::Some(ref v) = self.chunk { - match v { - &ReadRowsResponse_Chunk_oneof_chunk::row_contents(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)?; - }, - &ReadRowsResponse_Chunk_oneof_chunk::reset_row(v) => { - os.write_bool(2, v)?; - }, - &ReadRowsResponse_Chunk_oneof_chunk::commit_row(v) => { - os.write_bool(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() -> ReadRowsResponse_Chunk { - ReadRowsResponse_Chunk::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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::<_, super::bigtable_data::Family>( - "row_contents", - ReadRowsResponse_Chunk::has_row_contents, - ReadRowsResponse_Chunk::get_row_contents, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "reset_row", - ReadRowsResponse_Chunk::has_reset_row, - ReadRowsResponse_Chunk::get_reset_row, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "commit_row", - ReadRowsResponse_Chunk::has_commit_row, - ReadRowsResponse_Chunk::get_commit_row, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadRowsResponse.Chunk", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadRowsResponse_Chunk { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadRowsResponse_Chunk::new) - } -} - -impl ::protobuf::Clear for ReadRowsResponse_Chunk { - fn clear(&mut self) { - self.chunk = ::std::option::Option::None; - self.chunk = ::std::option::Option::None; - self.chunk = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadRowsResponse_Chunk { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadRowsResponse_Chunk { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SampleRowKeysRequest { - // message fields - pub table_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SampleRowKeysRequest { - fn default() -> &'a SampleRowKeysRequest { - ::default_instance() - } -} - -impl SampleRowKeysRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SampleRowKeysRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SampleRowKeysRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SampleRowKeysRequest::new) - } -} - -impl ::protobuf::Clear for SampleRowKeysRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SampleRowKeysResponse { - // message fields - pub row_key: ::std::vec::Vec, - pub offset_bytes: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SampleRowKeysResponse { - fn default() -> &'a SampleRowKeysResponse { - ::default_instance() - } -} - -impl SampleRowKeysResponse { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 self.offset_bytes != 0 { - my_size += ::protobuf::rt::value_size(2, self.offset_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.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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 default_instance() -> &'static SampleRowKeysResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SampleRowKeysResponse::new) - } -} - -impl ::protobuf::Clear for SampleRowKeysResponse { - fn clear(&mut self) { - self.row_key.clear(); - self.offset_bytes = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MutateRowRequest { - // message fields - pub table_name: ::std::string::String, - pub row_key: ::std::vec::Vec, - pub mutations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MutateRowRequest { - fn default() -> &'a MutateRowRequest { - ::default_instance() - } -} - -impl MutateRowRequest { - pub fn new() -> 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()) - } - - // 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.v1.Mutation mutations = 3; - - - pub fn get_mutations(&self) -> &[super::bigtable_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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.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.row_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.row_key); - } - 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); - 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.row_key.is_empty() { - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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::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 default_instance() -> &'static MutateRowRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowRequest::new) - } -} - -impl ::protobuf::Clear for MutateRowRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.row_key.clear(); - self.mutations.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MutateRowsRequest { - // message fields - pub table_name: ::std::string::String, - pub entries: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MutateRowsRequest { - fn default() -> &'a MutateRowsRequest { - ::default_instance() - } -} - -impl MutateRowsRequest { - pub fn new() -> 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()) - } - - // repeated .google.bigtable.v1.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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.entries)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - for value in &self.entries { - 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)?; - } - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 { - 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_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 default_instance() -> &'static MutateRowsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowsRequest::new) - } -} - -impl ::protobuf::Clear for MutateRowsRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.entries.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[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<'a> ::std::default::Default for &'a MutateRowsRequest_Entry { - fn default() -> &'a MutateRowsRequest_Entry { - ::default_instance() - } -} - -impl MutateRowsRequest_Entry { - pub fn new() -> MutateRowsRequest_Entry { - ::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()) - } - - // repeated .google.bigtable.v1.Mutation mutations = 2; - - - pub fn get_mutations(&self) -> &[super::bigtable_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()) - } -} - -impl ::protobuf::Message for MutateRowsRequest_Entry { - 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - 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); - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 statuses: ::protobuf::RepeatedField, - // 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() - } -} - -impl MutateRowsResponse { - pub fn new() -> MutateRowsResponse { - ::std::default::Default::default() - } - - // repeated .google.rpc.Status statuses = 1; - - - pub fn get_statuses(&self) -> &[super::status::Status] { - &self.statuses - } - pub fn clear_statuses(&mut self) { - self.statuses.clear(); - } - - // Param is passed by value, moved - pub fn set_statuses(&mut self, v: ::protobuf::RepeatedField) { - self.statuses = v; - } - - // Mutable pointer to the field. - pub fn mut_statuses(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.statuses - } - - // Take field - pub fn take_statuses(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.statuses, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for MutateRowsResponse { - fn is_initialized(&self) -> bool { - for v in &self.statuses { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &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.statuses)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.statuses { - 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.statuses { - 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() -> 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>( - "statuses", - |m: &MutateRowsResponse| { &m.statuses }, - |m: &mut MutateRowsResponse| { &mut m.statuses }, - )); - ::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.statuses.clear(); - 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 CheckAndMutateRowRequest { - // message fields - pub table_name: ::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()) - } - - // 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.v1.RowFilter predicate_filter = 6; - - - pub fn get_predicate_filter(&self) -> &super::bigtable_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::bigtable_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::bigtable_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::bigtable_data::RowFilter { - self.predicate_filter.take().unwrap_or_else(|| super::bigtable_data::RowFilter::new()) - } - - // repeated .google.bigtable.v1.Mutation true_mutations = 4; - - - pub fn get_true_mutations(&self) -> &[super::bigtable_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.v1.Mutation false_mutations = 5; - - - pub fn get_false_mutations(&self) -> &[super::bigtable_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)?; - }, - 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.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.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::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.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 ReadModifyWriteRowRequest { - // message fields - pub table_name: ::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()) - } - - // 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.v1.ReadModifyWriteRule rules = 3; - - - pub fn get_rules(&self) -> &[super::bigtable_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)?; - }, - 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.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.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::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.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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n2google/bigtable/v1/bigtable_service_messages.proto\x12\x12google.bigt\ - able.v1\x1a&google/bigtable/v1/bigtable_data.proto\x1a\x17google/rpc/sta\ - tus.proto\"\xdc\x02\n\x0fReadRowsRequest\x12\x1d\n\ntable_name\x18\x01\ - \x20\x01(\tR\ttableName\x12\x19\n\x07row_key\x18\x02\x20\x01(\x0cH\0R\ - \x06rowKey\x12;\n\trow_range\x18\x03\x20\x01(\x0b2\x1c.google.bigtable.v\ - 1.RowRangeH\0R\x08rowRange\x125\n\x07row_set\x18\x08\x20\x01(\x0b2\x1a.g\ - oogle.bigtable.v1.RowSetH\0R\x06rowSet\x125\n\x06filter\x18\x05\x20\x01(\ - \x0b2\x1d.google.bigtable.v1.RowFilterR\x06filter\x124\n\x16allow_row_in\ - terleaving\x18\x06\x20\x01(\x08R\x14allowRowInterleaving\x12$\n\x0enum_r\ - ows_limit\x18\x07\x20\x01(\x03R\x0cnumRowsLimitB\x08\n\x06target\"\x83\ - \x02\n\x10ReadRowsResponse\x12\x17\n\x07row_key\x18\x01\x20\x01(\x0cR\ - \x06rowKey\x12B\n\x06chunks\x18\x02\x20\x03(\x0b2*.google.bigtable.v1.Re\ - adRowsResponse.ChunkR\x06chunks\x1a\x91\x01\n\x05Chunk\x12?\n\x0crow_con\ - tents\x18\x01\x20\x01(\x0b2\x1a.google.bigtable.v1.FamilyH\0R\x0browCont\ - ents\x12\x1d\n\treset_row\x18\x02\x20\x01(\x08H\0R\x08resetRow\x12\x1f\n\ - \ncommit_row\x18\x03\x20\x01(\x08H\0R\tcommitRowB\x07\n\x05chunk\"5\n\ - \x14SampleRowKeysRequest\x12\x1d\n\ntable_name\x18\x01\x20\x01(\tR\ttabl\ - eName\"S\n\x15SampleRowKeysResponse\x12\x17\n\x07row_key\x18\x01\x20\x01\ - (\x0cR\x06rowKey\x12!\n\x0coffset_bytes\x18\x02\x20\x01(\x03R\x0boffsetB\ - ytes\"\x86\x01\n\x10MutateRowRequest\x12\x1d\n\ntable_name\x18\x01\x20\ - \x01(\tR\ttableName\x12\x17\n\x07row_key\x18\x02\x20\x01(\x0cR\x06rowKey\ - \x12:\n\tmutations\x18\x03\x20\x03(\x0b2\x1c.google.bigtable.v1.Mutation\ - R\tmutations\"\xd7\x01\n\x11MutateRowsRequest\x12\x1d\n\ntable_name\x18\ - \x01\x20\x01(\tR\ttableName\x12E\n\x07entries\x18\x02\x20\x03(\x0b2+.goo\ - gle.bigtable.v1.MutateRowsRequest.EntryR\x07entries\x1a\\\n\x05Entry\x12\ - \x17\n\x07row_key\x18\x01\x20\x01(\x0cR\x06rowKey\x12:\n\tmutations\x18\ - \x02\x20\x03(\x0b2\x1c.google.bigtable.v1.MutationR\tmutations\"D\n\x12M\ - utateRowsResponse\x12.\n\x08statuses\x18\x01\x20\x03(\x0b2\x12.google.rp\ - c.StatusR\x08statuses\"\xa8\x02\n\x18CheckAndMutateRowRequest\x12\x1d\n\ - \ntable_name\x18\x01\x20\x01(\tR\ttableName\x12\x17\n\x07row_key\x18\x02\ - \x20\x01(\x0cR\x06rowKey\x12H\n\x10predicate_filter\x18\x06\x20\x01(\x0b\ - 2\x1d.google.bigtable.v1.RowFilterR\x0fpredicateFilter\x12C\n\x0etrue_mu\ - tations\x18\x04\x20\x03(\x0b2\x1c.google.bigtable.v1.MutationR\rtrueMuta\ - tions\x12E\n\x0ffalse_mutations\x18\x05\x20\x03(\x0b2\x1c.google.bigtabl\ - e.v1.MutationR\x0efalseMutations\"H\n\x19CheckAndMutateRowResponse\x12+\ - \n\x11predicate_matched\x18\x01\x20\x01(\x08R\x10predicateMatched\"\x92\ - \x01\n\x19ReadModifyWriteRowRequest\x12\x1d\n\ntable_name\x18\x01\x20\ - \x01(\tR\ttableName\x12\x17\n\x07row_key\x18\x02\x20\x01(\x0cR\x06rowKey\ - \x12=\n\x05rules\x18\x03\x20\x03(\x0b2'.google.bigtable.v1.ReadModifyWri\ - teRuleR\x05rulesBt\n\x16com.google.bigtable.v1B\x1cBigtableServiceMessag\ - esProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v1;bigtable\ - J\x86I\n\x07\x12\x05\x0e\0\xd8\x01\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\x1b\n\t\n\x02\x03\0\x12\x03\x12\00\n\t\n\x02\x03\x01\ - \x12\x03\x13\0!\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\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:\n\x02\x04\0\ - \x12\x04\x1b\0=\x01\x1a.\x20Request\x20message\x20for\x20BigtableServer.\ - ReadRows.\n\n\n\n\x03\x04\0\x01\x12\x03\x1b\x08\x17\n?\n\x04\x04\0\x02\0\ - \x12\x03\x1d\x02\x18\x1a2\x20The\x20unique\x20name\x20of\x20the\x20table\ - \x20from\x20which\x20to\x20read.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04\x1d\ - \x02\x1b\x19\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\x13\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\ - \x1d\x16\x17\nM\n\x04\x04\0\x08\0\x12\x04\x20\x02+\x03\x1a?\x20If\x20nei\ - ther\x20row_key\x20nor\x20row_range\x20is\x20set,\x20reads\x20from\x20al\ - l\x20rows.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x03\x20\x08\x0e\n:\n\x04\ - \x04\0\x02\x01\x12\x03\"\x04\x16\x1a-\x20The\x20key\x20of\x20a\x20single\ - \x20row\x20from\x20which\x20to\x20read.\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\x15\n2\n\x04\x04\0\x02\x02\x12\x03%\ - \x04\x1b\x1a%\x20A\x20range\x20of\x20rows\x20from\x20which\x20to\x20read\ - .\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03%\x04\x0c\n\x0c\n\x05\x04\0\x02\ - \x02\x01\x12\x03%\r\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03%\x19\x1a\n\ - \xb4\x01\n\x04\x04\0\x02\x03\x12\x03*\x04\x17\x1a\xa6\x01\x20A\x20set\ - \x20of\x20rows\x20from\x20which\x20to\x20read.\x20Entries\x20need\x20not\ - \x20be\x20in\x20order,\x20and\x20will\n\x20be\x20deduplicated\x20before\ - \x20reading.\n\x20The\x20total\x20serialized\x20size\x20of\x20the\x20set\ - \x20must\x20not\x20exceed\x201MB.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\ - \x03*\x04\n\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03*\x0b\x12\n\x0c\n\x05\ - \x04\0\x02\x03\x03\x12\x03*\x15\x16\nn\n\x04\x04\0\x02\x04\x12\x03/\x02\ - \x17\x1aa\x20The\x20filter\x20to\x20apply\x20to\x20the\x20contents\x20of\ - \x20the\x20specified\x20row(s).\x20If\x20unset,\n\x20reads\x20the\x20ent\ - ire\x20table.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04/\x02+\x03\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\x12\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03/\x15\x16\n\xab\ - \x03\n\x04\x04\0\x02\x05\x12\x037\x02\"\x1a\x9d\x03\x20By\x20default,\ - \x20rows\x20are\x20read\x20sequentially,\x20producing\x20results\x20whic\ - h\x20are\n\x20guaranteed\x20to\x20arrive\x20in\x20increasing\x20row\x20o\ - rder.\x20Setting\n\x20\"allow_row_interleaving\"\x20to\x20true\x20allows\ - \x20multiple\x20rows\x20to\x20be\x20interleaved\x20in\n\x20the\x20respon\ - se\x20stream,\x20which\x20increases\x20throughput\x20but\x20breaks\x20th\ - is\x20guarantee,\n\x20and\x20may\x20force\x20the\x20client\x20to\x20use\ - \x20more\x20memory\x20to\x20buffer\x20partially-received\n\x20rows.\x20C\ - annot\x20be\x20set\x20to\x20true\x20when\x20specifying\x20\"num_rows_lim\ - it\".\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x047\x02/\x17\n\x0c\n\x05\x04\0\ - \x02\x05\x05\x12\x037\x02\x06\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x037\x07\ - \x1d\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x037\x20!\n\xcf\x01\n\x04\x04\0\ - \x02\x06\x12\x03<\x02\x1b\x1a\xc1\x01\x20The\x20read\x20will\x20terminat\ - e\x20after\x20committing\x20to\x20N\x20rows'\x20worth\x20of\x20results.\ - \x20The\n\x20default\x20(zero)\x20is\x20to\x20return\x20all\x20results.\ - \n\x20Note\x20that\x20\"allow_row_interleaving\"\x20cannot\x20be\x20set\ - \x20to\x20true\x20when\x20this\x20is\x20set.\n\n\r\n\x05\x04\0\x02\x06\ - \x04\x12\x04<\x027\"\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03<\x02\x07\n\ - \x0c\n\x05\x04\0\x02\x06\x01\x12\x03<\x08\x16\n\x0c\n\x05\x04\0\x02\x06\ - \x03\x12\x03<\x19\x1a\n<\n\x02\x04\x01\x12\x04@\0\\\x01\x1a0\x20Response\ - \x20message\x20for\x20BigtableService.ReadRows.\n\n\n\n\x03\x04\x01\x01\ - \x12\x03@\x08\x18\nd\n\x04\x04\x01\x03\0\x12\x04C\x02S\x03\x1aV\x20Speci\ - fies\x20a\x20piece\x20of\x20a\x20row's\x20contents\x20returned\x20as\x20\ - part\x20of\x20the\x20read\n\x20response\x20stream.\n\n\x0c\n\x05\x04\x01\ - \x03\0\x01\x12\x03C\n\x0f\n\x0e\n\x06\x04\x01\x03\0\x08\0\x12\x04D\x04R\ - \x05\n\x0e\n\x07\x04\x01\x03\0\x08\0\x01\x12\x03D\n\x0f\n\x8b\x02\n\x06\ - \x04\x01\x03\0\x02\0\x12\x03I\x06\x1e\x1a\xfb\x01\x20A\x20subset\x20of\ - \x20the\x20data\x20from\x20a\x20particular\x20row.\x20As\x20long\x20as\ - \x20no\x20\"reset_row\"\n\x20is\x20received\x20in\x20between,\x20multipl\ - e\x20\"row_contents\"\x20from\x20the\x20same\x20row\x20are\n\x20from\x20\ - the\x20same\x20atomic\x20view\x20of\x20that\x20row,\x20and\x20will\x20be\ - \x20received\x20in\x20the\n\x20expected\x20family/column/timestamp\x20or\ - der.\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x06\x12\x03I\x06\x0c\n\x0e\n\x07\ - \x04\x01\x03\0\x02\0\x01\x12\x03I\r\x19\n\x0e\n\x07\x04\x01\x03\0\x02\0\ - \x03\x12\x03I\x1c\x1d\n\x84\x01\n\x06\x04\x01\x03\0\x02\x01\x12\x03M\x06\ - \x19\x1au\x20Indicates\x20that\x20the\x20client\x20should\x20drop\x20all\ - \x20previous\x20chunks\x20for\n\x20\"row_key\",\x20as\x20it\x20will\x20b\ - e\x20re-read\x20from\x20the\x20beginning.\n\n\x0e\n\x07\x04\x01\x03\0\ - \x02\x01\x05\x12\x03M\x06\n\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\ - \x03M\x0b\x14\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x03M\x17\x18\n\ - \x82\x01\n\x06\x04\x01\x03\0\x02\x02\x12\x03Q\x06\x1a\x1as\x20Indicates\ - \x20that\x20the\x20client\x20can\x20safely\x20process\x20all\x20previous\ - \x20chunks\x20for\n\x20\"row_key\",\x20as\x20its\x20data\x20has\x20been\ - \x20fully\x20read.\n\n\x0e\n\x07\x04\x01\x03\0\x02\x02\x05\x12\x03Q\x06\ - \n\n\x0e\n\x07\x04\x01\x03\0\x02\x02\x01\x12\x03Q\x0b\x15\n\x0e\n\x07\ - \x04\x01\x03\0\x02\x02\x03\x12\x03Q\x18\x19\n\xb8\x01\n\x04\x04\x01\x02\ - \0\x12\x03X\x02\x14\x1a\xaa\x01\x20The\x20key\x20of\x20the\x20row\x20for\ - \x20which\x20we're\x20receiving\x20data.\n\x20Results\x20will\x20be\x20r\ - eceived\x20in\x20increasing\x20row\x20key\x20order,\x20unless\n\x20\"all\ - ow_row_interleaving\"\x20was\x20specified\x20in\x20the\x20request.\n\n\r\ - \n\x05\x04\x01\x02\0\x04\x12\x04X\x02S\x03\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\x0f\n\x0c\n\ - \x05\x04\x01\x02\0\x03\x12\x03X\x12\x13\nD\n\x04\x04\x01\x02\x01\x12\x03\ - [\x02\x1c\x1a7\x20One\x20or\x20more\x20chunks\x20of\x20the\x20row\x20spe\ - cified\x20by\x20\"row_key\".\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03[\ - \x02\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03[\x0b\x10\n\x0c\n\x05\x04\ - \x01\x02\x01\x01\x12\x03[\x11\x17\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\ - \x03[\x1a\x1b\n@\n\x02\x04\x02\x12\x04_\0b\x01\x1a4\x20Request\x20messag\ - e\x20for\x20BigtableService.SampleRowKeys.\n\n\n\n\x03\x04\x02\x01\x12\ - \x03_\x08\x1c\nJ\n\x04\x04\x02\x02\0\x12\x03a\x02\x18\x1a=\x20The\x20uni\ - que\x20name\x20of\x20the\x20table\x20from\x20which\x20to\x20sample\x20ro\ - w\x20keys.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04a\x02_\x1e\n\x0c\n\x05\ - \x04\x02\x02\0\x05\x12\x03a\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\ - \x03a\t\x13\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03a\x16\x17\nA\n\x02\x04\ - \x03\x12\x04e\0t\x01\x1a5\x20Response\x20message\x20for\x20BigtableServi\ - ce.SampleRowKeys.\n\n\n\n\x03\x04\x03\x01\x12\x03e\x08\x1d\n\xdf\x03\n\ - \x04\x04\x03\x02\0\x12\x03m\x02\x14\x1a\xd1\x03\x20Sorted\x20streamed\ - \x20sequence\x20of\x20sample\x20row\x20keys\x20in\x20the\x20table.\x20Th\ - e\x20table\x20might\n\x20have\x20contents\x20before\x20the\x20first\x20r\ - ow\x20key\x20in\x20the\x20list\x20and\x20after\x20the\x20last\x20one,\n\ - \x20but\x20a\x20key\x20containing\x20the\x20empty\x20string\x20indicates\ - \x20\"end\x20of\x20table\"\x20and\x20will\x20be\n\x20the\x20last\x20resp\ - onse\x20given,\x20if\x20present.\n\x20Note\x20that\x20row\x20keys\x20in\ - \x20this\x20list\x20may\x20not\x20have\x20ever\x20been\x20written\x20to\ - \x20or\x20read\n\x20from,\x20and\x20users\x20should\x20therefore\x20not\ - \x20make\x20any\x20assumptions\x20about\x20the\x20row\x20key\n\x20struct\ - ure\x20that\x20are\x20specific\x20to\x20their\x20use\x20case.\n\n\r\n\ - \x05\x04\x03\x02\0\x04\x12\x04m\x02e\x1f\n\x0c\n\x05\x04\x03\x02\0\x05\ - \x12\x03m\x02\x07\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03m\x08\x0f\n\x0c\n\ - \x05\x04\x03\x02\0\x03\x12\x03m\x12\x13\n\xff\x01\n\x04\x04\x03\x02\x01\ - \x12\x03s\x02\x19\x1a\xf1\x01\x20Approximate\x20total\x20storage\x20spac\ - e\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\x20require\x20spa\ - ce\x20roughly\x20equal\x20to\x20the\x20difference\x20in\x20their\n\x20\"\ - offset_bytes\"\x20fields.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04s\x02m\ - \x14\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03s\x02\x07\n\x0c\n\x05\x04\ - \x03\x02\x01\x01\x12\x03s\x08\x14\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\ - \x03s\x17\x18\n=\n\x02\x04\x04\x12\x05w\0\x82\x01\x01\x1a0\x20Request\ - \x20message\x20for\x20BigtableService.MutateRow.\n\n\n\n\x03\x04\x04\x01\ - \x12\x03w\x08\x18\nT\n\x04\x04\x04\x02\0\x12\x03y\x02\x18\x1aG\x20The\ - \x20unique\x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20mutati\ - on\x20should\x20be\x20applied.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04y\ - \x02w\x1a\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03y\x02\x08\n\x0c\n\x05\x04\ - \x04\x02\0\x01\x12\x03y\t\x13\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03y\x16\ - \x17\nJ\n\x04\x04\x04\x02\x01\x12\x03|\x02\x14\x1a=\x20The\x20key\x20of\ - \x20the\x20row\x20to\x20which\x20the\x20mutation\x20should\x20be\x20appl\ - ied.\n\n\r\n\x05\x04\x04\x02\x01\x04\x12\x04|\x02y\x18\n\x0c\n\x05\x04\ - \x04\x02\x01\x05\x12\x03|\x02\x07\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\ - \x03|\x08\x0f\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03|\x12\x13\n\xd7\x01\ - \n\x04\x04\x04\x02\x02\x12\x04\x81\x01\x02\"\x1a\xc8\x01\x20Changes\x20t\ - o\x20be\x20atomically\x20applied\x20to\x20the\x20specified\x20row.\x20En\ - tries\x20are\x20applied\n\x20in\x20order,\x20meaning\x20that\x20earlier\ - \x20mutations\x20can\x20be\x20masked\x20by\x20later\x20ones.\n\x20Must\ - \x20contain\x20at\x20least\x20one\x20entry\x20and\x20at\x20most\x2010000\ - 0.\n\n\r\n\x05\x04\x04\x02\x02\x04\x12\x04\x81\x01\x02\n\n\r\n\x05\x04\ - \x04\x02\x02\x06\x12\x04\x81\x01\x0b\x13\n\r\n\x05\x04\x04\x02\x02\x01\ - \x12\x04\x81\x01\x14\x1d\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x81\x01\ - \x20!\n?\n\x02\x04\x05\x12\x06\x85\x01\0\x9a\x01\x01\x1a1\x20Request\x20\ - message\x20for\x20BigtableService.MutateRows.\n\n\x0b\n\x03\x04\x05\x01\ - \x12\x04\x85\x01\x08\x19\n\x0e\n\x04\x04\x05\x03\0\x12\x06\x86\x01\x02\ - \x8f\x01\x03\n\r\n\x05\x04\x05\x03\0\x01\x12\x04\x86\x01\n\x0f\nP\n\x06\ - \x04\x05\x03\0\x02\0\x12\x04\x88\x01\x04\x16\x1a@\x20The\x20key\x20of\ - \x20the\x20row\x20to\x20which\x20the\x20`mutations`\x20should\x20be\x20a\ - pplied.\n\n\x11\n\x07\x04\x05\x03\0\x02\0\x04\x12\x06\x88\x01\x04\x86\ - \x01\x11\n\x0f\n\x07\x04\x05\x03\0\x02\0\x05\x12\x04\x88\x01\x04\t\n\x0f\ - \n\x07\x04\x05\x03\0\x02\0\x01\x12\x04\x88\x01\n\x11\n\x0f\n\x07\x04\x05\ - \x03\0\x02\0\x03\x12\x04\x88\x01\x14\x15\n\xd1\x01\n\x06\x04\x05\x03\0\ - \x02\x01\x12\x04\x8e\x01\x04$\x1a\xc0\x01\x20Changes\x20to\x20be\x20atom\ - ically\x20applied\x20to\x20the\x20specified\x20row.\x20Mutations\x20are\ - \n\x20applied\x20in\x20order,\x20meaning\x20that\x20earlier\x20mutations\ - \x20can\x20be\x20masked\x20by\n\x20later\x20ones.\n\x20At\x20least\x20on\ - e\x20mutation\x20must\x20be\x20specified.\n\n\x0f\n\x07\x04\x05\x03\0\ - \x02\x01\x04\x12\x04\x8e\x01\x04\x0c\n\x0f\n\x07\x04\x05\x03\0\x02\x01\ - \x06\x12\x04\x8e\x01\r\x15\n\x0f\n\x07\x04\x05\x03\0\x02\x01\x01\x12\x04\ - \x8e\x01\x16\x1f\n\x0f\n\x07\x04\x05\x03\0\x02\x01\x03\x12\x04\x8e\x01\"\ - #\nV\n\x04\x04\x05\x02\0\x12\x04\x92\x01\x02\x18\x1aH\x20The\x20unique\ - \x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20mutations\x20sho\ - uld\x20be\x20applied.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\x92\x01\ - \x02\x8f\x01\x03\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\x92\x01\x02\x08\n\r\ - \n\x05\x04\x05\x02\0\x01\x12\x04\x92\x01\t\x13\n\r\n\x05\x04\x05\x02\0\ - \x03\x12\x04\x92\x01\x16\x17\n\xaf\x02\n\x04\x04\x05\x02\x01\x12\x04\x99\ - \x01\x02\x1d\x1a\xa0\x02\x20The\x20row\x20keys/mutations\x20to\x20be\x20\ - applied\x20in\x20bulk.\n\x20Each\x20entry\x20is\x20applied\x20as\x20an\ - \x20atomic\x20mutation,\x20but\x20the\x20entries\x20may\x20be\n\x20appli\ - ed\x20in\x20arbitrary\x20order\x20(even\x20between\x20entries\x20for\x20\ - the\x20same\x20row).\n\x20At\x20least\x20one\x20entry\x20must\x20be\x20s\ - pecified,\x20and\x20in\x20total\x20the\x20entries\x20may\n\x20contain\ - \x20at\x20most\x20100000\x20mutations.\n\n\r\n\x05\x04\x05\x02\x01\x04\ - \x12\x04\x99\x01\x02\n\n\r\n\x05\x04\x05\x02\x01\x06\x12\x04\x99\x01\x0b\ - \x10\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x99\x01\x11\x18\n\r\n\x05\x04\ - \x05\x02\x01\x03\x12\x04\x99\x01\x1b\x1c\n@\n\x02\x04\x06\x12\x06\x9d\ - \x01\0\xa4\x01\x01\x1a2\x20Response\x20message\x20for\x20BigtableService\ - .MutateRows.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x9d\x01\x08\x1a\n\xd6\x02\ - \n\x04\x04\x06\x02\0\x12\x04\xa3\x01\x02*\x1a\xc7\x02\x20The\x20results\ - \x20for\x20each\x20Entry\x20from\x20the\x20request,\x20presented\x20in\ - \x20the\x20order\n\x20in\x20which\x20the\x20entries\x20were\x20originall\ - y\x20given.\n\x20Depending\x20on\x20how\x20requests\x20are\x20batched\ - \x20during\x20execution,\x20it\x20is\x20possible\n\x20for\x20one\x20Entr\ - y\x20to\x20fail\x20due\x20to\x20an\x20error\x20with\x20another\x20Entry.\ - \x20In\x20the\x20event\n\x20that\x20this\x20occurs,\x20the\x20same\x20er\ - ror\x20will\x20be\x20reported\x20for\x20both\x20entries.\n\n\r\n\x05\x04\ - \x06\x02\0\x04\x12\x04\xa3\x01\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\ - \xa3\x01\x0b\x1c\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xa3\x01\x1d%\n\r\n\ - \x05\x04\x06\x02\0\x03\x12\x04\xa3\x01()\nL\n\x02\x04\x07\x12\x06\xa7\ - \x01\0\xc2\x01\x01\x1a>\x20Request\x20message\x20for\x20BigtableService.\ - CheckAndMutateRowRequest\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xa7\x01\x08\ - \x20\nb\n\x04\x04\x07\x02\0\x12\x04\xaa\x01\x02\x18\x1aT\x20The\x20uniqu\ - e\x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20conditional\x20\ - mutation\x20should\x20be\n\x20applied.\n\n\x0f\n\x05\x04\x07\x02\0\x04\ - \x12\x06\xaa\x01\x02\xa7\x01\"\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xaa\ - \x01\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xaa\x01\t\x13\n\r\n\x05\ - \x04\x07\x02\0\x03\x12\x04\xaa\x01\x16\x17\nW\n\x04\x04\x07\x02\x01\x12\ - \x04\xad\x01\x02\x14\x1aI\x20The\x20key\x20of\x20the\x20row\x20to\x20whi\ - ch\x20the\x20conditional\x20mutation\x20should\x20be\x20applied.\n\n\x0f\ - \n\x05\x04\x07\x02\x01\x04\x12\x06\xad\x01\x02\xaa\x01\x18\n\r\n\x05\x04\ - \x07\x02\x01\x05\x12\x04\xad\x01\x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\ - \x12\x04\xad\x01\x08\x0f\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xad\x01\ - \x12\x13\n\x80\x02\n\x04\x04\x07\x02\x02\x12\x04\xb3\x01\x02!\x1a\xf1\ - \x01\x20The\x20filter\x20to\x20be\x20applied\x20to\x20the\x20contents\ - \x20of\x20the\x20specified\x20row.\x20Depending\n\x20on\x20whether\x20or\ - \x20not\x20any\x20results\x20are\x20yielded,\x20either\x20\"true_mutatio\ - ns\"\x20or\n\x20\"false_mutations\"\x20will\x20be\x20executed.\x20If\x20\ - unset,\x20checks\x20that\x20the\x20row\x20contains\n\x20any\x20values\ - \x20at\x20all.\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xb3\x01\x02\xad\ - \x01\x14\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xb3\x01\x02\x0b\n\r\n\x05\ - \x04\x07\x02\x02\x01\x12\x04\xb3\x01\x0c\x1c\n\r\n\x05\x04\x07\x02\x02\ - \x03\x12\x04\xb3\x01\x1f\x20\n\xc1\x02\n\x04\x04\x07\x02\x03\x12\x04\xba\ - \x01\x02'\x1a\xb2\x02\x20Changes\x20to\x20be\x20atomically\x20applied\ - \x20to\x20the\x20specified\x20row\x20if\x20\"predicate_filter\"\n\x20yie\ - lds\x20at\x20least\x20one\x20cell\x20when\x20applied\x20to\x20\"row_key\ - \".\x20Entries\x20are\x20applied\x20in\n\x20order,\x20meaning\x20that\ - \x20earlier\x20mutations\x20can\x20be\x20masked\x20by\x20later\x20ones.\ - \n\x20Must\x20contain\x20at\x20least\x20one\x20entry\x20if\x20\"false_mu\ - tations\"\x20is\x20empty,\x20and\x20at\x20most\n\x20100000.\n\n\r\n\x05\ - \x04\x07\x02\x03\x04\x12\x04\xba\x01\x02\n\n\r\n\x05\x04\x07\x02\x03\x06\ - \x12\x04\xba\x01\x0b\x13\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\xba\x01\ - \x14\"\n\r\n\x05\x04\x07\x02\x03\x03\x12\x04\xba\x01%&\n\xc0\x02\n\x04\ - \x04\x07\x02\x04\x12\x04\xc1\x01\x02(\x1a\xb1\x02\x20Changes\x20to\x20be\ - \x20atomically\x20applied\x20to\x20the\x20specified\x20row\x20if\x20\"pr\ - edicate_filter\"\n\x20does\x20not\x20yield\x20any\x20cells\x20when\x20ap\ - plied\x20to\x20\"row_key\".\x20Entries\x20are\x20applied\x20in\n\x20orde\ - r,\x20meaning\x20that\x20earlier\x20mutations\x20can\x20be\x20masked\x20\ - by\x20later\x20ones.\n\x20Must\x20contain\x20at\x20least\x20one\x20entry\ - \x20if\x20\"true_mutations\"\x20is\x20empty,\x20and\x20at\x20most\n\x201\ - 00000.\n\n\r\n\x05\x04\x07\x02\x04\x04\x12\x04\xc1\x01\x02\n\n\r\n\x05\ - \x04\x07\x02\x04\x06\x12\x04\xc1\x01\x0b\x13\n\r\n\x05\x04\x07\x02\x04\ - \x01\x12\x04\xc1\x01\x14#\n\r\n\x05\x04\x07\x02\x04\x03\x12\x04\xc1\x01&\ - '\nN\n\x02\x04\x08\x12\x06\xc5\x01\0\xc9\x01\x01\x1a@\x20Response\x20mes\ - sage\x20for\x20BigtableService.CheckAndMutateRowRequest.\n\n\x0b\n\x03\ - \x04\x08\x01\x12\x04\xc5\x01\x08!\nk\n\x04\x04\x08\x02\0\x12\x04\xc8\x01\ - \x02\x1d\x1a]\x20Whether\x20or\x20not\x20the\x20request's\x20\"predicate\ - _filter\"\x20yielded\x20any\x20results\x20for\n\x20the\x20specified\x20r\ - ow.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xc8\x01\x02\xc5\x01#\n\r\n\ - \x05\x04\x08\x02\0\x05\x12\x04\xc8\x01\x02\x06\n\r\n\x05\x04\x08\x02\0\ - \x01\x12\x04\xc8\x01\x07\x18\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xc8\x01\ - \x1b\x1c\nN\n\x02\x04\t\x12\x06\xcc\x01\0\xd8\x01\x01\x1a@\x20Request\ - \x20message\x20for\x20BigtableService.ReadModifyWriteRowRequest.\n\n\x0b\ - \n\x03\x04\t\x01\x12\x04\xcc\x01\x08!\ne\n\x04\x04\t\x02\0\x12\x04\xcf\ - \x01\x02\x18\x1aW\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\ - \x20which\x20the\x20read/modify/write\x20rules\x20should\x20be\n\x20appl\ - ied.\n\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\xcf\x01\x02\xcc\x01#\n\r\n\ - \x05\x04\t\x02\0\x05\x12\x04\xcf\x01\x02\x08\n\r\n\x05\x04\t\x02\0\x01\ - \x12\x04\xcf\x01\t\x13\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xcf\x01\x16\x17\ - \nZ\n\x04\x04\t\x02\x01\x12\x04\xd2\x01\x02\x14\x1aL\x20The\x20key\x20of\ - \x20the\x20row\x20to\x20which\x20the\x20read/modify/write\x20rules\x20sh\ - ould\x20be\x20applied.\n\n\x0f\n\x05\x04\t\x02\x01\x04\x12\x06\xd2\x01\ - \x02\xcf\x01\x18\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\xd2\x01\x02\x07\n\r\ - \n\x05\x04\t\x02\x01\x01\x12\x04\xd2\x01\x08\x0f\n\r\n\x05\x04\t\x02\x01\ - \x03\x12\x04\xd2\x01\x12\x13\n\xc7\x01\n\x04\x04\t\x02\x02\x12\x04\xd7\ - \x01\x02)\x1a\xb8\x01\x20Rules\x20specifying\x20how\x20the\x20specified\ - \x20row's\x20contents\x20are\x20to\x20be\x20transformed\n\x20into\x20wri\ - tes.\x20Entries\x20are\x20applied\x20in\x20order,\x20meaning\x20that\x20\ - earlier\x20rules\x20will\n\x20affect\x20the\x20results\x20of\x20later\ - \x20ones.\n\n\r\n\x05\x04\t\x02\x02\x04\x12\x04\xd7\x01\x02\n\n\r\n\x05\ - \x04\t\x02\x02\x06\x12\x04\xd7\x01\x0b\x1e\n\r\n\x05\x04\t\x02\x02\x01\ - \x12\x04\xd7\x01\x1f$\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xd7\x01'(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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable.rs deleted file mode 100644 index a2f53165c9..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable.rs +++ /dev/null @@ -1,4381 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/bigtable.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ReadRowsRequest { - // message fields - pub table_name: ::std::string::String, - pub app_profile_id: ::std::string::String, - pub rows: ::protobuf::SingularPtrField, - pub filter: ::protobuf::SingularPtrField, - pub rows_limit: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadRowsRequest { - fn default() -> &'a ReadRowsRequest { - ::default_instance() - } -} - -impl ReadRowsRequest { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_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)); - } - let tmp = is.read_int64()?; - self.rows_limit = 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.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(5, &self.app_profile_id); - } - if let Some(ref v) = self.rows.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.rows_limit != 0 { - my_size += ::protobuf::rt::value_size(4, self.rows_limit, ::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.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(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 self.rows_limit != 0 { - os.write_int64(4, self.rows_limit)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 }, - )); - ::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.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) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadRowsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadRowsResponse { - // message fields - pub chunks: ::protobuf::RepeatedField, - pub last_scanned_row_key: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadRowsResponse { - fn default() -> &'a ReadRowsResponse { - ::default_instance() - } -} - -impl ReadRowsResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for ReadRowsResponse { - fn is_initialized(&self) -> bool { - for v in &self.chunks { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.chunks { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.last_scanned_row_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.last_scanned_row_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<()> { - 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)?; - }; - if !self.last_scanned_row_key.is_empty() { - os.write_bytes(2, &self.last_scanned_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() - } - - 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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadRowsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadRowsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadRowsResponse::new) - } -} - -impl ::protobuf::Clear for ReadRowsResponse { - fn clear(&mut self) { - self.chunks.clear(); - self.last_scanned_row_key.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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, -} - -impl<'a> ::std::default::Default for &'a ReadRowsResponse_CellChunk { - fn default() -> &'a ReadRowsResponse_CellChunk { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ReadRowsResponse_CellChunk_oneof_row_status { - reset_row(bool), - commit_row(bool), -} - -impl ReadRowsResponse_CellChunk { - pub fn new() -> ReadRowsResponse_CellChunk { - ::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()) - } - - // .google.protobuf.StringValue family_name = 2; - - - 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(); - } - 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(); - } - 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, - } - } - 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, - } - } - - // 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, - } - } - 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, - } - } - - // 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())?; - }, - }; - } - ::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); - } - 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)?; - } - 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() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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() - ) - }) - } - - fn default_instance() -> &'static ReadRowsResponse_CellChunk { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadRowsResponse_CellChunk::new) - } -} - -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 ::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::reflect::ProtobufValue for ReadRowsResponse_CellChunk { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SampleRowKeysRequest { - // 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 SampleRowKeysRequest { - fn default() -> &'a SampleRowKeysRequest { - ::default_instance() - } -} - -impl SampleRowKeysRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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() -> 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 default_instance() -> &'static SampleRowKeysRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SampleRowKeysRequest::new) - } -} - -impl ::protobuf::Clear for SampleRowKeysRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.app_profile_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SampleRowKeysResponse { - // message fields - pub row_key: ::std::vec::Vec, - pub offset_bytes: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SampleRowKeysResponse { - fn default() -> &'a SampleRowKeysResponse { - ::default_instance() - } -} - -impl SampleRowKeysResponse { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 self.offset_bytes != 0 { - my_size += ::protobuf::rt::value_size(2, self.offset_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.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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 default_instance() -> &'static SampleRowKeysResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SampleRowKeysResponse::new) - } -} - -impl ::protobuf::Clear for SampleRowKeysResponse { - fn clear(&mut self) { - self.row_key.clear(); - self.offset_bytes = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MutateRowRequest { - // message fields - pub table_name: ::std::string::String, - pub app_profile_id: ::std::string::String, - pub row_key: ::std::vec::Vec, - pub mutations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MutateRowRequest { - fn default() -> &'a MutateRowRequest { - ::default_instance() - } -} - -impl MutateRowRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.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(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.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(4, &self.app_profile_id)?; - } - if !self.row_key.is_empty() { - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static MutateRowRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MutateRowResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MutateRowResponse { - fn default() -> &'a MutateRowResponse { - ::default_instance() - } -} - -impl MutateRowResponse { - pub fn new() -> MutateRowResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for 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())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static MutateRowResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowResponse::new) - } -} - -impl ::protobuf::Clear for MutateRowResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MutateRowsRequest { - // message fields - pub table_name: ::std::string::String, - pub app_profile_id: ::std::string::String, - pub entries: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MutateRowsRequest { - fn default() -> &'a MutateRowsRequest { - ::default_instance() - } -} - -impl MutateRowsRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.entries)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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(3, &self.app_profile_id); - } - for value in &self.entries { - 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(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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 { - 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 default_instance() -> &'static MutateRowsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowsRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[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<'a> ::std::default::Default for &'a MutateRowsRequest_Entry { - fn default() -> &'a MutateRowsRequest_Entry { - ::default_instance() - } -} - -impl MutateRowsRequest_Entry { - pub fn new() -> MutateRowsRequest_Entry { - ::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()) - } - - // repeated .google.bigtable.v2.Mutation mutations = 2; - - - 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()) - } -} - -impl ::protobuf::Message for MutateRowsRequest_Entry { - 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - 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); - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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, - // 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() - } -} - -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()) - } -} - -impl ::protobuf::Message for MutateRowsResponse { - 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_repeated_message_into(wire_type, is, &mut self.entries)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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 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 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) - } -} - -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\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%\xe0A\x02\xfaA\x1f\n\x1dbigtable.google\ - apis.com/Table\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%\xe0A\x02\xfaA\x1f\n\x1dbigtable\ - .googleapis.com/Table\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%\xe0A\x02\xfaA\x1f\n\x1dbigtable.google\ - apis.com/Table\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%\xe0A\x02\ - \xfaA\x1f\n\x1dbigtable.googleapis.com/Table\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\xdaA\ntable_name\xdaA\x19table_name,app_profile_id\ - \x82\xd3\xe4\x93\x02>\"9/v2/{table_name=projects/*/instances/*/tables/*}\ - :readRows:\x01*0\x01\x12\xd7\x01\n\rSampleRowKeys\x12(.google.bigtable.v\ - 2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse\"o\ - \x82\xd3\xe4\x93\x02@\x12>/v2/{table_name=projects/*/instances/*/tables/\ - *}:sampleRowKeys\xdaA\ntable_name\xdaA\x19table_name,app_profile_id0\x01\ - \x12\xed\x01\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.\ - google.bigtable.v2.MutateRowResponse\"\x92\x01\x82\xd3\xe4\x93\x02?\":/v\ - 2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*\xdaA\x1ct\ - able_name,row_key,mutations\xdaA+table_name,row_key,mutations,app_profil\ - e_id\x12\xde\x01\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\ - \x1a&.google.bigtable.v2.MutateRowsResponse\"\x7f\xdaA\x12table_name,ent\ - ries\xdaA!table_name,entries,app_profile_id\x82\xd3\xe4\x93\x02@\";/v2/{\ - table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*0\x01\x12\ - \xd9\x02\n\x11CheckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRo\ - wRequest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse\"\xe6\x01\x82\ - \xd3\xe4\x93\x02G\"B/v2/{table_name=projects/*/instances/*/tables/*}:che\ - ckAndMutateRow:\x01*\xdaABtable_name,row_key,predicate_filter,true_mutat\ - ions,false_mutations\xdaAQtable_name,row_key,predicate_filter,true_mutat\ - ions,false_mutations,app_profile_id\x12\x89\x02\n\x12ReadModifyWriteRow\ - \x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.\ - v2.ReadModifyWriteRowResponse\"\x93\x01\x82\xd3\xe4\x93\x02H\"C/v2/{tabl\ - e_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*\xdaA\ - \x18table_name,row_key,rules\xdaA'table_name,row_key,rules,app_profile_i\ - d\x1a\xdb\x02\xd2A\xbd\x02https://www.googleapis.com/auth/bigtable.data,\ - https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googl\ - eapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud\ - -bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,h\ - ttps://www.googleapis.com/auth/cloud-platform.read-only\xcaA\x17bigtable\ - .googleapis.comB\x93\x02\n\x16com.google.bigtable.v2B\rBigtableProtoP\ - \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::V2\xeaAW\n\x1dbigtable.googleapis.com/T\ - able\x126projects/{project}/instances/{instance}/tables/{table}J\xf2\x81\ - \x01\n\x07\x12\x05\x0e\0\xaa\x03\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb2\x04\x20Copyright\x202019\x20Google\x20LLC.\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\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\x08\n\ - \x01\x08\x12\x03\x20\04\n\t\n\x02\x08-\x12\x03\x20\04\n\t\n\x01\x08\x12\ - \x04!\0$\x02\n\x0c\n\x04\x08\x9d\x08\0\x12\x04!\0$\x02\nO\n\x02\x06\0\ - \x12\x04'\0y\x01\x1aC\x20Service\x20for\x20reading\x20from\x20and\x20wri\ - ting\x20to\x20existing\x20Bigtable\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\x046\ - \x02=\x03\x1a\xb2\x02\x20Streams\x20back\x20the\x20contents\x20of\x20all\ - \x20requested\x20rows\x20in\x20key\x20order,\x20optionally\n\x20applying\ - \x20the\x20same\x20Reader\x20filter\x20to\x20each.\x20Depending\x20on\ - \x20their\x20size,\n\x20rows\x20and\x20cells\x20may\x20be\x20broken\x20u\ - p\x20across\x20multiple\x20responses,\x20but\n\x20atomicity\x20of\x20eac\ - h\x20row\x20will\x20still\x20be\x20preserved.\x20See\x20the\n\x20ReadRow\ - sResponse\x20documentation\x20for\x20details.\n\n\x0c\n\x05\x06\0\x02\0\ - \x01\x12\x036\x06\x0e\n\x0c\n\x05\x06\0\x02\0\x02\x12\x036\x0f\x1e\n\x0c\ - \n\x05\x06\0\x02\0\x06\x12\x036)/\n\x0c\n\x05\x06\0\x02\0\x03\x12\x0360@\ - \n\r\n\x05\x06\0\x02\0\x04\x12\x047\x04:\x06\n\x11\n\t\x06\0\x02\0\x04\ - \xb0\xca\xbc\"\x12\x047\x04:\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\x04C\x02I\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\x03C\x06\x13\n\x0c\n\x05\x06\0\x02\x01\x02\x12\ - \x03C\x14(\n\x0c\n\x05\x06\0\x02\x01\x06\x12\x03C39\n\x0c\n\x05\x06\0\ - \x02\x01\x03\x12\x03C:O\n\r\n\x05\x06\0\x02\x01\x04\x12\x04D\x04F\x06\n\ - \x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04D\x04F\x06\n\x0c\n\x05\ - \x06\0\x02\x01\x04\x12\x03G\x048\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\ - \x12\x03G\x048\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03H\x04G\n\x0f\n\x08\ - \x06\0\x02\x01\x04\x9b\x08\x01\x12\x03H\x04G\n\x87\x01\n\x04\x06\0\x02\ - \x02\x12\x04M\x02T\x03\x1ay\x20Mutates\x20a\x20row\x20atomically.\x20Cel\ - ls\x20already\x20present\x20in\x20the\x20row\x20are\x20left\n\x20unchang\ - ed\x20unless\x20explicitly\x20changed\x20by\x20`mutation`.\n\n\x0c\n\x05\ - \x06\0\x02\x02\x01\x12\x03M\x06\x0f\n\x0c\n\x05\x06\0\x02\x02\x02\x12\ - \x03M\x10\x20\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03M+<\n\r\n\x05\x06\0\ - \x02\x02\x04\x12\x04N\x04Q\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\ - \x12\x04N\x04Q\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03R\x04J\n\x0f\n\ - \x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03R\x04J\n\x0c\n\x05\x06\0\x02\x02\ - \x04\x12\x03S\x04Y\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\x01\x12\x03S\ - \x04Y\n\xa0\x01\n\x04\x06\0\x02\x03\x12\x04Y\x02`\x03\x1a\x91\x01\x20Mut\ - ates\x20multiple\x20rows\x20in\x20a\x20batch.\x20Each\x20individual\x20r\ - ow\x20is\x20mutated\n\x20atomically\x20as\x20in\x20MutateRow,\x20but\x20\ - the\x20entire\x20batch\x20is\x20not\x20executed\n\x20atomically.\n\n\x0c\ - \n\x05\x06\0\x02\x03\x01\x12\x03Y\x06\x10\n\x0c\n\x05\x06\0\x02\x03\x02\ - \x12\x03Y\x11\"\n\x0c\n\x05\x06\0\x02\x03\x06\x12\x03Y-3\n\x0c\n\x05\x06\ - \0\x02\x03\x03\x12\x03Y4F\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^\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\ - \x04c\x02j\x03\x1aL\x20Mutates\x20a\x20row\x20atomically\x20based\x20on\ - \x20the\x20output\x20of\x20a\x20predicate\x20Reader\x20filter.\n\n\x0c\n\ - \x05\x06\0\x02\x04\x01\x12\x03c\x06\x17\n\x0c\n\x05\x06\0\x02\x04\x02\ - \x12\x03c\x180\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03c;T\n\r\n\x05\x06\0\ - \x02\x04\x04\x12\x04d\x04g\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\ - \x12\x04d\x04g\x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03h\x04p\n\x0f\n\ - \x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03h\x04p\n\x0c\n\x05\x06\0\x02\x04\ - \x04\x12\x03i\x04\x7f\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\x01\x12\x03i\ - \x04\x7f\n\xf6\x02\n\x04\x06\0\x02\x05\x12\x04q\x02x\x03\x1a\xe7\x02\x20\ - Modifies\x20a\x20row\x20atomically\x20on\x20the\x20server.\x20The\x20met\ - hod\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\x20the\x20gre\ - ater\x20of\x20the\x20existing\x20timestamp\x20or\x20the\x20current\x20se\ - rver\n\x20time.\x20The\x20method\x20returns\x20the\x20new\x20contents\ - \x20of\x20all\x20modified\x20cells.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\ - \x03q\x06\x18\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03q\x192\n\x0c\n\x05\ - \x06\0\x02\x05\x03\x12\x03q=W\n\r\n\x05\x06\0\x02\x05\x04\x12\x04r\x04u\ - \x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04r\x04u\x06\n\x0c\n\ - \x05\x06\0\x02\x05\x04\x12\x03v\x04F\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\ - \x08\0\x12\x03v\x04F\n\x0c\n\x05\x06\0\x02\x05\x04\x12\x03w\x04U\n\x0f\n\ - \x08\x06\0\x02\x05\x04\x9b\x08\x01\x12\x03w\x04U\n5\n\x02\x04\0\x12\x05|\ - \0\x95\x01\x01\x1a(\x20Request\x20message\x20for\x20Bigtable.ReadRows.\n\ - \n\n\n\x03\x04\0\x01\x12\x03|\x08\x17\n\xa0\x01\n\x04\x04\0\x02\0\x12\ - \x06\x80\x01\x02\x85\x01\x04\x1a\x8f\x01\x20Required.\x20The\x20unique\ - \x20name\x20of\x20the\x20table\x20from\x20which\x20to\x20read.\n\x20Valu\ - es\x20are\x20of\x20the\x20form\n\x20`projects//instances//tables/
`.\n\n\x0e\n\x05\x04\0\x02\0\x04\x12\x05\x80\x01\x02|\ - \x19\n\r\n\x05\x04\0\x02\0\x05\x12\x04\x80\x01\x02\x08\n\r\n\x05\x04\0\ - \x02\0\x01\x12\x04\x80\x01\t\x13\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x80\ - \x01\x16\x17\n\x0f\n\x05\x04\0\x02\0\x08\x12\x06\x80\x01\x18\x85\x01\x03\ - \n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\x81\x01\x04*\n\x11\n\x07\ - \x04\0\x02\0\x08\x9f\x08\x12\x06\x82\x01\x04\x84\x01\x05\n\x80\x01\n\x04\ - \x04\0\x02\x01\x12\x04\x89\x01\x02\x1c\x1ar\x20This\x20value\x20specifie\ - s\x20routing\x20for\x20replication.\x20If\x20not\x20specified,\x20the\n\ - \x20\"default\"\x20application\x20profile\x20will\x20be\x20used.\n\n\x0f\ - \n\x05\x04\0\x02\x01\x04\x12\x06\x89\x01\x02\x85\x01\x04\n\r\n\x05\x04\0\ - \x02\x01\x05\x12\x04\x89\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\ - \x89\x01\t\x17\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x89\x01\x1a\x1b\nZ\n\ - \x04\x04\0\x02\x02\x12\x04\x8c\x01\x02\x12\x1aL\x20The\x20row\x20keys\ - \x20and/or\x20ranges\x20to\x20read.\x20If\x20not\x20specified,\x20reads\ - \x20from\x20all\x20rows.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\x8c\x01\ - \x02\x89\x01\x1c\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x8c\x01\x02\x08\n\r\ - \n\x05\x04\0\x02\x02\x01\x12\x04\x8c\x01\t\r\n\r\n\x05\x04\0\x02\x02\x03\ - \x12\x04\x8c\x01\x10\x11\nw\n\x04\x04\0\x02\x03\x12\x04\x90\x01\x02\x17\ - \x1ai\x20The\x20filter\x20to\x20apply\x20to\x20the\x20contents\x20of\x20\ - the\x20specified\x20row(s).\x20If\x20unset,\n\x20reads\x20the\x20entiret\ - y\x20of\x20each\x20row.\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\x90\x01\ - \x02\x8c\x01\x12\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x90\x01\x02\x0b\n\r\ - \n\x05\x04\0\x02\x03\x01\x12\x04\x90\x01\x0c\x12\n\r\n\x05\x04\0\x02\x03\ - \x03\x12\x04\x90\x01\x15\x16\n\x83\x01\n\x04\x04\0\x02\x04\x12\x04\x94\ - \x01\x02\x17\x1au\x20The\x20read\x20will\x20terminate\x20after\x20commit\ - ting\x20to\x20N\x20rows'\x20worth\x20of\x20results.\x20The\n\x20default\ - \x20(zero)\x20is\x20to\x20return\x20all\x20results.\n\n\x0f\n\x05\x04\0\ - \x02\x04\x04\x12\x06\x94\x01\x02\x90\x01\x17\n\r\n\x05\x04\0\x02\x04\x05\ - \x12\x04\x94\x01\x02\x07\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\x94\x01\x08\ - \x12\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\x94\x01\x15\x16\n7\n\x02\x04\ - \x01\x12\x06\x98\x01\0\xe4\x01\x01\x1a)\x20Response\x20message\x20for\ - \x20Bigtable.ReadRows.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x98\x01\x08\x18\ - \nf\n\x04\x04\x01\x03\0\x12\x06\x9b\x01\x02\xd7\x01\x03\x1aV\x20Specifie\ - s\x20a\x20piece\x20of\x20a\x20row's\x20contents\x20returned\x20as\x20par\ - t\x20of\x20the\x20read\n\x20response\x20stream.\n\n\r\n\x05\x04\x01\x03\ - \0\x01\x12\x04\x9b\x01\n\x13\n\xf9\x01\n\x06\x04\x01\x03\0\x02\0\x12\x04\ - \xa0\x01\x04\x16\x1a\xe8\x01\x20The\x20row\x20key\x20for\x20this\x20chun\ - k\x20of\x20data.\x20\x20If\x20the\x20row\x20key\x20is\x20empty,\n\x20thi\ - s\x20CellChunk\x20is\x20a\x20continuation\x20of\x20the\x20same\x20row\ - \x20as\x20the\x20previous\n\x20CellChunk\x20in\x20the\x20response\x20str\ - eam,\x20even\x20if\x20that\x20CellChunk\x20was\x20in\x20a\n\x20previous\ - \x20ReadRowsResponse\x20message.\n\n\x11\n\x07\x04\x01\x03\0\x02\0\x04\ - \x12\x06\xa0\x01\x04\x9b\x01\x15\n\x0f\n\x07\x04\x01\x03\0\x02\0\x05\x12\ - \x04\xa0\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\0\x01\x12\x04\xa0\x01\n\ - \x11\n\x0f\n\x07\x04\x01\x03\0\x02\0\x03\x12\x04\xa0\x01\x14\x15\n\xf3\ - \x02\n\x06\x04\x01\x03\0\x02\x01\x12\x04\xa8\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\x11\n\x07\x04\x01\x03\0\x02\x01\ - \x04\x12\x06\xa8\x01\x04\xa0\x01\x16\n\x0f\n\x07\x04\x01\x03\0\x02\x01\ - \x06\x12\x04\xa8\x01\x04\x1f\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x01\x12\ - \x04\xa8\x01\x20+\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x04\xa8\x01.\ - /\n\xbb\x02\n\x06\x04\x01\x03\0\x02\x02\x12\x04\xaf\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\x11\n\x07\x04\x01\x03\0\x02\x02\x04\x12\x06\ - \xaf\x01\x04\xa8\x010\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x06\x12\x04\xaf\ - \x01\x04\x1e\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x01\x12\x04\xaf\x01\x1f(\ - \n\x0f\n\x07\x04\x01\x03\0\x02\x02\x03\x12\x04\xaf\x01+,\n\xdd\x03\n\x06\ - \x04\x01\x03\0\x02\x03\x12\x04\xb9\x01\x04\x1f\x1a\xcc\x03\x20The\x20cel\ - l's\x20stored\x20timestamp,\x20which\x20also\x20uniquely\x20identifies\ - \x20it\n\x20within\x20its\x20column.\x20\x20Values\x20are\x20always\x20e\ - xpressed\x20in\n\x20microseconds,\x20but\x20individual\x20tables\x20may\ - \x20set\x20a\x20coarser\n\x20granularity\x20to\x20further\x20restrict\ - \x20the\x20allowed\x20values.\x20For\n\x20example,\x20a\x20table\x20whic\ - h\x20specifies\x20millisecond\x20granularity\x20will\n\x20only\x20allow\ - \x20values\x20of\x20`timestamp_micros`\x20which\x20are\x20multiples\x20o\ - f\n\x201000.\x20\x20Timestamps\x20are\x20only\x20set\x20in\x20the\x20fir\ - st\x20CellChunk\x20per\x20cell\n\x20(for\x20cells\x20split\x20into\x20mu\ - ltiple\x20chunks).\n\n\x11\n\x07\x04\x01\x03\0\x02\x03\x04\x12\x06\xb9\ - \x01\x04\xaf\x01-\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x05\x12\x04\xb9\x01\ - \x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x01\x12\x04\xb9\x01\n\x1a\n\x0f\ - \n\x07\x04\x01\x03\0\x02\x03\x03\x12\x04\xb9\x01\x1d\x1e\n\x95\x01\n\x06\ - \x04\x01\x03\0\x02\x04\x12\x04\xbe\x01\x04\x1f\x1a\x84\x01\x20Labels\x20\ - applied\x20to\x20the\x20cell\x20by\x20a\n\x20[RowFilter][google.bigtable\ - .v2.RowFilter].\x20\x20Labels\x20are\x20only\x20set\n\x20on\x20the\x20fi\ - rst\x20CellChunk\x20per\x20cell.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x04\ - \x12\x04\xbe\x01\x04\x0c\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x05\x12\x04\ - \xbe\x01\r\x13\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x01\x12\x04\xbe\x01\x14\ - \x1a\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x03\x12\x04\xbe\x01\x1d\x1e\n\xbf\ - \x02\n\x06\x04\x01\x03\0\x02\x05\x12\x04\xc5\x01\x04\x14\x1a\xae\x02\x20\ - The\x20value\x20stored\x20in\x20the\x20cell.\x20\x20Cell\x20values\x20ca\ - n\x20be\x20split\x20across\n\x20multiple\x20CellChunks.\x20\x20In\x20tha\ - t\x20case\x20only\x20the\x20value\x20field\x20will\x20be\n\x20set\x20in\ - \x20CellChunks\x20after\x20the\x20first:\x20the\x20timestamp\x20and\x20l\ - abels\n\x20will\x20only\x20be\x20present\x20in\x20the\x20first\x20CellCh\ - unk,\x20even\x20if\x20the\x20first\n\x20CellChunk\x20came\x20in\x20a\x20\ - previous\x20ReadRowsResponse.\n\n\x11\n\x07\x04\x01\x03\0\x02\x05\x04\ - \x12\x06\xc5\x01\x04\xbe\x01\x1f\n\x0f\n\x07\x04\x01\x03\0\x02\x05\x05\ - \x12\x04\xc5\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\x05\x01\x12\x04\xc5\ - \x01\n\x0f\n\x0f\n\x07\x04\x01\x03\0\x02\x05\x03\x12\x04\xc5\x01\x12\x13\ - \n\x85\x02\n\x06\x04\x01\x03\0\x02\x06\x12\x04\xcb\x01\x04\x19\x1a\xf4\ - \x01\x20If\x20this\x20CellChunk\x20is\x20part\x20of\x20a\x20chunked\x20c\ - ell\x20value\x20and\x20this\x20is\n\x20not\x20the\x20final\x20chunk\x20o\ - f\x20that\x20cell,\x20value_size\x20will\x20be\x20set\x20to\x20the\n\x20\ - total\x20length\x20of\x20the\x20cell\x20value.\x20\x20The\x20client\x20c\ - an\x20use\x20this\x20size\n\x20to\x20pre-allocate\x20memory\x20to\x20hol\ - d\x20the\x20full\x20cell\x20value.\n\n\x11\n\x07\x04\x01\x03\0\x02\x06\ - \x04\x12\x06\xcb\x01\x04\xc5\x01\x14\n\x0f\n\x07\x04\x01\x03\0\x02\x06\ - \x05\x12\x04\xcb\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\x06\x01\x12\x04\ - \xcb\x01\n\x14\n\x0f\n\x07\x04\x01\x03\0\x02\x06\x03\x12\x04\xcb\x01\x17\ - \x18\nR\n\x06\x04\x01\x03\0\x08\0\x12\x06\xce\x01\x04\xd6\x01\x05\x1a@\ - \x20Signals\x20to\x20the\x20client\x20concerning\x20previous\x20CellChun\ - ks\x20received.\n\n\x0f\n\x07\x04\x01\x03\0\x08\0\x01\x12\x04\xce\x01\n\ - \x14\n\x85\x01\n\x06\x04\x01\x03\0\x02\x07\x12\x04\xd1\x01\x06\x19\x1au\ - \x20Indicates\x20that\x20the\x20client\x20should\x20drop\x20all\x20previ\ - ous\x20chunks\x20for\n\x20`row_key`,\x20as\x20it\x20will\x20be\x20re-rea\ - d\x20from\x20the\x20beginning.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x07\x05\ - \x12\x04\xd1\x01\x06\n\n\x0f\n\x07\x04\x01\x03\0\x02\x07\x01\x12\x04\xd1\ - \x01\x0b\x14\n\x0f\n\x07\x04\x01\x03\0\x02\x07\x03\x12\x04\xd1\x01\x17\ - \x18\n\x83\x01\n\x06\x04\x01\x03\0\x02\x08\x12\x04\xd5\x01\x06\x1a\x1as\ - \x20Indicates\x20that\x20the\x20client\x20can\x20safely\x20process\x20al\ - l\x20previous\x20chunks\x20for\n\x20`row_key`,\x20as\x20its\x20data\x20h\ - as\x20been\x20fully\x20read.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x08\x05\x12\ - \x04\xd5\x01\x06\n\n\x0f\n\x07\x04\x01\x03\0\x02\x08\x01\x12\x04\xd5\x01\ - \x0b\x15\n\x0f\n\x07\x04\x01\x03\0\x02\x08\x03\x12\x04\xd5\x01\x18\x19\n\ - M\n\x04\x04\x01\x02\0\x12\x04\xda\x01\x02\x20\x1a?\x20A\x20collection\ - \x20of\x20a\x20row's\x20contents\x20as\x20part\x20of\x20the\x20read\x20r\ - equest.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\xda\x01\x02\n\n\r\n\x05\ - \x04\x01\x02\0\x06\x12\x04\xda\x01\x0b\x14\n\r\n\x05\x04\x01\x02\0\x01\ - \x12\x04\xda\x01\x15\x1b\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xda\x01\x1e\ - \x1f\n\xc5\x03\n\x04\x04\x01\x02\x01\x12\x04\xe3\x01\x02!\x1a\xb6\x03\ - \x20Optionally\x20the\x20server\x20might\x20return\x20the\x20row\x20key\ - \x20of\x20the\x20last\x20row\x20it\n\x20has\x20scanned.\x20\x20The\x20cl\ - ient\x20can\x20use\x20this\x20to\x20construct\x20a\x20more\n\x20efficien\ - t\x20retry\x20request\x20if\x20needed:\x20any\x20row\x20keys\x20or\x20po\ - rtions\x20of\n\x20ranges\x20less\x20than\x20this\x20row\x20key\x20can\ - \x20be\x20dropped\x20from\x20the\x20request.\n\x20This\x20is\x20primaril\ - y\x20useful\x20for\x20cases\x20where\x20the\x20server\x20has\x20read\x20\ - a\n\x20lot\x20of\x20data\x20that\x20was\x20filtered\x20out\x20since\x20t\ - he\x20last\x20committed\x20row\n\x20key,\x20allowing\x20the\x20client\ - \x20to\x20skip\x20that\x20work\x20on\x20a\x20retry.\n\n\x0f\n\x05\x04\ - \x01\x02\x01\x04\x12\x06\xe3\x01\x02\xda\x01\x20\n\r\n\x05\x04\x01\x02\ - \x01\x05\x12\x04\xe3\x01\x02\x07\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\ - \xe3\x01\x08\x1c\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xe3\x01\x1f\x20\n\ - ;\n\x02\x04\x02\x12\x06\xe7\x01\0\xf5\x01\x01\x1a-\x20Request\x20message\ - \x20for\x20Bigtable.SampleRowKeys.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xe7\ - \x01\x08\x1c\n\xab\x01\n\x04\x04\x02\x02\0\x12\x06\xeb\x01\x02\xf0\x01\ - \x04\x1a\x9a\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20t\ - able\x20from\x20which\x20to\x20sample\x20row\x20keys.\n\x20Values\x20are\ - \x20of\x20the\x20form\n\x20`projects//instances//tabl\ - es/
`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xeb\x01\x02\xe7\x01\ - \x1e\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xeb\x01\x02\x08\n\r\n\x05\x04\ - \x02\x02\0\x01\x12\x04\xeb\x01\t\x13\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\ - \xeb\x01\x16\x17\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xeb\x01\x18\xf0\ - \x01\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xec\x01\x04*\n\ - \x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\xed\x01\x04\xef\x01\x05\n\ - \x80\x01\n\x04\x04\x02\x02\x01\x12\x04\xf4\x01\x02\x1c\x1ar\x20This\x20v\ - alue\x20specifies\x20routing\x20for\x20replication.\x20If\x20not\x20spec\ - ified,\x20the\n\x20\"default\"\x20application\x20profile\x20will\x20be\ - \x20used.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xf4\x01\x02\xf0\x01\ - \x04\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xf4\x01\x02\x08\n\r\n\x05\x04\ - \x02\x02\x01\x01\x12\x04\xf4\x01\t\x17\n\r\n\x05\x04\x02\x02\x01\x03\x12\ - \x04\xf4\x01\x1a\x1b\n<\n\x02\x04\x03\x12\x06\xf8\x01\0\x87\x02\x01\x1a.\ - \x20Response\x20message\x20for\x20Bigtable.SampleRowKeys.\n\n\x0b\n\x03\ - \x04\x03\x01\x12\x04\xf8\x01\x08\x1d\n\xe0\x03\n\x04\x04\x03\x02\0\x12\ - \x04\x80\x02\x02\x14\x1a\xd1\x03\x20Sorted\x20streamed\x20sequence\x20of\ - \x20sample\x20row\x20keys\x20in\x20the\x20table.\x20The\x20table\x20migh\ - t\n\x20have\x20contents\x20before\x20the\x20first\x20row\x20key\x20in\ - \x20the\x20list\x20and\x20after\x20the\x20last\x20one,\n\x20but\x20a\x20\ - key\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\x20lis\ - t\x20may\x20not\x20have\x20ever\x20been\x20written\x20to\x20or\x20read\n\ - \x20from,\x20and\x20users\x20should\x20therefore\x20not\x20make\x20any\ - \x20assumptions\x20about\x20the\x20row\x20key\n\x20structure\x20that\x20\ - are\x20specific\x20to\x20their\x20use\x20case.\n\n\x0f\n\x05\x04\x03\x02\ - \0\x04\x12\x06\x80\x02\x02\xf8\x01\x1f\n\r\n\x05\x04\x03\x02\0\x05\x12\ - \x04\x80\x02\x02\x07\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x80\x02\x08\x0f\ - \n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x80\x02\x12\x13\n\x80\x02\n\x04\x04\ - \x03\x02\x01\x12\x04\x86\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\x20\ - of\x20all\x20rows\x20between\x20two\x20subsequent\n\x20samples\x20would\ - \x20require\x20space\x20roughly\x20equal\x20to\x20the\x20difference\x20i\ - n\x20their\n\x20`offset_bytes`\x20fields.\n\n\x0f\n\x05\x04\x03\x02\x01\ - \x04\x12\x06\x86\x02\x02\x80\x02\x14\n\r\n\x05\x04\x03\x02\x01\x05\x12\ - \x04\x86\x02\x02\x07\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\x86\x02\x08\ - \x14\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x86\x02\x17\x18\n7\n\x02\x04\ - \x04\x12\x06\x8a\x02\0\xa0\x02\x01\x1a)\x20Request\x20message\x20for\x20\ - Bigtable.MutateRow.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x8a\x02\x08\x18\n\ - \xb5\x01\n\x04\x04\x04\x02\0\x12\x06\x8e\x02\x02\x93\x02\x04\x1a\xa4\x01\ - \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20wh\ - ich\x20the\x20mutation\x20should\x20be\x20applied.\n\x20Values\x20are\ - \x20of\x20the\x20form\n\x20`projects//instances//tabl\ - es/
`.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\x8e\x02\x02\x8a\x02\ - \x1a\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x8e\x02\x02\x08\n\r\n\x05\x04\ - \x04\x02\0\x01\x12\x04\x8e\x02\t\x13\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ - \x8e\x02\x16\x17\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\x8e\x02\x18\x93\ - \x02\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\x8f\x02\x04*\n\ - \x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\x90\x02\x04\x92\x02\x05\n\ - \x80\x01\n\x04\x04\x04\x02\x01\x12\x04\x97\x02\x02\x1c\x1ar\x20This\x20v\ - alue\x20specifies\x20routing\x20for\x20replication.\x20If\x20not\x20spec\ - ified,\x20the\n\x20\"default\"\x20application\x20profile\x20will\x20be\ - \x20used.\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\x97\x02\x02\x93\x02\ - \x04\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\x97\x02\x02\x08\n\r\n\x05\x04\ - \x04\x02\x01\x01\x12\x04\x97\x02\t\x17\n\r\n\x05\x04\x04\x02\x01\x03\x12\ - \x04\x97\x02\x1a\x1b\nU\n\x04\x04\x04\x02\x02\x12\x04\x9a\x02\x02=\x1aG\ - \x20Required.\x20The\x20key\x20of\x20the\x20row\x20to\x20which\x20the\ - \x20mutation\x20should\x20be\x20applied.\n\n\x0f\n\x05\x04\x04\x02\x02\ - \x04\x12\x06\x9a\x02\x02\x97\x02\x1c\n\r\n\x05\x04\x04\x02\x02\x05\x12\ - \x04\x9a\x02\x02\x07\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\x9a\x02\x08\ - \x0f\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x9a\x02\x12\x13\n\r\n\x05\x04\ - \x04\x02\x02\x08\x12\x04\x9a\x02\x14<\n\x10\n\x08\x04\x04\x02\x02\x08\ - \x9c\x08\0\x12\x04\x9a\x02\x15;\n\xe1\x01\n\x04\x04\x04\x02\x03\x12\x04\ - \x9f\x02\x02K\x1a\xd2\x01\x20Required.\x20Changes\x20to\x20be\x20atomica\ - lly\x20applied\x20to\x20the\x20specified\x20row.\x20Entries\x20are\x20ap\ - plied\n\x20in\x20order,\x20meaning\x20that\x20earlier\x20mutations\x20ca\ - n\x20be\x20masked\x20by\x20later\x20ones.\n\x20Must\x20contain\x20at\x20\ - least\x20one\x20entry\x20and\x20at\x20most\x20100000.\n\n\r\n\x05\x04\ - \x04\x02\x03\x04\x12\x04\x9f\x02\x02\n\n\r\n\x05\x04\x04\x02\x03\x06\x12\ - \x04\x9f\x02\x0b\x13\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\x9f\x02\x14\ - \x1d\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\x9f\x02\x20!\n\r\n\x05\x04\ - \x04\x02\x03\x08\x12\x04\x9f\x02\"J\n\x10\n\x08\x04\x04\x02\x03\x08\x9c\ - \x08\0\x12\x04\x9f\x02#I\n8\n\x02\x04\x05\x12\x06\xa3\x02\0\xa5\x02\x01\ - \x1a*\x20Response\x20message\x20for\x20Bigtable.MutateRow.\n\n\x0b\n\x03\ - \x04\x05\x01\x12\x04\xa3\x02\x08\x19\n?\n\x02\x04\x06\x12\x06\xa8\x02\0\ - \xc7\x02\x01\x1a1\x20Request\x20message\x20for\x20BigtableService.Mutate\ - Rows.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xa8\x02\x08\x19\n-\n\x04\x04\x06\ - \x03\0\x12\x06\xaa\x02\x02\xb3\x02\x03\x1a\x1d\x20A\x20mutation\x20for\ - \x20a\x20given\x20row.\n\n\r\n\x05\x04\x06\x03\0\x01\x12\x04\xaa\x02\n\ - \x0f\nP\n\x06\x04\x06\x03\0\x02\0\x12\x04\xac\x02\x04\x16\x1a@\x20The\ - \x20key\x20of\x20the\x20row\x20to\x20which\x20the\x20`mutations`\x20shou\ - ld\x20be\x20applied.\n\n\x11\n\x07\x04\x06\x03\0\x02\0\x04\x12\x06\xac\ - \x02\x04\xaa\x02\x11\n\x0f\n\x07\x04\x06\x03\0\x02\0\x05\x12\x04\xac\x02\ - \x04\t\n\x0f\n\x07\x04\x06\x03\0\x02\0\x01\x12\x04\xac\x02\n\x11\n\x0f\n\ - \x07\x04\x06\x03\0\x02\0\x03\x12\x04\xac\x02\x14\x15\n\xda\x01\n\x06\x04\ - \x06\x03\0\x02\x01\x12\x04\xb2\x02\x04M\x1a\xc9\x01\x20Required.\x20Chan\ - ges\x20to\x20be\x20atomically\x20applied\x20to\x20the\x20specified\x20ro\ - w.\x20Mutations\x20are\n\x20applied\x20in\x20order,\x20meaning\x20that\ - \x20earlier\x20mutations\x20can\x20be\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\xb2\x02\x04\x0c\n\x0f\n\x07\x04\ - \x06\x03\0\x02\x01\x06\x12\x04\xb2\x02\r\x15\n\x0f\n\x07\x04\x06\x03\0\ - \x02\x01\x01\x12\x04\xb2\x02\x16\x1f\n\x0f\n\x07\x04\x06\x03\0\x02\x01\ - \x03\x12\x04\xb2\x02\"#\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x08\x12\x04\ - \xb2\x02$L\n\x12\n\n\x04\x06\x03\0\x02\x01\x08\x9c\x08\0\x12\x04\xb2\x02\ - %K\nb\n\x04\x04\x06\x02\0\x12\x06\xb6\x02\x02\xbb\x02\x04\x1aR\x20Requir\ - ed.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20which\x20the\ - \x20mutations\x20should\x20be\x20applied.\n\n\x0f\n\x05\x04\x06\x02\0\ - \x04\x12\x06\xb6\x02\x02\xb3\x02\x03\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\ - \xb6\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xb6\x02\t\x13\n\r\n\ - \x05\x04\x06\x02\0\x03\x12\x04\xb6\x02\x16\x17\n\x0f\n\x05\x04\x06\x02\0\ - \x08\x12\x06\xb6\x02\x18\xbb\x02\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\ - \x08\0\x12\x04\xb7\x02\x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\ - \x06\xb8\x02\x04\xba\x02\x05\n\x80\x01\n\x04\x04\x06\x02\x01\x12\x04\xbf\ - \x02\x02\x1c\x1ar\x20This\x20value\x20specifies\x20routing\x20for\x20rep\ - lication.\x20If\x20not\x20specified,\x20the\n\x20\"default\"\x20applicat\ - ion\x20profile\x20will\x20be\x20used.\n\n\x0f\n\x05\x04\x06\x02\x01\x04\ - \x12\x06\xbf\x02\x02\xbb\x02\x04\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\ - \xbf\x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xbf\x02\t\x17\n\r\ - \n\x05\x04\x06\x02\x01\x03\x12\x04\xbf\x02\x1a\x1b\n\xcb\x02\n\x04\x04\ - \x06\x02\x02\x12\x04\xc6\x02\x02F\x1a\xbc\x02\x20Required.\x20The\x20row\ - \x20keys\x20and\x20corresponding\x20mutations\x20to\x20be\x20applied\x20\ - in\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\x20s\ - ame\x20row).\n\x20At\x20least\x20one\x20entry\x20must\x20be\x20specified\ - ,\x20and\x20in\x20total\x20the\x20entries\x20can\n\x20contain\x20at\x20m\ - ost\x20100000\x20mutations.\n\n\r\n\x05\x04\x06\x02\x02\x04\x12\x04\xc6\ - \x02\x02\n\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\xc6\x02\x0b\x10\n\r\n\ - \x05\x04\x06\x02\x02\x01\x12\x04\xc6\x02\x11\x18\n\r\n\x05\x04\x06\x02\ - \x02\x03\x12\x04\xc6\x02\x1b\x1c\n\r\n\x05\x04\x06\x02\x02\x08\x12\x04\ - \xc6\x02\x1dE\n\x10\n\x08\x04\x06\x02\x02\x08\x9c\x08\0\x12\x04\xc6\x02\ - \x1eD\n@\n\x02\x04\x07\x12\x06\xca\x02\0\xda\x02\x01\x1a2\x20Response\ - \x20message\x20for\x20BigtableService.MutateRows.\n\n\x0b\n\x03\x04\x07\ - \x01\x12\x04\xca\x02\x08\x1a\nS\n\x04\x04\x07\x03\0\x12\x06\xcc\x02\x02\ - \xd6\x02\x03\x1aC\x20The\x20result\x20of\x20applying\x20a\x20passed\x20m\ - utation\x20in\x20the\x20original\x20request.\n\n\r\n\x05\x04\x07\x03\0\ - \x01\x12\x04\xcc\x02\n\x0f\nz\n\x06\x04\x07\x03\0\x02\0\x12\x04\xcf\x02\ - \x04\x14\x1aj\x20The\x20index\x20into\x20the\x20original\x20request's\ - \x20`entries`\x20list\x20of\x20the\x20Entry\n\x20for\x20which\x20a\x20re\ - sult\x20is\x20being\x20reported.\n\n\x11\n\x07\x04\x07\x03\0\x02\0\x04\ - \x12\x06\xcf\x02\x04\xcc\x02\x11\n\x0f\n\x07\x04\x07\x03\0\x02\0\x05\x12\ - \x04\xcf\x02\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\xcf\x02\n\ - \x0f\n\x0f\n\x07\x04\x07\x03\0\x02\0\x03\x12\x04\xcf\x02\x12\x13\n\x9e\ - \x02\n\x06\x04\x07\x03\0\x02\x01\x12\x04\xd5\x02\x04!\x1a\x8d\x02\x20The\ - \x20result\x20of\x20the\x20request\x20Entry\x20identified\x20by\x20`inde\ - x`.\n\x20Depending\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\x20reported\x20for\x20both\x20entries.\n\n\x11\n\x07\x04\ - \x07\x03\0\x02\x01\x04\x12\x06\xd5\x02\x04\xcf\x02\x14\n\x0f\n\x07\x04\ - \x07\x03\0\x02\x01\x06\x12\x04\xd5\x02\x04\x15\n\x0f\n\x07\x04\x07\x03\0\ - \x02\x01\x01\x12\x04\xd5\x02\x16\x1c\n\x0f\n\x07\x04\x07\x03\0\x02\x01\ - \x03\x12\x04\xd5\x02\x1f\x20\nG\n\x04\x04\x07\x02\0\x12\x04\xd9\x02\x02\ - \x1d\x1a9\x20One\x20or\x20more\x20results\x20for\x20Entries\x20from\x20t\ - he\x20batch\x20request.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\xd9\x02\ - \x02\n\n\r\n\x05\x04\x07\x02\0\x06\x12\x04\xd9\x02\x0b\x10\n\r\n\x05\x04\ - \x07\x02\0\x01\x12\x04\xd9\x02\x11\x18\n\r\n\x05\x04\x07\x02\0\x03\x12\ - \x04\xd9\x02\x1b\x1c\n?\n\x02\x04\x08\x12\x06\xdd\x02\0\x83\x03\x01\x1a1\ - \x20Request\x20message\x20for\x20Bigtable.CheckAndMutateRow.\n\n\x0b\n\ - \x03\x04\x08\x01\x12\x04\xdd\x02\x08\x20\n\xc2\x01\n\x04\x04\x08\x02\0\ - \x12\x06\xe2\x02\x02\xe7\x02\x04\x1a\xb1\x01\x20Required.\x20The\x20uniq\ - ue\x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20conditional\ - \x20mutation\x20should\x20be\n\x20applied.\n\x20Values\x20are\x20of\x20t\ - he\x20form\n\x20`projects//instances//tables/
`\ - .\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xe2\x02\x02\xdd\x02\"\n\r\n\ - \x05\x04\x08\x02\0\x05\x12\x04\xe2\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\ - \x01\x12\x04\xe2\x02\t\x13\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xe2\x02\ - \x16\x17\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xe2\x02\x18\xe7\x02\x03\n\ - \x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xe3\x02\x04*\n\x11\n\x07\ - \x04\x08\x02\0\x08\x9f\x08\x12\x06\xe4\x02\x04\xe6\x02\x05\n\x80\x01\n\ - \x04\x04\x08\x02\x01\x12\x04\xeb\x02\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\x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xeb\x02\x02\xe7\x02\x04\n\r\n\ - \x05\x04\x08\x02\x01\x05\x12\x04\xeb\x02\x02\x08\n\r\n\x05\x04\x08\x02\ - \x01\x01\x12\x04\xeb\x02\t\x17\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xeb\ - \x02\x1a\x1b\na\n\x04\x04\x08\x02\x02\x12\x04\xee\x02\x02=\x1aS\x20Requi\ - red.\x20The\x20key\x20of\x20the\x20row\x20to\x20which\x20the\x20conditio\ - nal\x20mutation\x20should\x20be\x20applied.\n\n\x0f\n\x05\x04\x08\x02\ - \x02\x04\x12\x06\xee\x02\x02\xeb\x02\x1c\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\x0f\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xee\x02\x12\x13\n\r\n\x05\ - \x04\x08\x02\x02\x08\x12\x04\xee\x02\x14<\n\x10\n\x08\x04\x08\x02\x02\ - \x08\x9c\x08\0\x12\x04\xee\x02\x15;\n\x80\x02\n\x04\x04\x08\x02\x03\x12\ - \x04\xf4\x02\x02!\x1a\xf1\x01\x20The\x20filter\x20to\x20be\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\x20b\ - e\x20executed.\x20If\x20unset,\x20checks\x20that\x20the\x20row\x20contai\ - ns\n\x20any\x20values\x20at\x20all.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\ - \x12\x06\xf4\x02\x02\xee\x02=\n\r\n\x05\x04\x08\x02\x03\x06\x12\x04\xf4\ - \x02\x02\x0b\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\xf4\x02\x0c\x1c\n\r\n\ - \x05\x04\x08\x02\x03\x03\x12\x04\xf4\x02\x1f\x20\n\xc1\x02\n\x04\x04\x08\ - \x02\x04\x12\x04\xfb\x02\x02'\x1a\xb2\x02\x20Changes\x20to\x20be\x20atom\ - ically\x20applied\x20to\x20the\x20specified\x20row\x20if\x20`predicate_f\ - ilter`\n\x20yields\x20at\x20least\x20one\x20cell\x20when\x20applied\x20t\ - o\x20`row_key`.\x20Entries\x20are\x20applied\x20in\n\x20order,\x20meanin\ - g\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\x08\x02\x04\x04\x12\x04\xfb\x02\x02\n\n\r\n\x05\x04\x08\x02\ - \x04\x06\x12\x04\xfb\x02\x0b\x13\n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\ - \xfb\x02\x14\"\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\xfb\x02%&\n\xc0\x02\ - \n\x04\x04\x08\x02\x05\x12\x04\x82\x03\x02(\x1a\xb1\x02\x20Changes\x20to\ - \x20be\x20atomically\x20applied\x20to\x20the\x20specified\x20row\x20if\ - \x20`predicate_filter`\n\x20does\x20not\x20yield\x20any\x20cells\x20when\ - \x20applied\x20to\x20`row_key`.\x20Entries\x20are\x20applied\x20in\n\x20\ - order,\x20meaning\x20that\x20earlier\x20mutations\x20can\x20be\x20masked\ - \x20by\x20later\x20ones.\n\x20Must\x20contain\x20at\x20least\x20one\x20e\ - ntry\x20if\x20`true_mutations`\x20is\x20empty,\x20and\x20at\x20most\n\ - \x20100000.\n\n\r\n\x05\x04\x08\x02\x05\x04\x12\x04\x82\x03\x02\n\n\r\n\ - \x05\x04\x08\x02\x05\x06\x12\x04\x82\x03\x0b\x13\n\r\n\x05\x04\x08\x02\ - \x05\x01\x12\x04\x82\x03\x14#\n\r\n\x05\x04\x08\x02\x05\x03\x12\x04\x82\ - \x03&'\n@\n\x02\x04\t\x12\x06\x86\x03\0\x8a\x03\x01\x1a2\x20Response\x20\ - message\x20for\x20Bigtable.CheckAndMutateRow.\n\n\x0b\n\x03\x04\t\x01\ - \x12\x04\x86\x03\x08!\nk\n\x04\x04\t\x02\0\x12\x04\x89\x03\x02\x1d\x1a]\ - \x20Whether\x20or\x20not\x20the\x20request's\x20`predicate_filter`\x20yi\ - elded\x20any\x20results\x20for\n\x20the\x20specified\x20row.\n\n\x0f\n\ - \x05\x04\t\x02\0\x04\x12\x06\x89\x03\x02\x86\x03#\n\r\n\x05\x04\t\x02\0\ - \x05\x12\x04\x89\x03\x02\x06\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x89\x03\ - \x07\x18\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x89\x03\x1b\x1c\n@\n\x02\x04\ - \n\x12\x06\x8d\x03\0\xa4\x03\x01\x1a2\x20Request\x20message\x20for\x20Bi\ - gtable.ReadModifyWriteRow.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x8d\x03\x08!\ - \n\xc5\x01\n\x04\x04\n\x02\0\x12\x06\x92\x03\x02\x97\x03\x04\x1a\xb4\x01\ - \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20wh\ - ich\x20the\x20read/modify/write\x20rules\x20should\x20be\n\x20applied.\n\ - \x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instance\ - s//tables/
`.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\x92\ - \x03\x02\x8d\x03#\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x92\x03\x02\x08\n\r\ - \n\x05\x04\n\x02\0\x01\x12\x04\x92\x03\t\x13\n\r\n\x05\x04\n\x02\0\x03\ - \x12\x04\x92\x03\x16\x17\n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\x92\x03\x18\ - \x97\x03\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\x93\x03\x04*\ - \n\x11\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x06\x94\x03\x04\x96\x03\x05\n\ - \x80\x01\n\x04\x04\n\x02\x01\x12\x04\x9b\x03\x02\x1c\x1ar\x20This\x20val\ - ue\x20specifies\x20routing\x20for\x20replication.\x20If\x20not\x20specif\ - ied,\x20the\n\x20\"default\"\x20application\x20profile\x20will\x20be\x20\ - used.\n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\x9b\x03\x02\x97\x03\x04\n\ - \r\n\x05\x04\n\x02\x01\x05\x12\x04\x9b\x03\x02\x08\n\r\n\x05\x04\n\x02\ - \x01\x01\x12\x04\x9b\x03\t\x17\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\x9b\ - \x03\x1a\x1b\nd\n\x04\x04\n\x02\x02\x12\x04\x9e\x03\x02=\x1aV\x20Require\ - d.\x20The\x20key\x20of\x20the\x20row\x20to\x20which\x20the\x20read/modif\ - y/write\x20rules\x20should\x20be\x20applied.\n\n\x0f\n\x05\x04\n\x02\x02\ - \x04\x12\x06\x9e\x03\x02\x9b\x03\x1c\n\r\n\x05\x04\n\x02\x02\x05\x12\x04\ - \x9e\x03\x02\x07\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\x9e\x03\x08\x0f\n\r\ - \n\x05\x04\n\x02\x02\x03\x12\x04\x9e\x03\x12\x13\n\r\n\x05\x04\n\x02\x02\ - \x08\x12\x04\x9e\x03\x14<\n\x10\n\x08\x04\n\x02\x02\x08\x9c\x08\0\x12\ - \x04\x9e\x03\x15;\n\xd1\x01\n\x04\x04\n\x02\x03\x12\x04\xa3\x03\x02R\x1a\ - \xc2\x01\x20Required.\x20Rules\x20specifying\x20how\x20the\x20specified\ - \x20row's\x20contents\x20are\x20to\x20be\x20transformed\n\x20into\x20wri\ - tes.\x20Entries\x20are\x20applied\x20in\x20order,\x20meaning\x20that\x20\ - earlier\x20rules\x20will\n\x20affect\x20the\x20results\x20of\x20later\ - \x20ones.\n\n\r\n\x05\x04\n\x02\x03\x04\x12\x04\xa3\x03\x02\n\n\r\n\x05\ - \x04\n\x02\x03\x06\x12\x04\xa3\x03\x0b\x1e\n\r\n\x05\x04\n\x02\x03\x01\ - \x12\x04\xa3\x03\x1f$\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\xa3\x03'(\n\r\ - \n\x05\x04\n\x02\x03\x08\x12\x04\xa3\x03)Q\n\x10\n\x08\x04\n\x02\x03\x08\ - \x9c\x08\0\x12\x04\xa3\x03*P\nA\n\x02\x04\x0b\x12\x06\xa7\x03\0\xaa\x03\ - \x01\x1a3\x20Response\x20message\x20for\x20Bigtable.ReadModifyWriteRow.\ - \n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xa7\x03\x08\"\nW\n\x04\x04\x0b\x02\0\ - \x12\x04\xa9\x03\x02\x0e\x1aI\x20A\x20Row\x20containing\x20the\x20new\ - \x20contents\x20of\x20all\x20cells\x20modified\x20by\x20the\x20request.\ - \n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\xa9\x03\x02\xa7\x03$\n\r\n\x05\ - \x04\x0b\x02\0\x06\x12\x04\xa9\x03\x02\x05\n\r\n\x05\x04\x0b\x02\0\x01\ - \x12\x04\xa9\x03\x06\t\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xa9\x03\x0c\r\ - 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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs deleted file mode 100644 index 4b95ccf57c..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs +++ /dev/null @@ -1,185 +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_BIGTABLE_READ_ROWS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.bigtable.v2.Bigtable/ReadRows", - 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_SAMPLE_ROW_KEYS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.bigtable.v2.Bigtable/SampleRowKeys", - 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_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.v2.Bigtable/MutateRow", - 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_MUTATE_ROWS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.bigtable.v2.Bigtable/MutateRows", - 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_CHECK_AND_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.v2.Bigtable/CheckAndMutateRow", - 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", - 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 { - client: ::grpcio::Client, -} - -impl BigtableClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - BigtableClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn read_rows_opt(&self, req: &super::bigtable::ReadRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_BIGTABLE_READ_ROWS, req, opt) - } - - pub fn read_rows(&self, req: &super::bigtable::ReadRowsRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.read_rows_opt(req, ::grpcio::CallOption::default()) - } - - pub fn sample_row_keys_opt(&self, req: &super::bigtable::SampleRowKeysRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_BIGTABLE_SAMPLE_ROW_KEYS, req, opt) - } - - pub fn sample_row_keys(&self, req: &super::bigtable::SampleRowKeysRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.sample_row_keys_opt(req, ::grpcio::CallOption::default()) - } - - pub fn mutate_row_opt(&self, req: &super::bigtable::MutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_MUTATE_ROW, req, opt) - } - - pub fn mutate_row(&self, req: &super::bigtable::MutateRowRequest) -> ::grpcio::Result { - self.mutate_row_opt(req, ::grpcio::CallOption::default()) - } - - pub fn mutate_row_async_opt(&self, req: &super::bigtable::MutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_MUTATE_ROW, req, opt) - } - - pub fn mutate_row_async(&self, req: &super::bigtable::MutateRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.mutate_row_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn mutate_rows_opt(&self, req: &super::bigtable::MutateRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_BIGTABLE_MUTATE_ROWS, req, opt) - } - - pub fn mutate_rows(&self, req: &super::bigtable::MutateRowsRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.mutate_rows_opt(req, ::grpcio::CallOption::default()) - } - - pub fn check_and_mutate_row_opt(&self, req: &super::bigtable::CheckAndMutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_CHECK_AND_MUTATE_ROW, req, opt) - } - - pub fn check_and_mutate_row(&self, req: &super::bigtable::CheckAndMutateRowRequest) -> ::grpcio::Result { - self.check_and_mutate_row_opt(req, ::grpcio::CallOption::default()) - } - - pub fn check_and_mutate_row_async_opt(&self, req: &super::bigtable::CheckAndMutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_CHECK_AND_MUTATE_ROW, req, opt) - } - - pub fn check_and_mutate_row_async(&self, req: &super::bigtable::CheckAndMutateRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.check_and_mutate_row_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) - } - - pub fn read_modify_write_row(&self, req: &super::bigtable::ReadModifyWriteRowRequest) -> ::grpcio::Result { - self.read_modify_write_row_opt(req, ::grpcio::CallOption::default()) - } - - pub fn read_modify_write_row_async_opt(&self, req: &super::bigtable::ReadModifyWriteRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_READ_MODIFY_WRITE_ROW, req, opt) - } - - 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 spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait Bigtable { - fn read_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::ReadRowsRequest, sink: ::grpcio::ServerStreamingSink); - fn sample_row_keys(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::SampleRowKeysRequest, sink: ::grpcio::ServerStreamingSink); - fn mutate_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::MutateRowRequest, sink: ::grpcio::UnarySink); - fn mutate_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::MutateRowsRequest, sink: ::grpcio::ServerStreamingSink); - fn check_and_mutate_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::CheckAndMutateRowRequest, sink: ::grpcio::UnarySink); - fn read_modify_write_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::ReadModifyWriteRowRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_bigtable(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_READ_ROWS, move |ctx, req, resp| { - instance.read_rows(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_SAMPLE_ROW_KEYS, move |ctx, req, resp| { - instance.sample_row_keys(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_MUTATE_ROW, move |ctx, req, resp| { - instance.mutate_row(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_MUTATE_ROWS, move |ctx, req, resp| { - instance.mutate_rows(ctx, req, resp) - }); - let mut instance = s.clone(); - 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; - builder = builder.add_unary_handler(&METHOD_BIGTABLE_READ_MODIFY_WRITE_ROW, move |ctx, req, resp| { - instance.read_modify_write_row(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/data.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/data.rs deleted file mode 100644 index 2b8b7c14d3..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/data.rs +++ /dev/null @@ -1,6840 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/data.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Row { - // message fields - pub key: ::std::vec::Vec, - pub families: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Row { - fn default() -> &'a Row { - ::default_instance() - } -} - -impl Row { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.families)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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::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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Row { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Row::new) - } -} - -impl ::protobuf::Clear for Row { - fn clear(&mut self) { - self.key.clear(); - self.families.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Family { - // message fields - pub name: ::std::string::String, - pub columns: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Family { - fn default() -> &'a Family { - ::default_instance() - } -} - -impl Family { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.columns)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.columns { - 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.columns { - 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() -> 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 default_instance() -> &'static Family { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Family::new) - } -} - -impl ::protobuf::Clear for Family { - fn clear(&mut self) { - self.name.clear(); - self.columns.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Column { - // message fields - pub qualifier: ::std::vec::Vec, - pub cells: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Column { - fn default() -> &'a Column { - ::default_instance() - } -} - -impl Column { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cells)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Column { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Column::new) - } -} - -impl ::protobuf::Clear for Column { - fn clear(&mut self) { - self.qualifier.clear(); - self.cells.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Cell { - // message fields - pub timestamp_micros: i64, - pub value: ::std::vec::Vec, - pub labels: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Cell { - fn default() -> &'a Cell { - ::default_instance() - } -} - -impl Cell { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(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; - if self.timestamp_micros != 0 { - my_size += ::protobuf::rt::value_size(1, self.timestamp_micros, ::protobuf::wire_format::WireTypeVarint); - } - if !self.value.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.value); - } - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.timestamp_micros != 0 { - os.write_int64(1, self.timestamp_micros)?; - } - if !self.value.is_empty() { - os.write_bytes(2, &self.value)?; - } - for v in &self.labels { - 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() -> 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 default_instance() -> &'static Cell { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Cell::new) - } -} - -impl ::protobuf::Clear for Cell { - fn clear(&mut self) { - self.timestamp_micros = 0; - self.value.clear(); - self.labels.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RowRange { - // message oneof groups - pub start_key: ::std::option::Option, - pub end_key: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RowRange { - fn default() -> &'a RowRange { - ::default_instance() - } -} - -#[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() - } - - // bytes start_key_closed = 1; - - - pub fn get_start_key_closed(&self) -> &[u8] { - match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(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, - _ => 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)) - } - - // 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 { - } else { - self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(::std::vec::Vec::new())); - } - match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes start_key_open = 2; - - - pub fn get_start_key_open(&self) -> &[u8] { - match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(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, - _ => 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)) - } - - // 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 { - } else { - self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(::std::vec::Vec::new())); - } - match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_key_open = 3; - - - pub fn get_end_key_open(&self) -> &[u8] { - match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(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, - _ => 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)) - } - - // 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 { - } else { - self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(::std::vec::Vec::new())); - } - match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_key_closed = 4; - - - pub fn get_end_key_closed(&self) -> &[u8] { - match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(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, - _ => 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)) - } - - // 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 { - } else { - self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(::std::vec::Vec::new())); - } - match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } -} - -impl ::protobuf::Message for 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())?; - }, - }; - } - ::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.start_key { - match v { - &RowRange_oneof_start_key::start_key_closed(ref v) => { - my_size += ::protobuf::rt::bytes_size(1, &v); - }, - &RowRange_oneof_start_key::start_key_open(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) => { - my_size += ::protobuf::rt::bytes_size(3, &v); - }, - &RowRange_oneof_end_key::end_key_closed(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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.start_key { - match v { - &RowRange_oneof_start_key::start_key_closed(ref v) => { - os.write_bytes(1, v)?; - }, - &RowRange_oneof_start_key::start_key_open(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) => { - os.write_bytes(3, v)?; - }, - &RowRange_oneof_end_key::end_key_closed(ref v) => { - os.write_bytes(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() -> 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 default_instance() -> &'static RowRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowRange::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a RowSet { - fn default() -> &'a RowSet { - ::default_instance() - } -} - -impl RowSet { - pub fn new() -> RowSet { - ::std::default::Default::default() - } - - // 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(); - } - - // Param is passed by value, moved - pub fn set_row_keys(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec>) { - self.row_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_row_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec> { - &mut self.row_keys - } - - // Take field - pub fn take_row_keys(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec> { - ::std::mem::replace(&mut self.row_keys, ::protobuf::RepeatedField::new()) - } - - // repeated .google.bigtable.v2.RowRange row_ranges = 2; - - - pub fn get_row_ranges(&self) -> &[RowRange] { - &self.row_ranges - } - pub fn clear_row_ranges(&mut self) { - self.row_ranges.clear(); - } - - // Param is passed by value, moved - pub fn set_row_ranges(&mut self, v: ::protobuf::RepeatedField) { - self.row_ranges = v; - } - - // Mutable pointer to the field. - pub fn mut_row_ranges(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.row_ranges - } - - // Take field - pub fn take_row_ranges(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.row_ranges, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_ranges)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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 += ::protobuf::rt::unknown_fields_size(self.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.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)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static RowSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowSet::new) - } -} - -impl ::protobuf::Clear for RowSet { - fn clear(&mut self) { - self.row_keys.clear(); - self.row_ranges.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ColumnRange { - // message fields - pub family_name: ::std::string::String, - // message oneof groups - pub start_qualifier: ::std::option::Option, - pub end_qualifier: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ColumnRange { - fn default() -> &'a ColumnRange { - ::default_instance() - } -} - -#[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] { - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(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, - _ => 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)) - } - - // 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 { - } else { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(::std::vec::Vec::new())); - } - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes start_qualifier_open = 3; - - - pub fn get_start_qualifier_open(&self) -> &[u8] { - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(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, - _ => 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)) - } - - // 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 { - } else { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(::std::vec::Vec::new())); - } - match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_qualifier_closed = 4; - - - pub fn get_end_qualifier_closed(&self) -> &[u8] { - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(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, - _ => 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)) - } - - // 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 { - } else { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(::std::vec::Vec::new())); - } - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_qualifier_open = 5; - - - pub fn get_end_qualifier_open(&self) -> &[u8] { - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(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, - _ => 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)) - } - - // 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 { - } else { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(::std::vec::Vec::new())); - } - match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } -} - -impl ::protobuf::Message for 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())?; - }, - }; - } - ::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 let ::std::option::Option::Some(ref v) = self.start_qualifier { - match v { - &ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref v) => { - my_size += ::protobuf::rt::bytes_size(2, &v); - }, - &ColumnRange_oneof_start_qualifier::start_qualifier_open(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) => { - my_size += ::protobuf::rt::bytes_size(4, &v); - }, - &ColumnRange_oneof_end_qualifier::end_qualifier_open(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 - } - - 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 let ::std::option::Option::Some(ref v) = self.start_qualifier { - match v { - &ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref v) => { - os.write_bytes(2, v)?; - }, - &ColumnRange_oneof_start_qualifier::start_qualifier_open(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) => { - os.write_bytes(4, v)?; - }, - &ColumnRange_oneof_end_qualifier::end_qualifier_open(ref v) => { - os.write_bytes(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() -> 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(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct TimestampRange { - // message fields - pub start_timestamp_micros: i64, - pub end_timestamp_micros: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TimestampRange { - fn default() -> &'a TimestampRange { - ::default_instance() - } -} - -impl TimestampRange { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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); - } - 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::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static TimestampRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TimestampRange::new) - } -} - -impl ::protobuf::Clear for TimestampRange { - fn clear(&mut self) { - self.start_timestamp_micros = 0; - self.end_timestamp_micros = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ValueRange { - // message oneof groups - pub start_value: ::std::option::Option, - pub end_value: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ValueRange { - fn default() -> &'a ValueRange { - ::default_instance() - } -} - -#[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() - } - - // bytes start_value_closed = 1; - - - pub fn get_start_value_closed(&self) -> &[u8] { - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(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, - _ => 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)) - } - - // 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 { - } else { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(::std::vec::Vec::new())); - } - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes start_value_open = 2; - - - pub fn get_start_value_open(&self) -> &[u8] { - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(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, - _ => 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)) - } - - // 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 { - } else { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(::std::vec::Vec::new())); - } - match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_value_closed = 3; - - - pub fn get_end_value_closed(&self) -> &[u8] { - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(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, - _ => 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)) - } - - // 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 { - } else { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(::std::vec::Vec::new())); - } - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // bytes end_value_open = 4; - - - pub fn get_end_value_open(&self) -> &[u8] { - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(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, - _ => 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)) - } - - // 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 { - } else { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(::std::vec::Vec::new())); - } - match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } -} - -impl ::protobuf::Message for 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())?; - }, - }; - } - ::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.start_value { - match v { - &ValueRange_oneof_start_value::start_value_closed(ref v) => { - my_size += ::protobuf::rt::bytes_size(1, &v); - }, - &ValueRange_oneof_start_value::start_value_open(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) => { - my_size += ::protobuf::rt::bytes_size(3, &v); - }, - &ValueRange_oneof_end_value::end_value_open(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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.start_value { - match v { - &ValueRange_oneof_start_value::start_value_closed(ref v) => { - os.write_bytes(1, v)?; - }, - &ValueRange_oneof_start_value::start_value_open(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) => { - os.write_bytes(3, v)?; - }, - &ValueRange_oneof_end_value::end_value_open(ref v) => { - os.write_bytes(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() -> ValueRange { - ValueRange::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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() - ) - }) - } - - fn default_instance() -> &'static ValueRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ValueRange::new) - } -} - -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 ::std::fmt::Debug for ValueRange { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ValueRange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RowFilter { - // message oneof groups - pub filter: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RowFilter { - fn default() -> &'a RowFilter { - ::default_instance() - } -} - -#[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() - } - - // .google.bigtable.v2.RowFilter.Chain chain = 1; - - - pub fn get_chain(&self) -> &RowFilter_Chain { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::chain(RowFilter_Chain::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::chain(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_chain(&mut self) -> RowFilter_Chain { - if self.has_chain() { - match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::chain(v)) => v, - _ => panic!(), - } - } else { - RowFilter_Chain::new() - } - } - - // .google.bigtable.v2.RowFilter.Interleave interleave = 2; - - - pub fn get_interleave(&self) -> &RowFilter_Interleave { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::interleave(RowFilter_Interleave::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::interleave(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_interleave(&mut self) -> RowFilter_Interleave { - if self.has_interleave() { - match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::interleave(v)) => v, - _ => panic!(), - } - } else { - RowFilter_Interleave::new() - } - } - - // .google.bigtable.v2.RowFilter.Condition condition = 3; - - - pub fn get_condition(&self) -> &RowFilter_Condition { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::condition(RowFilter_Condition::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::condition(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_condition(&mut self) -> RowFilter_Condition { - if self.has_condition() { - match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::condition(v)) => v, - _ => panic!(), - } - } else { - RowFilter_Condition::new() - } - } - - // bool sink = 16; - - - pub fn get_sink(&self) -> bool { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_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, - _ => 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)) - } - - // bool pass_all_filter = 17; - - - pub fn get_pass_all_filter(&self) -> bool { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::pass_all_filter(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, - _ => 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)) - } - - // bool block_all_filter = 18; - - - pub fn get_block_all_filter(&self) -> bool { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::block_all_filter(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, - _ => 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)) - } - - // bytes row_key_regex_filter = 4; - - - pub fn get_row_key_regex_filter(&self) -> &[u8] { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(::std::vec::Vec::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // double row_sample_filter = 14; - - - pub fn get_row_sample_filter(&self) -> f64 { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_sample_filter(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, - _ => 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)) - } - - // string family_name_regex_filter = 5; - - - pub fn get_family_name_regex_filter(&self) -> &str { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(::std::string::String::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // bytes column_qualifier_regex_filter = 6; - - - pub fn get_column_qualifier_regex_filter(&self) -> &[u8] { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(::std::vec::Vec::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // .google.bigtable.v2.ColumnRange column_range_filter = 7; - - - pub fn get_column_range_filter(&self) -> &ColumnRange { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ColumnRange::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ColumnRange::new() - } - } - - // .google.bigtable.v2.TimestampRange timestamp_range_filter = 8; - - - pub fn get_timestamp_range_filter(&self) -> &TimestampRange { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(TimestampRange::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - TimestampRange::new() - } - } - - // bytes value_regex_filter = 9; - - - pub fn get_value_regex_filter(&self) -> &[u8] { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(::std::vec::Vec::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // .google.bigtable.v2.ValueRange value_range_filter = 15; - - - pub fn get_value_range_filter(&self) -> &ValueRange { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ValueRange::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ValueRange::new() - } - } - - // int32 cells_per_row_offset_filter = 10; - - - pub fn get_cells_per_row_offset_filter(&self) -> i32 { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_offset_filter(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, - _ => 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)) - } - - // int32 cells_per_row_limit_filter = 11; - - - pub fn get_cells_per_row_limit_filter(&self) -> i32 { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_limit_filter(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, - _ => 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)) - } - - // int32 cells_per_column_limit_filter = 12; - - - pub fn get_cells_per_column_limit_filter(&self) -> i32 { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_column_limit_filter(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, - _ => 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)) - } - - // bool strip_value_transformer = 13; - - - pub fn get_strip_value_transformer(&self) -> bool { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::strip_value_transformer(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, - _ => 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)) - } - - // string apply_label_transformer = 19; - - - pub fn get_apply_label_transformer(&self) -> &str { - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(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, - _ => 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)) - } - - // 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 { - } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(::std::string::String::new())); - } - match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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()?)); - }, - 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())?; - }, - }; - } - ::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.filter { - match v { - &RowFilter_oneof_filter::chain(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::interleave(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::condition(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::sink(v) => { - my_size += 3; - }, - &RowFilter_oneof_filter::pass_all_filter(v) => { - my_size += 3; - }, - &RowFilter_oneof_filter::block_all_filter(v) => { - my_size += 3; - }, - &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { - my_size += ::protobuf::rt::bytes_size(4, &v); - }, - &RowFilter_oneof_filter::row_sample_filter(v) => { - my_size += 9; - }, - &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { - my_size += ::protobuf::rt::string_size(5, &v); - }, - &RowFilter_oneof_filter::column_qualifier_regex_filter(ref v) => { - my_size += ::protobuf::rt::bytes_size(6, &v); - }, - &RowFilter_oneof_filter::column_range_filter(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::timestamp_range_filter(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::value_regex_filter(ref v) => { - my_size += ::protobuf::rt::bytes_size(9, &v); - }, - &RowFilter_oneof_filter::value_range_filter(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { - my_size += ::protobuf::rt::value_size(10, v, ::protobuf::wire_format::WireTypeVarint); - }, - &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { - my_size += ::protobuf::rt::value_size(11, v, ::protobuf::wire_format::WireTypeVarint); - }, - &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { - my_size += ::protobuf::rt::value_size(12, v, ::protobuf::wire_format::WireTypeVarint); - }, - &RowFilter_oneof_filter::strip_value_transformer(v) => { - my_size += 2; - }, - &RowFilter_oneof_filter::apply_label_transformer(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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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) => { - os.write_bool(16, v)?; - }, - &RowFilter_oneof_filter::pass_all_filter(v) => { - os.write_bool(17, v)?; - }, - &RowFilter_oneof_filter::block_all_filter(v) => { - os.write_bool(18, v)?; - }, - &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { - os.write_bytes(4, v)?; - }, - &RowFilter_oneof_filter::row_sample_filter(v) => { - os.write_double(14, v)?; - }, - &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { - os.write_string(5, v)?; - }, - &RowFilter_oneof_filter::column_qualifier_regex_filter(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)?; - }, - &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)?; - }, - &RowFilter_oneof_filter::value_regex_filter(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)?; - }, - &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { - os.write_int32(10, v)?; - }, - &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { - os.write_int32(11, v)?; - }, - &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { - os.write_int32(12, v)?; - }, - &RowFilter_oneof_filter::strip_value_transformer(v) => { - os.write_bool(13, v)?; - }, - &RowFilter_oneof_filter::apply_label_transformer(ref v) => { - os.write_string(19, 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() -> 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; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.filter = ::std::option::Option::None; - self.unknown_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) - } -} - -impl ::protobuf::reflect::ProtobufValue for RowFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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 RowFilter_Chain { - pub fn new() -> RowFilter_Chain { - ::std::default::Default::default() - } - - // repeated .google.bigtable.v2.RowFilter filters = 1; - - - pub fn get_filters(&self) -> &[RowFilter] { - &self.filters - } - pub fn clear_filters(&mut self) { - self.filters.clear(); - } - - // Param is passed by value, moved - pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { - self.filters = v; - } - - // Mutable pointer to the field. - pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.filters - } - - // Take field - pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for RowFilter_Chain { - 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())?; - }, - }; - } - ::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_Chain { - RowFilter_Chain::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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_Chain| { &m.filters }, - |m: &mut RowFilter_Chain| { &mut m.filters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowFilter.Chain", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RowFilter_Chain { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowFilter_Chain::new) - } -} - -impl ::protobuf::Clear for RowFilter_Chain { - fn clear(&mut self) { - self.filters.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RowFilter_Chain { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RowFilter_Chain { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a RowFilter_Interleave { - fn default() -> &'a RowFilter_Interleave { - ::default_instance() - } -} - -impl RowFilter_Interleave { - pub fn new() -> RowFilter_Interleave { - ::std::default::Default::default() - } - - // repeated .google.bigtable.v2.RowFilter filters = 1; - - - pub fn get_filters(&self) -> &[RowFilter] { - &self.filters - } - pub fn clear_filters(&mut self) { - self.filters.clear(); - } - - // Param is passed by value, moved - pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { - self.filters = v; - } - - // Mutable pointer to the field. - pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.filters - } - - // Take field - pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) - } -} - -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())?; - }, - }; - } - ::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() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowFilter.Interleave", - fields, - file_descriptor_proto() - ) - }) - } - - 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); - } - - // 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(); - } - 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(); - } - 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; - } - }; - for v in &self.true_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.false_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_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())?; - }, - }; - } - ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_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)?; - } - 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 new() -> RowFilter_Condition { - RowFilter_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 default_instance() -> &'static RowFilter_Condition { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowFilter_Condition::new) - } -} - -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 ::std::fmt::Debug for RowFilter_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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Mutation { - // message oneof groups - pub mutation: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Mutation { - fn default() -> &'a Mutation { - ::default_instance() - } -} - -#[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() - } - - // .google.bigtable.v2.Mutation.SetCell set_cell = 1; - - - pub fn get_set_cell(&self) -> &Mutation_SetCell { - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(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, - _ => 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)) - } - - // 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 { - } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(Mutation_SetCell::new())); - } - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Mutation_SetCell::new() - } - } - - // .google.bigtable.v2.Mutation.DeleteFromColumn delete_from_column = 2; - - - pub fn get_delete_from_column(&self) -> &Mutation_DeleteFromColumn { - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(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, - _ => 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)) - } - - // 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 { - } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(Mutation_DeleteFromColumn::new())); - } - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Mutation_DeleteFromColumn::new() - } - } - - // .google.bigtable.v2.Mutation.DeleteFromFamily delete_from_family = 3; - - - pub fn get_delete_from_family(&self) -> &Mutation_DeleteFromFamily { - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(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, - _ => 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)) - } - - // 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 { - } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(Mutation_DeleteFromFamily::new())); - } - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Mutation_DeleteFromFamily::new() - } - } - - // .google.bigtable.v2.Mutation.DeleteFromRow delete_from_row = 4; - - - pub fn get_delete_from_row(&self) -> &Mutation_DeleteFromRow { - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(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, - _ => 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)) - } - - // 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 { - } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(Mutation_DeleteFromRow::new())); - } - match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - Mutation_DeleteFromRow::new() - } - } -} - -impl ::protobuf::Message for 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())?; - }, - }; - } - ::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.mutation { - match v { - &Mutation_oneof_mutation::set_cell(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Mutation_oneof_mutation::delete_from_column(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Mutation_oneof_mutation::delete_from_family(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Mutation_oneof_mutation::delete_from_row(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.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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 { - 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 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.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 ::std::fmt::Debug 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) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a Mutation_SetCell { - fn default() -> &'a Mutation_SetCell { - ::default_instance() - } -} - -impl Mutation_SetCell { - pub fn new() -> Mutation_SetCell { - ::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()) - } - - // 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>( - "family_name", - |m: &Mutation_SetCell| { &m.family_name }, - |m: &mut Mutation_SetCell| { &mut m.family_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "column_qualifier", - |m: &Mutation_SetCell| { &m.column_qualifier }, - |m: &mut Mutation_SetCell| { &mut m.column_qualifier }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "timestamp_micros", - |m: &Mutation_SetCell| { &m.timestamp_micros }, - |m: &mut Mutation_SetCell| { &mut m.timestamp_micros }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "value", - |m: &Mutation_SetCell| { &m.value }, - |m: &mut Mutation_SetCell| { &mut m.value }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation.SetCell", - fields, - file_descriptor_proto() - ) - }) - } - - 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; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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())?; - }, - }; - } - ::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 Some(ref v) = self.time_range.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.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 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_DeleteFromColumn { - Mutation_DeleteFromColumn::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_DeleteFromColumn| { &m.family_name }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.family_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "column_qualifier", - |m: &Mutation_DeleteFromColumn| { &m.column_qualifier }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.column_qualifier }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "time_range", - |m: &Mutation_DeleteFromColumn| { &m.time_range }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.time_range }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation.DeleteFromColumn", - fields, - file_descriptor_proto() - ) - }) - } - - 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 - } - - // 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)?; - } - 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1dgoogle/bigtable/v2/data.proto\x12\x12google.bigtable.v2\"O\n\x03Ro\ - w\x12\x10\n\x03key\x18\x01\x20\x01(\x0cR\x03key\x126\n\x08families\x18\ - \x02\x20\x03(\x0b2\x1a.google.bigtable.v2.FamilyR\x08families\"R\n\x06Fa\ - mily\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x124\n\x07columns\x18\ - \x02\x20\x03(\x0b2\x1a.google.bigtable.v2.ColumnR\x07columns\"V\n\x06Col\ - umn\x12\x1c\n\tqualifier\x18\x01\x20\x01(\x0cR\tqualifier\x12.\n\x05cell\ - s\x18\x02\x20\x03(\x0b2\x18.google.bigtable.v2.CellR\x05cells\"_\n\x04Ce\ - ll\x12)\n\x10timestamp_micros\x18\x01\x20\x01(\x03R\x0ftimestampMicros\ - \x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\x12\x16\n\x06labels\ - \x18\x03\x20\x03(\tR\x06labels\"\xc2\x01\n\x08RowRange\x12*\n\x10start_k\ - ey_closed\x18\x01\x20\x01(\x0cH\0R\x0estartKeyClosed\x12&\n\x0estart_key\ - _open\x18\x02\x20\x01(\x0cH\0R\x0cstartKeyOpen\x12\"\n\x0cend_key_open\ - \x18\x03\x20\x01(\x0cH\x01R\nendKeyOpen\x12&\n\x0eend_key_closed\x18\x04\ - \x20\x01(\x0cH\x01R\x0cendKeyClosedB\x0b\n\tstart_keyB\t\n\x07end_key\"`\ - \n\x06RowSet\x12\x19\n\x08row_keys\x18\x01\x20\x03(\x0cR\x07rowKeys\x12;\ - \n\nrow_ranges\x18\x02\x20\x03(\x0b2\x1c.google.bigtable.v2.RowRangeR\tr\ - owRanges\"\xa2\x02\n\x0bColumnRange\x12\x1f\n\x0bfamily_name\x18\x01\x20\ - \x01(\tR\nfamilyName\x126\n\x16start_qualifier_closed\x18\x02\x20\x01(\ - \x0cH\0R\x14startQualifierClosed\x122\n\x14start_qualifier_open\x18\x03\ - \x20\x01(\x0cH\0R\x12startQualifierOpen\x122\n\x14end_qualifier_closed\ - \x18\x04\x20\x01(\x0cH\x01R\x12endQualifierClosed\x12.\n\x12end_qualifie\ - r_open\x18\x05\x20\x01(\x0cH\x01R\x10endQualifierOpenB\x11\n\x0fstart_qu\ - alifierB\x0f\n\rend_qualifier\"x\n\x0eTimestampRange\x124\n\x16start_tim\ - estamp_micros\x18\x01\x20\x01(\x03R\x14startTimestampMicros\x120\n\x14en\ - d_timestamp_micros\x18\x02\x20\x01(\x03R\x12endTimestampMicros\"\xd8\x01\ - \n\nValueRange\x12.\n\x12start_value_closed\x18\x01\x20\x01(\x0cH\0R\x10\ - startValueClosed\x12*\n\x10start_value_open\x18\x02\x20\x01(\x0cH\0R\x0e\ - startValueOpen\x12*\n\x10end_value_closed\x18\x03\x20\x01(\x0cH\x01R\x0e\ - endValueClosed\x12&\n\x0eend_value_open\x18\x04\x20\x01(\x0cH\x01R\x0cen\ - dValueOpenB\r\n\x0bstart_valueB\x0b\n\tend_value\"\xfc\x0b\n\tRowFilter\ - \x12;\n\x05chain\x18\x01\x20\x01(\x0b2#.google.bigtable.v2.RowFilter.Cha\ - inH\0R\x05chain\x12J\n\ninterleave\x18\x02\x20\x01(\x0b2(.google.bigtabl\ - e.v2.RowFilter.InterleaveH\0R\ninterleave\x12G\n\tcondition\x18\x03\x20\ - \x01(\x0b2'.google.bigtable.v2.RowFilter.ConditionH\0R\tcondition\x12\ - \x14\n\x04sink\x18\x10\x20\x01(\x08H\0R\x04sink\x12(\n\x0fpass_all_filte\ - r\x18\x11\x20\x01(\x08H\0R\rpassAllFilter\x12*\n\x10block_all_filter\x18\ - \x12\x20\x01(\x08H\0R\x0eblockAllFilter\x121\n\x14row_key_regex_filter\ - \x18\x04\x20\x01(\x0cH\0R\x11rowKeyRegexFilter\x12,\n\x11row_sample_filt\ - er\x18\x0e\x20\x01(\x01H\0R\x0frowSampleFilter\x129\n\x18family_name_reg\ - ex_filter\x18\x05\x20\x01(\tH\0R\x15familyNameRegexFilter\x12C\n\x1dcolu\ - mn_qualifier_regex_filter\x18\x06\x20\x01(\x0cH\0R\x1acolumnQualifierReg\ - exFilter\x12Q\n\x13column_range_filter\x18\x07\x20\x01(\x0b2\x1f.google.\ - bigtable.v2.ColumnRangeH\0R\x11columnRangeFilter\x12Z\n\x16timestamp_ran\ - ge_filter\x18\x08\x20\x01(\x0b2\".google.bigtable.v2.TimestampRangeH\0R\ - \x14timestampRangeFilter\x12.\n\x12value_regex_filter\x18\t\x20\x01(\x0c\ - H\0R\x10valueRegexFilter\x12N\n\x12value_range_filter\x18\x0f\x20\x01(\ - \x0b2\x1e.google.bigtable.v2.ValueRangeH\0R\x10valueRangeFilter\x12>\n\ - \x1bcells_per_row_offset_filter\x18\n\x20\x01(\x05H\0R\x17cellsPerRowOff\ - setFilter\x12<\n\x1acells_per_row_limit_filter\x18\x0b\x20\x01(\x05H\0R\ - \x16cellsPerRowLimitFilter\x12B\n\x1dcells_per_column_limit_filter\x18\ - \x0c\x20\x01(\x05H\0R\x19cellsPerColumnLimitFilter\x128\n\x17strip_value\ - _transformer\x18\r\x20\x01(\x08H\0R\x15stripValueTransformer\x128\n\x17a\ - pply_label_transformer\x18\x13\x20\x01(\tH\0R\x15applyLabelTransformer\ - \x1a@\n\x05Chain\x127\n\x07filters\x18\x01\x20\x03(\x0b2\x1d.google.bigt\ - able.v2.RowFilterR\x07filters\x1aE\n\nInterleave\x127\n\x07filters\x18\ - \x01\x20\x03(\x0b2\x1d.google.bigtable.v2.RowFilterR\x07filters\x1a\xd7\ - \x01\n\tCondition\x12H\n\x10predicate_filter\x18\x01\x20\x01(\x0b2\x1d.g\ - oogle.bigtable.v2.RowFilterR\x0fpredicateFilter\x12>\n\x0btrue_filter\ - \x18\x02\x20\x01(\x0b2\x1d.google.bigtable.v2.RowFilterR\ntrueFilter\x12\ - @\n\x0cfalse_filter\x18\x03\x20\x01(\x0b2\x1d.google.bigtable.v2.RowFilt\ - erR\x0bfalseFilterB\x08\n\x06filter\"\xf0\x05\n\x08Mutation\x12A\n\x08se\ - t_cell\x18\x01\x20\x01(\x0b2$.google.bigtable.v2.Mutation.SetCellH\0R\ - \x07setCell\x12]\n\x12delete_from_column\x18\x02\x20\x01(\x0b2-.google.b\ - igtable.v2.Mutation.DeleteFromColumnH\0R\x10deleteFromColumn\x12]\n\x12d\ - elete_from_family\x18\x03\x20\x01(\x0b2-.google.bigtable.v2.Mutation.Del\ - eteFromFamilyH\0R\x10deleteFromFamily\x12T\n\x0fdelete_from_row\x18\x04\ - \x20\x01(\x0b2*.google.bigtable.v2.Mutation.DeleteFromRowH\0R\rdeleteFro\ - mRow\x1a\x96\x01\n\x07SetCell\x12\x1f\n\x0bfamily_name\x18\x01\x20\x01(\ - \tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0cR\x0fcolu\ - mnQualifier\x12)\n\x10timestamp_micros\x18\x03\x20\x01(\x03R\x0ftimestam\ - pMicros\x12\x14\n\x05value\x18\x04\x20\x01(\x0cR\x05value\x1a\xa1\x01\n\ - \x10DeleteFromColumn\x12\x1f\n\x0bfamily_name\x18\x01\x20\x01(\tR\nfamil\ - yName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0cR\x0fcolumnQualifie\ - r\x12A\n\ntime_range\x18\x03\x20\x01(\x0b2\".google.bigtable.v2.Timestam\ - pRangeR\ttimeRange\x1a3\n\x10DeleteFromFamily\x12\x1f\n\x0bfamily_name\ - \x18\x01\x20\x01(\tR\nfamilyName\x1a\x0f\n\rDeleteFromRowB\n\n\x08mutati\ - on\"\xbb\x01\n\x13ReadModifyWriteRule\x12\x1f\n\x0bfamily_name\x18\x01\ - \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\x04ruleB\xb5\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\\V2\ - \xea\x02\x1bGoogle::Cloud::Bigtable::V2J\xb5\xb8\x01\n\x07\x12\x05\x0f\0\ - \x97\x04\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\ - \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\x08\n\x01\x08\x12\x03\x19\04\n\t\n\x02\x08-\ - \x12\x03\x19\04\n\x90\x01\n\x02\x04\0\x12\x04\x1d\0&\x01\x1a\x83\x01\x20\ - Specifies\x20the\x20complete\x20(requested)\x20contents\x20of\x20a\x20si\ - ngle\x20row\x20of\x20a\x20table.\n\x20Rows\x20which\x20exceed\x20256MiB\ - \x20in\x20size\x20cannot\x20be\x20read\x20in\x20full.\n\n\n\n\x03\x04\0\ - \x01\x12\x03\x1d\x08\x0b\n\xe2\x01\n\x04\x04\0\x02\0\x12\x03!\x02\x10\ - \x1a\xd4\x01\x20The\x20unique\x20key\x20which\x20identifies\x20this\x20r\ - ow\x20within\x20its\x20table.\x20This\x20is\x20the\x20same\n\x20key\x20t\ - hat's\x20used\x20to\x20identify\x20the\x20row\x20in,\x20for\x20example,\ - \x20a\x20MutateRowRequest.\n\x20May\x20contain\x20any\x20non-empty\x20by\ - te\x20string\x20up\x20to\x204KiB\x20in\x20length.\n\n\r\n\x05\x04\0\x02\ - \0\x04\x12\x04!\x02\x1d\r\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\x0b\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x03!\x0e\x0f\n{\n\x04\x04\0\x02\x01\x12\x03%\x02\x1f\x1an\x20May\ - \x20be\x20empty,\x20but\x20only\x20if\x20the\x20entire\x20row\x20is\x20e\ - mpty.\n\x20The\x20mutual\x20ordering\x20of\x20column\x20families\x20is\ - \x20not\x20specified.\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\x11\n\x0c\n\x05\x04\0\x02\x01\ - \x01\x12\x03%\x12\x1a\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03%\x1d\x1e\nf\ - \n\x02\x04\x01\x12\x04*\05\x01\x1aZ\x20Specifies\x20(some\x20of)\x20the\ - \x20contents\x20of\x20a\x20single\x20row/column\x20family\x20intersectio\ - n\n\x20of\x20a\x20table.\n\n\n\n\x03\x04\x01\x01\x12\x03*\x08\x0e\n\x85\ - \x03\n\x04\x04\x01\x02\0\x12\x031\x02\x12\x1a\xf7\x02\x20The\x20unique\ - \x20key\x20which\x20identifies\x20this\x20family\x20within\x20its\x20row\ - .\x20This\x20is\x20the\n\x20same\x20key\x20that's\x20used\x20to\x20ident\ - ify\x20the\x20family\x20in,\x20for\x20example,\x20a\x20RowFilter\n\x20wh\ - ich\x20sets\x20its\x20\"family_name_regex_filter\"\x20field.\n\x20Must\ - \x20match\x20`[-_.a-zA-Z0-9]+`,\x20except\x20that\x20AggregatingRowProce\ - ssors\x20may\n\x20produce\x20cells\x20in\x20a\x20sentinel\x20family\x20w\ - ith\x20an\x20empty\x20name.\n\x20Must\x20be\x20no\x20greater\x20than\x20\ - 64\x20characters\x20in\x20length.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x041\ - \x02*\x10\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x031\x02\x08\n\x0c\n\x05\x04\ - \x01\x02\0\x01\x12\x031\t\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x031\x10\ - \x11\nL\n\x04\x04\x01\x02\x01\x12\x034\x02\x1e\x1a?\x20Must\x20not\x20be\ - \x20empty.\x20Sorted\x20in\x20order\x20of\x20increasing\x20\"qualifier\"\ - .\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x034\x02\n\n\x0c\n\x05\x04\x01\ - \x02\x01\x06\x12\x034\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x034\ - \x12\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x034\x1c\x1d\n_\n\x02\x04\ - \x02\x12\x049\0C\x01\x1aS\x20Specifies\x20(some\x20of)\x20the\x20content\ - s\x20of\x20a\x20single\x20row/column\x20intersection\x20of\x20a\n\x20tab\ - le.\n\n\n\n\x03\x04\x02\x01\x12\x039\x08\x0e\n\xad\x02\n\x04\x04\x02\x02\ - \0\x12\x03?\x02\x16\x1a\x9f\x02\x20The\x20unique\x20key\x20which\x20iden\ - tifies\x20this\x20column\x20within\x20its\x20family.\x20This\x20is\x20th\ - e\n\x20same\x20key\x20that's\x20used\x20to\x20identify\x20the\x20column\ - \x20in,\x20for\x20example,\x20a\x20RowFilter\n\x20which\x20sets\x20its\ - \x20`column_qualifier_regex_filter`\x20field.\n\x20May\x20contain\x20any\ - \x20byte\x20string,\x20including\x20the\x20empty\x20string,\x20up\x20to\ - \x2016kiB\x20in\n\x20length.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04?\x029\ - \x10\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03?\x02\x07\n\x0c\n\x05\x04\x02\ - \x02\0\x01\x12\x03?\x08\x11\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03?\x14\ - \x15\nS\n\x04\x04\x02\x02\x01\x12\x03B\x02\x1a\x1aF\x20Must\x20not\x20be\ - \x20empty.\x20Sorted\x20in\x20order\x20of\x20decreasing\x20\"timestamp_m\ - icros\".\n\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03B\x02\n\n\x0c\n\x05\ - \x04\x02\x02\x01\x06\x12\x03B\x0b\x0f\n\x0c\n\x05\x04\x02\x02\x01\x01\ - \x12\x03B\x10\x15\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03B\x18\x19\n[\n\ - \x02\x04\x03\x12\x04F\0V\x01\x1aO\x20Specifies\x20(some\x20of)\x20the\ - \x20contents\x20of\x20a\x20single\x20row/column/timestamp\x20of\x20a\x20\ - table.\n\n\n\n\x03\x04\x03\x01\x12\x03F\x08\x0c\n\xf6\x02\n\x04\x04\x03\ - \x02\0\x12\x03M\x02\x1d\x1a\xe8\x02\x20The\x20cell's\x20stored\x20timest\ - amp,\x20which\x20also\x20uniquely\x20identifies\x20it\x20within\n\x20its\ - \x20column.\n\x20Values\x20are\x20always\x20expressed\x20in\x20microseco\ - nds,\x20but\x20individual\x20tables\x20may\x20set\n\x20a\x20coarser\x20g\ - ranularity\x20to\x20further\x20restrict\x20the\x20allowed\x20values.\x20\ - For\n\x20example,\x20a\x20table\x20which\x20specifies\x20millisecond\x20\ - granularity\x20will\x20only\x20allow\n\x20values\x20of\x20`timestamp_mic\ - ros`\x20which\x20are\x20multiples\x20of\x201000.\n\n\r\n\x05\x04\x03\x02\ - \0\x04\x12\x04M\x02F\x0e\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03M\x02\x07\ - \n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03M\x08\x18\n\x0c\n\x05\x04\x03\x02\ - \0\x03\x12\x03M\x1b\x1c\n\x7f\n\x04\x04\x03\x02\x01\x12\x03R\x02\x12\x1a\ - r\x20The\x20value\x20stored\x20in\x20the\x20cell.\n\x20May\x20contain\ - \x20any\x20byte\x20string,\x20including\x20the\x20empty\x20string,\x20up\ - \x20to\x20100MiB\x20in\n\x20length.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\ - \x04R\x02M\x1d\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03R\x02\x07\n\x0c\n\ - \x05\x04\x03\x02\x01\x01\x12\x03R\x08\r\n\x0c\n\x05\x04\x03\x02\x01\x03\ - \x12\x03R\x10\x11\nY\n\x04\x04\x03\x02\x02\x12\x03U\x02\x1d\x1aL\x20Labe\ - ls\x20applied\x20to\x20the\x20cell\x20by\x20a\x20[RowFilter][google.bigt\ - able.v2.RowFilter].\n\n\x0c\n\x05\x04\x03\x02\x02\x04\x12\x03U\x02\n\n\ - \x0c\n\x05\x04\x03\x02\x02\x05\x12\x03U\x0b\x11\n\x0c\n\x05\x04\x03\x02\ - \x02\x01\x12\x03U\x12\x18\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03U\x1b\ - \x1c\n3\n\x02\x04\x04\x12\x04Y\0m\x01\x1a'\x20Specifies\x20a\x20contiguo\ - us\x20range\x20of\x20rows.\n\n\n\n\x03\x04\x04\x01\x12\x03Y\x08\x10\n~\n\ - \x04\x04\x04\x08\0\x12\x04\\\x02b\x03\x1ap\x20The\x20row\x20key\x20at\ - \x20which\x20to\x20start\x20the\x20range.\n\x20If\x20neither\x20field\ - \x20is\x20set,\x20interpreted\x20as\x20the\x20empty\x20string,\x20inclus\ - ive.\n\n\x0c\n\x05\x04\x04\x08\0\x01\x12\x03\\\x08\x11\nG\n\x04\x04\x04\ - \x02\0\x12\x03^\x04\x1f\x1a:\x20Used\x20when\x20giving\x20an\x20inclusiv\ - e\x20lower\x20bound\x20for\x20the\x20range.\n\n\x0c\n\x05\x04\x04\x02\0\ - \x05\x12\x03^\x04\t\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03^\n\x1a\n\x0c\n\ - \x05\x04\x04\x02\0\x03\x12\x03^\x1d\x1e\nG\n\x04\x04\x04\x02\x01\x12\x03\ - a\x04\x1d\x1a:\x20Used\x20when\x20giving\x20an\x20exclusive\x20lower\x20\ - bound\x20for\x20the\x20range.\n\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03a\ - \x04\t\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03a\n\x18\n\x0c\n\x05\x04\ - \x04\x02\x01\x03\x12\x03a\x1b\x1c\n\x80\x01\n\x04\x04\x04\x08\x01\x12\ - \x04f\x02l\x03\x1ar\x20The\x20row\x20key\x20at\x20which\x20to\x20end\x20\ - the\x20range.\n\x20If\x20neither\x20field\x20is\x20set,\x20interpreted\ - \x20as\x20the\x20infinite\x20row\x20key,\x20exclusive.\n\n\x0c\n\x05\x04\ - \x04\x08\x01\x01\x12\x03f\x08\x0f\nG\n\x04\x04\x04\x02\x02\x12\x03h\x04\ - \x1b\x1a:\x20Used\x20when\x20giving\x20an\x20exclusive\x20upper\x20bound\ - \x20for\x20the\x20range.\n\n\x0c\n\x05\x04\x04\x02\x02\x05\x12\x03h\x04\ - \t\n\x0c\n\x05\x04\x04\x02\x02\x01\x12\x03h\n\x16\n\x0c\n\x05\x04\x04\ - \x02\x02\x03\x12\x03h\x19\x1a\nG\n\x04\x04\x04\x02\x03\x12\x03k\x04\x1d\ - \x1a:\x20Used\x20when\x20giving\x20an\x20inclusive\x20upper\x20bound\x20\ - for\x20the\x20range.\n\n\x0c\n\x05\x04\x04\x02\x03\x05\x12\x03k\x04\t\n\ - \x0c\n\x05\x04\x04\x02\x03\x01\x12\x03k\n\x18\n\x0c\n\x05\x04\x04\x02\ - \x03\x03\x12\x03k\x1b\x1c\n5\n\x02\x04\x05\x12\x04p\0v\x01\x1a)\x20Speci\ - fies\x20a\x20non-contiguous\x20set\x20of\x20rows.\n\n\n\n\x03\x04\x05\ - \x01\x12\x03p\x08\x0e\n/\n\x04\x04\x05\x02\0\x12\x03r\x02\x1e\x1a\"\x20S\ - ingle\x20rows\x20included\x20in\x20the\x20set.\n\n\x0c\n\x05\x04\x05\x02\ - \0\x04\x12\x03r\x02\n\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03r\x0b\x10\n\ - \x0c\n\x05\x04\x05\x02\0\x01\x12\x03r\x11\x19\n\x0c\n\x05\x04\x05\x02\0\ - \x03\x12\x03r\x1c\x1d\n9\n\x04\x04\x05\x02\x01\x12\x03u\x02#\x1a,\x20Con\ - tiguous\x20row\x20ranges\x20included\x20in\x20the\x20set.\n\n\x0c\n\x05\ - \x04\x05\x02\x01\x04\x12\x03u\x02\n\n\x0c\n\x05\x04\x05\x02\x01\x06\x12\ - \x03u\x0b\x13\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03u\x14\x1e\n\x0c\n\ - \x05\x04\x05\x02\x01\x03\x12\x03u!\"\n\x84\x02\n\x02\x04\x06\x12\x05|\0\ - \x93\x01\x01\x1a\xf6\x01\x20Specifies\x20a\x20contiguous\x20range\x20of\ - \x20columns\x20within\x20a\x20single\x20column\x20family.\n\x20The\x20ra\ - nge\x20spans\x20from\x20<column_family>:<start_qualifier>\ - \x20to\n\x20<column_family>:<end_qualifier>,\x20where\x20bot\ - h\x20bounds\x20can\x20be\x20either\n\x20inclusive\x20or\x20exclusive.\n\ - \n\n\n\x03\x04\x06\x01\x12\x03|\x08\x13\nK\n\x04\x04\x06\x02\0\x12\x03~\ - \x02\x19\x1a>\x20The\x20name\x20of\x20the\x20column\x20family\x20within\ - \x20which\x20this\x20range\x20falls.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\ - \x04~\x02|\x15\n\x0c\n\x05\x04\x06\x02\0\x05\x12\x03~\x02\x08\n\x0c\n\ - \x05\x04\x06\x02\0\x01\x12\x03~\t\x14\n\x0c\n\x05\x04\x06\x02\0\x03\x12\ - \x03~\x17\x18\n\xa3\x01\n\x04\x04\x06\x08\0\x12\x06\x82\x01\x02\x88\x01\ - \x03\x1a\x92\x01\x20The\x20column\x20qualifier\x20at\x20which\x20to\x20s\ - tart\x20the\x20range\x20(within\x20`column_family`).\n\x20If\x20neither\ - \x20field\x20is\x20set,\x20interpreted\x20as\x20the\x20empty\x20string,\ - \x20inclusive.\n\n\r\n\x05\x04\x06\x08\0\x01\x12\x04\x82\x01\x08\x17\nH\ - \n\x04\x04\x06\x02\x01\x12\x04\x84\x01\x04%\x1a:\x20Used\x20when\x20givi\ - ng\x20an\x20inclusive\x20lower\x20bound\x20for\x20the\x20range.\n\n\r\n\ - \x05\x04\x06\x02\x01\x05\x12\x04\x84\x01\x04\t\n\r\n\x05\x04\x06\x02\x01\ - \x01\x12\x04\x84\x01\n\x20\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x84\x01\ - #$\nH\n\x04\x04\x06\x02\x02\x12\x04\x87\x01\x04#\x1a:\x20Used\x20when\ - \x20giving\x20an\x20exclusive\x20lower\x20bound\x20for\x20the\x20range.\ - \n\n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\x87\x01\x04\t\n\r\n\x05\x04\x06\ - \x02\x02\x01\x12\x04\x87\x01\n\x1e\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\ - \x87\x01!\"\n\xa4\x01\n\x04\x04\x06\x08\x01\x12\x06\x8c\x01\x02\x92\x01\ - \x03\x1a\x93\x01\x20The\x20column\x20qualifier\x20at\x20which\x20to\x20e\ - nd\x20the\x20range\x20(within\x20`column_family`).\n\x20If\x20neither\ - \x20field\x20is\x20set,\x20interpreted\x20as\x20the\x20infinite\x20strin\ - g,\x20exclusive.\n\n\r\n\x05\x04\x06\x08\x01\x01\x12\x04\x8c\x01\x08\x15\ - \nH\n\x04\x04\x06\x02\x03\x12\x04\x8e\x01\x04#\x1a:\x20Used\x20when\x20g\ - iving\x20an\x20inclusive\x20upper\x20bound\x20for\x20the\x20range.\n\n\r\ - \n\x05\x04\x06\x02\x03\x05\x12\x04\x8e\x01\x04\t\n\r\n\x05\x04\x06\x02\ - \x03\x01\x12\x04\x8e\x01\n\x1e\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\x8e\ - \x01!\"\nH\n\x04\x04\x06\x02\x04\x12\x04\x91\x01\x04!\x1a:\x20Used\x20wh\ - en\x20giving\x20an\x20exclusive\x20upper\x20bound\x20for\x20the\x20range\ - .\n\n\r\n\x05\x04\x06\x02\x04\x05\x12\x04\x91\x01\x04\t\n\r\n\x05\x04\ - \x06\x02\x04\x01\x12\x04\x91\x01\n\x1c\n\r\n\x05\x04\x06\x02\x04\x03\x12\ - \x04\x91\x01\x1f\x20\nG\n\x02\x04\x07\x12\x06\x96\x01\0\x9c\x01\x01\x1a9\ - \x20Specified\x20a\x20contiguous\x20range\x20of\x20microsecond\x20timest\ - amps.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x96\x01\x08\x16\nG\n\x04\x04\x07\ - \x02\0\x12\x04\x98\x01\x02#\x1a9\x20Inclusive\x20lower\x20bound.\x20If\ - \x20left\x20empty,\x20interpreted\x20as\x200.\n\n\x0f\n\x05\x04\x07\x02\ - \0\x04\x12\x06\x98\x01\x02\x96\x01\x18\n\r\n\x05\x04\x07\x02\0\x05\x12\ - \x04\x98\x01\x02\x07\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x98\x01\x08\x1e\ - \n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x98\x01!\"\nN\n\x04\x04\x07\x02\x01\ - \x12\x04\x9b\x01\x02!\x1a@\x20Exclusive\x20upper\x20bound.\x20If\x20left\ - \x20empty,\x20interpreted\x20as\x20infinity.\n\n\x0f\n\x05\x04\x07\x02\ - \x01\x04\x12\x06\x9b\x01\x02\x98\x01#\n\r\n\x05\x04\x07\x02\x01\x05\x12\ - \x04\x9b\x01\x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\x9b\x01\x08\ - \x1c\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\x9b\x01\x1f\x20\n@\n\x02\x04\ - \x08\x12\x06\x9f\x01\0\xb3\x01\x01\x1a2\x20Specifies\x20a\x20contiguous\ - \x20range\x20of\x20raw\x20byte\x20values.\n\n\x0b\n\x03\x04\x08\x01\x12\ - \x04\x9f\x01\x08\x12\n~\n\x04\x04\x08\x08\0\x12\x06\xa2\x01\x02\xa8\x01\ - \x03\x1an\x20The\x20value\x20at\x20which\x20to\x20start\x20the\x20range.\ - \n\x20If\x20neither\x20field\x20is\x20set,\x20interpreted\x20as\x20the\ - \x20empty\x20string,\x20inclusive.\n\n\r\n\x05\x04\x08\x08\0\x01\x12\x04\ - \xa2\x01\x08\x13\nH\n\x04\x04\x08\x02\0\x12\x04\xa4\x01\x04!\x1a:\x20Use\ - d\x20when\x20giving\x20an\x20inclusive\x20lower\x20bound\x20for\x20the\ - \x20range.\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xa4\x01\x04\t\n\r\n\x05\ - \x04\x08\x02\0\x01\x12\x04\xa4\x01\n\x1c\n\r\n\x05\x04\x08\x02\0\x03\x12\ - \x04\xa4\x01\x1f\x20\nH\n\x04\x04\x08\x02\x01\x12\x04\xa7\x01\x04\x1f\ - \x1a:\x20Used\x20when\x20giving\x20an\x20exclusive\x20lower\x20bound\x20\ - for\x20the\x20range.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xa7\x01\x04\ - \t\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xa7\x01\n\x1a\n\r\n\x05\x04\x08\ - \x02\x01\x03\x12\x04\xa7\x01\x1d\x1e\n\x7f\n\x04\x04\x08\x08\x01\x12\x06\ - \xac\x01\x02\xb2\x01\x03\x1ao\x20The\x20value\x20at\x20which\x20to\x20en\ - d\x20the\x20range.\n\x20If\x20neither\x20field\x20is\x20set,\x20interpre\ - ted\x20as\x20the\x20infinite\x20string,\x20exclusive.\n\n\r\n\x05\x04\ - \x08\x08\x01\x01\x12\x04\xac\x01\x08\x11\nH\n\x04\x04\x08\x02\x02\x12\ - \x04\xae\x01\x04\x1f\x1a:\x20Used\x20when\x20giving\x20an\x20inclusive\ - \x20upper\x20bound\x20for\x20the\x20range.\n\n\r\n\x05\x04\x08\x02\x02\ - \x05\x12\x04\xae\x01\x04\t\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xae\x01\ - \n\x1a\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xae\x01\x1d\x1e\nH\n\x04\ - \x04\x08\x02\x03\x12\x04\xb1\x01\x04\x1d\x1a:\x20Used\x20when\x20giving\ - \x20an\x20exclusive\x20upper\x20bound\x20for\x20the\x20range.\n\n\r\n\ - \x05\x04\x08\x02\x03\x05\x12\x04\xb1\x01\x04\t\n\r\n\x05\x04\x08\x02\x03\ - \x01\x12\x04\xb1\x01\n\x18\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\xb1\x01\ - \x1b\x1c\n\xa9\x0f\n\x02\x04\t\x12\x06\xd6\x01\0\xb9\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\ - ow\x20to\x20include\n\x20just\x20the\x20cells\x20from\x20columns\x20matc\ - hing\x20a\x20given\x20regular\x20expression,\x20or\x20might\n\x20return\ - \x20all\x20the\x20cells\x20of\x20a\x20row\x20but\x20not\x20their\x20valu\ - es.\x20More\x20complicated\x20filters\n\x20can\x20be\x20composed\x20out\ - \x20of\x20these\x20components\x20to\x20express\x20requests\x20such\x20as\ - ,\x20\"within\n\x20every\x20column\x20of\x20a\x20particular\x20family,\ - \x20give\x20just\x20the\x20two\x20most\x20recent\x20cells\n\x20which\x20\ - are\x20older\x20than\x20timestamp\x20X.\"\n\n\x20There\x20are\x20two\x20\ - broad\x20categories\x20of\x20RowFilters\x20(true\x20filters\x20and\x20tr\ - ansformers),\n\x20as\x20well\x20as\x20two\x20ways\x20to\x20compose\x20si\ - mple\x20filters\x20into\x20more\x20complex\x20ones\n\x20(chains\x20and\ - \x20interleaves).\x20They\x20work\x20as\x20follows:\n\n\x20*\x20True\x20\ - filters\x20alter\x20the\x20input\x20row\x20by\x20excluding\x20some\x20of\ - \x20its\x20cells\x20wholesale\n\x20from\x20the\x20output\x20row.\x20An\ - \x20example\x20of\x20a\x20true\x20filter\x20is\x20the\x20`value_regex_fi\ - lter`,\n\x20which\x20excludes\x20cells\x20whose\x20values\x20don't\x20ma\ - tch\x20the\x20specified\x20pattern.\x20All\n\x20regex\x20true\x20filters\ - \x20use\x20RE2\x20syntax\x20(https://github.com/google/re2/wiki/Syntax)\ - \n\x20in\x20raw\x20byte\x20mode\x20(RE2::Latin1),\x20and\x20are\x20evalu\ - ated\x20as\x20full\x20matches.\x20An\n\x20important\x20point\x20to\x20ke\ - ep\x20in\x20mind\x20is\x20that\x20`RE2(.)`\x20is\x20equivalent\x20by\x20\ - default\x20to\n\x20`RE2([^\\n])`,\x20meaning\x20that\x20it\x20does\x20no\ - t\x20match\x20newlines.\x20When\x20attempting\x20to\n\x20match\x20an\x20\ - arbitrary\x20byte,\x20you\x20should\x20therefore\x20use\x20the\x20escape\ - \x20sequence\x20`\\C`,\n\x20which\x20may\x20need\x20to\x20be\x20further\ - \x20escaped\x20as\x20`\\\\C`\x20in\x20your\x20client\x20language.\n\n\ - \x20*\x20Transformers\x20alter\x20the\x20input\x20row\x20by\x20changing\ - \x20the\x20values\x20of\x20some\x20of\x20its\n\x20cells\x20in\x20the\x20\ - output,\x20without\x20excluding\x20them\x20completely.\x20Currently,\x20\ - the\x20only\n\x20supported\x20transformer\x20is\x20the\x20`strip_value_t\ - ransformer`,\x20which\x20replaces\x20every\n\x20cell's\x20value\x20with\ - \x20the\x20empty\x20string.\n\n\x20*\x20Chains\x20and\x20interleaves\x20\ - 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\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\xd6\x01\x08\x11\nV\n\x04\x04\t\x03\0\x12\x06\xd8\x01\ - \x02\xdd\x01\x03\x1aF\x20A\x20RowFilter\x20which\x20sends\x20rows\x20thr\ - ough\x20several\x20RowFilters\x20in\x20sequence.\n\n\r\n\x05\x04\t\x03\0\ - \x01\x12\x04\xd8\x01\n\x0f\n\xc9\x01\n\x06\x04\t\x03\0\x02\0\x12\x04\xdc\ - \x01\x04#\x1a\xb8\x01\x20The\x20elements\x20of\x20\"filters\"\x20are\x20\ - chained\x20together\x20to\x20process\x20the\x20input\x20row:\n\x20in\x20\ - row\x20->\x20f(0)\x20->\x20intermediate\x20row\x20->\x20f(1)\x20->\x20..\ - .\x20->\x20f(N)\x20->\x20out\x20row\n\x20The\x20full\x20chain\x20is\x20e\ - xecuted\x20atomically.\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x04\x12\x04\xdc\ - \x01\x04\x0c\n\x0f\n\x07\x04\t\x03\0\x02\0\x06\x12\x04\xdc\x01\r\x16\n\ - \x0f\n\x07\x04\t\x03\0\x02\0\x01\x12\x04\xdc\x01\x17\x1e\n\x0f\n\x07\x04\ - \t\x03\0\x02\0\x03\x12\x04\xdc\x01!\"\nx\n\x04\x04\t\x03\x01\x12\x06\xe1\ - \x01\x02\xfc\x01\x03\x1ah\x20A\x20RowFilter\x20which\x20sends\x20each\ - \x20row\x20to\x20each\x20of\x20several\x20component\n\x20RowFilters\x20a\ - nd\x20interleaves\x20the\x20results.\n\n\r\n\x05\x04\t\x03\x01\x01\x12\ - \x04\xe1\x01\n\x14\n\x93\x0b\n\x06\x04\t\x03\x01\x02\0\x12\x04\xfb\x01\ - \x04#\x1a\x82\x0b\x20The\x20elements\x20of\x20\"filters\"\x20all\x20proc\ - ess\x20a\x20copy\x20of\x20the\x20input\x20row,\x20and\x20the\n\x20result\ - s\x20are\x20pooled,\x20sorted,\x20and\x20combined\x20into\x20a\x20single\ - \x20output\x20row.\n\x20If\x20multiple\x20cells\x20are\x20produced\x20wi\ - th\x20the\x20same\x20column\x20and\x20timestamp,\n\x20they\x20will\x20al\ - l\x20appear\x20in\x20the\x20output\x20row\x20in\x20an\x20unspecified\x20\ - mutual\x20order.\n\x20Consider\x20the\x20following\x20example,\x20with\ - \x20three\x20filters:\n\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\x20input\x20row\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|\n\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\x20|\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20f(0)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20f(1)\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20f(2)\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\x20|\n\x20\x20\x20\x20\x201:\x20foo,bar\ - ,10,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foo,bar,10,z\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,bar,7,a\n\ - \x20\x20\x20\x20\x202:\x20foo,blah,11,z\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20far,blah,5,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20far,blah,5,x\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\x20|\n\ - \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|\n\x20\x20\x20\x20\x201:\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20foo,bar,10,z\x20\x20\x20//\x20could\x20have\x20switched\x20w\ - ith\x20#2\n\x20\x20\x20\x20\x202:\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foo,bar,10,x\x20\x20\ - \x20//\x20could\x20have\x20switched\x20with\x20#1\n\x20\x20\x20\x20\x203\ - :\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20foo,blah,11,z\n\x20\x20\x20\x20\x204:\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20far,bar,7,a\n\x20\x20\x20\x20\x205:\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,blah,5,x\x20\ - \x20\x20//\x20identical\x20to\x20#6\n\x20\x20\x20\x20\x206:\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20far,blah,5,x\x20\x20\x20//\x20identical\x20to\x20#5\n\n\x20All\x20in\ - terleaved\x20filters\x20are\x20executed\x20atomically.\n\n\x0f\n\x07\x04\ - \t\x03\x01\x02\0\x04\x12\x04\xfb\x01\x04\x0c\n\x0f\n\x07\x04\t\x03\x01\ - \x02\0\x06\x12\x04\xfb\x01\r\x16\n\x0f\n\x07\x04\t\x03\x01\x02\0\x01\x12\ - \x04\xfb\x01\x17\x1e\n\x0f\n\x07\x04\t\x03\x01\x02\0\x03\x12\x04\xfb\x01\ - !\"\n\xb4\x03\n\x04\x04\t\x03\x02\x12\x06\x85\x02\x02\x92\x02\x03\x1a\ - \xa3\x03\x20A\x20RowFilter\x20which\x20evaluates\x20one\x20of\x20two\x20\ - possible\x20RowFilters,\x20depending\x20on\n\x20whether\x20or\x20not\x20\ - a\x20predicate\x20RowFilter\x20outputs\x20any\x20cells\x20from\x20the\ - \x20input\x20row.\n\n\x20IMPORTANT\x20NOTE:\x20The\x20predicate\x20filte\ - r\x20does\x20not\x20execute\x20atomically\x20with\x20the\n\x20true\x20an\ - d\x20false\x20filters,\x20which\x20may\x20lead\x20to\x20inconsistent\x20\ - or\x20unexpected\n\x20results.\x20Additionally,\x20Condition\x20filters\ - \x20have\x20poor\x20performance,\x20especially\n\x20when\x20filters\x20a\ - re\x20set\x20for\x20the\x20false\x20condition.\n\n\r\n\x05\x04\t\x03\x02\ - \x01\x12\x04\x85\x02\n\x13\n\xa0\x01\n\x06\x04\t\x03\x02\x02\0\x12\x04\ - \x88\x02\x04#\x1a\x8f\x01\x20If\x20`predicate_filter`\x20outputs\x20any\ - \x20cells,\x20then\x20`true_filter`\x20will\x20be\n\x20evaluated\x20on\ - \x20the\x20input\x20row.\x20Otherwise,\x20`false_filter`\x20will\x20be\ - \x20evaluated.\n\n\x11\n\x07\x04\t\x03\x02\x02\0\x04\x12\x06\x88\x02\x04\ - \x85\x02\x15\n\x0f\n\x07\x04\t\x03\x02\x02\0\x06\x12\x04\x88\x02\x04\r\n\ - \x0f\n\x07\x04\t\x03\x02\x02\0\x01\x12\x04\x88\x02\x0e\x1e\n\x0f\n\x07\ - \x04\t\x03\x02\x02\0\x03\x12\x04\x88\x02!\"\n\xa2\x01\n\x06\x04\t\x03\ - \x02\x02\x01\x12\x04\x8c\x02\x04\x1e\x1a\x91\x01\x20The\x20filter\x20to\ - \x20apply\x20to\x20the\x20input\x20row\x20if\x20`predicate_filter`\x20re\ - turns\x20any\n\x20results.\x20If\x20not\x20provided,\x20no\x20results\ - \x20will\x20be\x20returned\x20in\x20the\x20true\x20case.\n\n\x11\n\x07\ - \x04\t\x03\x02\x02\x01\x04\x12\x06\x8c\x02\x04\x88\x02#\n\x0f\n\x07\x04\ - \t\x03\x02\x02\x01\x06\x12\x04\x8c\x02\x04\r\n\x0f\n\x07\x04\t\x03\x02\ - \x02\x01\x01\x12\x04\x8c\x02\x0e\x19\n\x0f\n\x07\x04\t\x03\x02\x02\x01\ - \x03\x12\x04\x8c\x02\x1c\x1d\n\xac\x01\n\x06\x04\t\x03\x02\x02\x02\x12\ - \x04\x91\x02\x04\x1f\x1a\x9b\x01\x20The\x20filter\x20to\x20apply\x20to\ - \x20the\x20input\x20row\x20if\x20`predicate_filter`\x20does\x20not\n\x20\ - return\x20any\x20results.\x20If\x20not\x20provided,\x20no\x20results\x20\ - will\x20be\x20returned\x20in\x20the\n\x20false\x20case.\n\n\x11\n\x07\ - \x04\t\x03\x02\x02\x02\x04\x12\x06\x91\x02\x04\x8c\x02\x1e\n\x0f\n\x07\ - \x04\t\x03\x02\x02\x02\x06\x12\x04\x91\x02\x04\r\n\x0f\n\x07\x04\t\x03\ - \x02\x02\x02\x01\x12\x04\x91\x02\x0e\x1a\n\x0f\n\x07\x04\t\x03\x02\x02\ - \x02\x03\x12\x04\x91\x02\x1d\x1e\n\x86\x01\n\x04\x04\t\x08\0\x12\x06\x96\ - \x02\x02\xb8\x03\x03\x1av\x20Which\x20of\x20the\x20possible\x20RowFilter\ - \x20types\x20to\x20apply.\x20If\x20none\x20are\x20set,\x20this\n\x20RowF\ - ilter\x20returns\x20all\x20cells\x20in\x20the\x20input\x20row.\n\n\r\n\ - \x05\x04\t\x08\0\x01\x12\x04\x96\x02\x08\x0e\ni\n\x04\x04\t\x02\0\x12\ - \x04\x99\x02\x04\x14\x1a[\x20Applies\x20several\x20RowFilters\x20to\x20t\ - he\x20data\x20in\x20sequence,\x20progressively\n\x20narrowing\x20the\x20\ - results.\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\x99\x02\x04\t\n\r\n\x05\x04\ - \t\x02\0\x01\x12\x04\x99\x02\n\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x99\ - \x02\x12\x13\n]\n\x04\x04\t\x02\x01\x12\x04\x9d\x02\x04\x1e\x1aO\x20Appl\ - ies\x20several\x20RowFilters\x20to\x20the\x20data\x20in\x20parallel\x20a\ - nd\x20combines\x20the\n\x20results.\n\n\r\n\x05\x04\t\x02\x01\x06\x12\ - \x04\x9d\x02\x04\x0e\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x9d\x02\x0f\x19\ - \n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x9d\x02\x1c\x1d\nq\n\x04\x04\t\x02\ - \x02\x12\x04\xa1\x02\x04\x1c\x1ac\x20Applies\x20one\x20of\x20two\x20poss\ - ible\x20RowFilters\x20to\x20the\x20data\x20based\x20on\x20the\x20output\ - \x20of\n\x20a\x20predicate\x20RowFilter.\n\n\r\n\x05\x04\t\x02\x02\x06\ - \x12\x04\xa1\x02\x04\r\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xa1\x02\x0e\ - \x17\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xa1\x02\x1a\x1b\n\xb7\x14\n\x04\ - \x04\t\x02\x03\x12\x04\xde\x02\x04\x13\x1a\xa8\x14\x20ADVANCED\x20USE\ - \x20ONLY.\n\x20Hook\x20for\x20introspection\x20into\x20the\x20RowFilter.\ - \x20Outputs\x20all\x20cells\x20directly\x20to\n\x20the\x20output\x20of\ - \x20the\x20read\x20rather\x20than\x20to\x20any\x20parent\x20filter.\x20C\ - onsider\x20the\n\x20following\x20example:\n\n\x20\x20\x20\x20\x20Chain(\ - \n\x20\x20\x20\x20\x20\x20\x20FamilyRegex(\"A\"),\n\x20\x20\x20\x20\x20\ - \x20\x20Interleave(\n\x20\x20\x20\x20\x20\x20\x20\x20\x20All(),\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20Chain(Label(\"foo\"),\x20Sink())\n\x20\ - \x20\x20\x20\x20\x20\x20),\n\x20\x20\x20\x20\x20\x20\x20QualifierRegex(\ - \"B\")\n\x20\x20\x20\x20\x20)\n\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\x20A,A,1,w\ - \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\x20A,B,2,x\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\ - B,B,4,z\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|\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Fami\ - lyRegex(\"A\")\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|\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\x20A,A,1,w\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\x20A,B,2,x\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|\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\x20\x20|\x20\x20\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\x20All()\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20Label(foo)\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|\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20A,A,1,w\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20A,A,1,w,labels:[foo]\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20A,B,2,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20A,B,2,x,labels:[foo]\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|\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\ - \x20Sink()\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|\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20+------------+\x20\ - \x20\x20\x20\x20\x20x------+\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20A,A,\ - 1,w,labels:[foo]\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\x20A,B,2,x,labels:[foo]\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\x20A,A,\ - 1,w\x20\x20\x20\x20\x20\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\x20A,B,2,x\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20QualifierRegex(\"B\")\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\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20A,B,2,x\ - \x20\x20\x20\x20\x20\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\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|\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\x20A,A,1,w,labels:[foo]\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\x20A,B,2,x,\ - labels:[foo]\x20\x20//\x20could\x20be\x20switched\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\x20A,B,2,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20//\x20could\x20be\x20switched\n\n\x20Despite\x20being\x20excluded\ - \x20by\x20the\x20qualifier\x20filter,\x20a\x20copy\x20of\x20every\x20cel\ - l\n\x20that\x20reaches\x20the\x20sink\x20is\x20present\x20in\x20the\x20f\ - inal\x20result.\n\n\x20As\x20with\x20an\x20[Interleave][google.bigtable.\ - v2.RowFilter.Interleave],\n\x20duplicate\x20cells\x20are\x20possible,\ - \x20and\x20appear\x20in\x20an\x20unspecified\x20mutual\x20order.\n\x20In\ - \x20this\x20case\x20we\x20have\x20a\x20duplicate\x20with\x20column\x20\"\ - A:B\"\x20and\x20timestamp\x202,\n\x20because\x20one\x20copy\x20passed\ - \x20through\x20the\x20all\x20filter\x20while\x20the\x20other\x20was\n\ - \x20passed\x20through\x20the\x20label\x20and\x20sink.\x20Note\x20that\ - \x20one\x20copy\x20has\x20label\x20\"foo\",\n\x20while\x20the\x20other\ - \x20does\x20not.\n\n\x20Cannot\x20be\x20used\x20within\x20the\x20`predic\ - ate_filter`,\x20`true_filter`,\x20or\n\x20`false_filter`\x20of\x20a\x20[\ - Condition][google.bigtable.v2.RowFilter.Condition].\n\n\r\n\x05\x04\t\ - \x02\x03\x05\x12\x04\xde\x02\x04\x08\n\r\n\x05\x04\t\x02\x03\x01\x12\x04\ - \xde\x02\t\r\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xde\x02\x10\x12\n\x8a\ - \x01\n\x04\x04\t\x02\x04\x12\x04\xe2\x02\x04\x1e\x1a|\x20Matches\x20all\ - \x20cells,\x20regardless\x20of\x20input.\x20Functionally\x20equivalent\ - \x20to\n\x20leaving\x20`filter`\x20unset,\x20but\x20included\x20for\x20c\ - ompleteness.\n\n\r\n\x05\x04\t\x02\x04\x05\x12\x04\xe2\x02\x04\x08\n\r\n\ - \x05\x04\t\x02\x04\x01\x12\x04\xe2\x02\t\x18\n\r\n\x05\x04\t\x02\x04\x03\ - \x12\x04\xe2\x02\x1b\x1d\nw\n\x04\x04\t\x02\x05\x12\x04\xe6\x02\x04\x1f\ - \x1ai\x20Does\x20not\x20match\x20any\x20cells,\x20regardless\x20of\x20in\ - put.\x20Useful\x20for\x20temporarily\n\x20disabling\x20just\x20part\x20o\ - f\x20a\x20filter.\n\n\r\n\x05\x04\t\x02\x05\x05\x12\x04\xe6\x02\x04\x08\ - \n\r\n\x05\x04\t\x02\x05\x01\x12\x04\xe6\x02\t\x19\n\r\n\x05\x04\t\x02\ - \x05\x03\x12\x04\xe6\x02\x1c\x1e\n\xa4\x03\n\x04\x04\t\x02\x06\x12\x04\ - \xef\x02\x04#\x1a\x95\x03\x20Matches\x20only\x20cells\x20from\x20rows\ - \x20whose\x20keys\x20satisfy\x20the\x20given\x20RE2\x20regex.\x20In\n\ - \x20other\x20words,\x20passes\x20through\x20the\x20entire\x20row\x20when\ - \x20the\x20key\x20matches,\x20and\n\x20otherwise\x20produces\x20an\x20em\ - pty\x20row.\n\x20Note\x20that,\x20since\x20row\x20keys\x20can\x20contain\ - \x20arbitrary\x20bytes,\x20the\x20`\\C`\x20escape\n\x20sequence\x20must\ - \x20be\x20used\x20if\x20a\x20true\x20wildcard\x20is\x20desired.\x20The\ - \x20`.`\x20character\n\x20will\x20not\x20match\x20the\x20new\x20line\x20\ - character\x20`\\n`,\x20which\x20may\x20be\x20present\x20in\x20a\n\x20bin\ - ary\x20key.\n\n\r\n\x05\x04\t\x02\x06\x05\x12\x04\xef\x02\x04\t\n\r\n\ - \x05\x04\t\x02\x06\x01\x12\x04\xef\x02\n\x1e\n\r\n\x05\x04\t\x02\x06\x03\ - \x12\x04\xef\x02!\"\ny\n\x04\x04\t\x02\x07\x12\x04\xf3\x02\x04\"\x1ak\ - \x20Matches\x20all\x20cells\x20from\x20a\x20row\x20with\x20probability\ - \x20p,\x20and\x20matches\x20no\x20cells\n\x20from\x20the\x20row\x20with\ - \x20probability\x201-p.\n\n\r\n\x05\x04\t\x02\x07\x05\x12\x04\xf3\x02\ - \x04\n\n\r\n\x05\x04\t\x02\x07\x01\x12\x04\xf3\x02\x0b\x1c\n\r\n\x05\x04\ - \t\x02\x07\x03\x12\x04\xf3\x02\x1f!\n\xf0\x02\n\x04\x04\t\x02\x08\x12\ - \x04\xfb\x02\x04(\x1a\xe1\x02\x20Matches\x20only\x20cells\x20from\x20col\ - umns\x20whose\x20families\x20satisfy\x20the\x20given\x20RE2\n\x20regex.\ - \x20For\x20technical\x20reasons,\x20the\x20regex\x20must\x20not\x20conta\ - in\x20the\x20`:`\n\x20character,\x20even\x20if\x20it\x20is\x20not\x20bei\ - ng\x20used\x20as\x20a\x20literal.\n\x20Note\x20that,\x20since\x20column\ - \x20families\x20cannot\x20contain\x20the\x20new\x20line\x20character\n\ - \x20`\\n`,\x20it\x20is\x20sufficient\x20to\x20use\x20`.`\x20as\x20a\x20f\ - ull\x20wildcard\x20when\x20matching\n\x20column\x20family\x20names.\n\n\ - \r\n\x05\x04\t\x02\x08\x05\x12\x04\xfb\x02\x04\n\n\r\n\x05\x04\t\x02\x08\ - \x01\x12\x04\xfb\x02\x0b#\n\r\n\x05\x04\t\x02\x08\x03\x12\x04\xfb\x02&'\ - \n\xd2\x02\n\x04\x04\t\x02\t\x12\x04\x83\x03\x04,\x1a\xc3\x02\x20Matches\ - \x20only\x20cells\x20from\x20columns\x20whose\x20qualifiers\x20satisfy\ - \x20the\x20given\x20RE2\n\x20regex.\n\x20Note\x20that,\x20since\x20colum\ - n\x20qualifiers\x20can\x20contain\x20arbitrary\x20bytes,\x20the\x20`\\C`\ - \n\x20escape\x20sequence\x20must\x20be\x20used\x20if\x20a\x20true\x20wil\ - dcard\x20is\x20desired.\x20The\x20`.`\n\x20character\x20will\x20not\x20m\ - atch\x20the\x20new\x20line\x20character\x20`\\n`,\x20which\x20may\x20be\ - \n\x20present\x20in\x20a\x20binary\x20qualifier.\n\n\r\n\x05\x04\t\x02\t\ - \x05\x12\x04\x83\x03\x04\t\n\r\n\x05\x04\t\x02\t\x01\x12\x04\x83\x03\n'\ - \n\r\n\x05\x04\t\x02\t\x03\x12\x04\x83\x03*+\nG\n\x04\x04\t\x02\n\x12\ - \x04\x86\x03\x04(\x1a9\x20Matches\x20only\x20cells\x20from\x20columns\ - \x20within\x20the\x20given\x20range.\n\n\r\n\x05\x04\t\x02\n\x06\x12\x04\ - \x86\x03\x04\x0f\n\r\n\x05\x04\t\x02\n\x01\x12\x04\x86\x03\x10#\n\r\n\ - \x05\x04\t\x02\n\x03\x12\x04\x86\x03&'\nJ\n\x04\x04\t\x02\x0b\x12\x04\ - \x89\x03\x04.\x1a<\x20Matches\x20only\x20cells\x20with\x20timestamps\x20\ - within\x20the\x20given\x20range.\n\n\r\n\x05\x04\t\x02\x0b\x06\x12\x04\ - \x89\x03\x04\x12\n\r\n\x05\x04\t\x02\x0b\x01\x12\x04\x89\x03\x13)\n\r\n\ - \x05\x04\t\x02\x0b\x03\x12\x04\x89\x03,-\n\xc3\x02\n\x04\x04\t\x02\x0c\ - \x12\x04\x90\x03\x04!\x1a\xb4\x02\x20Matches\x20only\x20cells\x20with\ - \x20values\x20that\x20satisfy\x20the\x20given\x20regular\x20expression.\ - \n\x20Note\x20that,\x20since\x20cell\x20values\x20can\x20contain\x20arbi\ - trary\x20bytes,\x20the\x20`\\C`\x20escape\n\x20sequence\x20must\x20be\ - \x20used\x20if\x20a\x20true\x20wildcard\x20is\x20desired.\x20The\x20`.`\ - \x20character\n\x20will\x20not\x20match\x20the\x20new\x20line\x20charact\ - er\x20`\\n`,\x20which\x20may\x20be\x20present\x20in\x20a\n\x20binary\x20\ - value.\n\n\r\n\x05\x04\t\x02\x0c\x05\x12\x04\x90\x03\x04\t\n\r\n\x05\x04\ - \t\x02\x0c\x01\x12\x04\x90\x03\n\x1c\n\r\n\x05\x04\t\x02\x0c\x03\x12\x04\ - \x90\x03\x1f\x20\nP\n\x04\x04\t\x02\r\x12\x04\x93\x03\x04'\x1aB\x20Match\ - es\x20only\x20cells\x20with\x20values\x20that\x20fall\x20within\x20the\ - \x20given\x20range.\n\n\r\n\x05\x04\t\x02\r\x06\x12\x04\x93\x03\x04\x0e\ - \n\r\n\x05\x04\t\x02\r\x01\x12\x04\x93\x03\x0f!\n\r\n\x05\x04\t\x02\r\ - \x03\x12\x04\x93\x03$&\n\xcc\x01\n\x04\x04\t\x02\x0e\x12\x04\x98\x03\x04\ - +\x1a\xbd\x01\x20Skips\x20the\x20first\x20N\x20cells\x20of\x20each\x20ro\ - w,\x20matching\x20all\x20subsequent\x20cells.\n\x20If\x20duplicate\x20ce\ - lls\x20are\x20present,\x20as\x20is\x20possible\x20when\x20using\x20an\ - \x20Interleave,\n\x20each\x20copy\x20of\x20the\x20cell\x20is\x20counted\ - \x20separately.\n\n\r\n\x05\x04\t\x02\x0e\x05\x12\x04\x98\x03\x04\t\n\r\ - \n\x05\x04\t\x02\x0e\x01\x12\x04\x98\x03\n%\n\r\n\x05\x04\t\x02\x0e\x03\ - \x12\x04\x98\x03(*\n\xb4\x01\n\x04\x04\t\x02\x0f\x12\x04\x9d\x03\x04*\ - \x1a\xa5\x01\x20Matches\x20only\x20the\x20first\x20N\x20cells\x20of\x20e\ - ach\x20row.\n\x20If\x20duplicate\x20cells\x20are\x20present,\x20as\x20is\ - \x20possible\x20when\x20using\x20an\x20Interleave,\n\x20each\x20copy\x20\ - of\x20the\x20cell\x20is\x20counted\x20separately.\n\n\r\n\x05\x04\t\x02\ - \x0f\x05\x12\x04\x9d\x03\x04\t\n\r\n\x05\x04\t\x02\x0f\x01\x12\x04\x9d\ - \x03\n$\n\r\n\x05\x04\t\x02\x0f\x03\x12\x04\x9d\x03')\n\xf3\x02\n\x04\ - \x04\t\x02\x10\x12\x04\xa5\x03\x04-\x1a\xe4\x02\x20Matches\x20only\x20th\ - e\x20most\x20recent\x20N\x20cells\x20within\x20each\x20column.\x20For\ - \x20example,\n\x20if\x20N=2,\x20this\x20filter\x20would\x20match\x20colu\ - mn\x20`foo:bar`\x20at\x20timestamps\x2010\x20and\x209,\n\x20skip\x20all\ - \x20earlier\x20cells\x20in\x20`foo:bar`,\x20and\x20then\x20begin\x20matc\ - hing\x20again\x20in\n\x20column\x20`foo:bar2`.\n\x20If\x20duplicate\x20c\ - ells\x20are\x20present,\x20as\x20is\x20possible\x20when\x20using\x20an\ - \x20Interleave,\n\x20each\x20copy\x20of\x20the\x20cell\x20is\x20counted\ - \x20separately.\n\n\r\n\x05\x04\t\x02\x10\x05\x12\x04\xa5\x03\x04\t\n\r\ - \n\x05\x04\t\x02\x10\x01\x12\x04\xa5\x03\n'\n\r\n\x05\x04\t\x02\x10\x03\ - \x12\x04\xa5\x03*,\nA\n\x04\x04\t\x02\x11\x12\x04\xa8\x03\x04&\x1a3\x20R\ - eplaces\x20each\x20cell's\x20value\x20with\x20the\x20empty\x20string.\n\ - \n\r\n\x05\x04\t\x02\x11\x05\x12\x04\xa8\x03\x04\x08\n\r\n\x05\x04\t\x02\ - \x11\x01\x12\x04\xa8\x03\t\x20\n\r\n\x05\x04\t\x02\x11\x03\x12\x04\xa8\ - \x03#%\n\xfb\x04\n\x04\x04\t\x02\x12\x12\x04\xb7\x03\x04(\x1a\xec\x04\ - \x20Applies\x20the\x20given\x20label\x20to\x20all\x20cells\x20in\x20the\ - \x20output\x20row.\x20This\x20allows\n\x20the\x20client\x20to\x20determi\ - ne\x20which\x20results\x20were\x20produced\x20from\x20which\x20part\x20o\ - f\n\x20the\x20filter.\n\n\x20Values\x20must\x20be\x20at\x20most\x2015\ - \x20characters\x20in\x20length,\x20and\x20match\x20the\x20RE2\n\x20patte\ - rn\x20`[a-z0-9\\\\-]+`\n\n\x20Due\x20to\x20a\x20technical\x20limitation,\ - \x20it\x20is\x20not\x20currently\x20possible\x20to\x20apply\n\x20multipl\ - e\x20labels\x20to\x20a\x20cell.\x20As\x20a\x20result,\x20a\x20Chain\x20m\ - ay\x20have\x20no\x20more\x20than\n\x20one\x20sub-filter\x20which\x20cont\ - ains\x20a\x20`apply_label_transformer`.\x20It\x20is\x20okay\x20for\n\x20\ - an\x20Interleave\x20to\x20contain\x20multiple\x20`apply_label_transforme\ - rs`,\x20as\x20they\n\x20will\x20be\x20applied\x20to\x20separate\x20copie\ - s\x20of\x20the\x20input.\x20This\x20may\x20be\x20relaxed\x20in\n\x20the\ - \x20future.\n\n\r\n\x05\x04\t\x02\x12\x05\x12\x04\xb7\x03\x04\n\n\r\n\ - \x05\x04\t\x02\x12\x01\x12\x04\xb7\x03\x0b\"\n\r\n\x05\x04\t\x02\x12\x03\ - \x12\x04\xb7\x03%'\nR\n\x02\x04\n\x12\x06\xbc\x03\0\xfb\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\xbc\x03\ - \x08\x10\nH\n\x04\x04\n\x03\0\x12\x06\xbe\x03\x02\xd0\x03\x03\x1a8\x20A\ - \x20Mutation\x20which\x20sets\x20the\x20value\x20of\x20the\x20specified\ - \x20cell.\n\n\r\n\x05\x04\n\x03\0\x01\x12\x04\xbe\x03\n\x11\nm\n\x06\x04\ - \n\x03\0\x02\0\x12\x04\xc1\x03\x04\x1b\x1a]\x20The\x20name\x20of\x20the\ - \x20family\x20into\x20which\x20new\x20data\x20should\x20be\x20written.\n\ - \x20Must\x20match\x20`[-_.a-zA-Z0-9]+`\n\n\x11\n\x07\x04\n\x03\0\x02\0\ - \x04\x12\x06\xc1\x03\x04\xbe\x03\x13\n\x0f\n\x07\x04\n\x03\0\x02\0\x05\ - \x12\x04\xc1\x03\x04\n\n\x0f\n\x07\x04\n\x03\0\x02\0\x01\x12\x04\xc1\x03\ - \x0b\x16\n\x0f\n\x07\x04\n\x03\0\x02\0\x03\x12\x04\xc1\x03\x19\x1a\n\x89\ - \x01\n\x06\x04\n\x03\0\x02\x01\x12\x04\xc5\x03\x04\x1f\x1ay\x20The\x20qu\ - alifier\x20of\x20the\x20column\x20into\x20which\x20new\x20data\x20should\ - \x20be\x20written.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\ - \x20the\x20empty\x20string.\n\n\x11\n\x07\x04\n\x03\0\x02\x01\x04\x12\ - \x06\xc5\x03\x04\xc1\x03\x1b\n\x0f\n\x07\x04\n\x03\0\x02\x01\x05\x12\x04\ - \xc5\x03\x04\t\n\x0f\n\x07\x04\n\x03\0\x02\x01\x01\x12\x04\xc5\x03\n\x1a\ - \n\x0f\n\x07\x04\n\x03\0\x02\x01\x03\x12\x04\xc5\x03\x1d\x1e\n\xd1\x02\n\ - \x06\x04\n\x03\0\x02\x02\x12\x04\xcc\x03\x04\x1f\x1a\xc0\x02\x20The\x20t\ - imestamp\x20of\x20the\x20cell\x20into\x20which\x20new\x20data\x20should\ - \x20be\x20written.\n\x20Use\x20-1\x20for\x20current\x20Bigtable\x20serve\ - r\x20time.\n\x20Otherwise,\x20the\x20client\x20should\x20set\x20this\x20\ - value\x20itself,\x20noting\x20that\x20the\n\x20default\x20value\x20is\ - \x20a\x20timestamp\x20of\x20zero\x20if\x20the\x20field\x20is\x20left\x20\ - unspecified.\n\x20Values\x20must\x20match\x20the\x20granularity\x20of\ - \x20the\x20table\x20(e.g.\x20micros,\x20millis).\n\n\x11\n\x07\x04\n\x03\ - \0\x02\x02\x04\x12\x06\xcc\x03\x04\xc5\x03\x1f\n\x0f\n\x07\x04\n\x03\0\ - \x02\x02\x05\x12\x04\xcc\x03\x04\t\n\x0f\n\x07\x04\n\x03\0\x02\x02\x01\ - \x12\x04\xcc\x03\n\x1a\n\x0f\n\x07\x04\n\x03\0\x02\x02\x03\x12\x04\xcc\ - \x03\x1d\x1e\nB\n\x06\x04\n\x03\0\x02\x03\x12\x04\xcf\x03\x04\x14\x1a2\ - \x20The\x20value\x20to\x20be\x20written\x20into\x20the\x20specified\x20c\ - ell.\n\n\x11\n\x07\x04\n\x03\0\x02\x03\x04\x12\x06\xcf\x03\x04\xcc\x03\ - \x1f\n\x0f\n\x07\x04\n\x03\0\x02\x03\x05\x12\x04\xcf\x03\x04\t\n\x0f\n\ - \x07\x04\n\x03\0\x02\x03\x01\x12\x04\xcf\x03\n\x0f\n\x0f\n\x07\x04\n\x03\ - \0\x02\x03\x03\x12\x04\xcf\x03\x12\x13\n\x8d\x01\n\x04\x04\n\x03\x01\x12\ - \x06\xd4\x03\x02\xdf\x03\x03\x1a}\x20A\x20Mutation\x20which\x20deletes\ - \x20cells\x20from\x20the\x20specified\x20column,\x20optionally\n\x20rest\ - ricting\x20the\x20deletions\x20to\x20a\x20given\x20timestamp\x20range.\n\ - \n\r\n\x05\x04\n\x03\x01\x01\x12\x04\xd4\x03\n\x1a\nj\n\x06\x04\n\x03\ - \x01\x02\0\x12\x04\xd7\x03\x04\x1b\x1aZ\x20The\x20name\x20of\x20the\x20f\ - amily\x20from\x20which\x20cells\x20should\x20be\x20deleted.\n\x20Must\ - \x20match\x20`[-_.a-zA-Z0-9]+`\n\n\x11\n\x07\x04\n\x03\x01\x02\0\x04\x12\ - \x06\xd7\x03\x04\xd4\x03\x1c\n\x0f\n\x07\x04\n\x03\x01\x02\0\x05\x12\x04\ - \xd7\x03\x04\n\n\x0f\n\x07\x04\n\x03\x01\x02\0\x01\x12\x04\xd7\x03\x0b\ - \x16\n\x0f\n\x07\x04\n\x03\x01\x02\0\x03\x12\x04\xd7\x03\x19\x1a\n\x86\ - \x01\n\x06\x04\n\x03\x01\x02\x01\x12\x04\xdb\x03\x04\x1f\x1av\x20The\x20\ - qualifier\x20of\x20the\x20column\x20from\x20which\x20cells\x20should\x20\ - be\x20deleted.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\x20\ - the\x20empty\x20string.\n\n\x11\n\x07\x04\n\x03\x01\x02\x01\x04\x12\x06\ - \xdb\x03\x04\xd7\x03\x1b\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x05\x12\x04\ - \xdb\x03\x04\t\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x01\x12\x04\xdb\x03\n\ - \x1a\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x03\x12\x04\xdb\x03\x1d\x1e\nO\n\ - \x06\x04\n\x03\x01\x02\x02\x12\x04\xde\x03\x04\"\x1a?\x20The\x20range\ - \x20of\x20timestamps\x20within\x20which\x20cells\x20should\x20be\x20dele\ - ted.\n\n\x11\n\x07\x04\n\x03\x01\x02\x02\x04\x12\x06\xde\x03\x04\xdb\x03\ - \x1f\n\x0f\n\x07\x04\n\x03\x01\x02\x02\x06\x12\x04\xde\x03\x04\x12\n\x0f\ - \n\x07\x04\n\x03\x01\x02\x02\x01\x12\x04\xde\x03\x13\x1d\n\x0f\n\x07\x04\ - \n\x03\x01\x02\x02\x03\x12\x04\xde\x03\x20!\nV\n\x04\x04\n\x03\x02\x12\ - \x06\xe2\x03\x02\xe6\x03\x03\x1aF\x20A\x20Mutation\x20which\x20deletes\ - \x20all\x20cells\x20from\x20the\x20specified\x20column\x20family.\n\n\r\ - \n\x05\x04\n\x03\x02\x01\x12\x04\xe2\x03\n\x1a\nj\n\x06\x04\n\x03\x02\ - \x02\0\x12\x04\xe5\x03\x04\x1b\x1aZ\x20The\x20name\x20of\x20the\x20famil\ - y\x20from\x20which\x20cells\x20should\x20be\x20deleted.\n\x20Must\x20mat\ - ch\x20`[-_.a-zA-Z0-9]+`\n\n\x11\n\x07\x04\n\x03\x02\x02\0\x04\x12\x06\ - \xe5\x03\x04\xe2\x03\x1c\n\x0f\n\x07\x04\n\x03\x02\x02\0\x05\x12\x04\xe5\ - \x03\x04\n\n\x0f\n\x07\x04\n\x03\x02\x02\0\x01\x12\x04\xe5\x03\x0b\x16\n\ - \x0f\n\x07\x04\n\x03\x02\x02\0\x03\x12\x04\xe5\x03\x19\x1a\nM\n\x04\x04\ - \n\x03\x03\x12\x06\xe9\x03\x02\xeb\x03\x03\x1a=\x20A\x20Mutation\x20whic\ - h\x20deletes\x20all\x20cells\x20from\x20the\x20containing\x20row.\n\n\r\ - \n\x05\x04\n\x03\x03\x01\x12\x04\xe9\x03\n\x17\n@\n\x04\x04\n\x08\0\x12\ - \x06\xee\x03\x02\xfa\x03\x03\x1a0\x20Which\x20of\x20the\x20possible\x20M\ - utation\x20types\x20to\x20apply.\n\n\r\n\x05\x04\n\x08\0\x01\x12\x04\xee\ - \x03\x08\x10\n#\n\x04\x04\n\x02\0\x12\x04\xf0\x03\x04\x19\x1a\x15\x20Set\ - \x20a\x20cell's\x20value.\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\xf0\x03\ - \x04\x0b\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xf0\x03\x0c\x14\n\r\n\x05\x04\ - \n\x02\0\x03\x12\x04\xf0\x03\x17\x18\n,\n\x04\x04\n\x02\x01\x12\x04\xf3\ - \x03\x04,\x1a\x1e\x20Deletes\x20cells\x20from\x20a\x20column.\n\n\r\n\ - \x05\x04\n\x02\x01\x06\x12\x04\xf3\x03\x04\x14\n\r\n\x05\x04\n\x02\x01\ - \x01\x12\x04\xf3\x03\x15'\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xf3\x03*+\ - \n3\n\x04\x04\n\x02\x02\x12\x04\xf6\x03\x04,\x1a%\x20Deletes\x20cells\ - \x20from\x20a\x20column\x20family.\n\n\r\n\x05\x04\n\x02\x02\x06\x12\x04\ - \xf6\x03\x04\x14\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xf6\x03\x15'\n\r\n\ - \x05\x04\n\x02\x02\x03\x12\x04\xf6\x03*+\n2\n\x04\x04\n\x02\x03\x12\x04\ - \xf9\x03\x04&\x1a$\x20Deletes\x20cells\x20from\x20the\x20entire\x20row.\ - \n\n\r\n\x05\x04\n\x02\x03\x06\x12\x04\xf9\x03\x04\x11\n\r\n\x05\x04\n\ - \x02\x03\x01\x12\x04\xf9\x03\x12!\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\ - \xf9\x03$%\nm\n\x02\x04\x0b\x12\x06\xff\x03\0\x97\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\xff\x03\x08\x1b\nv\n\x04\x04\x0b\x02\0\x12\x04\x82\x04\ - \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\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\x82\x04\ - \x02\xff\x03\x1d\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x82\x04\x02\x08\n\r\ - \n\x05\x04\x0b\x02\0\x01\x12\x04\x82\x04\t\x14\n\r\n\x05\x04\x0b\x02\0\ - \x03\x12\x04\x82\x04\x17\x18\n\x94\x01\n\x04\x04\x0b\x02\x01\x12\x04\x87\ - \x04\x02\x1d\x1a\x85\x01\x20The\x20qualifier\x20of\x20the\x20column\x20t\ - o\x20which\x20the\x20read/modify/write\x20should\x20be\n\x20applied.\n\ - \x20Can\x20be\x20any\x20byte\x20string,\x20including\x20the\x20empty\x20\ - string.\n\n\x0f\n\x05\x04\x0b\x02\x01\x04\x12\x06\x87\x04\x02\x82\x04\ - \x19\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\x87\x04\x02\x07\n\r\n\x05\x04\ - \x0b\x02\x01\x01\x12\x04\x87\x04\x08\x18\n\r\n\x05\x04\x0b\x02\x01\x03\ - \x12\x04\x87\x04\x1b\x1c\nj\n\x04\x04\x0b\x08\0\x12\x06\x8b\x04\x02\x96\ - \x04\x03\x1aZ\x20The\x20rule\x20used\x20to\x20determine\x20the\x20column\ - 's\x20new\x20latest\x20value\x20from\x20its\x20current\n\x20latest\x20va\ - lue.\n\n\r\n\x05\x04\x0b\x08\0\x01\x12\x04\x8b\x04\x08\x0c\n\xab\x01\n\ - \x04\x04\x0b\x02\x02\x12\x04\x8f\x04\x04\x1b\x1a\x9c\x01\x20Rule\x20spec\ - ifying\x20that\x20`append_value`\x20be\x20appended\x20to\x20the\x20exist\ - ing\x20value.\n\x20If\x20the\x20targeted\x20cell\x20is\x20unset,\x20it\ - \x20will\x20be\x20treated\x20as\x20containing\x20the\n\x20empty\x20strin\ - g.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\x8f\x04\x04\t\n\r\n\x05\x04\ - \x0b\x02\x02\x01\x12\x04\x8f\x04\n\x16\n\r\n\x05\x04\x0b\x02\x02\x03\x12\ - \x04\x8f\x04\x19\x1a\n\xb3\x02\n\x04\x04\x0b\x02\x03\x12\x04\x95\x04\x04\ - \x1f\x1a\xa4\x02\x20Rule\x20specifying\x20that\x20`increment_amount`\x20\ - be\x20added\x20to\x20the\x20existing\x20value.\n\x20If\x20the\x20targete\ - d\x20cell\x20is\x20unset,\x20it\x20will\x20be\x20treated\x20as\x20contai\ - ning\x20a\x20zero.\n\x20Otherwise,\x20the\x20targeted\x20cell\x20must\ - \x20contain\x20an\x208-byte\x20value\x20(interpreted\n\x20as\x20a\x2064-\ - bit\x20big-endian\x20signed\x20integer),\x20or\x20the\x20entire\x20reque\ - st\x20will\x20fail.\n\n\r\n\x05\x04\x0b\x02\x03\x05\x12\x04\x95\x04\x04\ - \t\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\x95\x04\n\x1a\n\r\n\x05\x04\x0b\ - \x02\x03\x03\x12\x04\x95\x04\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/vendor/mozilla-rust-sdk/googleapis-raw/src/empty.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/empty.rs index 4d7406cccc..6019293da8 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/empty.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/empty.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct Empty { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy.rs index cf96ba613f..13b83945ef 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct SetIamPolicyRequest { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy_grpc.rs index 599eb48ddc..d8a745ee25 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy_grpc.rs @@ -102,9 +102,15 @@ impl IamPolicyClient { } pub trait IamPolicy { - fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); + 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_iam_policy(s: S) -> ::grpcio::Service { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/options.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/options.rs index 689883a49c..377b1e3a54 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/options.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/options.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct GetPolicyOptions { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/policy.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/policy.rs index bb21525ce3..bd1f2ff8b7 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/policy.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/policy.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct Policy { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/lib.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/lib.rs index 06edf95744..f28edfa032 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/lib.rs +++ b/vendor/mozilla-rust-sdk/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_22_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; pub mod empty; pub(crate) mod iam; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations.rs index 7ac9881925..9e507b9fea 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct Operation { @@ -1828,319 +1828,310 @@ pub mod exts { 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\"'\xdaA\x04name\x82\xd3\ - \xe4\x93\x02\x1a*\x18/v1/{name=operations/**}\x12\x88\x01\n\x0fCancelOpe\ - ration\x12*.google.longrunning.CancelOperationRequest\x1a\x16.google.pro\ - tobuf.Empty\"1\x82\xd3\xe4\x93\x02$\"\x1f/v1/{name=operations/**}:cancel\ - :\x01*\xdaA\x04name\x12Z\n\rWaitOperation\x12(.google.longrunning.WaitOp\ - erationRequest\x1a\x1d.google.longrunning.Operation\"\0\x1a\x1d\xcaA\x1a\ - longrunning.googleapis.com:i\n\x0eoperation_info\x18\x99\x08\x20\x01(\ - \x0b2!.google.longrunning.OperationInfo\x12\x1e.google.protobuf.MethodOp\ - tionsR\roperationInfoB\x97\x01\n\x16com.google.longrunningB\x0fOperation\ - sProtoP\x01Z=google.golang.org/genproto/googleapis/longrunning;longrunni\ - ng\xf8\x01\x01\xaa\x02\x12Google.LongRunning\xca\x02\x12Google\\LongRunn\ - ingJ\xf1N\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\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\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\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\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\x0b\n\x03\x07\0\x04\x12\x04)\x02\"&\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-runn\ - ing\x20operations\x20with\x20an\x20API\x20service.\n\n\x20When\x20an\x20\ - API\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\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\x20API\x20services\x20to\x20overr\ - ide\x20the\x20binding\n\x20to\x20use\x20different\x20resource\x20name\ - \x20schemes,\x20such\x20as\x20`users/*/operations`.\x20To\n\x20override\ - \x20the\x20binding,\x20API\x20services\x20can\x20add\x20a\x20binding\x20\ - such\x20as\n\x20`\"/v1/{name=users/*}/operations\"`\x20to\x20their\x20se\ - rvice\x20configuration.\n\x20For\x20backwards\x20compatibility,\x20the\ - \x20default\x20name\x20includes\x20the\x20operations\n\x20collection\x20\ - id,\x20however\x20overriding\x20users\x20must\x20ensure\x20the\x20name\ - \x20binding\n\x20is\x20the\x20parent\x20resource,\x20without\x20the\x20o\ - perations\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\x20th\ - e\x20latest\x20state\x20of\x20a\x20long-running\x20operation.\x20\x20Cli\ - ents\x20can\x20use\x20this\n\x20method\x20to\x20poll\x20the\x20operation\ + 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\xccM\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\x0b\n\x03\x07\0\x04\x12\ + \x04)\x02\"&\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\0u\ + \x01\x1a\xc5\x04\x20Manages\x20long-running\x20operations\x20with\x20an\ + \x20API\x20service.\n\n\x20When\x20an\x20API\x20method\x20normally\x20ta\ + kes\x20long\x20time\x20to\x20complete,\x20it\x20can\x20be\x20designed\n\ + \x20to\x20return\x20[Operation][google.longrunning.Operation]\x20to\x20t\ + he\x20client,\x20and\x20the\x20client\x20can\x20use\x20this\n\x20interfa\ + ce\x20to\x20receive\x20the\x20real\x20response\x20asynchronously\x20by\ + \x20polling\x20the\n\x20operation\x20resource,\x20or\x20pass\x20the\x20o\ + peration\x20resource\x20to\x20another\x20API\x20(such\x20as\n\x20Google\ + \x20Cloud\x20Pub/Sub\x20API)\x20to\x20receive\x20the\x20response.\x20\ + \x20Any\x20API\x20service\x20that\n\x20returns\x20long-running\x20operat\ + ions\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\x20Lists\x20operations\x20that\x20match\x20th\ + e\x20specified\x20filter\x20in\x20the\x20request.\x20If\x20the\n\x20serv\ + er\x20doesn't\x20support\x20this\x20method,\x20it\x20returns\x20`UNIMPLE\ + MENTED`.\n\n\x20NOTE:\x20the\x20`name`\x20binding\x20allows\x20API\x20se\ + rvices\x20to\x20override\x20the\x20binding\n\x20to\x20use\x20different\ + \x20resource\x20name\x20schemes,\x20such\x20as\x20`users/*/operations`.\ + \x20To\n\x20override\x20the\x20binding,\x20API\x20services\x20can\x20add\ + \x20a\x20binding\x20such\x20as\n\x20`\"/v1/{name=users/*}/operations\"`\ + \x20to\x20their\x20service\x20configuration.\n\x20For\x20backwards\x20co\ + mpatibility,\x20the\x20default\x20name\x20includes\x20the\x20operations\ + \n\x20collection\x20id,\x20however\x20overriding\x20users\x20must\x20ens\ + ure\x20the\x20name\x20binding\n\x20is\x20the\x20parent\x20resource,\x20w\ + ithout\x20the\x20operations\x20collection\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@5K\n\r\n\x05\x06\0\x02\0\x04\x12\x04A\x04\ + C\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\x20long-running\x20operation.\x20\x20Clie\ + nts\x20can\x20use\x20this\n\x20method\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\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\x20th\ - at\x20the\x20client\x20is\n\x20no\x20longer\x20interested\x20in\x20the\ - \x20operation\x20result.\x20It\x20does\x20not\x20cancel\x20the\n\x20oper\ - ation.\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\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\x03W7L\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\x20asynchronous\x20cancellation\ - \x20on\x20a\x20long-running\x20operation.\x20\x20The\x20server\n\x20make\ - s\x20a\x20best\x20effort\x20to\x20cancel\x20the\x20operation,\x20but\x20\ - success\x20is\x20not\n\x20guaranteed.\x20\x20If\x20the\x20server\x20does\ - n't\x20support\x20this\x20method,\x20it\x20returns\n\x20`google.rpc.Code\ - .UNIMPLEMENTED`.\x20\x20Clients\x20can\x20use\n\x20[Operations.GetOperat\ - ion][google.longrunning.Operations.GetOperation]\x20or\n\x20other\x20met\ - hods\x20to\x20check\x20whether\x20the\x20cancellation\x20succeeded\x20or\ - \x20whether\x20the\n\x20operation\x20completed\x20despite\x20cancellatio\ - n.\x20On\x20successful\x20cancellation,\n\x20the\x20operation\x20is\x20n\ - ot\x20deleted;\x20instead,\x20it\x20becomes\x20an\x20operation\x20with\n\ - \x20an\x20[Operation.error][google.longrunning.Operation.error]\x20value\ - \x20with\x20a\x20[google.rpc.Status.code][google.rpc.Status.code]\x20of\ - \x201,\n\x20corresponding\x20to\x20`Code.CANCELLED`.\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\x03h7L\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\x20\ - a\x20specified\x20timeout,\x20returning\x20the\x20latest\x20state.\x20\ - \x20If\x20the\x20operation\x20is\n\x20already\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\x20timeout\x20is\x20used.\x20\x20If\ + \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\x20op\ + eration.\x20This\x20method\x20indicates\x20that\x20the\x20client\x20is\n\ + \x20no\x20longer\x20interested\x20in\x20the\x20operation\x20result.\x20I\ + t\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\x20long-running\x20operation.\x20\x20The\x20\ + server\n\x20makes\x20a\x20best\x20effort\x20to\x20cancel\x20the\x20opera\ + tion,\x20but\x20success\x20is\x20not\n\x20guaranteed.\x20\x20If\x20the\ + \x20server\x20doesn't\x20support\x20this\x20method,\x20it\x20returns\n\ + \x20`google.rpc.Code.UNIMPLEMENTED`.\x20\x20Clients\x20can\x20use\n\x20[\ + Operations.GetOperation][google.longrunning.Operations.GetOperation]\x20\ + or\n\x20other\x20methods\x20to\x20check\x20whether\x20the\x20cancellatio\ + n\x20succeeded\x20or\x20whether\x20the\n\x20operation\x20completed\x20de\ + spite\x20cancellation.\x20On\x20successful\x20cancellation,\n\x20the\x20\ + operation\x20is\x20not\x20deleted;\x20instead,\x20it\x20becomes\x20an\ + \x20operation\x20with\n\x20an\x20[Operation.error][google.longrunning.Op\ + eration.error]\x20value\x20with\x20a\x20[google.rpc.Status.code][google.\ + rpc.Status.code]\x20of\x201,\n\x20corresponding\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\x20for\x20the\x20specified\x20long-runnin\ + g\x20operation\x20until\x20it\x20is\x20done\x20or\x20reaches\n\x20at\x20\ + most\x20a\x20specified\x20timeout,\x20returning\x20the\x20latest\x20stat\ + e.\x20\x20If\x20the\x20operation\n\x20is\x20already\x20done,\x20the\x20l\ + atest\x20state\x20is\x20immediately\x20returned.\x20\x20If\x20the\x20tim\ + eout\n\x20specified\x20is\x20greater\x20than\x20the\x20default\x20HTTP/R\ + PC\x20timeout,\x20the\x20HTTP/RPC\n\x20timeout\x20is\x20used.\x20\x20If\ \x20the\x20server\x20does\x20not\x20support\x20this\x20method,\x20it\x20\ returns\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\x20before\x20the\x20specified\x20\ timeout\x20(including\x20immediately),\x20meaning\x20even\x20an\n\x20imm\ ediate\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\x20resourc\ - e\x20represents\x20a\x20long-running\x20operation\x20that\x20is\x20the\ + \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\x20operation\x20that\x20is\x20the\ \x20result\x20of\x20a\n\x20network\x20API\x20call.\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\x20that\n\x20originally\ - \x20returns\x20it.\x20If\x20you\x20use\x20the\x20default\x20HTTP\x20mapp\ - ing,\x20the\n\x20`name`\x20should\x20be\x20a\x20resource\x20name\x20endi\ - ng\x20with\x20`operations/{unique_id}`.\n\n\x0e\n\x05\x04\0\x02\0\x04\ - \x12\x05\x83\x01\x02\x7f\x13\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\x20Service-specific\x20metadata\x20associated\ - \x20with\x20the\x20operation.\x20\x20It\x20typically\n\x20contains\x20pr\ - ogress\x20information\x20and\x20common\x20metadata\x20such\x20as\x20crea\ - te\x20time.\n\x20Some\x20services\x20might\x20not\x20provide\x20such\x20\ - metadata.\x20\x20Any\x20method\x20that\x20returns\x20a\n\x20long-running\ - \x20operation\x20should\x20document\x20the\x20metadata\x20type,\x20if\ - \x20any.\n\n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\x89\x01\x02\x83\x01\x12\ - \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\x20value\x20is\x20`false`,\x20it\x20means\x20the\x20op\ - eration\x20is\x20still\x20in\x20progress.\n\x20If\x20`true`,\x20the\x20o\ - peration\x20is\x20completed,\x20and\x20either\x20`error`\x20or\x20`respo\ - nse`\x20is\n\x20available.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\x8e\ - \x01\x02\x89\x01#\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\x20be\x20either\x20an\x20`error`\x20or\x20a\x20valid\x20`respons\ - e`.\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`\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\x20operatio\ - n\x20in\x20case\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\x20response\x20of\x20the\x20operation\x20in\x20case\x20of\x20\ - success.\x20\x20If\x20the\x20original\n\x20method\x20returns\x20no\x20da\ - ta\x20on\x20success,\x20such\x20as\x20`Delete`,\x20the\x20response\x20is\ - \n\x20`google.protobuf.Empty`.\x20\x20If\x20the\x20original\x20method\ - \x20is\x20standard\n\x20`Get`/`Create`/`Update`,\x20the\x20response\x20s\ - hould\x20be\x20the\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\x20ex\ - ample,\x20if\x20the\x20original\x20method\x20name\n\x20is\x20`TakeSnapsh\ - ot()`,\x20the\x20inferred\x20response\x20type\x20is\n\x20`TakeSnapshotRe\ - sponse`.\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\x20request\x20message\x20for\x20[Operations.GetOperation][google\ - .longrunning.Operations.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%\x20\ - The\x20name\x20of\x20the\x20operation\x20resource.\n\n\x0f\n\x05\x04\x01\ - \x02\0\x04\x12\x06\xa6\x01\x02\xa4\x01\x1d\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\x0f\n\x05\x04\x02\x02\0\x04\x12\ - \x06\xac\x01\x02\xaa\x01\x1f\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\x0f\n\ - \x05\x04\x02\x02\x01\x04\x12\x06\xaf\x01\x02\xac\x01\x12\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\x20\ - standard\x20list\x20page\x20size.\n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\ - \x06\xb2\x01\x02\xaf\x01\x14\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\x20standard\x20list\x20page\ - \x20token.\n\n\x0f\n\x05\x04\x02\x02\x03\x04\x12\x06\xb5\x01\x02\xb2\x01\ - \x16\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][goo\ - gle.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$\x1a\ - H\x20A\x20list\x20of\x20operations\x20that\x20matches\x20the\x20specifie\ - d\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\x0f\n\ - \x05\x04\x03\x02\x01\x04\x12\x06\xbe\x01\x02\xbb\x01$\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.CancelOperation][google.longrunning.Op\ - erations.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\x20resource\x20to\x20be\x20cancelled.\n\n\x0f\ - \n\x05\x04\x04\x02\0\x04\x12\x06\xc4\x01\x02\xc2\x01\x20\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\x20m\ - essage\x20for\x20[Operations.DeleteOperation][google.longrunning.Operati\ - ons.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\x20o\ - f\x20the\x20operation\x20resource\x20to\x20be\x20deleted.\n\n\x0f\n\x05\ - \x04\x05\x02\0\x04\x12\x06\xca\x01\x02\xc8\x01\x20\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.Wait\ - Operation].\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\x0f\n\x05\x04\x06\x02\ - \0\x04\x12\x06\xd0\x01\x02\xce\x01\x1e\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\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xd5\x01\x02\ - \xd0\x01\x12\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\x20ty\ - pes\x20used\x20by\x20a\x20long-running\x20operation.\n\n\x20Example:\n\n\ - \x20\x20\x20rpc\x20LongRunningRecognize(LongRunningRecognizeRequest)\n\ - \x20\x20\x20\x20\x20\x20\x20returns\x20(google.longrunning.Operation)\ - \x20{\n\x20\x20\x20\x20\x20option\x20(google.longrunning.operation_info)\ - \x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20response_type:\x20\"LongRunningR\ - ecognizeResponse\"\n\x20\x20\x20\x20\x20\x20\x20metadata_type:\x20\"Long\ - RunningRecognizeMetadata\"\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.\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\x0f\n\x05\x04\x07\x02\0\ - \x04\x12\x06\xec\x01\x02\xe3\x01\x17\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\x20Required.\x20The\x20mess\ - age\x20name\x20of\x20the\x20metadata\x20type\x20for\x20this\x20long-runn\ - ing\n\x20operation.\n\n\x20If\x20the\x20response\x20is\x20in\x20a\x20dif\ - ferent\x20package\x20from\x20the\x20rpc,\x20a\x20fully-qualified\n\x20me\ - ssage\x20name\x20must\x20be\x20used\x20(e.g.\x20`google.protobuf.Struct`\ - ).\n\n\x20Note:\x20Altering\x20this\x20value\x20constitutes\x20a\x20brea\ - king\x20change.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xf5\x01\x02\ - \xec\x01\x1b\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\x06proto3\ + \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\x20have\x20the\x20format\x20of\x20`operations/som\ + e/unique/name`.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04}\x02y\x13\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\x20m\ + etadata\x20associated\x20with\x20the\x20operation.\x20\x20It\x20typicall\ + y\n\x20contains\x20progress\x20information\x20and\x20common\x20metadata\ + \x20such\x20as\x20create\x20time.\n\x20Some\x20services\x20might\x20not\ + \x20provide\x20such\x20metadata.\x20\x20Any\x20method\x20that\x20returns\ + \x20a\n\x20long-running\x20operation\x20should\x20document\x20the\x20met\ + adata\x20type,\x20if\x20any.\n\n\x0e\n\x05\x04\0\x02\x01\x04\x12\x05\x83\ + \x01\x02}\x12\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\x20me\ + ans\x20the\x20operation\x20is\x20still\x20in\x20progress.\n\x20If\x20`tr\ + ue`,\x20the\x20operation\x20is\x20completed,\x20and\x20either\x20`error`\ + \x20or\x20`response`\x20is\n\x20available.\n\n\x0f\n\x05\x04\0\x02\x02\ + \x04\x12\x06\x88\x01\x02\x83\x01#\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`\x20or\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\x20failure\x20or\x20cance\ + llation.\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\x20metho\ + d\x20returns\x20no\x20data\x20on\x20success,\x20such\x20as\x20`Delete`,\ + \x20the\x20response\x20is\n\x20`google.protobuf.Empty`.\x20\x20If\x20the\ + \x20original\x20method\x20is\x20standard\n\x20`Get`/`Create`/`Update`,\ + \x20the\x20response\x20should\x20be\x20the\x20resource.\x20\x20For\x20ot\ + her\n\x20methods,\x20the\x20response\x20should\x20have\x20the\x20type\ + \x20`XxxResponse`,\x20where\x20`Xxx`\n\x20is\x20the\x20original\x20metho\ + d\x20name.\x20\x20For\x20example,\x20if\x20the\x20original\x20method\x20\ + name\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\x20message\x20for\x20[Oper\ + ations.GetOperation][google.longrunning.Operations.GetOperation].\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\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xa0\x01\x02\x9e\ + \x01\x1d\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.ListOperations][goog\ + le.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\x20parent\x20resource.\n\n\ + \x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xa6\x01\x02\xa4\x01\x1f\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\x20stan\ + dard\x20list\x20filter.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xa9\ + \x01\x02\xa6\x01\x12\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\x20standard\x20list\x20page\x20size.\ + \n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xac\x01\x02\xa9\x01\x14\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\x0f\n\x05\x04\x02\ + \x02\x03\x04\x12\x06\xaf\x01\x02\xac\x01\x16\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\x20me\ + ssage\x20for\x20[Operations.ListOperations][google.longrunning.Operation\ + s.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\x20ope\ + rations\x20that\x20matches\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\x20stan\ + dard\x20List\x20next-page\x20token.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\ + \x12\x06\xb8\x01\x02\xb5\x01$\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.CancelOperation][google.longrunning.Operations.CancelOperatio\ + n].\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\x20opera\ + tion\x20resource\x20to\x20be\x20cancelled.\n\n\x0f\n\x05\x04\x04\x02\0\ + \x04\x12\x06\xbe\x01\x02\xbc\x01\x20\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[Oper\ + ations.DeleteOperation][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\ + \x20resource\x20to\x20be\x20deleted.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\ + \x06\xc4\x01\x02\xc2\x01\x20\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[Operations.W\ + aitOperation][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\x20resour\ + ce\x20to\x20wait\x20on.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xca\x01\ + \x02\xc8\x01\x1e\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\x20to\x20wait\x20before\ + \x20timing\x20out.\x20If\x20left\x20blank,\x20the\x20wait\n\x20will\x20b\ + e\x20at\x20most\x20the\x20time\x20permitted\x20by\x20the\x20underlying\ + \x20HTTP/RPC\x20protocol.\n\x20If\x20RPC\x20context\x20deadline\x20is\ + \x20also\x20specified,\x20the\x20shorter\x20one\x20will\x20be\x20used.\n\ + \n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xcf\x01\x02\xca\x01\x12\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\x20message\x20types\x20used\x20b\ + y\x20a\x20long-running\x20operation.\n\n\x20Example:\n\n\x20\x20\x20rpc\ + \x20LongRunningRecognize(LongRunningRecognizeRequest)\n\x20\x20\x20\x20\ + \x20\x20\x20returns\x20(google.longrunning.Operation)\x20{\n\x20\x20\x20\ + \x20\x20option\x20(google.longrunning.operation_info)\x20=\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20response_type:\x20\"LongRunningRecognizeResponse\ + \"\n\x20\x20\x20\x20\x20\x20\x20metadata_type:\x20\"LongRunningRecognize\ + Metadata\"\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\x20message\x20name\x20of\ + \x20the\x20primary\x20return\x20type\x20for\x20this\n\x20long-running\ + \x20operation.\n\x20This\x20type\x20will\x20be\x20used\x20to\x20deserial\ + ize\x20the\x20LRO's\x20response.\n\n\x20If\x20the\x20response\x20is\x20i\ + n\x20a\x20different\x20package\x20from\x20the\x20rpc,\x20a\x20fully-qual\ + ified\n\x20message\x20name\x20must\x20be\x20used\x20(e.g.\x20`google.pro\ + tobuf.Struct`).\n\n\x20Note:\x20Altering\x20this\x20value\x20constitutes\ + \x20a\x20breaking\x20change.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xe6\ + \x01\x02\xdd\x01\x17\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\x20o\ + f\x20the\x20metadata\x20type\x20for\x20this\x20long-running\n\x20operati\ + on.\n\n\x20If\x20the\x20response\x20is\x20in\x20a\x20different\x20packag\ + e\x20from\x20the\x20rpc,\x20a\x20fully-qualified\n\x20message\x20name\ + \x20must\x20be\x20used\x20(e.g.\x20`google.protobuf.Struct`).\n\n\x20Not\ + e:\x20Altering\x20this\x20value\x20constitutes\x20a\x20breaking\x20chang\ + e.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xef\x01\x02\xe6\x01\x1b\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations_grpc.rs index cbb1afcaa9..f20fb694a8 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations_grpc.rs @@ -148,11 +148,21 @@ impl OperationsClient { } pub trait Operations { - fn list_operations(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::ListOperationsRequest, sink: ::grpcio::UnarySink); - fn get_operation(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::GetOperationRequest, sink: ::grpcio::UnarySink); - fn delete_operation(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::DeleteOperationRequest, sink: ::grpcio::UnarySink); - fn cancel_operation(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::CancelOperationRequest, sink: ::grpcio::UnarySink); - fn wait_operation(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::WaitOperationRequest, sink: ::grpcio::UnarySink); + fn list_operations(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::ListOperationsRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn get_operation(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::GetOperationRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn delete_operation(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::DeleteOperationRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn cancel_operation(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::CancelOperationRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn wait_operation(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::WaitOperationRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } } pub fn create_operations(s: S) -> ::grpcio::Service { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub.rs deleted file mode 100644 index 0dce354355..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub.rs +++ /dev/null @@ -1,12023 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/pubsub.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct MessageStoragePolicy { - // message fields - pub allowed_persistence_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 MessageStoragePolicy { - fn default() -> &'a MessageStoragePolicy { - ::default_instance() - } -} - -impl MessageStoragePolicy { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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_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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.allowed_persistence_regions { - 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() -> 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 default_instance() -> &'static MessageStoragePolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MessageStoragePolicy::new) - } -} - -impl ::protobuf::Clear for MessageStoragePolicy { - fn clear(&mut self) { - self.allowed_persistence_regions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SchemaSettings { - // message fields - pub schema: ::std::string::String, - pub encoding: super::schema::Encoding, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SchemaSettings { - fn default() -> &'a SchemaSettings { - ::default_instance() - } -} - -impl SchemaSettings { - pub fn new() -> SchemaSettings { - ::std::default::Default::default() - } - - // string schema = 1; - - - pub fn get_schema(&self) -> &str { - &self.schema - } - pub fn clear_schema(&mut self) { - self.schema.clear(); - } - - // Param is passed by value, moved - pub fn set_schema(&mut self, v: ::std::string::String) { - self.schema = 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 ::std::string::String { - &mut self.schema - } - - // Take field - pub fn take_schema(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.schema, ::std::string::String::new()) - } - - // .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; - } - - // Param is passed by value, moved - pub fn set_encoding(&mut self, v: super::schema::Encoding) { - self.encoding = v; - } -} - -impl ::protobuf::Message for SchemaSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encoding, 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.schema.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.schema); - } - if self.encoding != super::schema::Encoding::ENCODING_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.encoding); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - 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)?; - } - if self.encoding != super::schema::Encoding::ENCODING_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.encoding))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SchemaSettings { - SchemaSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SchemaSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SchemaSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SchemaSettings::new) - } -} - -impl ::protobuf::Clear for SchemaSettings { - fn clear(&mut self) { - self.schema.clear(); - self.encoding = super::schema::Encoding::ENCODING_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SchemaSettings { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Topic { - // 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, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Topic { - fn default() -> &'a Topic { - ::default_instance() - } -} - -impl Topic { - pub fn new() -> 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()) - } - - // 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(); - } - - // 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.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(); - } - - pub fn has_message_storage_policy(&self) -> bool { - self.message_storage_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_message_storage_policy(&mut self, v: MessageStoragePolicy) { - self.message_storage_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_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() - } - - // Take field - pub fn take_message_storage_policy(&mut self) -> MessageStoragePolicy { - self.message_storage_policy.take().unwrap_or_else(|| MessageStoragePolicy::new()) - } - - // string kms_key_name = 5; - - - 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()) - } - - // .google.pubsub.v1.SchemaSettings schema_settings = 6; - - - 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(); - } - - pub fn has_schema_settings(&self) -> bool { - self.schema_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_schema_settings(&mut self, v: SchemaSettings) { - self.schema_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_schema_settings(&mut self) -> &mut SchemaSettings { - if self.schema_settings.is_none() { - self.schema_settings.set_default(); - } - self.schema_settings.as_mut().unwrap() - } - - // Take field - pub fn take_schema_settings(&mut self) -> SchemaSettings { - self.schema_settings.take().unwrap_or_else(|| SchemaSettings::new()) - } - - // 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; - } - - // Param is passed by value, moved - pub fn set_satisfies_pzs(&mut self, v: bool) { - self.satisfies_pzs = v; - } -} - -impl ::protobuf::Message for Topic { - 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; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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::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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 }, - )); - 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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Topic", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Topic { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Topic::new) - } -} - -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.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PubsubMessage { - // 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, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PubsubMessage { - fn default() -> &'a PubsubMessage { - ::default_instance() - } -} - -impl PubsubMessage { - pub fn new() -> 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.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(); - } - - // 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()) - } - - // .google.protobuf.Timestamp publish_time = 4; - - - 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(); - } - - pub fn has_publish_time(&self) -> bool { - self.publish_time.is_some() - } - - // 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()) - } -} - -impl ::protobuf::Message for PubsubMessage { - 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)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.publish_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ordering_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.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 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.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 - } - - 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)?; - } - 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.ordering_key.is_empty() { - os.write_string(5, &self.ordering_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() -> 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 }, - )); - 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 default_instance() -> &'static PubsubMessage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PubsubMessage::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetTopicRequest { - // 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 GetTopicRequest { - fn default() -> &'a GetTopicRequest { - ::default_instance() - } -} - -impl GetTopicRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static GetTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetTopicRequest::new) - } -} - -impl ::protobuf::Clear for GetTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateTopicRequest { - // message fields - pub topic: ::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 UpdateTopicRequest { - fn default() -> &'a UpdateTopicRequest { - ::default_instance() - } -} - -impl UpdateTopicRequest { - pub fn new() -> UpdateTopicRequest { - ::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()) - } -} - -impl ::protobuf::Message for UpdateTopicRequest { - 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)?; - }, - 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.topic.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.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)?; - } - 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() -> UpdateTopicRequest { - UpdateTopicRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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() - ) - }) - } - - fn default_instance() -> &'static UpdateTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateTopicRequest::new) - } -} - -impl ::protobuf::Clear for UpdateTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateTopicRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateTopicRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[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<'a> ::std::default::Default for &'a PublishRequest { - fn default() -> &'a PublishRequest { - ::default_instance() - } -} - -impl PublishRequest { - pub fn new() -> 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.v1.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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.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; - 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); - 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)?; - } - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static PublishRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PublishRequest::new) - } -} - -impl ::protobuf::Clear for PublishRequest { - fn clear(&mut self) { - self.topic.clear(); - self.messages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PublishResponse { - // message fields - pub message_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 PublishResponse { - fn default() -> &'a PublishResponse { - ::default_instance() - } -} - -impl PublishResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.message_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() -> 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 default_instance() -> &'static PublishResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PublishResponse::new) - } -} - -impl ::protobuf::Clear for PublishResponse { - fn clear(&mut self) { - self.message_ids.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicsRequest { - // 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 ListTopicsRequest { - fn default() -> &'a ListTopicsRequest { - ::default_instance() - } -} - -impl ListTopicsRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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() -> 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 default_instance() -> &'static ListTopicsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicsRequest::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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicsResponse { - // message fields - pub topics: ::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 ListTopicsResponse { - fn default() -> &'a ListTopicsResponse { - ::default_instance() - } -} - -impl ListTopicsResponse { - pub fn new() -> ListTopicsResponse { - ::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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.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.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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 default_instance() -> &'static ListTopicsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicsResponse::new) - } -} - -impl ::protobuf::Clear for ListTopicsResponse { - fn clear(&mut self) { - self.topics.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSubscriptionsRequest { - // 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, -} - -impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsRequest { - fn default() -> &'a ListTopicSubscriptionsRequest { - ::default_instance() - } -} - -impl ListTopicSubscriptionsRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - 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() -> 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 default_instance() -> &'static ListTopicSubscriptionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSubscriptionsRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSubscriptionsResponse { - // message fields - pub subscriptions: ::protobuf::RepeatedField<::std::string::String>, - 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 ListTopicSubscriptionsResponse { - fn default() -> &'a ListTopicSubscriptionsResponse { - ::default_instance() - } -} - -impl ListTopicSubscriptionsResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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 { - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static ListTopicSubscriptionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSubscriptionsResponse::new) - } -} - -impl ::protobuf::Clear for ListTopicSubscriptionsResponse { - fn clear(&mut self) { - self.subscriptions.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[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, -} - -impl<'a> ::std::default::Default for &'a ListTopicSnapshotsRequest { - fn default() -> &'a ListTopicSnapshotsRequest { - ::default_instance() - } -} - -impl ListTopicSnapshotsRequest { - pub fn new() -> ListTopicSnapshotsRequest { - ::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()) - } -} - -impl ::protobuf::Message for ListTopicSnapshotsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - 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.topic.is_empty() { - os.write_string(1, &self.topic)?; - } - 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() -> 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: &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 default_instance() -> &'static ListTopicSnapshotsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSnapshotsRequest::new) - } -} - -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 ::std::fmt::Debug for ListTopicSnapshotsRequest { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSnapshotsResponse { - // message fields - pub snapshots: ::protobuf::RepeatedField<::std::string::String>, - 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 ListTopicSnapshotsResponse { - fn default() -> &'a ListTopicSnapshotsResponse { - ::default_instance() - } -} - -impl ListTopicSnapshotsResponse { - pub fn new() -> ListTopicSnapshotsResponse { - ::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()) - } -} - -impl ::protobuf::Message for 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.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 { - 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 - } - - 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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>( - "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 default_instance() -> &'static ListTopicSnapshotsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSnapshotsResponse::new) - } -} - -impl ::protobuf::Clear for ListTopicSnapshotsResponse { - fn clear(&mut self) { - self.snapshots.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListTopicSnapshotsResponse { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteTopicRequest { - // 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 DeleteTopicRequest { - fn default() -> &'a DeleteTopicRequest { - ::default_instance() - } -} - -impl DeleteTopicRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static DeleteTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteTopicRequest::new) - } -} - -impl ::protobuf::Clear for DeleteTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DetachSubscriptionRequest { - // 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 DetachSubscriptionRequest { - fn default() -> &'a DetachSubscriptionRequest { - ::default_instance() - } -} - -impl DetachSubscriptionRequest { - pub fn new() -> DetachSubscriptionRequest { - ::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 DetachSubscriptionRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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() -> DetachSubscriptionRequest { - DetachSubscriptionRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static DetachSubscriptionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DetachSubscriptionRequest::new) - } -} - -impl ::protobuf::Clear for DetachSubscriptionRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DetachSubscriptionRequest { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DetachSubscriptionResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DetachSubscriptionResponse { - fn default() -> &'a DetachSubscriptionResponse { - ::default_instance() - } -} - -impl DetachSubscriptionResponse { - pub fn new() -> DetachSubscriptionResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for DetachSubscriptionResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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() -> DetachSubscriptionResponse { - DetachSubscriptionResponse::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 default_instance() -> &'static DetachSubscriptionResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DetachSubscriptionResponse::new) - } -} - -impl ::protobuf::Clear for DetachSubscriptionResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DetachSubscriptionResponse { - 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Subscription { - // message fields - pub name: ::std::string::String, - pub topic: ::std::string::String, - pub push_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, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Subscription { - fn default() -> &'a Subscription { - ::default_instance() - } -} - -impl Subscription { - pub fn new() -> 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.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(); - } - - 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; - } - - // 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; - } - - // .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(); - } - - pub fn has_message_retention_duration(&self) -> bool { - self.message_retention_duration.is_some() - } - - // 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); - } - - // 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() - } - - // 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()) - } - - // 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(); - } - - // 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()) - } - - // 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; - } -} - -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.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; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)?; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_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 }, - )); - ::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.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.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(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, - // 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), -} - -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() - } - } -} - -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; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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, - )); - ::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.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 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StreamingPullResponse { - // 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 StreamingPullResponse { - fn default() -> &'a StreamingPullResponse { - ::default_instance() - } -} - -impl StreamingPullResponse { - pub fn new() -> StreamingPullResponse { - ::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 StreamingPullResponse { - 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() -> StreamingPullResponse { - StreamingPullResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamingPullResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StreamingPullResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamingPullResponse::new) - } -} - -impl ::protobuf::Clear for StreamingPullResponse { - fn clear(&mut self) { - self.received_messages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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 { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateSnapshotRequest { - // message fields - pub name: ::std::string::String, - pub subscription: ::std::string::String, - 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 CreateSnapshotRequest { - fn default() -> &'a CreateSnapshotRequest { - ::default_instance() - } -} - -impl CreateSnapshotRequest { - pub fn new() -> CreateSnapshotRequest { - ::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 subscription = 2; - - - 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 .google.pubsub.v1.CreateSnapshotRequest.LabelsEntry labels = 3; - - - 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 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)?; - }, - 3 => { - ::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; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - 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); - 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.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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static CreateSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - 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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateSnapshotRequest { - // message fields - pub snapshot: ::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 UpdateSnapshotRequest { - fn default() -> &'a UpdateSnapshotRequest { - ::default_instance() - } -} - -impl UpdateSnapshotRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.snapshot.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.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)?; - } - 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() -> 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 default_instance() -> &'static UpdateSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateSnapshotRequest::new) - } -} - -impl ::protobuf::Clear for UpdateSnapshotRequest { - fn clear(&mut self) { - self.snapshot.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Snapshot { - // message fields - pub name: ::std::string::String, - pub topic: ::std::string::String, - pub expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - 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 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()) - } - - // 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 4 => { - ::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; - 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.expire_time.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>(4, &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<()> { - 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)?; - } - ::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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_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 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.topic.clear(); - self.expire_time.clear(); - self.labels.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(PartialEq,Clone,Default)] -pub struct GetSnapshotRequest { - // message fields - pub snapshot: ::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 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()) - } -} - -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.snapshot)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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 - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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>( - "snapshot", - |m: &GetSnapshotRequest| { &m.snapshot }, - |m: &mut GetSnapshotRequest| { &mut m.snapshot }, - )); - ::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.snapshot.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 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 ListSnapshotsRequest { - fn default() -> &'a ListSnapshotsRequest { - ::default_instance() - } -} - -impl ListSnapshotsRequest { - pub fn new() -> 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()) - } -} - -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.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() -> 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 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.project.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.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()) - } -} - -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 snapshot: ::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 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()) - } -} - -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.snapshot)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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 - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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>( - "snapshot", - |m: &DeleteSnapshotRequest| { &m.snapshot }, - |m: &mut DeleteSnapshotRequest| { &mut m.snapshot }, - )); - ::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.snapshot.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 SeekRequest { - // message fields - pub subscription: ::std::string::String, - // message oneof groups - pub target: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SeekRequest { - fn default() -> &'a SeekRequest { - ::default_instance() - } -} - -#[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 { - match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::time(ref v)) => v, - _ => <::protobuf::well_known_types::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, - _ => 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)) - } - - // 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 { - } else { - self.target = ::std::option::Option::Some(SeekRequest_oneof_target::time(::protobuf::well_known_types::Timestamp::new())); - } - match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::time(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - if self.has_time() { - match self.target.take() { - ::std::option::Option::Some(SeekRequest_oneof_target::time(v)) => v, - _ => panic!(), - } - } else { - ::protobuf::well_known_types::Timestamp::new() - } - } - - // string snapshot = 3; - - - pub fn get_snapshot(&self) -> &str { - match self.target { - ::std::option::Option::Some(SeekRequest_oneof_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, - _ => 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)) - } - - // 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 { - } else { - self.target = ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(::std::string::String::new())); - } - match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - 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, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for 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)?; - }, - 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()?)); - }, - 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()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 ::std::option::Option::Some(ref v) = self.target { - match v { - &SeekRequest_oneof_target::time(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &SeekRequest_oneof_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 - } - - 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 ::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)?; - }, - &SeekRequest_oneof_target::snapshot(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() -> 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 default_instance() -> &'static SeekRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SeekRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SeekResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SeekResponse { - fn default() -> &'a SeekResponse { - ::default_instance() - } -} - -impl SeekResponse { - pub fn new() -> SeekResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for 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())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static SeekResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SeekResponse::new) - } -} - -impl ::protobuf::Clear for SeekResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -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\ - 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\ - \"\x86\x01\n\x0eSchemaSettings\x12<\n\x06schema\x18\x01\x20\x01(\tR\x06s\ - chemaB$\xe0A\x02\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\x126\n\x08en\ - coding\x18\x02\x20\x01(\x0e2\x1a.google.pubsub.v1.EncodingR\x08encoding\ - \"\xde\x03\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\ - .LabelsEntryR\x06labels\x12\\\n\x16message_storage_policy\x18\x03\x20\ - \x01(\x0b2&.google.pubsub.v1.MessageStoragePolicyR\x14messageStoragePoli\ - cy\x12\x20\n\x0ckms_key_name\x18\x05\x20\x01(\tR\nkmsKeyName\x12I\n\x0fs\ - chema_settings\x18\x06\x20\x01(\x0b2\x20.google.pubsub.v1.SchemaSettings\ - R\x0eschemaSettings\x12#\n\rsatisfies_pzs\x18\x07\x20\x01(\x08R\x0csatis\ - fiesPzs\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03ke\ - y\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01:T\xeaAQ\n\ - \x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\ - \x12\x0f_deleted-topic_\"\xb4\x02\n\rPubsubMessage\x12\x12\n\x04data\x18\ - \x01\x20\x01(\x0cR\x04data\x12O\n\nattributes\x18\x02\x20\x03(\x0b2/.goo\ - gle.pubsub.v1.PubsubMessage.AttributesEntryR\nattributes\x12\x1d\n\nmess\ - age_id\x18\x03\x20\x01(\tR\tmessageId\x12=\n\x0cpublish_time\x18\x04\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\x0bpublishTime\x12!\n\x0corder\ - ing_key\x18\x05\x20\x01(\tR\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\"L\n\x0fGetTopicRequest\x129\n\x05topic\x18\ - \x01\x20\x01(\tR\x05topicB#\xfaA\x1d\n\x1bpubsub.googleapis.com/Topic\ - \xe0A\x02\"\x8a\x01\n\x12UpdateTopicRequest\x122\n\x05topic\x18\x01\x20\ - \x01(\x0b2\x17.google.pubsub.v1.TopicR\x05topicB\x03\xe0A\x02\x12@\n\x0b\ - update_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdate\ - MaskB\x03\xe0A\x02\"\x8d\x01\n\x0ePublishRequest\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.Pubsu\ - bMessageR\x08messagesB\x03\xe0A\x02\"2\n\x0fPublishResponse\x12\x1f\n\ - \x0bmessage_ids\x18\x01\x20\x03(\tR\nmessageIds\"\x9e\x01\n\x11ListTopic\ - sRequest\x12M\n\x07project\x18\x01\x20\x01(\tR\x07projectB3\xe0A\x02\xfa\ - A-\n+cloudresourcemanager.googleapis.com/Project\x12\x1b\n\tpage_size\ - \x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_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_tok\ - en\x18\x02\x20\x01(\tR\rnextPageToken\"\x96\x01\n\x1dListTopicSubscripti\ - onsRequest\x129\n\x05topic\x18\x01\x20\x01(\tR\x05topicB#\xe0A\x02\xfaA\ - \x1d\n\x1bpubsub.googleapis.com/Topic\x12\x1b\n\tpage_size\x18\x02\x20\ - \x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageTo\ - ken\"\x97\x01\n\x1eListTopicSubscriptionsResponse\x12M\n\rsubscriptions\ - \x18\x01\x20\x03(\tR\rsubscriptionsB'\xfaA$\n\"pubsub.googleapis.com/Sub\ - scription\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\ - \x92\x01\n\x19ListTopicSnapshotsRequest\x129\n\x05topic\x18\x01\x20\x01(\ - \tR\x05topicB#\xe0A\x02\xfaA\x1d\n\x1bpubsub.googleapis.com/Topic\x12\ - \x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_toke\ - n\x18\x03\x20\x01(\tR\tpageToken\"b\n\x1aListTopicSnapshotsResponse\x12\ - \x1c\n\tsnapshots\x18\x01\x20\x03(\tR\tsnapshots\x12&\n\x0fnext_page_tok\ - en\x18\x02\x20\x01(\tR\rnextPageToken\"O\n\x12DeleteTopicRequest\x129\n\ - \x05topic\x18\x01\x20\x01(\tR\x05topicB#\xe0A\x02\xfaA\x1d\n\x1bpubsub.g\ - oogleapis.com/Topic\"k\n\x19DetachSubscriptionRequest\x12N\n\x0csubscrip\ - tion\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.googleapis.co\ - m/Subscription\xe0A\x02\"\x1c\n\x1aDetachSubscriptionResponse\"\x8a\x07\ - \n\x0cSubscription\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\ - \xe0A\x02\x129\n\x05topic\x18\x02\x20\x01(\tR\x05topicB#\xe0A\x02\xfaA\ - \x1d\n\x1bpubsub.googleapis.com/Topic\x12=\n\x0bpush_config\x18\x04\x20\ - \x01(\x0b2\x1c.google.pubsub.v1.PushConfigR\npushConfig\x120\n\x14ack_de\ - adline_seconds\x18\x05\x20\x01(\x05R\x12ackDeadlineSeconds\x122\n\x15ret\ - ain_acked_messages\x18\x07\x20\x01(\x08R\x13retainAckedMessages\x12W\n\ - \x1amessage_retention_duration\x18\x08\x20\x01(\x0b2\x19.google.protobuf\ - .DurationR\x18messageRetentionDuration\x12B\n\x06labels\x18\t\x20\x03(\ - \x0b2*.google.pubsub.v1.Subscription.LabelsEntryR\x06labels\x126\n\x17en\ - able_message_ordering\x18\n\x20\x01(\x08R\x15enableMessageOrdering\x12O\ - \n\x11expiration_policy\x18\x0b\x20\x01(\x0b2\".google.pubsub.v1.Expirat\ - ionPolicyR\x10expirationPolicy\x12\x16\n\x06filter\x18\x0c\x20\x01(\tR\ - \x06filter\x12P\n\x12dead_letter_policy\x18\r\x20\x01(\x0b2\".google.pub\ - sub.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\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\x01:X\xeaAU\n\"pubsub.googleapis.com/Sub\ - scription\x12/projects/{project}/subscriptions/{subscription}\"\x95\x01\ - \n\x0bRetryPolicy\x12B\n\x0fminimum_backoff\x18\x01\x20\x01(\x0b2\x19.go\ - ogle.protobuf.DurationR\x0eminimumBackoff\x12B\n\x0fmaximum_backoff\x18\ - \x02\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0emaximumBackoff\"r\n\ - \x10DeadLetterPolicy\x12*\n\x11dead_letter_topic\x18\x01\x20\x01(\tR\x0f\ - deadLetterTopic\x122\n\x15max_delivery_attempts\x18\x02\x20\x01(\x05R\ - \x13maxDeliveryAttempts\"?\n\x10ExpirationPolicy\x12+\n\x03ttl\x18\x01\ - \x20\x01(\x0b2\x19.google.protobuf.DurationR\x03ttl\"\xfd\x02\n\nPushCon\ - fig\x12#\n\rpush_endpoint\x18\x01\x20\x01(\tR\x0cpushEndpoint\x12L\n\nat\ - tributes\x18\x02\x20\x03(\x0b2,.google.pubsub.v1.PushConfig.AttributesEn\ - tryR\nattributes\x12G\n\noidc_token\x18\x03\x20\x01(\x0b2&.google.pubsub\ - .v1.PushConfig.OidcTokenH\0R\toidcToken\x1a[\n\tOidcToken\x122\n\x15serv\ - ice_account_email\x18\x01\x20\x01(\tR\x13serviceAccountEmail\x12\x1a\n\ - \x08audience\x18\x02\x20\x01(\tR\x08audience\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\x06ack_id\x18\x01\x20\x01(\tR\x05ack\ - Id\x129\n\x07message\x18\x02\x20\x01(\x0b2\x1f.google.pubsub.v1.PubsubMe\ - ssageR\x07message\x12)\n\x10delivery_attempt\x18\x03\x20\x01(\x05R\x0fde\ - liveryAttempt\"h\n\x16GetSubscriptionRequest\x12N\n\x0csubscription\x18\ - \x01\x20\x01(\tR\x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googleapis.c\ - om/Subscription\"\xa6\x01\n\x19UpdateSubscriptionRequest\x12G\n\x0csubsc\ - ription\x18\x01\x20\x01(\x0b2\x1e.google.pubsub.v1.SubscriptionR\x0csubs\ - criptionB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.g\ - oogle.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\"\xa5\x01\n\x18ListS\ - ubscriptionsRequest\x12M\n\x07project\x18\x01\x20\x01(\tR\x07projectB3\ - \xe0A\x02\xfaA-\n+cloudresourcemanager.googleapis.com/Project\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\x19ListSubscriptionsResponse\x12\ - D\n\rsubscriptions\x18\x01\x20\x03(\x0b2\x1e.google.pubsub.v1.Subscripti\ - onR\rsubscriptions\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPa\ - geToken\"k\n\x19DeleteSubscriptionRequest\x12N\n\x0csubscription\x18\x01\ - \x20\x01(\tR\x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googleapis.com/S\ - ubscription\"\xad\x01\n\x17ModifyPushConfigRequest\x12N\n\x0csubscriptio\ - n\x18\x01\x20\x01(\tR\x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googlea\ - pis.com/Subscription\x12B\n\x0bpush_config\x18\x02\x20\x01(\x0b2\x1c.goo\ - gle.pubsub.v1.PushConfigR\npushConfigB\x03\xe0A\x02\"\xbb\x01\n\x0bPullR\ - equest\x12N\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xe0A\ - \x02\xfaA$\n\"pubsub.googleapis.com/Subscription\x124\n\x12return_immedi\ - ately\x18\x02\x20\x01(\x08R\x11returnImmediatelyB\x05\x18\x01\xe0A\x01\ - \x12&\n\x0cmax_messages\x18\x03\x20\x01(\x05R\x0bmaxMessagesB\x03\xe0A\ - \x02\"^\n\x0cPullResponse\x12N\n\x11received_messages\x18\x01\x20\x03(\ - \x0b2!.google.pubsub.v1.ReceivedMessageR\x10receivedMessages\"\xbf\x01\n\ - \x18ModifyAckDeadlineRequest\x12N\n\x0csubscription\x18\x01\x20\x01(\tR\ - \x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googleapis.com/Subscription\ - \x12\x1c\n\x07ack_ids\x18\x04\x20\x03(\tR\x06ackIdsB\x03\xe0A\x02\x125\n\ - \x14ack_deadline_seconds\x18\x03\x20\x01(\x05R\x12ackDeadlineSecondsB\ - \x03\xe0A\x02\"\x82\x01\n\x12AcknowledgeRequest\x12N\n\x0csubscription\ - \x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.googleapis.com/Su\ - bscription\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*\xe0A\x02\xfaA$\n\"pubsub.googleap\ - is.com/Subscription\x12\x17\n\x07ack_ids\x18\x02\x20\x03(\tR\x06ackIds\ - \x126\n\x17modify_deadline_seconds\x18\x03\x20\x03(\x05R\x15modifyDeadli\ - neSeconds\x125\n\x17modify_deadline_ack_ids\x18\x04\x20\x03(\tR\x14modif\ - yDeadlineAckIds\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_outstanding_bytes\ - \x18\x08\x20\x01(\x03R\x13maxOutstandingBytes\"g\n\x15StreamingPullRespo\ - nse\x12N\n\x11received_messages\x18\x01\x20\x03(\x0b2!.google.pubsub.v1.\ - ReceivedMessageR\x10receivedMessages\"\xab\x02\n\x15CreateSnapshotReques\ - t\x12:\n\x04name\x18\x01\x20\x01(\tR\x04nameB&\xe0A\x02\xfaA\x20\n\x1epu\ - bsub.googleapis.com/Snapshot\x12N\n\x0csubscription\x18\x02\x20\x01(\tR\ - \x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googleapis.com/Subscription\ - \x12K\n\x06labels\x18\x03\x20\x03(\x0b23.google.pubsub.v1.CreateSnapshot\ - Request.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\x01\"\x96\x01\n\x15UpdateSnapshotRequest\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.protobu\ - f.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\x0bexpir\ - e_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nexpireTime\ - \x12>\n\x06labels\x18\x04\x20\x03(\x0b2&.google.pubsub.v1.Snapshot.Label\ - sEntryR\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:L\ - \xeaAI\n\x1epubsub.googleapis.com/Snapshot\x12'projects/{project}/snapsh\ - ots/{snapshot}\"X\n\x12GetSnapshotRequest\x12B\n\x08snapshot\x18\x01\x20\ - \x01(\tR\x08snapshotB&\xfaA\x20\n\x1epubsub.googleapis.com/Snapshot\xe0A\ - \x02\"\xa1\x01\n\x14ListSnapshotsRequest\x12M\n\x07project\x18\x01\x20\ - \x01(\tR\x07projectB3\xfaA-\n+cloudresourcemanager.googleapis.com/Projec\ - 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\"y\n\x15ListSnapshotsR\ - esponse\x128\n\tsnapshots\x18\x01\x20\x03(\x0b2\x1a.google.pubsub.v1.Sna\ - pshotR\tsnapshots\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPag\ - eToken\"[\n\x15DeleteSnapshotRequest\x12B\n\x08snapshot\x18\x01\x20\x01(\ - \tR\x08snapshotB&\xfaA\x20\n\x1epubsub.googleapis.com/Snapshot\xe0A\x02\ - \"\xdc\x01\n\x0bSeekRequest\x12N\n\x0csubscription\x18\x01\x20\x01(\tR\ - \x0csubscriptionB*\xfaA$\n\"pubsub.googleapis.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/SnapshotB\x08\n\x06target\"\x0e\n\x0cSee\ - kResponse2\xa3\x0b\n\tPublisher\x12q\n\x0bCreateTopic\x12\x17.google.pub\ - sub.v1.Topic\x1a\x17.google.pubsub.v1.Topic\"0\x82\xd3\xe4\x93\x02#\x1a\ - \x1e/v1/{name=projects/*/topics/*}:\x01*\xdaA\x04name\x12}\n\x0bUpdateTo\ - pic\x12$.google.pubsub.v1.UpdateTopicRequest\x1a\x17.google.pubsub.v1.To\ - pic\"/\x82\xd3\xe4\x93\x02)2$/v1/{topic.name=projects/*/topics/*}:\x01*\ - \x12\x93\x01\n\x07Publish\x12\x20.google.pubsub.v1.PublishRequest\x1a!.g\ - oogle.pubsub.v1.PublishResponse\"C\xdaA\x0etopic,messages\x82\xd3\xe4\ - \x93\x02,\"'/v1/{topic=projects/*/topics/*}:publish:\x01*\x12w\n\x08GetT\ - opic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topi\ - c\"/\xdaA\x05topic\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/top\ - ics/*}\x12\x8a\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\ - \x1a$.google.pubsub.v1.ListTopicsResponse\"1\xdaA\x07project\x82\xd3\xe4\ - \x93\x02!\x12\x1f/v1/{project=projects/*}/topics\x12\xba\x01\n\x16ListTo\ - picSubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a\ - 0.google.pubsub.v1.ListTopicSubscriptionsResponse\"=\xdaA\x05topic\x82\ - \xd3\xe4\x93\x02/\x12-/v1/{topic=projects/*/topics/*}/subscriptions\x12\ - \xaa\x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshot\ - sRequest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse\"9\xdaA\x05top\ - ic\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\ - \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.DetachSubscrip\ - tionResponse\"<\x82\xd3\xe4\x93\x026\"4/v1/{subscription=projects/*/subs\ - criptions/*}:detach\x1ap\xcaA\x15pubsub.googleapis.com\xd2AUhttps://www.\ - googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsu\ - b2\x83\x15\n\nSubscriber\x12\xb4\x01\n\x12CreateSubscription\x12\x1e.goo\ - gle.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription\"^\x82\ - \xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\xdaA+n\ - ame,topic,push_config,ack_deadline_seconds\x12\xa1\x01\n\x0fGetSubscript\ - ion\x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v\ - 1.Subscription\"D\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/\ - subscriptions/*}\xdaA\x0csubscription\x12\xa0\x01\n\x12UpdateSubscriptio\ - n\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.\ - v1.Subscription\"=\x82\xd3\xe4\x93\x02722/v1/{subscription.name=projects\ - /*/subscriptions/*}:\x01*\x12\xa6\x01\n\x11ListSubscriptions\x12*.google\ - .pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.ListSubscripti\ - onsResponse\"8\xdaA\x07project\x82\xd3\xe4\x93\x02(\x12&/v1/{project=pro\ - jects/*}/subscriptions\x12\x9f\x01\n\x12DeleteSubscription\x12+.google.p\ - ubsub.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty\"D\xdaA\ - \x0csubscription\x82\xd3\xe4\x93\x02/*-/v1/{subscription=projects/*/subs\ - criptions/*}\x12\xcf\x01\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.Mo\ - difyAckDeadlineRequest\x1a\x16.google.protobuf.Empty\"v\xdaA)subscriptio\ - n,ack_ids,ack_deadline_seconds\x82\xd3\xe4\x93\x02D\"?/v1/{subscription=\ - projects/*/subscriptions/*}:modifyAckDeadline:\x01*\x12\xa8\x01\n\x0bAck\ - nowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.protobu\ - f.Empty\"[\x82\xd3\xe4\x93\x02>\"9/v1/{subscription=projects/*/subscript\ - ions/*}:acknowledge:\x01*\xdaA\x14subscription,ack_ids\x12\xb3\x01\n\x04\ - Pull\x12\x1d.google.pubsub.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullR\ - esponse\"l\xdaA,subscription,return_immediately,max_messages\x82\xd3\xe4\ - \x93\x027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\x12\ - f\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a'.googl\ - e.pubsub.v1.StreamingPullResponse\"\0(\x010\x01\x12\xbb\x01\n\x10ModifyP\ - ushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.p\ - rotobuf.Empty\"d\x82\xd3\xe4\x93\x02C\">/v1/{subscription=projects/*/sub\ - scriptions/*}:modifyPushConfig:\x01*\xdaA\x18subscription,push_config\ - \x12\x89\x01\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapshotRequest\ - \x1a\x1a.google.pubsub.v1.Snapshot\"8\xdaA\x08snapshot\x82\xd3\xe4\x93\ - \x02'\x12%/v1/{snapshot=projects/*/snapshots/*}\x12\x96\x01\n\rListSnaps\ - hots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a'.google.pubsub.v1.Li\ - stSnapshotsResponse\"4\x82\xd3\xe4\x93\x02$\x12\"/v1/{project=projects/*\ - }/snapshots\xdaA\x07project\x12\x97\x01\n\x0eCreateSnapshot\x12'.google.\ - pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"@\x82\ - \xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\xdaA\x11na\ - me,subscription\x12\x8c\x01\n\x0eUpdateSnapshot\x12'.google.pubsub.v1.Up\ - dateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"5\x82\xd3\xe4\x93\ - \x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\x12\x8b\x01\n\ - \x0eDeleteSnapshot\x12'.google.pubsub.v1.DeleteSnapshotRequest\x1a\x16.g\ - oogle.protobuf.Empty\"8\x82\xd3\xe4\x93\x02'*%/v1/{snapshot=projects/*/s\ - napshots/*}\xdaA\x08snapshot\x12\x84\x01\n\x04Seek\x12\x1d.google.pubsub\ - .v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekResponse\"=\x82\xd3\xe4\x93\ - \x027\"2/v1/{subscription=projects/*/subscriptions/*}:seek:\x01*\x1ap\ - \xcaA\x15pubsub.googleapis.com\xd2AUhttps://www.googleapis.com/auth/clou\ - d-platform,https://www.googleapis.com/auth/pubsubB\xae\x01\n\x14com.goog\ - le.pubsub.v1B\x0bPubsubProtoP\x01Z6google.golang.org/genproto/googleapis\ - /pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\ - \x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud::PubSub::V1J\x9e\ - \x9f\x03\n\x07\x12\x05\x0e\0\xa3\n\x17\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202020\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\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\0M\n\t\n\x02\x08\ - \x0b\x12\x03\x1e\0M\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\x86\x01\ - \x01\x1a^\x20The\x20service\x20that\x20an\x20application\x20uses\x20to\ - \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\ - \x99\x01\n\x04\x06\0\x02\0\x12\x04/\x025\x03\x1a\x8a\x01\x20Creates\x20t\ - he\x20given\x20topic\x20with\x20the\x20given\x20name.\x20See\x20the\x20[\ - resource\x20name\x20rules]\n\x20(https://cloud.google.com/pubsub/docs/ad\ - min#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\x20that\x20certain\x20properties\x20of\x20a\n\x20topi\ - c\x20are\x20not\x20modifiable.\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\ni\n\x04\x06\ - \0\x02\x02\x12\x04B\x02H\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\x03B\ - \x06\r\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03B\x0e\x1c\n\x0c\n\x05\x06\0\ - \x02\x02\x03\x12\x03B'6\n\r\n\x05\x06\0\x02\x02\x04\x12\x04C\x04F\x06\n\ - \x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04C\x04F\x06\n\x0c\n\x05\ - \x06\0\x02\x02\x04\x12\x03G\x04<\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\ - \x12\x03G\x04<\n2\n\x04\x06\0\x02\x03\x12\x04K\x02P\x03\x1a$\x20Gets\x20\ - the\x20configuration\x20of\x20a\x20topic.\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\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03O\x043\n\x0f\n\x08\x06\0\x02\ - \x03\x04\x9b\x08\0\x12\x03O\x043\n&\n\x04\x06\0\x02\x04\x12\x04S\x02X\ - \x03\x1a\x18\x20Lists\x20matching\x20topics.\n\n\x0c\n\x05\x06\0\x02\x04\ - \x01\x12\x03S\x06\x10\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03S\x11\"\n\x0c\ - \n\x05\x06\0\x02\x04\x03\x12\x03S-?\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\x045\n\x0f\n\x08\x06\0\x02\x04\x04\ - \x9b\x08\0\x12\x03W\x045\nL\n\x04\x06\0\x02\x05\x12\x04[\x02a\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\x03`\x043\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x03`\ - \x043\n\xd9\x02\n\x04\x06\0\x02\x06\x12\x04h\x02n\x03\x1a\xca\x02\x20Lis\ - ts\x20the\x20names\x20of\x20the\x20snapshots\x20on\x20this\x20topic.\x20\ - Snapshots\x20are\x20used\x20in\n\x20[Seek](https://cloud.google.com/pubs\ - ub/docs/replay-overview)\x20operations,\n\x20which\x20allow\x20you\x20to\ - \x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\ - \x20you\x20can\n\x20set\x20the\x20acknowledgment\x20state\x20of\x20messa\ - ges\x20in\x20an\x20existing\x20subscription\x20to\x20the\n\x20state\x20c\ - aptured\x20by\x20a\x20snapshot.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03h\ - \x06\x18\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03h\x192\n\x0c\n\x05\x06\0\ - \x02\x06\x03\x12\x03i\x0f)\n\r\n\x05\x06\0\x02\x06\x04\x12\x04j\x04l\x06\ - \n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x04j\x04l\x06\n\x0c\n\x05\ - \x06\0\x02\x06\x04\x12\x03m\x043\n\x0f\n\x08\x06\0\x02\x06\x04\x9b\x08\0\ - \x12\x03m\x043\n\xf3\x02\n\x04\x06\0\x02\x07\x12\x04u\x02z\x03\x1a\xe4\ - \x02\x20Deletes\x20the\x20topic\x20with\x20the\x20given\x20name.\x20Retu\ - rns\x20`NOT_FOUND`\x20if\x20the\x20topic\n\x20does\x20not\x20exist.\x20A\ - fter\x20a\x20topic\x20is\x20deleted,\x20a\x20new\x20topic\x20may\x20be\ - \x20created\x20with\n\x20the\x20same\x20name;\x20this\x20is\x20an\x20ent\ - irely\x20new\x20topic\x20with\x20none\x20of\x20the\x20old\n\x20configura\ - tion\x20or\x20subscriptions.\x20Existing\x20subscriptions\x20to\x20this\ - \x20topic\x20are\n\x20not\x20deleted,\x20but\x20their\x20`topic`\x20fiel\ - d\x20is\x20set\x20to\x20`_deleted-topic_`.\n\n\x0c\n\x05\x06\0\x02\x07\ - \x01\x12\x03u\x06\x11\n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03u\x12$\n\x0c\ - \n\x05\x06\0\x02\x07\x03\x12\x03u/D\n\r\n\x05\x06\0\x02\x07\x04\x12\x04v\ - \x04x\x06\n\x11\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x04v\x04x\x06\n\ - \x0c\n\x05\x06\0\x02\x07\x04\x12\x03y\x043\n\x0f\n\x08\x06\0\x02\x07\x04\ - \x9b\x08\0\x12\x03y\x043\n\x93\x02\n\x04\x06\0\x02\x08\x12\x06\x80\x01\ - \x02\x85\x01\x03\x1a\x82\x02\x20Detaches\x20a\x20subscription\x20from\ - \x20this\x20topic.\x20All\x20messages\x20retained\x20in\x20the\n\x20subs\ - cription\x20are\x20dropped.\x20Subsequent\x20`Pull`\x20and\x20`Streaming\ - Pull`\x20requests\n\x20will\x20return\x20FAILED_PRECONDITION.\x20If\x20t\ - he\x20subscription\x20is\x20a\x20push\n\x20subscription,\x20pushes\x20to\ - \x20the\x20endpoint\x20will\x20stop.\n\n\r\n\x05\x06\0\x02\x08\x01\x12\ - \x04\x80\x01\x06\x18\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\x80\x01\x192\n\ - \r\n\x05\x06\0\x02\x08\x03\x12\x04\x81\x01\x0f)\n\x0f\n\x05\x06\0\x02\ - \x08\x04\x12\x06\x82\x01\x04\x84\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\ - \xca\xbc\"\x12\x06\x82\x01\x04\x84\x01\x06\nU\n\x02\x04\0\x12\x06\x89\ - \x01\0\x90\x01\x01\x1aG\x20A\x20policy\x20constraining\x20the\x20storage\ - \x20of\x20messages\x20published\x20to\x20the\x20topic.\n\n\x0b\n\x03\x04\ - \0\x01\x12\x04\x89\x01\x08\x1c\n\xf5\x02\n\x04\x04\0\x02\0\x12\x04\x8f\ - \x01\x022\x1a\xe6\x02\x20A\x20list\x20of\x20IDs\x20of\x20GCP\x20regions\ - \x20where\x20messages\x20that\x20are\x20published\x20to\x20the\x20topic\ - \n\x20may\x20be\x20persisted\x20in\x20storage.\x20Messages\x20published\ - \x20by\x20publishers\x20running\x20in\n\x20non-allowed\x20GCP\x20regions\ - \x20(or\x20running\x20outside\x20of\x20GCP\x20altogether)\x20will\x20be\ - \n\x20routed\x20for\x20storage\x20in\x20one\x20of\x20the\x20allowed\x20r\ - egions.\x20An\x20empty\x20list\x20means\x20that\n\x20no\x20regions\x20ar\ - e\x20allowed,\x20and\x20is\x20not\x20a\x20valid\x20configuration.\n\n\r\ - \n\x05\x04\0\x02\0\x04\x12\x04\x8f\x01\x02\n\n\r\n\x05\x04\0\x02\0\x05\ - \x12\x04\x8f\x01\x0b\x11\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x8f\x01\x12-\ - \n\r\n\x05\x04\0\x02\0\x03\x12\x04\x8f\x0101\nL\n\x02\x04\x01\x12\x06\ - \x93\x01\0\x9f\x01\x01\x1a>\x20Settings\x20for\x20validating\x20messages\ - \x20published\x20against\x20a\x20schema.\n\n\x0b\n\x03\x04\x01\x01\x12\ - \x04\x93\x01\x08\x16\n\xef\x01\n\x04\x04\x01\x02\0\x12\x06\x98\x01\x02\ - \x9b\x01\x04\x1a\xde\x01\x20Required.\x20The\x20name\x20of\x20the\x20sch\ - ema\x20that\x20messages\x20published\x20should\x20be\n\x20validated\x20a\ - gainst.\x20Format\x20is\x20`projects/{project}/schemas/{schema}`.\x20The\ - \n\x20value\x20of\x20this\x20field\x20will\x20be\x20`_deleted-schema_`\ - \x20if\x20the\x20schema\x20has\x20been\n\x20deleted.\n\n\x0f\n\x05\x04\ - \x01\x02\0\x04\x12\x06\x98\x01\x02\x93\x01\x18\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\x9b\x01\x03\n\x10\n\x08\x04\x01\ - \x02\0\x08\x9c\x08\0\x12\x04\x99\x01\x04*\n\x0f\n\x07\x04\x01\x02\0\x08\ - \x9f\x08\x12\x04\x9a\x01\x04N\nD\n\x04\x04\x01\x02\x01\x12\x04\x9e\x01\ - \x02\x18\x1a6\x20The\x20encoding\x20of\x20messages\x20validated\x20again\ - st\x20`schema`.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\x9e\x01\x02\ - \x9b\x01\x04\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\x9e\x01\x02\n\n\r\n\ - \x05\x04\x01\x02\x01\x01\x12\x04\x9e\x01\x0b\x13\n\r\n\x05\x04\x01\x02\ - \x01\x03\x12\x04\x9e\x01\x16\x17\n!\n\x02\x04\x02\x12\x06\xa2\x01\0\xc8\ - \x01\x01\x1a\x13\x20A\x20topic\x20resource.\n\n\x0b\n\x03\x04\x02\x01\ - \x12\x04\xa2\x01\x08\r\n\r\n\x03\x04\x02\x07\x12\x06\xa3\x01\x02\xa7\x01\ - \x04\n\x0f\n\x05\x04\x02\x07\x9d\x08\x12\x06\xa3\x01\x02\xa7\x01\x04\n\ - \x8c\x03\n\x04\x04\x02\x02\0\x12\x04\xaf\x01\x02;\x1a\xfd\x02\x20Require\ - d.\x20The\x20name\x20of\x20the\x20topic.\x20It\x20must\x20have\x20the\ - \x20format\n\x20`\"projects/{project}/topics/{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,\x20a\ - nd\x20it\n\x20must\x20not\x20start\x20with\x20`\"goog\"`.\n\n\x0f\n\x05\ - \x04\x02\x02\0\x04\x12\x06\xaf\x01\x02\xa7\x01\x04\n\r\n\x05\x04\x02\x02\ - \0\x05\x12\x04\xaf\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xaf\ - \x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xaf\x01\x10\x11\n\r\n\x05\ - \x04\x02\x02\0\x08\x12\x04\xaf\x01\x12:\n\x10\n\x08\x04\x02\x02\0\x08\ - \x9c\x08\0\x12\x04\xaf\x01\x139\nb\n\x04\x04\x02\x02\x01\x12\x04\xb3\x01\ - \x02!\x1aT\x20See\x20[Creating\x20and\x20managing\x20labels]\n\x20(https\ - ://cloud.google.com/pubsub/docs/labels).\n\n\x0f\n\x05\x04\x02\x02\x01\ - \x04\x12\x06\xb3\x01\x02\xaf\x01;\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\ - \xb3\x01\x02\x15\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb3\x01\x16\x1c\n\ - \r\n\x05\x04\x02\x02\x01\x03\x12\x04\xb3\x01\x1f\x20\n\xb7\x01\n\x04\x04\ - \x02\x02\x02\x12\x04\xb8\x01\x022\x1a\xa8\x01\x20Policy\x20constraining\ - \x20the\x20set\x20of\x20Google\x20Cloud\x20Platform\x20regions\x20where\ - \x20messages\n\x20published\x20to\x20the\x20topic\x20may\x20be\x20stored\ - .\x20If\x20not\x20present,\x20then\x20no\x20constraints\n\x20are\x20in\ - \x20effect.\n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xb8\x01\x02\xb3\ - \x01!\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xb8\x01\x02\x16\n\r\n\x05\ - \x04\x02\x02\x02\x01\x12\x04\xb8\x01\x17-\n\r\n\x05\x04\x02\x02\x02\x03\ - \x12\x04\xb8\x0101\n\xcb\x01\n\x04\x04\x02\x02\x03\x12\x04\xbe\x01\x02\ - \x1a\x1a\xbc\x01\x20The\x20resource\x20name\x20of\x20the\x20Cloud\x20KMS\ - \x20CryptoKey\x20to\x20be\x20used\x20to\x20protect\x20access\n\x20to\x20\ - messages\x20published\x20on\x20this\x20topic.\n\n\x20The\x20expected\x20\ - format\x20is\x20`projects/*/locations/*/keyRings/*/cryptoKeys/*`.\n\n\ - \x0f\n\x05\x04\x02\x02\x03\x04\x12\x06\xbe\x01\x02\xb8\x012\n\r\n\x05\ - \x04\x02\x02\x03\x05\x12\x04\xbe\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\ - \x01\x12\x04\xbe\x01\t\x15\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xbe\x01\ - \x18\x19\n\x94\x01\n\x04\x04\x02\x02\x04\x12\x04\xc3\x01\x02%\x1a\x85\ - \x01\x20Settings\x20for\x20validating\x20messages\x20published\x20agains\ - t\x20a\x20schema.\n\n\x20EXPERIMENTAL:\x20Schema\x20support\x20is\x20in\ - \x20development\x20and\x20may\x20not\x20work\x20yet.\n\n\x0f\n\x05\x04\ - \x02\x02\x04\x04\x12\x06\xc3\x01\x02\xbe\x01\x1a\n\r\n\x05\x04\x02\x02\ - \x04\x06\x12\x04\xc3\x01\x02\x10\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\ - \xc3\x01\x11\x20\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\xc3\x01#$\n\x8a\ - \x01\n\x04\x04\x02\x02\x05\x12\x04\xc7\x01\x02\x19\x1a|\x20Reserved\x20f\ - or\x20future\x20use.\x20This\x20field\x20is\x20set\x20only\x20in\x20resp\ - onses\x20from\x20the\n\x20server;\x20it\x20is\x20ignored\x20if\x20it\x20\ - is\x20set\x20in\x20any\x20requests.\n\n\x0f\n\x05\x04\x02\x02\x05\x04\ - \x12\x06\xc7\x01\x02\xc3\x01%\n\r\n\x05\x04\x02\x02\x05\x05\x12\x04\xc7\ - \x01\x02\x06\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\xc7\x01\x07\x14\n\r\n\ - \x05\x04\x02\x02\x05\x03\x12\x04\xc7\x01\x17\x18\n\xf9\x03\n\x02\x04\x03\ - \x12\x06\xd2\x01\0\xee\x01\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\xd2\x01\x08\x15\nq\n\x04\x04\x03\x02\0\ - \x12\x04\xd5\x01\x02\x11\x1ac\x20The\x20message\x20data\x20field.\x20If\ - \x20this\x20field\x20is\x20empty,\x20the\x20message\x20must\x20contain\n\ - \x20at\x20least\x20one\x20attribute.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\ - \x06\xd5\x01\x02\xd2\x01\x17\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xd5\x01\ - \x02\x07\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xd5\x01\x08\x0c\n\r\n\x05\ - \x04\x03\x02\0\x03\x12\x04\xd5\x01\x0f\x10\n\xa9\x01\n\x04\x04\x03\x02\ - \x01\x12\x04\xda\x01\x02%\x1a\x9a\x01\x20Attributes\x20for\x20this\x20me\ - ssage.\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\x0f\n\x05\x04\ - \x03\x02\x01\x04\x12\x06\xda\x01\x02\xd5\x01\x11\n\r\n\x05\x04\x03\x02\ - \x01\x06\x12\x04\xda\x01\x02\x15\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\ - \xda\x01\x16\x20\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xda\x01#$\n\xb3\ - \x02\n\x04\x04\x03\x02\x02\x12\x04\xe0\x01\x02\x18\x1a\xa4\x02\x20ID\x20\ - of\x20this\x20message,\x20assigned\x20by\x20the\x20server\x20when\x20the\ - \x20message\x20is\x20published.\n\x20Guaranteed\x20to\x20be\x20unique\ - \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`Publ\ - ish`\x20call.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xe0\x01\x02\xda\ - \x01%\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xe0\x01\x02\x08\n\r\n\x05\ - \x04\x03\x02\x02\x01\x12\x04\xe0\x01\t\x13\n\r\n\x05\x04\x03\x02\x02\x03\ - \x12\x04\xe0\x01\x16\x17\n\xbb\x01\n\x04\x04\x03\x02\x03\x12\x04\xe5\x01\ - \x02-\x1a\xac\x01\x20The\x20time\x20at\x20which\x20the\x20message\x20was\ - \x20published,\x20populated\x20by\x20the\x20server\x20when\n\x20it\x20re\ - ceives\x20the\x20`Publish`\x20call.\x20It\x20must\x20not\x20be\x20popula\ - ted\x20by\x20the\n\x20publisher\x20in\x20a\x20`Publish`\x20call.\n\n\x0f\ - \n\x05\x04\x03\x02\x03\x04\x12\x06\xe5\x01\x02\xe0\x01\x18\n\r\n\x05\x04\ - \x03\x02\x03\x06\x12\x04\xe5\x01\x02\x1b\n\r\n\x05\x04\x03\x02\x03\x01\ - \x12\x04\xe5\x01\x1c(\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xe5\x01+,\n\ - \xb4\x03\n\x04\x04\x03\x02\x04\x12\x04\xed\x01\x02\x1a\x1a\xa5\x03\x20If\ - \x20non-empty,\x20identifies\x20related\x20messages\x20for\x20which\x20p\ - ublish\x20order\x20should\x20be\n\x20respected.\x20If\x20a\x20`Subscript\ - ion`\x20has\x20`enable_message_ordering`\x20set\x20to\x20`true`,\n\x20me\ - ssages\x20published\x20with\x20the\x20same\x20non-empty\x20`ordering_key\ - `\x20value\x20will\x20be\n\x20delivered\x20to\x20subscribers\x20in\x20th\ - e\x20order\x20in\x20which\x20they\x20are\x20received\x20by\x20the\n\x20P\ - ub/Sub\x20system.\x20All\x20`PubsubMessage`s\x20published\x20in\x20a\x20\ - given\x20`PublishRequest`\n\x20must\x20specify\x20the\x20same\x20`orderi\ - ng_key`\x20value.\n\n\x0f\n\x05\x04\x03\x02\x04\x04\x12\x06\xed\x01\x02\ - \xe5\x01-\n\r\n\x05\x04\x03\x02\x04\x05\x12\x04\xed\x01\x02\x08\n\r\n\ - \x05\x04\x03\x02\x04\x01\x12\x04\xed\x01\t\x15\n\r\n\x05\x04\x03\x02\x04\ - \x03\x12\x04\xed\x01\x18\x19\n0\n\x02\x04\x04\x12\x06\xf1\x01\0\xf8\x01\ - \x01\x1a\"\x20Request\x20for\x20the\x20GetTopic\x20method.\n\n\x0b\n\x03\ - \x04\x04\x01\x12\x04\xf1\x01\x08\x17\ni\n\x04\x04\x04\x02\0\x12\x06\xf4\ - \x01\x02\xf7\x01\x04\x1aY\x20Required.\x20The\x20name\x20of\x20the\x20to\ - pic\x20to\x20get.\n\x20Format\x20is\x20`projects/{project}/topics/{topic\ - }`.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xf4\x01\x02\xf1\x01\x19\n\r\ - \n\x05\x04\x04\x02\0\x05\x12\x04\xf4\x01\x02\x08\n\r\n\x05\x04\x04\x02\0\ - \x01\x12\x04\xf4\x01\t\x0e\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xf4\x01\ - \x11\x12\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xf4\x01\x13\xf7\x01\x03\n\ - \x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xf5\x01\x04*\n\x0f\n\x07\ - \x04\x04\x02\0\x08\x9f\x08\x12\x04\xf6\x01\x04M\n3\n\x02\x04\x05\x12\x06\ - \xfb\x01\0\x86\x02\x01\x1a%\x20Request\x20for\x20the\x20UpdateTopic\x20m\ - ethod.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xfb\x01\x08\x1a\n3\n\x04\x04\ - \x05\x02\0\x12\x04\xfd\x01\x02;\x1a%\x20Required.\x20The\x20updated\x20t\ - opic\x20object.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xfd\x01\x02\xfb\ - \x01\x1c\n\r\n\x05\x04\x05\x02\0\x06\x12\x04\xfd\x01\x02\x07\n\r\n\x05\ - \x04\x05\x02\0\x01\x12\x04\xfd\x01\x08\r\n\r\n\x05\x04\x05\x02\0\x03\x12\ - \x04\xfd\x01\x10\x11\n\r\n\x05\x04\x05\x02\0\x08\x12\x04\xfd\x01\x12:\n\ - \x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xfd\x01\x139\n\xe5\x02\n\ - \x04\x04\x05\x02\x01\x12\x06\x84\x02\x02\x85\x02/\x1a\xd4\x02\x20Require\ - d.\x20Indicates\x20which\x20fields\x20in\x20the\x20provided\x20topic\x20\ - to\x20update.\x20Must\x20be\n\x20specified\x20and\x20non-empty.\x20Note\ - \x20that\x20if\x20`update_mask`\x20contains\n\x20\"message_storage_polic\ - y\"\x20but\x20the\x20`message_storage_policy`\x20is\x20not\x20set\x20in\ - \n\x20the\x20`topic`\x20provided\x20above,\x20then\x20the\x20updated\x20\ - value\x20is\x20determined\x20by\x20the\n\x20policy\x20configured\x20at\ - \x20the\x20project\x20or\x20organization\x20level.\n\n\x0f\n\x05\x04\x05\ - \x02\x01\x04\x12\x06\x84\x02\x02\xfd\x01;\n\r\n\x05\x04\x05\x02\x01\x06\ - \x12\x04\x84\x02\x02\x1b\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x84\x02\ - \x1c'\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\x84\x02*+\n\r\n\x05\x04\x05\ - \x02\x01\x08\x12\x04\x85\x02\x06.\n\x10\n\x08\x04\x05\x02\x01\x08\x9c\ - \x08\0\x12\x04\x85\x02\x07-\n/\n\x02\x04\x06\x12\x06\x89\x02\0\x93\x02\ - \x01\x1a!\x20Request\x20for\x20the\x20Publish\x20method.\n\n\x0b\n\x03\ - \x04\x06\x01\x12\x04\x89\x02\x08\x16\n\x88\x01\n\x04\x04\x06\x02\0\x12\ - \x06\x8c\x02\x02\x8f\x02\x04\x1ax\x20Required.\x20The\x20messages\x20in\ - \x20the\x20request\x20will\x20be\x20published\x20on\x20this\x20topic.\n\ - \x20Format\x20is\x20`projects/{project}/topics/{topic}`.\n\n\x0f\n\x05\ - \x04\x06\x02\0\x04\x12\x06\x8c\x02\x02\x89\x02\x18\n\r\n\x05\x04\x06\x02\ - \0\x05\x12\x04\x8c\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\x8c\ - \x02\t\x0e\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\x8c\x02\x11\x12\n\x0f\n\ - \x05\x04\x06\x02\0\x08\x12\x06\x8c\x02\x13\x8f\x02\x03\n\x10\n\x08\x04\ - \x06\x02\0\x08\x9c\x08\0\x12\x04\x8d\x02\x04*\n\x0f\n\x07\x04\x06\x02\0\ - \x08\x9f\x08\x12\x04\x8e\x02\x04M\n2\n\x04\x04\x06\x02\x01\x12\x04\x92\ - \x02\x02O\x1a$\x20Required.\x20The\x20messages\x20to\x20publish.\n\n\r\n\ - \x05\x04\x06\x02\x01\x04\x12\x04\x92\x02\x02\n\n\r\n\x05\x04\x06\x02\x01\ - \x06\x12\x04\x92\x02\x0b\x18\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\x92\ - \x02\x19!\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x92\x02$%\n\r\n\x05\x04\ - \x06\x02\x01\x08\x12\x04\x92\x02&N\n\x10\n\x08\x04\x06\x02\x01\x08\x9c\ - \x08\0\x12\x04\x92\x02'M\n2\n\x02\x04\x07\x12\x06\x96\x02\0\x9b\x02\x01\ - \x1a$\x20Response\x20for\x20the\x20`Publish`\x20method.\n\n\x0b\n\x03\ - \x04\x07\x01\x12\x04\x96\x02\x08\x17\n\xa8\x01\n\x04\x04\x07\x02\0\x12\ - \x04\x9a\x02\x02\"\x1a\x99\x01\x20The\x20server-assigned\x20ID\x20of\x20\ - each\x20published\x20message,\x20in\x20the\x20same\x20order\x20as\n\x20t\ - he\x20messages\x20in\x20the\x20request.\x20IDs\x20are\x20guaranteed\x20t\ - o\x20be\x20unique\x20within\n\x20the\x20topic.\n\n\r\n\x05\x04\x07\x02\0\ - \x04\x12\x04\x9a\x02\x02\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\x9a\x02\ - \x0b\x11\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x9a\x02\x12\x1d\n\r\n\x05\ - \x04\x07\x02\0\x03\x12\x04\x9a\x02\x20!\n4\n\x02\x04\x08\x12\x06\x9e\x02\ - \0\xaf\x02\x01\x1a&\x20Request\x20for\x20the\x20`ListTopics`\x20method.\ - \n\n\x0b\n\x03\x04\x08\x01\x12\x04\x9e\x02\x08\x19\np\n\x04\x04\x08\x02\ - \0\x12\x06\xa1\x02\x02\xa6\x02\x04\x1a`\x20Required.\x20The\x20name\x20o\ - f\x20the\x20project\x20in\x20which\x20to\x20list\x20topics.\n\x20Format\ - \x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\ - \x06\xa1\x02\x02\x9e\x02\x1b\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xa1\x02\ - \x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xa1\x02\t\x10\n\r\n\x05\x04\ - \x08\x02\0\x03\x12\x04\xa1\x02\x13\x14\n\x0f\n\x05\x04\x08\x02\0\x08\x12\ - \x06\xa1\x02\x15\xa6\x02\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\ - \x04\xa2\x02\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xa3\x02\ - \x04\xa5\x02\x05\n3\n\x04\x04\x08\x02\x01\x12\x04\xa9\x02\x02\x16\x1a%\ - \x20Maximum\x20number\x20of\x20topics\x20to\x20return.\n\n\x0f\n\x05\x04\ - \x08\x02\x01\x04\x12\x06\xa9\x02\x02\xa6\x02\x04\n\r\n\x05\x04\x08\x02\ - \x01\x05\x12\x04\xa9\x02\x02\x07\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\ - \xa9\x02\x08\x11\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xa9\x02\x14\x15\n\ - \xc4\x01\n\x04\x04\x08\x02\x02\x12\x04\xae\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\x0f\n\x05\x04\x08\ - \x02\x02\x04\x12\x06\xae\x02\x02\xa9\x02\x16\n\r\n\x05\x04\x08\x02\x02\ - \x05\x12\x04\xae\x02\x02\x08\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xae\ - \x02\t\x13\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xae\x02\x16\x17\n5\n\ - \x02\x04\t\x12\x06\xb2\x02\0\xb9\x02\x01\x1a'\x20Response\x20for\x20the\ - \x20`ListTopics`\x20method.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xb2\x02\x08\ - \x1a\n%\n\x04\x04\t\x02\0\x12\x04\xb4\x02\x02\x1c\x1a\x17\x20The\x20resu\ - lting\x20topics.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\xb4\x02\x02\n\n\r\n\ - \x05\x04\t\x02\0\x06\x12\x04\xb4\x02\x0b\x10\n\r\n\x05\x04\t\x02\0\x01\ - \x12\x04\xb4\x02\x11\x17\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xb4\x02\x1a\ - \x1b\n\x99\x01\n\x04\x04\t\x02\x01\x12\x04\xb8\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\x0f\ - \n\x05\x04\t\x02\x01\x04\x12\x06\xb8\x02\x02\xb4\x02\x1c\n\r\n\x05\x04\t\ - \x02\x01\x05\x12\x04\xb8\x02\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\ - \xb8\x02\t\x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xb8\x02\x1b\x1c\n@\n\ - \x02\x04\n\x12\x06\xbc\x02\0\xcb\x02\x01\x1a2\x20Request\x20for\x20the\ - \x20`ListTopicSubscriptions`\x20method.\n\n\x0b\n\x03\x04\n\x01\x12\x04\ - \xbc\x02\x08%\n\x85\x01\n\x04\x04\n\x02\0\x12\x06\xbf\x02\x02\xc2\x02\ - \x04\x1au\x20Required.\x20The\x20name\x20of\x20the\x20topic\x20that\x20s\ - ubscriptions\x20are\x20attached\x20to.\n\x20Format\x20is\x20`projects/{p\ - roject}/topics/{topic}`.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\xbf\x02\ - \x02\xbc\x02'\n\r\n\x05\x04\n\x02\0\x05\x12\x04\xbf\x02\x02\x08\n\r\n\ - \x05\x04\n\x02\0\x01\x12\x04\xbf\x02\t\x0e\n\r\n\x05\x04\n\x02\0\x03\x12\ - \x04\xbf\x02\x11\x12\n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\xbf\x02\x13\xc2\ - \x02\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\xc0\x02\x04*\n\ - \x0f\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x04\xc1\x02\x04M\n?\n\x04\x04\n\ - \x02\x01\x12\x04\xc5\x02\x02\x16\x1a1\x20Maximum\x20number\x20of\x20subs\ - cription\x20names\x20to\x20return.\n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\ - \x06\xc5\x02\x02\xc2\x02\x04\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\xc5\x02\ - \x02\x07\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xc5\x02\x08\x11\n\r\n\x05\ - \x04\n\x02\x01\x03\x12\x04\xc5\x02\x14\x15\n\xdc\x01\n\x04\x04\n\x02\x02\ - \x12\x04\xca\x02\x02\x18\x1a\xcd\x01\x20The\x20value\x20returned\x20by\ - \x20the\x20last\x20`ListTopicSubscriptionsResponse`;\x20indicates\n\x20t\ - hat\x20this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`ListTopic\ - Subscriptions`\x20call,\x20and\n\x20that\x20the\x20system\x20should\x20r\ - eturn\x20the\x20next\x20page\x20of\x20data.\n\n\x0f\n\x05\x04\n\x02\x02\ - \x04\x12\x06\xca\x02\x02\xc5\x02\x16\n\r\n\x05\x04\n\x02\x02\x05\x12\x04\ - \xca\x02\x02\x08\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xca\x02\t\x13\n\r\n\ - \x05\x04\n\x02\x02\x03\x12\x04\xca\x02\x16\x17\nA\n\x02\x04\x0b\x12\x06\ - \xce\x02\0\xd8\x02\x01\x1a3\x20Response\x20for\x20the\x20`ListTopicSubsc\ - riptions`\x20method.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xce\x02\x08&\n\\\ - \n\x04\x04\x0b\x02\0\x12\x06\xd0\x02\x02\xd2\x02\x05\x1aL\x20The\x20name\ - s\x20of\x20subscriptions\x20attached\x20to\x20the\x20topic\x20specified\ - \x20in\x20the\x20request.\n\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\xd0\x02\ - \x02\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xd0\x02\x0b\x11\n\r\n\x05\x04\ - \x0b\x02\0\x01\x12\x04\xd0\x02\x12\x1f\n\r\n\x05\x04\x0b\x02\0\x03\x12\ - \x04\xd0\x02\"#\n\x0f\n\x05\x04\x0b\x02\0\x08\x12\x06\xd0\x02$\xd2\x02\ - \x04\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\x06\xd0\x02%\xd2\x02\x03\ - \n\xc7\x01\n\x04\x04\x0b\x02\x01\x12\x04\xd7\x02\x02\x1d\x1a\xb8\x01\x20\ - If\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\x20more\ - \x20subscriptions\x20that\x20match\n\x20the\x20request;\x20this\x20value\ - \x20should\x20be\x20passed\x20in\x20a\x20new\n\x20`ListTopicSubscription\ - sRequest`\x20to\x20get\x20more\x20subscriptions.\n\n\x0f\n\x05\x04\x0b\ - \x02\x01\x04\x12\x06\xd7\x02\x02\xd2\x02\x05\n\r\n\x05\x04\x0b\x02\x01\ - \x05\x12\x04\xd7\x02\x02\x08\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xd7\ - \x02\t\x18\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xd7\x02\x1b\x1c\n<\n\ - \x02\x04\x0c\x12\x06\xdb\x02\0\xea\x02\x01\x1a.\x20Request\x20for\x20the\ - \x20`ListTopicSnapshots`\x20method.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\ - \xdb\x02\x08!\n\x81\x01\n\x04\x04\x0c\x02\0\x12\x06\xde\x02\x02\xe1\x02\ - \x04\x1aq\x20Required.\x20The\x20name\x20of\x20the\x20topic\x20that\x20s\ - napshots\x20are\x20attached\x20to.\n\x20Format\x20is\x20`projects/{proje\ - ct}/topics/{topic}`.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xde\x02\x02\ - \xdb\x02#\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xde\x02\x02\x08\n\r\n\x05\ - \x04\x0c\x02\0\x01\x12\x04\xde\x02\t\x0e\n\r\n\x05\x04\x0c\x02\0\x03\x12\ - \x04\xde\x02\x11\x12\n\x0f\n\x05\x04\x0c\x02\0\x08\x12\x06\xde\x02\x13\ - \xe1\x02\x03\n\x10\n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xdf\x02\x04\ - *\n\x0f\n\x07\x04\x0c\x02\0\x08\x9f\x08\x12\x04\xe0\x02\x04M\n;\n\x04\ - \x04\x0c\x02\x01\x12\x04\xe4\x02\x02\x16\x1a-\x20Maximum\x20number\x20of\ - \x20snapshot\x20names\x20to\x20return.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\ - \x12\x06\xe4\x02\x02\xe1\x02\x04\n\r\n\x05\x04\x0c\x02\x01\x05\x12\x04\ - \xe4\x02\x02\x07\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xe4\x02\x08\x11\n\ - \r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xe4\x02\x14\x15\n\xd4\x01\n\x04\x04\ - \x0c\x02\x02\x12\x04\xe9\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\x0f\n\x05\x04\x0c\ - \x02\x02\x04\x12\x06\xe9\x02\x02\xe4\x02\x16\n\r\n\x05\x04\x0c\x02\x02\ - \x05\x12\x04\xe9\x02\x02\x08\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\xe9\ - \x02\t\x13\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xe9\x02\x16\x17\n=\n\ - \x02\x04\r\x12\x06\xed\x02\0\xf5\x02\x01\x1a/\x20Response\x20for\x20the\ - \x20`ListTopicSnapshots`\x20method.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xed\ - \x02\x08\"\nB\n\x04\x04\r\x02\0\x12\x04\xef\x02\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\xef\x02\x02\n\n\r\n\x05\x04\r\x02\0\x05\ - \x12\x04\xef\x02\x0b\x11\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xef\x02\x12\ - \x1b\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xef\x02\x1e\x1f\n\xbb\x01\n\x04\ - \x04\r\x02\x01\x12\x04\xf4\x02\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\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xf4\x02\x02\xef\ - \x02\x20\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xf4\x02\x02\x08\n\r\n\x05\ - \x04\r\x02\x01\x01\x12\x04\xf4\x02\t\x18\n\r\n\x05\x04\r\x02\x01\x03\x12\ - \x04\xf4\x02\x1b\x1c\n5\n\x02\x04\x0e\x12\x06\xf8\x02\0\xff\x02\x01\x1a'\ - \x20Request\x20for\x20the\x20`DeleteTopic`\x20method.\n\n\x0b\n\x03\x04\ - \x0e\x01\x12\x04\xf8\x02\x08\x1a\nh\n\x04\x04\x0e\x02\0\x12\x06\xfb\x02\ - \x02\xfe\x02\x04\x1aX\x20Required.\x20Name\x20of\x20the\x20topic\x20to\ - \x20delete.\n\x20Format\x20is\x20`projects/{project}/topics/{topic}`.\n\ - \n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xfb\x02\x02\xf8\x02\x1c\n\r\n\x05\ - \x04\x0e\x02\0\x05\x12\x04\xfb\x02\x02\x08\n\r\n\x05\x04\x0e\x02\0\x01\ - \x12\x04\xfb\x02\t\x0e\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xfb\x02\x11\ - \x12\n\x0f\n\x05\x04\x0e\x02\0\x08\x12\x06\xfb\x02\x13\xfe\x02\x03\n\x10\ - \n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\xfc\x02\x04*\n\x0f\n\x07\x04\ - \x0e\x02\0\x08\x9f\x08\x12\x04\xfd\x02\x04M\n:\n\x02\x04\x0f\x12\x06\x82\ - \x03\0\x8b\x03\x01\x1a,\x20Request\x20for\x20the\x20DetachSubscription\ - \x20method.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\x82\x03\x08!\nu\n\x04\x04\ - \x0f\x02\0\x12\x06\x85\x03\x02\x8a\x03\x04\x1ae\x20Required.\x20The\x20s\ - ubscription\x20to\x20detach.\n\x20Format\x20is\x20`projects/{project}/su\ - bscriptions/{subscription}`.\n\n\x0f\n\x05\x04\x0f\x02\0\x04\x12\x06\x85\ - \x03\x02\x82\x03#\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\x85\x03\x02\x08\n\ - \r\n\x05\x04\x0f\x02\0\x01\x12\x04\x85\x03\t\x15\n\r\n\x05\x04\x0f\x02\0\ - \x03\x12\x04\x85\x03\x18\x19\n\x0f\n\x05\x04\x0f\x02\0\x08\x12\x06\x85\ - \x03\x1a\x8a\x03\x03\n\x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\x04\x86\ - \x03\x04*\n\x11\n\x07\x04\x0f\x02\0\x08\x9f\x08\x12\x06\x87\x03\x04\x89\ - \x03\x05\nS\n\x02\x04\x10\x12\x04\x8f\x03\0%\x1aG\x20Response\x20for\x20\ - the\x20DetachSubscription\x20method.\n\x20Reserved\x20for\x20future\x20u\ - se.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x8f\x03\x08\"\n\xe2\x01\n\x02\x06\ - \x01\x12\x06\x94\x03\0\xf2\x04\x01\x1a\xd3\x01\x20The\x20service\x20that\ - \x20an\x20application\x20uses\x20to\x20manipulate\x20subscriptions\x20an\ - d\x20to\n\x20consume\x20messages\x20from\x20a\x20subscription\x20via\x20\ - the\x20`Pull`\x20method\x20or\x20by\n\x20establishing\x20a\x20bi-directi\ - onal\x20stream\x20using\x20the\x20`StreamingPull`\x20method.\n\n\x0b\n\ - \x03\x06\x01\x01\x12\x04\x94\x03\x08\x12\n\x0b\n\x03\x06\x01\x03\x12\x04\ - \x95\x03\x02=\n\r\n\x05\x06\x01\x03\x99\x08\x12\x04\x95\x03\x02=\n\r\n\ - \x03\x06\x01\x03\x12\x06\x96\x03\x02\x98\x03/\n\x0f\n\x05\x06\x01\x03\ - \x9a\x08\x12\x06\x96\x03\x02\x98\x03/\n\x9a\x05\n\x04\x06\x01\x02\0\x12\ - \x06\xa5\x03\x02\xac\x03\x03\x1a\x89\x05\x20Creates\x20a\x20subscription\ - \x20to\x20a\x20given\x20topic.\x20See\x20the\x20[resource\x20name\x20rul\ - es]\n\x20(https://cloud.google.com/pubsub/docs/admin#resource_names).\n\ - \x20If\x20the\x20subscription\x20already\x20exists,\x20returns\x20`ALREA\ - DY_EXISTS`.\n\x20If\x20the\x20corresponding\x20topic\x20doesn't\x20exist\ - ,\x20returns\x20`NOT_FOUND`.\n\n\x20If\x20the\x20name\x20is\x20not\x20pr\ - ovided\x20in\x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\ - \x20random\n\x20name\x20for\x20this\x20subscription\x20on\x20the\x20same\ - \x20project\x20as\x20the\x20topic,\x20conforming\n\x20to\x20the\x20[reso\ - urce\x20name\x20format]\n\x20(https://cloud.google.com/pubsub/docs/admin\ - #resource_names).\x20The\x20generated\n\x20name\x20is\x20populated\x20in\ - \x20the\x20returned\x20Subscription\x20object.\x20Note\x20that\x20for\ - \x20REST\n\x20API\x20requests,\x20you\x20must\x20specify\x20a\x20name\ - \x20in\x20the\x20request.\n\n\r\n\x05\x06\x01\x02\0\x01\x12\x04\xa5\x03\ - \x06\x18\n\r\n\x05\x06\x01\x02\0\x02\x12\x04\xa5\x03\x19%\n\r\n\x05\x06\ - \x01\x02\0\x03\x12\x04\xa5\x030<\n\x0f\n\x05\x06\x01\x02\0\x04\x12\x06\ - \xa6\x03\x04\xa9\x03\x06\n\x13\n\t\x06\x01\x02\0\x04\xb0\xca\xbc\"\x12\ - \x06\xa6\x03\x04\xa9\x03\x06\n\x0f\n\x05\x06\x01\x02\0\x04\x12\x06\xaa\ - \x03\x04\xab\x036\n\x12\n\x08\x06\x01\x02\0\x04\x9b\x08\0\x12\x06\xaa\ - \x03\x04\xab\x036\nC\n\x04\x06\x01\x02\x01\x12\x06\xaf\x03\x02\xb4\x03\ - \x03\x1a3\x20Gets\x20the\x20configuration\x20details\x20of\x20a\x20subsc\ - ription.\n\n\r\n\x05\x06\x01\x02\x01\x01\x12\x04\xaf\x03\x06\x15\n\r\n\ - \x05\x06\x01\x02\x01\x02\x12\x04\xaf\x03\x16,\n\r\n\x05\x06\x01\x02\x01\ - \x03\x12\x04\xaf\x037C\n\x0f\n\x05\x06\x01\x02\x01\x04\x12\x06\xb0\x03\ - \x04\xb2\x03\x06\n\x13\n\t\x06\x01\x02\x01\x04\xb0\xca\xbc\"\x12\x06\xb0\ - \x03\x04\xb2\x03\x06\n\r\n\x05\x06\x01\x02\x01\x04\x12\x04\xb3\x03\x04:\ - \n\x10\n\x08\x06\x01\x02\x01\x04\x9b\x08\0\x12\x04\xb3\x03\x04:\n\x8b\ - \x01\n\x04\x06\x01\x02\x02\x12\x06\xb8\x03\x02\xbd\x03\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\xb8\x03\ - \x06\x18\n\r\n\x05\x06\x01\x02\x02\x02\x12\x04\xb8\x03\x192\n\r\n\x05\ - \x06\x01\x02\x02\x03\x12\x04\xb8\x03=I\n\x0f\n\x05\x06\x01\x02\x02\x04\ - \x12\x06\xb9\x03\x04\xbc\x03\x06\n\x13\n\t\x06\x01\x02\x02\x04\xb0\xca\ - \xbc\"\x12\x06\xb9\x03\x04\xbc\x03\x06\n/\n\x04\x06\x01\x02\x03\x12\x06\ - \xc0\x03\x02\xc6\x03\x03\x1a\x1f\x20Lists\x20matching\x20subscriptions.\ - \n\n\r\n\x05\x06\x01\x02\x03\x01\x12\x04\xc0\x03\x06\x17\n\r\n\x05\x06\ - \x01\x02\x03\x02\x12\x04\xc0\x03\x180\n\r\n\x05\x06\x01\x02\x03\x03\x12\ - \x04\xc1\x03\x0f(\n\x0f\n\x05\x06\x01\x02\x03\x04\x12\x06\xc2\x03\x04\ - \xc4\x03\x06\n\x13\n\t\x06\x01\x02\x03\x04\xb0\xca\xbc\"\x12\x06\xc2\x03\ - \x04\xc4\x03\x06\n\r\n\x05\x06\x01\x02\x03\x04\x12\x04\xc5\x03\x045\n\ - \x10\n\x08\x06\x01\x02\x03\x04\x9b\x08\0\x12\x04\xc5\x03\x045\n\xef\x02\ - \n\x04\x06\x01\x02\x04\x12\x06\xcd\x03\x02\xd3\x03\x03\x1a\xde\x02\x20De\ - letes\x20an\x20existing\x20subscription.\x20All\x20messages\x20retained\ - \x20in\x20the\x20subscription\n\x20are\x20immediately\x20dropped.\x20Cal\ - ls\x20to\x20`Pull`\x20after\x20deletion\x20will\x20return\n\x20`NOT_FOUN\ - D`.\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\x20su\ - bscription\x20or\x20its\x20topic\x20unless\x20the\x20same\x20topic\x20is\ - \x20specified.\n\n\r\n\x05\x06\x01\x02\x04\x01\x12\x04\xcd\x03\x06\x18\n\ - \r\n\x05\x06\x01\x02\x04\x02\x12\x04\xcd\x03\x192\n\r\n\x05\x06\x01\x02\ - \x04\x03\x12\x04\xce\x03\x0f$\n\x0f\n\x05\x06\x01\x02\x04\x04\x12\x06\ - \xcf\x03\x04\xd1\x03\x06\n\x13\n\t\x06\x01\x02\x04\x04\xb0\xca\xbc\"\x12\ - \x06\xcf\x03\x04\xd1\x03\x06\n\r\n\x05\x06\x01\x02\x04\x04\x12\x04\xd2\ - \x03\x04:\n\x10\n\x08\x06\x01\x02\x04\x04\x9b\x08\0\x12\x04\xd2\x03\x04:\ - \n\xe7\x02\n\x04\x06\x01\x02\x05\x12\x06\xda\x03\x02\xe2\x03\x03\x1a\xd6\ - \x02\x20Modifies\x20the\x20ack\x20deadline\x20for\x20a\x20specific\x20me\ - ssage.\x20This\x20method\x20is\x20useful\n\x20to\x20indicate\x20that\x20\ - more\x20time\x20is\x20needed\x20to\x20process\x20a\x20message\x20by\x20t\ - he\n\x20subscriber,\x20or\x20to\x20make\x20the\x20message\x20available\ - \x20for\x20redelivery\x20if\x20the\n\x20processing\x20was\x20interrupted\ - .\x20Note\x20that\x20this\x20does\x20not\x20modify\x20the\n\x20subscript\ - ion-level\x20`ackDeadlineSeconds`\x20used\x20for\x20subsequent\x20messag\ - es.\n\n\r\n\x05\x06\x01\x02\x05\x01\x12\x04\xda\x03\x06\x17\n\r\n\x05\ - \x06\x01\x02\x05\x02\x12\x04\xda\x03\x180\n\r\n\x05\x06\x01\x02\x05\x03\ - \x12\x04\xdb\x03\x0f$\n\x0f\n\x05\x06\x01\x02\x05\x04\x12\x06\xdc\x03\ - \x04\xdf\x03\x06\n\x13\n\t\x06\x01\x02\x05\x04\xb0\xca\xbc\"\x12\x06\xdc\ - \x03\x04\xdf\x03\x06\n\x0f\n\x05\x06\x01\x02\x05\x04\x12\x06\xe0\x03\x04\ - \xe1\x034\n\x12\n\x08\x06\x01\x02\x05\x04\x9b\x08\0\x12\x06\xe0\x03\x04\ - \xe1\x034\n\xed\x02\n\x04\x06\x01\x02\x06\x12\x06\xeb\x03\x02\xf1\x03\ - \x03\x1a\xdc\x02\x20Acknowledges\x20the\x20messages\x20associated\x20wit\ - h\x20the\x20`ack_ids`\x20in\x20the\n\x20`AcknowledgeRequest`.\x20The\x20\ - Pub/Sub\x20system\x20can\x20remove\x20the\x20relevant\x20messages\n\x20f\ - rom\x20the\x20subscription.\n\n\x20Acknowledging\x20a\x20message\x20whos\ - e\x20ack\x20deadline\x20has\x20expired\x20may\x20succeed,\n\x20but\x20su\ - ch\x20a\x20message\x20may\x20be\x20redelivered\x20later.\x20Acknowledgin\ - g\x20a\x20message\x20more\n\x20than\x20once\x20will\x20not\x20result\x20\ - in\x20an\x20error.\n\n\r\n\x05\x06\x01\x02\x06\x01\x12\x04\xeb\x03\x06\ - \x11\n\r\n\x05\x06\x01\x02\x06\x02\x12\x04\xeb\x03\x12$\n\r\n\x05\x06\ - \x01\x02\x06\x03\x12\x04\xeb\x03/D\n\x0f\n\x05\x06\x01\x02\x06\x04\x12\ - \x06\xec\x03\x04\xef\x03\x06\n\x13\n\t\x06\x01\x02\x06\x04\xb0\xca\xbc\"\ - \x12\x06\xec\x03\x04\xef\x03\x06\n\r\n\x05\x06\x01\x02\x06\x04\x12\x04\ - \xf0\x03\x04B\n\x10\n\x08\x06\x01\x02\x06\x04\x9b\x08\0\x12\x04\xf0\x03\ - \x04B\n\xab\x01\n\x04\x06\x01\x02\x07\x12\x06\xf6\x03\x02\xfd\x03\x03\ - \x1a\x9a\x01\x20Pulls\x20messages\x20from\x20the\x20server.\x20The\x20se\ - rver\x20may\x20return\x20`UNAVAILABLE`\x20if\n\x20there\x20are\x20too\ - \x20many\x20concurrent\x20pull\x20requests\x20pending\x20for\x20the\x20g\ - iven\n\x20subscription.\n\n\r\n\x05\x06\x01\x02\x07\x01\x12\x04\xf6\x03\ - \x06\n\n\r\n\x05\x06\x01\x02\x07\x02\x12\x04\xf6\x03\x0b\x16\n\r\n\x05\ - \x06\x01\x02\x07\x03\x12\x04\xf6\x03!-\n\x0f\n\x05\x06\x01\x02\x07\x04\ - \x12\x06\xf7\x03\x04\xfa\x03\x06\n\x13\n\t\x06\x01\x02\x07\x04\xb0\xca\ - \xbc\"\x12\x06\xf7\x03\x04\xfa\x03\x06\n\x0f\n\x05\x06\x01\x02\x07\x04\ - \x12\x06\xfb\x03\x04\xfc\x037\n\x12\n\x08\x06\x01\x02\x07\x04\x9b\x08\0\ - \x12\x06\xfb\x03\x04\xfc\x037\n\xe2\x03\n\x04\x06\x01\x02\x08\x12\x06\ - \x86\x04\x02\x87\x04/\x1a\xd1\x03\x20Establishes\x20a\x20stream\x20with\ - \x20the\x20server,\x20which\x20sends\x20messages\x20down\x20to\x20the\n\ - \x20client.\x20The\x20client\x20streams\x20acknowledgements\x20and\x20ac\ - k\x20deadline\x20modifications\n\x20back\x20to\x20the\x20server.\x20The\ - \x20server\x20will\x20close\x20the\x20stream\x20and\x20return\x20the\x20\ - status\n\x20on\x20any\x20error.\x20The\x20server\x20may\x20close\x20the\ - \x20stream\x20with\x20status\x20`UNAVAILABLE`\x20to\n\x20reassign\x20ser\ - ver-side\x20resources,\x20in\x20which\x20case,\x20the\x20client\x20shoul\ - d\n\x20re-establish\x20the\x20stream.\x20Flow\x20control\x20can\x20be\ - \x20achieved\x20by\x20configuring\x20the\n\x20underlying\x20RPC\x20chann\ - el.\n\n\r\n\x05\x06\x01\x02\x08\x01\x12\x04\x86\x04\x06\x13\n\r\n\x05\ - \x06\x01\x02\x08\x05\x12\x04\x86\x04\x14\x1a\n\r\n\x05\x06\x01\x02\x08\ - \x02\x12\x04\x86\x04\x1b/\n\r\n\x05\x06\x01\x02\x08\x06\x12\x04\x87\x04\ - \x0f\x15\n\r\n\x05\x06\x01\x02\x08\x03\x12\x04\x87\x04\x16+\n\xf7\x02\n\ - \x04\x06\x01\x02\t\x12\x06\x8f\x04\x02\x96\x04\x03\x1a\xe6\x02\x20Modifi\ - es\x20the\x20`PushConfig`\x20for\x20a\x20specified\x20subscription.\n\n\ - \x20This\x20may\x20be\x20used\x20to\x20change\x20a\x20push\x20subscripti\ - on\x20to\x20a\x20pull\x20one\x20(signified\x20by\n\x20an\x20empty\x20`Pu\ - shConfig`)\x20or\x20vice\x20versa,\x20or\x20change\x20the\x20endpoint\ - \x20URL\x20and\x20other\n\x20attributes\x20of\x20a\x20push\x20subscripti\ - on.\x20Messages\x20will\x20accumulate\x20for\x20delivery\n\x20continuous\ - ly\x20through\x20the\x20call\x20regardless\x20of\x20changes\x20to\x20the\ - \x20`PushConfig`.\n\n\r\n\x05\x06\x01\x02\t\x01\x12\x04\x8f\x04\x06\x16\ - \n\r\n\x05\x06\x01\x02\t\x02\x12\x04\x8f\x04\x17.\n\r\n\x05\x06\x01\x02\ - \t\x03\x12\x04\x90\x04\x0f$\n\x0f\n\x05\x06\x01\x02\t\x04\x12\x06\x91\ - \x04\x04\x94\x04\x06\n\x13\n\t\x06\x01\x02\t\x04\xb0\xca\xbc\"\x12\x06\ - \x91\x04\x04\x94\x04\x06\n\r\n\x05\x06\x01\x02\t\x04\x12\x04\x95\x04\x04\ - F\n\x10\n\x08\x06\x01\x02\t\x04\x9b\x08\0\x12\x04\x95\x04\x04F\n\xe4\x02\ - \n\x04\x06\x01\x02\n\x12\x06\x9d\x04\x02\xa2\x04\x03\x1a\xd3\x02\x20Gets\ - \x20the\x20configuration\x20details\x20of\x20a\x20snapshot.\x20Snapshots\ - \x20are\x20used\x20in\n\x20Seek\n\x20operations,\x20which\x20allow\x20yo\ - u\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\n\ - \x20is,\x20you\x20can\x20set\x20the\x20acknowledgment\x20state\x20of\x20\ - messages\x20in\x20an\x20existing\n\x20subscription\x20to\x20the\x20state\ - \x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\n\x01\x12\ - \x04\x9d\x04\x06\x11\n\r\n\x05\x06\x01\x02\n\x02\x12\x04\x9d\x04\x12$\n\ - \r\n\x05\x06\x01\x02\n\x03\x12\x04\x9d\x04/7\n\x0f\n\x05\x06\x01\x02\n\ - \x04\x12\x06\x9e\x04\x04\xa0\x04\x06\n\x13\n\t\x06\x01\x02\n\x04\xb0\xca\ - \xbc\"\x12\x06\x9e\x04\x04\xa0\x04\x06\n\r\n\x05\x06\x01\x02\n\x04\x12\ - \x04\xa1\x04\x046\n\x10\n\x08\x06\x01\x02\n\x04\x9b\x08\0\x12\x04\xa1\ - \x04\x046\n\xca\x02\n\x04\x06\x01\x02\x0b\x12\x06\xa9\x04\x02\xae\x04\ - \x03\x1a\xb9\x02\x20Lists\x20the\x20existing\x20snapshots.\x20Snapshots\ - \x20are\x20used\x20in\x20[Seek](\n\x20https://cloud.google.com/pubsub/do\ - cs/replay-overview)\x20operations,\x20which\n\x20allow\x20you\x20to\x20m\ - anage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\ - \x20can\x20set\n\x20the\x20acknowledgment\x20state\x20of\x20messages\x20\ - in\x20an\x20existing\x20subscription\x20to\x20the\n\x20state\x20captured\ - \x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\x0b\x01\x12\x04\xa9\x04\ - \x06\x13\n\r\n\x05\x06\x01\x02\x0b\x02\x12\x04\xa9\x04\x14(\n\r\n\x05\ - \x06\x01\x02\x0b\x03\x12\x04\xa9\x043H\n\x0f\n\x05\x06\x01\x02\x0b\x04\ - \x12\x06\xaa\x04\x04\xac\x04\x06\n\x13\n\t\x06\x01\x02\x0b\x04\xb0\xca\ - \xbc\"\x12\x06\xaa\x04\x04\xac\x04\x06\n\r\n\x05\x06\x01\x02\x0b\x04\x12\ - \x04\xad\x04\x045\n\x10\n\x08\x06\x01\x02\x0b\x04\x9b\x08\0\x12\x04\xad\ - \x04\x045\n\xa5\x08\n\x04\x06\x01\x02\x0c\x12\x06\xc0\x04\x02\xc6\x04\ - \x03\x1a\x94\x08\x20Creates\x20a\x20snapshot\x20from\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\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\x20If\x20the\ - \x20snapshot\x20already\x20exists,\x20returns\x20`ALREADY_EXISTS`.\n\x20\ - If\x20the\x20requested\x20subscription\x20doesn't\x20exist,\x20returns\ - \x20`NOT_FOUND`.\n\x20If\x20the\x20backlog\x20in\x20the\x20subscription\ - \x20is\x20too\x20old\x20--\x20and\x20the\x20resulting\x20snapshot\n\x20w\ - ould\x20expire\x20in\x20less\x20than\x201\x20hour\x20--\x20then\x20`FAIL\ - ED_PRECONDITION`\x20is\x20returned.\n\x20See\x20also\x20the\x20`Snapshot\ - .expire_time`\x20field.\x20If\x20the\x20name\x20is\x20not\x20provided\ - \x20in\n\x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\x20r\ - andom\n\x20name\x20for\x20this\x20snapshot\x20on\x20the\x20same\x20proje\ - ct\x20as\x20the\x20subscription,\x20conforming\n\x20to\x20the\x20[resour\ - ce\x20name\x20format]\n\x20(https://cloud.google.com/pubsub/docs/admin#r\ - esource_names).\x20The\n\x20generated\x20name\x20is\x20populated\x20in\ - \x20the\x20returned\x20Snapshot\x20object.\x20Note\x20that\x20for\n\x20R\ - EST\x20API\x20requests,\x20you\x20must\x20specify\x20a\x20name\x20in\x20\ - the\x20request.\n\n\r\n\x05\x06\x01\x02\x0c\x01\x12\x04\xc0\x04\x06\x14\ - \n\r\n\x05\x06\x01\x02\x0c\x02\x12\x04\xc0\x04\x15*\n\r\n\x05\x06\x01\ - \x02\x0c\x03\x12\x04\xc0\x045=\n\x0f\n\x05\x06\x01\x02\x0c\x04\x12\x06\ - \xc1\x04\x04\xc4\x04\x06\n\x13\n\t\x06\x01\x02\x0c\x04\xb0\xca\xbc\"\x12\ - \x06\xc1\x04\x04\xc4\x04\x06\n\r\n\x05\x06\x01\x02\x0c\x04\x12\x04\xc5\ - \x04\x04?\n\x10\n\x08\x06\x01\x02\x0c\x04\x9b\x08\0\x12\x04\xc5\x04\x04?\ - \n\xd5\x02\n\x04\x06\x01\x02\r\x12\x06\xce\x04\x02\xd3\x04\x03\x1a\xc4\ - \x02\x20Updates\x20an\x20existing\x20snapshot.\x20Snapshots\x20are\x20us\ - ed\x20in\n\x20Seek\n\x20operations,\x20which\x20allow\n\x20you\x20to\x20\ - manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20yo\ - u\x20can\x20set\x20the\n\x20acknowledgment\x20state\x20of\x20messages\ - \x20in\x20an\x20existing\x20subscription\x20to\x20the\x20state\n\x20capt\ - ured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\r\x01\x12\x04\xce\ - \x04\x06\x14\n\r\n\x05\x06\x01\x02\r\x02\x12\x04\xce\x04\x15*\n\r\n\x05\ - \x06\x01\x02\r\x03\x12\x04\xce\x045=\n\x0f\n\x05\x06\x01\x02\r\x04\x12\ - \x06\xcf\x04\x04\xd2\x04\x06\n\x13\n\t\x06\x01\x02\r\x04\xb0\xca\xbc\"\ - \x12\x06\xcf\x04\x04\xd2\x04\x06\n\xee\x04\n\x04\x06\x01\x02\x0e\x12\x06\ - \xde\x04\x02\xe3\x04\x03\x1a\xdd\x04\x20Removes\x20an\x20existing\x20sna\ - pshot.\x20Snapshots\x20are\x20used\x20in\x20[Seek]\n\x20(https://cloud.g\ - oogle.com/pubsub/docs/replay-overview)\x20operations,\x20which\n\x20allo\ - w\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\ - \x20That\x20is,\x20you\x20can\x20set\n\x20the\x20acknowledgment\x20state\ - \x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20to\x20the\ - \n\x20state\x20captured\x20by\x20a\x20snapshot.\n\x20When\x20the\x20snap\ - shot\x20is\x20deleted,\x20all\x20messages\x20retained\x20in\x20the\x20sn\ - apshot\n\x20are\x20immediately\x20dropped.\x20After\x20a\x20snapshot\x20\ - is\x20deleted,\x20a\x20new\x20one\x20may\x20be\n\x20created\x20with\x20t\ - he\x20same\x20name,\x20but\x20the\x20new\x20one\x20has\x20no\x20associat\ - ion\x20with\x20the\x20old\n\x20snapshot\x20or\x20its\x20subscription,\ - \x20unless\x20the\x20same\x20subscription\x20is\x20specified.\n\n\r\n\ - \x05\x06\x01\x02\x0e\x01\x12\x04\xde\x04\x06\x14\n\r\n\x05\x06\x01\x02\ - \x0e\x02\x12\x04\xde\x04\x15*\n\r\n\x05\x06\x01\x02\x0e\x03\x12\x04\xde\ - \x045J\n\x0f\n\x05\x06\x01\x02\x0e\x04\x12\x06\xdf\x04\x04\xe1\x04\x06\n\ - \x13\n\t\x06\x01\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xdf\x04\x04\xe1\x04\ - \x06\n\r\n\x05\x06\x01\x02\x0e\x04\x12\x04\xe2\x04\x046\n\x10\n\x08\x06\ - \x01\x02\x0e\x04\x9b\x08\0\x12\x04\xe2\x04\x046\n\xea\x03\n\x04\x06\x01\ - \x02\x0f\x12\x06\xec\x04\x02\xf1\x04\x03\x1a\xd9\x03\x20Seeks\x20an\x20e\ - xisting\x20subscription\x20to\x20a\x20point\x20in\x20time\x20or\x20to\ - \x20a\x20given\x20snapshot,\n\x20whichever\x20is\x20provided\x20in\x20th\ - e\x20request.\x20Snapshots\x20are\x20used\x20in\x20[Seek]\n\x20(https://\ - cloud.google.com/pubsub/docs/replay-overview)\x20operations,\x20which\n\ - \x20allow\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20\ - bulk.\x20That\x20is,\x20you\x20can\x20set\n\x20the\x20acknowledgment\x20\ - state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20to\ - \x20the\n\x20state\x20captured\x20by\x20a\x20snapshot.\x20Note\x20that\ - \x20both\x20the\x20subscription\x20and\x20the\n\x20snapshot\x20must\x20b\ - e\x20on\x20the\x20same\x20topic.\n\n\r\n\x05\x06\x01\x02\x0f\x01\x12\x04\ - \xec\x04\x06\n\n\r\n\x05\x06\x01\x02\x0f\x02\x12\x04\xec\x04\x0b\x16\n\r\ - \n\x05\x06\x01\x02\x0f\x03\x12\x04\xec\x04!-\n\x0f\n\x05\x06\x01\x02\x0f\ - \x04\x12\x06\xed\x04\x04\xf0\x04\x06\n\x13\n\t\x06\x01\x02\x0f\x04\xb0\ - \xca\xbc\"\x12\x06\xed\x04\x04\xf0\x04\x06\n(\n\x02\x04\x11\x12\x06\xf5\ - \x04\0\xe7\x05\x01\x1a\x1a\x20A\x20subscription\x20resource.\n\n\x0b\n\ - \x03\x04\x11\x01\x12\x04\xf5\x04\x08\x14\n\r\n\x03\x04\x11\x07\x12\x06\ - \xf6\x04\x02\xf9\x04\x04\n\x0f\n\x05\x04\x11\x07\x9d\x08\x12\x06\xf6\x04\ - \x02\xf9\x04\x04\n\xa8\x03\n\x04\x04\x11\x02\0\x12\x04\x81\x05\x02;\x1a\ - \x99\x03\x20Required.\x20The\x20name\x20of\x20the\x20subscription.\x20It\ - \x20must\x20have\x20the\x20format\n\x20`\"projects/{project}/subscriptio\ - ns/{subscription}\"`.\x20`{subscription}`\x20must\n\x20start\x20with\x20\ - a\x20letter,\x20and\x20contain\x20only\x20letters\x20(`[A-Za-z]`),\x20nu\ - mbers\n\x20(`[0-9]`),\x20dashes\x20(`-`),\x20underscores\x20(`_`),\x20pe\ - riods\x20(`.`),\x20tildes\x20(`~`),\n\x20plus\x20(`+`)\x20or\x20percent\ - \x20signs\x20(`%`).\x20It\x20must\x20be\x20between\x203\x20and\x20255\ - \x20characters\n\x20in\x20length,\x20and\x20it\x20must\x20not\x20start\ - \x20with\x20`\"goog\"`.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\x81\x05\ - \x02\xf9\x04\x04\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\x81\x05\x02\x08\n\r\ - \n\x05\x04\x11\x02\0\x01\x12\x04\x81\x05\t\r\n\r\n\x05\x04\x11\x02\0\x03\ - \x12\x04\x81\x05\x10\x11\n\r\n\x05\x04\x11\x02\0\x08\x12\x04\x81\x05\x12\ - :\n\x10\n\x08\x04\x11\x02\0\x08\x9c\x08\0\x12\x04\x81\x05\x139\n\xe8\x01\ - \n\x04\x04\x11\x02\x01\x12\x06\x86\x05\x02\x89\x05\x04\x1a\xd7\x01\x20Re\ - quired.\x20The\x20name\x20of\x20the\x20topic\x20from\x20which\x20this\ - \x20subscription\x20is\x20receiving\n\x20messages.\x20Format\x20is\x20`p\ - rojects/{project}/topics/{topic}`.\x20The\x20value\x20of\x20this\n\x20fi\ - eld\x20will\x20be\x20`_deleted-topic_`\x20if\x20the\x20topic\x20has\x20b\ - een\x20deleted.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\x86\x05\x02\ - \x81\x05;\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\x86\x05\x02\x08\n\r\n\ - \x05\x04\x11\x02\x01\x01\x12\x04\x86\x05\t\x0e\n\r\n\x05\x04\x11\x02\x01\ - \x03\x12\x04\x86\x05\x11\x12\n\x0f\n\x05\x04\x11\x02\x01\x08\x12\x06\x86\ - \x05\x13\x89\x05\x03\n\x10\n\x08\x04\x11\x02\x01\x08\x9c\x08\0\x12\x04\ - \x87\x05\x04*\n\x0f\n\x07\x04\x11\x02\x01\x08\x9f\x08\x12\x04\x88\x05\ - \x04M\n\xc9\x01\n\x04\x04\x11\x02\x02\x12\x04\x8e\x05\x02\x1d\x1a\xba\ - \x01\x20If\x20push\x20delivery\x20is\x20used\x20with\x20this\x20subscrip\ - tion,\x20this\x20field\x20is\n\x20used\x20to\x20configure\x20it.\x20An\ - \x20empty\x20`pushConfig`\x20signifies\x20that\x20the\x20subscriber\n\ - \x20will\x20pull\x20and\x20ack\x20messages\x20using\x20API\x20methods.\n\ - \n\x0f\n\x05\x04\x11\x02\x02\x04\x12\x06\x8e\x05\x02\x89\x05\x04\n\r\n\ - \x05\x04\x11\x02\x02\x06\x12\x04\x8e\x05\x02\x0c\n\r\n\x05\x04\x11\x02\ - \x02\x01\x12\x04\x8e\x05\r\x18\n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\x8e\ - \x05\x1b\x1c\n\xc7\x08\n\x04\x04\x11\x02\x03\x12\x04\xa4\x05\x02!\x1a\ - \xb8\x08\x20The\x20approximate\x20amount\x20of\x20time\x20(on\x20a\x20be\ - st-effort\x20basis)\x20Pub/Sub\x20waits\x20for\n\x20the\x20subscriber\ - \x20to\x20acknowledge\x20receipt\x20before\x20resending\x20the\x20messag\ - e.\x20In\x20the\n\x20interval\x20after\x20the\x20message\x20is\x20delive\ - red\x20and\x20before\x20it\x20is\x20acknowledged,\x20it\n\x20is\x20consi\ - dered\x20to\x20be\x20outstanding.\x20During\x20that\x20time\x20pe\ - riod,\x20the\n\x20message\x20will\x20not\x20be\x20redelivered\x20(on\x20\ - a\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`\x20if\x20using\n\x20non-streaming\x20pull\ - \x20or\x20send\x20the\x20`ack_id`\x20in\x20a\n\x20`StreamingModifyAckDea\ - dlineRequest`\x20if\x20using\x20streaming\x20pull.\n\x20The\x20minimum\ - \x20custom\x20deadline\x20you\x20can\x20specify\x20is\x2010\x20seconds.\ - \n\x20The\x20maximum\x20custom\x20deadline\x20you\x20can\x20specify\x20i\ - s\x20600\x20seconds\x20(10\x20minutes).\n\x20If\x20this\x20parameter\x20\ - is\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\x20\ - acknowledges\x20the\x20message,\x20the\x20Pub/Sub\n\x20system\x20will\ - \x20eventually\x20redeliver\x20the\x20message.\n\n\x0f\n\x05\x04\x11\x02\ - \x03\x04\x12\x06\xa4\x05\x02\x8e\x05\x1d\n\r\n\x05\x04\x11\x02\x03\x05\ - \x12\x04\xa4\x05\x02\x07\n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xa4\x05\ - \x08\x1c\n\r\n\x05\x04\x11\x02\x03\x03\x12\x04\xa4\x05\x1f\x20\n\xf3\x02\ - \n\x04\x04\x11\x02\x04\x12\x04\xab\x05\x02!\x1a\xe4\x02\x20Indicates\x20\ - whether\x20to\x20retain\x20acknowledged\x20messages.\x20If\x20true,\x20t\ - hen\n\x20messages\x20are\x20not\x20expunged\x20from\x20the\x20subscripti\ - on's\x20backlog,\x20even\x20if\x20they\x20are\n\x20acknowledged,\x20unti\ - l\x20they\x20fall\x20out\x20of\x20the\x20`message_retention_duration`\n\ - \x20window.\x20This\x20must\x20be\x20true\x20if\x20you\x20would\x20like\ - \x20to\x20[Seek\x20to\x20a\x20timestamp]\n\x20(https://cloud.google.com/\ - pubsub/docs/replay-overview#seek_to_a_time).\n\n\x0f\n\x05\x04\x11\x02\ - \x04\x04\x12\x06\xab\x05\x02\xa4\x05!\n\r\n\x05\x04\x11\x02\x04\x05\x12\ - \x04\xab\x05\x02\x06\n\r\n\x05\x04\x11\x02\x04\x01\x12\x04\xab\x05\x07\ - \x1c\n\r\n\x05\x04\x11\x02\x04\x03\x12\x04\xab\x05\x1f\x20\n\xf4\x02\n\ - \x04\x04\x11\x02\x05\x12\x04\xb3\x05\x02:\x1a\xe5\x02\x20How\x20long\x20\ - to\x20retain\x20unacknowledged\x20messages\x20in\x20the\x20subscription'\ - s\x20backlog,\n\x20from\x20the\x20moment\x20a\x20message\x20is\x20publis\ - hed.\n\x20If\x20`retain_acked_messages`\x20is\x20true,\x20then\x20this\ - \x20also\x20configures\x20the\x20retention\n\x20of\x20acknowledged\x20me\ - ssages,\x20and\x20thus\x20configures\x20how\x20far\x20back\x20in\x20time\ - \x20a\x20`Seek`\n\x20can\x20be\x20done.\x20Defaults\x20to\x207\x20days.\ - \x20Cannot\x20be\x20more\x20than\x207\x20days\x20or\x20less\x20than\x201\ - 0\n\x20minutes.\n\n\x0f\n\x05\x04\x11\x02\x05\x04\x12\x06\xb3\x05\x02\ - \xab\x05!\n\r\n\x05\x04\x11\x02\x05\x06\x12\x04\xb3\x05\x02\x1a\n\r\n\ - \x05\x04\x11\x02\x05\x01\x12\x04\xb3\x05\x1b5\n\r\n\x05\x04\x11\x02\x05\ - \x03\x12\x04\xb3\x0589\nm\n\x04\x04\x11\x02\x06\x12\x04\xb7\x05\x02!\x1a\ - _\x20See\x20\ - \x20Creating\x20and\n\x20managing\x20labels.\n\n\x0f\n\x05\x04\x11\ - \x02\x06\x04\x12\x06\xb7\x05\x02\xb3\x05:\n\r\n\x05\x04\x11\x02\x06\x06\ - \x12\x04\xb7\x05\x02\x15\n\r\n\x05\x04\x11\x02\x06\x01\x12\x04\xb7\x05\ - \x16\x1c\n\r\n\x05\x04\x11\x02\x06\x03\x12\x04\xb7\x05\x1f\x20\n\xf2\x01\ - \n\x04\x04\x11\x02\x07\x12\x04\xbd\x05\x02$\x1a\xe3\x01\x20If\x20true,\ - \x20messages\x20published\x20with\x20the\x20same\x20`ordering_key`\x20in\ - \x20`PubsubMessage`\n\x20will\x20be\x20delivered\x20to\x20the\x20subscri\ - bers\x20in\x20the\x20order\x20in\x20which\x20they\n\x20are\x20received\ - \x20by\x20the\x20Pub/Sub\x20system.\x20Otherwise,\x20they\x20may\x20be\ - \x20delivered\x20in\n\x20any\x20order.\n\n\x0f\n\x05\x04\x11\x02\x07\x04\ - \x12\x06\xbd\x05\x02\xb7\x05!\n\r\n\x05\x04\x11\x02\x07\x05\x12\x04\xbd\ - \x05\x02\x06\n\r\n\x05\x04\x11\x02\x07\x01\x12\x04\xbd\x05\x07\x1e\n\r\n\ - \x05\x04\x11\x02\x07\x03\x12\x04\xbd\x05!#\n\xa9\x03\n\x04\x04\x11\x02\ - \x08\x12\x04\xc5\x05\x02*\x1a\x9a\x03\x20A\x20policy\x20that\x20specifie\ - s\x20the\x20conditions\x20for\x20this\x20subscription's\x20expiration.\n\ - \x20A\x20subscription\x20is\x20considered\x20active\x20as\x20long\x20as\ - \x20any\x20connected\x20subscriber\x20is\n\x20successfully\x20consuming\ - \x20messages\x20from\x20the\x20subscription\x20or\x20is\x20issuing\n\x20\ - operations\x20on\x20the\x20subscription.\x20If\x20`expiration_policy`\ - \x20is\x20not\x20set,\x20a\n\x20*default\x20policy*\x20with\x20`ttl`\x20\ - of\x2031\x20days\x20will\x20be\x20used.\x20The\x20minimum\x20allowed\n\ - \x20value\x20for\x20`expiration_policy.ttl`\x20is\x201\x20day.\n\n\x0f\n\ - \x05\x04\x11\x02\x08\x04\x12\x06\xc5\x05\x02\xbd\x05$\n\r\n\x05\x04\x11\ - \x02\x08\x06\x12\x04\xc5\x05\x02\x12\n\r\n\x05\x04\x11\x02\x08\x01\x12\ - \x04\xc5\x05\x13$\n\r\n\x05\x04\x11\x02\x08\x03\x12\x04\xc5\x05')\n\xa2\ - \x02\n\x04\x04\x11\x02\t\x12\x04\xcc\x05\x02\x15\x1a\x93\x02\x20An\x20ex\ - pression\x20written\x20in\x20the\x20Pub/Sub\x20[filter\n\x20language](ht\ - tps://cloud.google.com/pubsub/docs/filtering).\x20If\x20non-empty,\n\x20\ - then\x20only\x20`PubsubMessage`s\x20whose\x20`attributes`\x20field\x20ma\ - tches\x20the\x20filter\x20are\n\x20delivered\x20on\x20this\x20subscripti\ - on.\x20If\x20empty,\x20then\x20no\x20messages\x20are\x20filtered\n\x20ou\ - t.\n\n\x0f\n\x05\x04\x11\x02\t\x04\x12\x06\xcc\x05\x02\xc5\x05*\n\r\n\ - \x05\x04\x11\x02\t\x05\x12\x04\xcc\x05\x02\x08\n\r\n\x05\x04\x11\x02\t\ - \x01\x12\x04\xcc\x05\t\x0f\n\r\n\x05\x04\x11\x02\t\x03\x12\x04\xcc\x05\ - \x12\x14\n\x90\x03\n\x04\x04\x11\x02\n\x12\x04\xd6\x05\x02+\x1a\x81\x03\ - \x20A\x20policy\x20that\x20specifies\x20the\x20conditions\x20for\x20dead\ - \x20lettering\x20messages\x20in\n\x20this\x20subscription.\x20If\x20dead\ - _letter_policy\x20is\x20not\x20set,\x20dead\x20lettering\n\x20is\x20disa\ - bled.\n\n\x20The\x20Cloud\x20Pub/Sub\x20service\x20account\x20associated\ - \x20with\x20this\x20subscriptions's\n\x20parent\x20project\x20(i.e.,\n\ - \x20service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com)\x20m\ - ust\x20have\n\x20permission\x20to\x20Acknowledge()\x20messages\x20on\x20\ - this\x20subscription.\n\n\x0f\n\x05\x04\x11\x02\n\x04\x12\x06\xd6\x05\ - \x02\xcc\x05\x15\n\r\n\x05\x04\x11\x02\n\x06\x12\x04\xd6\x05\x02\x12\n\r\ - \n\x05\x04\x11\x02\n\x01\x12\x04\xd6\x05\x13%\n\r\n\x05\x04\x11\x02\n\ - \x03\x12\x04\xd6\x05(*\n\xe5\x02\n\x04\x04\x11\x02\x0b\x12\x04\xdf\x05\ - \x02\x20\x1a\xd6\x02\x20A\x20policy\x20that\x20specifies\x20how\x20Pub/S\ - ub\x20retries\x20message\x20delivery\x20for\x20this\n\x20subscription.\n\ - \n\x20If\x20not\x20set,\x20the\x20default\x20retry\x20policy\x20is\x20ap\ - plied.\x20This\x20generally\x20implies\n\x20that\x20messages\x20will\x20\ - be\x20retried\x20as\x20soon\x20as\x20possible\x20for\x20healthy\x20subsc\ - ribers.\n\x20RetryPolicy\x20will\x20be\x20triggered\x20on\x20NACKs\x20or\ - \x20acknowledgement\x20deadline\n\x20exceeded\x20events\x20for\x20a\x20g\ - iven\x20message.\n\n\x0f\n\x05\x04\x11\x02\x0b\x04\x12\x06\xdf\x05\x02\ - \xd6\x05+\n\r\n\x05\x04\x11\x02\x0b\x06\x12\x04\xdf\x05\x02\r\n\r\n\x05\ - \x04\x11\x02\x0b\x01\x12\x04\xdf\x05\x0e\x1a\n\r\n\x05\x04\x11\x02\x0b\ - \x03\x12\x04\xdf\x05\x1d\x1f\n\xca\x02\n\x04\x04\x11\x02\x0c\x12\x04\xe6\ - \x05\x02\x15\x1a\xbb\x02\x20Indicates\x20whether\x20the\x20subscription\ - \x20is\x20detached\x20from\x20its\x20topic.\x20Detached\n\x20subscriptio\ - ns\x20don't\x20receive\x20messages\x20from\x20their\x20topic\x20and\x20d\ - on't\x20retain\x20any\n\x20backlog.\x20`Pull`\x20and\x20`StreamingPull`\ - \x20requests\x20will\x20return\n\x20FAILED_PRECONDITION.\x20If\x20the\ - \x20subscription\x20is\x20a\x20push\x20subscription,\x20pushes\x20to\n\ - \x20the\x20endpoint\x20will\x20not\x20be\x20made.\n\n\x0f\n\x05\x04\x11\ - \x02\x0c\x04\x12\x06\xe6\x05\x02\xdf\x05\x20\n\r\n\x05\x04\x11\x02\x0c\ - \x05\x12\x04\xe6\x05\x02\x06\n\r\n\x05\x04\x11\x02\x0c\x01\x12\x04\xe6\ - \x05\x07\x0f\n\r\n\x05\x04\x11\x02\x0c\x03\x12\x04\xe6\x05\x12\x14\n\x8d\ - \x04\n\x02\x04\x12\x12\x06\xf4\x05\0\xfc\x05\x01\x1a\xfe\x03\x20A\x20pol\ - icy\x20that\x20specifies\x20how\x20Cloud\x20Pub/Sub\x20retries\x20messag\ - e\x20delivery.\n\n\x20Retry\x20delay\x20will\x20be\x20exponential\x20bas\ - ed\x20on\x20provided\x20minimum\x20and\x20maximum\n\x20backoffs.\x20http\ - s://en.wikipedia.org/wiki/Exponential_backoff.\n\n\x20RetryPolicy\x20wil\ - l\x20be\x20triggered\x20on\x20NACKs\x20or\x20acknowledgement\x20deadline\ - \x20exceeded\n\x20events\x20for\x20a\x20given\x20message.\n\n\x20Retry\ - \x20Policy\x20is\x20implemented\x20on\x20a\x20best\x20effort\x20basis.\ - \x20At\x20times,\x20the\x20delay\n\x20between\x20consecutive\x20deliveri\ - es\x20may\x20not\x20match\x20the\x20configuration.\x20That\x20is,\n\x20d\ - elay\x20can\x20be\x20more\x20or\x20less\x20than\x20configured\x20backoff\ - .\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xf4\x05\x08\x13\n\x99\x01\n\x04\x04\ - \x12\x02\0\x12\x04\xf7\x05\x02/\x1a\x8a\x01\x20The\x20minimum\x20delay\ - \x20between\x20consecutive\x20deliveries\x20of\x20a\x20given\x20message.\ - \n\x20Value\x20should\x20be\x20between\x200\x20and\x20600\x20seconds.\ - \x20Defaults\x20to\x2010\x20seconds.\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\ - \x06\xf7\x05\x02\xf4\x05\x15\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\xf7\x05\ - \x02\x1a\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xf7\x05\x1b*\n\r\n\x05\x04\ - \x12\x02\0\x03\x12\x04\xf7\x05-.\n\x9a\x01\n\x04\x04\x12\x02\x01\x12\x04\ - \xfb\x05\x02/\x1a\x8b\x01\x20The\x20maximum\x20delay\x20between\x20conse\ - cutive\x20deliveries\x20of\x20a\x20given\x20message.\n\x20Value\x20shoul\ - d\x20be\x20between\x200\x20and\x20600\x20seconds.\x20Defaults\x20to\x206\ - 00\x20seconds.\n\n\x0f\n\x05\x04\x12\x02\x01\x04\x12\x06\xfb\x05\x02\xf7\ - \x05/\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xfb\x05\x02\x1a\n\r\n\x05\ - \x04\x12\x02\x01\x01\x12\x04\xfb\x05\x1b*\n\r\n\x05\x04\x12\x02\x01\x03\ - \x12\x04\xfb\x05-.\n\xf9\x01\n\x02\x04\x13\x12\x06\x83\x06\0\x9d\x06\x01\ - \x1a\xea\x01\x20Dead\x20lettering\x20is\x20done\x20on\x20a\x20best\x20ef\ - fort\x20basis.\x20The\x20same\x20message\x20might\x20be\n\x20dead\x20let\ - tered\x20multiple\x20times.\n\n\x20If\x20validation\x20on\x20any\x20of\ - \x20the\x20fields\x20fails\x20at\x20subscription\x20creation/updation,\n\ - \x20the\x20create/update\x20subscription\x20request\x20will\x20fail.\n\n\ - \x0b\n\x03\x04\x13\x01\x12\x04\x83\x06\x08\x18\n\xa6\x04\n\x04\x04\x13\ - \x02\0\x12\x04\x8d\x06\x02\x1f\x1a\x97\x04\x20The\x20name\x20of\x20the\ - \x20topic\x20to\x20which\x20dead\x20letter\x20messages\x20should\x20be\ - \x20published.\n\x20Format\x20is\x20`projects/{project}/topics/{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.com)\x20m\ - ust\x20have\n\x20permission\x20to\x20Publish()\x20to\x20this\x20topic.\n\ - \n\x20The\x20operation\x20will\x20fail\x20if\x20the\x20topic\x20does\x20\ - not\x20exist.\n\x20Users\x20should\x20ensure\x20that\x20there\x20is\x20a\ - \x20subscription\x20attached\x20to\x20this\x20topic\n\x20since\x20messag\ - es\x20published\x20to\x20a\x20topic\x20with\x20no\x20subscriptions\x20ar\ - e\x20lost.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\x8d\x06\x02\x83\x06\ - \x1a\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\x8d\x06\x02\x08\n\r\n\x05\x04\ - \x13\x02\0\x01\x12\x04\x8d\x06\t\x1a\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\ - \x8d\x06\x1d\x1e\n\x84\x04\n\x04\x04\x13\x02\x01\x12\x04\x9c\x06\x02\"\ - \x1a\xf5\x03\x20The\x20maximum\x20number\x20of\x20delivery\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\x20number\x20of\n\ - \x20NACKs\x20and\x20number\x20of\x20times\x20the\x20acknowledgement\x20d\ - eadline\x20has\x20been\x20exceeded\n\x20for\x20the\x20message).\n\n\x20A\ - \x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDeadline\x20with\x20a\ - \x200\x20deadline.\x20Note\x20that\n\x20client\x20libraries\x20may\x20au\ - tomatically\x20extend\x20ack_deadlines.\n\n\x20This\x20field\x20will\x20\ - be\x20honored\x20on\x20a\x20best\x20effort\x20basis.\n\n\x20If\x20this\ - \x20parameter\x20is\x200,\x20a\x20default\x20value\x20of\x205\x20is\x20u\ - sed.\n\n\x0f\n\x05\x04\x13\x02\x01\x04\x12\x06\x9c\x06\x02\x8d\x06\x1f\n\ - \r\n\x05\x04\x13\x02\x01\x05\x12\x04\x9c\x06\x02\x07\n\r\n\x05\x04\x13\ - \x02\x01\x01\x12\x04\x9c\x06\x08\x1d\n\r\n\x05\x04\x13\x02\x01\x03\x12\ - \x04\x9c\x06\x20!\nt\n\x02\x04\x14\x12\x06\xa1\x06\0\xa9\x06\x01\x1af\ - \x20A\x20policy\x20that\x20specifies\x20the\x20conditions\x20for\x20reso\ - urce\x20expiration\x20(i.e.,\n\x20automatic\x20resource\x20deletion).\n\ - \n\x0b\n\x03\x04\x14\x01\x12\x04\xa1\x06\x08\x18\n\x89\x03\n\x04\x04\x14\ - \x02\0\x12\x04\xa8\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\x0f\n\x05\x04\x14\x02\0\x04\x12\ - \x06\xa8\x06\x02\xa1\x06\x1a\n\r\n\x05\x04\x14\x02\0\x06\x12\x04\xa8\x06\ - \x02\x1a\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xa8\x06\x1b\x1e\n\r\n\x05\ - \x04\x14\x02\0\x03\x12\x04\xa8\x06!\"\n;\n\x02\x04\x15\x12\x06\xac\x06\0\ - \xe6\x06\x01\x1a-\x20Configuration\x20for\x20a\x20push\x20delivery\x20en\ - dpoint.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xac\x06\x08\x12\n\x9a\x01\n\ - \x04\x04\x15\x03\0\x12\x06\xb0\x06\x02\xbf\x06\x03\x1a\x89\x01\x20Contai\ - ns\x20information\x20needed\x20for\x20generating\x20an\n\x20[OpenID\x20C\ - onnect\n\x20token](https://developers.google.com/identity/protocols/Open\ - IDConnect).\n\n\r\n\x05\x04\x15\x03\0\x01\x12\x04\xb0\x06\n\x13\n\xab\ - \x02\n\x06\x04\x15\x03\0\x02\0\x12\x04\xb6\x06\x04%\x1a\x9a\x02\x20[Serv\ - ice\x20account\n\x20email](https://cloud.google.com/iam/docs/service-acc\ - ounts)\n\x20to\x20be\x20used\x20for\x20generating\x20the\x20OIDC\x20toke\ - n.\x20The\x20caller\x20(for\n\x20CreateSubscription,\x20UpdateSubscripti\ - on,\x20and\x20ModifyPushConfig\x20RPCs)\x20must\n\x20have\x20the\x20iam.\ - serviceAccounts.actAs\x20permission\x20for\x20the\x20service\x20account.\ - \n\n\x11\n\x07\x04\x15\x03\0\x02\0\x04\x12\x06\xb6\x06\x04\xb0\x06\x15\n\ - \x0f\n\x07\x04\x15\x03\0\x02\0\x05\x12\x04\xb6\x06\x04\n\n\x0f\n\x07\x04\ - \x15\x03\0\x02\0\x01\x12\x04\xb6\x06\x0b\x20\n\x0f\n\x07\x04\x15\x03\0\ - \x02\0\x03\x12\x04\xb6\x06#$\n\xb0\x03\n\x06\x04\x15\x03\0\x02\x01\x12\ - \x04\xbe\x06\x04\x18\x1a\x9f\x03\x20Audience\x20to\x20be\x20used\x20when\ - \x20generating\x20OIDC\x20token.\x20The\x20audience\x20claim\n\x20identi\ - fies\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\x20abou\ - t\x20the\x20OIDC\x20JWT\n\x20token\x20audience\x20here:\x20https://tools\ - .ietf.org/html/rfc7519#section-4.1.3\n\x20Note:\x20if\x20not\x20specifie\ - d,\x20the\x20Push\x20endpoint\x20URL\x20will\x20be\x20used.\n\n\x11\n\ - \x07\x04\x15\x03\0\x02\x01\x04\x12\x06\xbe\x06\x04\xb6\x06%\n\x0f\n\x07\ - \x04\x15\x03\0\x02\x01\x05\x12\x04\xbe\x06\x04\n\n\x0f\n\x07\x04\x15\x03\ - \0\x02\x01\x01\x12\x04\xbe\x06\x0b\x13\n\x0f\n\x07\x04\x15\x03\0\x02\x01\ - \x03\x12\x04\xbe\x06\x16\x17\n\x97\x01\n\x04\x04\x15\x02\0\x12\x04\xc3\ - \x06\x02\x1b\x1a\x88\x01\x20A\x20URL\x20locating\x20the\x20endpoint\x20t\ - o\x20which\x20messages\x20should\x20be\x20pushed.\n\x20For\x20example,\ - \x20a\x20Webhook\x20endpoint\x20might\x20use\x20`https://example.com/pus\ - h`.\n\n\x0f\n\x05\x04\x15\x02\0\x04\x12\x06\xc3\x06\x02\xbf\x06\x03\n\r\ - \n\x05\x04\x15\x02\0\x05\x12\x04\xc3\x06\x02\x08\n\r\n\x05\x04\x15\x02\0\ - \x01\x12\x04\xc3\x06\t\x16\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xc3\x06\ - \x19\x1a\n\x82\x08\n\x04\x04\x15\x02\x01\x12\x04\xda\x06\x02%\x1a\xf3\ - \x07\x20Endpoint\x20configuration\x20attributes\x20that\x20can\x20be\x20\ - used\x20to\x20control\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\x20cha\ - nge\x20the\x20format\x20of\x20the\x20pushed\x20message.\x20This\x20attri\ - bute\n\x20indicates\x20the\x20version\x20of\x20the\x20data\x20expected\ - \x20by\x20the\x20endpoint.\x20This\n\x20controls\x20the\x20shape\x20of\ - \x20the\x20pushed\x20message\x20(i.e.,\x20its\x20fields\x20and\x20metada\ - ta).\n\n\x20If\x20not\x20present\x20during\x20the\x20`CreateSubscription\ - `\x20call,\x20it\x20will\x20default\x20to\n\x20the\x20version\x20of\x20t\ - he\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\x20wil\ - l\x20always\x20return\x20a\x20valid\x20version,\x20even\x20if\x20the\x20\ - subscription\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\x20f\ - ormat\x20defined\x20in\x20the\x20v1beta1\x20Pub/Sub\x20API.\n\x20*\x20`v\ - 1`\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}\x20
\n\ - \n\x0f\n\x05\x04\x15\x02\x01\x04\x12\x06\xda\x06\x02\xc3\x06\x1b\n\r\n\ - \x05\x04\x15\x02\x01\x06\x12\x04\xda\x06\x02\x15\n\r\n\x05\x04\x15\x02\ - \x01\x01\x12\x04\xda\x06\x16\x20\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\ - \xda\x06#$\n\xca\x02\n\x04\x04\x15\x08\0\x12\x06\xe1\x06\x02\xe5\x06\x03\ - \x1a\xb9\x02\x20An\x20authentication\x20method\x20used\x20by\x20push\x20\ - endpoints\x20to\x20verify\x20the\x20source\x20of\n\x20push\x20requests.\ - \x20This\x20can\x20be\x20used\x20with\x20push\x20endpoints\x20that\x20ar\ - e\x20private\x20by\n\x20default\x20to\x20allow\x20requests\x20only\x20fr\ - om\x20the\x20Cloud\x20Pub/Sub\x20system,\x20for\x20example.\n\x20This\ - \x20field\x20is\x20optional\x20and\x20should\x20be\x20set\x20only\x20by\ - \x20users\x20interested\x20in\n\x20authenticated\x20push.\n\n\r\n\x05\ - \x04\x15\x08\0\x01\x12\x04\xe1\x06\x08\x1d\n\x9d\x01\n\x04\x04\x15\x02\ - \x02\x12\x04\xe4\x06\x04\x1d\x1a\x8e\x01\x20If\x20specified,\x20Pub/Sub\ - \x20will\x20generate\x20and\x20attach\x20an\x20OIDC\x20JWT\x20token\x20a\ - s\x20an\n\x20`Authorization`\x20header\x20in\x20the\x20HTTP\x20request\ - \x20for\x20every\x20pushed\x20message.\n\n\r\n\x05\x04\x15\x02\x02\x06\ - \x12\x04\xe4\x06\x04\r\n\r\n\x05\x04\x15\x02\x02\x01\x12\x04\xe4\x06\x0e\ - \x18\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\xe4\x06\x1b\x1c\nB\n\x02\x04\ - \x16\x12\x06\xe9\x06\0\x81\x07\x01\x1a4\x20A\x20message\x20and\x20its\ - \x20corresponding\x20acknowledgment\x20ID.\n\n\x0b\n\x03\x04\x16\x01\x12\ - \x04\xe9\x06\x08\x17\nH\n\x04\x04\x16\x02\0\x12\x04\xeb\x06\x02\x14\x1a:\ - \x20This\x20ID\x20can\x20be\x20used\x20to\x20acknowledge\x20the\x20recei\ - ved\x20message.\n\n\x0f\n\x05\x04\x16\x02\0\x04\x12\x06\xeb\x06\x02\xe9\ - \x06\x19\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\xeb\x06\x02\x08\n\r\n\x05\ - \x04\x16\x02\0\x01\x12\x04\xeb\x06\t\x0f\n\r\n\x05\x04\x16\x02\0\x03\x12\ - \x04\xeb\x06\x12\x13\n\x1c\n\x04\x04\x16\x02\x01\x12\x04\xee\x06\x02\x1c\ - \x1a\x0e\x20The\x20message.\n\n\x0f\n\x05\x04\x16\x02\x01\x04\x12\x06\ - \xee\x06\x02\xeb\x06\x14\n\r\n\x05\x04\x16\x02\x01\x06\x12\x04\xee\x06\ - \x02\x0f\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\xee\x06\x10\x17\n\r\n\x05\ - \x04\x16\x02\x01\x03\x12\x04\xee\x06\x1a\x1b\n\xe5\x05\n\x04\x04\x16\x02\ - \x02\x12\x04\x80\x07\x02\x1d\x1a\xd6\x05\x20The\x20approximate\x20number\ - \x20of\x20times\x20that\x20Cloud\x20Pub/Sub\x20has\x20attempted\x20to\ - \x20deliver\n\x20the\x20associated\x20message\x20to\x20a\x20subscriber.\ - \n\n\x20More\x20precisely,\x20this\x20is\x201\x20+\x20(number\x20of\x20N\ - ACKs)\x20+\n\x20(number\x20of\x20ack_deadline\x20exceeds)\x20for\x20this\ - \x20message.\n\n\x20A\x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDea\ - dline\x20with\x20a\x200\x20deadline.\x20An\x20ack_deadline\n\x20exceeds\ - \x20event\x20is\x20whenever\x20a\x20message\x20is\x20not\x20acknowledged\ - \x20within\n\x20ack_deadline.\x20Note\x20that\x20ack_deadline\x20is\x20i\ - nitially\n\x20Subscription.ackDeadlineSeconds,\x20but\x20may\x20get\x20e\ - xtended\x20automatically\x20by\n\x20the\x20client\x20library.\n\n\x20Upo\ - n\x20the\x20first\x20delivery\x20of\x20a\x20given\x20message,\x20`delive\ - ry_attempt`\x20will\x20have\x20a\n\x20value\x20of\x201.\x20The\x20value\ - \x20is\x20calculated\x20at\x20best\x20effort\x20and\x20is\x20approximate\ - .\n\n\x20If\x20a\x20DeadLetterPolicy\x20is\x20not\x20set\x20on\x20the\ - \x20subscription,\x20this\x20will\x20be\x200.\n\n\x0f\n\x05\x04\x16\x02\ - \x02\x04\x12\x06\x80\x07\x02\xee\x06\x1c\n\r\n\x05\x04\x16\x02\x02\x05\ - \x12\x04\x80\x07\x02\x07\n\r\n\x05\x04\x16\x02\x02\x01\x12\x04\x80\x07\ - \x08\x18\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\x80\x07\x1b\x1c\n7\n\x02\ - \x04\x17\x12\x06\x84\x07\0\x8d\x07\x01\x1a)\x20Request\x20for\x20the\x20\ - GetSubscription\x20method.\n\n\x0b\n\x03\x04\x17\x01\x12\x04\x84\x07\x08\ - \x1e\nu\n\x04\x04\x17\x02\0\x12\x06\x87\x07\x02\x8c\x07\x04\x1ae\x20Requ\ - ired.\x20The\x20name\x20of\x20the\x20subscription\x20to\x20get.\n\x20For\ - mat\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\x0f\n\x05\x04\ - \x17\x02\0\x04\x12\x06\x87\x07\x02\x84\x07\x20\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\x15\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\x87\x07\x18\x19\n\x0f\n\x05\ - \x04\x17\x02\0\x08\x12\x06\x87\x07\x1a\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:\n\x02\x04\x18\x12\x06\x90\ - \x07\0\x98\x07\x01\x1a,\x20Request\x20for\x20the\x20UpdateSubscription\ - \x20method.\n\n\x0b\n\x03\x04\x18\x01\x12\x04\x90\x07\x08!\n:\n\x04\x04\ - \x18\x02\0\x12\x04\x92\x07\x02I\x1a,\x20Required.\x20The\x20updated\x20s\ - ubscription\x20object.\n\n\x0f\n\x05\x04\x18\x02\0\x04\x12\x06\x92\x07\ - \x02\x90\x07#\n\r\n\x05\x04\x18\x02\0\x06\x12\x04\x92\x07\x02\x0e\n\r\n\ - \x05\x04\x18\x02\0\x01\x12\x04\x92\x07\x0f\x1b\n\r\n\x05\x04\x18\x02\0\ - \x03\x12\x04\x92\x07\x1e\x1f\n\r\n\x05\x04\x18\x02\0\x08\x12\x04\x92\x07\ - \x20H\n\x10\n\x08\x04\x18\x02\0\x08\x9c\x08\0\x12\x04\x92\x07!G\n|\n\x04\ - \x04\x18\x02\x01\x12\x06\x96\x07\x02\x97\x07/\x1al\x20Required.\x20Indic\ - ates\x20which\x20fields\x20in\x20the\x20provided\x20subscription\x20to\ - \x20update.\n\x20Must\x20be\x20specified\x20and\x20non-empty.\n\n\x0f\n\ - \x05\x04\x18\x02\x01\x04\x12\x06\x96\x07\x02\x92\x07I\n\r\n\x05\x04\x18\ - \x02\x01\x06\x12\x04\x96\x07\x02\x1b\n\r\n\x05\x04\x18\x02\x01\x01\x12\ - \x04\x96\x07\x1c'\n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\x96\x07*+\n\r\n\ - \x05\x04\x18\x02\x01\x08\x12\x04\x97\x07\x06.\n\x10\n\x08\x04\x18\x02\ - \x01\x08\x9c\x08\0\x12\x04\x97\x07\x07-\n;\n\x02\x04\x19\x12\x06\x9b\x07\ - \0\xac\x07\x01\x1a-\x20Request\x20for\x20the\x20`ListSubscriptions`\x20m\ - ethod.\n\n\x0b\n\x03\x04\x19\x01\x12\x04\x9b\x07\x08\x20\nw\n\x04\x04\ - \x19\x02\0\x12\x06\x9e\x07\x02\xa3\x07\x04\x1ag\x20Required.\x20The\x20n\ - ame\x20of\x20the\x20project\x20in\x20which\x20to\x20list\x20subscription\ - s.\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04\x19\ - \x02\0\x04\x12\x06\x9e\x07\x02\x9b\x07\"\n\r\n\x05\x04\x19\x02\0\x05\x12\ - \x04\x9e\x07\x02\x08\n\r\n\x05\x04\x19\x02\0\x01\x12\x04\x9e\x07\t\x10\n\ - \r\n\x05\x04\x19\x02\0\x03\x12\x04\x9e\x07\x13\x14\n\x0f\n\x05\x04\x19\ - \x02\0\x08\x12\x06\x9e\x07\x15\xa3\x07\x03\n\x10\n\x08\x04\x19\x02\0\x08\ - \x9c\x08\0\x12\x04\x9f\x07\x04*\n\x11\n\x07\x04\x19\x02\0\x08\x9f\x08\ - \x12\x06\xa0\x07\x04\xa2\x07\x05\n:\n\x04\x04\x19\x02\x01\x12\x04\xa6\ - \x07\x02\x16\x1a,\x20Maximum\x20number\x20of\x20subscriptions\x20to\x20r\ - eturn.\n\n\x0f\n\x05\x04\x19\x02\x01\x04\x12\x06\xa6\x07\x02\xa3\x07\x04\ - \n\r\n\x05\x04\x19\x02\x01\x05\x12\x04\xa6\x07\x02\x07\n\r\n\x05\x04\x19\ - \x02\x01\x01\x12\x04\xa6\x07\x08\x11\n\r\n\x05\x04\x19\x02\x01\x03\x12\ - \x04\xa6\x07\x14\x15\n\xd2\x01\n\x04\x04\x19\x02\x02\x12\x04\xab\x07\x02\ - \x18\x1a\xc3\x01\x20The\x20value\x20returned\x20by\x20the\x20last\x20`Li\ - stSubscriptionsResponse`;\x20indicates\x20that\n\x20this\x20is\x20a\x20c\ - ontinuation\x20of\x20a\x20prior\x20`ListSubscriptions`\x20call,\x20and\ - \x20that\x20the\n\x20system\x20should\x20return\x20the\x20next\x20page\ - \x20of\x20data.\n\n\x0f\n\x05\x04\x19\x02\x02\x04\x12\x06\xab\x07\x02\ - \xa6\x07\x16\n\r\n\x05\x04\x19\x02\x02\x05\x12\x04\xab\x07\x02\x08\n\r\n\ - \x05\x04\x19\x02\x02\x01\x12\x04\xab\x07\t\x13\n\r\n\x05\x04\x19\x02\x02\ - \x03\x12\x04\xab\x07\x16\x17\n<\n\x02\x04\x1a\x12\x06\xaf\x07\0\xb7\x07\ - \x01\x1a.\x20Response\x20for\x20the\x20`ListSubscriptions`\x20method.\n\ - \n\x0b\n\x03\x04\x1a\x01\x12\x04\xaf\x07\x08!\n9\n\x04\x04\x1a\x02\0\x12\ - \x04\xb1\x07\x02*\x1a+\x20The\x20subscriptions\x20that\x20match\x20the\ - \x20request.\n\n\r\n\x05\x04\x1a\x02\0\x04\x12\x04\xb1\x07\x02\n\n\r\n\ - \x05\x04\x1a\x02\0\x06\x12\x04\xb1\x07\x0b\x17\n\r\n\x05\x04\x1a\x02\0\ - \x01\x12\x04\xb1\x07\x18%\n\r\n\x05\x04\x1a\x02\0\x03\x12\x04\xb1\x07()\ - \n\xc2\x01\n\x04\x04\x1a\x02\x01\x12\x04\xb6\x07\x02\x1d\x1a\xb3\x01\x20\ - If\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\x20more\ - \x20subscriptions\x20that\x20match\n\x20the\x20request;\x20this\x20value\ - \x20should\x20be\x20passed\x20in\x20a\x20new\n\x20`ListSubscriptionsRequ\ - est`\x20to\x20get\x20more\x20subscriptions.\n\n\x0f\n\x05\x04\x1a\x02\ - \x01\x04\x12\x06\xb6\x07\x02\xb1\x07*\n\r\n\x05\x04\x1a\x02\x01\x05\x12\ - \x04\xb6\x07\x02\x08\n\r\n\x05\x04\x1a\x02\x01\x01\x12\x04\xb6\x07\t\x18\ - \n\r\n\x05\x04\x1a\x02\x01\x03\x12\x04\xb6\x07\x1b\x1c\n:\n\x02\x04\x1b\ - \x12\x06\xba\x07\0\xc3\x07\x01\x1a,\x20Request\x20for\x20the\x20DeleteSu\ - bscription\x20method.\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xba\x07\x08!\nl\ - \n\x04\x04\x1b\x02\0\x12\x06\xbd\x07\x02\xc2\x07\x04\x1a\\\x20Required.\ - \x20The\x20subscription\x20to\x20delete.\n\x20Format\x20is\x20`projects/\ - {project}/subscriptions/{sub}`.\n\n\x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\ - \xbd\x07\x02\xba\x07#\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\xbd\x07\x02\ - \x08\n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\xbd\x07\t\x15\n\r\n\x05\x04\x1b\ - \x02\0\x03\x12\x04\xbd\x07\x18\x19\n\x0f\n\x05\x04\x1b\x02\0\x08\x12\x06\ - \xbd\x07\x1a\xc2\x07\x03\n\x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\ - \xbe\x07\x04*\n\x11\n\x07\x04\x1b\x02\0\x08\x9f\x08\x12\x06\xbf\x07\x04\ - \xc1\x07\x05\n8\n\x02\x04\x1c\x12\x06\xc6\x07\0\xd7\x07\x01\x1a*\x20Requ\ - est\x20for\x20the\x20ModifyPushConfig\x20method.\n\n\x0b\n\x03\x04\x1c\ - \x01\x12\x04\xc6\x07\x08\x1f\nn\n\x04\x04\x1c\x02\0\x12\x06\xc9\x07\x02\ - \xce\x07\x04\x1a^\x20Required.\x20The\x20name\x20of\x20the\x20subscripti\ - on.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\ - \x0f\n\x05\x04\x1c\x02\0\x04\x12\x06\xc9\x07\x02\xc6\x07!\n\r\n\x05\x04\ - \x1c\x02\0\x05\x12\x04\xc9\x07\x02\x08\n\r\n\x05\x04\x1c\x02\0\x01\x12\ - \x04\xc9\x07\t\x15\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xc9\x07\x18\x19\n\ - \x0f\n\x05\x04\x1c\x02\0\x08\x12\x06\xc9\x07\x1a\xce\x07\x03\n\x10\n\x08\ - \x04\x1c\x02\0\x08\x9c\x08\0\x12\x04\xca\x07\x04*\n\x11\n\x07\x04\x1c\ - \x02\0\x08\x9f\x08\x12\x06\xcb\x07\x04\xcd\x07\x05\n\xc2\x02\n\x04\x04\ - \x1c\x02\x01\x12\x04\xd6\x07\x02F\x1a\xb3\x02\x20Required.\x20The\x20pus\ - h\x20configuration\x20for\x20future\x20deliveries.\n\n\x20An\x20empty\ - \x20`pushConfig`\x20indicates\x20that\x20the\x20Pub/Sub\x20system\x20sho\ - uld\n\x20stop\x20pushing\x20messages\x20from\x20the\x20given\x20subscrip\ - tion\x20and\x20allow\n\x20messages\x20to\x20be\x20pulled\x20and\x20ackno\ - wledged\x20-\x20effectively\x20pausing\n\x20the\x20subscription\x20if\ - \x20`Pull`\x20or\x20`StreamingPull`\x20is\x20not\x20called.\n\n\x0f\n\ - \x05\x04\x1c\x02\x01\x04\x12\x06\xd6\x07\x02\xce\x07\x04\n\r\n\x05\x04\ - \x1c\x02\x01\x06\x12\x04\xd6\x07\x02\x0c\n\r\n\x05\x04\x1c\x02\x01\x01\ - \x12\x04\xd6\x07\r\x18\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xd6\x07\x1b\ - \x1c\n\r\n\x05\x04\x1c\x02\x01\x08\x12\x04\xd6\x07\x1dE\n\x10\n\x08\x04\ - \x1c\x02\x01\x08\x9c\x08\0\x12\x04\xd6\x07\x1eD\n.\n\x02\x04\x1d\x12\x06\ - \xda\x07\0\xf2\x07\x01\x1a\x20\x20Request\x20for\x20the\x20`Pull`\x20met\ - hod.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\xda\x07\x08\x13\n\x87\x01\n\x04\ - \x04\x1d\x02\0\x12\x06\xdd\x07\x02\xe2\x07\x04\x1aw\x20Required.\x20The\ - \x20subscription\x20from\x20which\x20messages\x20should\x20be\x20pulled.\ - \n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\x0f\ - \n\x05\x04\x1d\x02\0\x04\x12\x06\xdd\x07\x02\xda\x07\x15\n\r\n\x05\x04\ - \x1d\x02\0\x05\x12\x04\xdd\x07\x02\x08\n\r\n\x05\x04\x1d\x02\0\x01\x12\ - \x04\xdd\x07\t\x15\n\r\n\x05\x04\x1d\x02\0\x03\x12\x04\xdd\x07\x18\x19\n\ - \x0f\n\x05\x04\x1d\x02\0\x08\x12\x06\xdd\x07\x1a\xe2\x07\x03\n\x10\n\x08\ - \x04\x1d\x02\0\x08\x9c\x08\0\x12\x04\xde\x07\x04*\n\x11\n\x07\x04\x1d\ - \x02\0\x08\x9f\x08\x12\x06\xdf\x07\x04\xe1\x07\x05\n\xdf\x03\n\x04\x04\ - \x1d\x02\x01\x12\x06\xeb\x07\x02\xec\x07B\x1a\xce\x03\x20Optional.\x20If\ - \x20this\x20field\x20set\x20to\x20true,\x20the\x20system\x20will\x20resp\ - ond\x20immediately\n\x20even\x20if\x20it\x20there\x20are\x20no\x20messag\ - es\x20available\x20to\x20return\x20in\x20the\x20`Pull`\n\x20response.\ - \x20Otherwise,\x20the\x20system\x20may\x20wait\x20(for\x20a\x20bounded\ - \x20amount\x20of\x20time)\n\x20until\x20at\x20least\x20one\x20message\ - \x20is\x20available,\x20rather\x20than\x20returning\x20no\x20messages.\n\ - \x20Warning:\x20setting\x20this\x20field\x20to\x20`true`\x20is\x20discou\ - raged\x20because\x20it\x20adversely\n\x20impacts\x20the\x20performance\ - \x20of\x20`Pull`\x20operations.\x20We\x20recommend\x20that\x20users\x20d\ - o\n\x20not\x20set\x20this\x20field.\n\n\x0f\n\x05\x04\x1d\x02\x01\x04\ - \x12\x06\xeb\x07\x02\xe2\x07\x04\n\r\n\x05\x04\x1d\x02\x01\x05\x12\x04\ - \xeb\x07\x02\x06\n\r\n\x05\x04\x1d\x02\x01\x01\x12\x04\xeb\x07\x07\x19\n\ - \r\n\x05\x04\x1d\x02\x01\x03\x12\x04\xeb\x07\x1c\x1d\n\r\n\x05\x04\x1d\ - \x02\x01\x08\x12\x04\xec\x07\x06A\n\x0e\n\x06\x04\x1d\x02\x01\x08\x03\ - \x12\x04\xec\x07\x07\x18\n\x10\n\x08\x04\x1d\x02\x01\x08\x9c\x08\0\x12\ - \x04\xec\x07\x1a@\n\xb2\x01\n\x04\x04\x1d\x02\x02\x12\x04\xf1\x07\x02B\ - \x1a\xa3\x01\x20Required.\x20The\x20maximum\x20number\x20of\x20messages\ - \x20to\x20return\x20for\x20this\x20request.\x20Must\n\x20be\x20a\x20posi\ - tive\x20integer.\x20The\x20Pub/Sub\x20system\x20may\x20return\x20fewer\ - \x20than\x20the\x20number\n\x20specified.\n\n\x0f\n\x05\x04\x1d\x02\x02\ - \x04\x12\x06\xf1\x07\x02\xec\x07B\n\r\n\x05\x04\x1d\x02\x02\x05\x12\x04\ - \xf1\x07\x02\x07\n\r\n\x05\x04\x1d\x02\x02\x01\x12\x04\xf1\x07\x08\x14\n\ - \r\n\x05\x04\x1d\x02\x02\x03\x12\x04\xf1\x07\x17\x18\n\r\n\x05\x04\x1d\ - \x02\x02\x08\x12\x04\xf1\x07\x19A\n\x10\n\x08\x04\x1d\x02\x02\x08\x9c\ - \x08\0\x12\x04\xf1\x07\x1a@\n/\n\x02\x04\x1e\x12\x06\xf5\x07\0\xfb\x07\ - \x01\x1a!\x20Response\x20for\x20the\x20`Pull`\x20method.\n\n\x0b\n\x03\ - \x04\x1e\x01\x12\x04\xf5\x07\x08\x14\n\xaa\x02\n\x04\x04\x1e\x02\0\x12\ - \x04\xfa\x07\x021\x1a\x9b\x02\x20Received\x20Pub/Sub\x20messages.\x20The\ - \x20list\x20will\x20be\x20empty\x20if\x20there\x20are\x20no\x20more\n\ - \x20messages\x20available\x20in\x20the\x20backlog.\x20For\x20JSON,\x20th\ - e\x20response\x20can\x20be\x20entirely\n\x20empty.\x20The\x20Pub/Sub\x20\ - system\x20may\x20return\x20fewer\x20than\x20the\x20`maxMessages`\x20requ\ - ested\n\x20even\x20if\x20there\x20are\x20more\x20messages\x20available\ - \x20in\x20the\x20backlog.\n\n\r\n\x05\x04\x1e\x02\0\x04\x12\x04\xfa\x07\ - \x02\n\n\r\n\x05\x04\x1e\x02\0\x06\x12\x04\xfa\x07\x0b\x1a\n\r\n\x05\x04\ - \x1e\x02\0\x01\x12\x04\xfa\x07\x1b,\n\r\n\x05\x04\x1e\x02\0\x03\x12\x04\ - \xfa\x07/0\n9\n\x02\x04\x1f\x12\x06\xfe\x07\0\x94\x08\x01\x1a+\x20Reques\ - t\x20for\x20the\x20ModifyAckDeadline\x20method.\n\n\x0b\n\x03\x04\x1f\ - \x01\x12\x04\xfe\x07\x08\x20\nn\n\x04\x04\x1f\x02\0\x12\x06\x81\x08\x02\ - \x86\x08\x04\x1a^\x20Required.\x20The\x20name\x20of\x20the\x20subscripti\ - on.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\ - \x0f\n\x05\x04\x1f\x02\0\x04\x12\x06\x81\x08\x02\xfe\x07\"\n\r\n\x05\x04\ - \x1f\x02\0\x05\x12\x04\x81\x08\x02\x08\n\r\n\x05\x04\x1f\x02\0\x01\x12\ - \x04\x81\x08\t\x15\n\r\n\x05\x04\x1f\x02\0\x03\x12\x04\x81\x08\x18\x19\n\ - \x0f\n\x05\x04\x1f\x02\0\x08\x12\x06\x81\x08\x1a\x86\x08\x03\n\x10\n\x08\ - \x04\x1f\x02\0\x08\x9c\x08\0\x12\x04\x82\x08\x04*\n\x11\n\x07\x04\x1f\ - \x02\0\x08\x9f\x08\x12\x06\x83\x08\x04\x85\x08\x05\n5\n\x04\x04\x1f\x02\ - \x01\x12\x04\x89\x08\x02G\x1a'\x20Required.\x20List\x20of\x20acknowledgm\ - ent\x20IDs.\n\n\r\n\x05\x04\x1f\x02\x01\x04\x12\x04\x89\x08\x02\n\n\r\n\ - \x05\x04\x1f\x02\x01\x05\x12\x04\x89\x08\x0b\x11\n\r\n\x05\x04\x1f\x02\ - \x01\x01\x12\x04\x89\x08\x12\x19\n\r\n\x05\x04\x1f\x02\x01\x03\x12\x04\ - \x89\x08\x1c\x1d\n\r\n\x05\x04\x1f\x02\x01\x08\x12\x04\x89\x08\x1eF\n\ - \x10\n\x08\x04\x1f\x02\x01\x08\x9c\x08\0\x12\x04\x89\x08\x1fE\n\xb4\x04\ - \n\x04\x04\x1f\x02\x02\x12\x04\x93\x08\x02J\x1a\xa5\x04\x20Required.\x20\ - The\x20new\x20ack\x20deadline\x20with\x20respect\x20to\x20the\x20time\ - \x20this\x20request\x20was\n\x20sent\x20to\x20the\x20Pub/Sub\x20system.\ - \x20For\x20example,\x20if\x20the\x20value\x20is\x2010,\x20the\x20new\x20\ - ack\n\x20deadline\x20will\x20expire\x2010\x20seconds\x20after\x20the\x20\ - `ModifyAckDeadline`\x20call\x20was\n\x20made.\x20Specifying\x20zero\x20m\ - ight\x20immediately\x20make\x20the\x20message\x20available\x20for\n\x20d\ - elivery\x20to\x20another\x20subscriber\x20client.\x20This\x20typically\ - \x20results\x20in\x20an\n\x20increase\x20in\x20the\x20rate\x20of\x20mess\ - age\x20redeliveries\x20(that\x20is,\x20duplicates).\n\x20The\x20minimum\ - \x20deadline\x20you\x20can\x20specify\x20is\x200\x20seconds.\n\x20The\ - \x20maximum\x20deadline\x20you\x20can\x20specify\x20is\x20600\x20seconds\ - \x20(10\x20minutes).\n\n\x0f\n\x05\x04\x1f\x02\x02\x04\x12\x06\x93\x08\ - \x02\x89\x08G\n\r\n\x05\x04\x1f\x02\x02\x05\x12\x04\x93\x08\x02\x07\n\r\ - \n\x05\x04\x1f\x02\x02\x01\x12\x04\x93\x08\x08\x1c\n\r\n\x05\x04\x1f\x02\ - \x02\x03\x12\x04\x93\x08\x1f\x20\n\r\n\x05\x04\x1f\x02\x02\x08\x12\x04\ - \x93\x08!I\n\x10\n\x08\x04\x1f\x02\x02\x08\x9c\x08\0\x12\x04\x93\x08\"H\ - \n3\n\x02\x04\x20\x12\x06\x97\x08\0\xa5\x08\x01\x1a%\x20Request\x20for\ - \x20the\x20Acknowledge\x20method.\n\n\x0b\n\x03\x04\x20\x01\x12\x04\x97\ - \x08\x08\x1a\n\x86\x01\n\x04\x04\x20\x02\0\x12\x06\x9a\x08\x02\x9f\x08\ - \x04\x1av\x20Required.\x20The\x20subscription\x20whose\x20message\x20is\ - \x20being\x20acknowledged.\n\x20Format\x20is\x20`projects/{project}/subs\ - criptions/{sub}`.\n\n\x0f\n\x05\x04\x20\x02\0\x04\x12\x06\x9a\x08\x02\ - \x97\x08\x1c\n\r\n\x05\x04\x20\x02\0\x05\x12\x04\x9a\x08\x02\x08\n\r\n\ - \x05\x04\x20\x02\0\x01\x12\x04\x9a\x08\t\x15\n\r\n\x05\x04\x20\x02\0\x03\ - \x12\x04\x9a\x08\x18\x19\n\x0f\n\x05\x04\x20\x02\0\x08\x12\x06\x9a\x08\ - \x1a\x9f\x08\x03\n\x10\n\x08\x04\x20\x02\0\x08\x9c\x08\0\x12\x04\x9b\x08\ - \x04*\n\x11\n\x07\x04\x20\x02\0\x08\x9f\x08\x12\x06\x9c\x08\x04\x9e\x08\ - \x05\n\xa9\x01\n\x04\x04\x20\x02\x01\x12\x04\xa4\x08\x02G\x1a\x9a\x01\ - \x20Required.\x20The\x20acknowledgment\x20ID\x20for\x20the\x20messages\ - \x20being\x20acknowledged\x20that\n\x20was\x20returned\x20by\x20the\x20P\ - ub/Sub\x20system\x20in\x20the\x20`Pull`\x20response.\x20Must\x20not\x20b\ - e\n\x20empty.\n\n\r\n\x05\x04\x20\x02\x01\x04\x12\x04\xa4\x08\x02\n\n\r\ - \n\x05\x04\x20\x02\x01\x05\x12\x04\xa4\x08\x0b\x11\n\r\n\x05\x04\x20\x02\ - \x01\x01\x12\x04\xa4\x08\x12\x19\n\r\n\x05\x04\x20\x02\x01\x03\x12\x04\ - \xa4\x08\x1c\x1d\n\r\n\x05\x04\x20\x02\x01\x08\x12\x04\xa4\x08\x1eF\n\ - \x10\n\x08\x04\x20\x02\x01\x08\x9c\x08\0\x12\x04\xa4\x08\x1fE\n\xe1\x01\ - \n\x02\x04!\x12\x06\xaa\x08\0\xf5\x08\x01\x1a\xd2\x01\x20Request\x20for\ - \x20the\x20`StreamingPull`\x20streaming\x20RPC\x20method.\x20This\x20req\ - uest\x20is\x20used\x20to\n\x20establish\x20the\x20initial\x20stream\x20a\ - s\x20well\x20as\x20to\x20stream\x20acknowledgements\x20and\x20ack\n\x20d\ - eadline\x20modifications\x20from\x20the\x20client\x20to\x20the\x20server\ - .\n\n\x0b\n\x03\x04!\x01\x12\x04\xaa\x08\x08\x1c\n\x88\x02\n\x04\x04!\ - \x02\0\x12\x06\xaf\x08\x02\xb4\x08\x04\x1a\xf7\x01\x20Required.\x20The\ - \x20subscription\x20for\x20which\x20to\x20initialize\x20the\x20new\x20st\ - ream.\x20This\n\x20must\x20be\x20provided\x20in\x20the\x20first\x20reque\ - st\x20on\x20the\x20stream,\x20and\x20must\x20not\x20be\x20set\x20in\n\ - \x20subsequent\x20requests\x20from\x20client\x20to\x20server.\n\x20Forma\ - t\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\x0f\n\x05\x04!\ - \x02\0\x04\x12\x06\xaf\x08\x02\xaa\x08\x1e\n\r\n\x05\x04!\x02\0\x05\x12\ - \x04\xaf\x08\x02\x08\n\r\n\x05\x04!\x02\0\x01\x12\x04\xaf\x08\t\x15\n\r\ - \n\x05\x04!\x02\0\x03\x12\x04\xaf\x08\x18\x19\n\x0f\n\x05\x04!\x02\0\x08\ - \x12\x06\xaf\x08\x1a\xb4\x08\x03\n\x10\n\x08\x04!\x02\0\x08\x9c\x08\0\ - \x12\x04\xb0\x08\x04*\n\x11\n\x07\x04!\x02\0\x08\x9f\x08\x12\x06\xb1\x08\ - \x04\xb3\x08\x05\n\x85\x03\n\x04\x04!\x02\x01\x12\x04\xbb\x08\x02\x1e\ - \x1a\xf6\x02\x20List\x20of\x20acknowledgement\x20IDs\x20for\x20acknowled\ - ging\x20previously\x20received\x20messages\n\x20(received\x20on\x20this\ - \x20stream\x20or\x20a\x20different\x20stream).\x20If\x20an\x20ack\x20ID\ - \x20has\x20expired,\n\x20the\x20corresponding\x20message\x20may\x20be\ - \x20redelivered\x20later.\x20Acknowledging\x20a\x20message\n\x20more\x20\ - than\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\xbb\x08\x02\n\n\r\n\x05\x04!\x02\x01\x05\x12\ - \x04\xbb\x08\x0b\x11\n\r\n\x05\x04!\x02\x01\x01\x12\x04\xbb\x08\x12\x19\ - \n\r\n\x05\x04!\x02\x01\x03\x12\x04\xbb\x08\x1c\x1d\n\x89\x06\n\x04\x04!\ - \x02\x02\x12\x04\xc8\x08\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!\x02\x02\x04\x12\x04\xc8\x08\x02\n\n\r\n\x05\x04!\x02\x02\x05\x12\ - \x04\xc8\x08\x0b\x10\n\r\n\x05\x04!\x02\x02\x01\x12\x04\xc8\x08\x11(\n\r\ - \n\x05\x04!\x02\x02\x03\x12\x04\xc8\x08+,\n\xc8\x02\n\x04\x04!\x02\x03\ - \x12\x04\xcf\x08\x02.\x1a\xb9\x02\x20List\x20of\x20acknowledgement\x20ID\ - s\x20whose\x20deadline\x20will\x20be\x20modified\x20based\x20on\x20the\n\ - \x20corresponding\x20element\x20in\x20`modify_deadline_seconds`.\x20This\ - \x20field\x20can\x20be\x20used\n\x20to\x20indicate\x20that\x20more\x20ti\ - me\x20is\x20needed\x20to\x20process\x20a\x20message\x20by\x20the\n\x20su\ - bscriber,\x20or\x20to\x20make\x20the\x20message\x20available\x20for\x20r\ - edelivery\x20if\x20the\n\x20processing\x20was\x20interrupted.\n\n\r\n\ - \x05\x04!\x02\x03\x04\x12\x04\xcf\x08\x02\n\n\r\n\x05\x04!\x02\x03\x05\ - \x12\x04\xcf\x08\x0b\x11\n\r\n\x05\x04!\x02\x03\x01\x12\x04\xcf\x08\x12)\ - \n\r\n\x05\x04!\x02\x03\x03\x12\x04\xcf\x08,-\n\xc0\x02\n\x04\x04!\x02\ - \x04\x12\x06\xd5\x08\x02\xd6\x08/\x1a\xaf\x02\x20Required.\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\x20r\ - equests\x20from\x20client\x20to\x20server.\x20The\x20minimum\x20deadline\ - \x20you\x20can\x20specify\x20is\x2010\n\x20seconds.\x20The\x20maximum\ - \x20deadline\x20you\x20can\x20specify\x20is\x20600\x20seconds\x20(10\x20\ - minutes).\n\n\x0f\n\x05\x04!\x02\x04\x04\x12\x06\xd5\x08\x02\xcf\x08.\n\ - \r\n\x05\x04!\x02\x04\x05\x12\x04\xd5\x08\x02\x07\n\r\n\x05\x04!\x02\x04\ - \x01\x12\x04\xd5\x08\x08#\n\r\n\x05\x04!\x02\x04\x03\x12\x04\xd5\x08&'\n\ - \r\n\x05\x04!\x02\x04\x08\x12\x04\xd6\x08\x06.\n\x10\n\x08\x04!\x02\x04\ - \x08\x9c\x08\0\x12\x04\xd6\x08\x07-\n\x9e\x03\n\x04\x04!\x02\x05\x12\x04\ - \xde\x08\x02\x17\x1a\x8f\x03\x20A\x20unique\x20identifier\x20that\x20is\ - \x20used\x20to\x20distinguish\x20client\x20instances\x20from\x20each\n\ - \x20other.\x20Only\x20needs\x20to\x20be\x20provided\x20on\x20the\x20init\ - ial\x20request.\x20When\x20a\x20stream\n\x20disconnects\x20and\x20reconn\ - ects\x20for\x20the\x20same\x20stream,\x20the\x20client_id\x20should\x20b\ - e\x20set\n\x20to\x20the\x20same\x20value\x20so\x20that\x20state\x20assoc\ - iated\x20with\x20the\x20old\x20stream\x20can\x20be\n\x20transferred\x20t\ - o\x20the\x20new\x20stream.\x20The\x20same\x20client_id\x20should\x20not\ - \x20be\x20used\x20for\n\x20different\x20client\x20instances.\n\n\x0f\n\ - \x05\x04!\x02\x05\x04\x12\x06\xde\x08\x02\xd6\x08/\n\r\n\x05\x04!\x02\ - \x05\x05\x12\x04\xde\x08\x02\x08\n\r\n\x05\x04!\x02\x05\x01\x12\x04\xde\ - \x08\t\x12\n\r\n\x05\x04!\x02\x05\x03\x12\x04\xde\x08\x15\x16\n\xe0\x04\ - \n\x04\x04!\x02\x06\x12\x04\xe9\x08\x02%\x1a\xd1\x04\x20Flow\x20control\ - \x20settings\x20for\x20the\x20maximum\x20number\x20of\x20outstanding\x20\ - messages.\x20When\n\x20there\x20are\x20`max_outstanding_messages`\x20or\ - \x20more\x20currently\x20sent\x20to\x20the\n\x20streaming\x20pull\x20cli\ - ent\x20that\x20have\x20not\x20yet\x20been\x20acked\x20or\x20nacked,\x20t\ - he\x20server\n\x20stops\x20sending\x20more\x20messages.\x20The\x20sendin\ - g\x20of\x20messages\x20resumes\x20once\x20the\n\x20number\x20of\x20outst\ - anding\x20messages\x20is\x20less\x20than\x20this\x20value.\x20If\x20the\ - \x20value\x20is\n\x20<=\x200,\x20there\x20is\x20no\x20limit\x20to\x20the\ - \x20number\x20of\x20outstanding\x20messages.\x20This\n\x20property\x20ca\ - n\x20only\x20be\x20set\x20on\x20the\x20initial\x20StreamingPullRequest.\ - \x20If\x20it\x20is\x20set\n\x20on\x20a\x20subsequent\x20request,\x20the\ - \x20stream\x20will\x20be\x20aborted\x20with\x20status\n\x20`INVALID_ARGU\ - MENT`.\n\n\x0f\n\x05\x04!\x02\x06\x04\x12\x06\xe9\x08\x02\xde\x08\x17\n\ - \r\n\x05\x04!\x02\x06\x05\x12\x04\xe9\x08\x02\x07\n\r\n\x05\x04!\x02\x06\ - \x01\x12\x04\xe9\x08\x08\x20\n\r\n\x05\x04!\x02\x06\x03\x12\x04\xe9\x08#\ - $\n\xea\x04\n\x04\x04!\x02\x07\x12\x04\xf4\x08\x02\"\x1a\xdb\x04\x20Flow\ - \x20control\x20settings\x20for\x20the\x20maximum\x20number\x20of\x20outs\ - tanding\x20bytes.\x20When\n\x20there\x20are\x20`max_outstanding_bytes`\ - \x20or\x20more\x20worth\x20of\x20messages\x20currently\x20sent\n\x20to\ - \x20the\x20streaming\x20pull\x20client\x20that\x20have\x20not\x20yet\x20\ - been\x20acked\x20or\x20nacked,\x20the\n\x20server\x20will\x20stop\x20sen\ - ding\x20more\x20messages.\x20The\x20sending\x20of\x20messages\x20resumes\ - \n\x20once\x20the\x20number\x20of\x20outstanding\x20bytes\x20is\x20less\ - \x20than\x20this\x20value.\x20If\x20the\x20value\n\x20is\x20<=\x200,\x20\ - there\x20is\x20no\x20limit\x20to\x20the\x20number\x20of\x20outstanding\ - \x20bytes.\x20This\n\x20property\x20can\x20only\x20be\x20set\x20on\x20th\ - e\x20initial\x20StreamingPullRequest.\x20If\x20it\x20is\x20set\n\x20on\ - \x20a\x20subsequent\x20request,\x20the\x20stream\x20will\x20be\x20aborte\ - d\x20with\x20status\n\x20`INVALID_ARGUMENT`.\n\n\x0f\n\x05\x04!\x02\x07\ - \x04\x12\x06\xf4\x08\x02\xe9\x08%\n\r\n\x05\x04!\x02\x07\x05\x12\x04\xf4\ - \x08\x02\x07\n\r\n\x05\x04!\x02\x07\x01\x12\x04\xf4\x08\x08\x1d\n\r\n\ - \x05\x04!\x02\x07\x03\x12\x04\xf4\x08\x20!\n\x81\x01\n\x02\x04\"\x12\x06\ - \xf9\x08\0\xfc\x08\x01\x1as\x20Response\x20for\x20the\x20`StreamingPull`\ - \x20method.\x20This\x20response\x20is\x20used\x20to\x20stream\n\x20messa\ - ges\x20from\x20the\x20server\x20to\x20the\x20client.\n\n\x0b\n\x03\x04\"\ - \x01\x12\x04\xf9\x08\x08\x1d\nB\n\x04\x04\"\x02\0\x12\x04\xfb\x08\x021\ - \x1a4\x20Received\x20Pub/Sub\x20messages.\x20This\x20will\x20not\x20be\ - \x20empty.\n\n\r\n\x05\x04\"\x02\0\x04\x12\x04\xfb\x08\x02\n\n\r\n\x05\ - \x04\"\x02\0\x06\x12\x04\xfb\x08\x0b\x1a\n\r\n\x05\x04\"\x02\0\x01\x12\ - \x04\xfb\x08\x1b,\n\r\n\x05\x04\"\x02\0\x03\x12\x04\xfb\x08/0\n8\n\x02\ - \x04#\x12\x06\xff\x08\0\x9e\t\x01\x1a*\x20Request\x20for\x20the\x20`Crea\ - teSnapshot`\x20method.\n\n\x0b\n\x03\x04#\x01\x12\x04\xff\x08\x08\x1d\n\ - \xa5\x03\n\x04\x04#\x02\0\x12\x06\x86\t\x02\x89\t\x04\x1a\x94\x03\x20Req\ - uired.\x20User-provided\x20name\x20for\x20this\x20snapshot.\x20If\x20the\ - \x20name\x20is\x20not\x20provided\n\x20in\x20the\x20request,\x20the\x20s\ - erver\x20will\x20assign\x20a\x20random\x20name\x20for\x20this\x20snapsho\ - t\x20on\n\x20the\x20same\x20project\x20as\x20the\x20subscription.\x20Not\ - e\x20that\x20for\x20REST\x20API\x20requests,\x20you\n\x20must\x20specify\ - \x20a\x20name.\x20\x20See\x20the\x20\x20resource\n\x20name\x20rules.\x20Format\x20is\x20`projects/{project}/snapshots/{snap}`.\n\n\x0f\n\ - \x05\x04#\x02\0\x04\x12\x06\x86\t\x02\xff\x08\x1f\n\r\n\x05\x04#\x02\0\ - \x05\x12\x04\x86\t\x02\x08\n\r\n\x05\x04#\x02\0\x01\x12\x04\x86\t\t\r\n\ - \r\n\x05\x04#\x02\0\x03\x12\x04\x86\t\x10\x11\n\x0f\n\x05\x04#\x02\0\x08\ - \x12\x06\x86\t\x12\x89\t\x03\n\x10\n\x08\x04#\x02\0\x08\x9c\x08\0\x12\ - \x04\x87\t\x04*\n\x0f\n\x07\x04#\x02\0\x08\x9f\x08\x12\x04\x88\t\x04P\n\ - \xb9\x04\n\x04\x04#\x02\x01\x12\x06\x94\t\x02\x99\t\x04\x1a\xa8\x04\x20R\ - equired.\x20The\x20subscription\x20whose\x20backlog\x20the\x20snapshot\ - \x20retains.\n\x20Specifically,\x20the\x20created\x20snapshot\x20is\x20g\ - uaranteed\x20to\x20retain:\n\x20\x20(a)\x20The\x20existing\x20backlog\ - \x20on\x20the\x20subscription.\x20More\x20precisely,\x20this\x20is\n\x20\ - \x20\x20\x20\x20\x20defined\x20as\x20the\x20messages\x20in\x20the\x20sub\ - scription's\x20backlog\x20that\x20are\n\x20\x20\x20\x20\x20\x20unacknowl\ - edged\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\x20subscription's\ - \x20topic\x20following\x20the\n\x20\x20\x20\x20\x20\x20successful\x20com\ - pletion\x20of\x20the\x20CreateSnapshot\x20request.\n\x20Format\x20is\x20\ - `projects/{project}/subscriptions/{sub}`.\n\n\x0f\n\x05\x04#\x02\x01\x04\ - \x12\x06\x94\t\x02\x89\t\x04\n\r\n\x05\x04#\x02\x01\x05\x12\x04\x94\t\ - \x02\x08\n\r\n\x05\x04#\x02\x01\x01\x12\x04\x94\t\t\x15\n\r\n\x05\x04#\ - \x02\x01\x03\x12\x04\x94\t\x18\x19\n\x0f\n\x05\x04#\x02\x01\x08\x12\x06\ - \x94\t\x1a\x99\t\x03\n\x10\n\x08\x04#\x02\x01\x08\x9c\x08\0\x12\x04\x95\ - \t\x04*\n\x11\n\x07\x04#\x02\x01\x08\x9f\x08\x12\x06\x96\t\x04\x98\t\x05\ - \nm\n\x04\x04#\x02\x02\x12\x04\x9d\t\x02!\x1a_\x20See\x20\x20Creating\x20and\n\x20man\ - aging\x20labels.\n\n\x0f\n\x05\x04#\x02\x02\x04\x12\x06\x9d\t\x02\ - \x99\t\x04\n\r\n\x05\x04#\x02\x02\x06\x12\x04\x9d\t\x02\x15\n\r\n\x05\ - \x04#\x02\x02\x01\x12\x04\x9d\t\x16\x1c\n\r\n\x05\x04#\x02\x02\x03\x12\ - \x04\x9d\t\x1f\x20\n6\n\x02\x04$\x12\x06\xa1\t\0\xa9\t\x01\x1a(\x20Reque\ - st\x20for\x20the\x20UpdateSnapshot\x20method.\n\n\x0b\n\x03\x04$\x01\x12\ - \x04\xa1\t\x08\x1d\n6\n\x04\x04$\x02\0\x12\x04\xa3\t\x02A\x1a(\x20Requir\ - ed.\x20The\x20updated\x20snapshot\x20object.\n\n\x0f\n\x05\x04$\x02\0\ - \x04\x12\x06\xa3\t\x02\xa1\t\x1f\n\r\n\x05\x04$\x02\0\x06\x12\x04\xa3\t\ - \x02\n\n\r\n\x05\x04$\x02\0\x01\x12\x04\xa3\t\x0b\x13\n\r\n\x05\x04$\x02\ - \0\x03\x12\x04\xa3\t\x16\x17\n\r\n\x05\x04$\x02\0\x08\x12\x04\xa3\t\x18@\ - \n\x10\n\x08\x04$\x02\0\x08\x9c\x08\0\x12\x04\xa3\t\x19?\nx\n\x04\x04$\ - \x02\x01\x12\x06\xa7\t\x02\xa8\t/\x1ah\x20Required.\x20Indicates\x20whic\ - h\x20fields\x20in\x20the\x20provided\x20snapshot\x20to\x20update.\n\x20M\ - ust\x20be\x20specified\x20and\x20non-empty.\n\n\x0f\n\x05\x04$\x02\x01\ - \x04\x12\x06\xa7\t\x02\xa3\tA\n\r\n\x05\x04$\x02\x01\x06\x12\x04\xa7\t\ - \x02\x1b\n\r\n\x05\x04$\x02\x01\x01\x12\x04\xa7\t\x1c'\n\r\n\x05\x04$\ - \x02\x01\x03\x12\x04\xa7\t*+\n\r\n\x05\x04$\x02\x01\x08\x12\x04\xa8\t\ - \x06.\n\x10\n\x08\x04$\x02\x01\x08\x9c\x08\0\x12\x04\xa8\t\x07-\n\xbe\ - \x02\n\x02\x04%\x12\x06\xb0\t\0\xcd\t\x01\x1a\xaf\x02\x20A\x20snapshot\ - \x20resource.\x20Snapshots\x20are\x20used\x20in\n\x20[Seek](https://clou\ - d.google.com/pubsub/docs/replay-overview)\n\x20operations,\x20which\x20a\ - llow\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\ - \x20That\n\x20is,\x20you\x20can\x20set\x20the\x20acknowledgment\x20state\ - \x20of\x20messages\x20in\x20an\x20existing\n\x20subscription\x20to\x20th\ - e\x20state\x20captured\x20by\x20a\x20snapshot.\n\n\x0b\n\x03\x04%\x01\ - \x12\x04\xb0\t\x08\x10\n\r\n\x03\x04%\x07\x12\x06\xb1\t\x02\xb4\t\x04\n\ - \x0f\n\x05\x04%\x07\x9d\x08\x12\x06\xb1\t\x02\xb4\t\x04\n)\n\x04\x04%\ - \x02\0\x12\x04\xb7\t\x02\x12\x1a\x1b\x20The\x20name\x20of\x20the\x20snap\ - shot.\n\n\x0f\n\x05\x04%\x02\0\x04\x12\x06\xb7\t\x02\xb4\t\x04\n\r\n\x05\ - \x04%\x02\0\x05\x12\x04\xb7\t\x02\x08\n\r\n\x05\x04%\x02\0\x01\x12\x04\ - \xb7\t\t\r\n\r\n\x05\x04%\x02\0\x03\x12\x04\xb7\t\x10\x11\nW\n\x04\x04%\ - \x02\x01\x12\x06\xba\t\x02\xbc\t\x04\x1aG\x20The\x20name\x20of\x20the\ - \x20topic\x20from\x20which\x20this\x20snapshot\x20is\x20retaining\x20mes\ - sages.\n\n\x0f\n\x05\x04%\x02\x01\x04\x12\x06\xba\t\x02\xb7\t\x12\n\r\n\ - \x05\x04%\x02\x01\x05\x12\x04\xba\t\x02\x08\n\r\n\x05\x04%\x02\x01\x01\ - \x12\x04\xba\t\t\x0e\n\r\n\x05\x04%\x02\x01\x03\x12\x04\xba\t\x11\x12\n\ - \x0f\n\x05\x04%\x02\x01\x08\x12\x06\xba\t\x13\xbc\t\x03\n\x0f\n\x07\x04%\ - \x02\x01\x08\x9f\x08\x12\x04\xbb\t\x04M\n\xd4\x05\n\x04\x04%\x02\x02\x12\ - \x04\xc8\t\x02,\x1a\xc5\x05\x20The\x20snapshot\x20is\x20guaranteed\x20to\ - \x20exist\x20up\x20until\x20this\x20time.\n\x20A\x20newly-created\x20sna\ - pshot\x20expires\x20no\x20later\x20than\x207\x20days\x20from\x20the\x20t\ - ime\x20of\x20its\n\x20creation.\x20Its\x20exact\x20lifetime\x20is\x20det\ - ermined\x20at\x20creation\x20by\x20the\x20existing\n\x20backlog\x20in\ - \x20the\x20source\x20subscription.\x20Specifically,\x20the\x20lifetime\ - \x20of\x20the\n\x20snapshot\x20is\x20`7\x20days\x20-\x20(age\x20of\x20ol\ - dest\x20unacked\x20message\x20in\x20the\x20subscription)`.\n\x20For\x20e\ - xample,\x20consider\x20a\x20subscription\x20whose\x20oldest\x20unacked\ - \x20message\x20is\x203\x20days\n\x20old.\x20If\x20a\x20snapshot\x20is\ - \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\x0f\n\x05\x04%\x02\x02\x04\x12\ - \x06\xc8\t\x02\xbc\t\x04\n\r\n\x05\x04%\x02\x02\x06\x12\x04\xc8\t\x02\ - \x1b\n\r\n\x05\x04%\x02\x02\x01\x12\x04\xc8\t\x1c'\n\r\n\x05\x04%\x02\ - \x02\x03\x12\x04\xc8\t*+\nb\n\x04\x04%\x02\x03\x12\x04\xcc\t\x02!\x1aT\ - \x20See\x20[Creating\x20and\x20managing\x20labels]\n\x20(https://cloud.g\ - oogle.com/pubsub/docs/labels).\n\n\x0f\n\x05\x04%\x02\x03\x04\x12\x06\ - \xcc\t\x02\xc8\t,\n\r\n\x05\x04%\x02\x03\x06\x12\x04\xcc\t\x02\x15\n\r\n\ - \x05\x04%\x02\x03\x01\x12\x04\xcc\t\x16\x1c\n\r\n\x05\x04%\x02\x03\x03\ - \x12\x04\xcc\t\x1f\x20\n3\n\x02\x04&\x12\x06\xd0\t\0\xd7\t\x01\x1a%\x20R\ - equest\x20for\x20the\x20GetSnapshot\x20method.\n\n\x0b\n\x03\x04&\x01\ - \x12\x04\xd0\t\x08\x1a\nn\n\x04\x04&\x02\0\x12\x06\xd3\t\x02\xd6\t\x04\ - \x1a^\x20Required.\x20The\x20name\x20of\x20the\x20snapshot\x20to\x20get.\ - \n\x20Format\x20is\x20`projects/{project}/snapshots/{snap}`.\n\n\x0f\n\ - \x05\x04&\x02\0\x04\x12\x06\xd3\t\x02\xd0\t\x1c\n\r\n\x05\x04&\x02\0\x05\ - \x12\x04\xd3\t\x02\x08\n\r\n\x05\x04&\x02\0\x01\x12\x04\xd3\t\t\x11\n\r\ - \n\x05\x04&\x02\0\x03\x12\x04\xd3\t\x14\x15\n\x0f\n\x05\x04&\x02\0\x08\ - \x12\x06\xd3\t\x16\xd6\t\x03\n\x10\n\x08\x04&\x02\0\x08\x9c\x08\0\x12\ - \x04\xd4\t\x04*\n\x0f\n\x07\x04&\x02\0\x08\x9f\x08\x12\x04\xd5\t\x04P\n7\ - \n\x02\x04'\x12\x06\xda\t\0\xeb\t\x01\x1a)\x20Request\x20for\x20the\x20`\ - ListSnapshots`\x20method.\n\n\x0b\n\x03\x04'\x01\x12\x04\xda\t\x08\x1c\n\ - s\n\x04\x04'\x02\0\x12\x06\xdd\t\x02\xe2\t\x04\x1ac\x20Required.\x20The\ - \x20name\x20of\x20the\x20project\x20in\x20which\x20to\x20list\x20snapsho\ - ts.\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04'\x02\ - \0\x04\x12\x06\xdd\t\x02\xda\t\x1e\n\r\n\x05\x04'\x02\0\x05\x12\x04\xdd\ - \t\x02\x08\n\r\n\x05\x04'\x02\0\x01\x12\x04\xdd\t\t\x10\n\r\n\x05\x04'\ - \x02\0\x03\x12\x04\xdd\t\x13\x14\n\x0f\n\x05\x04'\x02\0\x08\x12\x06\xdd\ - \t\x15\xe2\t\x03\n\x10\n\x08\x04'\x02\0\x08\x9c\x08\0\x12\x04\xde\t\x04*\ - \n\x11\n\x07\x04'\x02\0\x08\x9f\x08\x12\x06\xdf\t\x04\xe1\t\x05\n6\n\x04\ - \x04'\x02\x01\x12\x04\xe5\t\x02\x16\x1a(\x20Maximum\x20number\x20of\x20s\ - napshots\x20to\x20return.\n\n\x0f\n\x05\x04'\x02\x01\x04\x12\x06\xe5\t\ - \x02\xe2\t\x04\n\r\n\x05\x04'\x02\x01\x05\x12\x04\xe5\t\x02\x07\n\r\n\ - \x05\x04'\x02\x01\x01\x12\x04\xe5\t\x08\x11\n\r\n\x05\x04'\x02\x01\x03\ - \x12\x04\xe5\t\x14\x15\n\xca\x01\n\x04\x04'\x02\x02\x12\x04\xea\t\x02\ - \x18\x1a\xbb\x01\x20The\x20value\x20returned\x20by\x20the\x20last\x20`Li\ - stSnapshotsResponse`;\x20indicates\x20that\x20this\n\x20is\x20a\x20conti\ - nuation\x20of\x20a\x20prior\x20`ListSnapshots`\x20call,\x20and\x20that\ - \x20the\x20system\n\x20should\x20return\x20the\x20next\x20page\x20of\x20\ - data.\n\n\x0f\n\x05\x04'\x02\x02\x04\x12\x06\xea\t\x02\xe5\t\x16\n\r\n\ - \x05\x04'\x02\x02\x05\x12\x04\xea\t\x02\x08\n\r\n\x05\x04'\x02\x02\x01\ - \x12\x04\xea\t\t\x13\n\r\n\x05\x04'\x02\x02\x03\x12\x04\xea\t\x16\x17\n8\ - \n\x02\x04(\x12\x06\xee\t\0\xf5\t\x01\x1a*\x20Response\x20for\x20the\x20\ - `ListSnapshots`\x20method.\n\n\x0b\n\x03\x04(\x01\x12\x04\xee\t\x08\x1d\ - \n(\n\x04\x04(\x02\0\x12\x04\xf0\t\x02\"\x1a\x1a\x20The\x20resulting\x20\ - snapshots.\n\n\r\n\x05\x04(\x02\0\x04\x12\x04\xf0\t\x02\n\n\r\n\x05\x04(\ - \x02\0\x06\x12\x04\xf0\t\x0b\x13\n\r\n\x05\x04(\x02\0\x01\x12\x04\xf0\t\ - \x14\x1d\n\r\n\x05\x04(\x02\0\x03\x12\x04\xf0\t\x20!\n\x9e\x01\n\x04\x04\ - (\x02\x01\x12\x04\xf4\t\x02\x1d\x1a\x8f\x01\x20If\x20not\x20empty,\x20in\ - dicates\x20that\x20there\x20may\x20be\x20more\x20snapshot\x20that\x20mat\ - ch\x20the\n\x20request;\x20this\x20value\x20should\x20be\x20passed\x20in\ - \x20a\x20new\x20`ListSnapshotsRequest`.\n\n\x0f\n\x05\x04(\x02\x01\x04\ - \x12\x06\xf4\t\x02\xf0\t\"\n\r\n\x05\x04(\x02\x01\x05\x12\x04\xf4\t\x02\ - \x08\n\r\n\x05\x04(\x02\x01\x01\x12\x04\xf4\t\t\x18\n\r\n\x05\x04(\x02\ - \x01\x03\x12\x04\xf4\t\x1b\x1c\n8\n\x02\x04)\x12\x06\xf8\t\0\xff\t\x01\ - \x1a*\x20Request\x20for\x20the\x20`DeleteSnapshot`\x20method.\n\n\x0b\n\ - \x03\x04)\x01\x12\x04\xf8\t\x08\x1d\nq\n\x04\x04)\x02\0\x12\x06\xfb\t\ - \x02\xfe\t\x04\x1aa\x20Required.\x20The\x20name\x20of\x20the\x20snapshot\ - \x20to\x20delete.\n\x20Format\x20is\x20`projects/{project}/snapshots/{sn\ - ap}`.\n\n\x0f\n\x05\x04)\x02\0\x04\x12\x06\xfb\t\x02\xf8\t\x1f\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\x11\n\r\n\x05\x04)\x02\0\x03\x12\x04\xfb\t\x14\x15\n\x0f\n\x05\ - \x04)\x02\0\x08\x12\x06\xfb\t\x16\xfe\t\x03\n\x10\n\x08\x04)\x02\0\x08\ - \x9c\x08\0\x12\x04\xfc\t\x04*\n\x0f\n\x07\x04)\x02\0\x08\x9f\x08\x12\x04\ - \xfd\t\x04P\n.\n\x02\x04*\x12\x06\x82\n\0\xa0\n\x01\x1a\x20\x20Request\ - \x20for\x20the\x20`Seek`\x20method.\n\n\x0b\n\x03\x04*\x01\x12\x04\x82\n\ - \x08\x13\n7\n\x04\x04*\x02\0\x12\x06\x84\n\x02\x89\n\x04\x1a'\x20Require\ - d.\x20The\x20subscription\x20to\x20affect.\n\n\x0f\n\x05\x04*\x02\0\x04\ - \x12\x06\x84\n\x02\x82\n\x15\n\r\n\x05\x04*\x02\0\x05\x12\x04\x84\n\x02\ - \x08\n\r\n\x05\x04*\x02\0\x01\x12\x04\x84\n\t\x15\n\r\n\x05\x04*\x02\0\ - \x03\x12\x04\x84\n\x18\x19\n\x0f\n\x05\x04*\x02\0\x08\x12\x06\x84\n\x1a\ - \x89\n\x03\n\x10\n\x08\x04*\x02\0\x08\x9c\x08\0\x12\x04\x85\n\x04*\n\x11\ - \n\x07\x04*\x02\0\x08\x9f\x08\x12\x06\x86\n\x04\x88\n\x05\n\x0e\n\x04\ - \x04*\x08\0\x12\x06\x8b\n\x02\x9f\n\x03\n\r\n\x05\x04*\x08\0\x01\x12\x04\ - \x8b\n\x08\x0e\n\xbe\x05\n\x04\x04*\x02\x01\x12\x04\x97\n\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,\x20and\x20messages\x20r\ - etained\x20in\x20the\n\x20subscription\x20that\x20were\x20published\x20a\ - fter\x20this\x20time\x20are\x20marked\x20as\n\x20unacknowledged.\x20Note\ - \x20that\x20this\x20operation\x20affects\x20only\x20those\x20messages\n\ - \x20retained\x20in\x20the\x20subscription\x20(configured\x20by\x20the\ - \x20combination\x20of\n\x20`message_retention_duration`\x20and\x20`retai\ - n_acked_messages`).\x20For\x20example,\n\x20if\x20`time`\x20corresponds\ - \x20to\x20a\x20point\x20before\x20the\x20message\x20retention\n\x20windo\ - w\x20(or\x20to\x20a\x20point\x20before\x20the\x20system's\x20notion\x20o\ - f\x20the\x20subscription\n\x20creation\x20time),\x20only\x20retained\x20\ - messages\x20will\x20be\x20marked\x20as\x20unacknowledged,\n\x20and\x20al\ - ready-expunged\x20messages\x20will\x20not\x20be\x20restored.\n\n\r\n\x05\ - \x04*\x02\x01\x06\x12\x04\x97\n\x04\x1d\n\r\n\x05\x04*\x02\x01\x01\x12\ - \x04\x97\n\x1e\"\n\r\n\x05\x04*\x02\x01\x03\x12\x04\x97\n%&\n\xaa\x01\n\ - \x04\x04*\x02\x02\x12\x06\x9c\n\x04\x9e\n\x07\x1a\x99\x01\x20The\x20snap\ - shot\x20to\x20seek\x20to.\x20The\x20snapshot's\x20topic\x20must\x20be\ - \x20the\x20same\x20as\x20that\x20of\n\x20the\x20provided\x20subscription\ - .\n\x20Format\x20is\x20`projects/{project}/snapshots/{snap}`.\n\n\r\n\ - \x05\x04*\x02\x02\x05\x12\x04\x9c\n\x04\n\n\r\n\x05\x04*\x02\x02\x01\x12\ - \x04\x9c\n\x0b\x13\n\r\n\x05\x04*\x02\x02\x03\x12\x04\x9c\n\x16\x17\n\ - \x0f\n\x05\x04*\x02\x02\x08\x12\x06\x9c\n\x18\x9e\n\x06\n\x11\n\x07\x04*\ - \x02\x02\x08\x9f\x08\x12\x06\x9c\n\x19\x9e\n\x05\nF\n\x02\x04+\x12\x04\ - \xa3\n\0\x17\x1a:\x20Response\x20for\x20the\x20`Seek`\x20method\x20(this\ - \x20response\x20is\x20empty).\n\n\x0b\n\x03\x04+\x01\x12\x04\xa3\n\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs deleted file mode 100644 index fc2f6edc38..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs +++ /dev/null @@ -1,757 +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_PUBLISHER_CREATE_TOPIC: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/CreateTopic", - 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_PUBLISHER_UPDATE_TOPIC: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/UpdateTopic", - 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_PUBLISHER_PUBLISH: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/Publish", - 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_PUBLISHER_GET_TOPIC: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/GetTopic", - 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_PUBLISHER_LIST_TOPICS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/ListTopics", - 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_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/ListTopicSubscriptions", - 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_PUBLISHER_LIST_TOPIC_SNAPSHOTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/ListTopicSnapshots", - 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_PUBLISHER_DELETE_TOPIC: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/DeleteTopic", - 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_PUBLISHER_DETACH_SUBSCRIPTION: ::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 { - client: ::grpcio::Client, -} - -impl PublisherClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - PublisherClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_topic_opt(&self, req: &super::pubsub::Topic, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_CREATE_TOPIC, req, opt) - } - - pub fn create_topic(&self, req: &super::pubsub::Topic) -> ::grpcio::Result { - self.create_topic_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_topic_async_opt(&self, req: &super::pubsub::Topic, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_CREATE_TOPIC, req, opt) - } - - pub fn create_topic_async(&self, req: &super::pubsub::Topic) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_topic_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_topic_opt(&self, req: &super::pubsub::UpdateTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_UPDATE_TOPIC, req, opt) - } - - pub fn update_topic(&self, req: &super::pubsub::UpdateTopicRequest) -> ::grpcio::Result { - self.update_topic_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_topic_async_opt(&self, req: &super::pubsub::UpdateTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_UPDATE_TOPIC, req, opt) - } - - pub fn update_topic_async(&self, req: &super::pubsub::UpdateTopicRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_topic_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn publish_opt(&self, req: &super::pubsub::PublishRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_PUBLISH, req, opt) - } - - pub fn publish(&self, req: &super::pubsub::PublishRequest) -> ::grpcio::Result { - self.publish_opt(req, ::grpcio::CallOption::default()) - } - - pub fn publish_async_opt(&self, req: &super::pubsub::PublishRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_PUBLISH, req, opt) - } - - pub fn publish_async(&self, req: &super::pubsub::PublishRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.publish_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_topic_opt(&self, req: &super::pubsub::GetTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_GET_TOPIC, req, opt) - } - - pub fn get_topic(&self, req: &super::pubsub::GetTopicRequest) -> ::grpcio::Result { - self.get_topic_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_topic_async_opt(&self, req: &super::pubsub::GetTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_GET_TOPIC, req, opt) - } - - pub fn get_topic_async(&self, req: &super::pubsub::GetTopicRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_topic_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topics_opt(&self, req: &super::pubsub::ListTopicsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPICS, req, opt) - } - - pub fn list_topics(&self, req: &super::pubsub::ListTopicsRequest) -> ::grpcio::Result { - self.list_topics_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topics_async_opt(&self, req: &super::pubsub::ListTopicsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPICS, req, opt) - } - - pub fn list_topics_async(&self, req: &super::pubsub::ListTopicsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_topics_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topic_subscriptions_opt(&self, req: &super::pubsub::ListTopicSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, req, opt) - } - - pub fn list_topic_subscriptions(&self, req: &super::pubsub::ListTopicSubscriptionsRequest) -> ::grpcio::Result { - self.list_topic_subscriptions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topic_subscriptions_async_opt(&self, req: &super::pubsub::ListTopicSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, req, opt) - } - - pub fn list_topic_subscriptions_async(&self, req: &super::pubsub::ListTopicSubscriptionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_topic_subscriptions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topic_snapshots_opt(&self, req: &super::pubsub::ListTopicSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPIC_SNAPSHOTS, req, opt) - } - - pub fn list_topic_snapshots(&self, req: &super::pubsub::ListTopicSnapshotsRequest) -> ::grpcio::Result { - self.list_topic_snapshots_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topic_snapshots_async_opt(&self, req: &super::pubsub::ListTopicSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPIC_SNAPSHOTS, req, opt) - } - - pub fn list_topic_snapshots_async(&self, req: &super::pubsub::ListTopicSnapshotsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_topic_snapshots_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_topic_opt(&self, req: &super::pubsub::DeleteTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_DELETE_TOPIC, req, opt) - } - - pub fn delete_topic(&self, req: &super::pubsub::DeleteTopicRequest) -> ::grpcio::Result { - self.delete_topic_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_topic_async_opt(&self, req: &super::pubsub::DeleteTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_DELETE_TOPIC, req, opt) - } - - 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: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait Publisher { - fn create_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::Topic, sink: ::grpcio::UnarySink); - fn update_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::UpdateTopicRequest, sink: ::grpcio::UnarySink); - fn publish(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::PublishRequest, sink: ::grpcio::UnarySink); - fn get_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetTopicRequest, sink: ::grpcio::UnarySink); - fn list_topics(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicsRequest, sink: ::grpcio::UnarySink); - fn list_topic_subscriptions(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicSubscriptionsRequest, sink: ::grpcio::UnarySink); - fn list_topic_snapshots(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicSnapshotsRequest, sink: ::grpcio::UnarySink); - fn delete_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteTopicRequest, sink: ::grpcio::UnarySink); - fn detach_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DetachSubscriptionRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_publisher(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_CREATE_TOPIC, move |ctx, req, resp| { - instance.create_topic(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_UPDATE_TOPIC, move |ctx, req, resp| { - instance.update_topic(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_PUBLISH, move |ctx, req, resp| { - instance.publish(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_GET_TOPIC, move |ctx, req, resp| { - instance.get_topic(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPICS, move |ctx, req, resp| { - instance.list_topics(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, move |ctx, req, resp| { - instance.list_topic_subscriptions(ctx, req, resp) - }); - let mut instance = s.clone(); - 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(); - 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() -} - -const METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/CreateSubscription", - 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_SUBSCRIBER_GET_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/GetSubscription", - 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_SUBSCRIBER_UPDATE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/UpdateSubscription", - 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_SUBSCRIBER_LIST_SUBSCRIPTIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/ListSubscriptions", - 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_SUBSCRIBER_DELETE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/DeleteSubscription", - 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_SUBSCRIBER_MODIFY_ACK_DEADLINE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/ModifyAckDeadline", - 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_SUBSCRIBER_ACKNOWLEDGE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/Acknowledge", - 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_SUBSCRIBER_PULL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/Pull", - 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_SUBSCRIBER_STREAMING_PULL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Duplex, - name: "/google.pubsub.v1.Subscriber/StreamingPull", - 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_SUBSCRIBER_MODIFY_PUSH_CONFIG: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/ModifyPushConfig", - 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_SUBSCRIBER_GET_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/GetSnapshot", - 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_SUBSCRIBER_LIST_SNAPSHOTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/ListSnapshots", - 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_SUBSCRIBER_CREATE_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/CreateSnapshot", - 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_SUBSCRIBER_UPDATE_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/UpdateSnapshot", - 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_SUBSCRIBER_DELETE_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/DeleteSnapshot", - 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_SUBSCRIBER_SEEK: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Subscriber/Seek", - 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 SubscriberClient { - client: ::grpcio::Client, -} - -impl SubscriberClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - SubscriberClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_subscription_opt(&self, req: &super::pubsub::Subscription, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, req, opt) - } - - pub fn create_subscription(&self, req: &super::pubsub::Subscription) -> ::grpcio::Result { - self.create_subscription_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_subscription_async_opt(&self, req: &super::pubsub::Subscription, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, req, opt) - } - - pub fn create_subscription_async(&self, req: &super::pubsub::Subscription) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_subscription_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_subscription_opt(&self, req: &super::pubsub::GetSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, req, opt) - } - - pub fn get_subscription(&self, req: &super::pubsub::GetSubscriptionRequest) -> ::grpcio::Result { - self.get_subscription_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_subscription_async_opt(&self, req: &super::pubsub::GetSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, req, opt) - } - - pub fn get_subscription_async(&self, req: &super::pubsub::GetSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_subscription_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_subscription_opt(&self, req: &super::pubsub::UpdateSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_UPDATE_SUBSCRIPTION, req, opt) - } - - pub fn update_subscription(&self, req: &super::pubsub::UpdateSubscriptionRequest) -> ::grpcio::Result { - self.update_subscription_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_subscription_async_opt(&self, req: &super::pubsub::UpdateSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_UPDATE_SUBSCRIPTION, req, opt) - } - - pub fn update_subscription_async(&self, req: &super::pubsub::UpdateSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_subscription_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_subscriptions_opt(&self, req: &super::pubsub::ListSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, req, opt) - } - - pub fn list_subscriptions(&self, req: &super::pubsub::ListSubscriptionsRequest) -> ::grpcio::Result { - self.list_subscriptions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_subscriptions_async_opt(&self, req: &super::pubsub::ListSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, req, opt) - } - - pub fn list_subscriptions_async(&self, req: &super::pubsub::ListSubscriptionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_subscriptions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_subscription_opt(&self, req: &super::pubsub::DeleteSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, req, opt) - } - - pub fn delete_subscription(&self, req: &super::pubsub::DeleteSubscriptionRequest) -> ::grpcio::Result { - self.delete_subscription_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_subscription_async_opt(&self, req: &super::pubsub::DeleteSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, req, opt) - } - - pub fn delete_subscription_async(&self, req: &super::pubsub::DeleteSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_subscription_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn modify_ack_deadline_opt(&self, req: &super::pubsub::ModifyAckDeadlineRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, req, opt) - } - - pub fn modify_ack_deadline(&self, req: &super::pubsub::ModifyAckDeadlineRequest) -> ::grpcio::Result { - self.modify_ack_deadline_opt(req, ::grpcio::CallOption::default()) - } - - pub fn modify_ack_deadline_async_opt(&self, req: &super::pubsub::ModifyAckDeadlineRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, req, opt) - } - - pub fn modify_ack_deadline_async(&self, req: &super::pubsub::ModifyAckDeadlineRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.modify_ack_deadline_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn acknowledge_opt(&self, req: &super::pubsub::AcknowledgeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_ACKNOWLEDGE, req, opt) - } - - pub fn acknowledge(&self, req: &super::pubsub::AcknowledgeRequest) -> ::grpcio::Result { - self.acknowledge_opt(req, ::grpcio::CallOption::default()) - } - - pub fn acknowledge_async_opt(&self, req: &super::pubsub::AcknowledgeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_ACKNOWLEDGE, req, opt) - } - - pub fn acknowledge_async(&self, req: &super::pubsub::AcknowledgeRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.acknowledge_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn pull_opt(&self, req: &super::pubsub::PullRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_PULL, req, opt) - } - - pub fn pull(&self, req: &super::pubsub::PullRequest) -> ::grpcio::Result { - self.pull_opt(req, ::grpcio::CallOption::default()) - } - - pub fn pull_async_opt(&self, req: &super::pubsub::PullRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_PULL, req, opt) - } - - pub fn pull_async(&self, req: &super::pubsub::PullRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.pull_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn streaming_pull_opt(&self, opt: ::grpcio::CallOption) -> ::grpcio::Result<(::grpcio::ClientDuplexSender, ::grpcio::ClientDuplexReceiver)> { - self.client.duplex_streaming(&METHOD_SUBSCRIBER_STREAMING_PULL, opt) - } - - pub fn streaming_pull(&self) -> ::grpcio::Result<(::grpcio::ClientDuplexSender, ::grpcio::ClientDuplexReceiver)> { - self.streaming_pull_opt(::grpcio::CallOption::default()) - } - - pub fn modify_push_config_opt(&self, req: &super::pubsub::ModifyPushConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, req, opt) - } - - pub fn modify_push_config(&self, req: &super::pubsub::ModifyPushConfigRequest) -> ::grpcio::Result { - self.modify_push_config_opt(req, ::grpcio::CallOption::default()) - } - - pub fn modify_push_config_async_opt(&self, req: &super::pubsub::ModifyPushConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, req, opt) - } - - pub fn modify_push_config_async(&self, req: &super::pubsub::ModifyPushConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.modify_push_config_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_snapshot_opt(&self, req: &super::pubsub::GetSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_GET_SNAPSHOT, req, opt) - } - - pub fn get_snapshot(&self, req: &super::pubsub::GetSnapshotRequest) -> ::grpcio::Result { - self.get_snapshot_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_snapshot_async_opt(&self, req: &super::pubsub::GetSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_GET_SNAPSHOT, req, opt) - } - - pub fn get_snapshot_async(&self, req: &super::pubsub::GetSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_snapshot_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_snapshots_opt(&self, req: &super::pubsub::ListSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_LIST_SNAPSHOTS, req, opt) - } - - pub fn list_snapshots(&self, req: &super::pubsub::ListSnapshotsRequest) -> ::grpcio::Result { - self.list_snapshots_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_snapshots_async_opt(&self, req: &super::pubsub::ListSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_LIST_SNAPSHOTS, req, opt) - } - - pub fn list_snapshots_async(&self, req: &super::pubsub::ListSnapshotsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_snapshots_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_snapshot_opt(&self, req: &super::pubsub::CreateSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_CREATE_SNAPSHOT, req, opt) - } - - pub fn create_snapshot(&self, req: &super::pubsub::CreateSnapshotRequest) -> ::grpcio::Result { - self.create_snapshot_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_snapshot_async_opt(&self, req: &super::pubsub::CreateSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_CREATE_SNAPSHOT, req, opt) - } - - pub fn create_snapshot_async(&self, req: &super::pubsub::CreateSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_snapshot_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_snapshot_opt(&self, req: &super::pubsub::UpdateSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_UPDATE_SNAPSHOT, req, opt) - } - - pub fn update_snapshot(&self, req: &super::pubsub::UpdateSnapshotRequest) -> ::grpcio::Result { - self.update_snapshot_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_snapshot_async_opt(&self, req: &super::pubsub::UpdateSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_UPDATE_SNAPSHOT, req, opt) - } - - pub fn update_snapshot_async(&self, req: &super::pubsub::UpdateSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_snapshot_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_snapshot_opt(&self, req: &super::pubsub::DeleteSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_DELETE_SNAPSHOT, req, opt) - } - - pub fn delete_snapshot(&self, req: &super::pubsub::DeleteSnapshotRequest) -> ::grpcio::Result { - self.delete_snapshot_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_snapshot_async_opt(&self, req: &super::pubsub::DeleteSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_DELETE_SNAPSHOT, req, opt) - } - - pub fn delete_snapshot_async(&self, req: &super::pubsub::DeleteSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_snapshot_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn seek_opt(&self, req: &super::pubsub::SeekRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_SEEK, req, opt) - } - - pub fn seek(&self, req: &super::pubsub::SeekRequest) -> ::grpcio::Result { - self.seek_opt(req, ::grpcio::CallOption::default()) - } - - pub fn seek_async_opt(&self, req: &super::pubsub::SeekRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_SEEK, req, opt) - } - - pub fn seek_async(&self, req: &super::pubsub::SeekRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.seek_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait Subscriber { - fn create_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::Subscription, sink: ::grpcio::UnarySink); - fn get_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetSubscriptionRequest, sink: ::grpcio::UnarySink); - fn update_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::UpdateSubscriptionRequest, sink: ::grpcio::UnarySink); - fn list_subscriptions(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListSubscriptionsRequest, sink: ::grpcio::UnarySink); - fn delete_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteSubscriptionRequest, sink: ::grpcio::UnarySink); - fn modify_ack_deadline(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ModifyAckDeadlineRequest, sink: ::grpcio::UnarySink); - fn acknowledge(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::AcknowledgeRequest, sink: ::grpcio::UnarySink); - fn pull(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::PullRequest, sink: ::grpcio::UnarySink); - fn streaming_pull(&mut self, ctx: ::grpcio::RpcContext, stream: ::grpcio::RequestStream, sink: ::grpcio::DuplexSink); - fn modify_push_config(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ModifyPushConfigRequest, sink: ::grpcio::UnarySink); - fn get_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetSnapshotRequest, sink: ::grpcio::UnarySink); - fn list_snapshots(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListSnapshotsRequest, sink: ::grpcio::UnarySink); - fn create_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::CreateSnapshotRequest, sink: ::grpcio::UnarySink); - fn update_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::UpdateSnapshotRequest, sink: ::grpcio::UnarySink); - fn delete_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteSnapshotRequest, sink: ::grpcio::UnarySink); - fn seek(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::SeekRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_subscriber(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, move |ctx, req, resp| { - instance.create_subscription(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, move |ctx, req, resp| { - instance.get_subscription(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_UPDATE_SUBSCRIPTION, move |ctx, req, resp| { - instance.update_subscription(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, move |ctx, req, resp| { - instance.list_subscriptions(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, move |ctx, req, resp| { - instance.delete_subscription(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, move |ctx, req, resp| { - instance.modify_ack_deadline(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_ACKNOWLEDGE, move |ctx, req, resp| { - instance.acknowledge(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_PULL, move |ctx, req, resp| { - instance.pull(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_duplex_streaming_handler(&METHOD_SUBSCRIBER_STREAMING_PULL, move |ctx, req, resp| { - instance.streaming_pull(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, move |ctx, req, resp| { - instance.modify_push_config(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_GET_SNAPSHOT, move |ctx, req, resp| { - instance.get_snapshot(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_LIST_SNAPSHOTS, move |ctx, req, resp| { - instance.list_snapshots(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_CREATE_SNAPSHOT, move |ctx, req, resp| { - instance.create_snapshot(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_UPDATE_SNAPSHOT, move |ctx, req, resp| { - instance.update_snapshot(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_DELETE_SNAPSHOT, move |ctx, req, resp| { - instance.delete_snapshot(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_SEEK, move |ctx, req, resp| { - instance.seek(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema.rs deleted file mode 100644 index 33ddb8b042..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema.rs +++ /dev/null @@ -1,2685 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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, - // 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()) - } -} - -impl ::protobuf::Message for Schema { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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 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\"\xf9\x01\n\x06Schema\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\x04type\x12\x1e\n\ndefinition\x18\x03\x20\ - \x01(\tR\ndefinition\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\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/{schem\ - a}\"\xa7\x01\n\x13CreateSchemaRequest\x12<\n\x06parent\x18\x01\x20\x01(\ - \tR\x06parentB$\xe0A\x02\xfaA\x1e\x12\x1cpubsub.googleapis.com/Schema\ - \x125\n\x06schema\x18\x02\x20\x01(\x0b2\x18.google.pubsub.v1.SchemaR\x06\ - schemaB\x03\xe0A\x02\x12\x1b\n\tschema_id\x18\x03\x20\x01(\tR\x08schemaI\ - d\"~\n\x10GetSchemaRequest\x128\n\x04name\x18\x01\x20\x01(\tR\x04nameB$\ - \xe0A\x02\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\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\ - \xe0A\x02\xfaA-\n+cloudresourcemanager.googleapis.com/Project\x120\n\x04\ - view\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_toke\ - n\x18\x04\x20\x01(\tR\tpageToken\"q\n\x13ListSchemasResponse\x122\n\x07s\ - chemas\x18\x01\x20\x03(\x0b2\x18.google.pubsub.v1.SchemaR\x07schemas\x12\ - &\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"O\n\x13Delete\ - SchemaRequest\x128\n\x04name\x18\x01\x20\x01(\tR\x04nameB$\xfaA\x1e\n\ - \x1cpubsub.googleapis.com/Schema\xe0A\x02\"\x9b\x01\n\x15ValidateSchemaR\ - equest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudres\ - ourcemanager.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\x16ValidateMessageRequest\ - \x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudresourcem\ - anager.googleapis.com/Project\xe0A\x02\x127\n\x04name\x18\x02\x20\x01(\t\ - H\0R\x04nameB!\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\x122\n\x06sche\ - ma\x18\x03\x20\x01(\x0b2\x18.google.pubsub.v1.SchemaH\0R\x06schema\x12\ - \x18\n\x07message\x18\x04\x20\x01(\x0cR\x07message\x126\n\x08encoding\ - \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\xf7\x07\n\rSchem\ - aService\x12\x9a\x01\n\x0cCreateSchema\x12%.google.pubsub.v1.CreateSchem\ - aRequest\x1a\x18.google.pubsub.v1.Schema\"I\xdaA\x17parent,schema,schema\ - _id\x82\xd3\xe4\x93\x02)\"\x1f/v1/{parent=projects/*}/schemas:\x06schema\ - \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\xdaA\ - \x06parent\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{parent=projects/*}/schemas\ - \x12}\n\x0cDeleteSchema\x12%.google.pubsub.v1.DeleteSchemaRequest\x1a\ - \x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02!*\x1f/v1/{name=project\ - s/*/schemas/*}\xdaA\x04name\x12\xa8\x01\n\x0eValidateSchema\x12'.google.\ - pubsub.v1.ValidateSchemaRequest\x1a(.google.pubsub.v1.ValidateSchemaResp\ - onse\"C\xdaA\rparent,schema\x82\xd3\xe4\x93\x02-\"(/v1/{parent=projects/\ - *}/schemas:validate:\x01*\x12\xa2\x01\n\x0fValidateMessage\x12(.google.p\ - ubsub.v1.ValidateMessageRequest\x1a).google.pubsub.v1.ValidateMessageRes\ - ponse\":\x82\xd3\xe4\x93\x024\"//v1/{parent=projects/*}/schemas:validate\ - Message:\x01*\x1ap\xcaA\x15pubsub.googleapis.com\xd2AUhttps://www.google\ - apis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\xae\ - \x01\n\x14com.google.pubsub.v1B\x0bSchemaProtoP\x01Z6google.golang.org/g\ - enproto/googleapis/pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cloud.\ - PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud:\ - :PubSub::V1J\x82?\n\x07\x12\x05\x0e\0\xa0\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\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\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\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\03\n\t\n\x02\x08%\x12\x03\x19\03\n\x08\n\x01\x08\x12\ - \x03\x1a\0M\n\t\n\x02\x08\x0b\x12\x03\x1a\0M\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\03\n\t\n\x02\x08)\ - \x12\x03\x1e\03\n\x08\n\x01\x08\x12\x03\x1f\02\n\t\n\x02\x08-\x12\x03\ - \x1f\02\n\x85\x01\n\x02\x06\0\x12\x04%\0]\x012y\x20Service\x20for\x20doi\ - ng\x20schema-related\x20operations.\n\n\x20EXPERIMENTAL:\x20The\x20Schem\ - a\x20service\x20is\x20in\x20development\x20and\x20may\x20not\x20work\x20\ - yet.\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,\x022\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-\x040\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04-\ - \x040\x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x031\x04E\n\x0f\n\x08\x06\0\ - \x02\0\x04\x9b\x08\0\x12\x031\x04E\n\x1e\n\x04\x06\0\x02\x01\x12\x045\ - \x02:\x03\x1a\x10\x20Gets\x20a\x20schema.\n\n\x0c\n\x05\x06\0\x02\x01\ - \x01\x12\x035\x06\x0f\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x035\x10\x20\n\ - \x0c\n\x05\x06\0\x02\x01\x03\x12\x035+1\n\r\n\x05\x06\0\x02\x01\x04\x12\ - \x046\x048\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x046\x048\ - \x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x039\x042\n\x0f\n\x08\x06\0\x02\ - \x01\x04\x9b\x08\0\x12\x039\x042\n+\n\x04\x06\0\x02\x02\x12\x04=\x02B\ - \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\x03A\x044\n\x0f\n\x08\ - \x06\0\x02\x02\x04\x9b\x08\0\x12\x03A\x044\n!\n\x04\x06\0\x02\x03\x12\ - \x04E\x02J\x03\x1a\x13\x20Deletes\x20a\x20schema.\n\n\x0c\n\x05\x06\0\ - \x02\x03\x01\x12\x03E\x06\x12\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03E\x13\ - &\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03E1F\n\r\n\x05\x06\0\x02\x03\x04\ - \x12\x04F\x04H\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04F\ - \x04H\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03I\x042\n\x0f\n\x08\x06\0\ - \x02\x03\x04\x9b\x08\0\x12\x03I\x042\n#\n\x04\x06\0\x02\x04\x12\x04M\x02\ - S\x03\x1a\x15\x20Validates\x20a\x20schema.\n\n\x0c\n\x05\x06\0\x02\x04\ - \x01\x12\x03M\x06\x14\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03M\x15*\n\x0c\ - \n\x05\x06\0\x02\x04\x03\x12\x03M5K\n\r\n\x05\x06\0\x02\x04\x04\x12\x04N\ - \x04Q\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04N\x04Q\x06\n\ - \x0c\n\x05\x06\0\x02\x04\x04\x12\x03R\x04;\n\x0f\n\x08\x06\0\x02\x04\x04\ - \x9b\x08\0\x12\x03R\x04;\n5\n\x04\x06\0\x02\x05\x12\x04V\x02\\\x03\x1a'\ - \x20Validates\x20a\x20message\x20against\x20a\x20schema.\n\n\x0c\n\x05\ - \x06\0\x02\x05\x01\x12\x03V\x06\x15\n\x0c\n\x05\x06\0\x02\x05\x02\x12\ - \x03V\x16,\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03W\x0f&\n\r\n\x05\x06\0\ - \x02\x05\x04\x12\x04X\x04[\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\ - \x12\x04X\x04[\x06\n\x20\n\x02\x04\0\x12\x04`\0}\x01\x1a\x14\x20A\x20sch\ - ema\x20resource.\n\n\n\n\x03\x04\0\x01\x12\x03`\x08\x0e\n\x0b\n\x03\x04\ - \0\x07\x12\x04a\x02d\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04a\x02d\x04\n\ - 1\n\x04\x04\0\x04\0\x12\x04g\x02p\x03\x1a#\x20Possible\x20schema\x20defi\ - nition\x20types.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03g\x07\x0b\n5\n\x06\ - \x04\0\x04\0\x02\0\x12\x03i\x04\x19\x1a&\x20Default\x20value.\x20This\ - \x20value\x20is\x20unused.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03i\ - \x04\x14\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03i\x17\x18\n5\n\x06\x04\ - \0\x04\0\x02\x01\x12\x03l\x04\x18\x1a&\x20A\x20Protocol\x20Buffer\x20sch\ - ema\x20definition.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03l\x04\ - \x13\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03l\x16\x17\n+\n\x06\x04\0\ - \x04\0\x02\x02\x12\x03o\x04\r\x1a\x1c\x20An\x20Avro\x20schema\x20definit\ - ion.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03o\x04\x08\n\x0e\n\x07\ - \x04\0\x04\0\x02\x02\x02\x12\x03o\x0b\x0c\n^\n\x04\x04\0\x02\0\x12\x03t\ - \x02;\x1aQ\x20Required.\x20Name\x20of\x20the\x20schema.\n\x20Format\x20i\ - s\x20`projects/{project}/schemas/{schema}`.\n\n\r\n\x05\x04\0\x02\0\x04\ - \x12\x04t\x02p\x03\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\n\x0c\n\x05\x04\0\x02\0\x08\x12\x03t\x12:\n\x0f\n\x08\x04\0\x02\ - \0\x08\x9c\x08\0\x12\x03t\x139\n1\n\x04\x04\0\x02\x01\x12\x03w\x02\x10\ - \x1a$\x20The\x20type\x20of\x20the\x20schema\x20definition.\n\n\r\n\x05\ - \x04\0\x02\x01\x04\x12\x04w\x02t;\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\x0b\n\x0c\n\x05\x04\ - \0\x02\x01\x03\x12\x03w\x0e\x0f\n\xbe\x01\n\x04\x04\0\x02\x02\x12\x03|\ - \x02\x18\x1a\xb0\x01\x20The\x20definition\x20of\x20the\x20schema.\x20Thi\ - s\x20should\x20contain\x20a\x20string\x20representing\n\x20the\x20full\ - \x20definition\x20of\x20the\x20schema\x20that\x20is\x20a\x20valid\x20sch\ - ema\x20definition\x20of\n\x20the\x20type\x20specified\x20in\x20`type`.\n\ - \n\r\n\x05\x04\0\x02\x02\x04\x12\x04|\x02w\x10\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\x13\n\x0c\ - \n\x05\x04\0\x02\x02\x03\x12\x03|\x16\x17\n4\n\x02\x04\x01\x12\x06\x80\ - \x01\0\x97\x01\x01\x1a&\x20Request\x20for\x20the\x20CreateSchema\x20meth\ - od.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x80\x01\x08\x1b\nv\n\x04\x04\x01\ - \x02\0\x12\x06\x83\x01\x02\x88\x01\x04\x1af\x20Required.\x20The\x20name\ - \x20of\x20the\x20project\x20in\x20which\x20to\x20create\x20the\x20schema\ - .\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04\x01\ - \x02\0\x04\x12\x06\x83\x01\x02\x80\x01\x1d\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\x83\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x83\x01\t\ - \x0f\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x83\x01\x12\x13\n\x0f\n\x05\x04\ - \x01\x02\0\x08\x12\x06\x83\x01\x14\x88\x01\x03\n\x10\n\x08\x04\x01\x02\0\ - \x08\x9c\x08\0\x12\x04\x84\x01\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\ - \x08\x12\x06\x85\x01\x04\x87\x01\x05\n\xd3\x01\n\x04\x04\x01\x02\x01\x12\ - \x04\x8f\x01\x02=\x1a\xc4\x01\x20Required.\x20The\x20schema\x20object\ - \x20to\x20create.\n\n\x20This\x20schema's\x20`name`\x20parameter\x20is\ - \x20ignored.\x20The\x20schema\x20object\x20returned\n\x20by\x20CreateSch\ - ema\x20will\x20have\x20a\x20`name`\x20made\x20using\x20the\x20given\x20`\ - parent`\x20and\n\x20`schema_id`.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\ - \x06\x8f\x01\x02\x88\x01\x04\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\x8f\ - \x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x8f\x01\t\x0f\n\r\n\ - \x05\x04\x01\x02\x01\x03\x12\x04\x8f\x01\x12\x13\n\r\n\x05\x04\x01\x02\ - \x01\x08\x12\x04\x8f\x01\x14<\n\x10\n\x08\x04\x01\x02\x01\x08\x9c\x08\0\ - \x12\x04\x8f\x01\x15;\n\xd4\x01\n\x04\x04\x01\x02\x02\x12\x04\x96\x01\ - \x02\x17\x1a\xc5\x01\x20The\x20ID\x20to\x20use\x20for\x20the\x20schema,\ - \x20which\x20will\x20become\x20the\x20final\x20component\x20of\n\x20the\ - \x20schema's\x20resource\x20name.\n\n\x20See\x20https://cloud.google.com\ - /pubsub/docs/admin#resource_names\x20for\x20resource\n\x20name\x20constr\ - aints.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\x96\x01\x02\x8f\x01=\n\ - \r\n\x05\x04\x01\x02\x02\x05\x12\x04\x96\x01\x02\x08\n\r\n\x05\x04\x01\ - \x02\x02\x01\x12\x04\x96\x01\t\x12\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\ - \x96\x01\x15\x16\nY\n\x02\x05\0\x12\x06\x9a\x01\0\xa4\x01\x01\x1aK\x20Vi\ - ew\x20of\x20Schema\x20object\x20fields\x20to\x20be\x20returned\x20by\x20\ - GetSchema\x20and\x20ListSchemas.\n\n\x0b\n\x03\x05\0\x01\x12\x04\x9a\x01\ - \x05\x0f\nS\n\x04\x05\0\x02\0\x12\x04\x9d\x01\x02\x1e\x1aE\x20The\x20def\ - ault\x20/\x20unset\x20value.\n\x20The\x20API\x20will\x20default\x20to\ - \x20the\x20BASIC\x20view.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\x9d\x01\ - \x02\x19\n\r\n\x05\x05\0\x02\0\x02\x12\x04\x9d\x01\x1c\x1d\nP\n\x04\x05\ - \0\x02\x01\x12\x04\xa0\x01\x02\x0c\x1aB\x20Include\x20the\x20name\x20and\ - \x20type\x20of\x20the\x20schema,\x20but\x20not\x20the\x20definition.\n\n\ - \r\n\x05\x05\0\x02\x01\x01\x12\x04\xa0\x01\x02\x07\n\r\n\x05\x05\0\x02\ - \x01\x02\x12\x04\xa0\x01\n\x0b\n1\n\x04\x05\0\x02\x02\x12\x04\xa3\x01\ - \x02\x0b\x1a#\x20Include\x20all\x20Schema\x20object\x20fields.\n\n\r\n\ - \x05\x05\0\x02\x02\x01\x12\x04\xa3\x01\x02\x06\n\r\n\x05\x05\0\x02\x02\ - \x02\x12\x04\xa3\x01\t\n\n1\n\x02\x04\x02\x12\x06\xa7\x01\0\xb3\x01\x01\ - \x1a#\x20Request\x20for\x20the\x20GetSchema\x20method.\n\n\x0b\n\x03\x04\ - \x02\x01\x12\x04\xa7\x01\x08\x18\nl\n\x04\x04\x02\x02\0\x12\x06\xaa\x01\ - \x02\xad\x01\x04\x1a\\\x20Required.\x20The\x20name\x20of\x20the\x20schem\ - a\x20to\x20get.\n\x20Format\x20is\x20`projects/{project}/schemas/{schema\ - }`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xaa\x01\x02\xa7\x01\x1a\n\r\ - \n\x05\x04\x02\x02\0\x05\x12\x04\xaa\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\xaa\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xaa\x01\x10\ - \x11\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xaa\x01\x12\xad\x01\x03\n\x10\ - \n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xab\x01\x04*\n\x0f\n\x07\x04\ - \x02\x02\0\x08\x9f\x08\x12\x04\xac\x01\x04N\n\xb0\x01\n\x04\x04\x02\x02\ - \x01\x12\x04\xb2\x01\x02\x16\x1a\xa1\x01\x20The\x20set\x20of\x20fields\ - \x20to\x20return\x20in\x20the\x20response.\x20If\x20not\x20set,\x20retur\ - ns\x20a\x20Schema\n\x20with\x20`name`\x20and\x20`type`,\x20but\x20not\ - \x20`definition`.\x20Set\x20to\x20`FULL`\x20to\x20retrieve\x20all\n\x20f\ - ields.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xb2\x01\x02\xad\x01\x04\ - \n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xb2\x01\x02\x0c\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\xb2\x01\r\x11\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ - \xb2\x01\x14\x15\n5\n\x02\x04\x03\x12\x06\xb6\x01\0\xcc\x01\x01\x1a'\x20\ - Request\x20for\x20the\x20`ListSchemas`\x20method.\n\n\x0b\n\x03\x04\x03\ - \x01\x12\x04\xb6\x01\x08\x1a\nq\n\x04\x04\x03\x02\0\x12\x06\xb9\x01\x02\ - \xbe\x01\x04\x1aa\x20Required.\x20The\x20name\x20of\x20the\x20project\ - \x20in\x20which\x20to\x20list\x20schemas.\n\x20Format\x20is\x20`projects\ - /{project-id}`.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\x06\xb9\x01\x02\xb6\ - \x01\x1c\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xb9\x01\x02\x08\n\r\n\x05\ - \x04\x03\x02\0\x01\x12\x04\xb9\x01\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\ - \x04\xb9\x01\x12\x13\n\x0f\n\x05\x04\x03\x02\0\x08\x12\x06\xb9\x01\x14\ - \xbe\x01\x03\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\xba\x01\x04\ - *\n\x11\n\x07\x04\x03\x02\0\x08\x9f\x08\x12\x06\xbb\x01\x04\xbd\x01\x05\ - \n\xb6\x01\n\x04\x04\x03\x02\x01\x12\x04\xc3\x01\x02\x16\x1a\xa7\x01\x20\ - The\x20set\x20of\x20Schema\x20fields\x20to\x20return\x20in\x20the\x20res\ - ponse.\x20If\x20not\x20set,\x20returns\n\x20Schemas\x20with\x20`name`\ - \x20and\x20`type`,\x20but\x20not\x20`definition`.\x20Set\x20to\x20`FULL`\ - \x20to\n\x20retrieve\x20all\x20fields.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\ - \x12\x06\xc3\x01\x02\xbe\x01\x04\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\ - \xc3\x01\x02\x0c\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xc3\x01\r\x11\n\r\ - \n\x05\x04\x03\x02\x01\x03\x12\x04\xc3\x01\x14\x15\n4\n\x04\x04\x03\x02\ - \x02\x12\x04\xc6\x01\x02\x16\x1a&\x20Maximum\x20number\x20of\x20schemas\ - \x20to\x20return.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xc6\x01\x02\ - \xc3\x01\x16\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xc6\x01\x02\x07\n\r\n\ - \x05\x04\x03\x02\x02\x01\x12\x04\xc6\x01\x08\x11\n\r\n\x05\x04\x03\x02\ - \x02\x03\x12\x04\xc6\x01\x14\x15\n\xc6\x01\n\x04\x04\x03\x02\x03\x12\x04\ - \xcb\x01\x02\x18\x1a\xb7\x01\x20The\x20value\x20returned\x20by\x20the\ - \x20last\x20`ListSchemasResponse`;\x20indicates\x20that\n\x20this\x20is\ - \x20a\x20continuation\x20of\x20a\x20prior\x20`ListSchemas`\x20call,\x20a\ - nd\x20that\x20the\n\x20system\x20should\x20return\x20the\x20next\x20page\ - \x20of\x20data.\n\n\x0f\n\x05\x04\x03\x02\x03\x04\x12\x06\xcb\x01\x02\ - \xc6\x01\x16\n\r\n\x05\x04\x03\x02\x03\x05\x12\x04\xcb\x01\x02\x08\n\r\n\ - \x05\x04\x03\x02\x03\x01\x12\x04\xcb\x01\t\x13\n\r\n\x05\x04\x03\x02\x03\ - \x03\x12\x04\xcb\x01\x16\x17\n6\n\x02\x04\x04\x12\x06\xcf\x01\0\xd6\x01\ - \x01\x1a(\x20Response\x20for\x20the\x20`ListSchemas`\x20method.\n\n\x0b\ - \n\x03\x04\x04\x01\x12\x04\xcf\x01\x08\x1b\n&\n\x04\x04\x04\x02\0\x12\ - \x04\xd1\x01\x02\x1e\x1a\x18\x20The\x20resulting\x20schemas.\n\n\r\n\x05\ - \x04\x04\x02\0\x04\x12\x04\xd1\x01\x02\n\n\r\n\x05\x04\x04\x02\0\x06\x12\ - \x04\xd1\x01\x0b\x11\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xd1\x01\x12\x19\ - \n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xd1\x01\x1c\x1d\n\x9b\x01\n\x04\x04\ - \x04\x02\x01\x12\x04\xd5\x01\x02\x1d\x1a\x8c\x01\x20If\x20not\x20empty,\ - \x20indicates\x20that\x20there\x20may\x20be\x20more\x20schemas\x20that\ - \x20match\x20the\n\x20request;\x20this\x20value\x20should\x20be\x20passe\ - d\x20in\x20a\x20new\x20`ListSchemasRequest`.\n\n\x0f\n\x05\x04\x04\x02\ - \x01\x04\x12\x06\xd5\x01\x02\xd1\x01\x1e\n\r\n\x05\x04\x04\x02\x01\x05\ - \x12\x04\xd5\x01\x02\x08\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xd5\x01\t\ - \x18\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xd5\x01\x1b\x1c\n6\n\x02\x04\ - \x05\x12\x06\xd9\x01\0\xe0\x01\x01\x1a(\x20Request\x20for\x20the\x20`Del\ - eteSchema`\x20method.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xd9\x01\x08\x1b\ - \nk\n\x04\x04\x05\x02\0\x12\x06\xdc\x01\x02\xdf\x01\x04\x1a[\x20Required\ - .\x20Name\x20of\x20the\x20schema\x20to\x20delete.\n\x20Format\x20is\x20`\ - projects/{project}/schemas/{schema}`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\ - \x12\x06\xdc\x01\x02\xd9\x01\x1d\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xdc\ - \x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xdc\x01\t\r\n\r\n\x05\ - \x04\x05\x02\0\x03\x12\x04\xdc\x01\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\ - \x12\x06\xdc\x01\x12\xdf\x01\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\ - \x12\x04\xdd\x01\x04*\n\x0f\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x04\xde\ - \x01\x04N\n8\n\x02\x04\x06\x12\x06\xe3\x01\0\xef\x01\x01\x1a*\x20Request\ - \x20for\x20the\x20`ValidateSchema`\x20method.\n\n\x0b\n\x03\x04\x06\x01\ - \x12\x04\xe3\x01\x08\x1d\nu\n\x04\x04\x06\x02\0\x12\x06\xe6\x01\x02\xeb\ - \x01\x04\x1ae\x20Required.\x20The\x20name\x20of\x20the\x20project\x20in\ - \x20which\x20to\x20validate\x20schemas.\n\x20Format\x20is\x20`projects/{\ - project-id}`.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xe6\x01\x02\xe3\ - \x01\x1f\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xe6\x01\x02\x08\n\r\n\x05\ - \x04\x06\x02\0\x01\x12\x04\xe6\x01\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\ - \x04\xe6\x01\x12\x13\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xe6\x01\x14\ - \xeb\x01\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xe7\x01\x04\ - *\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xe8\x01\x04\xea\x01\x05\ - \n8\n\x04\x04\x06\x02\x01\x12\x04\xee\x01\x02=\x1a*\x20Required.\x20The\ - \x20schema\x20object\x20to\x20validate.\n\n\x0f\n\x05\x04\x06\x02\x01\ - \x04\x12\x06\xee\x01\x02\xeb\x01\x04\n\r\n\x05\x04\x06\x02\x01\x06\x12\ - \x04\xee\x01\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xee\x01\t\x0f\ - \n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xee\x01\x12\x13\n\r\n\x05\x04\x06\ - \x02\x01\x08\x12\x04\xee\x01\x14<\n\x10\n\x08\x04\x06\x02\x01\x08\x9c\ - \x08\0\x12\x04\xee\x01\x15;\n7\n\x02\x04\x07\x12\x04\xf2\x01\0!\x1a+\x20\ - Response\x20for\x20the\x20`ValidateSchema`\x20method.\n\n\x0b\n\x03\x04\ - \x07\x01\x12\x04\xf2\x01\x08\x1e\n9\n\x02\x04\x08\x12\x06\xf5\x01\0\x90\ - \x02\x01\x1a+\x20Request\x20for\x20the\x20`ValidateMessage`\x20method.\n\ - \n\x0b\n\x03\x04\x08\x01\x12\x04\xf5\x01\x08\x1e\nu\n\x04\x04\x08\x02\0\ - \x12\x06\xf8\x01\x02\xfd\x01\x04\x1ae\x20Required.\x20The\x20name\x20of\ - \x20the\x20project\x20in\x20which\x20to\x20validate\x20schemas.\n\x20For\ - mat\x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\ - \x12\x06\xf8\x01\x02\xf5\x01\x20\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xf8\ - \x01\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xf8\x01\t\x0f\n\r\n\x05\ - \x04\x08\x02\0\x03\x12\x04\xf8\x01\x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\ - \x12\x06\xf8\x01\x14\xfd\x01\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\ - \x12\x04\xf9\x01\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xfa\ - \x01\x04\xfc\x01\x05\n\x0e\n\x04\x04\x08\x08\0\x12\x06\xff\x01\x02\x89\ - \x02\x03\n\r\n\x05\x04\x08\x08\0\x01\x12\x04\xff\x01\x08\x13\nr\n\x04\ - \x04\x08\x02\x01\x12\x06\x83\x02\x04\x85\x02\x06\x1ab\x20Name\x20of\x20t\ - he\x20schema\x20against\x20which\x20to\x20validate.\n\n\x20Format\x20is\ - \x20`projects/{project}/schemas/{schema}`.\n\n\r\n\x05\x04\x08\x02\x01\ - \x05\x12\x04\x83\x02\x04\n\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\x83\x02\ - \x0b\x0f\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\x83\x02\x12\x13\n\x0f\n\ - \x05\x04\x08\x02\x01\x08\x12\x06\x83\x02\x14\x85\x02\x05\n\x0f\n\x07\x04\ - \x08\x02\x01\x08\x9f\x08\x12\x04\x84\x02\x06P\n7\n\x04\x04\x08\x02\x02\ - \x12\x04\x88\x02\x04\x16\x1a)\x20Ad-hoc\x20schema\x20against\x20which\ - \x20to\x20validate\n\n\r\n\x05\x04\x08\x02\x02\x06\x12\x04\x88\x02\x04\n\ - \n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\x88\x02\x0b\x11\n\r\n\x05\x04\x08\ - \x02\x02\x03\x12\x04\x88\x02\x14\x15\nG\n\x04\x04\x08\x02\x03\x12\x04\ - \x8c\x02\x02\x14\x1a9\x20Message\x20to\x20validate\x20against\x20the\x20\ - provided\x20`schema_spec`.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\x12\x06\x8c\ - \x02\x02\x89\x02\x03\n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\x8c\x02\x02\ - \x07\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\x8c\x02\x08\x0f\n\r\n\x05\x04\ - \x08\x02\x03\x03\x12\x04\x8c\x02\x12\x13\n2\n\x04\x04\x08\x02\x04\x12\ - \x04\x8f\x02\x02\x18\x1a$\x20The\x20encoding\x20expected\x20for\x20messa\ - ges\n\n\x0f\n\x05\x04\x08\x02\x04\x04\x12\x06\x8f\x02\x02\x8c\x02\x14\n\ - \r\n\x05\x04\x08\x02\x04\x06\x12\x04\x8f\x02\x02\n\n\r\n\x05\x04\x08\x02\ - \x04\x01\x12\x04\x8f\x02\x0b\x13\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\ - \x8f\x02\x16\x17\n8\n\x02\x04\t\x12\x04\x93\x02\0\"\x1a,\x20Response\x20\ - for\x20the\x20`ValidateMessage`\x20method.\n\n\x0b\n\x03\x04\t\x01\x12\ - \x04\x93\x02\x08\x1f\n5\n\x02\x05\x01\x12\x06\x96\x02\0\xa0\x02\x01\x1a'\ - \x20Possible\x20encoding\x20types\x20for\x20messages.\n\n\x0b\n\x03\x05\ - \x01\x01\x12\x04\x96\x02\x05\r\n\x1b\n\x04\x05\x01\x02\0\x12\x04\x98\x02\ - \x02\x1b\x1a\r\x20Unspecified\n\n\r\n\x05\x05\x01\x02\0\x01\x12\x04\x98\ - \x02\x02\x16\n\r\n\x05\x05\x01\x02\0\x02\x12\x04\x98\x02\x19\x1a\n\x1d\n\ - \x04\x05\x01\x02\x01\x12\x04\x9b\x02\x02\x0b\x1a\x0f\x20JSON\x20encoding\ - \n\n\r\n\x05\x05\x01\x02\x01\x01\x12\x04\x9b\x02\x02\x06\n\r\n\x05\x05\ - \x01\x02\x01\x02\x12\x04\x9b\x02\t\n\n}\n\x04\x05\x01\x02\x02\x12\x04\ - \x9f\x02\x02\r\x1ao\x20Binary\x20encoding,\x20as\x20defined\x20by\x20the\ - \x20schema\x20type.\x20For\x20some\x20schema\x20types,\n\x20binary\x20en\ - coding\x20may\x20not\x20be\x20available.\n\n\r\n\x05\x05\x01\x02\x02\x01\ - \x12\x04\x9f\x02\x02\x08\n\r\n\x05\x05\x01\x02\x02\x02\x12\x04\x9f\x02\ - \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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema_grpc.rs deleted file mode 100644 index 6c0fc45418..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema_grpc.rs +++ /dev/null @@ -1,209 +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_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 { - 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 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: ::futures::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); - fn get_schema(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::GetSchemaRequest, sink: ::grpcio::UnarySink); - fn list_schemas(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::ListSchemasRequest, sink: ::grpcio::UnarySink); - fn delete_schema(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::DeleteSchemaRequest, sink: ::grpcio::UnarySink); - fn validate_schema(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::ValidateSchemaRequest, sink: ::grpcio::UnarySink); - fn validate_message(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::ValidateMessageRequest, sink: ::grpcio::UnarySink); -} - -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_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/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub.rs deleted file mode 100644 index 3465882c7d..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub.rs +++ /dev/null @@ -1,5057 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/v1beta2/pubsub.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Topic { - // 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 Topic { - fn default() -> &'a Topic { - ::default_instance() - } -} - -impl Topic { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static Topic { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Topic::new) - } -} - -impl ::protobuf::Clear for Topic { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PubsubMessage { - // message fields - pub data: ::std::vec::Vec, - pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub message_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PubsubMessage { - fn default() -> &'a PubsubMessage { - ::default_instance() - } -} - -impl PubsubMessage { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message_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.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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static PubsubMessage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - 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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetTopicRequest { - // 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 GetTopicRequest { - fn default() -> &'a GetTopicRequest { - ::default_instance() - } -} - -impl GetTopicRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static GetTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetTopicRequest::new) - } -} - -impl ::protobuf::Clear for GetTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[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<'a> ::std::default::Default for &'a PublishRequest { - fn default() -> &'a PublishRequest { - ::default_instance() - } -} - -impl PublishRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.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; - 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); - 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)?; - } - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static PublishRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PublishRequest::new) - } -} - -impl ::protobuf::Clear for PublishRequest { - fn clear(&mut self) { - self.topic.clear(); - self.messages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PublishResponse { - // message fields - pub message_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 PublishResponse { - fn default() -> &'a PublishResponse { - ::default_instance() - } -} - -impl PublishResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.message_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() -> 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 default_instance() -> &'static PublishResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PublishResponse::new) - } -} - -impl ::protobuf::Clear for PublishResponse { - fn clear(&mut self) { - self.message_ids.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicsRequest { - // 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 ListTopicsRequest { - fn default() -> &'a ListTopicsRequest { - ::default_instance() - } -} - -impl ListTopicsRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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() -> 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 default_instance() -> &'static ListTopicsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicsRequest::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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicsResponse { - // message fields - pub topics: ::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 ListTopicsResponse { - fn default() -> &'a ListTopicsResponse { - ::default_instance() - } -} - -impl ListTopicsResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.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.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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 default_instance() -> &'static ListTopicsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicsResponse::new) - } -} - -impl ::protobuf::Clear for ListTopicsResponse { - fn clear(&mut self) { - self.topics.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSubscriptionsRequest { - // 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, -} - -impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsRequest { - fn default() -> &'a ListTopicSubscriptionsRequest { - ::default_instance() - } -} - -impl ListTopicSubscriptionsRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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.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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - 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() -> 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 default_instance() -> &'static ListTopicSubscriptionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSubscriptionsRequest::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSubscriptionsResponse { - // message fields - pub subscriptions: ::protobuf::RepeatedField<::std::string::String>, - 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 ListTopicSubscriptionsResponse { - fn default() -> &'a ListTopicSubscriptionsResponse { - ::default_instance() - } -} - -impl ListTopicSubscriptionsResponse { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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 { - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - 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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static ListTopicSubscriptionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSubscriptionsResponse::new) - } -} - -impl ::protobuf::Clear for ListTopicSubscriptionsResponse { - fn clear(&mut self) { - self.subscriptions.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteTopicRequest { - // 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 DeleteTopicRequest { - fn default() -> &'a DeleteTopicRequest { - ::default_instance() - } -} - -impl DeleteTopicRequest { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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() -> 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 default_instance() -> &'static DeleteTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteTopicRequest::new) - } -} - -impl ::protobuf::Clear for DeleteTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Subscription { - // message fields - pub name: ::std::string::String, - pub topic: ::std::string::String, - pub push_config: ::protobuf::SingularPtrField, - pub ack_deadline_seconds: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Subscription { - fn default() -> &'a Subscription { - ::default_instance() - } -} - -impl Subscription { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 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)?; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 self.ack_deadline_seconds != 0 { - my_size += ::protobuf::rt::value_size(5, 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.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 self.ack_deadline_seconds != 0 { - os.write_int32(5, 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() -> 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 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.ack_deadline_seconds = 0; - 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(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>, - // 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() - } -} - -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.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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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 ReceivedMessage { - // message fields - pub ack_id: ::std::string::String, - pub message: ::protobuf::SingularPtrField, - // 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.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()) - } -} - -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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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 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.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()) - } -} - -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.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()) - } -} - -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.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()) - } -} - -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_id: ::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()) - } - - // 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; - } -} - -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)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ack_id)?; - }, - 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); - } - if !self.ack_id.is_empty() { - 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::unknown_fields_size(self.get_unknown_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.ack_id.is_empty() { - os.write_string(2, &self.ack_id)?; - } - 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_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 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_id.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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\"google/pubsub/v1beta2/pubsub.proto\x12\x15google.pubsub.v1beta2\x1a\ - \x1bgoogle/protobuf/empty.proto\"\x1b\n\x05Topic\x12\x12\n\x04name\x18\ - \x01\x20\x01(\tR\x04name\"\xd7\x01\n\rPubsubMessage\x12\x12\n\x04data\ - \x18\x01\x20\x01(\x0cR\x04data\x12T\n\nattributes\x18\x02\x20\x03(\x0b24\ - .google.pubsub.v1beta2.PubsubMessage.AttributesEntryR\nattributes\x12\ - \x1d\n\nmessage_id\x18\x03\x20\x01(\tR\tmessageId\x1a=\n\x0fAttributesEn\ - try\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\x05topic\"h\n\x0ePublishRequest\x12\x14\n\ - \x05topic\x18\x01\x20\x01(\tR\x05topic\x12@\n\x08messages\x18\x02\x20\ - \x03(\x0b2$.google.pubsub.v1beta2.PubsubMessageR\x08messages\"2\n\x0fPub\ - lishResponse\x12\x1f\n\x0bmessage_ids\x18\x01\x20\x03(\tR\nmessageIds\"i\ - \n\x11ListTopicsRequest\x12\x18\n\x07project\x18\x01\x20\x01(\tR\x07proj\ - ect\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npa\ - ge_token\x18\x03\x20\x01(\tR\tpageToken\"r\n\x12ListTopicsResponse\x124\ - \n\x06topics\x18\x01\x20\x03(\x0b2\x1c.google.pubsub.v1beta2.TopicR\x06t\ - opics\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"q\n\ - \x1dListTopicSubscriptionsRequest\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\"n\n\x1eListTopicSubscript\ - ionsResponse\x12$\n\rsubscriptions\x18\x01\x20\x03(\tR\rsubscriptions\ - \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"*\n\x12De\ - leteTopicRequest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05topic\"\xae\ - \x01\n\x0cSubscription\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\ - \x14\n\x05topic\x18\x02\x20\x01(\tR\x05topic\x12B\n\x0bpush_config\x18\ - \x04\x20\x01(\x0b2!.google.pubsub.v1beta2.PushConfigR\npushConfig\x120\n\ - \x14ack_deadline_seconds\x18\x05\x20\x01(\x05R\x12ackDeadlineSeconds\"\ - \xc3\x01\n\nPushConfig\x12#\n\rpush_endpoint\x18\x01\x20\x01(\tR\x0cpush\ - Endpoint\x12Q\n\nattributes\x18\x02\x20\x03(\x0b21.google.pubsub.v1beta2\ - .PushConfig.AttributesEntryR\nattributes\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\"h\n\x0fReceivedMessage\x12\x15\n\x06ack_id\ - \x18\x01\x20\x01(\tR\x05ackId\x12>\n\x07message\x18\x02\x20\x01(\x0b2$.g\ - oogle.pubsub.v1beta2.PubsubMessageR\x07message\"<\n\x16GetSubscriptionRe\ - quest\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscription\"p\n\ - \x18ListSubscriptionsRequest\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\"\x8e\x01\n\x19ListSub\ - scriptionsResponse\x12I\n\rsubscriptions\x18\x01\x20\x03(\x0b2#.google.p\ - ubsub.v1beta2.SubscriptionR\rsubscriptions\x12&\n\x0fnext_page_token\x18\ - \x02\x20\x01(\tR\rnextPageToken\"?\n\x19DeleteSubscriptionRequest\x12\"\ - \n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscription\"\x81\x01\n\x17Mo\ - difyPushConfigRequest\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csub\ - scription\x12B\n\x0bpush_config\x18\x02\x20\x01(\x0b2!.google.pubsub.v1b\ - eta2.PushConfigR\npushConfig\"\x83\x01\n\x0bPullRequest\x12\"\n\x0csubsc\ - ription\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\"c\n\x0cPullResponse\x12S\n\x11receive\ - d_messages\x18\x01\x20\x03(\x0b2&.google.pubsub.v1beta2.ReceivedMessageR\ - \x10receivedMessages\"\x87\x01\n\x18ModifyAckDeadlineRequest\x12\"\n\x0c\ - subscription\x18\x01\x20\x01(\tR\x0csubscription\x12\x15\n\x06ack_id\x18\ - \x02\x20\x01(\tR\x05ackId\x120\n\x14ack_deadline_seconds\x18\x03\x20\x01\ - (\x05R\x12ackDeadlineSeconds\"Q\n\x12AcknowledgeRequest\x12\"\n\x0csubsc\ - ription\x18\x01\x20\x01(\tR\x0csubscription\x12\x17\n\x07ack_ids\x18\x02\ - \x20\x03(\tR\x06ackIds2\x88\x06\n\nSubscriber\x12^\n\x12CreateSubscripti\ - on\x12#.google.pubsub.v1beta2.Subscription\x1a#.google.pubsub.v1beta2.Su\ - bscription\x12e\n\x0fGetSubscription\x12-.google.pubsub.v1beta2.GetSubsc\ - riptionRequest\x1a#.google.pubsub.v1beta2.Subscription\x12v\n\x11ListSub\ - scriptions\x12/.google.pubsub.v1beta2.ListSubscriptionsRequest\x1a0.goog\ - le.pubsub.v1beta2.ListSubscriptionsResponse\x12^\n\x12DeleteSubscription\ - \x120.google.pubsub.v1beta2.DeleteSubscriptionRequest\x1a\x16.google.pro\ - tobuf.Empty\x12\\\n\x11ModifyAckDeadline\x12/.google.pubsub.v1beta2.Modi\ - fyAckDeadlineRequest\x1a\x16.google.protobuf.Empty\x12P\n\x0bAcknowledge\ - \x12).google.pubsub.v1beta2.AcknowledgeRequest\x1a\x16.google.protobuf.E\ - mpty\x12O\n\x04Pull\x12\".google.pubsub.v1beta2.PullRequest\x1a#.google.\ - pubsub.v1beta2.PullResponse\x12Z\n\x10ModifyPushConfig\x12..google.pubsu\ - b.v1beta2.ModifyPushConfigRequest\x1a\x16.google.protobuf.Empty2\xbf\x04\ - \n\tPublisher\x12I\n\x0bCreateTopic\x12\x1c.google.pubsub.v1beta2.Topic\ - \x1a\x1c.google.pubsub.v1beta2.Topic\x12X\n\x07Publish\x12%.google.pubsu\ - b.v1beta2.PublishRequest\x1a&.google.pubsub.v1beta2.PublishResponse\x12P\ - \n\x08GetTopic\x12&.google.pubsub.v1beta2.GetTopicRequest\x1a\x1c.google\ - .pubsub.v1beta2.Topic\x12a\n\nListTopics\x12(.google.pubsub.v1beta2.List\ - TopicsRequest\x1a).google.pubsub.v1beta2.ListTopicsResponse\x12\x85\x01\ - \n\x16ListTopicSubscriptions\x124.google.pubsub.v1beta2.ListTopicSubscri\ - ptionsRequest\x1a5.google.pubsub.v1beta2.ListTopicSubscriptionsResponse\ - \x12P\n\x0bDeleteTopic\x12).google.pubsub.v1beta2.DeleteTopicRequest\x1a\ - \x16.google.protobuf.EmptyBg\n\x19com.google.pubsub.v1beta2B\x0bPubsubPr\ - otoP\x01Z;google.golang.org/genproto/googleapis/pubsub/v1beta2;pubsubJ\ - \xecx\n\x07\x12\x05\x0e\0\x82\x03\x01\n\xc2\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb7\x04\x20Copyright\x20(c)\x202015,\x20Google\x20Inc.\n\n\x20Lice\ - nsed\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\x20may\x20obtai\ - n\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,\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\x1e\n\t\n\x02\x03\0\x12\x03\x12\0%\n\ - \x08\n\x01\x08\x12\x03\x14\0R\n\t\n\x02\x08\x0b\x12\x03\x14\0R\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\02\n\t\n\x02\x08\x01\x12\x03\x17\02\n\x91\x01\n\x02\x06\0\x12\x04\ - \x1b\0Q\x01\x1a\x84\x01\x20The\x20service\x20that\x20an\x20application\ - \x20uses\x20to\x20manipulate\x20subscriptions\x20and\x20to\n\x20consume\ - \x20messages\x20from\x20a\x20subscription\x20via\x20the\x20Pull\x20metho\ - d.\n\n\n\n\x03\x06\0\x01\x12\x03\x1b\x08\x12\n\xd6\x02\n\x04\x06\0\x02\0\ - \x12\x03\"\x02>\x1a\xc8\x02\x20Creates\x20a\x20subscription\x20to\x20a\ - \x20given\x20topic\x20for\x20a\x20given\x20subscriber.\n\x20If\x20the\ - \x20subscription\x20already\x20exists,\x20returns\x20ALREADY_EXISTS.\n\ - \x20If\x20the\x20corresponding\x20topic\x20doesn't\x20exist,\x20returns\ - \x20NOT_FOUND.\n\n\x20If\x20the\x20name\x20is\x20not\x20provided\x20in\ - \x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\x20random\n\ - \x20name\x20for\x20this\x20subscription\x20on\x20the\x20same\x20project\ - \x20as\x20the\x20topic.\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\"\x19%\n\x0c\n\x05\x06\0\x02\0\x03\ - \x12\x03\"0<\n@\n\x04\x06\0\x02\x01\x12\x03%\x02E\x1a3\x20Gets\x20the\ - \x20configuration\x20details\x20of\x20a\x20subscription.\n\n\x0c\n\x05\ - \x06\0\x02\x01\x01\x12\x03%\x06\x15\n\x0c\n\x05\x06\0\x02\x01\x02\x12\ - \x03%\x16,\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03%7C\n-\n\x04\x06\0\x02\ - \x02\x12\x04(\x02)*\x1a\x1f\x20Lists\x20matching\x20subscriptions.\n\n\ - \x0c\n\x05\x06\0\x02\x02\x01\x12\x03(\x06\x17\n\x0c\n\x05\x06\0\x02\x02\ - \x02\x12\x03(\x180\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03)\x0f(\n\xe9\x02\ - \n\x04\x06\0\x02\x03\x12\x040\x021&\x1a\xda\x02\x20Deletes\x20an\x20exis\ - ting\x20subscription.\x20All\x20pending\x20messages\x20in\x20the\x20subs\ - cription\n\x20are\x20immediately\x20dropped.\x20Calls\x20to\x20Pull\x20a\ - fter\x20deletion\x20will\x20return\n\x20NOT_FOUND.\x20After\x20a\x20subs\ - cription\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\x20\ - its\x20topic\x20unless\x20the\x20same\x20topic\x20is\x20specified.\n\n\ - \x0c\n\x05\x06\0\x02\x03\x01\x12\x030\x06\x18\n\x0c\n\x05\x06\0\x02\x03\ - \x02\x12\x030\x192\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x031\x0f$\n\xfb\x01\ - \n\x04\x06\0\x02\x04\x12\x047\x028&\x1a\xec\x01\x20Modifies\x20the\x20ac\ - k\x20deadline\x20for\x20a\x20specific\x20message.\x20This\x20method\x20i\ - s\x20useful\x20to\n\x20indicate\x20that\x20more\x20time\x20is\x20needed\ - \x20to\x20process\x20a\x20message\x20by\x20the\x20subscriber,\n\x20or\ - \x20to\x20make\x20the\x20message\x20available\x20for\x20redelivery\x20if\ - \x20the\x20processing\x20was\n\x20interrupted.\n\n\x0c\n\x05\x06\0\x02\ - \x04\x01\x12\x037\x06\x17\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x037\x180\n\ - \x0c\n\x05\x06\0\x02\x04\x03\x12\x038\x0f$\n\xe9\x02\n\x04\x06\0\x02\x05\ - \x12\x03A\x02F\x1a\xdb\x02\x20Acknowledges\x20the\x20messages\x20associa\ - ted\x20with\x20the\x20ack\x20tokens\x20in\x20the\n\x20AcknowledgeRequest\ - .\x20The\x20Pub/Sub\x20system\x20can\x20remove\x20the\x20relevant\x20mes\ - sages\n\x20from\x20the\x20subscription.\n\n\x20Acknowledging\x20a\x20mes\ - sage\x20whose\x20ack\x20deadline\x20has\x20expired\x20may\x20succeed,\n\ - \x20but\x20such\x20a\x20message\x20may\x20be\x20redelivered\x20later.\ - \x20Acknowledging\x20a\x20message\x20more\n\x20than\x20once\x20will\x20n\ - ot\x20result\x20in\x20an\x20error.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\ - \x03A\x06\x11\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03A\x12$\n\x0c\n\x05\ - \x06\0\x02\x05\x03\x12\x03A/D\n\xf0\x01\n\x04\x06\0\x02\x06\x12\x03G\x02\ - /\x1a\xe2\x01\x20Pulls\x20messages\x20from\x20the\x20server.\x20Returns\ - \x20an\x20empty\x20list\x20if\x20there\x20are\x20no\n\x20messages\x20ava\ - ilable\x20in\x20the\x20backlog.\x20The\x20server\x20may\x20return\x20UNA\ - VAILABLE\x20if\n\x20there\x20are\x20too\x20many\x20concurrent\x20pull\ - \x20requests\x20pending\x20for\x20the\x20given\n\x20subscription.\n\n\ - \x0c\n\x05\x06\0\x02\x06\x01\x12\x03G\x06\n\n\x0c\n\x05\x06\0\x02\x06\ - \x02\x12\x03G\x0b\x16\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03G!-\n\xef\x02\ - \n\x04\x06\0\x02\x07\x12\x03P\x02P\x1a\xe1\x02\x20Modifies\x20the\x20Pus\ - hConfig\x20for\x20a\x20specified\x20subscription.\n\n\x20This\x20may\x20\ - be\x20used\x20to\x20change\x20a\x20push\x20subscription\x20to\x20a\x20pu\ - ll\x20one\x20(signified\n\x20by\x20an\x20empty\x20PushConfig)\x20or\x20v\ - ice\x20versa,\x20or\x20change\x20the\x20endpoint\x20URL\x20and\x20other\ - \n\x20attributes\x20of\x20a\x20push\x20subscription.\x20Messages\x20will\ - \x20accumulate\x20for\n\x20delivery\x20continuously\x20through\x20the\ - \x20call\x20regardless\x20of\x20changes\x20to\x20the\n\x20PushConfig.\n\ - \n\x0c\n\x05\x06\0\x02\x07\x01\x12\x03P\x06\x16\n\x0c\n\x05\x06\0\x02\ - \x07\x02\x12\x03P\x17.\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03P9N\nj\n\x02\ - \x06\x01\x12\x04U\0m\x01\x1a^\x20The\x20service\x20that\x20an\x20applica\ - tion\x20uses\x20to\x20manipulate\x20topics,\x20and\x20to\x20send\n\x20me\ - ssages\x20to\x20a\x20topic.\n\n\n\n\x03\x06\x01\x01\x12\x03U\x08\x11\n;\ - \n\x04\x06\x01\x02\0\x12\x03W\x02)\x1a.\x20Creates\x20the\x20given\x20to\ - pic\x20with\x20the\x20given\x20name.\n\n\x0c\n\x05\x06\x01\x02\0\x01\x12\ - \x03W\x06\x11\n\x0c\n\x05\x06\x01\x02\0\x02\x12\x03W\x12\x17\n\x0c\n\x05\ - \x06\x01\x02\0\x03\x12\x03W\"'\nf\n\x04\x06\x01\x02\x01\x12\x03[\x028\ - \x1aY\x20Adds\x20one\x20or\x20more\x20messages\x20to\x20the\x20topic.\ - \x20Returns\x20NOT_FOUND\x20if\x20the\x20topic\x20does\n\x20not\x20exist\ - .\n\n\x0c\n\x05\x06\x01\x02\x01\x01\x12\x03[\x06\r\n\x0c\n\x05\x06\x01\ - \x02\x01\x02\x12\x03[\x0e\x1c\n\x0c\n\x05\x06\x01\x02\x01\x03\x12\x03['6\ - \n1\n\x04\x06\x01\x02\x02\x12\x03^\x020\x1a$\x20Gets\x20the\x20configura\ - tion\x20of\x20a\x20topic.\n\n\x0c\n\x05\x06\x01\x02\x02\x01\x12\x03^\x06\ - \x0e\n\x0c\n\x05\x06\x01\x02\x02\x02\x12\x03^\x0f\x1e\n\x0c\n\x05\x06\ - \x01\x02\x02\x03\x12\x03^).\n%\n\x04\x06\x01\x02\x03\x12\x03a\x02A\x1a\ - \x18\x20Lists\x20matching\x20topics.\n\n\x0c\n\x05\x06\x01\x02\x03\x01\ - \x12\x03a\x06\x10\n\x0c\n\x05\x06\x01\x02\x03\x02\x12\x03a\x11\"\n\x0c\n\ - \x05\x06\x01\x02\x03\x03\x12\x03a-?\nC\n\x04\x06\x01\x02\x04\x12\x04d\ - \x02e/\x1a5\x20Lists\x20the\x20name\x20of\x20the\x20subscriptions\x20for\ - \x20this\x20topic.\n\n\x0c\n\x05\x06\x01\x02\x04\x01\x12\x03d\x06\x1c\n\ - \x0c\n\x05\x06\x01\x02\x04\x02\x12\x03d\x1d:\n\x0c\n\x05\x06\x01\x02\x04\ - \x03\x12\x03e\x0f-\n\xbb\x02\n\x04\x06\x01\x02\x05\x12\x03l\x02F\x1a\xad\ - \x02\x20Deletes\x20the\x20topic\x20with\x20the\x20given\x20name.\x20Retu\ - rns\x20NOT_FOUND\x20if\x20the\x20topic\x20does\n\x20not\x20exist.\x20Aft\ - er\x20a\x20topic\x20is\x20deleted,\x20a\x20new\x20topic\x20may\x20be\x20\ - created\x20with\x20the\n\x20same\x20name;\x20this\x20is\x20an\x20entirel\ - y\x20new\x20topic\x20with\x20none\x20of\x20the\x20old\n\x20configuration\ - \x20or\x20subscriptions.\x20Existing\x20subscriptions\x20to\x20this\x20t\ - opic\x20are\n\x20not\x20deleted.\n\n\x0c\n\x05\x06\x01\x02\x05\x01\x12\ - \x03l\x06\x11\n\x0c\n\x05\x06\x01\x02\x05\x02\x12\x03l\x12$\n\x0c\n\x05\ - \x06\x01\x02\x05\x03\x12\x03l/D\n\x1f\n\x02\x04\0\x12\x04p\0s\x01\x1a\ - \x13\x20A\x20topic\x20resource.\n\n\n\n\x03\x04\0\x01\x12\x03p\x08\r\n!\ - \n\x04\x04\0\x02\0\x12\x03r\x02\x12\x1a\x14\x20Name\x20of\x20the\x20topi\ - c.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04r\x02p\x0f\n\x0c\n\x05\x04\0\x02\0\ - \x05\x12\x03r\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03r\t\r\n\x0c\n\ - \x05\x04\0\x02\0\x03\x12\x03r\x10\x11\n1\n\x02\x04\x01\x12\x05v\0\x83\ - \x01\x01\x1a$\x20A\x20message\x20data\x20and\x20its\x20attributes.\n\n\n\ - \n\x03\x04\x01\x01\x12\x03v\x08\x15\ng\n\x04\x04\x01\x02\0\x12\x03y\x02\ - \x11\x1aZ\x20The\x20message\x20payload.\x20For\x20JSON\x20requests,\x20t\ - he\x20value\x20of\x20this\x20field\x20must\x20be\n\x20base64-encoded.\n\ - \n\r\n\x05\x04\x01\x02\0\x04\x12\x04y\x02v\x17\n\x0c\n\x05\x04\x01\x02\0\ - \x05\x12\x03y\x02\x07\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03y\x08\x0c\n\ - \x0c\n\x05\x04\x01\x02\0\x03\x12\x03y\x0f\x10\n4\n\x04\x04\x01\x02\x01\ - \x12\x03|\x02%\x1a'\x20Optional\x20attributes\x20for\x20this\x20message.\ - \n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04|\x02y\x11\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\x20\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03|#$\n\xa0\x02\n\x04\x04\ - \x01\x02\x02\x12\x04\x82\x01\x02\x18\x1a\x91\x02\x20ID\x20of\x20this\x20\ - message\x20assigned\x20by\x20the\x20server\x20at\x20publication\x20time.\ - \x20Guaranteed\n\x20to\x20be\x20unique\x20within\x20the\x20topic.\x20Thi\ - s\x20value\x20may\x20be\x20read\x20by\x20a\x20subscriber\n\x20that\x20re\ - ceives\x20a\x20PubsubMessage\x20via\x20a\x20Pull\x20call\x20or\x20a\x20p\ - ush\x20delivery.\x20It\x20must\n\x20not\x20be\x20populated\x20by\x20a\ - \x20publisher\x20in\x20a\x20Publish\x20call.\n\n\x0e\n\x05\x04\x01\x02\ - \x02\x04\x12\x05\x82\x01\x02|%\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\x82\ - \x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x82\x01\t\x13\n\r\n\ - \x05\x04\x01\x02\x02\x03\x12\x04\x82\x01\x16\x17\n0\n\x02\x04\x02\x12\ - \x06\x86\x01\0\x89\x01\x01\x1a\"\x20Request\x20for\x20the\x20GetTopic\ - \x20method.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\x86\x01\x08\x17\n-\n\x04\ - \x04\x02\x02\0\x12\x04\x88\x01\x02\x13\x1a\x1f\x20The\x20name\x20of\x20t\ - he\x20topic\x20to\x20get.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\x88\ - \x01\x02\x86\x01\x19\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\x88\x01\x02\x08\ - \n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x88\x01\t\x0e\n\r\n\x05\x04\x02\x02\ - \0\x03\x12\x04\x88\x01\x11\x12\n/\n\x02\x04\x03\x12\x06\x8c\x01\0\x92\ - \x01\x01\x1a!\x20Request\x20for\x20the\x20Publish\x20method.\n\n\x0b\n\ - \x03\x04\x03\x01\x12\x04\x8c\x01\x08\x16\nL\n\x04\x04\x03\x02\0\x12\x04\ - \x8e\x01\x02\x13\x1a>\x20The\x20messages\x20in\x20the\x20request\x20will\ - \x20be\x20published\x20on\x20this\x20topic.\n\n\x0f\n\x05\x04\x03\x02\0\ - \x04\x12\x06\x8e\x01\x02\x8c\x01\x18\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\ - \x8e\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x8e\x01\t\x0e\n\r\n\ - \x05\x04\x03\x02\0\x03\x12\x04\x8e\x01\x11\x12\n(\n\x04\x04\x03\x02\x01\ - \x12\x04\x91\x01\x02&\x1a\x1a\x20The\x20messages\x20to\x20publish.\n\n\r\ - \n\x05\x04\x03\x02\x01\x04\x12\x04\x91\x01\x02\n\n\r\n\x05\x04\x03\x02\ - \x01\x06\x12\x04\x91\x01\x0b\x18\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\ - \x91\x01\x19!\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x91\x01$%\n0\n\x02\ - \x04\x04\x12\x06\x95\x01\0\x9a\x01\x01\x1a\"\x20Response\x20for\x20the\ - \x20Publish\x20method.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x95\x01\x08\x17\ - \n\xa8\x01\n\x04\x04\x04\x02\0\x12\x04\x99\x01\x02\"\x1a\x99\x01\x20The\ - \x20server-assigned\x20ID\x20of\x20each\x20published\x20message,\x20in\ - \x20the\x20same\x20order\x20as\n\x20the\x20messages\x20in\x20the\x20requ\ - est.\x20IDs\x20are\x20guaranteed\x20to\x20be\x20unique\x20within\n\x20th\ - e\x20topic.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\x99\x01\x02\n\n\r\n\ - \x05\x04\x04\x02\0\x05\x12\x04\x99\x01\x0b\x11\n\r\n\x05\x04\x04\x02\0\ - \x01\x12\x04\x99\x01\x12\x1d\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x99\x01\ - \x20!\n2\n\x02\x04\x05\x12\x06\x9d\x01\0\xa8\x01\x01\x1a$\x20Request\x20\ - for\x20the\x20ListTopics\x20method.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\ - \x9d\x01\x08\x19\nD\n\x04\x04\x05\x02\0\x12\x04\x9f\x01\x02\x15\x1a6\x20\ - The\x20name\x20of\x20the\x20cloud\x20project\x20that\x20topics\x20belong\ - \x20to.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\x9f\x01\x02\x9d\x01\x1b\ - \n\r\n\x05\x04\x05\x02\0\x05\x12\x04\x9f\x01\x02\x08\n\r\n\x05\x04\x05\ - \x02\0\x01\x12\x04\x9f\x01\t\x10\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x9f\ - \x01\x13\x14\n3\n\x04\x04\x05\x02\x01\x12\x04\xa2\x01\x02\x16\x1a%\x20Ma\ - ximum\x20number\x20of\x20topics\x20to\x20return.\n\n\x0f\n\x05\x04\x05\ - \x02\x01\x04\x12\x06\xa2\x01\x02\x9f\x01\x15\n\r\n\x05\x04\x05\x02\x01\ - \x05\x12\x04\xa2\x01\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xa2\ - \x01\x08\x11\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xa2\x01\x14\x15\n\xc0\ - \x01\n\x04\x04\x05\x02\x02\x12\x04\xa7\x01\x02\x18\x1a\xb1\x01\x20The\ - \x20value\x20returned\x20by\x20the\x20last\x20ListTopicsResponse;\x20ind\ - icates\x20that\x20this\x20is\n\x20a\x20continuation\x20of\x20a\x20prior\ - \x20ListTopics\x20call,\x20and\x20that\x20the\x20system\x20should\n\x20r\ - eturn\x20the\x20next\x20page\x20of\x20data.\n\n\x0f\n\x05\x04\x05\x02\ - \x02\x04\x12\x06\xa7\x01\x02\xa2\x01\x16\n\r\n\x05\x04\x05\x02\x02\x05\ - \x12\x04\xa7\x01\x02\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xa7\x01\t\ - \x13\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\xa7\x01\x16\x17\n3\n\x02\x04\ - \x06\x12\x06\xab\x01\0\xb2\x01\x01\x1a%\x20Response\x20for\x20the\x20Lis\ - tTopics\x20method.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xab\x01\x08\x1a\n%\ - \n\x04\x04\x06\x02\0\x12\x04\xad\x01\x02\x1c\x1a\x17\x20The\x20resulting\ - \x20topics.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xad\x01\x02\n\n\r\n\ - \x05\x04\x06\x02\0\x06\x12\x04\xad\x01\x0b\x10\n\r\n\x05\x04\x06\x02\0\ - \x01\x12\x04\xad\x01\x11\x17\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xad\x01\ - \x1a\x1b\n\x97\x01\n\x04\x04\x06\x02\x01\x12\x04\xb1\x01\x02\x1d\x1a\x88\ - \x01\x20If\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\ - \x20more\x20topics\x20that\x20match\x20the\n\x20request;\x20this\x20valu\ - e\x20should\x20be\x20passed\x20in\x20a\x20new\x20ListTopicsRequest.\n\n\ - \x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xb1\x01\x02\xad\x01\x1c\n\r\n\x05\ - \x04\x06\x02\x01\x05\x12\x04\xb1\x01\x02\x08\n\r\n\x05\x04\x06\x02\x01\ - \x01\x12\x04\xb1\x01\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xb1\x01\ - \x1b\x1c\n>\n\x02\x04\x07\x12\x06\xb5\x01\0\xc0\x01\x01\x1a0\x20Request\ - \x20for\x20the\x20ListTopicSubscriptions\x20method.\n\n\x0b\n\x03\x04\ - \x07\x01\x12\x04\xb5\x01\x08%\nI\n\x04\x04\x07\x02\0\x12\x04\xb7\x01\x02\ - \x13\x1a;\x20The\x20name\x20of\x20the\x20topic\x20that\x20subscriptions\ - \x20are\x20attached\x20to.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xb7\ - \x01\x02\xb5\x01'\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xb7\x01\x02\x08\n\ - \r\n\x05\x04\x07\x02\0\x01\x12\x04\xb7\x01\t\x0e\n\r\n\x05\x04\x07\x02\0\ - \x03\x12\x04\xb7\x01\x11\x12\n?\n\x04\x04\x07\x02\x01\x12\x04\xba\x01\ - \x02\x16\x1a1\x20Maximum\x20number\x20of\x20subscription\x20names\x20to\ - \x20return.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xba\x01\x02\xb7\ - \x01\x13\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xba\x01\x02\x07\n\r\n\x05\ - \x04\x07\x02\x01\x01\x12\x04\xba\x01\x08\x11\n\r\n\x05\x04\x07\x02\x01\ - \x03\x12\x04\xba\x01\x14\x15\n\xd8\x01\n\x04\x04\x07\x02\x02\x12\x04\xbf\ - \x01\x02\x18\x1a\xc9\x01\x20The\x20value\x20returned\x20by\x20the\x20las\ - t\x20ListTopicSubscriptionsResponse;\x20indicates\n\x20that\x20this\x20i\ - s\x20a\x20continuation\x20of\x20a\x20prior\x20ListTopicSubscriptions\x20\ - call,\x20and\n\x20that\x20the\x20system\x20should\x20return\x20the\x20ne\ - xt\x20page\x20of\x20data.\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xbf\ - \x01\x02\xba\x01\x16\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\xbf\x01\x02\ - \x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xbf\x01\t\x13\n\r\n\x05\x04\ - \x07\x02\x02\x03\x12\x04\xbf\x01\x16\x17\n?\n\x02\x04\x08\x12\x06\xc3\ - \x01\0\xcb\x01\x01\x1a1\x20Response\x20for\x20the\x20ListTopicSubscripti\ - ons\x20method.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xc3\x01\x08&\nF\n\x04\ - \x04\x08\x02\0\x12\x04\xc5\x01\x02$\x1a8\x20The\x20names\x20of\x20the\ - \x20subscriptions\x20that\x20match\x20the\x20request.\n\n\r\n\x05\x04\ - \x08\x02\0\x04\x12\x04\xc5\x01\x02\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\ - \xc5\x01\x0b\x11\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xc5\x01\x12\x1f\n\r\ - \n\x05\x04\x08\x02\0\x03\x12\x04\xc5\x01\"#\n\xc5\x01\n\x04\x04\x08\x02\ - \x01\x12\x04\xca\x01\x02\x1d\x1a\xb6\x01\x20If\x20not\x20empty,\x20indic\ - ates\x20that\x20there\x20may\x20be\x20more\x20subscriptions\x20that\x20m\ - atch\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20passed\x20\ - in\x20a\x20new\n\x20ListTopicSubscriptionsRequest\x20to\x20get\x20more\ - \x20subscriptions.\n\n\x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xca\x01\x02\ - \xc5\x01$\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xca\x01\x02\x08\n\r\n\ - \x05\x04\x08\x02\x01\x01\x12\x04\xca\x01\t\x18\n\r\n\x05\x04\x08\x02\x01\ - \x03\x12\x04\xca\x01\x1b\x1c\n3\n\x02\x04\t\x12\x06\xce\x01\0\xd1\x01\ - \x01\x1a%\x20Request\x20for\x20the\x20DeleteTopic\x20method.\n\n\x0b\n\ - \x03\x04\t\x01\x12\x04\xce\x01\x08\x1a\n,\n\x04\x04\t\x02\0\x12\x04\xd0\ - \x01\x02\x13\x1a\x1e\x20Name\x20of\x20the\x20topic\x20to\x20delete.\n\n\ - \x0f\n\x05\x04\t\x02\0\x04\x12\x06\xd0\x01\x02\xce\x01\x1c\n\r\n\x05\x04\ - \t\x02\0\x05\x12\x04\xd0\x01\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\ - \xd0\x01\t\x0e\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xd0\x01\x11\x12\n(\n\ - \x02\x04\n\x12\x06\xd4\x01\0\xf2\x01\x01\x1a\x1a\x20A\x20subscription\ - \x20resource.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xd4\x01\x08\x14\n)\n\x04\ - \x04\n\x02\0\x12\x04\xd6\x01\x02\x12\x1a\x1b\x20Name\x20of\x20the\x20sub\ - scription.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\xd6\x01\x02\xd4\x01\x16\ - \n\r\n\x05\x04\n\x02\0\x05\x12\x04\xd6\x01\x02\x08\n\r\n\x05\x04\n\x02\0\ - \x01\x12\x04\xd6\x01\t\r\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xd6\x01\x10\ - \x11\n\xb7\x01\n\x04\x04\n\x02\x01\x12\x04\xdb\x01\x02\x13\x1a\xa8\x01\ - \x20The\x20name\x20of\x20the\x20topic\x20from\x20which\x20this\x20subscr\ - iption\x20is\x20receiving\x20messages.\n\x20This\x20will\x20be\x20presen\ - t\x20if\x20and\x20only\x20if\x20the\x20subscription\x20has\x20not\x20bee\ - n\x20detached\n\x20from\x20its\x20topic.\n\n\x0f\n\x05\x04\n\x02\x01\x04\ - \x12\x06\xdb\x01\x02\xd6\x01\x12\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\xdb\ - \x01\x02\x08\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xdb\x01\t\x0e\n\r\n\x05\ - \x04\n\x02\x01\x03\x12\x04\xdb\x01\x11\x12\n\xc7\x01\n\x04\x04\n\x02\x02\ - \x12\x04\xe0\x01\x02\x1d\x1a\xb8\x01\x20If\x20push\x20delivery\x20is\x20\ - used\x20with\x20this\x20subscription,\x20this\x20field\x20is\n\x20used\ - \x20to\x20configure\x20it.\x20An\x20empty\x20pushConfig\x20signifies\x20\ - that\x20the\x20subscriber\n\x20will\x20pull\x20and\x20ack\x20messages\ - \x20using\x20API\x20methods.\n\n\x0f\n\x05\x04\n\x02\x02\x04\x12\x06\xe0\ - \x01\x02\xdb\x01\x13\n\r\n\x05\x04\n\x02\x02\x06\x12\x04\xe0\x01\x02\x0c\ - \n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xe0\x01\r\x18\n\r\n\x05\x04\n\x02\ - \x02\x03\x12\x04\xe0\x01\x1b\x1c\n\xd3\x05\n\x04\x04\n\x02\x03\x12\x04\ - \xf1\x01\x02!\x1a\xc4\x05\x20This\x20value\x20is\x20the\x20maximum\x20ti\ - me\x20after\x20a\x20subscriber\x20receives\x20a\x20message\n\x20before\ - \x20the\x20subscriber\x20should\x20acknowledge\x20the\x20message.\x20Aft\ - er\x20message\n\x20delivery\x20but\x20before\x20the\x20ack\x20deadline\ - \x20expires\x20and\x20before\x20the\x20message\x20is\n\x20acknowledged,\ - \x20it\x20is\x20an\x20outstanding\x20message\x20and\x20will\x20not\x20be\ - \x20delivered\n\x20again\x20during\x20that\x20time\x20(on\x20a\x20best-e\ - ffort\x20basis).\n\n\x20For\x20pull\x20delivery\x20this\x20value\n\x20is\ - \x20used\x20as\x20the\x20initial\x20value\x20for\x20the\x20ack\x20deadli\ - ne.\x20It\x20may\x20be\x20overridden\n\x20for\x20a\x20specific\x20messag\ - e\x20by\x20calling\x20ModifyAckDeadline.\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\x0f\n\x05\x04\n\x02\x03\x04\x12\x06\xf1\x01\x02\xe0\ - \x01\x1d\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\xf1\x01\x02\x07\n\r\n\x05\ - \x04\n\x02\x03\x01\x12\x04\xf1\x01\x08\x1c\n\r\n\x05\x04\n\x02\x03\x03\ - \x12\x04\xf1\x01\x1f\x20\n;\n\x02\x04\x0b\x12\x06\xf5\x01\0\x92\x02\x01\ - \x1a-\x20Configuration\x20for\x20a\x20push\x20delivery\x20endpoint.\n\n\ - \x0b\n\x03\x04\x0b\x01\x12\x04\xf5\x01\x08\x12\n\x97\x01\n\x04\x04\x0b\ - \x02\0\x12\x04\xf8\x01\x02\x1b\x1a\x88\x01\x20A\x20URL\x20locating\x20th\ - e\x20endpoint\x20to\x20which\x20messages\x20should\x20be\x20pushed.\n\ - \x20For\x20example,\x20a\x20Webhook\x20endpoint\x20might\x20use\x20\"htt\ - ps://example.com/push\".\n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\xf8\x01\ - \x02\xf5\x01\x14\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xf8\x01\x02\x08\n\r\ - \n\x05\x04\x0b\x02\0\x01\x12\x04\xf8\x01\t\x16\n\r\n\x05\x04\x0b\x02\0\ - \x03\x12\x04\xf8\x01\x19\x1a\n\xfe\x07\n\x04\x04\x0b\x02\x01\x12\x04\x91\ - \x02\x02%\x1a\xef\x07\x20Endpoint\x20configuration\x20attributes.\n\n\ - \x20Every\x20endpoint\x20has\x20a\x20set\x20of\x20API\x20supported\x20at\ - tributes\x20that\x20can\x20be\x20used\x20to\n\x20control\x20different\ - \x20aspects\x20of\x20the\x20message\x20delivery.\n\n\x20The\x20currently\ - \x20supported\x20attribute\x20is\x20`x-goog-version`,\x20which\x20you\ - \x20can\n\x20use\x20to\x20change\x20the\x20format\x20of\x20the\x20push\ - \x20message.\x20This\x20attribute\n\x20indicates\x20the\x20version\x20of\ - \x20the\x20data\x20expected\x20by\x20the\x20endpoint.\x20This\n\x20contr\ - ols\x20the\x20shape\x20of\x20the\x20envelope\x20(i.e.\x20its\x20fields\ - \x20and\x20metadata).\n\x20The\x20endpoint\x20version\x20is\x20based\x20\ - on\x20the\x20version\x20of\x20the\x20Pub/Sub\n\x20API.\n\n\x20If\x20not\ - \x20present\x20during\x20the\x20CreateSubscription\x20call,\x20it\x20wil\ - l\x20default\x20to\n\x20the\x20version\x20of\x20the\x20API\x20used\x20to\ - \x20make\x20such\x20call.\x20If\x20not\x20present\x20during\x20a\n\x20Mo\ - difyPushConfig\x20call,\x20its\x20value\x20will\x20not\x20be\x20changed.\ - \x20GetSubscription\n\x20calls\x20will\x20always\x20return\x20a\x20valid\ - \x20version,\x20even\x20if\x20the\x20subscription\x20was\n\x20created\ - \x20without\x20this\x20attribute.\n\n\x20The\x20possible\x20values\x20fo\ - r\x20this\x20attribute\x20are:\n\n\x20*\x20`v1beta1`:\x20uses\x20the\x20\ - push\x20format\x20defined\x20in\x20the\x20v1beta1\x20Pub/Sub\x20API.\n\ - \x20*\x20`v1beta2`:\x20uses\x20the\x20push\x20format\x20defined\x20in\ - \x20the\x20v1beta2\x20Pub/Sub\x20API.\n\n\n\x0f\n\x05\x04\x0b\x02\x01\ - \x04\x12\x06\x91\x02\x02\xf8\x01\x1b\n\r\n\x05\x04\x0b\x02\x01\x06\x12\ - \x04\x91\x02\x02\x15\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\x91\x02\x16\ - \x20\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x91\x02#$\nB\n\x02\x04\x0c\ - \x12\x06\x95\x02\0\x9b\x02\x01\x1a4\x20A\x20message\x20and\x20its\x20cor\ - responding\x20acknowledgment\x20ID.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\ - \x95\x02\x08\x17\nH\n\x04\x04\x0c\x02\0\x12\x04\x97\x02\x02\x14\x1a:\x20\ - This\x20ID\x20can\x20be\x20used\x20to\x20acknowledge\x20the\x20received\ - \x20message.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\x97\x02\x02\x95\x02\ - \x19\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\x97\x02\x02\x08\n\r\n\x05\x04\ - \x0c\x02\0\x01\x12\x04\x97\x02\t\x0f\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\ - \x97\x02\x12\x13\n\x1c\n\x04\x04\x0c\x02\x01\x12\x04\x9a\x02\x02\x1c\x1a\ - \x0e\x20The\x20message.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\x9a\ - \x02\x02\x97\x02\x14\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\x9a\x02\x02\ - \x0f\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\x9a\x02\x10\x17\n\r\n\x05\x04\ - \x0c\x02\x01\x03\x12\x04\x9a\x02\x1a\x1b\n7\n\x02\x04\r\x12\x06\x9e\x02\ - \0\xa1\x02\x01\x1a)\x20Request\x20for\x20the\x20GetSubscription\x20metho\ - d.\n\n\x0b\n\x03\x04\r\x01\x12\x04\x9e\x02\x08\x1e\n4\n\x04\x04\r\x02\0\ - \x12\x04\xa0\x02\x02\x1a\x1a&\x20The\x20name\x20of\x20the\x20subscriptio\ - n\x20to\x20get.\n\n\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xa0\x02\x02\x9e\ - \x02\x20\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xa0\x02\x02\x08\n\r\n\x05\x04\ - \r\x02\0\x01\x12\x04\xa0\x02\t\x15\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xa0\ - \x02\x18\x19\n9\n\x02\x04\x0e\x12\x06\xa4\x02\0\xaf\x02\x01\x1a+\x20Requ\ - est\x20for\x20the\x20ListSubscriptions\x20method.\n\n\x0b\n\x03\x04\x0e\ - \x01\x12\x04\xa4\x02\x08\x20\nK\n\x04\x04\x0e\x02\0\x12\x04\xa6\x02\x02\ - \x15\x1a=\x20The\x20name\x20of\x20the\x20cloud\x20project\x20that\x20sub\ - scriptions\x20belong\x20to.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xa6\ - \x02\x02\xa4\x02\"\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\xa6\x02\x02\x08\n\ - \r\n\x05\x04\x0e\x02\0\x01\x12\x04\xa6\x02\t\x10\n\r\n\x05\x04\x0e\x02\0\ - \x03\x12\x04\xa6\x02\x13\x14\n:\n\x04\x04\x0e\x02\x01\x12\x04\xa9\x02\ - \x02\x16\x1a,\x20Maximum\x20number\x20of\x20subscriptions\x20to\x20retur\ - n.\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\x12\x06\xa9\x02\x02\xa6\x02\x15\n\r\ - \n\x05\x04\x0e\x02\x01\x05\x12\x04\xa9\x02\x02\x07\n\r\n\x05\x04\x0e\x02\ - \x01\x01\x12\x04\xa9\x02\x08\x11\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\ - \xa9\x02\x14\x15\n\xce\x01\n\x04\x04\x0e\x02\x02\x12\x04\xae\x02\x02\x18\ - \x1a\xbf\x01\x20The\x20value\x20returned\x20by\x20the\x20last\x20ListSub\ - scriptionsResponse;\x20indicates\x20that\n\x20this\x20is\x20a\x20continu\ - ation\x20of\x20a\x20prior\x20ListSubscriptions\x20call,\x20and\x20that\ - \x20the\n\x20system\x20should\x20return\x20the\x20next\x20page\x20of\x20\ - data.\n\n\x0f\n\x05\x04\x0e\x02\x02\x04\x12\x06\xae\x02\x02\xa9\x02\x16\ - \n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xae\x02\x02\x08\n\r\n\x05\x04\x0e\ - \x02\x02\x01\x12\x04\xae\x02\t\x13\n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\ - \xae\x02\x16\x17\n:\n\x02\x04\x0f\x12\x06\xb2\x02\0\xba\x02\x01\x1a,\x20\ - Response\x20for\x20the\x20ListSubscriptions\x20method.\n\n\x0b\n\x03\x04\ - \x0f\x01\x12\x04\xb2\x02\x08!\n9\n\x04\x04\x0f\x02\0\x12\x04\xb4\x02\x02\ - *\x1a+\x20The\x20subscriptions\x20that\x20match\x20the\x20request.\n\n\r\ - \n\x05\x04\x0f\x02\0\x04\x12\x04\xb4\x02\x02\n\n\r\n\x05\x04\x0f\x02\0\ - \x06\x12\x04\xb4\x02\x0b\x17\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xb4\x02\ - \x18%\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xb4\x02()\n\xc0\x01\n\x04\x04\ - \x0f\x02\x01\x12\x04\xb9\x02\x02\x1d\x1a\xb1\x01\x20If\x20not\x20empty,\ - \x20indicates\x20that\x20there\x20may\x20be\x20more\x20subscriptions\x20\ - that\x20match\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20p\ - assed\x20in\x20a\x20new\x20ListSubscriptionsRequest\n\x20to\x20get\x20mo\ - re\x20subscriptions.\n\n\x0f\n\x05\x04\x0f\x02\x01\x04\x12\x06\xb9\x02\ - \x02\xb4\x02*\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\xb9\x02\x02\x08\n\r\ - \n\x05\x04\x0f\x02\x01\x01\x12\x04\xb9\x02\t\x18\n\r\n\x05\x04\x0f\x02\ - \x01\x03\x12\x04\xb9\x02\x1b\x1c\n:\n\x02\x04\x10\x12\x06\xbd\x02\0\xc0\ - \x02\x01\x1a,\x20Request\x20for\x20the\x20DeleteSubscription\x20method.\ - \n\n\x0b\n\x03\x04\x10\x01\x12\x04\xbd\x02\x08!\n+\n\x04\x04\x10\x02\0\ - \x12\x04\xbf\x02\x02\x1a\x1a\x1d\x20The\x20subscription\x20to\x20delete.\ - \n\n\x0f\n\x05\x04\x10\x02\0\x04\x12\x06\xbf\x02\x02\xbd\x02#\n\r\n\x05\ - \x04\x10\x02\0\x05\x12\x04\xbf\x02\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\ - \x12\x04\xbf\x02\t\x15\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xbf\x02\x18\ - \x19\n8\n\x02\x04\x11\x12\x06\xc3\x02\0\xce\x02\x01\x1a*\x20Request\x20f\ - or\x20the\x20ModifyPushConfig\x20method.\n\n\x0b\n\x03\x04\x11\x01\x12\ - \x04\xc3\x02\x08\x1f\n-\n\x04\x04\x11\x02\0\x12\x04\xc5\x02\x02\x1a\x1a\ - \x1f\x20The\x20name\x20of\x20the\x20subscription.\n\n\x0f\n\x05\x04\x11\ - \x02\0\x04\x12\x06\xc5\x02\x02\xc3\x02!\n\r\n\x05\x04\x11\x02\0\x05\x12\ - \x04\xc5\x02\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xc5\x02\t\x15\n\ - \r\n\x05\x04\x11\x02\0\x03\x12\x04\xc5\x02\x18\x19\n\xa1\x02\n\x04\x04\ - \x11\x02\x01\x12\x04\xcd\x02\x02\x1d\x1a\x92\x02\x20The\x20push\x20confi\ - guration\x20for\x20future\x20deliveries.\n\n\x20An\x20empty\x20pushConfi\ - g\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\x20Pull\x20is\ - \x20not\x20called.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\xcd\x02\x02\ - \xc5\x02\x1a\n\r\n\x05\x04\x11\x02\x01\x06\x12\x04\xcd\x02\x02\x0c\n\r\n\ - \x05\x04\x11\x02\x01\x01\x12\x04\xcd\x02\r\x18\n\r\n\x05\x04\x11\x02\x01\ - \x03\x12\x04\xcd\x02\x1b\x1c\n,\n\x02\x04\x12\x12\x06\xd1\x02\0\xdf\x02\ - \x01\x1a\x1e\x20Request\x20for\x20the\x20Pull\x20method.\n\n\x0b\n\x03\ - \x04\x12\x01\x12\x04\xd1\x02\x08\x13\nF\n\x04\x04\x12\x02\0\x12\x04\xd3\ - \x02\x02\x1a\x1a8\x20The\x20subscription\x20from\x20which\x20messages\ - \x20should\x20be\x20pulled.\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\x06\xd3\ - \x02\x02\xd1\x02\x15\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xd3\x02\x02\x08\ - \n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xd3\x02\t\x15\n\r\n\x05\x04\x12\x02\ - \0\x03\x12\x04\xd3\x02\x18\x19\n\xe4\x02\n\x04\x04\x12\x02\x01\x12\x04\ - \xda\x02\x02\x1e\x1a\xd5\x02\x20If\x20this\x20is\x20specified\x20as\x20t\ - rue\x20the\x20system\x20will\x20respond\x20immediately\x20even\x20if\n\ - \x20it\x20is\x20not\x20able\x20to\x20return\x20a\x20message\x20in\x20the\ - \x20Pull\x20response.\x20Otherwise\x20the\n\x20system\x20is\x20allowed\ - \x20to\x20wait\x20until\x20at\x20least\x20one\x20message\x20is\x20availa\ - ble\x20rather\n\x20than\x20returning\x20no\x20messages.\x20The\x20client\ - \x20may\x20cancel\x20the\x20request\x20if\x20it\x20does\n\x20not\x20wish\ - \x20to\x20wait\x20any\x20longer\x20for\x20the\x20response.\n\n\x0f\n\x05\ - \x04\x12\x02\x01\x04\x12\x06\xda\x02\x02\xd3\x02\x1a\n\r\n\x05\x04\x12\ - \x02\x01\x05\x12\x04\xda\x02\x02\x06\n\r\n\x05\x04\x12\x02\x01\x01\x12\ - \x04\xda\x02\x07\x19\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\xda\x02\x1c\ - \x1d\n\x89\x01\n\x04\x04\x12\x02\x02\x12\x04\xde\x02\x02\x19\x1a{\x20The\ - \x20maximum\x20number\x20of\x20messages\x20returned\x20for\x20this\x20re\ - quest.\x20The\x20Pub/Sub\n\x20system\x20may\x20return\x20fewer\x20than\ - \x20the\x20number\x20specified.\n\n\x0f\n\x05\x04\x12\x02\x02\x04\x12\ - \x06\xde\x02\x02\xda\x02\x1e\n\r\n\x05\x04\x12\x02\x02\x05\x12\x04\xde\ - \x02\x02\x07\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\xde\x02\x08\x14\n\r\n\ - \x05\x04\x12\x02\x02\x03\x12\x04\xde\x02\x17\x18\n-\n\x02\x04\x13\x12\ - \x06\xe2\x02\0\xe8\x02\x01\x1a\x1f\x20Response\x20for\x20the\x20Pull\x20\ - method.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xe2\x02\x08\x14\n\x87\x02\n\ - \x04\x04\x13\x02\0\x12\x04\xe7\x02\x021\x1a\xf8\x01\x20Received\x20Pub/S\ - ub\x20messages.\x20The\x20Pub/Sub\x20system\x20will\x20return\x20zero\ - \x20messages\x20if\n\x20there\x20are\x20no\x20more\x20available\x20in\ - \x20the\x20backlog.\x20The\x20Pub/Sub\x20system\x20may\x20return\n\x20fe\ - wer\x20than\x20the\x20maxMessages\x20requested\x20even\x20if\x20there\ - \x20are\x20more\x20messages\n\x20available\x20in\x20the\x20backlog.\n\n\ - \r\n\x05\x04\x13\x02\0\x04\x12\x04\xe7\x02\x02\n\n\r\n\x05\x04\x13\x02\0\ - \x06\x12\x04\xe7\x02\x0b\x1a\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xe7\x02\ - \x1b,\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xe7\x02/0\n9\n\x02\x04\x14\x12\ - \x06\xeb\x02\0\xf8\x02\x01\x1a+\x20Request\x20for\x20the\x20ModifyAckDea\ - dline\x20method.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\xeb\x02\x08\x20\n-\n\ - \x04\x04\x14\x02\0\x12\x04\xed\x02\x02\x1a\x1a\x1f\x20The\x20name\x20of\ - \x20the\x20subscription.\n\n\x0f\n\x05\x04\x14\x02\0\x04\x12\x06\xed\x02\ - \x02\xeb\x02\"\n\r\n\x05\x04\x14\x02\0\x05\x12\x04\xed\x02\x02\x08\n\r\n\ - \x05\x04\x14\x02\0\x01\x12\x04\xed\x02\t\x15\n\r\n\x05\x04\x14\x02\0\x03\ - \x12\x04\xed\x02\x18\x19\n&\n\x04\x04\x14\x02\x01\x12\x04\xf0\x02\x02\ - \x14\x1a\x18\x20The\x20acknowledgment\x20ID.\n\n\x0f\n\x05\x04\x14\x02\ - \x01\x04\x12\x06\xf0\x02\x02\xed\x02\x1a\n\r\n\x05\x04\x14\x02\x01\x05\ - \x12\x04\xf0\x02\x02\x08\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xf0\x02\t\ - \x0f\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xf0\x02\x12\x13\n\xca\x02\n\ - \x04\x04\x14\x02\x02\x12\x04\xf7\x02\x02!\x1a\xbb\x02\x20The\x20new\x20a\ - ck\x20deadline\x20with\x20respect\x20to\x20the\x20time\x20this\x20reques\ - t\x20was\x20sent\x20to\x20the\n\x20Pub/Sub\x20system.\x20Must\x20be\x20>\ - =\x200.\x20For\x20example,\x20if\x20the\x20value\x20is\x2010,\x20the\x20\ - new\x20ack\n\x20deadline\x20will\x20expire\x2010\x20seconds\x20after\x20\ - the\x20ModifyAckDeadline\x20call\x20was\x20made.\n\x20Specifying\x20zero\ - \x20may\x20immediately\x20make\x20the\x20message\x20available\x20for\x20\ - another\x20pull\n\x20request.\n\n\x0f\n\x05\x04\x14\x02\x02\x04\x12\x06\ - \xf7\x02\x02\xf0\x02\x14\n\r\n\x05\x04\x14\x02\x02\x05\x12\x04\xf7\x02\ - \x02\x07\n\r\n\x05\x04\x14\x02\x02\x01\x12\x04\xf7\x02\x08\x1c\n\r\n\x05\ - \x04\x14\x02\x02\x03\x12\x04\xf7\x02\x1f\x20\n3\n\x02\x04\x15\x12\x06\ - \xfb\x02\0\x82\x03\x01\x1a%\x20Request\x20for\x20the\x20Acknowledge\x20m\ - ethod.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xfb\x02\x08\x1a\nE\n\x04\x04\ - \x15\x02\0\x12\x04\xfd\x02\x02\x1a\x1a7\x20The\x20subscription\x20whose\ - \x20message\x20is\x20being\x20acknowledged.\n\n\x0f\n\x05\x04\x15\x02\0\ - \x04\x12\x06\xfd\x02\x02\xfb\x02\x1c\n\r\n\x05\x04\x15\x02\0\x05\x12\x04\ - \xfd\x02\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\xfd\x02\t\x15\n\r\n\ - \x05\x04\x15\x02\0\x03\x12\x04\xfd\x02\x18\x19\n\x9c\x01\n\x04\x04\x15\ - \x02\x01\x12\x04\x81\x03\x02\x1e\x1a\x8d\x01\x20The\x20acknowledgment\ - \x20ID\x20for\x20the\x20messages\x20being\x20acknowledged\x20that\x20was\ - \x20returned\n\x20by\x20the\x20Pub/Sub\x20system\x20in\x20the\x20Pull\ - \x20response.\x20Must\x20not\x20be\x20empty.\n\n\r\n\x05\x04\x15\x02\x01\ - \x04\x12\x04\x81\x03\x02\n\n\r\n\x05\x04\x15\x02\x01\x05\x12\x04\x81\x03\ - \x0b\x11\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\x81\x03\x12\x19\n\r\n\x05\ - \x04\x15\x02\x01\x03\x12\x04\x81\x03\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/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub_grpc.rs deleted file mode 100644 index f29e7b3a3f..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub_grpc.rs +++ /dev/null @@ -1,457 +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_SUBSCRIBER_CREATE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Subscriber/CreateSubscription", - 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_SUBSCRIBER_GET_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Subscriber/GetSubscription", - 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_SUBSCRIBER_LIST_SUBSCRIPTIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Subscriber/ListSubscriptions", - 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_SUBSCRIBER_DELETE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Subscriber/DeleteSubscription", - 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_SUBSCRIBER_MODIFY_ACK_DEADLINE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Subscriber/ModifyAckDeadline", - 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_SUBSCRIBER_ACKNOWLEDGE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Subscriber/Acknowledge", - 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_SUBSCRIBER_PULL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Subscriber/Pull", - 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_SUBSCRIBER_MODIFY_PUSH_CONFIG: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Subscriber/ModifyPushConfig", - 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 SubscriberClient { - client: ::grpcio::Client, -} - -impl SubscriberClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - SubscriberClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_subscription_opt(&self, req: &super::pubsub::Subscription, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, req, opt) - } - - pub fn create_subscription(&self, req: &super::pubsub::Subscription) -> ::grpcio::Result { - self.create_subscription_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_subscription_async_opt(&self, req: &super::pubsub::Subscription, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, req, opt) - } - - pub fn create_subscription_async(&self, req: &super::pubsub::Subscription) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_subscription_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_subscription_opt(&self, req: &super::pubsub::GetSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, req, opt) - } - - pub fn get_subscription(&self, req: &super::pubsub::GetSubscriptionRequest) -> ::grpcio::Result { - self.get_subscription_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_subscription_async_opt(&self, req: &super::pubsub::GetSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, req, opt) - } - - pub fn get_subscription_async(&self, req: &super::pubsub::GetSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_subscription_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_subscriptions_opt(&self, req: &super::pubsub::ListSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, req, opt) - } - - pub fn list_subscriptions(&self, req: &super::pubsub::ListSubscriptionsRequest) -> ::grpcio::Result { - self.list_subscriptions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_subscriptions_async_opt(&self, req: &super::pubsub::ListSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, req, opt) - } - - pub fn list_subscriptions_async(&self, req: &super::pubsub::ListSubscriptionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_subscriptions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_subscription_opt(&self, req: &super::pubsub::DeleteSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, req, opt) - } - - pub fn delete_subscription(&self, req: &super::pubsub::DeleteSubscriptionRequest) -> ::grpcio::Result { - self.delete_subscription_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_subscription_async_opt(&self, req: &super::pubsub::DeleteSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, req, opt) - } - - pub fn delete_subscription_async(&self, req: &super::pubsub::DeleteSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_subscription_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn modify_ack_deadline_opt(&self, req: &super::pubsub::ModifyAckDeadlineRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, req, opt) - } - - pub fn modify_ack_deadline(&self, req: &super::pubsub::ModifyAckDeadlineRequest) -> ::grpcio::Result { - self.modify_ack_deadline_opt(req, ::grpcio::CallOption::default()) - } - - pub fn modify_ack_deadline_async_opt(&self, req: &super::pubsub::ModifyAckDeadlineRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, req, opt) - } - - pub fn modify_ack_deadline_async(&self, req: &super::pubsub::ModifyAckDeadlineRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.modify_ack_deadline_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn acknowledge_opt(&self, req: &super::pubsub::AcknowledgeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_ACKNOWLEDGE, req, opt) - } - - pub fn acknowledge(&self, req: &super::pubsub::AcknowledgeRequest) -> ::grpcio::Result { - self.acknowledge_opt(req, ::grpcio::CallOption::default()) - } - - pub fn acknowledge_async_opt(&self, req: &super::pubsub::AcknowledgeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_ACKNOWLEDGE, req, opt) - } - - pub fn acknowledge_async(&self, req: &super::pubsub::AcknowledgeRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.acknowledge_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn pull_opt(&self, req: &super::pubsub::PullRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_PULL, req, opt) - } - - pub fn pull(&self, req: &super::pubsub::PullRequest) -> ::grpcio::Result { - self.pull_opt(req, ::grpcio::CallOption::default()) - } - - pub fn pull_async_opt(&self, req: &super::pubsub::PullRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_PULL, req, opt) - } - - pub fn pull_async(&self, req: &super::pubsub::PullRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.pull_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn modify_push_config_opt(&self, req: &super::pubsub::ModifyPushConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, req, opt) - } - - pub fn modify_push_config(&self, req: &super::pubsub::ModifyPushConfigRequest) -> ::grpcio::Result { - self.modify_push_config_opt(req, ::grpcio::CallOption::default()) - } - - pub fn modify_push_config_async_opt(&self, req: &super::pubsub::ModifyPushConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, req, opt) - } - - pub fn modify_push_config_async(&self, req: &super::pubsub::ModifyPushConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.modify_push_config_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait Subscriber { - fn create_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::Subscription, sink: ::grpcio::UnarySink); - fn get_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetSubscriptionRequest, sink: ::grpcio::UnarySink); - fn list_subscriptions(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListSubscriptionsRequest, sink: ::grpcio::UnarySink); - fn delete_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteSubscriptionRequest, sink: ::grpcio::UnarySink); - fn modify_ack_deadline(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ModifyAckDeadlineRequest, sink: ::grpcio::UnarySink); - fn acknowledge(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::AcknowledgeRequest, sink: ::grpcio::UnarySink); - fn pull(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::PullRequest, sink: ::grpcio::UnarySink); - fn modify_push_config(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ModifyPushConfigRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_subscriber(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, move |ctx, req, resp| { - instance.create_subscription(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, move |ctx, req, resp| { - instance.get_subscription(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, move |ctx, req, resp| { - instance.list_subscriptions(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, move |ctx, req, resp| { - instance.delete_subscription(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, move |ctx, req, resp| { - instance.modify_ack_deadline(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_ACKNOWLEDGE, move |ctx, req, resp| { - instance.acknowledge(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_PULL, move |ctx, req, resp| { - instance.pull(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, move |ctx, req, resp| { - instance.modify_push_config(ctx, req, resp) - }); - builder.build() -} - -const METHOD_PUBLISHER_CREATE_TOPIC: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Publisher/CreateTopic", - 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_PUBLISHER_PUBLISH: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Publisher/Publish", - 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_PUBLISHER_GET_TOPIC: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Publisher/GetTopic", - 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_PUBLISHER_LIST_TOPICS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Publisher/ListTopics", - 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_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Publisher/ListTopicSubscriptions", - 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_PUBLISHER_DELETE_TOPIC: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1beta2.Publisher/DeleteTopic", - 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 { - client: ::grpcio::Client, -} - -impl PublisherClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - PublisherClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_topic_opt(&self, req: &super::pubsub::Topic, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_CREATE_TOPIC, req, opt) - } - - pub fn create_topic(&self, req: &super::pubsub::Topic) -> ::grpcio::Result { - self.create_topic_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_topic_async_opt(&self, req: &super::pubsub::Topic, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_CREATE_TOPIC, req, opt) - } - - pub fn create_topic_async(&self, req: &super::pubsub::Topic) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_topic_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn publish_opt(&self, req: &super::pubsub::PublishRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_PUBLISH, req, opt) - } - - pub fn publish(&self, req: &super::pubsub::PublishRequest) -> ::grpcio::Result { - self.publish_opt(req, ::grpcio::CallOption::default()) - } - - pub fn publish_async_opt(&self, req: &super::pubsub::PublishRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_PUBLISH, req, opt) - } - - pub fn publish_async(&self, req: &super::pubsub::PublishRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.publish_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_topic_opt(&self, req: &super::pubsub::GetTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_GET_TOPIC, req, opt) - } - - pub fn get_topic(&self, req: &super::pubsub::GetTopicRequest) -> ::grpcio::Result { - self.get_topic_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_topic_async_opt(&self, req: &super::pubsub::GetTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_GET_TOPIC, req, opt) - } - - pub fn get_topic_async(&self, req: &super::pubsub::GetTopicRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_topic_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topics_opt(&self, req: &super::pubsub::ListTopicsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPICS, req, opt) - } - - pub fn list_topics(&self, req: &super::pubsub::ListTopicsRequest) -> ::grpcio::Result { - self.list_topics_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topics_async_opt(&self, req: &super::pubsub::ListTopicsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPICS, req, opt) - } - - pub fn list_topics_async(&self, req: &super::pubsub::ListTopicsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_topics_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topic_subscriptions_opt(&self, req: &super::pubsub::ListTopicSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, req, opt) - } - - pub fn list_topic_subscriptions(&self, req: &super::pubsub::ListTopicSubscriptionsRequest) -> ::grpcio::Result { - self.list_topic_subscriptions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_topic_subscriptions_async_opt(&self, req: &super::pubsub::ListTopicSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, req, opt) - } - - pub fn list_topic_subscriptions_async(&self, req: &super::pubsub::ListTopicSubscriptionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_topic_subscriptions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_topic_opt(&self, req: &super::pubsub::DeleteTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_DELETE_TOPIC, req, opt) - } - - pub fn delete_topic(&self, req: &super::pubsub::DeleteTopicRequest) -> ::grpcio::Result { - self.delete_topic_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_topic_async_opt(&self, req: &super::pubsub::DeleteTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_DELETE_TOPIC, req, opt) - } - - 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 spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait Publisher { - fn create_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::Topic, sink: ::grpcio::UnarySink); - fn publish(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::PublishRequest, sink: ::grpcio::UnarySink); - fn get_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetTopicRequest, sink: ::grpcio::UnarySink); - fn list_topics(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicsRequest, sink: ::grpcio::UnarySink); - fn list_topic_subscriptions(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicSubscriptionsRequest, sink: ::grpcio::UnarySink); - fn delete_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteTopicRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_publisher(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_CREATE_TOPIC, move |ctx, req, resp| { - instance.create_topic(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_PUBLISH, move |ctx, req, resp| { - instance.publish(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_GET_TOPIC, move |ctx, req, resp| { - instance.get_topic(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPICS, move |ctx, req, resp| { - instance.list_topics(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, move |ctx, req, resp| { - instance.list_topic_subscriptions(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_PUBLISHER_DELETE_TOPIC, move |ctx, req, resp| { - instance.delete_topic(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/code.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/code.rs index bb04aa8e45..964f6eb0a6 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/code.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/code.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(Clone,PartialEq,Eq,Debug,Hash)] pub enum Code { @@ -129,8 +129,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\xf35\n\x07\x12\x05\x0e\0\xb9\x01\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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,8 +147,8 @@ 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\ @@ -284,21 +284,19 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\xea\x02\n\x04\x05\0\x02\ - \x0f\x12\x04\xb3\x01\x02\x13\x1a\xdb\x02\x20The\x20service\x20is\x20curr\ + \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.\x20Note\x20that\x20it\x20is\x20not\x20always\ - \x20safe\x20to\x20retry\n\x20non-idempotent\x20operations.\n\n\x20See\ - \x20the\x20guidelines\x20above\x20for\x20deciding\x20between\x20`FAILED_\ - PRECONDITION`,\n\x20`ABORTED`,\x20and\x20`UNAVAILABLE`.\n\n\x20HTTP\x20M\ - apping:\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\x20Unrecoverabl\ - e\x20data\x20loss\x20or\x20corruption.\n\n\x20HTTP\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\ + \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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/error_details.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/error_details.rs index 054eefae4e..e36fccbe25 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/error_details.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/error_details.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct RetryInfo { @@ -764,244 +764,6 @@ impl ::protobuf::reflect::ProtobufValue for QuotaFailure_Violation { } } -#[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)] pub struct PreconditionFailure { // message fields @@ -2840,324 +2602,264 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\"\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.MetadataEntryR\x08metadata\x1a;\n\r\ - MetadataEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05v\ - alue\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xbd\x01\n\x13PreconditionF\ - ailure\x12I\n\nviolations\x18\x01\x20\x03(\x0b2).google.rpc.Precondition\ - Failure.ViolationR\nviolations\x1a[\n\tViolation\x12\x12\n\x04type\x18\ - \x01\x20\x01(\tR\x04type\x12\x18\n\x07subject\x18\x02\x20\x01(\tR\x07sub\ - ject\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\"\xa8\ - \x01\n\nBadRequest\x12P\n\x10field_violations\x18\x01\x20\x03(\x0b2%.goo\ - gle.rpc.BadRequest.FieldViolationR\x0ffieldViolations\x1aH\n\x0eFieldVio\ - lation\x12\x14\n\x05field\x18\x01\x20\x01(\tR\x05field\x12\x20\n\x0bdesc\ - ription\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\rreso\ - urce_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.Lin\ - kR\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\x10Loca\ - lizedMessage\x12\x16\n\x06locale\x18\x01\x20\x01(\tR\x06locale\x12\x18\n\ - \x07message\x18\x02\x20\x01(\tR\x07messageBl\n\x0ecom.google.rpcB\x11Err\ - orDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetail\ - s;errdetails\xa2\x02\x03RPCJ\xf2P\n\x07\x12\x05\x0e\0\xf8\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\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\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\x20Describes\x20when\x20the\x20clients\x20can\ - \x20retry\x20a\x20failed\x20request.\x20Clients\x20could\x20ignore\n\x20\ - the\x20recommendation\x20here\x20or\x20retry\x20when\x20this\x20informat\ - ion\x20is\x20missing\x20from\x20error\n\x20responses.\n\n\x20It's\x20alw\ - ays\x20recommended\x20that\x20clients\x20should\x20use\x20exponential\ - \x20backoff\x20when\n\x20retrying.\n\n\x20Clients\x20should\x20wait\x20u\ - ntil\x20`retry_delay`\x20amount\x20of\x20time\x20has\x20passed\x20since\ - \n\x20receiving\x20the\x20error\x20response\x20before\x20retrying.\x20\ - \x20If\x20retrying\x20requests\x20also\n\x20fail,\x20clients\x20should\ - \x20use\x20an\x20exponential\x20backoff\x20scheme\x20to\x20gradually\x20\ - increase\n\x20the\x20delay\x20between\x20retries\x20based\x20on\x20`retr\ - y_delay`,\x20until\x20either\x20a\x20maximum\n\x20number\x20of\x20retrie\ - s\x20have\x20been\x20reached\x20or\x20a\x20maximum\x20retry\x20delay\x20\ - cap\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\x20between\x20retrying\x20the\x20same\ - \x20request.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04)\x02'\x13\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-\0\ - 3\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\x20er\ - ror\x20occurred.\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\x20informa\ - tion\x20provided\x20by\x20the\x20server.\n\n\r\n\x05\x04\x01\x02\x01\x04\ - \x12\x042\x02/$\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\xfc\x03\n\x02\x04\x02\x12\x04@\0U\x01\x1a\xef\x03\ - \x20Describes\x20how\x20a\x20quota\x20check\x20failed.\n\n\x20For\x20exa\ - mple\x20if\x20a\x20daily\x20limit\x20was\x20exceeded\x20for\x20the\x20ca\ - lling\x20project,\n\x20a\x20service\x20could\x20respond\x20with\x20a\x20\ - QuotaFailure\x20detail\x20containing\x20the\x20project\n\x20id\x20and\ - \x20the\x20description\x20of\x20the\x20quota\x20limit\x20that\x20was\x20\ - exceeded.\x20\x20If\x20the\n\x20calling\x20project\x20hasn'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\x20Ret\ - ryInfo\x20and\x20Help\x20types\x20for\x20other\x20details\x20about\x20ha\ - ndling\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\x20messag\ - e\x20type\x20used\x20to\x20describe\x20a\x20single\x20quota\x20violation\ - .\x20\x20For\x20example,\x20a\n\x20daily\x20quota\x20or\x20a\x20custom\ - \x20quota\x20that\x20was\x20exceeded.\n\n\x0c\n\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\x20fa\ - iled.\n\x20For\x20example,\x20\"clientip:\ - \"\x20or\x20\"project:\".\n\n\ - \x0f\n\x07\x04\x02\x03\0\x02\0\x04\x12\x04G\x04C\x15\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\x20de\ - scription\x20of\x20how\x20the\x20quota\x20check\x20failed.\x20Clients\ - \x20can\x20use\x20this\n\x20description\x20to\x20find\x20more\x20about\ - \x20the\x20quota\x20configuration\x20in\x20the\x20service's\n\x20public\ - \x20documentation,\x20or\x20find\x20the\x20relevant\x20quota\x20limit\ - \x20to\x20adjust\x20through\n\x20developer\x20console.\n\n\x20For\x20exa\ - mple:\x20\"Service\x20disabled\"\x20or\x20\"Daily\x20Limit\x20for\x20rea\ - d\x20operations\n\x20exceeded\".\n\n\x0f\n\x07\x04\x02\x03\0\x02\x01\x04\ - \x12\x04P\x04G\x17\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!\x20Describes\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\xc6\x05\n\x02\x04\x03\x12\x05o\0\x87\x01\x01\ - \x1a\xb8\x05\x20Describes\x20the\x20cause\x20of\x20the\x20error\x20with\ - \x20structured\x20details.\n\n\x20Example\x20of\x20an\x20error\x20when\ - \x20contacting\x20the\x20\"pubsub.googleapis.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\"googleapi\ - s.com\"\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\"resource\":\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\x20that\x20the\x20pubsub.googleapis.com\x20API\x20is\x20no\ - t\x20enabled.\n\n\x20Example\x20of\x20an\x20error\x20that\x20is\x20retur\ - ned\x20when\x20attempting\x20to\x20create\x20a\x20Spanner\n\x20instance\ - \x20in\x20a\x20region\x20that\x20is\x20out\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\"availableR\ - egions\":\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\x03\x01\x12\x03o\x08\x11\n\xf2\x01\ - \n\x04\x04\x03\x02\0\x12\x03t\x02\x14\x1a\xe4\x01\x20The\x20reason\x20of\ - \x20the\x20error.\x20This\x20is\x20a\x20constant\x20value\x20that\x20ide\ - ntifies\x20the\n\x20proximate\x20cause\x20of\x20the\x20error.\x20Error\ - \x20reasons\x20are\x20unique\x20within\x20a\x20particular\n\x20domain\ - \x20of\x20errors.\x20This\x20should\x20be\x20at\x20most\x2063\x20charact\ - ers\x20and\x20match\n\x20/[A-Z0-9_]+/.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\ - \x04t\x02o\x13\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03t\x02\x08\n\x0c\n\ - \x05\x04\x03\x02\0\x01\x12\x03t\t\x0f\n\x0c\n\x05\x04\x03\x02\0\x03\x12\ - \x03t\x12\x13\n\xa8\x03\n\x04\x04\x03\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\r\n\x05\x04\x03\x02\x01\x04\x12\x04|\ - \x02t\x14\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\x0f\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\ - \x03|\x12\x13\n\xdc\x03\n\x04\x04\x03\x02\x02\x12\x04\x86\x01\x02#\x1a\ - \xcd\x03\x20Additional\x20structured\x20details\x20about\x20this\x20erro\ - r.\n\n\x20Keys\x20should\x20match\x20/[a-zA-Z0-9-_]/\x20and\x20be\x20lim\ - ited\x20to\x2064\x20characters\x20in\n\x20length.\x20When\x20identifying\ - \x20the\x20current\x20value\x20of\x20an\x20exceeded\x20limit,\x20the\x20\ - units\n\x20should\x20be\x20contained\x20in\x20the\x20key,\x20not\x20the\ - \x20value.\x20\x20For\x20example,\x20rather\x20than\n\x20{\"instanceLimi\ - t\":\x20\"100/request\"},\x20should\x20be\x20returned\x20as,\n\x20{\"ins\ - tanceLimitPerRequest\":\x20\"100\"},\x20if\x20the\x20client\x20exceeds\ - \x20the\x20number\x20of\n\x20instances\x20that\x20can\x20be\x20created\ - \x20in\x20a\x20single\x20(batch)\x20request.\n\n\x0e\n\x05\x04\x03\x02\ - \x02\x04\x12\x05\x86\x01\x02|\x14\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\ - \x86\x01\x02\x15\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\x86\x01\x16\x1e\n\ - \r\n\x05\x04\x03\x02\x02\x03\x12\x04\x86\x01!\"\n\xea\x01\n\x02\x04\x04\ - \x12\x06\x8e\x01\0\xa4\x01\x01\x1a\xdb\x01\x20Describes\x20what\x20preco\ - nditions\x20have\x20failed.\n\n\x20For\x20example,\x20if\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\x20PreconditionFailure\x20\ - message.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x8e\x01\x08\x1b\nP\n\x04\x04\ - \x04\x03\0\x12\x06\x90\x01\x02\xa0\x01\x03\x1a@\x20A\x20message\x20type\ - \x20used\x20to\x20describe\x20a\x20single\x20precondition\x20failure.\n\ - \n\r\n\x05\x04\x04\x03\0\x01\x12\x04\x90\x01\n\x13\n\xd3\x01\n\x06\x04\ - \x04\x03\0\x02\0\x12\x04\x94\x01\x04\x14\x1a\xc2\x01\x20The\x20type\x20o\ - f\x20PreconditionFailure.\x20We\x20recommend\x20using\x20a\x20service-sp\ - ecific\n\x20enum\x20type\x20to\x20define\x20the\x20supported\x20precondi\ - tion\x20violation\x20subjects.\x20For\n\x20example,\x20\"TOS\"\x20for\ - \x20\"Terms\x20of\x20Service\x20violation\".\n\n\x11\n\x07\x04\x04\x03\0\ - \x02\0\x04\x12\x06\x94\x01\x04\x90\x01\x15\n\x0f\n\x07\x04\x04\x03\0\x02\ - \0\x05\x12\x04\x94\x01\x04\n\n\x0f\n\x07\x04\x04\x03\0\x02\0\x01\x12\x04\ - \x94\x01\x0b\x0f\n\x0f\n\x07\x04\x04\x03\0\x02\0\x03\x12\x04\x94\x01\x12\ - \x13\n\xba\x01\n\x06\x04\x04\x03\0\x02\x01\x12\x04\x99\x01\x04\x17\x1a\ - \xa9\x01\x20The\x20subject,\x20relative\x20to\x20the\x20type,\x20that\ - \x20failed.\n\x20For\x20example,\x20\"google.com/cloud\"\x20relative\x20\ - to\x20the\x20\"TOS\"\x20type\x20would\x20indicate\n\x20which\x20terms\ - \x20of\x20service\x20is\x20being\x20referenced.\n\n\x11\n\x07\x04\x04\ - \x03\0\x02\x01\x04\x12\x06\x99\x01\x04\x94\x01\x14\n\x0f\n\x07\x04\x04\ - \x03\0\x02\x01\x05\x12\x04\x99\x01\x04\n\n\x0f\n\x07\x04\x04\x03\0\x02\ - \x01\x01\x12\x04\x99\x01\x0b\x12\n\x0f\n\x07\x04\x04\x03\0\x02\x01\x03\ - \x12\x04\x99\x01\x15\x16\n\xbb\x01\n\x06\x04\x04\x03\0\x02\x02\x12\x04\ - \x9f\x01\x04\x1b\x1a\xaa\x01\x20A\x20description\x20of\x20how\x20the\x20\ - precondition\x20failed.\x20Developers\x20can\x20use\x20this\n\x20descrip\ - tion\x20to\x20understand\x20how\x20to\x20fix\x20the\x20failure.\n\n\x20F\ - or\x20example:\x20\"Terms\x20of\x20service\x20not\x20accepted\".\n\n\x11\ - \n\x07\x04\x04\x03\0\x02\x02\x04\x12\x06\x9f\x01\x04\x99\x01\x17\n\x0f\n\ - \x07\x04\x04\x03\0\x02\x02\x05\x12\x04\x9f\x01\x04\n\n\x0f\n\x07\x04\x04\ - \x03\0\x02\x02\x01\x12\x04\x9f\x01\x0b\x16\n\x0f\n\x07\x04\x04\x03\0\x02\ - \x02\x03\x12\x04\x9f\x01\x19\x1a\n6\n\x04\x04\x04\x02\0\x12\x04\xa3\x01\ - \x02$\x1a(\x20Describes\x20all\x20precondition\x20violations.\n\n\r\n\ - \x05\x04\x04\x02\0\x04\x12\x04\xa3\x01\x02\n\n\r\n\x05\x04\x04\x02\0\x06\ - \x12\x04\xa3\x01\x0b\x14\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xa3\x01\x15\ - \x1f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xa3\x01\"#\n{\n\x02\x04\x05\x12\ - \x06\xa8\x01\0\xb6\x01\x01\x1am\x20Describes\x20violations\x20in\x20a\ - \x20client\x20request.\x20This\x20error\x20type\x20focuses\x20on\x20the\ - \n\x20syntactic\x20aspects\x20of\x20the\x20request.\n\n\x0b\n\x03\x04\ - \x05\x01\x12\x04\xa8\x01\x08\x12\nM\n\x04\x04\x05\x03\0\x12\x06\xaa\x01\ - \x02\xb2\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\xaa\x01\n\x18\n\xde\x01\n\x06\x04\x05\x03\0\x02\0\x12\x04\ - \xae\x01\x04\x15\x1a\xcd\x01\x20A\x20path\x20leading\x20to\x20a\x20field\ - \x20in\x20the\x20request\x20body.\x20The\x20value\x20will\x20be\x20a\n\ - \x20sequence\x20of\x20dot-separated\x20identifiers\x20that\x20identify\ - \x20a\x20protocol\x20buffer\n\x20field.\x20E.g.,\x20\"field_violations.f\ - ield\"\x20would\x20identify\x20this\x20field.\n\n\x11\n\x07\x04\x05\x03\ - \0\x02\0\x04\x12\x06\xae\x01\x04\xaa\x01\x1a\n\x0f\n\x07\x04\x05\x03\0\ - \x02\0\x05\x12\x04\xae\x01\x04\n\n\x0f\n\x07\x04\x05\x03\0\x02\0\x01\x12\ - \x04\xae\x01\x0b\x10\n\x0f\n\x07\x04\x05\x03\0\x02\0\x03\x12\x04\xae\x01\ - \x13\x14\nB\n\x06\x04\x05\x03\0\x02\x01\x12\x04\xb1\x01\x04\x1b\x1a2\x20\ - A\x20description\x20of\x20why\x20the\x20request\x20element\x20is\x20bad.\ - \n\n\x11\n\x07\x04\x05\x03\0\x02\x01\x04\x12\x06\xb1\x01\x04\xae\x01\x15\ - \n\x0f\n\x07\x04\x05\x03\0\x02\x01\x05\x12\x04\xb1\x01\x04\n\n\x0f\n\x07\ - \x04\x05\x03\0\x02\x01\x01\x12\x04\xb1\x01\x0b\x16\n\x0f\n\x07\x04\x05\ - \x03\0\x02\x01\x03\x12\x04\xb1\x01\x19\x1a\n=\n\x04\x04\x05\x02\0\x12\ - \x04\xb5\x01\x02/\x1a/\x20Describes\x20all\x20violations\x20in\x20a\x20c\ - lient\x20request.\n\n\r\n\x05\x04\x05\x02\0\x04\x12\x04\xb5\x01\x02\n\n\ - \r\n\x05\x04\x05\x02\0\x06\x12\x04\xb5\x01\x0b\x19\n\r\n\x05\x04\x05\x02\ - \0\x01\x12\x04\xb5\x01\x1a*\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xb5\x01-\ - .\n\x84\x01\n\x02\x04\x06\x12\x06\xba\x01\0\xc2\x01\x01\x1av\x20Contains\ + 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\xc3@\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\r\n\x05\x04\0\x02\0\x04\ + \x12\x04)\x02'\x13\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\x20de\ + bugging\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\x20ind\ + icating\x20where\x20the\x20error\x20occurred.\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:\x20Addit\ + ional\x20debugging\x20information\x20provided\x20by\x20the\x20server.\n\ + \n\r\n\x05\x04\x01\x02\x01\x04\x12\x042\x02/$\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@\0U\x01\x1a\xf1\x03\x20Describes\x20how\x20a\x20quota\x20ch\ + eck\x20failed.\n\n\x20For\x20example\x20if\x20a\x20daily\x20limit\x20was\ + \x20exceeded\x20for\x20the\x20calling\x20project,\n\x20a\x20service\x20c\ + ould\x20respond\x20with\x20a\x20QuotaFailure\x20detail\x20containing\x20\ + the\x20project\n\x20id\x20and\x20the\x20description\x20of\x20the\x20quot\ + a\x20limit\x20that\x20was\x20exceeded.\x20\x20If\x20the\n\x20calling\x20\ + project\x20hasn't\x20enabled\x20the\x20service\x20in\x20the\x20developer\ + \x20console,\x20then\n\x20a\x20service\x20could\x20respond\x20with\x20th\ + e\x20project\x20id\x20and\x20set\x20`service_disabled`\n\x20to\x20true.\ + \n\n\x20Also\x20see\x20RetryDetail\x20and\x20Help\x20types\x20for\x20oth\ + er\x20details\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\ + \x20single\x20quota\x20violation.\x20\x20For\x20example,\x20a\n\x20daily\ + \x20quota\x20or\x20a\x20custom\x20quota\x20that\x20was\x20exceeded.\n\n\ + \x0c\n\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\x0f\n\x07\x04\x02\x03\0\x02\0\x04\x12\x04G\ + \x04C\x15\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\x20description\ + \x20to\x20find\x20more\x20about\x20the\x20quota\x20configuration\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\x20disabled\"\x20or\x20\ + \"Daily\x20Limit\x20for\x20read\x20operations\n\x20exceeded\".\n\n\x0f\n\ + \x07\x04\x02\x03\0\x02\x01\x04\x12\x04P\x04G\x17\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!\x20Describes\x20all\x20quota\x20\ + violations.\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\x20Describes\x20what\x20preconditi\ + ons\x20have\x20failed.\n\n\x20For\x20example,\x20if\x20an\x20RPC\x20fail\ + ed\x20because\x20it\x20required\x20the\x20Terms\x20of\x20Service\x20to\ + \x20be\n\x20acknowledged,\x20it\x20could\x20list\x20the\x20terms\x20of\ + \x20service\x20violation\x20in\x20the\n\x20PreconditionFailure\x20messag\ + e.\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\x20used\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\x20PreconditionFailure.\x20We\x20recom\ + mend\x20using\x20a\x20service-specific\n\x20enum\x20type\x20to\x20define\ + \x20the\x20supported\x20precondition\x20violation\x20types.\x20For\n\x20\ + example,\x20\"TOS\"\x20for\x20\"Terms\x20of\x20Service\x20violation\".\n\ + \n\x0f\n\x07\x04\x03\x03\0\x02\0\x04\x12\x04b\x04^\x15\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\x20to\x20the\x20type,\x20that\x20failed.\n\x20F\ + or\x20example,\x20\"google.com/cloud\"\x20relative\x20to\x20the\x20\"TOS\ + \"\x20type\x20would\n\x20indicate\x20which\x20terms\x20of\x20service\x20\ + is\x20being\x20referenced.\n\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x04\x12\ + \x04g\x04b\x14\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\x20precondition\x20failed.\x20Developers\x20can\x20use\x20this\n\ + \x20description\x20to\x20understand\x20how\x20to\x20fix\x20the\x20failur\ + e.\n\n\x20For\x20example:\x20\"Terms\x20of\x20service\x20not\x20accepted\ + \".\n\n\x0f\n\x07\x04\x03\x03\0\x02\x02\x04\x12\x04m\x04g\x17\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\x20\ + all\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\x20vi\ + olations\x20in\x20a\x20client\x20request.\x20This\x20error\x20type\x20fo\ + cuses\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\ + \x20request\x20body.\x20The\x20value\x20will\x20be\x20a\n\x20sequence\ + \x20of\x20dot-separated\x20identifiers\x20that\x20identify\x20a\x20proto\ + col\x20buffer\n\x20field.\x20E.g.,\x20\"field_violations.field\"\x20woul\ + d\x20identify\x20this\x20field.\n\n\x0f\n\x07\x04\x04\x03\0\x02\0\x04\ + \x12\x04|\x04x\x1a\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\x20\ + element\x20is\x20bad.\n\n\x0f\n\x07\x04\x04\x03\0\x02\x01\x04\x12\x04\ + \x7f\x04|\x15\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\x20c\ + lient\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\x20clients\x20can\x20att\ ach\x20when\x20filing\x20a\x20bug\n\x20or\x20providing\x20other\x20forms\ - \x20of\x20feedback.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xba\x01\x08\x13\n\ - \xa8\x01\n\x04\x04\x06\x02\0\x12\x04\xbd\x01\x02\x18\x1a\x99\x01\x20An\ + \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\x20b\ y\x20the\x20service\x20generating\n\x20it.\x20For\x20example,\x20it\x20c\ an\x20be\x20used\x20to\x20identify\x20requests\x20in\x20the\x20service's\ - \x20logs.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xbd\x01\x02\xba\x01\ - \x15\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xbd\x01\x02\x08\n\r\n\x05\x04\ - \x06\x02\0\x01\x12\x04\xbd\x01\t\x13\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\ - \xbd\x01\x16\x17\n\xa2\x01\n\x04\x04\x06\x02\x01\x12\x04\xc1\x01\x02\x1a\ + \x20logs.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\x8b\x01\x02\x88\x01\ + \x15\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\x20thi\ s\x20request.\x20For\x20example,\x20an\x20encrypted\n\x20stack\x20trace\ \x20that\x20can\x20be\x20sent\x20back\x20to\x20the\x20service\x20provide\ - r\x20for\x20debugging.\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xc1\x01\ - \x02\xbd\x01\x18\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xc1\x01\x02\x08\n\ - \r\n\x05\x04\x06\x02\x01\x01\x12\x04\xc1\x01\t\x15\n\r\n\x05\x04\x06\x02\ - \x01\x03\x12\x04\xc1\x01\x18\x19\n>\n\x02\x04\x07\x12\x06\xc5\x01\0\xd9\ + r\x20for\x20debugging.\n\n\x0f\n\x05\x04\x05\x02\x01\x04\x12\x06\x8f\x01\ + \x02\x8b\x01\x18\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\x20Describes\x20the\x20resource\x20that\x20is\x20being\x20\ - accessed.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xc5\x01\x08\x14\n\xdb\x01\n\ - \x04\x04\x07\x02\0\x12\x04\xc9\x01\x02\x1b\x1a\xcc\x01\x20A\x20name\x20f\ + accessed.\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\x20f\ or\x20the\x20type\x20of\x20resource\x20being\x20accessed,\x20e.g.\x20\"s\ ql\x20table\",\n\x20\"cloud\x20storage\x20bucket\",\x20\"file\",\x20\"Go\ ogle\x20calendar\";\x20or\x20the\x20type\x20URL\n\x20of\x20the\x20resour\ ce:\x20e.g.\x20\"type.googleapis.com/google.pubsub.v1.Topic\".\n\n\x0f\n\ - \x05\x04\x07\x02\0\x04\x12\x06\xc9\x01\x02\xc5\x01\x16\n\r\n\x05\x04\x07\ - \x02\0\x05\x12\x04\xc9\x01\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\ - \xc9\x01\t\x16\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xc9\x01\x19\x1a\n\xf6\ - \x01\n\x04\x04\x07\x02\x01\x12\x04\xce\x01\x02\x1b\x1a\xe7\x01\x20The\ + \x05\x04\x06\x02\0\x04\x12\x06\x97\x01\x02\x93\x01\x16\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\ \x20name\x20of\x20the\x20resource\x20being\x20accessed.\x20\x20For\x20ex\ ample,\x20a\x20shared\x20calendar\n\x20name:\x20\"example.com_4fghdhgsrg\ h@group.calendar.google.com\",\x20if\x20the\x20current\n\x20error\x20is\ - \x20[google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIE\ - D].\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xce\x01\x02\xc9\x01\x1b\n\ - \r\n\x05\x04\x07\x02\x01\x05\x12\x04\xce\x01\x02\x08\n\r\n\x05\x04\x07\ - \x02\x01\x01\x12\x04\xce\x01\t\x16\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\ - \xce\x01\x19\x1a\n\x85\x01\n\x04\x04\x07\x02\x02\x12\x04\xd3\x01\x02\x13\ + \n\x20[google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DEN\ + IED].\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\x9d\x01\x02\x97\x01\x1b\ + \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\x0f\n\x05\x04\x07\x02\x02\x04\x12\ - \x06\xd3\x01\x02\xce\x01\x1b\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\xd3\ - \x01\x02\x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xd3\x01\t\x0e\n\r\n\ - \x05\x04\x07\x02\x02\x03\x12\x04\xd3\x01\x11\x12\n\xc0\x01\n\x04\x04\x07\ - \x02\x03\x12\x04\xd8\x01\x02\x19\x1a\xb1\x01\x20Describes\x20what\x20err\ + developer\x20project\n\x20id>\".\n\n\x0f\n\x05\x04\x06\x02\x02\x04\x12\ + \x06\xa2\x01\x02\x9d\x01\x1b\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\x20err\ or\x20is\x20encountered\x20when\x20accessing\x20this\x20resource.\n\x20F\ or\x20example,\x20updating\x20a\x20cloud\x20project\x20may\x20require\ \x20the\x20`writer`\x20permission\n\x20on\x20the\x20developer\x20console\ - \x20project.\n\n\x0f\n\x05\x04\x07\x02\x03\x04\x12\x06\xd8\x01\x02\xd3\ - \x01\x13\n\r\n\x05\x04\x07\x02\x03\x05\x12\x04\xd8\x01\x02\x08\n\r\n\x05\ - \x04\x07\x02\x03\x01\x12\x04\xd8\x01\t\x14\n\r\n\x05\x04\x07\x02\x03\x03\ - \x12\x04\xd8\x01\x17\x18\n\xba\x02\n\x02\x04\x08\x12\x06\xe0\x01\0\xec\ + \x20project.\n\n\x0f\n\x05\x04\x06\x02\x03\x04\x12\x06\xa7\x01\x02\xa2\ + \x01\x13\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\x20documentation\x20or\ \x20for\x20performing\x20an\x20out\x20of\x20band\x20action.\n\n\x20For\ \x20example,\x20if\x20a\x20quota\x20check\x20failed\x20with\x20an\x20err\ or\x20indicating\x20the\x20calling\n\x20project\x20hasn't\x20enabled\x20\ the\x20accessed\x20service,\x20this\x20can\x20contain\x20a\x20URL\x20poi\ nting\n\x20directly\x20to\x20the\x20right\x20place\x20in\x20the\x20devel\ - oper\x20console\x20to\x20flip\x20the\x20bit.\n\n\x0b\n\x03\x04\x08\x01\ - \x12\x04\xe0\x01\x08\x0c\n'\n\x04\x04\x08\x03\0\x12\x06\xe2\x01\x02\xe8\ - \x01\x03\x1a\x17\x20Describes\x20a\x20URL\x20link.\n\n\r\n\x05\x04\x08\ - \x03\0\x01\x12\x04\xe2\x01\n\x0e\n1\n\x06\x04\x08\x03\0\x02\0\x12\x04\ - \xe4\x01\x04\x1b\x1a!\x20Describes\x20what\x20the\x20link\x20offers.\n\n\ - \x11\n\x07\x04\x08\x03\0\x02\0\x04\x12\x06\xe4\x01\x04\xe2\x01\x10\n\x0f\ - \n\x07\x04\x08\x03\0\x02\0\x05\x12\x04\xe4\x01\x04\n\n\x0f\n\x07\x04\x08\ - \x03\0\x02\0\x01\x12\x04\xe4\x01\x0b\x16\n\x0f\n\x07\x04\x08\x03\0\x02\0\ - \x03\x12\x04\xe4\x01\x19\x1a\n&\n\x06\x04\x08\x03\0\x02\x01\x12\x04\xe7\ + oper\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\x20offers.\n\n\ + \x11\n\x07\x04\x07\x03\0\x02\0\x04\x12\x06\xb3\x01\x04\xb1\x01\x10\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\x11\n\x07\ - \x04\x08\x03\0\x02\x01\x04\x12\x06\xe7\x01\x04\xe4\x01\x1b\n\x0f\n\x07\ - \x04\x08\x03\0\x02\x01\x05\x12\x04\xe7\x01\x04\n\n\x0f\n\x07\x04\x08\x03\ - \0\x02\x01\x01\x12\x04\xe7\x01\x0b\x0e\n\x0f\n\x07\x04\x08\x03\0\x02\x01\ - \x03\x12\x04\xe7\x01\x11\x12\nX\n\x04\x04\x08\x02\0\x12\x04\xeb\x01\x02\ + \x04\x07\x03\0\x02\x01\x04\x12\x06\xb6\x01\x04\xb3\x01\x1b\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\x20information\x20on\ - \x20handling\x20the\x20current\x20error.\n\n\r\n\x05\x04\x08\x02\0\x04\ - \x12\x04\xeb\x01\x02\n\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\xeb\x01\x0b\ - \x0f\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xeb\x01\x10\x15\n\r\n\x05\x04\ - \x08\x02\0\x03\x12\x04\xeb\x01\x18\x19\n}\n\x02\x04\t\x12\x06\xf0\x01\0\ - \xf8\x01\x01\x1ao\x20Provides\x20a\x20localized\x20error\x20message\x20t\ - hat\x20is\x20safe\x20to\x20return\x20to\x20the\x20user\n\x20which\x20can\ - \x20be\x20attached\x20to\x20an\x20RPC\x20error.\n\n\x0b\n\x03\x04\t\x01\ - \x12\x04\xf0\x01\x08\x18\n\x9e\x01\n\x04\x04\t\x02\0\x12\x04\xf4\x01\x02\ - \x14\x1a\x8f\x01\x20The\x20locale\x20used\x20following\x20the\x20specifi\ - cation\x20defined\x20at\n\x20http://www.rfc-editor.org/rfc/bcp/bcp47.txt\ - .\n\x20Examples\x20are:\x20\"en-US\",\x20\"fr-CH\",\x20\"es-MX\"\n\n\x0f\ - \n\x05\x04\t\x02\0\x04\x12\x06\xf4\x01\x02\xf0\x01\x1a\n\r\n\x05\x04\t\ - \x02\0\x05\x12\x04\xf4\x01\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xf4\ - \x01\t\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xf4\x01\x12\x13\n@\n\x04\ - \x04\t\x02\x01\x12\x04\xf7\x01\x02\x15\x1a2\x20The\x20localized\x20error\ - \x20message\x20in\x20the\x20above\x20locale.\n\n\x0f\n\x05\x04\t\x02\x01\ - \x04\x12\x06\xf7\x01\x02\xf4\x01\x14\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\ - \xf7\x01\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xf7\x01\t\x10\n\r\n\ - \x05\x04\t\x02\x01\x03\x12\x04\xf7\x01\x13\x14b\x06proto3\ + \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\x20following\x20th\ + e\x20specification\x20defined\x20at\n\x20http://www.rfc-editor.org/rfc/b\ + cp/bcp47.txt.\n\x20Examples\x20are:\x20\"en-US\",\x20\"fr-CH\",\x20\"es-\ + MX\"\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xc3\x01\x02\xbf\x01\x1a\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\x20above\x20locale.\n\n\ + \x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xc6\x01\x02\xc3\x01\x14\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/status.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/status.rs index 8cc614b0ad..9ae6689ebf 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/status.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/status.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct Status { @@ -270,57 +270,100 @@ 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\xa0\x0e\n\x06\x12\x04\x0e\0.\ - \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\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\"\0.\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\nd\n\x04\ - \x04\0\x02\0\x12\x03$\x02\x11\x1aW\x20The\x20status\x20code,\x20which\ - \x20should\x20be\x20an\x20enum\x20value\x20of\x20[google.rpc.Code][googl\ - e.rpc.Code].\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04$\x02\"\x10\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\xeb\x01\n\x04\ - \x04\0\x02\x01\x12\x03)\x02\x15\x1a\xdd\x01\x20A\x20developer-facing\x20\ - error\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\x20by\x20the\x20client.\n\n\r\n\ - \x05\x04\0\x02\x01\x04\x12\x04)\x02$\x11\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\x20list\x20of\x20messages\x20that\x20carry\x20the\x20err\ - or\x20details.\x20\x20There\x20is\x20a\x20common\x20set\x20of\n\x20messa\ - ge\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\x9e\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\r\n\x05\x04\0\x02\0\x04\x12\x04R\ + \x02O\x10\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\x20deve\ + loper-facing\x20error\x20message,\x20which\x20should\x20be\x20in\x20Engl\ + ish.\x20Any\n\x20user-facing\x20error\x20message\x20should\x20be\x20loca\ + lized\x20and\x20sent\x20in\x20the\n\x20[google.rpc.Status.details][googl\ + e.rpc.Status.details]\x20field,\x20or\x20localized\n\x20by\x20the\x20cli\ + ent.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04X\x02R\x11\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/backup.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/backup.rs deleted file mode 100644 index 55f3105091..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/backup.rs +++ /dev/null @@ -1,3925 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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, - // 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()) - } -} - -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; - } - }; - true - } - - fn merge_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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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 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)) - } -} - -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\"\xe0\x05\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\"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/Backup\x128pr\ - ojects/{project}/instances/{instance}/backups/{backup}\"\xb1\x02\n\x13Cr\ - eateBackupRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xe0A\ - \x02\xfaA!\n\x1fspanner.googleapis.com/Instance\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.a\ - dmin.database.v1.CreateBackupEncryptionConfigR\x10encryptionConfigB\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.google\ - apis.com/Database\x12O\n\x08progress\x18\x03\x20\x01(\x0b23.google.spann\ - er.admin.database.v1.OperationProgressR\x08progress\x12;\n\x0bcancel_tim\ - e\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncancelTime\"\x9e\ - \x01\n\x13UpdateBackupRequest\x12E\n\x06backup\x18\x01\x20\x01(\x0b2(.go\ - ogle.spanner.admin.database.v1.BackupR\x06backupB\x03\xe0A\x02\x12@\n\ - \x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nup\ - dateMaskB\x03\xe0A\x02\"M\n\x10GetBackupRequest\x129\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB%\xe0A\x02\xfaA\x1f\n\x1dspanner.googleapis.com/Bac\ - kup\"P\n\x13DeleteBackupRequest\x129\n\x04name\x18\x01\x20\x01(\tR\x04na\ - meB%\xfaA\x1f\n\x1dspanner.googleapis.com/Backup\xe0A\x02\"\xa9\x01\n\ - \x12ListBackupsRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\ - \xe0A\x02\xfaA!\n\x1fspanner.googleapis.com/Instance\x12\x16\n\x06filter\ - \x18\x02\x20\x01(\tR\x06filter\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05\ - R\x08pageSize\x12\x1d\n\npage_token\x18\x04\x20\x01(\tR\tpageToken\"\x81\ - \x01\n\x13ListBackupsResponse\x12B\n\x07backups\x18\x01\x20\x03(\x0b2(.g\ - oogle.spanner.admin.database.v1.BackupR\x07backups\x12&\n\x0fnext_page_t\ - oken\x18\x02\x20\x01(\tR\rnextPageToken\"\xb2\x01\n\x1bListBackupOperati\ - onsRequest\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\"\x85\x01\n\x1cLi\ - stBackupOperationsResponse\x12=\n\noperations\x18\x01\x20\x03(\x0b2\x1d.\ - google.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/B\ - ackup\x12=\n\x0cversion_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.T\ - imestampR\x0bversionTime\x12;\n\x0bcreate_time\x18\x02\x20\x01(\x0b2\x1a\ - .google.protobuf.TimestampR\ncreateTime\x12M\n\x0fsource_database\x18\ - \x03\x20\x01(\tR\x0esourceDatabaseB$\xfaA!\n\x1fspanner.googleapis.com/D\ - atabase\"\xf9\x02\n\x1cCreateBackupEncryptionConfig\x12{\n\x0fencryption\ - _type\x18\x01\x20\x01(\x0e2M.google.spanner.admin.database.v1.CreateBack\ - upEncryptionConfig.EncryptionTypeR\x0eencryptionTypeB\x03\xe0A\x02\x12K\ - \n\x0ckms_key_name\x18\x02\x20\x01(\tR\nkmsKeyNameB)\xfaA#\n!cloudkms.go\ - ogleapis.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\x03B\xff\x01\n$com.google.spanner.admin.d\ - atabase.v1B\x0bBackupProtoP\x01ZHgoogle.golang.org/genproto/googleapis/s\ - panner/admin/database/v1;database\xaa\x02&Google.Cloud.Spanner.Admin.Dat\ - abase.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Goo\ - gle::Cloud::Spanner::Admin::Database::V1J\xf2\x94\x01\n\x07\x12\x05\x0e\ - \0\xcc\x03\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\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\n3\n\x02\ - \x04\0\x12\x04\"\0}\x01\x1a'\x20A\x20backup\x20of\x20a\x20Cloud\x20Spann\ - er\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\x20curren\ - t\x20state\x20of\x20the\x20backup.\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`FAILED_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\x20backup\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<\x05\x1a\xb2\x02\x20Required\x20for\x20the\n\x20[Cre\ - ateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]\ - \n\x20operation.\x20Name\x20of\x20the\x20database\x20from\x20which\x20th\ - is\x20backup\x20was\x20created.\x20This\n\x20needs\x20to\x20be\x20in\x20\ - the\x20same\x20instance\x20as\x20the\x20backup.\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects//instances//databases/\ - `.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04:\x023\x03\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<\x04\n\x0f\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x04:\x17<\ - \x03\n\xf1\x01\n\x04\x04\0\x02\x01\x12\x03B\x02-\x1a\xe3\x01\x20The\x20b\ - ackup\x20will\x20contain\x20an\x20externally\x20consistent\x20copy\x20of\ - \x20the\x20database\x20at\n\x20the\x20timestamp\x20specified\x20by\x20`v\ - ersion_time`.\x20If\x20`version_time`\x20is\x20not\n\x20specified,\x20th\ - e\x20system\x20will\x20set\x20`version_time`\x20to\x20the\x20`create_tim\ - e`\x20of\x20the\n\x20backup.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04B\x02<\ - \x05\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\ - \xb7\x03\n\x04\x04\0\x02\x02\x12\x03K\x02,\x1a\xa9\x03\x20Required\x20fo\ - r\x20the\n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAd\ - min.CreateBackup]\n\x20operation.\x20The\x20expiration\x20time\x20of\x20\ - the\x20backup,\x20with\x20microseconds\n\x20granularity\x20that\x20must\ - \x20be\x20at\x20least\x206\x20hours\x20and\x20at\x20most\x20366\x20days\ - \n\x20from\x20the\x20time\x20the\x20CreateBackup\x20request\x20is\x20pro\ - cessed.\x20Once\x20the\x20`expire_time`\n\x20has\x20passed,\x20the\x20ba\ - ckup\x20is\x20eligible\x20to\x20be\x20automatically\x20deleted\x20by\x20\ - Cloud\n\x20Spanner\x20to\x20free\x20the\x20resources\x20used\x20by\x20th\ - e\x20backup.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04K\x02B-\n\x0c\n\x05\ - \x04\0\x02\x02\x06\x12\x03K\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ - \x03K\x1c'\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03K*+\n\xc0\x05\n\x04\x04\ - \0\x02\x03\x12\x03]\x02\x12\x1a\xb2\x05\x20Output\x20only\x20for\x20the\ - \n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.Crea\ - teBackup]\n\x20operation.\x20Required\x20for\x20the\n\x20[UpdateBackup][\ - google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]\n\x20operat\ - ion.\n\n\x20A\x20globally\x20unique\x20identifier\x20for\x20the\x20backu\ - p\x20which\x20cannot\x20be\n\x20changed.\x20Values\x20are\x20of\x20the\ - \x20form\n\x20`projects//instances//backups/[a-z][a-z\ - 0-9_\\-]*[a-z0-9]`\n\x20The\x20final\x20segment\x20of\x20the\x20name\x20\ - must\x20be\x20between\x202\x20and\x2060\x20characters\n\x20in\x20length.\ - \n\n\x20The\x20backup\x20is\x20stored\x20in\x20the\x20location(s)\x20spe\ - cified\x20in\x20the\x20instance\n\x20configuration\x20of\x20the\x20insta\ - nce\x20containing\x20the\x20backup,\x20identified\n\x20by\x20the\x20pref\ - ix\x20of\x20the\x20backup\x20name\x20of\x20the\x20form\n\x20`projects//instances/`.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04]\ - \x02K,\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\r\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03]\x10\x11\ - \n\x88\x02\n\x04\x04\0\x02\x04\x12\x04c\x02d2\x1a\xf9\x01\x20Output\x20o\ - nly.\x20The\x20time\x20the\n\x20[CreateBackup][google.spanner.admin.data\ - base.v1.DatabaseAdmin.CreateBackup]\n\x20request\x20is\x20received.\x20I\ - f\x20the\x20request\x20does\x20not\x20specify\x20`version_time`,\x20the\ - \n\x20`version_time`\x20of\x20the\x20backup\x20will\x20be\x20equivalent\ - \x20to\x20the\x20`create_time`.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04c\ - \x02]\x12\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03c\x02\x1b\n\x0c\n\x05\x04\ - \0\x02\x04\x01\x12\x03c\x1c'\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03c*+\n\ - \x0c\n\x05\x04\0\x02\x04\x08\x12\x03d\x061\n\x0f\n\x08\x04\0\x02\x04\x08\ - \x9c\x08\0\x12\x03d\x070\n8\n\x04\x04\0\x02\x05\x12\x03g\x02C\x1a+\x20Ou\ - tput\x20only.\x20Size\x20of\x20the\x20backup\x20in\x20bytes.\n\n\r\n\x05\ - \x04\0\x02\x05\x04\x12\x04g\x02d2\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03g\ - \x02\x07\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03g\x08\x12\n\x0c\n\x05\x04\ - \0\x02\x05\x03\x12\x03g\x15\x16\n\x0c\n\x05\x04\0\x02\x05\x08\x12\x03g\ - \x17B\n\x0f\n\x08\x04\0\x02\x05\x08\x9c\x08\0\x12\x03g\x18A\n<\n\x04\x04\ - \0\x02\x06\x12\x03j\x02>\x1a/\x20Output\x20only.\x20The\x20current\x20st\ - ate\x20of\x20the\x20backup.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04j\x02gC\ - \n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03j\x02\x07\n\x0c\n\x05\x04\0\x02\ - \x06\x01\x12\x03j\x08\r\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03j\x10\x11\n\ - \x0c\n\x05\x04\0\x02\x06\x08\x12\x03j\x12=\n\x0f\n\x08\x04\0\x02\x06\x08\ - \x9c\x08\0\x12\x03j\x13<\n\xba\x03\n\x04\x04\0\x02\x07\x12\x04s\x02x\x04\ - \x1a\xab\x03\x20Output\x20only.\x20The\x20names\x20of\x20the\x20restored\ - \x20databases\x20that\x20reference\x20the\x20backup.\n\x20The\x20databas\ - e\x20names\x20are\x20of\n\x20the\x20form\x20`projects//instance\ - s//databases/`.\n\x20Referencing\x20databases\x20may\ - \x20exist\x20in\x20different\x20instances.\x20The\x20existence\x20of\n\ - \x20any\x20referencing\x20database\x20prevents\x20the\x20backup\x20from\ - \x20being\x20deleted.\x20When\x20a\n\x20restored\x20database\x20from\x20\ - the\x20backup\x20enters\x20the\x20`READY`\x20state,\x20the\x20reference\ - \n\x20to\x20the\x20backup\x20is\x20removed.\n\n\x0c\n\x05\x04\0\x02\x07\ - \x04\x12\x03s\x02\n\n\x0c\n\x05\x04\0\x02\x07\x05\x12\x03s\x0b\x11\n\x0c\ - \n\x05\x04\0\x02\x07\x01\x12\x03s\x12'\n\x0c\n\x05\x04\0\x02\x07\x03\x12\ - \x03s*+\n\r\n\x05\x04\0\x02\x07\x08\x12\x04s,x\x03\n\x0f\n\x08\x04\0\x02\ - \x07\x08\x9c\x08\0\x12\x03t\x04-\n\x0f\n\x07\x04\0\x02\x07\x08\x9f\x08\ - \x12\x04u\x04w\x05\nG\n\x04\x04\0\x02\x08\x12\x04{\x02|2\x1a9\x20Output\ - \x20only.\x20The\x20encryption\x20information\x20for\x20the\x20backup.\n\ - \n\r\n\x05\x04\0\x02\x08\x04\x12\x04{\x02x\x04\n\x0c\n\x05\x04\0\x02\x08\ - \x06\x12\x03{\x02\x10\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03{\x11\x20\n\ - \x0c\n\x05\x04\0\x02\x08\x03\x12\x03{#$\n\x0c\n\x05\x04\0\x02\x08\x08\ - \x12\x03|\x061\n\x0f\n\x08\x04\0\x02\x08\x08\x9c\x08\0\x12\x03|\x070\nm\ - \n\x02\x04\x01\x12\x06\x81\x01\0\x9e\x01\x01\x1a_\x20The\x20request\x20f\ - or\n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.Cr\ - eateBackup].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x81\x01\x08\x1b\n\xe3\x02\ - \n\x04\x04\x01\x02\0\x12\x06\x88\x01\x02\x8d\x01\x04\x1a\xd2\x02\x20Requ\ - ired.\x20The\x20name\x20of\x20the\x20instance\x20in\x20which\x20the\x20b\ - ackup\x20will\x20be\n\x20created.\x20This\x20must\x20be\x20the\x20same\ - \x20instance\x20that\x20contains\x20the\x20database\x20the\n\x20backup\ - \x20will\x20be\x20created\x20from.\x20The\x20backup\x20will\x20be\x20sto\ - red\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\x0f\ - \n\x05\x04\x01\x02\0\x04\x12\x06\x88\x01\x02\x81\x01\x1d\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\x0f\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x88\x01\x12\x13\n\ - \x0f\n\x05\x04\x01\x02\0\x08\x12\x06\x88\x01\x14\x8d\x01\x03\n\x10\n\x08\ - \x04\x01\x02\0\x08\x9c\x08\0\x12\x04\x89\x01\x04*\n\x11\n\x07\x04\x01\ - \x02\0\x08\x9f\x08\x12\x06\x8a\x01\x04\x8c\x01\x05\n\xcb\x01\n\x04\x04\ - \x01\x02\x01\x12\x04\x92\x01\x02@\x1a\xbc\x01\x20Required.\x20The\x20id\ - \x20of\x20the\x20backup\x20to\x20be\x20created.\x20The\x20`backup_id`\ - \x20appended\x20to\n\x20`parent`\x20forms\x20the\x20full\x20backup\x20na\ - me\x20of\x20the\x20form\n\x20`projects//instances//ba\ - ckups/`.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\x92\x01\ - \x02\x8d\x01\x04\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x92\x01\x02\x08\n\ - \r\n\x05\x04\x01\x02\x01\x01\x12\x04\x92\x01\t\x12\n\r\n\x05\x04\x01\x02\ - \x01\x03\x12\x04\x92\x01\x15\x16\n\r\n\x05\x04\x01\x02\x01\x08\x12\x04\ - \x92\x01\x17?\n\x10\n\x08\x04\x01\x02\x01\x08\x9c\x08\0\x12\x04\x92\x01\ - \x18>\n/\n\x04\x04\x01\x02\x02\x12\x04\x95\x01\x02=\x1a!\x20Required.\ - \x20The\x20backup\x20to\x20create.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\ - \x06\x95\x01\x02\x92\x01@\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\x95\x01\ - \x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x95\x01\t\x0f\n\r\n\x05\ - \x04\x01\x02\x02\x03\x12\x04\x95\x01\x12\x13\n\r\n\x05\x04\x01\x02\x02\ - \x08\x12\x04\x95\x01\x14<\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\x12\ - \x04\x95\x01\x15;\n\xd0\x02\n\x04\x04\x01\x02\x03\x12\x06\x9c\x01\x02\ - \x9d\x01/\x1a\xbf\x02\x20Optional.\x20The\x20encryption\x20configuration\ - \x20used\x20to\x20encrypt\x20the\x20backup.\x20If\x20this\n\x20field\x20\ - is\x20not\x20specified,\x20the\x20backup\x20will\x20use\x20the\x20same\ - \x20encryption\n\x20configuration\x20as\x20the\x20database\x20by\x20defa\ - ult,\x20namely\n\x20[encryption_type][google.spanner.admin.database.v1.C\ - reateBackupEncryptionConfig.encryption_type]\n\x20=\x20`USE_DATABASE_ENC\ - RYPTION`.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x9c\x01\x02\x95\x01=\ - \n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\x9c\x01\x02\x1e\n\r\n\x05\x04\x01\ - \x02\x03\x01\x12\x04\x9c\x01\x1f0\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\ - \x9c\x0134\n\r\n\x05\x04\x01\x02\x03\x08\x12\x04\x9d\x01\x06.\n\x10\n\ - \x08\x04\x01\x02\x03\x08\x9c\x08\0\x12\x04\x9d\x01\x07-\n\x89\x01\n\x02\ - \x04\x02\x12\x06\xa2\x01\0\xbf\x01\x01\x1a{\x20Metadata\x20type\x20for\ - \x20the\x20operation\x20returned\x20by\n\x20[CreateBackup][google.spanne\ - r.admin.database.v1.DatabaseAdmin.CreateBackup].\n\n\x0b\n\x03\x04\x02\ - \x01\x12\x04\xa2\x01\x08\x1c\n7\n\x04\x04\x02\x02\0\x12\x06\xa4\x01\x02\ - \xa6\x01\x04\x1a'\x20The\x20name\x20of\x20the\x20backup\x20being\x20crea\ - ted.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xa4\x01\x02\xa2\x01\x1e\n\r\ - \n\x05\x04\x02\x02\0\x05\x12\x04\xa4\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\xa4\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xa4\x01\x10\ - \x11\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xa4\x01\x12\xa6\x01\x03\n\x0f\ - \n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x04\xa5\x01\x04O\nF\n\x04\x04\x02\ - \x02\x01\x12\x06\xa9\x01\x02\xab\x01\x05\x1a6\x20The\x20name\x20of\x20th\ - e\x20database\x20the\x20backup\x20is\x20created\x20from.\n\n\x0f\n\x05\ - \x04\x02\x02\x01\x04\x12\x06\xa9\x01\x02\xa6\x01\x04\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\x11\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa9\x01\x14\x15\ - \n\x0f\n\x05\x04\x02\x02\x01\x08\x12\x06\xa9\x01\x16\xab\x01\x04\n\x11\n\ - \x07\x04\x02\x02\x01\x08\x9f\x08\x12\x06\xa9\x01\x17\xab\x01\x03\n|\n\ - \x04\x04\x02\x02\x02\x12\x04\xb0\x01\x02!\x1an\x20The\x20progress\x20of\ - \x20the\n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdm\ - in.CreateBackup]\n\x20operation.\n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\ - \x06\xb0\x01\x02\xab\x01\x05\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xb0\ - \x01\x02\x13\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xb0\x01\x14\x1c\n\r\n\ - \x05\x04\x02\x02\x02\x03\x12\x04\xb0\x01\x1f\x20\n\x87\x06\n\x04\x04\x02\ - \x02\x03\x12\x04\xbe\x01\x02,\x1a\xf8\x05\x20The\x20time\x20at\x20which\ - \x20cancellation\x20of\x20this\x20operation\x20was\x20received.\n\x20[Op\ - erations.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\x20guaran\ - teed.\n\x20Clients\x20can\x20use\n\x20[Operations.GetOperation][google.l\ - ongrunning.Operations.GetOperation]\x20or\n\x20other\x20methods\x20to\ - \x20check\x20whether\x20the\x20cancellation\x20succeeded\x20or\x20whethe\ - r\x20the\n\x20operation\x20completed\x20despite\x20cancellation.\x20On\ - \x20successful\x20cancellation,\n\x20the\x20operation\x20is\x20not\x20de\ - leted;\x20instead,\x20it\x20becomes\x20an\x20operation\x20with\n\x20an\ - \x20[Operation.error][google.longrunning.Operation.error]\x20value\x20wi\ - th\x20a\n\x20[google.rpc.Status.code][google.rpc.Status.code]\x20of\x201\ - ,\n\x20corresponding\x20to\x20`Code.CANCELLED`.\n\n\x0f\n\x05\x04\x02\ - \x02\x03\x04\x12\x06\xbe\x01\x02\xb0\x01!\n\r\n\x05\x04\x02\x02\x03\x06\ - \x12\x04\xbe\x01\x02\x1b\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xbe\x01\ - \x1c'\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xbe\x01*+\nm\n\x02\x04\x03\ - \x12\x06\xc3\x01\0\xd1\x01\x01\x1a_\x20The\x20request\x20for\n\x20[Updat\ - eBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup].\n\ - \n\x0b\n\x03\x04\x03\x01\x12\x04\xc3\x01\x08\x1b\n\xf1\x01\n\x04\x04\x03\ - \x02\0\x12\x04\xc8\x01\x02=\x1a\xe2\x01\x20Required.\x20The\x20backup\ - \x20to\x20update.\x20`backup.name`,\x20and\x20the\x20fields\x20to\x20be\ - \x20updated\n\x20as\x20specified\x20by\x20`update_mask`\x20are\x20requir\ - ed.\x20Other\x20fields\x20are\x20ignored.\n\x20Update\x20is\x20only\x20s\ - upported\x20for\x20the\x20following\x20fields:\n\x20\x20*\x20`backup.exp\ - ire_time`.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\x06\xc8\x01\x02\xc3\x01\ - \x1d\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xc8\x01\x02\x08\n\r\n\x05\x04\ - \x03\x02\0\x01\x12\x04\xc8\x01\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\ - \xc8\x01\x12\x13\n\r\n\x05\x04\x03\x02\0\x08\x12\x04\xc8\x01\x14<\n\x10\ - \n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\xc8\x01\x15;\n\xd8\x02\n\x04\ - \x04\x03\x02\x01\x12\x06\xcf\x01\x02\xd0\x01/\x1a\xc7\x02\x20Required.\ - \x20A\x20mask\x20specifying\x20which\x20fields\x20(e.g.\x20`expire_time`\ - )\x20in\x20the\n\x20Backup\x20resource\x20should\x20be\x20updated.\x20Th\ - is\x20mask\x20is\x20relative\x20to\x20the\x20Backup\n\x20resource,\x20no\ - t\x20to\x20the\x20request\x20message.\x20The\x20field\x20mask\x20must\ - \x20always\x20be\n\x20specified;\x20this\x20prevents\x20any\x20future\ - \x20fields\x20from\x20being\x20erased\x20accidentally\n\x20by\x20clients\ - \x20that\x20do\x20not\x20know\x20about\x20them.\n\n\x0f\n\x05\x04\x03\ - \x02\x01\x04\x12\x06\xcf\x01\x02\xc8\x01=\n\r\n\x05\x04\x03\x02\x01\x06\ - \x12\x04\xcf\x01\x02\x1b\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xcf\x01\ - \x1c'\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xcf\x01*+\n\r\n\x05\x04\x03\ - \x02\x01\x08\x12\x04\xd0\x01\x06.\n\x10\n\x08\x04\x03\x02\x01\x08\x9c\ - \x08\0\x12\x04\xd0\x01\x07-\ng\n\x02\x04\x04\x12\x06\xd5\x01\0\xdd\x01\ - \x01\x1aY\x20The\x20request\x20for\n\x20[GetBackup][google.spanner.admin\ - .database.v1.DatabaseAdmin.GetBackup].\n\n\x0b\n\x03\x04\x04\x01\x12\x04\ - \xd5\x01\x08\x18\n\x84\x01\n\x04\x04\x04\x02\0\x12\x06\xd9\x01\x02\xdc\ - \x01\x04\x1at\x20Required.\x20Name\x20of\x20the\x20backup.\n\x20Values\ - \x20are\x20of\x20the\x20form\n\x20`projects//instances//backups/`.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xd9\x01\ - \x02\xd5\x01\x1a\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xd9\x01\x02\x08\n\r\ - \n\x05\x04\x04\x02\0\x01\x12\x04\xd9\x01\t\r\n\r\n\x05\x04\x04\x02\0\x03\ - \x12\x04\xd9\x01\x10\x11\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xd9\x01\ - \x12\xdc\x01\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xda\x01\ - \x04*\n\x0f\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x04\xdb\x01\x04O\nm\n\ - \x02\x04\x05\x12\x06\xe1\x01\0\xe9\x01\x01\x1a_\x20The\x20request\x20for\ - \n\x20[DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.Dele\ - teBackup].\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xe1\x01\x08\x1b\n\x8e\x01\n\ - \x04\x04\x05\x02\0\x12\x06\xe5\x01\x02\xe8\x01\x04\x1a~\x20Required.\x20\ - Name\x20of\x20the\x20backup\x20to\x20delete.\n\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects//instances//backups/`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xe5\x01\x02\xe1\x01\x1d\ - \n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xe5\x01\x02\x08\n\r\n\x05\x04\x05\ - \x02\0\x01\x12\x04\xe5\x01\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xe5\ - \x01\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xe5\x01\x12\xe8\x01\ - \x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xe6\x01\x04*\n\x0f\ - \n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x04\xe7\x01\x04O\nk\n\x02\x04\x06\ - \x12\x06\xed\x01\0\xa8\x02\x01\x1a]\x20The\x20request\x20for\n\x20[ListB\ - ackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].\n\n\ - \x0b\n\x03\x04\x06\x01\x12\x04\xed\x01\x08\x1a\n\x82\x01\n\x04\x04\x06\ - \x02\0\x12\x06\xf0\x01\x02\xf5\x01\x04\x1ar\x20Required.\x20The\x20insta\ - nce\x20to\x20list\x20backups\x20from.\x20\x20Values\x20are\x20of\x20the\ - \n\x20form\x20`projects//instances/`.\n\n\x0f\n\x05\ - \x04\x06\x02\0\x04\x12\x06\xf0\x01\x02\xed\x01\x1c\n\r\n\x05\x04\x06\x02\ - \0\x05\x12\x04\xf0\x01\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xf0\ - \x01\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xf0\x01\x12\x13\n\x0f\n\ - \x05\x04\x06\x02\0\x08\x12\x06\xf0\x01\x14\xf5\x01\x03\n\x10\n\x08\x04\ - \x06\x02\0\x08\x9c\x08\0\x12\x04\xf1\x01\x04*\n\x11\n\x07\x04\x06\x02\0\ - \x08\x9f\x08\x12\x06\xf2\x01\x04\xf4\x01\x05\n\xec\x0c\n\x04\x04\x06\x02\ - \x01\x12\x04\x9c\x02\x02\x14\x1a\xdd\x0c\x20An\x20expression\x20that\x20\ - filters\x20the\x20list\x20of\x20returned\x20backups.\n\n\x20A\x20filter\ - \x20expression\x20consists\x20of\x20a\x20field\x20name,\x20a\x20comparis\ - on\x20operator,\x20and\x20a\n\x20value\x20for\x20filtering.\n\x20The\x20\ - value\x20must\x20be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20boolea\ - n.\x20The\x20comparison\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\x20sensitive.\n\n\x20The\x20following\x20fields\x20in\ - \x20the\n\x20[Backup][google.spanner.admin.database.v1.Backup]\x20are\ - \x20eligible\x20for\n\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\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDT\ - HH:MM:SSZ)\n\x20\x20\x20*\x20`expire_time`\x20\x20(and\x20values\x20are\ - \x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\x20\x20\x20*\x20`vers\ - ion_time`\x20(and\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDT\ - HH:MM:SSZ)\n\x20\x20\x20*\x20`size_bytes`\n\n\x20You\x20can\x20combine\ - \x20multiple\x20expressions\x20by\x20enclosing\x20each\x20expression\x20\ - in\n\x20parentheses.\x20By\x20default,\x20expressions\x20are\x20combined\ - \x20with\x20AND\x20logic,\x20but\n\x20you\x20can\x20specify\x20AND,\x20O\ - R,\x20and\x20NOT\x20logic\x20explicitly.\n\n\x20Here\x20are\x20a\x20few\ - \x20examples:\n\n\x20\x20\x20*\x20`name:Howl`\x20-\x20The\x20backup's\ - \x20name\x20contains\x20the\x20string\x20\"howl\".\n\x20\x20\x20*\x20`da\ - tabase:prod`\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20The\x20databa\ - se's\x20name\x20contains\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\x20contai\ - ns\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`expire_time`\x20is\x20before\x202018-03-28T14\ - :50:00Z.\n\x20\x20\x20*\x20`size_bytes\x20>\x2010000000000`\x20-\x20The\ - \x20backup's\x20size\x20is\x20greater\x20than\x2010GB\n\n\x0f\n\x05\x04\ - \x06\x02\x01\x04\x12\x06\x9c\x02\x02\xf5\x01\x04\n\r\n\x05\x04\x06\x02\ - \x01\x05\x12\x04\x9c\x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\ - \x9c\x02\t\x0f\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x9c\x02\x12\x13\n\ - \x84\x01\n\x04\x04\x06\x02\x02\x12\x04\xa0\x02\x02\x16\x1av\x20Number\ - \x20of\x20backups\x20to\x20be\x20returned\x20in\x20the\x20response.\x20I\ - f\x200\x20or\n\x20less,\x20defaults\x20to\x20the\x20server's\x20maximum\ - \x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x06\x02\x02\x04\x12\x06\ - \xa0\x02\x02\x9c\x02\x14\n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\xa0\x02\ - \x02\x07\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xa0\x02\x08\x11\n\r\n\x05\ - \x04\x06\x02\x02\x03\x12\x04\xa0\x02\x14\x15\n\xa5\x02\n\x04\x04\x06\x02\ - \x03\x12\x04\xa7\x02\x02\x18\x1a\x96\x02\x20If\x20non-empty,\x20`page_to\ - ken`\x20should\x20contain\x20a\n\x20[next_page_token][google.spanner.adm\ - in.database.v1.ListBackupsResponse.next_page_token]\n\x20from\x20a\x20pr\ - evious\n\x20[ListBackupsResponse][google.spanner.admin.database.v1.ListB\ - ackupsResponse]\n\x20to\x20the\x20same\x20`parent`\x20and\x20with\x20the\ - \x20same\x20`filter`.\n\n\x0f\n\x05\x04\x06\x02\x03\x04\x12\x06\xa7\x02\ - \x02\xa0\x02\x16\n\r\n\x05\x04\x06\x02\x03\x05\x12\x04\xa7\x02\x02\x08\n\ - \r\n\x05\x04\x06\x02\x03\x01\x12\x04\xa7\x02\t\x13\n\r\n\x05\x04\x06\x02\ - \x03\x03\x12\x04\xa7\x02\x16\x17\nl\n\x02\x04\x07\x12\x06\xac\x02\0\xb5\ - \x02\x01\x1a^\x20The\x20response\x20for\n\x20[ListBackups][google.spanne\ - r.admin.database.v1.DatabaseAdmin.ListBackups].\n\n\x0b\n\x03\x04\x07\ - \x01\x12\x04\xac\x02\x08\x1b\n\x9f\x01\n\x04\x04\x07\x02\0\x12\x04\xaf\ - \x02\x02\x1e\x1a\x90\x01\x20The\x20list\x20of\x20matching\x20backups.\ - \x20Backups\x20returned\x20are\x20ordered\x20by\x20`create_time`\n\x20in\ - \x20descending\x20order,\x20starting\x20from\x20the\x20most\x20recent\ - \x20`create_time`.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\xaf\x02\x02\n\n\ - \r\n\x05\x04\x07\x02\0\x06\x12\x04\xaf\x02\x0b\x11\n\r\n\x05\x04\x07\x02\ - \0\x01\x12\x04\xaf\x02\x12\x19\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xaf\ - \x02\x1c\x1d\n\xb6\x01\n\x04\x04\x07\x02\x01\x12\x04\xb4\x02\x02\x1d\x1a\ - \xa7\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequ\ - ent\n\x20[ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.Li\ - stBackups]\n\x20call\x20to\x20fetch\x20more\x20of\x20the\x20matching\x20\ - backups.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xb4\x02\x02\xaf\x02\ - \x1e\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xb4\x02\x02\x08\n\r\n\x05\x04\ - \x07\x02\x01\x01\x12\x04\xb4\x02\t\x18\n\r\n\x05\x04\x07\x02\x01\x03\x12\ - \x04\xb4\x02\x1b\x1c\n}\n\x02\x04\x08\x12\x06\xb9\x02\0\xf8\x02\x01\x1ao\ - \x20The\x20request\x20for\n\x20[ListBackupOperations][google.spanner.adm\ - in.database.v1.DatabaseAdmin.ListBackupOperations].\n\n\x0b\n\x03\x04\ - \x08\x01\x12\x04\xb9\x02\x08#\n\x85\x01\n\x04\x04\x08\x02\0\x12\x06\xbc\ - \x02\x02\xc1\x02\x04\x1au\x20Required.\x20The\x20instance\x20of\x20the\ - \x20backup\x20operations.\x20Values\x20are\x20of\n\x20the\x20form\x20`pr\ - ojects//instances/`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\ - \x12\x06\xbc\x02\x02\xb9\x02%\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xbc\ - \x02\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xbc\x02\t\x0f\n\r\n\x05\ - \x04\x08\x02\0\x03\x12\x04\xbc\x02\x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\ - \x12\x06\xbc\x02\x14\xc1\x02\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\ - \x12\x04\xbd\x02\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xbe\ - \x02\x04\xc0\x02\x05\n\xe2\x0f\n\x04\x04\x08\x02\x01\x12\x04\xec\x02\x02\ - \x14\x1a\xd3\x0f\x20An\x20expression\x20that\x20filters\x20the\x20list\ - \x20of\x20returned\x20backup\x20operations.\n\n\x20A\x20filter\x20expres\ - sion\x20consists\x20of\x20a\x20field\x20name,\x20a\n\x20comparison\x20op\ - erator,\x20and\x20a\x20value\x20for\x20filtering.\n\x20The\x20value\x20m\ - ust\x20be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20boolean.\x20The\ - \x20comparison\x20operator\n\x20must\x20be\x20one\x20of:\x20`<`,\x20`>`,\ - \x20`<=`,\x20`>=`,\x20`!=`,\x20`=`,\x20or\x20`:`.\n\x20Colon\x20`:`\x20i\ - s\x20the\x20contains\x20operator.\x20Filter\x20rules\x20are\x20not\x20ca\ - se\x20sensitive.\n\n\x20The\x20following\x20fields\x20in\x20the\x20[oper\ - ation][google.longrunning.Operation]\n\x20are\x20eligible\x20for\x20filt\ - ering:\n\n\x20\x20\x20*\x20`name`\x20-\x20The\x20name\x20of\x20the\x20lo\ - ng-running\x20operation\n\x20\x20\x20*\x20`done`\x20-\x20False\x20if\x20\ - the\x20operation\x20is\x20in\x20progress,\x20else\x20true.\n\x20\x20\x20\ - *\x20`metadata.@type`\x20-\x20the\x20type\x20of\x20metadata.\x20For\x20e\ - xample,\x20the\x20type\x20string\n\x20\x20\x20\x20\x20\x20for\n\x20\x20\ - \x20\x20\x20\x20[CreateBackupMetadata][google.spanner.admin.database.v1.\ - CreateBackupMetadata]\n\x20\x20\x20\x20\x20\x20is\n\x20\x20\x20\x20\x20\ - \x20`type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMe\ - tadata`.\n\x20\x20\x20*\x20`metadata.`\x20-\x20any\x20field\ - \x20in\x20metadata.value.\n\x20\x20\x20*\x20`error`\x20-\x20Error\x20ass\ - ociated\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\x20combine\x20multiple\x20expressions\x20by\x20enclo\ - sing\x20each\x20expression\x20in\n\x20parentheses.\x20By\x20default,\x20\ - expressions\x20are\x20combined\x20with\x20AND\x20logic,\x20but\n\x20you\ - \x20can\x20specify\x20AND,\x20OR,\x20and\x20NOT\x20logic\x20explicitly.\ - \n\n\x20Here\x20are\x20a\x20few\x20examples:\n\n\x20\x20\x20*\x20`done:t\ - rue`\x20-\x20The\x20operation\x20is\x20complete.\n\x20\x20\x20*\x20`meta\ - data.database:prod`\x20-\x20The\x20database\x20the\x20backup\x20was\x20t\ - aken\x20from\x20has\n\x20\x20\x20\x20\x20\x20a\x20name\x20containing\x20\ - the\x20string\x20\"prod\".\n\x20\x20\x20*\x20`(metadata.@type=type.googl\ - eapis.com/google.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-\x20Retu\ - rns\x20operations\x20where:\n\x20\x20\x20\x20\x20*\x20The\x20operation's\ - \x20metadata\x20type\x20is\n\x20\x20\x20\x20\x20[CreateBackupMetadata][g\ - oogle.spanner.admin.database.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\x20error.\n\n\x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xec\x02\ - \x02\xc1\x02\x04\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xec\x02\x02\x08\n\ - \r\n\x05\x04\x08\x02\x01\x01\x12\x04\xec\x02\t\x0f\n\r\n\x05\x04\x08\x02\ - \x01\x03\x12\x04\xec\x02\x12\x13\n\x87\x01\n\x04\x04\x08\x02\x02\x12\x04\ - \xf0\x02\x02\x16\x1ay\x20Number\x20of\x20operations\x20to\x20be\x20retur\ - ned\x20in\x20the\x20response.\x20If\x200\x20or\n\x20less,\x20defaults\ - \x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\x0f\ - \n\x05\x04\x08\x02\x02\x04\x12\x06\xf0\x02\x02\xec\x02\x14\n\r\n\x05\x04\ - \x08\x02\x02\x05\x12\x04\xf0\x02\x02\x07\n\r\n\x05\x04\x08\x02\x02\x01\ - \x12\x04\xf0\x02\x08\x11\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xf0\x02\ - \x14\x15\n\xc0\x02\n\x04\x04\x08\x02\x03\x12\x04\xf7\x02\x02\x18\x1a\xb1\ - \x02\x20If\x20non-empty,\x20`page_token`\x20should\x20contain\x20a\n\x20\ - [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsR\ - esponse.next_page_token]\n\x20from\x20a\x20previous\n\x20[ListBackupOper\ - ationsResponse][google.spanner.admin.database.v1.ListBackupOperationsRes\ - ponse]\n\x20to\x20the\x20same\x20`parent`\x20and\x20with\x20the\x20same\ - \x20`filter`.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\x12\x06\xf7\x02\x02\xf0\ - \x02\x16\n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\xf7\x02\x02\x08\n\r\n\x05\ - \x04\x08\x02\x03\x01\x12\x04\xf7\x02\t\x13\n\r\n\x05\x04\x08\x02\x03\x03\ - \x12\x04\xf7\x02\x16\x17\n~\n\x02\x04\t\x12\x06\xfc\x02\0\x8c\x03\x01\ - \x1ap\x20The\x20response\x20for\n\x20[ListBackupOperations][google.spann\ - er.admin.database.v1.DatabaseAdmin.ListBackupOperations].\n\n\x0b\n\x03\ - \x04\t\x01\x12\x04\xfc\x02\x08$\n\xd4\x04\n\x04\x04\t\x02\0\x12\x04\x86\ - \x03\x027\x1a\xc5\x04\x20The\x20list\x20of\x20matching\x20backup\x20[lon\ - g-running\n\x20operations][google.longrunning.Operation].\x20Each\x20ope\ - ration's\x20name\x20will\x20be\n\x20prefixed\x20by\x20the\x20backup's\ - \x20name\x20and\x20the\x20operation's\n\x20[metadata][google.longrunning\ - .Operation.metadata]\x20will\x20be\x20of\x20type\n\x20[CreateBackupMetad\ - ata][google.spanner.admin.database.v1.CreateBackupMetadata].\n\x20Operat\ - ions\x20returned\x20include\x20those\x20that\x20are\x20pending\x20or\x20\ - have\n\x20completed/failed/canceled\x20within\x20the\x20last\x207\x20day\ - s.\x20Operations\x20returned\x20are\n\x20ordered\x20by\x20`operation.met\ - adata.value.progress.start_time`\x20in\x20descending\n\x20order\x20start\ - ing\x20from\x20the\x20most\x20recently\x20started\x20operation.\n\n\r\n\ - \x05\x04\t\x02\0\x04\x12\x04\x86\x03\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\ - \x04\x86\x03\x0b'\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x86\x03(2\n\r\n\x05\ - \x04\t\x02\0\x03\x12\x04\x86\x0356\n\xc9\x01\n\x04\x04\t\x02\x01\x12\x04\ - \x8b\x03\x02\x1d\x1a\xba\x01\x20`next_page_token`\x20can\x20be\x20sent\ - \x20in\x20a\x20subsequent\n\x20[ListBackupOperations][google.spanner.adm\ - in.database.v1.DatabaseAdmin.ListBackupOperations]\n\x20call\x20to\x20fe\ - tch\x20more\x20of\x20the\x20matching\x20metadata.\n\n\x0f\n\x05\x04\t\ - \x02\x01\x04\x12\x06\x8b\x03\x02\x86\x037\n\r\n\x05\x04\t\x02\x01\x05\ - \x12\x04\x8b\x03\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x8b\x03\t\ - \x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x8b\x03\x1b\x1c\n+\n\x02\x04\n\ - \x12\x06\x8f\x03\0\xa5\x03\x01\x1a\x1d\x20Information\x20about\x20a\x20b\ - ackup.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x8f\x03\x08\x12\n%\n\x04\x04\n\ - \x02\0\x12\x06\x91\x03\x02\x93\x03\x04\x1a\x15\x20Name\x20of\x20the\x20b\ - ackup.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\x91\x03\x02\x8f\x03\x14\n\r\ - \n\x05\x04\n\x02\0\x05\x12\x04\x91\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\x91\x03\t\x0f\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x91\x03\x12\x13\ - \n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\x91\x03\x14\x93\x03\x03\n\x0f\n\x07\ - \x04\n\x02\0\x08\x9f\x08\x12\x04\x92\x03\x04O\n\xc9\x02\n\x04\x04\n\x02\ - \x01\x12\x04\x9a\x03\x02-\x1a\xba\x02\x20The\x20backup\x20contains\x20an\ - \x20externally\x20consistent\x20copy\x20of\x20`source_database`\x20at\n\ - \x20the\x20timestamp\x20specified\x20by\x20`version_time`.\x20If\x20the\ - \n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.Crea\ - teBackup]\n\x20request\x20did\x20not\x20specify\x20`version_time`,\x20th\ - e\x20`version_time`\x20of\x20the\x20backup\x20is\n\x20equivalent\x20to\ - \x20the\x20`create_time`.\n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\x9a\ - \x03\x02\x93\x03\x04\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\x9a\x03\x02\x1b\ - \n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x9a\x03\x1c(\n\r\n\x05\x04\n\x02\ - \x01\x03\x12\x04\x9a\x03+,\n\x80\x01\n\x04\x04\n\x02\x02\x12\x04\x9f\x03\ - \x02,\x1ar\x20The\x20time\x20the\n\x20[CreateBackup][google.spanner.admi\ - n.database.v1.DatabaseAdmin.CreateBackup]\n\x20request\x20was\x20receive\ - d.\n\n\x0f\n\x05\x04\n\x02\x02\x04\x12\x06\x9f\x03\x02\x9a\x03-\n\r\n\ - \x05\x04\n\x02\x02\x06\x12\x04\x9f\x03\x02\x1b\n\r\n\x05\x04\n\x02\x02\ - \x01\x12\x04\x9f\x03\x1c'\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\x9f\x03*+\ - \nC\n\x04\x04\n\x02\x03\x12\x06\xa2\x03\x02\xa4\x03\x05\x1a3\x20Name\x20\ - of\x20the\x20database\x20the\x20backup\x20was\x20created\x20from.\n\n\ - \x0f\n\x05\x04\n\x02\x03\x04\x12\x06\xa2\x03\x02\x9f\x03,\n\r\n\x05\x04\ - \n\x02\x03\x05\x12\x04\xa2\x03\x02\x08\n\r\n\x05\x04\n\x02\x03\x01\x12\ - \x04\xa2\x03\t\x18\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\xa2\x03\x1b\x1c\n\ - \x0f\n\x05\x04\n\x02\x03\x08\x12\x06\xa2\x03\x1d\xa4\x03\x04\n\x11\n\x07\ - \x04\n\x02\x03\x08\x9f\x08\x12\x06\xa2\x03\x1e\xa4\x03\x03\nB\n\x02\x04\ - \x0b\x12\x06\xa8\x03\0\xcc\x03\x01\x1a4\x20Encryption\x20configuration\ - \x20for\x20the\x20backup\x20to\x20create.\n\n\x0b\n\x03\x04\x0b\x01\x12\ - \x04\xa8\x03\x08$\n2\n\x04\x04\x0b\x04\0\x12\x06\xaa\x03\x02\xbc\x03\x03\ - \x1a\"\x20Encryption\x20types\x20for\x20the\x20backup.\n\n\r\n\x05\x04\ - \x0b\x04\0\x01\x12\x04\xaa\x03\x07\x15\n*\n\x06\x04\x0b\x04\0\x02\0\x12\ - \x04\xac\x03\x04$\x1a\x1a\x20Unspecified.\x20Do\x20not\x20use.\n\n\x0f\n\ - \x07\x04\x0b\x04\0\x02\0\x01\x12\x04\xac\x03\x04\x1f\n\x0f\n\x07\x04\x0b\ - \x04\0\x02\0\x02\x12\x04\xac\x03\"#\n\xd1\x02\n\x06\x04\x0b\x04\0\x02\ - \x01\x12\x04\xb4\x03\x04\x20\x1a\xc0\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]\n\x20is\x20empty.\x20For\ - \x20example,\x20if\x20the\x20database\x20is\x20using\n\x20`Customer_Mana\ - ged_Encryption`,\x20the\x20backup\x20will\x20be\x20using\x20the\x20same\ - \x20Cloud\n\x20KMS\x20key\x20as\x20the\x20database.\n\n\x0f\n\x07\x04\ - \x0b\x04\0\x02\x01\x01\x12\x04\xb4\x03\x04\x1b\n\x0f\n\x07\x04\x0b\x04\0\ - \x02\x01\x02\x12\x04\xb4\x03\x1e\x1f\n0\n\x06\x04\x0b\x04\0\x02\x02\x12\ - \x04\xb7\x03\x04\"\x1a\x20\x20Use\x20Google\x20default\x20encryption.\n\ - \n\x0f\n\x07\x04\x0b\x04\0\x02\x02\x01\x12\x04\xb7\x03\x04\x1d\n\x0f\n\ - \x07\x04\x0b\x04\0\x02\x02\x02\x12\x04\xb7\x03\x20!\nt\n\x06\x04\x0b\x04\ - \0\x02\x03\x12\x04\xbb\x03\x04$\x1ad\x20Use\x20customer\x20managed\x20en\ - cryption.\x20If\x20specified,\x20`kms_key_name`\n\x20must\x20contain\x20\ - a\x20valid\x20Cloud\x20KMS\x20key.\n\n\x0f\n\x07\x04\x0b\x04\0\x02\x03\ - \x01\x12\x04\xbb\x03\x04\x1f\n\x0f\n\x07\x04\x0b\x04\0\x02\x03\x02\x12\ - \x04\xbb\x03\"#\n<\n\x04\x04\x0b\x02\0\x12\x04\xbf\x03\x02N\x1a.\x20Requ\ - ired.\x20The\x20encryption\x20type\x20of\x20the\x20backup.\n\n\x0f\n\x05\ - \x04\x0b\x02\0\x04\x12\x06\xbf\x03\x02\xbc\x03\x03\n\r\n\x05\x04\x0b\x02\ - \0\x06\x12\x04\xbf\x03\x02\x10\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xbf\ - \x03\x11\x20\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xbf\x03#$\n\r\n\x05\x04\ - \x0b\x02\0\x08\x12\x04\xbf\x03%M\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\ - \x12\x04\xbf\x03&L\n\xf1\x02\n\x04\x04\x0b\x02\x01\x12\x06\xc6\x03\x02\ - \xcb\x03\x04\x1a\xe0\x02\x20Optional.\x20The\x20Cloud\x20KMS\x20key\x20t\ - hat\x20will\x20be\x20used\x20to\x20protect\x20the\x20backup.\n\x20This\ - \x20field\x20should\x20be\x20set\x20only\x20when\n\x20[encryption_type][\ - google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption\ - _type]\n\x20is\x20`CUSTOMER_MANAGED_ENCRYPTION`.\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects//locations//keyRings/<\ - key_ring>/cryptoKeys/`.\n\n\x0f\n\x05\x04\x0b\x02\x01\x04\ - \x12\x06\xc6\x03\x02\xbf\x03N\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xc6\ - \x03\x02\x08\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xc6\x03\t\x15\n\r\n\ - \x05\x04\x0b\x02\x01\x03\x12\x04\xc6\x03\x18\x19\n\x0f\n\x05\x04\x0b\x02\ - \x01\x08\x12\x06\xc6\x03\x1a\xcb\x03\x03\n\x10\n\x08\x04\x0b\x02\x01\x08\ - \x9c\x08\0\x12\x04\xc7\x03\x04*\n\x11\n\x07\x04\x0b\x02\x01\x08\x9f\x08\ - \x12\x06\xc8\x03\x04\xca\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/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/common.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/common.rs deleted file mode 100644 index fbf73e07bf..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/common.rs +++ /dev/null @@ -1,882 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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)) - } -} - -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\x02B\xa4\x04\n$com.google.spanner.admin.database.v1B\ - \x0bCommonProtoP\x01ZHgoogle.golang.org/genproto/googleapis/spanner/admi\ - n/database/v1;database\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\ - \xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Clo\ - ud::Spanner::Admin::Database::V1\xeaAx\n!cloudkms.googleapis.com/CryptoK\ - ey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/crypt\ - oKeys/{crypto_key}\xeaA\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersi\ - on\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/crypt\ - oKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}J\x88\x18\n\x06\ - \x12\x04\x0e\0c\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\ - \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\r\n\x05\x04\0\x02\0\x04\x12\x04,\x02)\x1b\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\r\n\x05\x04\0\x02\x01\x04\x12\x04/\x02,\x1d\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\x20successfu\ - lly.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x043\x02/+\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\x20\ - database.\n\n\n\n\x03\x04\x01\x01\x12\x037\x08\x18\n\xcb\x01\n\x04\x04\ - \x01\x02\0\x12\x04;\x02=\x05\x1a\xbc\x01\x20The\x20Cloud\x20KMS\x20key\ - \x20to\x20be\x20used\x20for\x20encrypting\x20and\x20decrypting\n\x20the\ - \x20database.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//locations//keyRings//cryptoKeys/`\ - .\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04;\x027\x1a\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=\x04\n\x0f\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x04;\ - \x1b=\x03\nL\n\x02\x04\x02\x12\x04A\0c\x01\x1a@\x20Encryption\x20informa\ - tion\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\x20encryption\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\x20encrypted.\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\x20encrypted\x20at\x20rest\x20with\x20\ - a\x20key\x20that\x20is\n\x20fully\x20managed\x20by\x20Google.\x20No\x20k\ - ey\x20version\x20or\x20status\x20will\x20be\x20populated.\n\x20This\x20i\ - s\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\x03O\x04$\x1a\xbb\x01\x20The\ - \x20data\x20is\x20encrypted\x20at\x20rest\x20with\x20a\x20key\x20that\ - \x20is\n\x20managed\x20by\x20the\x20customer.\x20The\x20active\x20versio\ - n\x20of\x20the\x20key.\x20`kms_key_version`\n\x20will\x20be\x20populated\ - ,\x20and\x20`encryption_status`\x20may\x20be\x20populated.\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&\x20Ou\ - tput\x20only.\x20The\x20type\x20of\x20encryption.\n\n\r\n\x05\x04\x02\ - \x02\0\x04\x12\x04S\x02P\x03\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\xbf\x01\n\x04\ - \x04\x02\x02\x01\x12\x04X\x02Y2\x1a\xb0\x01\x20Output\x20only.\x20If\x20\ - present,\x20the\x20status\x20of\x20a\x20recent\x20encrypt/decrypt\x20cal\ - l\x20on\n\x20underlying\x20data\x20for\x20this\x20database\x20or\x20back\ - up.\x20Regardless\x20of\x20status,\x20data\x20is\n\x20always\x20encrypte\ - d\x20at\x20rest.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04X\x02SG\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\x03Y\x061\n\x0f\n\x08\x04\x02\x02\x01\x08\ - \x9c\x08\0\x12\x03Y\x070\nk\n\x04\x04\x02\x02\x02\x12\x04]\x02b\x04\x1a]\ - \x20Output\x20only.\x20A\x20Cloud\x20KMS\x20key\x20version\x20that\x20is\ - \x20being\x20used\x20to\x20protect\x20the\n\x20database\x20or\x20backup.\ - \n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04]\x02Y2\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]\x1db\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_\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/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs index 0495890b4c..73b8fd5fc4 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,107 +21,73 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] -pub struct RestoreInfo { +pub struct Database { // message fields - pub source_type: RestoreSourceType, - // message oneof groups - pub source_info: ::std::option::Option, + pub name: ::std::string::String, + pub state: Database_State, // special fields pub unknown_fields: ::protobuf::UnknownFields, pub cached_size: ::protobuf::CachedSize, } -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; + // string name = 1; - pub fn get_source_type(&self) -> RestoreSourceType { - self.source_type + pub fn get_name(&self) -> &str { + &self.name } - pub fn clear_source_type(&mut self) { - self.source_type = RestoreSourceType::TYPE_UNSPECIFIED; + pub fn clear_name(&mut self) { + self.name.clear(); } // Param is passed by value, moved - pub fn set_source_type(&mut self, v: RestoreSourceType) { - self.source_type = v; + pub fn set_name(&mut self, v: ::std::string::String) { + self.name = 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; + // 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 has_backup_info(&self) -> bool { - match self.source_info { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(..)) => true, - _ => false, - } + // Take field + pub fn take_name(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.name, ::std::string::String::new()) } - // 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)) - } + // .google.spanner.admin.database.v1.Database.State state = 2; - // 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!(), - } + + pub fn get_state(&self) -> Database_State { + self.state + } + pub fn clear_state(&mut self) { + self.state = Database_State::STATE_UNSPECIFIED; } - // 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() - } + // Param is passed by value, moved + pub fn set_state(&mut self, v: Database_State) { + self.state = v; } } -impl ::protobuf::Message for RestoreInfo { +impl ::protobuf::Message for 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 } @@ -130,13 +96,10 @@ impl ::protobuf::Message for RestoreInfo { 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)? + ::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.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(is.read_message()?)); + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 2, &mut self.unknown_fields)? }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; @@ -150,16 +113,11 @@ impl ::protobuf::Message for RestoreInfo { #[allow(unused_variables)] fn compute_size(&self) -> u32 { 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 != Database_State::STATE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(2, self.state); } my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); self.cached_size.set(my_size); @@ -167,17 +125,11 @@ impl ::protobuf::Message for RestoreInfo { } 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))?; + 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 != Database_State::STATE_UNSPECIFIED { + os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.state))?; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -209,338 +161,204 @@ impl ::protobuf::Message for RestoreInfo { Self::descriptor_static() } - fn new() -> RestoreInfo { - RestoreInfo::new() + 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::ProtobufTypeEnum>( - "source_type", - |m: &RestoreInfo| { &m.source_type }, - |m: &mut RestoreInfo| { &mut m.source_type }, + 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_singular_message_accessor::<_, super::backup::BackupInfo>( - "backup_info", - RestoreInfo::has_backup_info, - RestoreInfo::get_backup_info, + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "state", + |m: &Database| { &m.state }, + |m: &mut Database| { &mut m.state }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreInfo", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Database", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static RestoreInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreInfo::new) + fn default_instance() -> &'static Database { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Database::new) } } -impl ::protobuf::Clear for RestoreInfo { +impl ::protobuf::Clear for Database { fn clear(&mut self) { - self.source_type = RestoreSourceType::TYPE_UNSPECIFIED; - self.source_info = ::std::option::Option::None; + self.name.clear(); + self.state = Database_State::STATE_UNSPECIFIED; self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for RestoreInfo { +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 RestoreInfo { +impl ::protobuf::reflect::ProtobufValue for Database { 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>, - // 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() - } +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum Database_State { + STATE_UNSPECIFIED = 0, + CREATING = 1, + READY = 2, } -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(); - } - - // 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 +impl ::protobuf::ProtobufEnum for Database_State { + fn value(&self) -> i32 { + *self as i32 } - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + 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), + _ => ::std::option::Option::None + } } - // .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; + fn values() -> &'static [Self] { + static values: &'static [Database_State] = &[ + Database_State::STATE_UNSPECIFIED, + Database_State::CREATING, + Database_State::READY, + ]; + values } - // Param is passed by value, moved - pub fn set_state(&mut self, v: Database_State) { - self.state = v; + 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()) + }) } +} - // .google.protobuf.Timestamp create_time = 3; - +impl ::std::marker::Copy for Database_State { +} - 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(); +impl ::std::default::Default for Database_State { + fn default() -> Self { + Database_State::STATE_UNSPECIFIED } +} - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() +impl ::protobuf::reflect::ProtobufValue for Database_State { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) } +} - // 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); - } +#[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, +} - // 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() +impl<'a> ::std::default::Default for &'a ListDatabasesRequest { + fn default() -> &'a ListDatabasesRequest { + ::default_instance() } +} - // 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()) +impl ListDatabasesRequest { + pub fn new() -> ListDatabasesRequest { + ::std::default::Default::default() } - // .google.spanner.admin.database.v1.RestoreInfo restore_info = 4; + // string parent = 1; - 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 get_parent(&self) -> &str { + &self.parent } - - pub fn has_restore_info(&self) -> bool { - self.restore_info.is_some() + pub fn clear_parent(&mut self) { + self.parent.clear(); } // Param is passed by value, moved - pub fn set_restore_info(&mut self, v: RestoreInfo) { - self.restore_info = ::protobuf::SingularPtrField::some(v); + 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_restore_info(&mut self) -> &mut RestoreInfo { - if self.restore_info.is_none() { - self.restore_info.set_default(); - } - self.restore_info.as_mut().unwrap() + pub fn mut_parent(&mut self) -> &mut ::std::string::String { + &mut self.parent } // Take field - pub fn take_restore_info(&mut self) -> RestoreInfo { - self.restore_info.take().unwrap_or_else(|| RestoreInfo::new()) + pub fn take_parent(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.parent, ::std::string::String::new()) } - // .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5; + // int32 page_size = 3; - 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 get_page_size(&self) -> i32 { + self.page_size } - - pub fn has_encryption_config(&self) -> bool { - self.encryption_config.is_some() + pub fn clear_page_size(&mut self) { + self.page_size = 0; } // 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()) + pub fn set_page_size(&mut self, v: i32) { + self.page_size = v; } - // repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8; + // string page_token = 4; - pub fn get_encryption_info(&self) -> &[super::common::EncryptionInfo] { - &self.encryption_info + pub fn get_page_token(&self) -> &str { + &self.page_token } - pub fn clear_encryption_info(&mut self) { - self.encryption_info.clear(); + pub fn clear_page_token(&mut self) { + self.page_token.clear(); } // Param is passed by value, moved - pub fn set_encryption_info(&mut self, v: ::protobuf::RepeatedField) { - self.encryption_info = v; + pub fn set_page_token(&mut self, v: ::std::string::String) { + self.page_token = v; } // Mutable pointer to the field. - pub fn mut_encryption_info(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.encryption_info + // 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_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(); + pub fn take_page_token(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) } +} - // 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()) - } -} - -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; - } - }; - true +impl ::protobuf::Message for ListDatabasesRequest { + fn is_initialized(&self) -> bool { + true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { @@ -548,28 +366,17 @@ impl ::protobuf::Message for Database { let (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)? + ::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.create_time)?; + 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_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)?; + ::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())?; @@ -583,34 +390,14 @@ impl ::protobuf::Message for Database { #[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; + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); } - 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 self.page_size != 0 { + my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); } - 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.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); @@ -618,39 +405,14 @@ impl ::protobuf::Message for Database { } 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)?; + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; } - 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 self.page_size != 0 { + os.write_int32(3, self.page_size)?; } - 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.page_token.is_empty() { + os.write_string(4, &self.page_token)?; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -682,8 +444,8 @@ impl ::protobuf::Message for Database { Self::descriptor_static() } - fn new() -> Database { - Database::new() + fn new() -> ListDatabasesRequest { + ListDatabasesRequest::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -691,1777 +453,135 @@ impl ::protobuf::Message for Database { 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 }, - )); - ::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.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 }, + "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, - // 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()) - } -} - -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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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 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 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, - // 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; - } -} - -impl ::protobuf::Message for UpdateDatabaseDdlMetadata { - fn is_initialized(&self) -> bool { - for v in &self.commit_timestamps { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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_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::( - "UpdateDatabaseDdlMetadata", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListDatabasesRequest", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static UpdateDatabaseDdlMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateDatabaseDdlMetadata::new) + fn default_instance() -> &'static ListDatabasesRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListDatabasesRequest::new) } } -impl ::protobuf::Clear for UpdateDatabaseDdlMetadata { +impl ::protobuf::Clear for ListDatabasesRequest { fn clear(&mut self) { - self.database.clear(); - self.statements.clear(); - self.commit_timestamps.clear(); - self.throttled = false; + self.parent.clear(); + self.page_size = 0; + self.page_token.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for UpdateDatabaseDdlMetadata { +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 UpdateDatabaseDdlMetadata { +impl ::protobuf::reflect::ProtobufValue for ListDatabasesRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct DropDatabaseRequest { +pub struct ListDatabasesResponse { // message fields - pub database: ::std::string::String, + 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 DropDatabaseRequest { - fn default() -> &'a DropDatabaseRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListDatabasesResponse { + fn default() -> &'a ListDatabasesResponse { + ::default_instance() } } -impl DropDatabaseRequest { - pub fn new() -> DropDatabaseRequest { +impl ListDatabasesResponse { + pub fn new() -> ListDatabasesResponse { ::std::default::Default::default() } - // string database = 1; + // repeated .google.spanner.admin.database.v1.Database databases = 1; - pub fn get_database(&self) -> &str { - &self.database + pub fn get_databases(&self) -> &[Database] { + &self.databases } - pub fn clear_database(&mut self) { - self.database.clear(); + pub fn clear_databases(&mut self) { + self.databases.clear(); } // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; + 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_database(&mut self) -> &mut ::std::string::String { - &mut self.database + pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { + &mut self.next_page_token } // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) + 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 DropDatabaseRequest { +impl ::protobuf::Message for ListDatabasesResponse { fn is_initialized(&self) -> bool { + for v in &self.databases { + if !v.is_initialized() { + return false; + } + }; true } @@ -2470,7 +590,10 @@ impl ::protobuf::Message for DropDatabaseRequest { let (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_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())?; @@ -2484,8 +607,12 @@ impl ::protobuf::Message for DropDatabaseRequest { #[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.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); @@ -2493,8 +620,13 @@ impl ::protobuf::Message for DropDatabaseRequest { } 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.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(()) @@ -2526,100 +658,159 @@ impl ::protobuf::Message for DropDatabaseRequest { Self::descriptor_static() } - fn new() -> DropDatabaseRequest { - DropDatabaseRequest::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>( + "databases", + |m: &ListDatabasesResponse| { &m.databases }, + |m: &mut ListDatabasesResponse| { &mut m.databases }, + )); fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &DropDatabaseRequest| { &m.database }, - |m: &mut DropDatabaseRequest| { &mut m.database }, + "next_page_token", + |m: &ListDatabasesResponse| { &m.next_page_token }, + |m: &mut ListDatabasesResponse| { &mut m.next_page_token }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DropDatabaseRequest", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListDatabasesResponse", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static DropDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DropDatabaseRequest::new) + fn default_instance() -> &'static ListDatabasesResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListDatabasesResponse::new) } } -impl ::protobuf::Clear for DropDatabaseRequest { +impl ::protobuf::Clear for ListDatabasesResponse { fn clear(&mut self) { - self.database.clear(); + self.databases.clear(); + self.next_page_token.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for DropDatabaseRequest { +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 DropDatabaseRequest { +impl ::protobuf::reflect::ProtobufValue for ListDatabasesResponse { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct GetDatabaseDdlRequest { +pub struct CreateDatabaseRequest { // message fields - pub database: ::std::string::String, + pub parent: ::std::string::String, + pub create_statement: ::std::string::String, + pub extra_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 GetDatabaseDdlRequest { - fn default() -> &'a GetDatabaseDdlRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a CreateDatabaseRequest { + fn default() -> &'a CreateDatabaseRequest { + ::default_instance() } } -impl GetDatabaseDdlRequest { - pub fn new() -> GetDatabaseDdlRequest { +impl CreateDatabaseRequest { + pub fn new() -> CreateDatabaseRequest { ::std::default::Default::default() } - // string database = 1; + // string parent = 1; - pub fn get_database(&self) -> &str { - &self.database + pub fn get_parent(&self) -> &str { + &self.parent } - pub fn clear_database(&mut self) { - self.database.clear(); + pub fn clear_parent(&mut self) { + self.parent.clear(); } // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; + 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_database(&mut self) -> &mut ::std::string::String { - &mut self.database + pub fn mut_parent(&mut self) -> &mut ::std::string::String { + &mut self.parent } // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) + 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()) } } -impl ::protobuf::Message for GetDatabaseDdlRequest { +impl ::protobuf::Message for CreateDatabaseRequest { fn is_initialized(&self) -> bool { true } @@ -2629,7 +820,13 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { let (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_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)?; }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; @@ -2643,18 +840,30 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { #[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); + 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); + }; my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + 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)?; + }; os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -2685,8 +894,8 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { Self::descriptor_static() } - fn new() -> GetDatabaseDdlRequest { - GetDatabaseDdlRequest::new() + fn new() -> CreateDatabaseRequest { + CreateDatabaseRequest::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -2694,90 +903,103 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { 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 }, + "parent", + |m: &CreateDatabaseRequest| { &m.parent }, + |m: &mut CreateDatabaseRequest| { &mut m.parent }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetDatabaseDdlRequest", + 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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CreateDatabaseRequest", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static GetDatabaseDdlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDatabaseDdlRequest::new) + fn default_instance() -> &'static CreateDatabaseRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateDatabaseRequest::new) } } -impl ::protobuf::Clear for GetDatabaseDdlRequest { +impl ::protobuf::Clear for CreateDatabaseRequest { fn clear(&mut self) { - self.database.clear(); + self.parent.clear(); + self.create_statement.clear(); + self.extra_statements.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for GetDatabaseDdlRequest { +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 GetDatabaseDdlRequest { +impl ::protobuf::reflect::ProtobufValue for CreateDatabaseRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct GetDatabaseDdlResponse { +pub struct CreateDatabaseMetadata { // message fields - pub statements: ::protobuf::RepeatedField<::std::string::String>, + pub database: ::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<'a> ::std::default::Default for &'a CreateDatabaseMetadata { + fn default() -> &'a CreateDatabaseMetadata { + ::default_instance() } } -impl GetDatabaseDdlResponse { - pub fn new() -> GetDatabaseDdlResponse { +impl CreateDatabaseMetadata { + pub fn new() -> CreateDatabaseMetadata { ::std::default::Default::default() } - // repeated string statements = 1; + // string database = 1; - pub fn get_statements(&self) -> &[::std::string::String] { - &self.statements + pub fn get_database(&self) -> &str { + &self.database } - pub fn clear_statements(&mut self) { - self.statements.clear(); + pub fn clear_database(&mut self) { + self.database.clear(); } // Param is passed by value, moved - pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.statements = v; + pub fn set_database(&mut self, v: ::std::string::String) { + self.database = v; } // Mutable pointer to the field. - pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.statements + // 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_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) + pub fn take_database(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.database, ::std::string::String::new()) } } -impl ::protobuf::Message for GetDatabaseDdlResponse { +impl ::protobuf::Message for CreateDatabaseMetadata { fn is_initialized(&self) -> bool { true } @@ -2787,7 +1009,7 @@ impl ::protobuf::Message for GetDatabaseDdlResponse { 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_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())?; @@ -2801,18 +1023,18 @@ impl ::protobuf::Message for GetDatabaseDdlResponse { #[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); - }; + 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<()> { - for v in &self.statements { - os.write_string(1, &v)?; - }; + if !self.database.is_empty() { + os.write_string(1, &self.database)?; + } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -2843,170 +1065,100 @@ impl ::protobuf::Message for GetDatabaseDdlResponse { Self::descriptor_static() } - fn new() -> GetDatabaseDdlResponse { - GetDatabaseDdlResponse::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_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "statements", - |m: &GetDatabaseDdlResponse| { &m.statements }, - |m: &mut GetDatabaseDdlResponse| { &mut m.statements }, + 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::( - "GetDatabaseDdlResponse", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CreateDatabaseMetadata", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static GetDatabaseDdlResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDatabaseDdlResponse::new) + fn default_instance() -> &'static CreateDatabaseMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateDatabaseMetadata::new) } } -impl ::protobuf::Clear for GetDatabaseDdlResponse { +impl ::protobuf::Clear for CreateDatabaseMetadata { fn clear(&mut self) { - self.statements.clear(); + self.database.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for GetDatabaseDdlResponse { +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 GetDatabaseDdlResponse { +impl ::protobuf::reflect::ProtobufValue for CreateDatabaseMetadata { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct ListDatabaseOperationsRequest { +pub struct GetDatabaseRequest { // message fields - pub parent: ::std::string::String, - pub filter: ::std::string::String, - pub page_size: i32, - pub page_token: ::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 ListDatabaseOperationsRequest { - fn default() -> &'a ListDatabaseOperationsRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetDatabaseRequest { + fn default() -> &'a GetDatabaseRequest { + ::default_instance() } } -impl ListDatabaseOperationsRequest { - pub fn new() -> ListDatabaseOperationsRequest { +impl GetDatabaseRequest { + pub fn new() -> GetDatabaseRequest { ::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; + // string name = 1; - pub fn get_page_token(&self) -> &str { - &self.page_token + pub fn get_name(&self) -> &str { + &self.name } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); + pub fn clear_name(&mut self) { + self.name.clear(); } // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; + 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_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token + pub fn mut_name(&mut self) -> &mut ::std::string::String { + &mut self.name } // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + pub fn take_name(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.name, ::std::string::String::new()) } } -impl ::protobuf::Message for ListDatabaseOperationsRequest { +impl ::protobuf::Message for GetDatabaseRequest { fn is_initialized(&self) -> bool { true } @@ -3016,44 +1168,22 @@ impl ::protobuf::Message for ListDatabaseOperationsRequest { let (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_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.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); + ::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); @@ -3061,17 +1191,8 @@ impl ::protobuf::Message for ListDatabaseOperationsRequest { } 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)?; + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -3103,8 +1224,8 @@ impl ::protobuf::Message for ListDatabaseOperationsRequest { Self::descriptor_static() } - fn new() -> ListDatabaseOperationsRequest { - ListDatabaseOperationsRequest::new() + fn new() -> GetDatabaseRequest { + GetDatabaseRequest::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -3112,141 +1233,145 @@ impl ::protobuf::Message for ListDatabaseOperationsRequest { 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 }, + "name", + |m: &GetDatabaseRequest| { &m.name }, + |m: &mut GetDatabaseRequest| { &mut m.name }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabaseOperationsRequest", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetDatabaseRequest", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static ListDatabaseOperationsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabaseOperationsRequest::new) + fn default_instance() -> &'static GetDatabaseRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetDatabaseRequest::new) } } -impl ::protobuf::Clear for ListDatabaseOperationsRequest { +impl ::protobuf::Clear for GetDatabaseRequest { fn clear(&mut self) { - self.parent.clear(); - self.filter.clear(); - self.page_size = 0; - self.page_token.clear(); + self.name.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for ListDatabaseOperationsRequest { +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 ListDatabaseOperationsRequest { +impl ::protobuf::reflect::ProtobufValue for GetDatabaseRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct ListDatabaseOperationsResponse { +pub struct UpdateDatabaseDdlRequest { // message fields - pub operations: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, + 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 ListDatabaseOperationsResponse { - fn default() -> &'a ListDatabaseOperationsResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a UpdateDatabaseDdlRequest { + fn default() -> &'a UpdateDatabaseDdlRequest { + ::default_instance() } } -impl ListDatabaseOperationsResponse { - pub fn new() -> ListDatabaseOperationsResponse { +impl UpdateDatabaseDdlRequest { + pub fn new() -> UpdateDatabaseDdlRequest { ::std::default::Default::default() } - // repeated .google.longrunning.Operation operations = 1; + // 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_operations(&self) -> &[super::operations::Operation] { - &self.operations + pub fn get_statements(&self) -> &[::std::string::String] { + &self.statements } - pub fn clear_operations(&mut self) { - self.operations.clear(); + pub fn clear_statements(&mut self) { + self.statements.clear(); } // Param is passed by value, moved - pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { - self.operations = v; + pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.statements = v; } // Mutable pointer to the field. - pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.operations + pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.statements } // Take field - pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) + pub fn take_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) } - // string next_page_token = 2; + // string operation_id = 3; - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token + pub fn get_operation_id(&self) -> &str { + &self.operation_id } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); + pub fn clear_operation_id(&mut self) { + self.operation_id.clear(); } // 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_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_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token + pub fn mut_operation_id(&mut self) -> &mut ::std::string::String { + &mut self.operation_id } // 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_operation_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.operation_id, ::std::string::String::new()) } } -impl ::protobuf::Message for ListDatabaseOperationsResponse { +impl ::protobuf::Message for UpdateDatabaseDdlRequest { fn is_initialized(&self) -> bool { - for v in &self.operations { - if !v.is_initialized() { - return false; - } - }; true } @@ -3255,10 +1380,13 @@ impl ::protobuf::Message for ListDatabaseOperationsResponse { 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)?; + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; }, 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + ::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())?; @@ -3272,12 +1400,14 @@ impl ::protobuf::Message for ListDatabaseOperationsResponse { #[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.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.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + 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); @@ -3285,13 +1415,14 @@ impl ::protobuf::Message for ListDatabaseOperationsResponse { } 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.database.is_empty() { + os.write_string(1, &self.database)?; + } + for v in &self.statements { + os.write_string(2, &v)?; }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; + 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(()) @@ -3323,225 +1454,166 @@ impl ::protobuf::Message for ListDatabaseOperationsResponse { Self::descriptor_static() } - fn new() -> ListDatabaseOperationsResponse { - ListDatabaseOperationsResponse::new() + 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_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>( + "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>( - "next_page_token", - |m: &ListDatabaseOperationsResponse| { &m.next_page_token }, - |m: &mut ListDatabaseOperationsResponse| { &mut m.next_page_token }, + "operation_id", + |m: &UpdateDatabaseDdlRequest| { &m.operation_id }, + |m: &mut UpdateDatabaseDdlRequest| { &mut m.operation_id }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabaseOperationsResponse", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateDatabaseDdlRequest", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static ListDatabaseOperationsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabaseOperationsResponse::new) + fn default_instance() -> &'static UpdateDatabaseDdlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateDatabaseDdlRequest::new) } } -impl ::protobuf::Clear for ListDatabaseOperationsResponse { +impl ::protobuf::Clear for UpdateDatabaseDdlRequest { fn clear(&mut self) { - self.operations.clear(); - self.next_page_token.clear(); + self.database.clear(); + self.statements.clear(); + self.operation_id.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for ListDatabaseOperationsResponse { +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 ListDatabaseOperationsResponse { +impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct RestoreDatabaseRequest { +pub struct UpdateDatabaseDdlMetadata { // message fields - pub parent: ::std::string::String, - pub database_id: ::std::string::String, - pub encryption_config: ::protobuf::SingularPtrField, - // message oneof groups - pub source: ::std::option::Option, + pub database: ::std::string::String, + pub statements: ::protobuf::RepeatedField<::std::string::String>, + pub commit_timestamps: ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp>, // special fields pub unknown_fields: ::protobuf::UnknownFields, pub cached_size: ::protobuf::CachedSize, } -impl<'a> ::std::default::Default for &'a RestoreDatabaseRequest { - fn default() -> &'a RestoreDatabaseRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a UpdateDatabaseDdlMetadata { + fn default() -> &'a UpdateDatabaseDdlMetadata { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreDatabaseRequest_oneof_source { - backup(::std::string::String), -} - -impl RestoreDatabaseRequest { - pub fn new() -> RestoreDatabaseRequest { +impl UpdateDatabaseDdlMetadata { + pub fn new() -> UpdateDatabaseDdlMetadata { ::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; + // string database = 1; - pub fn get_database_id(&self) -> &str { - &self.database_id + pub fn get_database(&self) -> &str { + &self.database } - pub fn clear_database_id(&mut self) { - self.database_id.clear(); + pub fn clear_database(&mut self) { + self.database.clear(); } // Param is passed by value, moved - pub fn set_database_id(&mut self, v: ::std::string::String) { - self.database_id = v; + 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_id(&mut self) -> &mut ::std::string::String { - &mut self.database_id + pub fn mut_database(&mut self) -> &mut ::std::string::String { + &mut self.database } // Take field - pub fn take_database_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database_id, ::std::string::String::new()) + pub fn take_database(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.database, ::std::string::String::new()) } - // string backup = 3; + // repeated string statements = 2; - 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 get_statements(&self) -> &[::std::string::String] { + &self.statements } - - pub fn has_backup(&self) -> bool { - match self.source { - ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(..)) => true, - _ => false, - } + pub fn clear_statements(&mut self) { + self.statements.clear(); } // 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)) + pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.statements = 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!(), - } + pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.statements } // 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() - } + pub fn take_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) } - // .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4; + // repeated .google.protobuf.Timestamp commit_timestamps = 3; - 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 get_commit_timestamps(&self) -> &[::protobuf::well_known_types::Timestamp] { + &self.commit_timestamps } - - pub fn has_encryption_config(&self) -> bool { - self.encryption_config.is_some() + pub fn clear_commit_timestamps(&mut self) { + self.commit_timestamps.clear(); } // Param is passed by value, moved - pub fn set_encryption_config(&mut self, v: RestoreDatabaseEncryptionConfig) { - self.encryption_config = ::protobuf::SingularPtrField::some(v); + pub fn set_commit_timestamps(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp>) { + self.commit_timestamps = 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() + pub fn mut_commit_timestamps(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp> { + &mut self.commit_timestamps } // Take field - pub fn take_encryption_config(&mut self) -> RestoreDatabaseEncryptionConfig { - self.encryption_config.take().unwrap_or_else(|| RestoreDatabaseEncryptionConfig::new()) + pub fn take_commit_timestamps(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp> { + ::std::mem::replace(&mut self.commit_timestamps, ::protobuf::RepeatedField::new()) } } -impl ::protobuf::Message for RestoreDatabaseRequest { +impl ::protobuf::Message for UpdateDatabaseDdlMetadata { fn is_initialized(&self) -> bool { - for v in &self.encryption_config { + for v in &self.commit_timestamps { if !v.is_initialized() { return false; } @@ -3554,19 +1626,13 @@ impl ::protobuf::Message for RestoreDatabaseRequest { let (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_singular_proto3_string_into(wire_type, is, &mut self.database)?; }, 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database_id)?; + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.statements)?; }, 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()?)); - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_config)?; + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.commit_timestamps)?; }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; @@ -3580,47 +1646,33 @@ impl ::protobuf::Message for RestoreDatabaseRequest { #[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.database_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.database_id); + if !self.database.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.database); } - if let Some(ref v) = self.encryption_config.as_ref() { - let len = v.compute_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_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); - }, - }; - } + }; my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.database_id.is_empty() { - os.write_string(2, &self.database_id)?; + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } - if let Some(ref v) = self.encryption_config.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; + 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 let ::std::option::Option::Some(ref v) = self.source { - match v { - &RestoreDatabaseRequest_oneof_source::backup(ref v) => { - os.write_string(3, v)?; - }, - }; - } + }; os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -3651,8 +1703,8 @@ impl ::protobuf::Message for RestoreDatabaseRequest { Self::descriptor_static() } - fn new() -> RestoreDatabaseRequest { - RestoreDatabaseRequest::new() + fn new() -> UpdateDatabaseDdlMetadata { + UpdateDatabaseDdlMetadata::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -3660,125 +1712,103 @@ impl ::protobuf::Message for RestoreDatabaseRequest { 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 }, + "database", + |m: &UpdateDatabaseDdlMetadata| { &m.database }, + |m: &mut UpdateDatabaseDdlMetadata| { &mut m.database }, )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "backup", - RestoreDatabaseRequest::has_backup, - RestoreDatabaseRequest::get_backup, + 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_config", - |m: &RestoreDatabaseRequest| { &m.encryption_config }, - |m: &mut RestoreDatabaseRequest| { &mut m.encryption_config }, + 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 }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreDatabaseRequest", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateDatabaseDdlMetadata", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static RestoreDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreDatabaseRequest::new) + fn default_instance() -> &'static UpdateDatabaseDdlMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateDatabaseDdlMetadata::new) } } -impl ::protobuf::Clear for RestoreDatabaseRequest { +impl ::protobuf::Clear for UpdateDatabaseDdlMetadata { fn clear(&mut self) { - self.parent.clear(); - self.database_id.clear(); - self.source = ::std::option::Option::None; - self.encryption_config.clear(); + self.database.clear(); + self.statements.clear(); + self.commit_timestamps.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for RestoreDatabaseRequest { +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 RestoreDatabaseRequest { +impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlMetadata { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct RestoreDatabaseEncryptionConfig { +pub struct DropDatabaseRequest { // message fields - pub encryption_type: RestoreDatabaseEncryptionConfig_EncryptionType, - pub kms_key_name: ::std::string::String, + pub database: ::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<'a> ::std::default::Default for &'a DropDatabaseRequest { + fn default() -> &'a DropDatabaseRequest { + ::default_instance() } } -impl RestoreDatabaseEncryptionConfig { - pub fn new() -> RestoreDatabaseEncryptionConfig { +impl DropDatabaseRequest { + pub fn new() -> DropDatabaseRequest { ::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; + // string database = 1; - pub fn get_kms_key_name(&self) -> &str { - &self.kms_key_name + pub fn get_database(&self) -> &str { + &self.database } - pub fn clear_kms_key_name(&mut self) { - self.kms_key_name.clear(); + pub fn clear_database(&mut self) { + self.database.clear(); } // Param is passed by value, moved - pub fn set_kms_key_name(&mut self, v: ::std::string::String) { - self.kms_key_name = v; + 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_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_name + pub fn mut_database(&mut self) -> &mut ::std::string::String { + &mut self.database } // 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()) + pub fn take_database(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.database, ::std::string::String::new()) } } -impl ::protobuf::Message for RestoreDatabaseEncryptionConfig { +impl ::protobuf::Message for DropDatabaseRequest { fn is_initialized(&self) -> bool { true } @@ -3788,10 +1818,7 @@ impl ::protobuf::Message for RestoreDatabaseEncryptionConfig { 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_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())?; @@ -3805,11 +1832,8 @@ impl ::protobuf::Message for RestoreDatabaseEncryptionConfig { #[allow(unused_variables)] fn compute_size(&self) -> u32 { 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); @@ -3817,11 +1841,8 @@ impl ::protobuf::Message for RestoreDatabaseEncryptionConfig { } 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)?; + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -3853,345 +1874,101 @@ impl ::protobuf::Message for RestoreDatabaseEncryptionConfig { Self::descriptor_static() } - fn new() -> RestoreDatabaseEncryptionConfig { - RestoreDatabaseEncryptionConfig::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::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 }, + "database", + |m: &DropDatabaseRequest| { &m.database }, + |m: &mut DropDatabaseRequest| { &mut m.database }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreDatabaseEncryptionConfig", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DropDatabaseRequest", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static RestoreDatabaseEncryptionConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreDatabaseEncryptionConfig::new) - } -} - -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 ::std::fmt::Debug for RestoreDatabaseEncryptionConfig { - 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)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RestoreDatabaseMetadata { - // message fields - 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, -} - -impl<'a> ::std::default::Default for &'a RestoreDatabaseMetadata { - fn default() -> &'a RestoreDatabaseMetadata { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreDatabaseMetadata_oneof_source_info { - backup_info(super::backup::BackupInfo), -} - -impl RestoreDatabaseMetadata { - pub fn new() -> RestoreDatabaseMetadata { - ::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; - } - - // .google.spanner.admin.database.v1.BackupInfo backup_info = 3; - - - 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; - } - - pub fn has_backup_info(&self) -> bool { - match self.source_info { - ::std::option::Option::Some(RestoreDatabaseMetadata_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(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!(), - } - } - - // 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() - } - } - - // .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 default_instance() -> &'static DropDatabaseRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DropDatabaseRequest::new) } +} - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) +impl ::protobuf::Clear for DropDatabaseRequest { + fn clear(&mut self) { + self.database.clear(); + self.unknown_fields.clear(); } +} - // .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(); +impl ::std::fmt::Debug for DropDatabaseRequest { + 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 DropDatabaseRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } +} - // 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); - } +#[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, +} - // 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<'a> ::std::default::Default for &'a GetDatabaseDdlRequest { + fn default() -> &'a GetDatabaseDdlRequest { + ::default_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 GetDatabaseDdlRequest { + pub fn new() -> GetDatabaseDdlRequest { + ::std::default::Default::default() } - // string optimize_database_operation_name = 6; + // string database = 1; - pub fn get_optimize_database_operation_name(&self) -> &str { - &self.optimize_database_operation_name + pub fn get_database(&self) -> &str { + &self.database } - pub fn clear_optimize_database_operation_name(&mut self) { - self.optimize_database_operation_name.clear(); + pub fn clear_database(&mut self) { + self.database.clear(); } // 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; + 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_optimize_database_operation_name(&mut self) -> &mut ::std::string::String { - &mut self.optimize_database_operation_name + pub fn mut_database(&mut self) -> &mut ::std::string::String { + &mut self.database } // 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()) + pub fn take_database(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.database, ::std::string::String::new()) } } -impl ::protobuf::Message for RestoreDatabaseMetadata { +impl ::protobuf::Message for GetDatabaseDdlRequest { 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 } @@ -4200,25 +1977,7 @@ impl ::protobuf::Message for RestoreDatabaseMetadata { let (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)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.optimize_database_operation_name)?; + ::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())?; @@ -4232,30 +1991,8 @@ impl ::protobuf::Message for RestoreDatabaseMetadata { #[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_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 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; - }, - }; + 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); @@ -4263,33 +2000,8 @@ impl ::protobuf::Message for RestoreDatabaseMetadata { } 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)?; - } - 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)?; - }, - }; + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -4321,8 +2033,8 @@ impl ::protobuf::Message for RestoreDatabaseMetadata { Self::descriptor_static() } - fn new() -> RestoreDatabaseMetadata { - RestoreDatabaseMetadata::new() + fn new() -> GetDatabaseDdlRequest { + GetDatabaseDdlRequest::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -4330,161 +2042,91 @@ impl ::protobuf::Message for RestoreDatabaseMetadata { 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 }, + "database", + |m: &GetDatabaseDdlRequest| { &m.database }, + |m: &mut GetDatabaseDdlRequest| { &mut m.database }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreDatabaseMetadata", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetDatabaseDdlRequest", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static RestoreDatabaseMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreDatabaseMetadata::new) + fn default_instance() -> &'static GetDatabaseDdlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetDatabaseDdlRequest::new) } } -impl ::protobuf::Clear for RestoreDatabaseMetadata { +impl ::protobuf::Clear for GetDatabaseDdlRequest { 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.database.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for RestoreDatabaseMetadata { +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 RestoreDatabaseMetadata { +impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct OptimizeRestoredDatabaseMetadata { +pub struct GetDatabaseDdlResponse { // message fields - pub name: ::std::string::String, - pub progress: ::protobuf::SingularPtrField, + 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 OptimizeRestoredDatabaseMetadata { - fn default() -> &'a OptimizeRestoredDatabaseMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetDatabaseDdlResponse { + fn default() -> &'a GetDatabaseDdlResponse { + ::default_instance() } } -impl OptimizeRestoredDatabaseMetadata { - pub fn new() -> OptimizeRestoredDatabaseMetadata { +impl GetDatabaseDdlResponse { + pub fn new() -> GetDatabaseDdlResponse { ::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; + // repeated string statements = 1; - 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 get_statements(&self) -> &[::std::string::String] { + &self.statements } - - pub fn has_progress(&self) -> bool { - self.progress.is_some() + pub fn clear_statements(&mut self) { + self.statements.clear(); } // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); + pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.statements = 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() + pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.statements } // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) + pub fn take_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) } } -impl ::protobuf::Message for OptimizeRestoredDatabaseMetadata { +impl ::protobuf::Message for GetDatabaseDdlResponse { fn is_initialized(&self) -> bool { - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; true } @@ -4493,10 +2135,7 @@ impl ::protobuf::Message for OptimizeRestoredDatabaseMetadata { let (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.progress)?; + ::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())?; @@ -4510,27 +2149,18 @@ impl ::protobuf::Message for OptimizeRestoredDatabaseMetadata { #[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.progress.as_ref() { - 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(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.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)?; - } + for v in &self.statements { + os.write_string(1, &v)?; + }; os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -4561,108 +2191,52 @@ impl ::protobuf::Message for OptimizeRestoredDatabaseMetadata { Self::descriptor_static() } - fn new() -> OptimizeRestoredDatabaseMetadata { - OptimizeRestoredDatabaseMetadata::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_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 }, + 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::( - "OptimizeRestoredDatabaseMetadata", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetDatabaseDdlResponse", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static OptimizeRestoredDatabaseMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OptimizeRestoredDatabaseMetadata::new) + fn default_instance() -> &'static GetDatabaseDdlResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetDatabaseDdlResponse::new) } } -impl ::protobuf::Clear for OptimizeRestoredDatabaseMetadata { +impl ::protobuf::Clear for GetDatabaseDdlResponse { fn clear(&mut self) { - self.name.clear(); - self.progress.clear(); + self.statements.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for OptimizeRestoredDatabaseMetadata { +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 OptimizeRestoredDatabaseMetadata { +impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlResponse { 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)) - } -} - static file_descriptor_proto_data: &'static [u8] = b"\ \n=google/spanner/admin/database/v1/spanner_database_admin.proto\x12\x20\ google.spanner.admin.database.v1\x1a\x1cgoogle/api/annotations.proto\x1a\ @@ -4670,1065 +2244,455 @@ 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\x1fgoogle/protobuf/timestamp.pro\ - to\x1a-google/spanner/admin/database/v1/backup.proto\x1a-google/spanner/\ - admin/database/v1/common.proto\"\xc3\x01\n\x0bRestoreInfo\x12T\n\x0bsour\ - ce_type\x18\x01\x20\x01(\x0e23.google.spanner.admin.database.v1.RestoreS\ - ourceTypeR\nsourceType\x12O\n\x0bbackup_info\x18\x02\x20\x01(\x0b2,.goog\ - le.spanner.admin.database.v1.BackupInfoH\0R\nbackupInfoB\r\n\x0bsource_i\ - nfo\"\x96\x06\n\x08Database\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nam\ - eB\x03\xe0A\x02\x12K\n\x05state\x18\x02\x20\x01(\x0e20.google.spanner.ad\ - min.database.v1.Database.StateR\x05stateB\x03\xe0A\x03\x12@\n\x0bcreate_\ - time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTimeB\ - \x03\xe0A\x03\x12U\n\x0crestore_info\x18\x04\x20\x01(\x0b2-.google.spann\ - er.admin.database.v1.RestoreInfoR\x0brestoreInfoB\x03\xe0A\x03\x12d\n\ - \x11encryption_config\x18\x05\x20\x01(\x0b22.google.spanner.admin.databa\ - se.v1.EncryptionConfigR\x10encryptionConfigB\x03\xe0A\x03\x12^\n\x0fencr\ - yption_info\x18\x08\x20\x03(\x0b20.google.spanner.admin.database.v1.Encr\ - yptionInfoR\x0eencryptionInfoB\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.Ti\ - mestampR\x13earliestVersionTimeB\x03\xe0A\x03\"M\n\x05State\x12\x15\n\ - \x11STATE_UNSPECIFIED\x10\0\x12\x0c\n\x08CREATING\x10\x01\x12\t\n\x05REA\ - DY\x10\x02\x12\x14\n\x10READY_OPTIMIZING\x10\x03:b\xeaA_\n\x1fspanner.go\ - ogleapis.com/Database\x12\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/instances/*}/databas\ - es\xdaA\x06parent\x12\xa4\x02\n\x0eCreateDatabase\x127.google.spanner.ad\ - min.database.v1.CreateDatabaseRequest\x1a\x1d.google.longrunning.Operati\ - on\"\xb9\x01\xcaAd\n)google.spanner.admin.database.v1.Database\x127googl\ - e.spanner.admin.database.v1.CreateDatabaseMetadata\xdaA\x17parent,create\ - _statement\x82\xd3\xe4\x93\x022\"-/v1/{parent=projects/*/instances/*}/da\ - tabases:\x01*\x12\xad\x01\n\x0bGetDatabase\x124.google.spanner.admin.dat\ - abase.v1.GetDatabaseRequest\x1a*.google.spanner.admin.database.v1.Databa\ - se\"<\xdaA\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/instanc\ - es/*/databases/*}\x12\x9d\x02\n\x11UpdateDatabaseDdl\x12:.google.spanner\ - .admin.database.v1.UpdateDatabaseDdlRequest\x1a\x1d.google.longrunning.O\ - peration\"\xac\x01\x82\xd3\xe4\x93\x02:25/v1/{database=projects/*/instan\ - ces/*/databases/*}/ddl:\x01*\xcaAS\n\x15google.protobuf.Empty\x12:google\ - .spanner.admin.database.v1.UpdateDatabaseDdlMetadata\xdaA\x13database,st\ - atements\x12\xa3\x01\n\x0cDropDatabase\x125.google.spanner.admin.databas\ - e.v1.DropDatabaseRequest\x1a\x16.google.protobuf.Empty\"D\xdaA\x08databa\ - se\x82\xd3\xe4\x93\x023*1/v1/{database=projects/*/instances/*/databases/\ - *}\x12\xcd\x01\n\x0eGetDatabaseDdl\x127.google.spanner.admin.database.v1\ - .GetDatabaseDdlRequest\x1a8.google.spanner.admin.database.v1.GetDatabase\ - DdlResponse\"H\x82\xd3\xe4\x93\x027\x125/v1/{database=projects/*/instanc\ - es/*/databases/*}/ddl\xdaA\x08database\x12\xeb\x01\n\x0cSetIamPolicy\x12\ - \".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x9f\ - \x01\x82\xd3\xe4\x93\x02\x86\x01\">/v1/{resource=projects/*/instances/*/\ - databases/*}:setIamPolicy:\x01*ZA\"/v1/{resource=projects\ - /*/instances/*/databases/*}:getIamPolicy:\x01*ZA\".google.spanner.admin.database.v1\ - .ListBackupOperationsResponse\"E\x82\xd3\xe4\x93\x026\x124/v1/{parent=pr\ - ojects/*/instances/*}/backupOperations\xdaA\x06parent\x1ax\xd2A\\https:/\ - /www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/\ - spanner.admin\xcaA\x16spanner.googleapis.comB\xda\x02\n$com.google.spann\ - er.admin.database.v1B\x19SpannerDatabaseAdminProtoP\x01ZHgoogle.golang.o\ - rg/genproto/googleapis/spanner/admin/database/v1;database\xaa\x02&Google\ - .Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\\ - Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1\xeaAJ\n\ - \x1fspanner.googleapis.com/Instance\x12'projects/{project}/instances/{in\ - stance}J\xc0\xff\x01\n\x07\x12\x05\x0e\0\xd4\x06\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\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\07\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\t\n\x01\x08\x12\x04%\0(\x02\n\x0c\n\x04\ - \x08\x9d\x08\0\x12\x04%\0(\x02\n\xb8\x02\n\x02\x06\0\x12\x050\0\xc1\x02\ - \x01\x1a\xaa\x02\x20Cloud\x20Spanner\x20Database\x20Admin\x20API\n\n\x20\ - The\x20Cloud\x20Spanner\x20Database\x20Admin\x20API\x20can\x20be\x20used\ - \x20to\x20create,\x20drop,\x20and\n\x20list\x20databases.\x20It\x20also\ - \x20enables\x20updating\x20the\x20schema\x20of\x20pre-existing\n\x20data\ - bases.\x20It\x20can\x20be\x20also\x20used\x20to\x20create,\x20delete\x20\ - and\x20list\x20backups\x20for\x20a\n\x20database\x20and\x20to\x20restore\ - \x20from\x20an\x20existing\x20backup.\n\n\n\n\x03\x06\0\x01\x12\x030\x08\ - \x15\n\n\n\x03\x06\0\x03\x12\x031\x02>\n\x0c\n\x05\x06\0\x03\x99\x08\x12\ - \x031\x02>\n\x0b\n\x03\x06\0\x03\x12\x042\x0246\n\r\n\x05\x06\0\x03\x9a\ - \x08\x12\x042\x0246\n.\n\x04\x06\0\x02\0\x12\x047\x02<\x03\x1a\x20\x20Li\ - sts\x20Cloud\x20Spanner\x20databases.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\ - \x037\x06\x13\n\x0c\n\x05\x06\0\x02\0\x02\x12\x037\x14(\n\x0c\n\x05\x06\ - \0\x02\0\x03\x12\x0373H\n\r\n\x05\x06\0\x02\0\x04\x12\x048\x04:\x06\n\ - \x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x048\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\x04F\x02Q\x03\x1a\xb9\x04\x20Cr\ - eates\x20a\x20new\x20Cloud\x20Spanner\x20database\x20and\x20starts\x20to\ - \x20prepare\x20it\x20for\x20serving.\n\x20The\x20returned\x20[long-runni\ - ng\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[metadata][google.longrunning.Operation\ - .metadata]\x20field\x20type\x20is\n\x20[CreateDatabaseMetadata][google.s\ - panner.admin.database.v1.CreateDatabaseMetadata].\n\x20The\x20[response]\ - [google.longrunning.Operation.response]\x20field\x20type\x20is\n\x20[Dat\ - abase][google.spanner.admin.database.v1.Database],\x20if\x20successful.\ - \n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03F\x06\x14\n\x0c\n\x05\x06\0\x02\ - \x01\x02\x12\x03F\x15*\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03G\x0f+\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\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03L\x04E\ - \n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03L\x04E\n\r\n\x05\x06\0\ - \x02\x01\x04\x12\x04M\x04P\x06\n\x0f\n\x07\x06\0\x02\x01\x04\x99\x08\x12\ - \x04M\x04P\x06\n;\n\x04\x06\0\x02\x02\x12\x04T\x02Y\x03\x1a-\x20Gets\x20\ - the\x20state\x20of\x20a\x20Cloud\x20Spanner\x20database.\n\n\x0c\n\x05\ - \x06\0\x02\x02\x01\x12\x03T\x06\x11\n\x0c\n\x05\x06\0\x02\x02\x02\x12\ - \x03T\x12$\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03T/7\n\r\n\x05\x06\0\x02\ - \x02\x04\x12\x04U\x04W\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\ - \x04U\x04W\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03X\x042\n\x0f\n\x08\ - \x06\0\x02\x02\x04\x9b\x08\0\x12\x03X\x042\n\x8a\x04\n\x04\x06\0\x02\x03\ - \x12\x04c\x02n\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[lon\ - g-running\x20operation][google.longrunning.Operation]\x20will\x20have\ - \x20a\x20name\x20of\n\x20the\x20format\x20`/operations/`\x20and\x20can\x20be\x20used\x20to\n\x20track\x20execution\ - \x20of\x20the\x20schema\x20change(s).\x20The\n\x20[metadata][google.long\ - running.Operation.metadata]\x20field\x20type\x20is\n\x20[UpdateDatabaseD\ - dlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata].\ - \n\x20The\x20operation\x20has\x20no\x20response.\n\n\x0c\n\x05\x06\0\x02\ - \x03\x01\x12\x03c\x06\x17\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03c\x180\n\ - \x0c\n\x05\x06\0\x02\x03\x03\x12\x03d\x0f+\n\r\n\x05\x06\0\x02\x03\x04\ - \x12\x04e\x04h\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04e\ - \x04h\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03i\x04A\n\x0f\n\x08\x06\0\ - \x02\x03\x04\x9b\x08\0\x12\x03i\x04A\n\r\n\x05\x06\0\x02\x03\x04\x12\x04\ - j\x04m\x06\n\x0f\n\x07\x06\0\x02\x03\x04\x99\x08\x12\x04j\x04m\x06\n\x96\ - \x01\n\x04\x06\0\x02\x04\x12\x04s\x02x\x03\x1a\x87\x01\x20Drops\x20(aka\ - \x20deletes)\x20a\x20Cloud\x20Spanner\x20database.\n\x20Completed\x20bac\ - kups\x20for\x20the\x20database\x20will\x20be\x20retained\x20according\ - \x20to\x20their\n\x20`expire_time`.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\ - \x03s\x06\x12\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03s\x13&\n\x0c\n\x05\ - \x06\0\x02\x04\x03\x12\x03s1F\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\x046\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\ - \x08\0\x12\x03w\x046\n\xeb\x01\n\x04\x06\0\x02\x05\x12\x05}\x02\x82\x01\ - \x03\x1a\xdb\x01\x20Returns\x20the\x20schema\x20of\x20a\x20Cloud\x20Span\ - ner\x20database\x20as\x20a\x20list\x20of\x20formatted\n\x20DDL\x20statem\ - ents.\x20This\x20method\x20does\x20not\x20show\x20pending\x20schema\x20u\ - pdates,\x20those\x20may\n\x20be\x20queried\x20using\x20the\x20[Operation\ - s][google.longrunning.Operations]\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}5K\n\x0e\n\x05\x06\0\x02\x05\x04\x12\ - \x05~\x04\x80\x01\x06\n\x12\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x05~\ - \x04\x80\x01\x06\n\r\n\x05\x06\0\x02\x05\x04\x12\x04\x81\x01\x046\n\x10\ - \n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x04\x81\x01\x046\n\xfe\x02\n\x04\ - \x06\0\x02\x06\x12\x06\x8b\x01\x02\x96\x01\x03\x1a\xed\x02\x20Sets\x20th\ - e\x20access\x20control\x20policy\x20on\x20a\x20database\x20or\x20backup\ - \x20resource.\n\x20Replaces\x20any\x20existing\x20policy.\n\n\x20Authori\ - zation\x20requires\x20`spanner.databases.setIamPolicy`\n\x20permission\ - \x20on\x20[resource][google.iam.v1.SetIamPolicyRequest.resource].\n\x20F\ - or\x20backups,\x20authorization\x20requires\x20`spanner.backups.setIamPo\ - licy`\n\x20permission\x20on\x20[resource][google.iam.v1.SetIamPolicyRequ\ - est.resource].\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\x8b\x01\x06\x12\n\r\ - \n\x05\x06\0\x02\x06\x02\x12\x04\x8b\x01\x134\n\r\n\x05\x06\0\x02\x06\ - \x03\x12\x04\x8c\x01\x0f#\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\x8d\x01\ - \x04\x94\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\x8d\ - \x01\x04\x94\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\x95\x01\x04=\n\ - \x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\x95\x01\x04=\n\xb9\x03\n\ - \x04\x06\0\x02\x07\x12\x06\xa0\x01\x02\xab\x01\x03\x1a\xa8\x03\x20Gets\ - \x20the\x20access\x20control\x20policy\x20for\x20a\x20database\x20or\x20\ - backup\x20resource.\n\x20Returns\x20an\x20empty\x20policy\x20if\x20a\x20\ - database\x20or\x20backup\x20exists\x20but\x20does\x20not\x20have\x20a\n\ - \x20policy\x20set.\n\n\x20Authorization\x20requires\x20`spanner.database\ - s.getIamPolicy`\x20permission\x20on\n\x20[resource][google.iam.v1.GetIam\ - PolicyRequest.resource].\n\x20For\x20backups,\x20authorization\x20requir\ - es\x20`spanner.backups.getIamPolicy`\n\x20permission\x20on\x20[resource]\ - [google.iam.v1.GetIamPolicyRequest.resource].\n\n\r\n\x05\x06\0\x02\x07\ - \x01\x12\x04\xa0\x01\x06\x12\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\xa0\x01\ - \x134\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\xa1\x01\x0f#\n\x0f\n\x05\x06\0\ - \x02\x07\x04\x12\x06\xa2\x01\x04\xa9\x01\x06\n\x13\n\t\x06\0\x02\x07\x04\ - \xb0\xca\xbc\"\x12\x06\xa2\x01\x04\xa9\x01\x06\n\r\n\x05\x06\0\x02\x07\ - \x04\x12\x04\xaa\x01\x046\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\0\x12\ - \x04\xaa\x01\x046\n\xff\x03\n\x04\x06\0\x02\x08\x12\x06\xb7\x01\x02\xc2\ - \x01\x03\x1a\xee\x03\x20Returns\x20permissions\x20that\x20the\x20caller\ - \x20has\x20on\x20the\x20specified\x20database\x20or\x20backup\n\x20resou\ - rce.\n\n\x20Attempting\x20this\x20RPC\x20on\x20a\x20non-existent\x20Clou\ - d\x20Spanner\x20database\x20will\n\x20result\x20in\x20a\x20NOT_FOUND\x20\ - error\x20if\x20the\x20user\x20has\n\x20`spanner.databases.list`\x20permi\ - ssion\x20on\x20the\x20containing\x20Cloud\n\x20Spanner\x20instance.\x20O\ - therwise\x20returns\x20an\x20empty\x20set\x20of\x20permissions.\n\x20Cal\ - ling\x20this\x20method\x20on\x20a\x20backup\x20that\x20does\x20not\x20ex\ - ist\x20will\n\x20result\x20in\x20a\x20NOT_FOUND\x20error\x20if\x20the\ - \x20user\x20has\n\x20`spanner.backups.list`\x20permission\x20on\x20the\ - \x20containing\x20instance.\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\xb7\ - \x01\x06\x18\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\xb7\x01\x19@\n\r\n\x05\ - \x06\0\x02\x08\x03\x12\x04\xb8\x01\x0f7\n\x0f\n\x05\x06\0\x02\x08\x04\ - \x12\x06\xb9\x01\x04\xc0\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\ - \"\x12\x06\xb9\x01\x04\xc0\x01\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\ - \xc1\x01\x04B\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\xc1\x01\ - \x04B\n\x9b\x06\n\x04\x06\0\x02\t\x12\x06\xd0\x01\x02\xda\x01\x03\x1a\ - \x8a\x06\x20Starts\x20creating\x20a\x20new\x20Cloud\x20Spanner\x20Backup\ - .\n\x20The\x20returned\x20backup\x20[long-running\x20operation][google.l\ - ongrunning.Operation]\n\x20will\x20have\x20a\x20name\x20of\x20the\x20for\ - mat\n\x20`projects//instances//backups//opera\ - tions/`\n\x20and\x20can\x20be\x20used\x20to\x20track\x20cr\ - eation\x20of\x20the\x20backup.\x20The\n\x20[metadata][google.longrunning\ - .Operation.metadata]\x20field\x20type\x20is\n\x20[CreateBackupMetadata][\ - google.spanner.admin.database.v1.CreateBackupMetadata].\n\x20The\x20[res\ - ponse][google.longrunning.Operation.response]\x20field\x20type\x20is\n\ - \x20[Backup][google.spanner.admin.database.v1.Backup],\x20if\x20successf\ - ul.\n\x20Cancelling\x20the\x20returned\x20operation\x20will\x20stop\x20t\ - he\x20creation\x20and\x20delete\x20the\n\x20backup.\x20There\x20can\x20b\ - e\x20only\x20one\x20pending\x20backup\x20creation\x20per\x20database.\ - \x20Backup\n\x20creation\x20of\x20different\x20databases\x20can\x20run\ - \x20concurrently.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xd0\x01\x06\x12\n\ - \r\n\x05\x06\0\x02\t\x02\x12\x04\xd0\x01\x13&\n\r\n\x05\x06\0\x02\t\x03\ - \x12\x04\xd0\x011M\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xd1\x01\x04\xd4\ - \x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xd1\x01\x04\xd4\ - \x01\x06\n\r\n\x05\x06\0\x02\t\x04\x12\x04\xd5\x01\x04E\n\x10\n\x08\x06\ - \0\x02\t\x04\x9b\x08\0\x12\x04\xd5\x01\x04E\n\x0f\n\x05\x06\0\x02\t\x04\ - \x12\x06\xd6\x01\x04\xd9\x01\x06\n\x11\n\x07\x06\0\x02\t\x04\x99\x08\x12\ - \x06\xd6\x01\x04\xd9\x01\x06\nm\n\x04\x06\0\x02\n\x12\x06\xde\x01\x02\ - \xe3\x01\x03\x1a]\x20Gets\x20metadata\x20on\x20a\x20pending\x20or\x20com\ - pleted\n\x20[Backup][google.spanner.admin.database.v1.Backup].\n\n\r\n\ - \x05\x06\0\x02\n\x01\x12\x04\xde\x01\x06\x0f\n\r\n\x05\x06\0\x02\n\x02\ - \x12\x04\xde\x01\x10\x20\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xde\x01+1\n\ - \x0f\n\x05\x06\0\x02\n\x04\x12\x06\xdf\x01\x04\xe1\x01\x06\n\x13\n\t\x06\ - \0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xdf\x01\x04\xe1\x01\x06\n\r\n\x05\x06\ - \0\x02\n\x04\x12\x04\xe2\x01\x042\n\x10\n\x08\x06\0\x02\n\x04\x9b\x08\0\ - \x12\x04\xe2\x01\x042\nd\n\x04\x06\0\x02\x0b\x12\x06\xe7\x01\x02\xed\x01\ - \x03\x1aT\x20Updates\x20a\x20pending\x20or\x20completed\n\x20[Backup][go\ - ogle.spanner.admin.database.v1.Backup].\n\n\r\n\x05\x06\0\x02\x0b\x01\ - \x12\x04\xe7\x01\x06\x12\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xe7\x01\x13\ - &\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\xe7\x0117\n\x0f\n\x05\x06\0\x02\ - \x0b\x04\x12\x06\xe8\x01\x04\xeb\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\ - \xca\xbc\"\x12\x06\xe8\x01\x04\xeb\x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\ - \x12\x04\xec\x01\x04@\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\ - \xec\x01\x04@\nd\n\x04\x06\0\x02\x0c\x12\x06\xf1\x01\x02\xf6\x01\x03\x1a\ - T\x20Deletes\x20a\x20pending\x20or\x20completed\n\x20[Backup][google.spa\ - nner.admin.database.v1.Backup].\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\x04\ - \xf1\x01\x06\x12\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xf1\x01\x13&\n\r\n\ - \x05\x06\0\x02\x0c\x03\x12\x04\xf1\x011F\n\x0f\n\x05\x06\0\x02\x0c\x04\ - \x12\x06\xf2\x01\x04\xf4\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\xbc\ - \"\x12\x06\xf2\x01\x04\xf4\x01\x06\n\r\n\x05\x06\0\x02\x0c\x04\x12\x04\ - \xf5\x01\x042\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\x12\x04\xf5\x01\ - \x042\n\xa9\x01\n\x04\x06\0\x02\r\x12\x06\xfb\x01\x02\x80\x02\x03\x1a\ - \x98\x01\x20Lists\x20completed\x20and\x20pending\x20backups.\n\x20Backup\ - s\x20returned\x20are\x20ordered\x20by\x20`create_time`\x20in\x20descendi\ - ng\x20order,\n\x20starting\x20from\x20the\x20most\x20recent\x20`create_t\ - ime`.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\xfb\x01\x06\x11\n\r\n\x05\x06\ - \0\x02\r\x02\x12\x04\xfb\x01\x12$\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xfb\ - \x01/B\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xfc\x01\x04\xfe\x01\x06\n\x13\ - \n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\xfc\x01\x04\xfe\x01\x06\n\r\n\ - \x05\x06\0\x02\r\x04\x12\x04\xff\x01\x044\n\x10\n\x08\x06\0\x02\r\x04\ - \x9b\x08\0\x12\x04\xff\x01\x044\n\xd6\x08\n\x04\x06\0\x02\x0e\x12\x06\ - \x93\x02\x02\x9e\x02\x03\x1a\xc5\x08\x20Create\x20a\x20new\x20database\ - \x20by\x20restoring\x20from\x20a\x20completed\x20backup.\x20The\x20new\n\ - \x20database\x20must\x20be\x20in\x20the\x20same\x20project\x20and\x20in\ - \x20an\x20instance\x20with\x20the\x20same\n\x20instance\x20configuration\ - \x20as\x20the\x20instance\x20containing\n\x20the\x20backup.\x20The\x20re\ - turned\x20database\x20[long-running\n\x20operation][google.longrunning.O\ - peration]\x20has\x20a\x20name\x20of\x20the\x20format\n\x20`projects//instances//databases//operations/`,\n\x20and\x20can\x20be\x20used\x20to\x20track\x20the\x20progress\x20o\ - f\x20the\x20operation,\x20and\x20to\x20cancel\x20it.\n\x20The\x20[metada\ - ta][google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[\ - RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabas\ - eMetadata].\n\x20The\x20[response][google.longrunning.Operation.response\ - ]\x20type\n\x20is\x20[Database][google.spanner.admin.database.v1.Databas\ - e],\x20if\n\x20successful.\x20Cancelling\x20the\x20returned\x20operation\ - \x20will\x20stop\x20the\x20restore\x20and\n\x20delete\x20the\x20database\ - .\n\x20There\x20can\x20be\x20only\x20one\x20database\x20being\x20restore\ - d\x20into\x20an\x20instance\x20at\x20a\x20time.\n\x20Once\x20the\x20rest\ - ore\x20operation\x20completes,\x20a\x20new\x20restore\x20operation\x20ca\ - n\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\x0e\x01\x12\x04\x93\x02\x06\x15\n\r\ - \n\x05\x06\0\x02\x0e\x02\x12\x04\x93\x02\x16,\n\r\n\x05\x06\0\x02\x0e\ - \x03\x12\x04\x94\x02\x0f+\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\x95\x02\ - \x04\x98\x02\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\x95\ - \x02\x04\x98\x02\x06\n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\x99\x02\x04G\n\ - \x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\x99\x02\x04G\n\x0f\n\x05\ - \x06\0\x02\x0e\x04\x12\x06\x9a\x02\x04\x9d\x02\x06\n\x11\n\x07\x06\0\x02\ - \x0e\x04\x99\x08\x12\x06\x9a\x02\x04\x9d\x02\x06\n\xe9\x03\n\x04\x06\0\ - \x02\x0f\x12\x06\xa8\x02\x02\xae\x02\x03\x1a\xd8\x03\x20Lists\x20databas\ - e\x20[longrunning-operations][google.longrunning.Operation].\n\x20A\x20d\ - atabase\x20operation\x20has\x20a\x20name\x20of\x20the\x20form\n\x20`proj\ - ects//instances//databases//operations/`.\n\x20The\x20long-running\x20operation\n\x20[metadata][google.l\ - ongrunning.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\x0f\x01\x12\x04\xa8\x02\x06\x1c\n\r\n\x05\ - \x06\0\x02\x0f\x02\x12\x04\xa8\x02\x1d:\n\r\n\x05\x06\0\x02\x0f\x03\x12\ - \x04\xa9\x02\x0f-\n\x0f\n\x05\x06\0\x02\x0f\x04\x12\x06\xaa\x02\x04\xac\ - \x02\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\xca\xbc\"\x12\x06\xaa\x02\x04\ - \xac\x02\x06\n\r\n\x05\x06\0\x02\x0f\x04\x12\x04\xad\x02\x044\n\x10\n\ - \x08\x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\xad\x02\x044\n\x97\x05\n\x04\ - \x06\0\x02\x10\x12\x06\xba\x02\x02\xc0\x02\x03\x1a\x86\x05\x20Lists\x20t\ - he\x20backup\x20[long-running\x20operations][google.longrunning.Operatio\ - n]\x20in\n\x20the\x20given\x20instance.\x20A\x20backup\x20operation\x20h\ - as\x20a\x20name\x20of\x20the\x20form\n\x20`projects//instances/\ - /backups//operations/`.\n\x20The\x20long-ru\ - nning\x20operation\n\x20[metadata][google.longrunning.Operation.metadata\ - ]\x20field\x20type\n\x20`metadata.type_url`\x20describes\x20the\x20type\ - \x20of\x20the\x20metadata.\x20Operations\x20returned\n\x20include\x20tho\ - se\x20that\x20have\x20completed/failed/canceled\x20within\x20the\x20last\ - \x207\x20days,\n\x20and\x20pending\x20operations.\x20Operations\x20retur\ - ned\x20are\x20ordered\x20by\n\x20`operation.metadata.value.progress.star\ - t_time`\x20in\x20descending\x20order\x20starting\n\x20from\x20the\x20mos\ - t\x20recently\x20started\x20operation.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\ - \x04\xba\x02\x06\x1a\n\r\n\x05\x06\0\x02\x10\x02\x12\x04\xba\x02\x1b6\n\ - \r\n\x05\x06\0\x02\x10\x03\x12\x04\xbb\x02\x0f+\n\x0f\n\x05\x06\0\x02\ - \x10\x04\x12\x06\xbc\x02\x04\xbe\x02\x06\n\x13\n\t\x06\0\x02\x10\x04\xb0\ - \xca\xbc\"\x12\x06\xbc\x02\x04\xbe\x02\x06\n\r\n\x05\x06\0\x02\x10\x04\ - \x12\x04\xbf\x02\x044\n\x10\n\x08\x06\0\x02\x10\x04\x9b\x08\0\x12\x04\ - \xbf\x02\x044\n7\n\x02\x04\0\x12\x06\xc4\x02\0\xce\x02\x01\x1a)\x20Infor\ - mation\x20about\x20the\x20database\x20restore.\n\n\x0b\n\x03\x04\0\x01\ - \x12\x04\xc4\x02\x08\x13\n/\n\x04\x04\0\x02\0\x12\x04\xc6\x02\x02$\x1a!\ - \x20The\x20type\x20of\x20the\x20restore\x20source.\n\n\x0f\n\x05\x04\0\ - \x02\0\x04\x12\x06\xc6\x02\x02\xc4\x02\x15\n\r\n\x05\x04\0\x02\0\x06\x12\ - \x04\xc6\x02\x02\x13\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xc6\x02\x14\x1f\n\ - \r\n\x05\x04\0\x02\0\x03\x12\x04\xc6\x02\"#\nL\n\x04\x04\0\x08\0\x12\x06\ - \xc9\x02\x02\xcd\x02\x03\x1a<\x20Information\x20about\x20the\x20source\ - \x20used\x20to\x20restore\x20the\x20database.\n\n\r\n\x05\x04\0\x08\0\ - \x01\x12\x04\xc9\x02\x08\x13\nk\n\x04\x04\0\x02\x01\x12\x04\xcc\x02\x04\ - \x1f\x1a]\x20Information\x20about\x20the\x20backup\x20used\x20to\x20rest\ - ore\x20the\x20database.\x20The\x20backup\n\x20may\x20no\x20longer\x20exi\ - st.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xcc\x02\x04\x0e\n\r\n\x05\x04\ - \0\x02\x01\x01\x12\x04\xcc\x02\x0f\x1a\n\r\n\x05\x04\0\x02\x01\x03\x12\ - \x04\xcc\x02\x1d\x1e\n)\n\x02\x04\x01\x12\x06\xd1\x02\0\xa2\x03\x01\x1a\ - \x1b\x20A\x20Cloud\x20Spanner\x20database.\n\n\x0b\n\x03\x04\x01\x01\x12\ - \x04\xd1\x02\x08\x10\n\r\n\x03\x04\x01\x07\x12\x06\xd2\x02\x02\xd5\x02\ - \x04\n\x0f\n\x05\x04\x01\x07\x9d\x08\x12\x06\xd2\x02\x02\xd5\x02\x04\n>\ - \n\x04\x04\x01\x04\0\x12\x06\xd8\x02\x02\xec\x02\x03\x1a.\x20Indicates\ - \x20the\x20current\x20state\x20of\x20the\x20database.\n\n\r\n\x05\x04\ - \x01\x04\0\x01\x12\x04\xd8\x02\x07\x0c\n\x20\n\x06\x04\x01\x04\0\x02\0\ - \x12\x04\xda\x02\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0f\n\x07\x04\ - \x01\x04\0\x02\0\x01\x12\x04\xda\x02\x04\x15\n\x0f\n\x07\x04\x01\x04\0\ - \x02\0\x02\x12\x04\xda\x02\x18\x19\n\x85\x01\n\x06\x04\x01\x04\0\x02\x01\ - \x12\x04\xde\x02\x04\x11\x1au\x20The\x20database\x20is\x20still\x20being\ - \x20created.\x20Operations\x20on\x20the\x20database\x20may\x20fail\n\x20\ - with\x20`FAILED_PRECONDITION`\x20in\x20this\x20state.\n\n\x0f\n\x07\x04\ - \x01\x04\0\x02\x01\x01\x12\x04\xde\x02\x04\x0c\n\x0f\n\x07\x04\x01\x04\0\ - \x02\x01\x02\x12\x04\xde\x02\x0f\x10\nB\n\x06\x04\x01\x04\0\x02\x02\x12\ - \x04\xe1\x02\x04\x0e\x1a2\x20The\x20database\x20is\x20fully\x20created\ - \x20and\x20ready\x20for\x20use.\n\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x01\ - \x12\x04\xe1\x02\x04\t\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x04\xe1\ - \x02\x0c\r\n\x96\x03\n\x06\x04\x01\x04\0\x02\x03\x12\x04\xeb\x02\x04\x19\ - \x1a\x85\x03\x20The\x20database\x20is\x20fully\x20created\x20and\x20read\ - y\x20for\x20use,\x20but\x20is\x20still\n\x20being\x20optimized\x20for\ - \x20performance\x20and\x20cannot\x20handle\x20full\x20load.\n\n\x20In\ - \x20this\x20state,\x20the\x20database\x20still\x20references\x20the\x20b\ - ackup\n\x20it\x20was\x20restore\x20from,\x20preventing\x20the\x20backup\ - \n\x20from\x20being\x20deleted.\x20When\x20optimizations\x20are\x20compl\ - ete,\x20the\x20full\x20performance\n\x20of\x20the\x20database\x20will\ - \x20be\x20restored,\x20and\x20the\x20database\x20will\x20transition\x20t\ - o\n\x20`READY`\x20state.\n\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x04\ - \xeb\x02\x04\x14\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x04\xeb\x02\ - \x17\x18\n\x9d\x02\n\x04\x04\x01\x02\0\x12\x04\xf3\x02\x02;\x1a\x8e\x02\ - \x20Required.\x20The\x20name\x20of\x20the\x20database.\x20Values\x20are\ - \x20of\x20the\x20form\n\x20`projects//instances//data\ - bases/`,\n\x20where\x20``\x20is\x20as\x20specified\ - \x20in\x20the\x20`CREATE\x20DATABASE`\n\x20statement.\x20This\x20name\ + 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=projects/*/i\ + nstances/*}/databases\xdaA\x06parent\x12\xa4\x02\n\x0eCreateDatabase\x12\ + 7.google.spanner.admin.database.v1.CreateDatabaseRequest\x1a\x1d.google.\ + longrunning.Operation\"\xb9\x01\x82\xd3\xe4\x93\x022\"-/v1/{parent=proje\ + cts/*/instances/*}/databases:\x01*\xdaA\x17parent,create_statement\xcaAd\ + \n)google.spanner.admin.database.v1.Database\x127google.spanner.admin.da\ + tabase.v1.CreateDatabaseMetadata\x12\xad\x01\n\x0bGetDatabase\x124.googl\ + e.spanner.admin.database.v1.GetDatabaseRequest\x1a*.google.spanner.admin\ + .database.v1.Database\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/i\ + nstances/*/databases/*}\xdaA\x04name\x12\x9d\x02\n\x11UpdateDatabaseDdl\ + \x12:.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest\x1a\x1d.\ + google.longrunning.Operation\"\xac\x01\xdaA\x13database,statements\xcaAS\ + \n\x15google.protobuf.Empty\x12:google.spanner.admin.database.v1.UpdateD\ + atabaseDdlMetadata\x82\xd3\xe4\x93\x02:25/v1/{database=projects/*/instan\ + ces/*/databases/*}/ddl:\x01*\x12\xa3\x01\n\x0cDropDatabase\x125.google.s\ + panner.admin.database.v1.DropDatabaseRequest\x1a\x16.google.protobuf.Emp\ + ty\"D\x82\xd3\xe4\x93\x023*1/v1/{database=projects/*/instances/*/databas\ + es/*}\xdaA\x08database\x12\xcd\x01\n\x0eGetDatabaseDdl\x127.google.spann\ + er.admin.database.v1.GetDatabaseDdlRequest\x1a8.google.spanner.admin.dat\ + abase.v1.GetDatabaseDdlResponse\"H\xdaA\x08database\x82\xd3\xe4\x93\x027\ + \x125/v1/{database=projects/*/instances/*/databases/*}/ddl\x12\xeb\x01\n\ + \x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.\ + iam.v1.Policy\"\x9f\x01\xdaA\x0fresource,policy\x82\xd3\xe4\x93\x02\x86\ + \x01\">/v1/{resource=projects/*/instances/*/databases/*}:setIamPolicy:\ + \x01*ZA\"/v1/{resource=projects/*/instances/*/databases/*}:get\ + IamPolicy:\x01*ZA\"\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\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\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xf3\x02\ - \x02\xec\x02\x03\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xf3\x02\x02\x08\n\r\ - \n\x05\x04\x01\x02\0\x01\x12\x04\xf3\x02\t\r\n\r\n\x05\x04\x01\x02\0\x03\ - \x12\x04\xf3\x02\x10\x11\n\r\n\x05\x04\x01\x02\0\x08\x12\x04\xf3\x02\x12\ - :\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x04\xf3\x02\x139\n8\n\x04\ - \x04\x01\x02\x01\x12\x04\xf6\x02\x02>\x1a*\x20Output\x20only.\x20The\x20\ - current\x20database\x20state.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\ - \xf6\x02\x02\xf3\x02;\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xf6\x02\x02\ - \x07\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xf6\x02\x08\r\n\r\n\x05\x04\ - \x01\x02\x01\x03\x12\x04\xf6\x02\x10\x11\n\r\n\x05\x04\x01\x02\x01\x08\ - \x12\x04\xf6\x02\x12=\n\x10\n\x08\x04\x01\x02\x01\x08\x9c\x08\0\x12\x04\ - \xf6\x02\x13<\nZ\n\x04\x04\x01\x02\x02\x12\x06\xf9\x02\x02\xfa\x022\x1aJ\ - \x20Output\x20only.\x20If\x20exists,\x20the\x20time\x20at\x20which\x20th\ - e\x20database\x20creation\x20started.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\ - \x12\x06\xf9\x02\x02\xf6\x02>\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\xf9\ - \x02\x02\x1b\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xf9\x02\x1c'\n\r\n\ - \x05\x04\x01\x02\x02\x03\x12\x04\xf9\x02*+\n\r\n\x05\x04\x01\x02\x02\x08\ - \x12\x04\xfa\x02\x061\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\x12\x04\ - \xfa\x02\x070\nt\n\x04\x04\x01\x02\x03\x12\x04\xfe\x02\x02K\x1af\x20Outp\ - ut\x20only.\x20Applicable\x20only\x20for\x20restored\x20databases.\x20Co\ - ntains\x20information\n\x20about\x20the\x20restore\x20source.\n\n\x0f\n\ - \x05\x04\x01\x02\x03\x04\x12\x06\xfe\x02\x02\xfa\x022\n\r\n\x05\x04\x01\ - \x02\x03\x06\x12\x04\xfe\x02\x02\r\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\ - \xfe\x02\x0e\x1a\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xfe\x02\x1d\x1e\n\ - \r\n\x05\x04\x01\x02\x03\x08\x12\x04\xfe\x02\x1fJ\n\x10\n\x08\x04\x01\ - \x02\x03\x08\x9c\x08\0\x12\x04\xfe\x02\x20I\n\xfe\x01\n\x04\x04\x01\x02\ - \x04\x12\x06\x84\x03\x02\x85\x032\x1a\xed\x01\x20Output\x20only.\x20For\ - \x20databases\x20that\x20are\x20using\x20customer\x20managed\x20encrypti\ - on,\x20this\n\x20field\x20contains\x20the\x20encryption\x20configuration\ - \x20for\x20the\x20database.\n\x20For\x20databases\x20that\x20are\x20usin\ - g\x20Google\x20default\x20or\x20other\x20types\x20of\x20encryption,\n\ - \x20this\x20field\x20is\x20empty.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\ - \x06\x84\x03\x02\xfe\x02K\n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\x84\x03\ - \x02\x12\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\x84\x03\x13$\n\r\n\x05\ - \x04\x01\x02\x04\x03\x12\x04\x84\x03'(\n\r\n\x05\x04\x01\x02\x04\x08\x12\ - \x04\x85\x03\x061\n\x10\n\x08\x04\x01\x02\x04\x08\x9c\x08\0\x12\x04\x85\ - \x03\x070\n\xdc\x03\n\x04\x04\x01\x02\x05\x12\x06\x90\x03\x02\x91\x032\ - \x1a\xcb\x03\x20Output\x20only.\x20For\x20databases\x20that\x20are\x20us\ - ing\x20customer\x20managed\x20encryption,\x20this\n\x20field\x20contains\ - \x20the\x20encryption\x20information\x20for\x20the\x20database,\x20such\ - \x20as\n\x20encryption\x20state\x20and\x20the\x20Cloud\x20KMS\x20key\x20\ - versions\x20that\x20are\x20in\x20use.\n\n\x20For\x20databases\x20that\ - \x20are\x20using\x20Google\x20default\x20or\x20other\x20types\x20of\x20e\ - ncryption,\n\x20this\x20field\x20is\x20empty.\n\n\x20This\x20field\x20is\ - \x20propagated\x20lazily\x20from\x20the\x20backend.\x20There\x20might\ - \x20be\x20a\x20delay\n\x20from\x20when\x20a\x20key\x20version\x20is\x20b\ - eing\x20used\x20and\x20when\x20it\x20appears\x20in\x20this\x20field.\n\n\ - \r\n\x05\x04\x01\x02\x05\x04\x12\x04\x90\x03\x02\n\n\r\n\x05\x04\x01\x02\ - \x05\x06\x12\x04\x90\x03\x0b\x19\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\ - \x90\x03\x1a)\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\x90\x03,-\n\r\n\x05\ - \x04\x01\x02\x05\x08\x12\x04\x91\x03\x061\n\x10\n\x08\x04\x01\x02\x05\ - \x08\x9c\x08\0\x12\x04\x91\x03\x070\n\xbf\x02\n\x04\x04\x01\x02\x06\x12\ - \x06\x98\x03\x02\x99\x032\x1a\xae\x02\x20Output\x20only.\x20The\x20perio\ - d\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\x20opti\ - on\x20set\x20using\n\x20[UpdateDatabaseDdl][google.spanner.admin.databas\ - e.v1.DatabaseAdmin.UpdateDatabaseDdl].\n\x20Defaults\x20to\x201\x20hour,\ - \x20if\x20not\x20set.\n\n\x0f\n\x05\x04\x01\x02\x06\x04\x12\x06\x98\x03\ - \x02\x91\x032\n\r\n\x05\x04\x01\x02\x06\x05\x12\x04\x98\x03\x02\x08\n\r\ - \n\x05\x04\x01\x02\x06\x01\x12\x04\x98\x03\t!\n\r\n\x05\x04\x01\x02\x06\ - \x03\x12\x04\x98\x03$%\n\r\n\x05\x04\x01\x02\x06\x08\x12\x04\x99\x03\x06\ - 1\n\x10\n\x08\x04\x01\x02\x06\x08\x9c\x08\0\x12\x04\x99\x03\x070\n\xee\ - \x02\n\x04\x04\x01\x02\x07\x12\x06\xa0\x03\x02\xa1\x032\x1a\xdd\x02\x20O\ - utput\x20only.\x20Earliest\x20timestamp\x20at\x20which\x20older\x20versi\ - ons\x20of\x20the\x20data\x20can\x20be\n\x20read.\x20This\x20value\x20is\ - \x20continuously\x20updated\x20by\x20Cloud\x20Spanner\x20and\x20becomes\ - \x20stale\n\x20the\x20moment\x20it\x20is\x20queried.\x20If\x20you\x20are\ - \x20using\x20this\x20value\x20to\x20recover\x20data,\x20make\n\x20sure\ - \x20to\x20account\x20for\x20the\x20time\x20from\x20the\x20moment\x20when\ - \x20the\x20value\x20is\x20queried\x20to\n\x20the\x20moment\x20when\x20yo\ - u\x20initiate\x20the\x20recovery.\n\n\x0f\n\x05\x04\x01\x02\x07\x04\x12\ - \x06\xa0\x03\x02\x99\x032\n\r\n\x05\x04\x01\x02\x07\x06\x12\x04\xa0\x03\ - \x02\x1b\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\xa0\x03\x1c1\n\r\n\x05\ - \x04\x01\x02\x07\x03\x12\x04\xa0\x0345\n\r\n\x05\x04\x01\x02\x07\x08\x12\ - \x04\xa1\x03\x061\n\x10\n\x08\x04\x01\x02\x07\x08\x9c\x08\0\x12\x04\xa1\ - \x03\x070\no\n\x02\x04\x02\x12\x06\xa6\x03\0\xb9\x03\x01\x1aa\x20The\x20\ - request\x20for\n\x20[ListDatabases][google.spanner.admin.database.v1.Dat\ - abaseAdmin.ListDatabases].\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xa6\x03\x08\ - \x1c\n\x8d\x01\n\x04\x04\x02\x02\0\x12\x06\xa9\x03\x02\xae\x03\x04\x1a}\ - \x20Required.\x20The\x20instance\x20whose\x20databases\x20should\x20be\ - \x20listed.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects//instances/`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xa9\ - \x03\x02\xa6\x03\x1e\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xa9\x03\x02\x08\ - \n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xa9\x03\t\x0f\n\r\n\x05\x04\x02\x02\ - \0\x03\x12\x04\xa9\x03\x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xa9\ - \x03\x14\xae\x03\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xaa\ - \x03\x04*\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\xab\x03\x04\xad\ - \x03\x05\n\x86\x01\n\x04\x04\x02\x02\x01\x12\x04\xb2\x03\x02\x16\x1ax\ - \x20Number\x20of\x20databases\x20to\x20be\x20returned\x20in\x20the\x20re\ - sponse.\x20If\x200\x20or\x20less,\n\x20defaults\x20to\x20the\x20server's\ - \x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x02\x02\x01\ - \x04\x12\x06\xb2\x03\x02\xae\x03\x04\n\r\n\x05\x04\x02\x02\x01\x05\x12\ - \x04\xb2\x03\x02\x07\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb2\x03\x08\ - \x11\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xb2\x03\x14\x15\n\xfa\x01\n\ - \x04\x04\x02\x02\x02\x12\x04\xb8\x03\x02\x18\x1a\xeb\x01\x20If\x20non-em\ - pty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][go\ - ogle.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]\n\ - \x20from\x20a\x20previous\n\x20[ListDatabasesResponse][google.spanner.ad\ - min.database.v1.ListDatabasesResponse].\n\n\x0f\n\x05\x04\x02\x02\x02\ - \x04\x12\x06\xb8\x03\x02\xb2\x03\x16\n\r\n\x05\x04\x02\x02\x02\x05\x12\ - \x04\xb8\x03\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xb8\x03\t\x13\ - \n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xb8\x03\x16\x17\np\n\x02\x04\x03\ - \x12\x06\xbd\x03\0\xc5\x03\x01\x1ab\x20The\x20response\x20for\n\x20[List\ - Databases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]\ - .\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xbd\x03\x08\x1d\n3\n\x04\x04\x03\x02\ - \0\x12\x04\xbf\x03\x02\"\x1a%\x20Databases\x20that\x20matched\x20the\x20\ - request.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\xbf\x03\x02\n\n\r\n\x05\ - \x04\x03\x02\0\x06\x12\x04\xbf\x03\x0b\x13\n\r\n\x05\x04\x03\x02\0\x01\ - \x12\x04\xbf\x03\x14\x1d\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xbf\x03\x20\ - !\n\xbc\x01\n\x04\x04\x03\x02\x01\x12\x04\xc4\x03\x02\x1d\x1a\xad\x01\ - \x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\ - \x20[ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListD\ - atabases]\n\x20call\x20to\x20fetch\x20more\x20of\x20the\x20matching\x20d\ - atabases.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xc4\x03\x02\xbf\x03\ - \"\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xc4\x03\x02\x08\n\r\n\x05\x04\ - \x03\x02\x01\x01\x12\x04\xc4\x03\t\x18\n\r\n\x05\x04\x03\x02\x01\x03\x12\ - \x04\xc4\x03\x1b\x1c\nq\n\x02\x04\x04\x12\x06\xc9\x03\0\xe5\x03\x01\x1ac\ - \x20The\x20request\x20for\n\x20[CreateDatabase][google.spanner.admin.dat\ - abase.v1.DatabaseAdmin.CreateDatabase].\n\n\x0b\n\x03\x04\x04\x01\x12\ - \x04\xc9\x03\x08\x1d\n\x9a\x01\n\x04\x04\x04\x02\0\x12\x06\xcc\x03\x02\ - \xd1\x03\x04\x1a\x89\x01\x20Required.\x20The\x20name\x20of\x20the\x20ins\ - tance\x20that\x20will\x20serve\x20the\x20new\x20database.\n\x20Values\ - \x20are\x20of\x20the\x20form\x20`projects//instances/\ - `.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xcc\x03\x02\xc9\x03\x1f\n\r\n\ - \x05\x04\x04\x02\0\x05\x12\x04\xcc\x03\x02\x08\n\r\n\x05\x04\x04\x02\0\ - \x01\x12\x04\xcc\x03\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xcc\x03\ - \x12\x13\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xcc\x03\x14\xd1\x03\x03\n\ - \x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xcd\x03\x04*\n\x11\n\x07\ - \x04\x04\x02\0\x08\x9f\x08\x12\x06\xce\x03\x04\xd0\x03\x05\n\xe6\x02\n\ - \x04\x04\x04\x02\x01\x12\x04\xd8\x03\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\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\xd8\x03\x02\xd1\x03\x04\n\r\ - \n\x05\x04\x04\x02\x01\x05\x12\x04\xd8\x03\x02\x08\n\r\n\x05\x04\x04\x02\ - \x01\x01\x12\x04\xd8\x03\t\x19\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xd8\ - \x03\x1c\x1d\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xd8\x03\x1eF\n\x10\n\ - \x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x04\xd8\x03\x1fE\n\x97\x02\n\x04\ - \x04\x04\x02\x02\x12\x04\xde\x03\x02P\x1a\x88\x02\x20Optional.\x20A\x20l\ - ist\x20of\x20DDL\x20statements\x20to\x20run\x20inside\x20the\x20newly\ - \x20created\n\x20database.\x20Statements\x20can\x20create\x20tables,\x20\ - indexes,\x20etc.\x20These\n\x20statements\x20execute\x20atomically\x20wi\ - th\x20the\x20creation\x20of\x20the\x20database:\n\x20if\x20there\x20is\ - \x20an\x20error\x20in\x20any\x20statement,\x20the\x20database\x20is\x20n\ - ot\x20created.\n\n\r\n\x05\x04\x04\x02\x02\x04\x12\x04\xde\x03\x02\n\n\r\ - \n\x05\x04\x04\x02\x02\x05\x12\x04\xde\x03\x0b\x11\n\r\n\x05\x04\x04\x02\ - \x02\x01\x12\x04\xde\x03\x12\"\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xde\ - \x03%&\n\r\n\x05\x04\x04\x02\x02\x08\x12\x04\xde\x03'O\n\x10\n\x08\x04\ - \x04\x02\x02\x08\x9c\x08\0\x12\x04\xde\x03(N\n\xc2\x01\n\x04\x04\x04\x02\ - \x03\x12\x06\xe3\x03\x02\xe4\x03/\x1a\xb1\x01\x20Optional.\x20The\x20enc\ - ryption\x20configuration\x20for\x20the\x20database.\x20If\x20this\x20fie\ - ld\x20is\n\x20not\x20specified,\x20Cloud\x20Spanner\x20will\x20encrypt/d\ - ecrypt\x20all\x20data\x20at\x20rest\x20using\n\x20Google\x20default\x20e\ - ncryption.\n\n\x0f\n\x05\x04\x04\x02\x03\x04\x12\x06\xe3\x03\x02\xde\x03\ - P\n\r\n\x05\x04\x04\x02\x03\x06\x12\x04\xe3\x03\x02\x12\n\r\n\x05\x04\ - \x04\x02\x03\x01\x12\x04\xe3\x03\x13$\n\r\n\x05\x04\x04\x02\x03\x03\x12\ - \x04\xe3\x03'(\n\r\n\x05\x04\x04\x02\x03\x08\x12\x04\xe4\x03\x06.\n\x10\ - \n\x08\x04\x04\x02\x03\x08\x9c\x08\0\x12\x04\xe4\x03\x07-\n\x8d\x01\n\ - \x02\x04\x05\x12\x06\xe9\x03\0\xee\x03\x01\x1a\x7f\x20Metadata\x20type\ - \x20for\x20the\x20operation\x20returned\x20by\n\x20[CreateDatabase][goog\ - le.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].\n\n\x0b\n\ - \x03\x04\x05\x01\x12\x04\xe9\x03\x08\x1e\n-\n\x04\x04\x05\x02\0\x12\x06\ - \xeb\x03\x02\xed\x03\x05\x1a\x1d\x20The\x20database\x20being\x20created.\ - \n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xeb\x03\x02\xe9\x03\x20\n\r\n\ - \x05\x04\x05\x02\0\x05\x12\x04\xeb\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\ - \x01\x12\x04\xeb\x03\t\x11\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xeb\x03\ - \x14\x15\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xeb\x03\x16\xed\x03\x04\n\ - \x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xeb\x03\x17\xed\x03\x03\nk\ - \n\x02\x04\x06\x12\x06\xf2\x03\0\xfb\x03\x01\x1a]\x20The\x20request\x20f\ - or\n\x20[GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.Get\ - Database].\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xf2\x03\x08\x1a\n\x98\x01\n\ - \x04\x04\x06\x02\0\x12\x06\xf5\x03\x02\xfa\x03\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\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xf5\x03\x02\ - \xf2\x03\x1c\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xf5\x03\x02\x08\n\r\n\ - \x05\x04\x06\x02\0\x01\x12\x04\xf5\x03\t\r\n\r\n\x05\x04\x06\x02\0\x03\ - \x12\x04\xf5\x03\x10\x11\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xf5\x03\ - \x12\xfa\x03\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xf6\x03\ - \x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xf7\x03\x04\xf9\x03\ - \x05\n\x99\x07\n\x02\x04\x07\x12\x06\x8d\x04\0\xaf\x04\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(or\n\x20p\ - oints)\x20in\x20the\x20future.\x20The\x20server\x20checks\x20that\x20the\ - \x20statements\n\x20are\x20executable\x20(syntactically\x20valid,\x20nam\ - e\x20tables\x20that\x20exist,\x20etc.)\n\x20before\x20enqueueing\x20them\ - ,\x20but\x20they\x20may\x20still\x20fail\x20upon\n\x20later\x20execution\ - \x20(e.g.,\x20if\x20a\x20statement\x20from\x20another\x20batch\x20of\n\ - \x20statements\x20is\x20applied\x20first\x20and\x20it\x20conflicts\x20in\ - \x20some\x20way,\x20or\x20if\n\x20there\x20is\x20some\x20data-related\ - \x20problem\x20like\x20a\x20`NULL`\x20value\x20in\x20a\x20column\x20to\n\ - \x20which\x20`NOT\x20NULL`\x20would\x20be\x20added).\x20If\x20a\x20state\ - ment\x20fails,\x20all\n\x20subsequent\x20statements\x20in\x20the\x20batc\ - h\x20are\x20automatically\x20cancelled.\n\n\x20Each\x20batch\x20of\x20st\ - atements\x20is\x20assigned\x20a\x20name\x20which\x20can\x20be\x20used\ - \x20with\n\x20the\x20[Operations][google.longrunning.Operations]\x20API\ - \x20to\x20monitor\n\x20progress.\x20See\x20the\n\x20[operation_id][googl\ - e.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id]\n\x20\ - field\x20for\x20more\x20details.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x8d\ - \x04\x08\x20\n3\n\x04\x04\x07\x02\0\x12\x06\x8f\x04\x02\x94\x04\x04\x1a#\ - \x20Required.\x20The\x20database\x20to\x20update.\n\n\x0f\n\x05\x04\x07\ - \x02\0\x04\x12\x06\x8f\x04\x02\x8d\x04\"\n\r\n\x05\x04\x07\x02\0\x05\x12\ - \x04\x8f\x04\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x8f\x04\t\x11\n\ - \r\n\x05\x04\x07\x02\0\x03\x12\x04\x8f\x04\x14\x15\n\x0f\n\x05\x04\x07\ - \x02\0\x08\x12\x06\x8f\x04\x16\x94\x04\x03\n\x10\n\x08\x04\x07\x02\0\x08\ - \x9c\x08\0\x12\x04\x90\x04\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\ - \x12\x06\x91\x04\x04\x93\x04\x05\nG\n\x04\x04\x07\x02\x01\x12\x04\x97\ - \x04\x02J\x1a9\x20Required.\x20DDL\x20statements\x20to\x20be\x20applied\ - \x20to\x20the\x20database.\n\n\r\n\x05\x04\x07\x02\x01\x04\x12\x04\x97\ - \x04\x02\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\x97\x04\x0b\x11\n\r\n\ - \x05\x04\x07\x02\x01\x01\x12\x04\x97\x04\x12\x1c\n\r\n\x05\x04\x07\x02\ - \x01\x03\x12\x04\x97\x04\x1f\x20\n\r\n\x05\x04\x07\x02\x01\x08\x12\x04\ - \x97\x04!I\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\x97\x04\"H\ - \n\xe6\x08\n\x04\x04\x07\x02\x02\x12\x04\xae\x04\x02\x1a\x1a\xd7\x08\x20\ - If\x20empty,\x20the\x20new\x20update\x20request\x20is\x20assigned\x20an\ - \n\x20automatically-generated\x20operation\x20ID.\x20Otherwise,\x20`oper\ - ation_id`\n\x20is\x20used\x20to\x20construct\x20the\x20name\x20of\x20the\ - \x20resulting\n\x20[Operation][google.longrunning.Operation].\n\n\x20Spe\ - cifying\x20an\x20explicit\x20operation\x20ID\x20simplifies\x20determinin\ - g\n\x20whether\x20the\x20statements\x20were\x20executed\x20in\x20the\x20\ - event\x20that\x20the\n\x20[UpdateDatabaseDdl][google.spanner.admin.datab\ - ase.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20call\x20is\x20replayed,\x20\ - or\x20the\x20return\x20value\x20is\x20otherwise\x20lost:\x20the\n\x20[da\ - tabase][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.databa\ - se]\n\x20and\x20`operation_id`\x20fields\x20can\x20be\x20combined\x20to\ - \x20form\x20the\n\x20[name][google.longrunning.Operation.name]\x20of\x20\ - the\x20resulting\n\x20[longrunning.Operation][google.longrunning.Operati\ - on]:\n\x20`/operations/`.\n\n\x20`operation_id`\ - \x20should\x20be\x20unique\x20within\x20the\x20database,\x20and\x20must\ - \x20be\n\x20a\x20valid\x20identifier:\x20`[a-z][a-z0-9_]*`.\x20Note\x20t\ - hat\n\x20automatically-generated\x20operation\x20IDs\x20always\x20begin\ - \x20with\x20an\n\x20underscore.\x20If\x20the\x20named\x20operation\x20al\ - ready\x20exists,\n\x20[UpdateDatabaseDdl][google.spanner.admin.database.\ - v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20returns\x20`ALREADY_EXISTS`.\n\ - \n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xae\x04\x02\x97\x04J\n\r\n\x05\ - \x04\x07\x02\x02\x05\x12\x04\xae\x04\x02\x08\n\r\n\x05\x04\x07\x02\x02\ - \x01\x12\x04\xae\x04\t\x15\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xae\x04\ - \x18\x19\n\x94\x01\n\x02\x04\x08\x12\x06\xb3\x04\0\xc6\x04\x01\x1a\x85\ - \x01\x20Metadata\x20type\x20for\x20the\x20operation\x20returned\x20by\n\ - \x20[UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.U\ - pdateDatabaseDdl].\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xb3\x04\x08!\n.\n\ - \x04\x04\x08\x02\0\x12\x06\xb5\x04\x02\xb7\x04\x05\x1a\x1e\x20The\x20dat\ - abase\x20being\x20modified.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xb5\ - \x04\x02\xb3\x04#\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xb5\x04\x02\x08\n\ - \r\n\x05\x04\x08\x02\0\x01\x12\x04\xb5\x04\t\x11\n\r\n\x05\x04\x08\x02\0\ - \x03\x12\x04\xb5\x04\x14\x15\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xb5\ - \x04\x16\xb7\x04\x04\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xb5\ - \x04\x17\xb7\x04\x03\n\x8a\x01\n\x04\x04\x08\x02\x01\x12\x04\xbb\x04\x02\ - !\x1a|\x20For\x20an\x20update\x20this\x20list\x20contains\x20all\x20the\ - \x20statements.\x20For\x20an\n\x20individual\x20statement,\x20this\x20li\ - st\x20contains\x20only\x20that\x20statement.\n\n\r\n\x05\x04\x08\x02\x01\ - \x04\x12\x04\xbb\x04\x02\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xbb\x04\ - \x0b\x11\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xbb\x04\x12\x1c\n\r\n\x05\ - \x04\x08\x02\x01\x03\x12\x04\xbb\x04\x1f\x20\n\xb6\x01\n\x04\x04\x08\x02\ - \x02\x12\x04\xc0\x04\x02;\x1a\xa7\x01\x20Reports\x20the\x20commit\x20tim\ - estamps\x20of\x20all\x20statements\x20that\x20have\n\x20succeeded\x20so\ - \x20far,\x20where\x20`commit_timestamps[i]`\x20is\x20the\x20commit\n\x20\ - timestamp\x20for\x20the\x20statement\x20`statements[i]`.\n\n\r\n\x05\x04\ - \x08\x02\x02\x04\x12\x04\xc0\x04\x02\n\n\r\n\x05\x04\x08\x02\x02\x06\x12\ - \x04\xc0\x04\x0b$\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xc0\x04%6\n\r\n\ - \x05\x04\x08\x02\x02\x03\x12\x04\xc0\x049:\n\xd3\x01\n\x04\x04\x08\x02\ - \x03\x12\x04\xc5\x04\x02A\x1a\xc4\x01\x20Output\x20only.\x20When\x20true\ - ,\x20indicates\x20that\x20the\x20operation\x20is\x20throttled\x20e.g\n\ - \x20due\x20to\x20resource\x20constraints.\x20When\x20resources\x20become\ - \x20available\x20the\x20operation\n\x20will\x20resume\x20and\x20this\x20\ - field\x20will\x20be\x20false\x20again.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\ - \x12\x06\xc5\x04\x02\xc0\x04;\n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\xc5\ - \x04\x02\x06\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\xc5\x04\x07\x10\n\r\n\ - \x05\x04\x08\x02\x03\x03\x12\x04\xc5\x04\x13\x14\n\r\n\x05\x04\x08\x02\ - \x03\x08\x12\x04\xc5\x04\x15@\n\x10\n\x08\x04\x08\x02\x03\x08\x9c\x08\0\ - \x12\x04\xc5\x04\x16?\nm\n\x02\x04\t\x12\x06\xca\x04\0\xd2\x04\x01\x1a_\ - \x20The\x20request\x20for\n\x20[DropDatabase][google.spanner.admin.datab\ - ase.v1.DatabaseAdmin.DropDatabase].\n\n\x0b\n\x03\x04\t\x01\x12\x04\xca\ - \x04\x08\x1b\n7\n\x04\x04\t\x02\0\x12\x06\xcc\x04\x02\xd1\x04\x04\x1a'\ - \x20Required.\x20The\x20database\x20to\x20be\x20dropped.\n\n\x0f\n\x05\ - \x04\t\x02\0\x04\x12\x06\xcc\x04\x02\xca\x04\x1d\n\r\n\x05\x04\t\x02\0\ - \x05\x12\x04\xcc\x04\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xcc\x04\t\ - \x11\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xcc\x04\x14\x15\n\x0f\n\x05\x04\t\ - \x02\0\x08\x12\x06\xcc\x04\x16\xd1\x04\x03\n\x10\n\x08\x04\t\x02\0\x08\ - \x9c\x08\0\x12\x04\xcd\x04\x04*\n\x11\n\x07\x04\t\x02\0\x08\x9f\x08\x12\ - \x06\xce\x04\x04\xd0\x04\x05\nq\n\x02\x04\n\x12\x06\xd6\x04\0\xe0\x04\ - \x01\x1ac\x20The\x20request\x20for\n\x20[GetDatabaseDdl][google.spanner.\ - admin.database.v1.DatabaseAdmin.GetDatabaseDdl].\n\n\x0b\n\x03\x04\n\x01\ - \x12\x04\xd6\x04\x08\x1d\n\x9e\x01\n\x04\x04\n\x02\0\x12\x06\xda\x04\x02\ - \xdf\x04\x04\x1a\x8d\x01\x20Required.\x20The\x20database\x20whose\x20sch\ - ema\x20we\x20wish\x20to\x20get.\n\x20Values\x20are\x20of\x20the\x20form\ - \n\x20`projects//instances//databases/`\n\n\ - \x0f\n\x05\x04\n\x02\0\x04\x12\x06\xda\x04\x02\xd6\x04\x1f\n\r\n\x05\x04\ - \n\x02\0\x05\x12\x04\xda\x04\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\ - \xda\x04\t\x11\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xda\x04\x14\x15\n\x0f\n\ - \x05\x04\n\x02\0\x08\x12\x06\xda\x04\x16\xdf\x04\x03\n\x10\n\x08\x04\n\ - \x02\0\x08\x9c\x08\0\x12\x04\xdb\x04\x04*\n\x11\n\x07\x04\n\x02\0\x08\ - \x9f\x08\x12\x06\xdc\x04\x04\xde\x04\x05\nr\n\x02\x04\x0b\x12\x06\xe4\ - \x04\0\xe8\x04\x01\x1ad\x20The\x20response\x20for\n\x20[GetDatabaseDdl][\ - google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].\n\n\x0b\ - \n\x03\x04\x0b\x01\x12\x04\xe4\x04\x08\x1e\nq\n\x04\x04\x0b\x02\0\x12\ - \x04\xe7\x04\x02!\x1ac\x20A\x20list\x20of\x20formatted\x20DDL\x20stateme\ - nts\x20defining\x20the\x20schema\x20of\x20the\x20database\n\x20specified\ - \x20in\x20the\x20request.\n\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\xe7\x04\ - \x02\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xe7\x04\x0b\x11\n\r\n\x05\x04\ - \x0b\x02\0\x01\x12\x04\xe7\x04\x12\x1c\n\r\n\x05\x04\x0b\x02\0\x03\x12\ - \x04\xe7\x04\x1f\x20\n\x81\x01\n\x02\x04\x0c\x12\x06\xec\x04\0\xad\x05\ - \x01\x1as\x20The\x20request\x20for\n\x20[ListDatabaseOperations][google.\ - spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations].\n\n\x0b\ - \n\x03\x04\x0c\x01\x12\x04\xec\x04\x08%\n\x87\x01\n\x04\x04\x0c\x02\0\ - \x12\x06\xef\x04\x02\xf4\x04\x04\x1aw\x20Required.\x20The\x20instance\ - \x20of\x20the\x20database\x20operations.\n\x20Values\x20are\x20of\x20the\ - \x20form\x20`projects//instances/`.\n\n\x0f\n\x05\x04\ - \x0c\x02\0\x04\x12\x06\xef\x04\x02\xec\x04'\n\r\n\x05\x04\x0c\x02\0\x05\ - \x12\x04\xef\x04\x02\x08\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xef\x04\t\ - \x0f\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xef\x04\x12\x13\n\x0f\n\x05\x04\ - \x0c\x02\0\x08\x12\x06\xef\x04\x14\xf4\x04\x03\n\x10\n\x08\x04\x0c\x02\0\ - \x08\x9c\x08\0\x12\x04\xf0\x04\x04*\n\x11\n\x07\x04\x0c\x02\0\x08\x9f\ - \x08\x12\x06\xf1\x04\x04\xf3\x04\x05\n\xcf\x10\n\x04\x04\x0c\x02\x01\x12\ - \x04\xa1\x05\x02\x14\x1a\xc0\x10\x20An\x20expression\x20that\x20filters\ - \x20the\x20list\x20of\x20returned\x20operations.\n\n\x20A\x20filter\x20e\ - xpression\x20consists\x20of\x20a\x20field\x20name,\x20a\n\x20comparison\ - \x20operator,\x20and\x20a\x20value\x20for\x20filtering.\n\x20The\x20valu\ - e\x20must\x20be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20boolean.\ - \x20The\x20comparison\x20operator\n\x20must\x20be\x20one\x20of:\x20`<`,\ - \x20`>`,\x20`<=`,\x20`>=`,\x20`!=`,\x20`=`,\x20or\x20`:`.\n\x20Colon\x20\ - `:`\x20is\x20the\x20contains\x20operator.\x20Filter\x20rules\x20are\x20n\ - ot\x20case\x20sensitive.\n\n\x20The\x20following\x20fields\x20in\x20the\ - \x20[Operation][google.longrunning.Operation]\n\x20are\x20eligible\x20fo\ - r\x20filtering:\n\n\x20\x20\x20*\x20`name`\x20-\x20The\x20name\x20of\x20\ - the\x20long-running\x20operation\n\x20\x20\x20*\x20`done`\x20-\x20False\ - \x20if\x20the\x20operation\x20is\x20in\x20progress,\x20else\x20true.\n\ - \x20\x20\x20*\x20`metadata.@type`\x20-\x20the\x20type\x20of\x20metadata.\ - \x20For\x20example,\x20the\x20type\x20string\n\x20\x20\x20\x20\x20\x20fo\ - r\n\x20\x20\x20\x20\x20\x20[RestoreDatabaseMetadata][google.spanner.admi\ - n.database.v1.RestoreDatabaseMetadata]\n\x20\x20\x20\x20\x20\x20is\n\x20\ - \x20\x20\x20\x20\x20`type.googleapis.com/google.spanner.admin.database.v\ - 1.RestoreDatabaseMetadata`.\n\x20\x20\x20*\x20`metadata.`\ - \x20-\x20any\x20field\x20in\x20metadata.value.\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\x20respon\ - se.\n\x20\x20\x20*\x20`response.`\x20-\x20any\x20field\x20in\ - \x20response.value.\n\n\x20You\x20can\x20combine\x20multiple\x20expressi\ - ons\x20by\x20enclosing\x20each\x20expression\x20in\n\x20parentheses.\x20\ - By\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\x20operation\x20is\x20complete.\ - \n\x20\x20\x20*\x20`(metadata.@type=type.googleapis.com/google.spanner.a\ - dmin.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)\x20AND`\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\x20o\ - perations\x20where:\n\x20\x20\x20\x20\x20*\x20The\x20operation's\x20meta\ - data\x20type\x20is\n\x20\x20\x20\x20\x20[RestoreDatabaseMetadata][google\ - .spanner.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\x20c\ - ontains\x20\"restored_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\x20error.\n\n\x0f\n\x05\x04\ - \x0c\x02\x01\x04\x12\x06\xa1\x05\x02\xf4\x04\x04\n\r\n\x05\x04\x0c\x02\ - \x01\x05\x12\x04\xa1\x05\x02\x08\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\ - \xa1\x05\t\x0f\n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xa1\x05\x12\x13\n\ - \x87\x01\n\x04\x04\x0c\x02\x02\x12\x04\xa5\x05\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\x0f\n\x05\x04\x0c\x02\x02\x04\x12\ - \x06\xa5\x05\x02\xa1\x05\x14\n\r\n\x05\x04\x0c\x02\x02\x05\x12\x04\xa5\ - \x05\x02\x07\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\xa5\x05\x08\x11\n\r\n\ - \x05\x04\x0c\x02\x02\x03\x12\x04\xa5\x05\x14\x15\n\xc6\x02\n\x04\x04\x0c\ - \x02\x03\x12\x04\xac\x05\x02\x18\x1a\xb7\x02\x20If\x20non-empty,\x20`pag\ + tify\x20the\x20database.\n\n\x0f\n\x05\x04\0\x02\0\x04\x12\x06\xd5\x01\ + \x02\xce\x01\x03\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\x0f\n\ + \x05\x04\0\x02\x01\x04\x12\x06\xd8\x01\x02\xd5\x01\x12\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.Lis\ + tDatabases].\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//instances/\ + `.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xe0\x01\x02\xdd\x01\ + \x1e\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\x20max\ + imum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\ + \x06\xe9\x01\x02\xe5\x01\x04\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`pag\ e_token`\x20should\x20contain\x20a\n\x20[next_page_token][google.spanner\ - .admin.database.v1.ListDatabaseOperationsResponse.next_page_token]\n\x20\ - from\x20a\x20previous\n\x20[ListDatabaseOperationsResponse][google.spann\ - er.admin.database.v1.ListDatabaseOperationsResponse]\n\x20to\x20the\x20s\ - ame\x20`parent`\x20and\x20with\x20the\x20same\x20`filter`.\n\n\x0f\n\x05\ - \x04\x0c\x02\x03\x04\x12\x06\xac\x05\x02\xa5\x05\x16\n\r\n\x05\x04\x0c\ - \x02\x03\x05\x12\x04\xac\x05\x02\x08\n\r\n\x05\x04\x0c\x02\x03\x01\x12\ - \x04\xac\x05\t\x13\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xac\x05\x16\x17\ - \n\x82\x01\n\x02\x04\r\x12\x06\xb1\x05\0\xbd\x05\x01\x1at\x20The\x20resp\ - onse\x20for\n\x20[ListDatabaseOperations][google.spanner.admin.database.\ - v1.DatabaseAdmin.ListDatabaseOperations].\n\n\x0b\n\x03\x04\r\x01\x12\ - \x04\xb1\x05\x08&\n\xaf\x02\n\x04\x04\r\x02\0\x12\x04\xb7\x05\x027\x1a\ - \xa0\x02\x20The\x20list\x20of\x20matching\x20database\x20[long-running\n\ - \x20operations][google.longrunning.Operation].\x20Each\x20operation's\ - \x20name\x20will\x20be\n\x20prefixed\x20by\x20the\x20database's\x20name.\ - \x20The\x20operation's\n\x20[metadata][google.longrunning.Operation.meta\ - data]\x20field\x20type\n\x20`metadata.type_url`\x20describes\x20the\x20t\ - ype\x20of\x20the\x20metadata.\n\n\r\n\x05\x04\r\x02\0\x04\x12\x04\xb7\ - \x05\x02\n\n\r\n\x05\x04\r\x02\0\x06\x12\x04\xb7\x05\x0b'\n\r\n\x05\x04\ - \r\x02\0\x01\x12\x04\xb7\x05(2\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xb7\x05\ - 56\n\xcd\x01\n\x04\x04\r\x02\x01\x12\x04\xbc\x05\x02\x1d\x1a\xbe\x01\x20\ - `next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[Li\ - stDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.Lis\ - tDatabaseOperations]\n\x20call\x20to\x20fetch\x20more\x20of\x20the\x20ma\ - tching\x20metadata.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xbc\x05\x02\ - \xb7\x057\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xbc\x05\x02\x08\n\r\n\x05\ - \x04\r\x02\x01\x01\x12\x04\xbc\x05\t\x18\n\r\n\x05\x04\r\x02\x01\x03\x12\ - \x04\xbc\x05\x1b\x1c\ns\n\x02\x04\x0e\x12\x06\xc1\x05\0\xe5\x05\x01\x1ae\ - \x20The\x20request\x20for\n\x20[RestoreDatabase][google.spanner.admin.da\ - tabase.v1.DatabaseAdmin.RestoreDatabase].\n\n\x0b\n\x03\x04\x0e\x01\x12\ - \x04\xc1\x05\x08\x1e\n\xa6\x02\n\x04\x04\x0e\x02\0\x12\x06\xc7\x05\x02\ - \xcc\x05\x04\x1a\x95\x02\x20Required.\x20The\x20name\x20of\x20the\x20ins\ - tance\x20in\x20which\x20to\x20create\x20the\n\x20restored\x20database.\ - \x20This\x20instance\x20must\x20be\x20in\x20the\x20same\x20project\x20an\ - d\n\x20have\x20the\x20same\x20instance\x20configuration\x20as\x20the\x20\ - instance\x20containing\n\x20the\x20source\x20backup.\x20Values\x20are\ - \x20of\x20the\x20form\n\x20`projects//instances/`.\n\ - \n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xc7\x05\x02\xc1\x05\x20\n\r\n\x05\ - \x04\x0e\x02\0\x05\x12\x04\xc7\x05\x02\x08\n\r\n\x05\x04\x0e\x02\0\x01\ - \x12\x04\xc7\x05\t\x0f\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xc7\x05\x12\ - \x13\n\x0f\n\x05\x04\x0e\x02\0\x08\x12\x06\xc7\x05\x14\xcc\x05\x03\n\x10\ - \n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\xc8\x05\x04*\n\x11\n\x07\x04\ - \x0e\x02\0\x08\x9f\x08\x12\x06\xc9\x05\x04\xcb\x05\x05\n\x87\x02\n\x04\ - \x04\x0e\x02\x01\x12\x04\xd2\x05\x02B\x1a\xf8\x01\x20Required.\x20The\ - \x20id\x20of\x20the\x20database\x20to\x20create\x20and\x20restore\x20to.\ - \x20This\n\x20database\x20must\x20not\x20already\x20exist.\x20The\x20`da\ - tabase_id`\x20appended\x20to\n\x20`parent`\x20forms\x20the\x20full\x20da\ - tabase\x20name\x20of\x20the\x20form\n\x20`projects//instances/<\ - instance>/databases/`.\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\ - \x12\x06\xd2\x05\x02\xcc\x05\x04\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\ - \xd2\x05\x02\x08\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xd2\x05\t\x14\n\r\ - \n\x05\x04\x0e\x02\x01\x03\x12\x04\xd2\x05\x17\x18\n\r\n\x05\x04\x0e\x02\ - \x01\x08\x12\x04\xd2\x05\x19A\n\x10\n\x08\x04\x0e\x02\x01\x08\x9c\x08\0\ - \x12\x04\xd2\x05\x1a@\n=\n\x04\x04\x0e\x08\0\x12\x06\xd5\x05\x02\xdb\x05\ - \x03\x1a-\x20Required.\x20The\x20source\x20from\x20which\x20to\x20restor\ - e.\n\n\r\n\x05\x04\x0e\x08\0\x01\x12\x04\xd5\x05\x08\x0e\n\x91\x01\n\x04\ - \x04\x0e\x02\x02\x12\x06\xd8\x05\x04\xda\x05\x07\x1a\x80\x01\x20Name\x20\ - of\x20the\x20backup\x20from\x20which\x20to\x20restore.\x20\x20Values\x20\ - are\x20of\x20the\x20form\n\x20`projects//instances//b\ - ackups/`.\n\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xd8\x05\x04\n\ - \n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xd8\x05\x0b\x11\n\r\n\x05\x04\x0e\ - \x02\x02\x03\x12\x04\xd8\x05\x14\x15\n\x0f\n\x05\x04\x0e\x02\x02\x08\x12\ - \x06\xd8\x05\x16\xda\x05\x06\n\x11\n\x07\x04\x0e\x02\x02\x08\x9f\x08\x12\ - \x06\xd8\x05\x17\xda\x05\x05\n\xc4\x03\n\x04\x04\x0e\x02\x03\x12\x06\xe3\ - \x05\x02\xe4\x05/\x1a\xb3\x03\x20Optional.\x20An\x20encryption\x20config\ - uration\x20describing\x20the\x20encryption\x20type\x20and\n\x20key\x20re\ - sources\x20in\x20Cloud\x20KMS\x20used\x20to\x20encrypt/decrypt\x20the\ - \x20database\x20to\x20restore\n\x20to.\x20If\x20this\x20field\x20is\x20n\ - ot\x20specified,\x20the\x20restored\x20database\x20will\x20use\x20the\ - \x20same\n\x20encryption\x20configuration\x20as\x20the\x20backup\x20by\ - \x20default,\x20namely\n\x20[encryption_type][google.spanner.admin.datab\ - ase.v1.RestoreDatabaseEncryptionConfig.encryption_type]\n\x20=\x20`USE_C\ - ONFIG_DEFAULT_OR_DATABASE_ENCRYPTION`.\n\n\x0f\n\x05\x04\x0e\x02\x03\x04\ - \x12\x06\xe3\x05\x02\xdb\x05\x03\n\r\n\x05\x04\x0e\x02\x03\x06\x12\x04\ - \xe3\x05\x02!\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\xe3\x05\"3\n\r\n\x05\ - \x04\x0e\x02\x03\x03\x12\x04\xe3\x0567\n\r\n\x05\x04\x0e\x02\x03\x08\x12\ - \x04\xe4\x05\x06.\n\x10\n\x08\x04\x0e\x02\x03\x08\x9c\x08\0\x12\x04\xe4\ - \x05\x07-\nC\n\x02\x04\x0f\x12\x06\xe8\x05\0\x89\x06\x01\x1a5\x20Encrypt\ - ion\x20configuration\x20for\x20the\x20restored\x20database.\n\n\x0b\n\ - \x03\x04\x0f\x01\x12\x04\xe8\x05\x08'\nC\n\x04\x04\x0f\x04\0\x12\x06\xea\ - \x05\x02\xf9\x05\x03\x1a3\x20Encryption\x20types\x20for\x20the\x20databa\ - se\x20to\x20be\x20restored.\n\n\r\n\x05\x04\x0f\x04\0\x01\x12\x04\xea\ - \x05\x07\x15\n*\n\x06\x04\x0f\x04\0\x02\0\x12\x04\xec\x05\x04$\x1a\x1a\ - \x20Unspecified.\x20Do\x20not\x20use.\n\n\x0f\n\x07\x04\x0f\x04\0\x02\0\ - \x01\x12\x04\xec\x05\x04\x1f\n\x0f\n\x07\x04\x0f\x04\0\x02\0\x02\x12\x04\ - \xec\x05\"#\n\x9c\x01\n\x06\x04\x0f\x04\0\x02\x01\x12\x04\xf1\x05\x040\ - \x1a\x8b\x01\x20This\x20is\x20the\x20default\x20option\x20when\n\x20[enc\ - ryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncrypti\ - onConfig]\n\x20is\x20not\x20specified.\n\n\x0f\n\x07\x04\x0f\x04\0\x02\ - \x01\x01\x12\x04\xf1\x05\x04+\n\x0f\n\x07\x04\x0f\x04\0\x02\x01\x02\x12\ - \x04\xf1\x05./\n0\n\x06\x04\x0f\x04\0\x02\x02\x12\x04\xf4\x05\x04\"\x1a\ - \x20\x20Use\x20Google\x20default\x20encryption.\n\n\x0f\n\x07\x04\x0f\ - \x04\0\x02\x02\x01\x12\x04\xf4\x05\x04\x1d\n\x0f\n\x07\x04\x0f\x04\0\x02\ - \x02\x02\x12\x04\xf4\x05\x20!\ny\n\x06\x04\x0f\x04\0\x02\x03\x12\x04\xf8\ - \x05\x04$\x1ai\x20Use\x20customer\x20managed\x20encryption.\x20If\x20spe\ - cified,\x20`kms_key_name`\x20must\n\x20must\x20contain\x20a\x20valid\x20\ - Cloud\x20KMS\x20key.\n\n\x0f\n\x07\x04\x0f\x04\0\x02\x03\x01\x12\x04\xf8\ - \x05\x04\x1f\n\x0f\n\x07\x04\x0f\x04\0\x02\x03\x02\x12\x04\xf8\x05\"#\nG\ - \n\x04\x04\x0f\x02\0\x12\x04\xfc\x05\x02N\x1a9\x20Required.\x20The\x20en\ - cryption\x20type\x20of\x20the\x20restored\x20database.\n\n\x0f\n\x05\x04\ - \x0f\x02\0\x04\x12\x06\xfc\x05\x02\xf9\x05\x03\n\r\n\x05\x04\x0f\x02\0\ - \x06\x12\x04\xfc\x05\x02\x10\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xfc\x05\ - \x11\x20\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xfc\x05#$\n\r\n\x05\x04\x0f\ - \x02\0\x08\x12\x04\xfc\x05%M\n\x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\ - \x04\xfc\x05&L\n\x87\x03\n\x04\x04\x0f\x02\x01\x12\x06\x83\x06\x02\x88\ - \x06\x04\x1a\xf6\x02\x20Optional.\x20The\x20Cloud\x20KMS\x20key\x20that\ - \x20will\x20be\x20used\x20to\x20encrypt/decrypt\x20the\n\x20restored\x20\ - database.\x20This\x20field\x20should\x20be\x20set\x20only\x20when\n\x20[\ - encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncrypt\ - ionConfig.encryption_type]\n\x20is\x20`CUSTOMER_MANAGED_ENCRYPTION`.\x20\ - Values\x20are\x20of\x20the\x20form\n\x20`projects//locations//keyRings//cryptoKeys/`.\n\n\x0f\n\x05\ - \x04\x0f\x02\x01\x04\x12\x06\x83\x06\x02\xfc\x05N\n\r\n\x05\x04\x0f\x02\ - \x01\x05\x12\x04\x83\x06\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\ - \x83\x06\t\x15\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x83\x06\x18\x19\n\ - \x0f\n\x05\x04\x0f\x02\x01\x08\x12\x06\x83\x06\x1a\x88\x06\x03\n\x10\n\ - \x08\x04\x0f\x02\x01\x08\x9c\x08\0\x12\x04\x84\x06\x04*\n\x11\n\x07\x04\ - \x0f\x02\x01\x08\x9f\x08\x12\x06\x85\x06\x04\x87\x06\x05\n\x9d\x01\n\x02\ - \x04\x10\x12\x06\x8d\x06\0\xbd\x06\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\x10\x01\x12\x04\x8d\x06\x08\x1f\nE\n\x04\x04\x10\ - \x02\0\x12\x06\x8f\x06\x02\x91\x06\x05\x1a5\x20Name\x20of\x20the\x20data\ - base\x20being\x20created\x20and\x20restored\x20to.\n\n\x0f\n\x05\x04\x10\ - \x02\0\x04\x12\x06\x8f\x06\x02\x8d\x06!\n\r\n\x05\x04\x10\x02\0\x05\x12\ - \x04\x8f\x06\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\x8f\x06\t\r\n\r\ - \n\x05\x04\x10\x02\0\x03\x12\x04\x8f\x06\x10\x11\n\x0f\n\x05\x04\x10\x02\ - \0\x08\x12\x06\x8f\x06\x12\x91\x06\x04\n\x11\n\x07\x04\x10\x02\0\x08\x9f\ - \x08\x12\x06\x8f\x06\x13\x91\x06\x03\n/\n\x04\x04\x10\x02\x01\x12\x04\ - \x94\x06\x02$\x1a!\x20The\x20type\x20of\x20the\x20restore\x20source.\n\n\ - \x0f\n\x05\x04\x10\x02\x01\x04\x12\x06\x94\x06\x02\x91\x06\x05\n\r\n\x05\ - \x04\x10\x02\x01\x06\x12\x04\x94\x06\x02\x13\n\r\n\x05\x04\x10\x02\x01\ - \x01\x12\x04\x94\x06\x14\x1f\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\x94\ - \x06\"#\n\xbe\x01\n\x04\x04\x10\x08\0\x12\x06\x99\x06\x02\x9c\x06\x03\ - \x1a\xad\x01\x20Information\x20about\x20the\x20source\x20used\x20to\x20r\ - estore\x20the\x20database,\x20as\x20specified\x20by\n\x20`source`\x20in\ - \n\x20[RestoreDatabaseRequest][google.spanner.admin.database.v1.RestoreD\ - atabaseRequest].\n\n\r\n\x05\x04\x10\x08\0\x01\x12\x04\x99\x06\x08\x13\n\ - J\n\x04\x04\x10\x02\x02\x12\x04\x9b\x06\x04\x1f\x1a<\x20Information\x20a\ - bout\x20the\x20backup\x20used\x20to\x20restore\x20the\x20database.\n\n\r\ - \n\x05\x04\x10\x02\x02\x06\x12\x04\x9b\x06\x04\x0e\n\r\n\x05\x04\x10\x02\ - \x02\x01\x12\x04\x9b\x06\x0f\x1a\n\r\n\x05\x04\x10\x02\x02\x03\x12\x04\ - \x9b\x06\x1d\x1e\n\x82\x01\n\x04\x04\x10\x02\x03\x12\x04\xa1\x06\x02!\ - \x1at\x20The\x20progress\x20of\x20the\n\x20[RestoreDatabase][google.span\ - ner.admin.database.v1.DatabaseAdmin.RestoreDatabase]\n\x20operation.\n\n\ - \x0f\n\x05\x04\x10\x02\x03\x04\x12\x06\xa1\x06\x02\x9c\x06\x03\n\r\n\x05\ - \x04\x10\x02\x03\x06\x12\x04\xa1\x06\x02\x13\n\r\n\x05\x04\x10\x02\x03\ - \x01\x12\x04\xa1\x06\x14\x1c\n\r\n\x05\x04\x10\x02\x03\x03\x12\x04\xa1\ - \x06\x1f\x20\n\x87\x06\n\x04\x04\x10\x02\x04\x12\x04\xaf\x06\x02,\x1a\ - \xf8\x05\x20The\x20time\x20at\x20which\x20cancellation\x20of\x20this\x20\ - operation\x20was\x20received.\n\x20[Operations.CancelOperation][google.l\ - ongrunning.Operations.CancelOperation]\n\x20starts\x20asynchronous\x20ca\ - ncellation\x20on\x20a\x20long-running\x20operation.\x20The\x20server\n\ - \x20makes\x20a\x20best\x20effort\x20to\x20cancel\x20the\x20operation,\ - \x20but\x20success\x20is\x20not\x20guaranteed.\n\x20Clients\x20can\x20us\ - e\n\x20[Operations.GetOperation][google.longrunning.Operations.GetOperat\ - ion]\x20or\n\x20other\x20methods\x20to\x20check\x20whether\x20the\x20can\ - cellation\x20succeeded\x20or\x20whether\x20the\n\x20operation\x20complet\ - ed\x20despite\x20cancellation.\x20On\x20successful\x20cancellation,\n\ - \x20the\x20operation\x20is\x20not\x20deleted;\x20instead,\x20it\x20becom\ - es\x20an\x20operation\x20with\n\x20an\x20[Operation.error][google.longru\ - nning.Operation.error]\x20value\x20with\x20a\n\x20[google.rpc.Status.cod\ - e][google.rpc.Status.code]\x20of\x201,\x20corresponding\x20to\n\x20`Code\ - .CANCELLED`.\n\n\x0f\n\x05\x04\x10\x02\x04\x04\x12\x06\xaf\x06\x02\xa1\ - \x06!\n\r\n\x05\x04\x10\x02\x04\x06\x12\x04\xaf\x06\x02\x1b\n\r\n\x05\ - \x04\x10\x02\x04\x01\x12\x04\xaf\x06\x1c'\n\r\n\x05\x04\x10\x02\x04\x03\ - \x12\x04\xaf\x06*+\n\xa0\x06\n\x04\x04\x10\x02\x05\x12\x04\xbc\x06\x02.\ - \x1a\x91\x06\x20If\x20exists,\x20the\x20name\x20of\x20the\x20long-runnin\ - g\x20operation\x20that\x20will\x20be\x20used\x20to\n\x20track\x20the\x20\ - post-restore\x20optimization\x20process\x20to\x20optimize\x20the\x20perf\ - ormance\x20of\n\x20the\x20restored\x20database,\x20and\x20remove\x20the\ - \x20dependency\x20on\x20the\x20restore\x20source.\n\x20The\x20name\x20is\ - \x20of\x20the\x20form\n\x20`projects//instances//data\ - bases//operations/`\n\x20where\x20the\x20\ - \x20is\x20the\x20name\x20of\x20database\x20being\x20created\x20and\x20re\ - stored\x20to.\n\x20The\x20metadata\x20type\x20of\x20the\x20\x20long-runn\ - ing\x20operation\x20is\n\x20[OptimizeRestoredDatabaseMetadata][google.sp\ - anner.admin.database.v1.OptimizeRestoredDatabaseMetadata].\n\x20This\x20\ - long-running\x20operation\x20will\x20be\x20automatically\x20created\x20b\ - y\x20the\x20system\n\x20after\x20the\x20RestoreDatabase\x20long-running\ - \x20operation\x20completes\x20successfully.\n\x20This\x20operation\x20wi\ - ll\x20not\x20be\x20created\x20if\x20the\x20restore\x20was\x20not\x20succ\ - essful.\n\n\x0f\n\x05\x04\x10\x02\x05\x04\x12\x06\xbc\x06\x02\xaf\x06,\n\ - \r\n\x05\x04\x10\x02\x05\x05\x12\x04\xbc\x06\x02\x08\n\r\n\x05\x04\x10\ - \x02\x05\x01\x12\x04\xbc\x06\t)\n\r\n\x05\x04\x10\x02\x05\x03\x12\x04\ - \xbc\x06,-\n\xa7\x02\n\x02\x04\x11\x12\x06\xc3\x06\0\xcb\x06\x01\x1a\x98\ - \x02\x20Metadata\x20type\x20for\x20the\x20long-running\x20operation\x20u\ - sed\x20to\x20track\x20the\x20progress\n\x20of\x20optimizations\x20perfor\ - med\x20on\x20a\x20newly\x20restored\x20database.\x20This\x20long-running\ - \n\x20operation\x20is\x20automatically\x20created\x20by\x20the\x20system\ - \x20after\x20the\x20successful\n\x20completion\x20of\x20a\x20database\ - \x20restore,\x20and\x20cannot\x20be\x20cancelled.\n\n\x0b\n\x03\x04\x11\ - \x01\x12\x04\xc3\x06\x08(\n@\n\x04\x04\x11\x02\0\x12\x06\xc5\x06\x02\xc7\ - \x06\x05\x1a0\x20Name\x20of\x20the\x20restored\x20database\x20being\x20o\ - ptimized.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\xc5\x06\x02\xc3\x06*\n\ - \r\n\x05\x04\x11\x02\0\x05\x12\x04\xc5\x06\x02\x08\n\r\n\x05\x04\x11\x02\ - \0\x01\x12\x04\xc5\x06\t\r\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xc5\x06\ - \x10\x11\n\x0f\n\x05\x04\x11\x02\0\x08\x12\x06\xc5\x06\x12\xc7\x06\x04\n\ - \x11\n\x07\x04\x11\x02\0\x08\x9f\x08\x12\x06\xc5\x06\x13\xc7\x06\x03\n?\ - \n\x04\x04\x11\x02\x01\x12\x04\xca\x06\x02!\x1a1\x20The\x20progress\x20o\ - f\x20the\x20post-restore\x20optimizations.\n\n\x0f\n\x05\x04\x11\x02\x01\ - \x04\x12\x06\xca\x06\x02\xc7\x06\x05\n\r\n\x05\x04\x11\x02\x01\x06\x12\ - \x04\xca\x06\x02\x13\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xca\x06\x14\ - \x1c\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xca\x06\x1f\x20\n9\n\x02\x05\ - \0\x12\x06\xce\x06\0\xd4\x06\x01\x1a+\x20Indicates\x20the\x20type\x20of\ - \x20the\x20restore\x20source.\n\n\x0b\n\x03\x05\0\x01\x12\x04\xce\x06\ - \x05\x16\n&\n\x04\x05\0\x02\0\x12\x04\xd0\x06\x02\x17\x1a\x18\x20No\x20r\ - estore\x20associated.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\xd0\x06\x02\ - \x12\n\r\n\x05\x05\0\x02\0\x02\x12\x04\xd0\x06\x15\x16\n?\n\x04\x05\0\ - \x02\x01\x12\x04\xd3\x06\x02\r\x1a1\x20A\x20backup\x20was\x20used\x20as\ - \x20the\x20source\x20of\x20the\x20restore.\n\n\r\n\x05\x05\0\x02\x01\x01\ - \x12\x04\xd3\x06\x02\x08\n\r\n\x05\x05\0\x02\x01\x02\x12\x04\xd3\x06\x0b\ - \x0cb\x06proto3\ + .admin.database.v1.ListDatabasesResponse.next_page_token]\n\x20from\x20a\ + \x20previous\n\x20[ListDatabasesResponse][google.spanner.admin.database.\ + v1.ListDatabasesResponse].\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\xef\ + \x01\x02\xe9\x01\x16\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][g\ + oogle.spanner.admin.database.v1.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%\x20Databases\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\x20sent\x20in\x20a\x20subsequent\n\x20[ListDatabase\ + s][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]\n\x20ca\ + ll\x20to\x20fetch\x20more\x20of\x20the\x20matching\x20databases.\n\n\x0f\ + \n\x05\x04\x02\x02\x01\x04\x12\x06\xfb\x01\x02\xf6\x01\"\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\x20reque\ + st\x20for\n\x20[CreateDatabase][google.spanner.admin.database.v1.Databas\ + eAdmin.CreateDatabase].\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`projects//instances/`.\n\n\x0f\n\ + \x05\x04\x03\x02\0\x04\x12\x06\x83\x02\x02\x80\x02\x1f\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\x20DA\ + TABASE`\x20statement,\x20which\x20specifies\x20the\x20ID\x20of\x20the\n\ + \x20new\x20database.\x20\x20The\x20database\x20ID\x20must\x20conform\x20\ + to\x20the\x20regular\x20expression\n\x20`[a-z][a-z0-9_\\-]*[a-z0-9]`\x20\ + and\x20be\x20between\x202\x20and\x2030\x20characters\x20in\x20length.\n\ + \x20If\x20the\x20database\x20ID\x20is\x20a\x20reserved\x20word\x20or\x20\ + if\x20it\x20contains\x20a\x20hyphen,\x20the\n\x20database\x20ID\x20must\ + \x20be\x20enclosed\x20in\x20backticks\x20(``\x20`\x20``).\n\n\x0f\n\x05\ + \x04\x03\x02\x01\x04\x12\x06\x8f\x02\x02\x88\x02\x04\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\x20statements\x20to\x20run\x20inside\x20the\x20newly\x20created\ + \n\x20database.\x20Statements\x20can\x20create\x20tables,\x20indexes,\ + \x20etc.\x20These\n\x20statements\x20execute\x20atomically\x20with\x20th\ + e\x20creation\x20of\x20the\x20database:\n\x20if\x20there\x20is\x20an\x20\ + error\x20in\x20any\x20statement,\x20the\x20database\x20is\x20not\x20crea\ + ted.\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\x20for\x20the\x20operation\x20returned\x20by\n\x20[CreateDataba\ + se][google.spanner.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\x20\ + created.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\x9c\x02\x02\x9a\x02\x20\ + \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\x20reque\ + st\x20for\n\x20[GetDatabase][google.spanner.admin.database.v1.DatabaseAd\ + min.GetDatabase].\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\ + \x20Required.\x20The\x20name\x20of\x20the\x20requested\x20database.\x20V\ + alues\x20are\x20of\x20the\x20form\n\x20`projects//instances//databases/`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\ + \xa6\x02\x02\xa3\x02\x1c\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(\ + or\n\x20points)\x20in\x20the\x20future.\x20The\x20server\x20checks\x20th\ + at\x20the\x20statements\n\x20are\x20executable\x20(syntactically\x20vali\ + d,\x20name\x20tables\x20that\x20exist,\x20etc.)\n\x20before\x20enqueuein\ + g\x20them,\x20but\x20they\x20may\x20still\x20fail\x20upon\n\x20later\x20\ + execution\x20(e.g.,\x20if\x20a\x20statement\x20from\x20another\x20batch\ + \x20of\n\x20statements\x20is\x20applied\x20first\x20and\x20it\x20conflic\ + ts\x20in\x20some\x20way,\x20or\x20if\n\x20there\x20is\x20some\x20data-re\ + lated\x20problem\x20like\x20a\x20`NULL`\x20value\x20in\x20a\x20column\ + \x20to\n\x20which\x20`NOT\x20NULL`\x20would\x20be\x20added).\x20If\x20a\ + \x20statement\x20fails,\x20all\n\x20subsequent\x20statements\x20in\x20th\ + e\x20batch\x20are\x20automatically\x20cancelled.\n\n\x20Each\x20batch\ + \x20of\x20statements\x20is\x20assigned\x20a\x20name\x20which\x20can\x20b\ + 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]\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\x0f\n\x05\ + \x04\x06\x02\0\x04\x12\x06\xc0\x02\x02\xbe\x02\"\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\x20to\x20be\x20\ + applied\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.\x20Otherwise,\ + \x20`operation_id`\n\x20is\x20used\x20to\x20construct\x20the\x20name\x20\ + of\x20the\x20resulting\n\x20[Operation][google.longrunning.Operation].\n\ + \n\x20Specifying\x20an\x20explicit\x20operation\x20ID\x20simplifies\x20d\ + etermining\n\x20whether\x20the\x20statements\x20were\x20executed\x20in\ + \x20the\x20event\x20that\x20the\n\x20[UpdateDatabaseDdl][google.spanner.\ + admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20call\x20is\x20re\ + played,\x20or\x20the\x20return\x20value\x20is\x20otherwise\x20lost:\x20t\ + he\n\x20[database][google.spanner.admin.database.v1.UpdateDatabaseDdlReq\ + uest.database]\n\x20and\x20`operation_id`\x20fields\x20can\x20be\x20comb\ + ined\x20to\x20form\x20the\n\x20[name][google.longrunning.Operation.name]\ + \x20of\x20the\x20resulting\n\x20[longrunning.Operation][google.longrunni\ + ng.Operation]:\n\x20`/operations/`.\n\n\x20`oper\ + ation_id`\x20should\x20be\x20unique\x20within\x20the\x20database,\x20and\ + \x20must\x20be\n\x20a\x20valid\x20identifier:\x20`[a-z][a-z0-9_]*`.\x20N\ + ote\x20that\n\x20automatically-generated\x20operation\x20IDs\x20always\ + \x20begin\x20with\x20an\n\x20underscore.\x20If\x20the\x20named\x20operat\ + ion\x20already\x20exists,\n\x20[UpdateDatabaseDdl][google.spanner.admin.\ + database.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20returns\x20`ALREADY_EX\ + ISTS`.\n\n\x0f\n\x05\x04\x06\x02\x02\x04\x12\x06\xdf\x02\x02\xc8\x02J\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.Databas\ + eAdmin.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\x0f\n\x05\x04\x07\x02\0\x04\x12\ + \x06\xe6\x02\x02\xe4\x02#\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.\x20For\x20an\n\x20individual\x20statement,\x20thi\ + s\x20list\x20contains\x20only\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\x20commi\ + t\x20timestamps\x20of\x20all\x20statements\x20that\x20have\n\x20succeede\ + d\x20so\x20far,\x20where\x20`commit_timestamps[i]`\x20is\x20the\x20commi\ + t\n\x20timestamp\x20for\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[DropDatab\ + ase][google.spanner.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\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xf8\x02\ + \x02\xf6\x02\x1d\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\x20req\ + uest\x20for\n\x20[GetDatabaseDdl][google.spanner.admin.database.v1.Datab\ + aseAdmin.GetDatabaseDdl].\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\x20Requir\ + ed.\x20The\x20database\x20whose\x20schema\x20we\x20wish\x20to\x20get.\n\ + \n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\x84\x03\x02\x82\x03\x1f\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs index 4a044903a7..ead4135114 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs @@ -79,62 +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_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 }, -}; - #[derive(Clone)] pub struct DatabaseAdminClient { client: ::grpcio::Client, @@ -290,159 +234,41 @@ 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 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 spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) } +} - 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 trait DatabaseAdmin { + fn list_databases(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::ListDatabasesRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } - - pub fn list_database_operations(&self, req: &super::spanner_database_admin::ListDatabaseOperationsRequest) -> ::grpcio::Result { - self.list_database_operations_opt(req, ::grpcio::CallOption::default()) + fn create_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::CreateDatabaseRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } - - 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) + fn get_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::GetDatabaseRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } - - 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()) + fn update_database_ddl(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::UpdateDatabaseDdlRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } - - 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) + fn drop_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::DropDatabaseRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } - - pub fn list_backup_operations(&self, req: &super::backup::ListBackupOperationsRequest) -> ::grpcio::Result { - self.list_backup_operations_opt(req, ::grpcio::CallOption::default()) + fn get_database_ddl(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::GetDatabaseDdlRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } - - 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) + fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } - - 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()) + fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } - pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) + fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) } } -pub trait DatabaseAdmin { - fn list_databases(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::ListDatabasesRequest, sink: ::grpcio::UnarySink); - fn create_database(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::CreateDatabaseRequest, sink: ::grpcio::UnarySink); - fn get_database(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::GetDatabaseRequest, sink: ::grpcio::UnarySink); - fn update_database_ddl(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::UpdateDatabaseDdlRequest, sink: ::grpcio::UnarySink); - fn drop_database(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::DropDatabaseRequest, sink: ::grpcio::UnarySink); - fn get_database_ddl(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::GetDatabaseDdlRequest, sink: ::grpcio::UnarySink); - fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); - fn create_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::CreateBackupRequest, sink: ::grpcio::UnarySink); - fn get_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::GetBackupRequest, sink: ::grpcio::UnarySink); - fn update_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::UpdateBackupRequest, sink: ::grpcio::UnarySink); - fn delete_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::DeleteBackupRequest, sink: ::grpcio::UnarySink); - fn list_backups(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::ListBackupsRequest, sink: ::grpcio::UnarySink); - fn restore_database(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::RestoreDatabaseRequest, sink: ::grpcio::UnarySink); - fn list_database_operations(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::ListDatabaseOperationsRequest, sink: ::grpcio::UnarySink); - fn list_backup_operations(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::ListBackupOperationsRequest, sink: ::grpcio::UnarySink); -} - pub fn create_database_admin(s: S) -> ::grpcio::Service { let mut builder = ::grpcio::ServiceBuilder::new(); let mut instance = s.clone(); @@ -477,41 +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_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; - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_LIST_BACKUP_OPERATIONS, move |ctx, req, resp| { - instance.list_backup_operations(ctx, req, resp) - }); builder.build() } diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs index f3c70ab625..624d1f079b 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct ReplicaInfo { @@ -3674,598 +3674,605 @@ static file_descriptor_proto_data: &'static [u8] = b"\ eConfigsResponse\x12[\n\x10instance_configs\x18\x01\x20\x03(\x0b20.googl\ 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\"\x8c\x01\n\x12GetInstanceRe\ - quest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xe0A\x02\xfaA!\n\x1fs\ - panner.googleapis.com/Instance\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\xe0A\x02\xfaA-\n+cloudresourcemanager.googl\ - eapis.com/Project\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\xdaA\ - \x06parent\x82\xd3\xe4\x93\x02)\x12'/v1/{parent=projects/*}/instanceConf\ - igs\x12\xb9\x01\n\x11GetInstanceConfig\x12:.google.spanner.admin.instanc\ - e.v1.GetInstanceConfigRequest\x1a0.google.spanner.admin.instance.v1.Inst\ - anceConfig\"6\x82\xd3\xe4\x93\x02)\x12'/v1/{name=projects/*/instanceConf\ - igs/*}\xdaA\x04name\x12\xb4\x01\n\rListInstances\x126.google.spanner.adm\ - in.instance.v1.ListInstancesRequest\x1a7.google.spanner.admin.instance.v\ - 1.ListInstancesResponse\"2\xdaA\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{\ - parent=projects/*}/instances\x12\xa1\x01\n\x0bGetInstance\x124.google.sp\ - anner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.admin.ins\ - tance.v1.Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/insta\ - nces/*}\xdaA\x04name\x12\x9c\x02\n\x0eCreateInstance\x127.google.spanner\ - .admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Oper\ - ation\"\xb1\x01\x82\xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/instances\ - :\x01*\xdaA\x1bparent,instance_id,instance\xcaAd\n)google.spanner.admin.\ - instance.v1.Instance\x127google.spanner.admin.instance.v1.CreateInstance\ - Metadata\x12\x9d\x02\n\x0eUpdateInstance\x127.google.spanner.admin.insta\ - nce.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb2\ - \x01\x82\xd3\xe4\x93\x02/2*/v1/{instance.name=projects/*/instances/*}:\ - \x01*\xdaA\x13instance,field_mask\xcaAd\n)google.spanner.admin.instance.\ - v1.Instance\x127google.spanner.admin.instance.v1.UpdateInstanceMetadata\ - \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\xdaA\x08resource\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/insta\ - nces/*}:getIamPolicy:\x01*\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\xcaA\x16spa\ - nner.googleapis.com\xd2A\\https://www.googleapis.com/auth/cloud-platform\ - ,https://www.googleapis.com/auth/spanner.adminB\x8d\x02\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\\V1\xea\x02+Google::Cloud::Spanner::Admin::Instance::V1J\xf7\ - \xb5\x01\n\x07\x12\x05\x0e\0\xdb\x04\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\"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\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\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\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\xfb\x01\x01\x1a\xcf\x08\x20Cloud\x20Span\ - ner\x20Instance\x20Admin\x20API\n\n\x20The\x20Cloud\x20Spanner\x20Instan\ - ce\x20Admin\x20API\x20can\x20be\x20used\x20to\x20create,\x20delete,\n\ - \x20modify\x20and\x20list\x20instances.\x20Instances\x20are\x20dedicated\ - \x20Cloud\x20Spanner\x20serving\n\x20and\x20storage\x20resources\x20to\ - \x20be\x20used\x20by\x20Cloud\x20Spanner\x20databases.\n\n\x20Each\x20in\ - stance\x20has\x20a\x20\"configuration\",\x20which\x20dictates\x20where\ - \x20the\n\x20serving\x20resources\x20for\x20the\x20Cloud\x20Spanner\x20i\ - nstance\x20are\x20located\x20(e.g.,\n\x20US-central,\x20Europe).\x20Conf\ - igurations\x20are\x20created\x20by\x20Google\x20based\x20on\n\x20resourc\ - e\x20availability.\n\n\x20Cloud\x20Spanner\x20billing\x20is\x20based\x20\ - on\x20the\x20instances\x20that\x20exist\x20and\x20their\n\x20sizes.\x20A\ - fter\x20an\x20instance\x20exists,\x20there\x20are\x20no\x20additional\n\ - \x20per-database\x20or\x20per-operation\x20charges\x20for\x20use\x20of\ - \x20the\x20instance\n\x20(though\x20there\x20may\x20be\x20additional\x20\ - network\x20bandwidth\x20charges).\n\x20Instances\x20offer\x20isolation:\ - \x20problems\x20with\x20databases\x20in\x20one\x20instance\n\x20will\x20\ - not\x20affect\x20other\x20instances.\x20However,\x20within\x20an\x20inst\ - ance\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\x20i\ - nstance\x20resources,\x20fewer\x20resources\x20are\x20available\x20for\ - \x20other\n\x20databases\x20in\x20that\x20instance,\x20and\x20their\x20p\ - erformance\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\x20\ - the\x20supported\x20instance\x20configurations\x20for\x20a\x20given\x20p\ - roject.\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\nK\n\x04\x06\0\x02\x01\ - \x12\x04I\x02N\x03\x1a=\x20Gets\x20information\x20about\x20a\x20particul\ - ar\x20instance\x20configuration.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03\ - I\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\x04J\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\x02V\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\x04\ - R\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\x20particular\x20instanc\ - e.\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\x20Create\ - s\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\x20p\ - rogress\x20of\x20preparing\x20the\x20new\n\x20instance.\x20The\x20instan\ - ce\x20name\x20is\x20assigned\x20by\x20the\x20caller.\x20If\x20the\n\x20n\ - amed\x20instance\x20already\x20exists,\x20`CreateInstance`\x20returns\n\ - \x20`ALREADY_EXISTS`.\n\n\x20Immediately\x20upon\x20completion\x20of\x20\ - this\x20request:\n\n\x20\x20\x20*\x20The\x20instance\x20is\x20readable\ - \x20via\x20the\x20API,\x20with\x20all\x20requested\x20attributes\n\x20\ - \x20\x20\x20\x20but\x20no\x20allocated\x20resources.\x20Its\x20state\x20\ - is\x20`CREATING`.\n\n\x20Until\x20completion\x20of\x20the\x20returned\ - \x20operation:\n\n\x20\x20\x20*\x20Cancelling\x20the\x20operation\x20ren\ - ders\x20the\x20instance\x20immediately\x20unreadable\n\x20\x20\x20\x20\ - \x20via\x20the\x20API.\n\x20\x20\x20*\x20The\x20instance\x20can\x20be\ - \x20deleted.\n\x20\x20\x20*\x20All\x20other\x20attempts\x20to\x20modify\ - \x20the\x20instance\x20are\x20rejected.\n\n\x20Upon\x20completion\x20of\ - \x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20Billing\x20for\x20\ - all\x20successfully-allocated\x20resources\x20begins\x20(some\x20types\n\ - \x20\x20\x20\x20\x20may\x20have\x20lower\x20than\x20the\x20requested\x20\ - levels).\n\x20\x20\x20*\x20Databases\x20can\x20be\x20created\x20in\x20th\ - e\x20instance.\n\x20\x20\x20*\x20The\x20instance's\x20allocated\x20resou\ - rce\x20levels\x20are\x20readable\x20via\x20the\x20API.\n\x20\x20\x20*\ - \x20The\x20instance's\x20state\x20becomes\x20`READY`.\n\n\x20The\x20retu\ + ceConfigRequest\x12A\n\x04name\x18\x01\x20\x01(\tR\x04nameB-\xe0A\x02\ + \xfaA'\n%spanner.googleapis.com/InstanceConfig\"\x8c\x01\n\x12GetInstanc\ + eRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xe0A\x02\xfaA!\n\ + \x1fspanner.googleapis.com/Instance\x129\n\nfield_mask\x18\x02\x20\x01(\ + \x0b2\x1a.google.protobuf.FieldMaskR\tfieldMask\"\xd7\x01\n\x15CreateIns\ + tanceRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xe0A\x02\ + \xfaA-\n+cloudresourcemanager.googleapis.com/Project\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\x08instan\ + ceB\x03\xe0A\x02\"\xb7\x01\n\x14ListInstancesRequest\x12K\n\x06parent\ + \x18\x01\x20\x01(\tR\x06parentB3\xe0A\x02\xfaA-\n+cloudresourcemanager.g\ + oogleapis.com/Project\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08page\ + Size\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06f\ + ilter\x18\x04\x20\x01(\tR\x06filter\"\x89\x01\n\x15ListInstancesResponse\ + \x12H\n\tinstances\x18\x01\x20\x03(\x0b2*.google.spanner.admin.instance.\ + v1.InstanceR\tinstances\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rn\ + extPageToken\"\xa4\x01\n\x15UpdateInstanceRequest\x12K\n\x08instance\x18\ + \x01\x20\x01(\x0b2*.google.spanner.admin.instance.v1.InstanceR\x08instan\ + ceB\x03\xe0A\x02\x12>\n\nfield_mask\x18\x02\x20\x01(\x0b2\x1a.google.pro\ + tobuf.FieldMaskR\tfieldMaskB\x03\xe0A\x02\"T\n\x15DeleteInstanceRequest\ + \x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xfaA!\n\x1fspanner.googlea\ + pis.com/Instance\xe0A\x02\"\x8f\x02\n\x16CreateInstanceMetadata\x12F\n\ + \x08instance\x18\x01\x20\x01(\x0b2*.google.spanner.admin.instance.v1.Ins\ + tanceR\x08instance\x129\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.p\ + rotobuf.TimestampR\tstartTime\x12;\n\x0bcancel_time\x18\x03\x20\x01(\x0b\ + 2\x1a.google.protobuf.TimestampR\ncancelTime\x125\n\x08end_time\x18\x04\ + \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\"\x8f\x02\n\x16\ + UpdateInstanceMetadata\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\x0bc\ + ancel_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncancelT\ + ime\x125\n\x08end_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.Timesta\ + mpR\x07endTime2\xbf\x10\n\rInstanceAdmin\x12\xcc\x01\n\x13ListInstanceCo\ + nfigs\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.v1.GetInstanceConfigRequest\x1a0.google.spanner.admin.instance.\ + v1.InstanceConfig\"6\xdaA\x04name\x82\xd3\xe4\x93\x02)\x12'/v1/{name=pro\ + jects/*/instanceConfigs/*}\x12\xb4\x01\n\rListInstances\x126.google.span\ + ner.admin.instance.v1.ListInstancesRequest\x1a7.google.spanner.admin.ins\ + tance.v1.ListInstancesResponse\"2\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=p\ + rojects/*}/instances\xdaA\x06parent\x12\xa1\x01\n\x0bGetInstance\x124.go\ + ogle.spanner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.ad\ + min.instance.v1.Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/\ + */instances/*}\xdaA\x04name\x12\x9c\x02\n\x0eCreateInstance\x127.google.\ + spanner.admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunni\ + ng.Operation\"\xb1\x01\x82\xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/in\ + stances:\x01*\xdaA\x1bparent,instance_id,instance\xcaAd\n)google.spanner\ + .admin.instance.v1.Instance\x127google.spanner.admin.instance.v1.CreateI\ + nstanceMetadata\x12\x9d\x02\n\x0eUpdateInstance\x127.google.spanner.admi\ + n.instance.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\ + \"\xb2\x01\xcaAd\n)google.spanner.admin.instance.v1.Instance\x127google.\ + spanner.admin.instance.v1.UpdateInstanceMetadata\x82\xd3\xe4\x93\x02/2*/\ + v1/{instance.name=projects/*/instances/*}:\x01*\xdaA\x13instance,field_m\ + ask\x12\x93\x01\n\x0eDeleteInstance\x127.google.spanner.admin.instance.v\ + 1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xdaA\x04name\ + \x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/instances/*}\x12\x9a\x01\n\ + \x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.\ + iam.v1.Policy\"O\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/instanc\ + es/*}:setIamPolicy:\x01*\xdaA\x0fresource,policy\x12\x93\x01\n\x0cGetIam\ + Policy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Pol\ + icy\"H\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/instances/*}:getI\ + amPolicy:\x01*\xdaA\x08resource\x12\xc5\x01\n\x12TestIamPermissions\x12(\ + .google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermi\ + ssionsResponse\"Z\x82\xd3\xe4\x93\x02=\"8/v1/{resource=projects/*/instan\ + ces/*}:testIamPermissions:\x01*\xdaA\x14resource,permissions\x1ax\xcaA\ + \x16spanner.googleapis.com\xd2A\\https://www.googleapis.com/auth/cloud-p\ + latform,https://www.googleapis.com/auth/spanner.adminB\xdf\x01\n$com.goo\ + gle.spanner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZHgoogle\ + .golang.org/genproto/googleapis/spanner/admin/instance/v1;instance\xaa\ + \x02&Google.Cloud.Spanner.Admin.Instance.V1\xca\x02&Google\\Cloud\\Spann\ + er\\Admin\\Instance\\V1J\xd4\xb8\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\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)\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\x20Cloud\x20Spanner\x20Instance\x20Admin\x20API\x20can\x20be\x20\ + used\x20to\x20create,\x20delete,\n\x20modify\x20and\x20list\x20instances\ + .\x20Instances\x20are\x20dedicated\x20Cloud\x20Spanner\x20serving\n\x20a\ + nd\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\x04A\x02F\x03\x1aB\x20Lists\x20the\x20supported\x20instance\ + \x20configurations\x20for\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\nK\n\x04\x06\0\x02\x01\x12\x04I\x02N\x03\x1a=\x20Ge\ + ts\x20information\x20about\x20a\x20particular\x20instance\x20configurati\ + on.\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\x04J\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\x02V\x03\x1a+\x20Lists\x20all\x20instances\x20in\x20\ + the\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\x20info\ + rmation\x20about\x20a\x20particular\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\x20ret\ + urned\x20[long-running\x20operation][google.longrunning.Operation]\n\x20\ + can\x20be\x20used\x20to\x20track\x20the\x20progress\x20of\x20preparing\ + \x20the\x20new\n\x20instance.\x20The\x20instance\x20name\x20is\x20assign\ + ed\x20by\x20the\x20caller.\x20If\x20the\n\x20named\x20instance\x20alread\ + y\x20exists,\x20`CreateInstance`\x20returns\n\x20`ALREADY_EXISTS`.\n\n\ + \x20Immediately\x20upon\x20completion\x20of\x20this\x20request:\n\n\x20\ + \x20\x20*\x20The\x20instance\x20is\x20readable\x20via\x20the\x20API,\x20\ + with\x20all\x20requested\x20attributes\n\x20\x20\x20\x20\x20but\x20no\ + \x20allocated\x20resources.\x20Its\x20state\x20is\x20`CREATING`.\n\n\x20\ + Until\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\x20instance\x20can\x20be\x20deleted.\n\x20\x20\x20*\ + \x20All\x20other\x20attempts\x20to\x20modify\x20the\x20instance\x20are\ + \x20rejected.\n\n\x20Upon\x20completion\x20of\x20the\x20returned\x20oper\ + ation:\n\n\x20\x20\x20*\x20Billing\x20for\x20all\x20successfully-allocat\ + ed\x20resources\x20begins\x20(some\x20types\n\x20\x20\x20\x20\x20may\x20\ + have\x20lower\x20than\x20the\x20requested\x20levels).\n\x20\x20\x20*\x20\ + Databases\x20can\x20be\x20created\x20in\x20the\x20instance.\n\x20\x20\ + \x20*\x20The\x20instance's\x20allocated\x20resource\x20levels\x20are\x20\ + readable\x20via\x20the\x20API.\n\x20\x20\x20*\x20The\x20instance's\x20st\ + ate\x20becomes\x20`READY`.\n\n\x20The\x20returned\x20[long-running\x20op\ + eration][google.longrunning.Operation]\x20will\n\x20have\x20a\x20name\ + \x20of\x20the\x20format\x20`/operations/`\ + \x20and\n\x20can\x20be\x20used\x20to\x20track\x20creation\x20of\x20the\ + \x20instance.\x20\x20The\n\x20[metadata][google.longrunning.Operation.me\ + tadata]\x20field\x20type\x20is\n\x20[CreateInstanceMetadata][google.span\ + ner.admin.instance.v1.CreateInstanceMetadata].\n\x20The\x20[response][go\ + ogle.longrunning.Operation.response]\x20field\x20type\x20is\n\x20[Instan\ + ce][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,\x20an\ + d\x20begins\x20allocating\x20or\x20releasing\x20resources\n\x20as\x20req\ + uested.\x20The\x20returned\x20[long-running\n\x20operation][google.longr\ + unning.Operation]\x20can\x20be\x20used\x20to\x20track\x20the\n\x20progre\ + ss\x20of\x20updating\x20the\x20instance.\x20If\x20the\x20named\x20instan\ + ce\x20does\x20not\n\x20exist,\x20returns\x20`NOT_FOUND`.\n\n\x20Immediat\ + ely\x20upon\x20completion\x20of\x20this\x20request:\n\n\x20\x20\x20*\x20\ + For\x20resource\x20types\x20for\x20which\x20a\x20decrease\x20in\x20the\ + \x20instance's\x20allocation\n\x20\x20\x20\x20\x20has\x20been\x20request\ + ed,\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\x20metada\ + ta's\n\x20\x20\x20\x20\x20[cancel_time][google.spanner.admin.instance.v1\ + .UpdateInstanceMetadata.cancel_time],\x20and\x20begins\n\x20\x20\x20\x20\ + \x20restoring\x20resources\x20to\x20their\x20pre-request\x20values.\x20T\ + he\x20operation\n\x20\x20\x20\x20\x20is\x20guaranteed\x20to\x20succeed\ + \x20at\x20undoing\x20all\x20resource\x20changes,\n\x20\x20\x20\x20\x20af\ + ter\x20which\x20point\x20it\x20terminates\x20with\x20a\x20`CANCELLED`\ + \x20status.\n\x20\x20\x20*\x20All\x20other\x20attempts\x20to\x20modify\ + \x20the\x20instance\x20are\x20rejected.\n\x20\x20\x20*\x20Reading\x20the\ + \x20instance\x20via\x20the\x20API\x20continues\x20to\x20give\x20the\x20p\ + re-request\n\x20\x20\x20\x20\x20resource\x20levels.\n\n\x20Upon\x20compl\ + etion\x20of\x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20Billing\ + \x20begins\x20for\x20all\x20successfully-allocated\x20resources\x20(some\ + \x20types\n\x20\x20\x20\x20\x20may\x20have\x20lower\x20than\x20the\x20re\ + quested\x20levels).\n\x20\x20\x20*\x20All\x20newly-reserved\x20resources\ + \x20are\x20available\x20for\x20serving\x20the\x20instance's\n\x20\x20\ + \x20\x20\x20tables.\n\x20\x20\x20*\x20The\x20instance's\x20new\x20resour\ + ce\x20levels\x20are\x20readable\x20via\x20the\x20API.\n\n\x20The\x20retu\ rned\x20[long-running\x20operation][google.longrunning.Operation]\x20wil\ l\n\x20have\x20a\x20name\x20of\x20the\x20format\x20`/oper\ - ations/`\x20and\n\x20can\x20be\x20used\x20to\x20track\x20c\ - reation\x20of\x20the\x20instance.\x20\x20The\n\x20[metadata][google.long\ - running.Operation.metadata]\x20field\x20type\x20is\n\x20[CreateInstanceM\ - etadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].\n\x20\ - The\x20[response][google.longrunning.Operation.response]\x20field\x20typ\ - e\x20is\n\x20[Instance][google.spanner.admin.instance.v1.Instance],\x20i\ - f\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\x20ins\ - tance,\x20and\x20begins\x20allocating\x20or\x20releasing\x20resources\n\ - \x20as\x20requested.\x20The\x20returned\x20[long-running\n\x20operation]\ - [google.longrunning.Operation]\x20can\x20be\x20used\x20to\x20track\x20th\ - e\n\x20progress\x20of\x20updating\x20the\x20instance.\x20If\x20the\x20na\ - med\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\x20which\x20a\x20decrea\ - se\x20in\x20the\x20instance's\x20allocation\n\x20\x20\x20\x20\x20has\x20\ - been\x20requested,\x20billing\x20is\x20based\x20on\x20the\x20newly-reque\ - sted\x20level.\n\n\x20Until\x20completion\x20of\x20the\x20returned\x20op\ - eration:\n\n\x20\x20\x20*\x20Cancelling\x20the\x20operation\x20sets\x20i\ - ts\x20metadata's\n\x20\x20\x20\x20\x20[cancel_time][google.spanner.admin\ - .instance.v1.UpdateInstanceMetadata.cancel_time],\x20and\x20begins\n\x20\ - \x20\x20\x20\x20restoring\x20resources\x20to\x20their\x20pre-request\x20\ - values.\x20The\x20operation\n\x20\x20\x20\x20\x20is\x20guaranteed\x20to\ - \x20succeed\x20at\x20undoing\x20all\x20resource\x20changes,\n\x20\x20\ - \x20\x20\x20after\x20which\x20point\x20it\x20terminates\x20with\x20a\x20\ - `CANCELLED`\x20status.\n\x20\x20\x20*\x20All\x20other\x20attempts\x20to\ - \x20modify\x20the\x20instance\x20are\x20rejected.\n\x20\x20\x20*\x20Read\ - ing\x20the\x20instance\x20via\x20the\x20API\x20continues\x20to\x20give\ - \x20the\x20pre-request\n\x20\x20\x20\x20\x20resource\x20levels.\n\n\x20U\ - pon\x20completion\x20of\x20the\x20returned\x20operation:\n\n\x20\x20\x20\ - *\x20Billing\x20begins\x20for\x20all\x20successfully-allocated\x20resour\ - ces\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\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\x20T\ - he\x20returned\x20[long-running\x20operation][google.longrunning.Operati\ - on]\x20will\n\x20have\x20a\x20name\x20of\x20the\x20format\x20`/operations/`\x20and\n\x20can\x20be\x20used\x20to\x20\ - track\x20the\x20instance\x20modification.\x20\x20The\n\x20[metadata][goo\ - gle.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[UpdateI\ - nstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata\ - ].\n\x20The\x20[response][google.longrunning.Operation.response]\x20fiel\ - d\x20type\x20is\n\x20[Instance][google.spanner.admin.instance.v1.Instanc\ - e],\x20if\x20successful.\n\n\x20Authorization\x20requires\x20`spanner.in\ - stances.update`\x20permission\x20on\n\x20resource\x20[name][google.spann\ - er.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\x20instance.\n\n\x20Immediately\x20upon\x20completion\ - \x20of\x20the\x20request:\n\n\x20\x20\x20*\x20Billing\x20ceases\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\x20irrevoc\ - ably\x20disappear\x20from\x20the\x20API.\x20All\x20data\x20in\x20the\x20\ - databases\n\x20\x20\x20\x20\x20is\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\x20con\ - trol\x20policy\x20on\x20an\x20instance\x20resource.\x20Replaces\x20any\n\ - \x20existing\x20policy.\n\n\x20Authorization\x20requires\x20`spanner.ins\ - tances.setIamPolicy`\x20on\n\x20[resource][google.iam.v1.SetIamPolicyReq\ - uest.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\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\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\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\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\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\x81\x02\x07\ - \x12\n\x20\n\x06\x04\0\x04\0\x02\0\x12\x04\x83\x02\x04\x19\x1a\x10\x20No\ - t\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-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\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\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\ - \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\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\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\x20location\x20of\x20the\x20servi\ - ng\x20resources,\x20e.g.\x20\"us-central1\".\n\n\x0f\n\x05\x04\0\x02\0\ - \x04\x12\x06\xa1\x02\x02\x9e\x02\x03\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\x0f\n\ - \x05\x04\0\x02\x01\x04\x12\x06\xa4\x02\x02\xa1\x02\x16\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\x20t\ - rue,\x20this\x20location\x20is\x20designated\x20as\x20the\x20default\x20\ - leader\x20location\x20where\n\x20leader\x20replicas\x20are\x20placed.\ - \x20See\x20the\x20[region\x20types\n\x20documentation](https://cloud.goo\ - gle.com/spanner/docs/instances#region_types)\n\x20for\x20more\x20details\ - .\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\xaa\x02\x02\xa4\x02\x17\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\x20configuration\x20for\x20a\x20Cloud\x20Spanner\x20in\ - stance.\x20Configurations\n\x20define\x20the\x20geographic\x20placement\ - \x20of\x20nodes\x20and\x20their\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\x20of\x20the\x20form\n\x20`projects//i\ - nstanceConfigs/[a-z][-a-z0-9]*`\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\ - \xb8\x02\x02\xb3\x02\x04\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\x20configurat\ - ion\x20as\x20it\x20appears\x20in\x20UIs.\n\n\x0f\n\x05\x04\x01\x02\x01\ - \x04\x12\x06\xbb\x02\x02\xb8\x02\x12\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\x20\ - of\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\x92\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\x0f\n\x05\x04\ - \x02\x02\0\x04\x12\x06\xdc\x02\x02\xd6\x02\x03\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\x18\x1a\xaf\x02\x20Required\ - .\x20The\x20name\x20of\x20the\x20instance's\x20configuration.\x20Values\ - \x20are\x20of\x20the\x20form\n\x20`projects//instanceConfigs/`.\x20See\n\x20also\x20[InstanceConfig][google.spanner.admi\ - n.instance.v1.InstanceConfig]\x20and\n\x20[ListInstanceConfigs][google.s\ - panner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].\n\n\x0f\n\ - \x05\x04\x02\x02\x01\x04\x12\x06\xe2\x02\x02\xdc\x02\x12\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\x17\n\ - \x11\n\x07\x04\x02\x02\x01\x08\x9f\x08\x12\x06\xe2\x02\x15\xe4\x02\x16\n\ - \x9e\x01\n\x04\x04\x02\x02\x02\x12\x04\xe8\x02\x02\x1a\x1a\x8f\x01\x20Re\ - quired.\x20The\x20descriptive\x20name\x20for\x20this\x20instance\x20as\ - \x20it\x20appears\x20in\x20UIs.\n\x20Must\x20be\x20unique\x20per\x20proj\ - ect\x20and\x20between\x204\x20and\x2030\x20characters\x20in\x20length.\n\ - \n\x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xe8\x02\x02\xe4\x02\x18\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\x20nodes\x20allocated\x20to\ - \x20this\x20instance.\x20This\x20may\x20be\x20zero\n\x20in\x20API\x20res\ - ponses\x20for\x20instances\x20that\x20are\x20not\x20yet\x20in\x20state\ - \x20`READY`.\n\n\x20See\x20[the\n\x20documentation](https://cloud.google\ - .com/spanner/docs/instances#node_count)\n\x20for\x20more\x20information\ - \x20about\x20nodes.\n\n\x0f\n\x05\x04\x02\x02\x03\x04\x12\x06\xf0\x02\ - \x02\xe8\x02\x1a\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\x20only.\x20The\x20current\ - \x20instance\x20state.\x20For\n\x20[CreateInstance][google.spanner.admin\ - .instance.v1.InstanceAdmin.CreateInstance],\x20the\x20state\x20must\x20b\ - e\n\x20either\x20omitted\x20or\x20set\x20to\x20`CREATING`.\x20For\n\x20[\ - UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateIns\ - tance],\x20the\x20state\x20must\x20be\n\x20either\x20omitted\x20or\x20se\ - t\x20to\x20`READY`.\n\n\x0f\n\x05\x04\x02\x02\x04\x04\x12\x06\xf7\x02\ - \x02\xf0\x02\x17\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\x20an\ - d\x20lightweight\x20mechanism\x20for\x20organizing\x20cloud\n\x20resourc\ - es\x20into\x20groups\x20that\x20reflect\x20a\x20customer's\x20organizati\ - onal\x20needs\x20and\n\x20deployment\x20strategies.\x20Cloud\x20Labels\ - \x20can\x20be\x20used\x20to\x20filter\x20collections\x20of\n\x20resource\ - s.\x20They\x20can\x20be\x20used\x20to\x20control\x20how\x20resource\x20m\ - etrics\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\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\x20resource.\n\n\x20See\x20https://goo.gl/xmQnxf\x20for\x20more\x20\ - information\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\x20the\x20future.\x20And\x20so\x20you\x20are\x20advised\x20to\x20\ - use\x20an\n\x20internal\x20label\x20representation,\x20such\x20as\x20JSO\ - N,\x20which\x20doesn't\x20rely\x20upon\n\x20specific\x20characters\x20be\ - ing\x20disallowed.\x20\x20For\x20example,\x20representing\x20labels\n\ - \x20as\x20the\x20string:\x20\x20name\x20+\x20\"_\"\x20+\x20value\x20\x20\ - would\x20prove\x20problematic\x20if\x20we\x20were\x20to\n\x20allow\x20\"\ - _\"\x20in\x20a\x20future\x20release.\n\n\x0f\n\x05\x04\x02\x02\x05\x04\ - \x12\x06\x8e\x03\x02\xf7\x02\x12\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\n8\n\x04\x04\x02\ - \x02\x06\x12\x04\x91\x03\x02$\x1a*\x20Deprecated.\x20This\x20field\x20is\ - \x20not\x20populated.\n\n\r\n\x05\x04\x02\x02\x06\x04\x12\x04\x91\x03\ - \x02\n\n\r\n\x05\x04\x02\x02\x06\x05\x12\x04\x91\x03\x0b\x11\n\r\n\x05\ - \x04\x02\x02\x06\x01\x12\x04\x91\x03\x12\x1f\n\r\n\x05\x04\x02\x02\x06\ - \x03\x12\x04\x91\x03\"#\nz\n\x02\x04\x03\x12\x06\x95\x03\0\xa8\x03\x01\ - \x1al\x20The\x20request\x20for\x20[ListInstanceConfigs][google.spanner.a\ - dmin.instance.v1.InstanceAdmin.ListInstanceConfigs].\n\n\x0b\n\x03\x04\ - \x03\x01\x12\x04\x95\x03\x08\"\n\xa7\x01\n\x04\x04\x03\x02\0\x12\x06\x99\ - \x03\x02\x9e\x03\x04\x1a\x96\x01\x20Required.\x20The\x20name\x20of\x20th\ - e\x20project\x20for\x20which\x20a\x20list\x20of\x20supported\x20instance\ - \n\x20configurations\x20is\x20requested.\x20Values\x20are\x20of\x20the\ - \x20form\n\x20`projects/`.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\ - \x06\x99\x03\x02\x95\x03$\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x99\x03\ - \x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x99\x03\t\x0f\n\r\n\x05\x04\ - \x03\x02\0\x03\x12\x04\x99\x03\x12\x13\n\x0f\n\x05\x04\x03\x02\0\x08\x12\ - \x06\x99\x03\x14\x9e\x03\x03\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\ - \x04\x9a\x03\x04*\n\x11\n\x07\x04\x03\x02\0\x08\x9f\x08\x12\x06\x9b\x03\ - \x04\x9d\x03\x05\n\x95\x01\n\x04\x04\x03\x02\x01\x12\x04\xa2\x03\x02\x16\ - \x1a\x86\x01\x20Number\x20of\x20instance\x20configurations\x20to\x20be\ - \x20returned\x20in\x20the\x20response.\x20If\x200\x20or\n\x20less,\x20de\ - faults\x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\ - \n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xa2\x03\x02\x9e\x03\x04\n\r\n\ - \x05\x04\x03\x02\x01\x05\x12\x04\xa2\x03\x02\x07\n\r\n\x05\x04\x03\x02\ - \x01\x01\x12\x04\xa2\x03\x08\x11\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\ - \xa2\x03\x14\x15\n\x8b\x02\n\x04\x04\x03\x02\x02\x12\x04\xa7\x03\x02\x18\ - \x1a\xfc\x01\x20If\x20non-empty,\x20`page_token`\x20should\x20contain\ - \x20a\n\x20[next_page_token][google.spanner.admin.instance.v1.ListInstan\ - ceConfigsResponse.next_page_token]\n\x20from\x20a\x20previous\x20[ListIn\ - stanceConfigsResponse][google.spanner.admin.instance.v1.ListInstanceConf\ - igsResponse].\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xa7\x03\x02\xa2\ - \x03\x16\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xa7\x03\x02\x08\n\r\n\x05\ - \x04\x03\x02\x02\x01\x12\x04\xa7\x03\t\x13\n\r\n\x05\x04\x03\x02\x02\x03\ - \x12\x04\xa7\x03\x16\x17\n{\n\x02\x04\x04\x12\x06\xab\x03\0\xb3\x03\x01\ - \x1am\x20The\x20response\x20for\x20[ListInstanceConfigs][google.spanner.\ - admin.instance.v1.InstanceAdmin.ListInstanceConfigs].\n\n\x0b\n\x03\x04\ - \x04\x01\x12\x04\xab\x03\x08#\n>\n\x04\x04\x04\x02\0\x12\x04\xad\x03\x02\ - /\x1a0\x20The\x20list\x20of\x20requested\x20instance\x20configurations.\ - \n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\xad\x03\x02\n\n\r\n\x05\x04\x04\ - \x02\0\x06\x12\x04\xad\x03\x0b\x19\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\ - \xad\x03\x1a*\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xad\x03-.\n\xd6\x01\n\ - \x04\x04\x04\x02\x01\x12\x04\xb2\x03\x02\x1d\x1a\xc7\x01\x20`next_page_t\ - oken`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[ListInstanceCo\ - nfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfig\ - s]\x20call\x20to\n\x20fetch\x20more\x20of\x20the\x20matching\x20instance\ - \x20configurations.\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\xb2\x03\ - \x02\xad\x03/\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xb2\x03\x02\x08\n\r\ - \n\x05\x04\x04\x02\x01\x01\x12\x04\xb2\x03\t\x18\n\r\n\x05\x04\x04\x02\ - \x01\x03\x12\x04\xb2\x03\x1b\x1c\n~\n\x02\x04\x05\x12\x06\xb7\x03\0\xc0\ - \x03\x01\x1ap\x20The\x20request\x20for\n\x20[GetInstanceConfigRequest][g\ - oogle.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig].\n\n\ - \x0b\n\x03\x04\x05\x01\x12\x04\xb7\x03\x08\x20\n\x95\x01\n\x04\x04\x05\ - \x02\0\x12\x06\xba\x03\x02\xbf\x03\x04\x1a\x84\x01\x20Required.\x20The\ - \x20name\x20of\x20the\x20requested\x20instance\x20configuration.\x20Valu\ - es\x20are\x20of\n\x20the\x20form\x20`projects//instanceConfigs/\ - `.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xba\x03\x02\xb7\x03\"\ - \n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xba\x03\x02\x08\n\r\n\x05\x04\x05\ - \x02\0\x01\x12\x04\xba\x03\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xba\ - \x03\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xba\x03\x12\xbf\x03\ - \x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xbb\x03\x04*\n\x11\ - \n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xbc\x03\x04\xbe\x03\x05\nj\n\ - \x02\x04\x06\x12\x06\xc3\x03\0\xd1\x03\x01\x1a\\\x20The\x20request\x20fo\ - r\x20[GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetIns\ - tance].\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xc3\x03\x08\x1a\n\x82\x01\n\ - \x04\x04\x06\x02\0\x12\x06\xc6\x03\x02\xcb\x03\x04\x1ar\x20Required.\x20\ - The\x20name\x20of\x20the\x20requested\x20instance.\x20Values\x20are\x20o\ - f\x20the\x20form\n\x20`projects//instances/`.\n\n\x0f\ - \n\x05\x04\x06\x02\0\x04\x12\x06\xc6\x03\x02\xc3\x03\x1c\n\r\n\x05\x04\ - \x06\x02\0\x05\x12\x04\xc6\x03\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\ - \x04\xc6\x03\t\r\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xc6\x03\x10\x11\n\ - \x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xc6\x03\x12\xcb\x03\x03\n\x10\n\x08\ - \x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xc7\x03\x04*\n\x11\n\x07\x04\x06\ - \x02\0\x08\x9f\x08\x12\x06\xc8\x03\x04\xca\x03\x05\n\xf4\x01\n\x04\x04\ - \x06\x02\x01\x12\x04\xd0\x03\x02+\x1a\xe5\x01\x20If\x20field_mask\x20is\ - \x20present,\x20specifies\x20the\x20subset\x20of\x20[Instance][google.sp\ - anner.admin.instance.v1.Instance]\x20fields\x20that\n\x20should\x20be\ - \x20returned.\n\x20If\x20absent,\x20all\x20[Instance][google.spanner.adm\ - in.instance.v1.Instance]\x20fields\x20are\x20returned.\n\n\x0f\n\x05\x04\ - \x06\x02\x01\x04\x12\x06\xd0\x03\x02\xcb\x03\x04\n\r\n\x05\x04\x06\x02\ - \x01\x06\x12\x04\xd0\x03\x02\x1b\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\ - \xd0\x03\x1c&\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xd0\x03)*\np\n\x02\ - \x04\x07\x12\x06\xd4\x03\0\xe6\x03\x01\x1ab\x20The\x20request\x20for\x20\ - [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateIn\ - stance].\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xd4\x03\x08\x1d\n\x82\x01\n\ - \x04\x04\x07\x02\0\x12\x06\xd7\x03\x02\xdc\x03\x04\x1ar\x20Required.\x20\ - The\x20name\x20of\x20the\x20project\x20in\x20which\x20to\x20create\x20th\ - e\x20instance.\x20Values\n\x20are\x20of\x20the\x20form\x20`projects/`.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xd7\x03\x02\xd4\x03\x1f\ - \n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xd7\x03\x02\x08\n\r\n\x05\x04\x07\ - \x02\0\x01\x12\x04\xd7\x03\t\x0f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xd7\ - \x03\x12\x13\n\x0f\n\x05\x04\x07\x02\0\x08\x12\x06\xd7\x03\x14\xdc\x03\ - \x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xd8\x03\x04*\n\x11\ - \n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xd9\x03\x04\xdb\x03\x05\n\xae\ - \x01\n\x04\x04\x07\x02\x01\x12\x04\xe1\x03\x02B\x1a\x9f\x01\x20Required.\ - \x20The\x20ID\x20of\x20the\x20instance\x20to\x20create.\x20\x20Valid\x20\ - identifiers\x20are\x20of\x20the\n\x20form\x20`[a-z][-a-z0-9]*[a-z0-9]`\ - \x20and\x20must\x20be\x20between\x202\x20and\x2064\x20characters\x20in\n\ - \x20length.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xe1\x03\x02\xdc\ - \x03\x04\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xe1\x03\x02\x08\n\r\n\x05\ - \x04\x07\x02\x01\x01\x12\x04\xe1\x03\t\x14\n\r\n\x05\x04\x07\x02\x01\x03\ - \x12\x04\xe1\x03\x17\x18\n\r\n\x05\x04\x07\x02\x01\x08\x12\x04\xe1\x03\ - \x19A\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\xe1\x03\x1a@\n\ - \x89\x01\n\x04\x04\x07\x02\x02\x12\x04\xe5\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\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xe5\x03\x02\ - \xe1\x03B\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xe5\x03\x02\n\n\r\n\x05\ - \x04\x07\x02\x02\x01\x12\x04\xe5\x03\x0b\x13\n\r\n\x05\x04\x07\x02\x02\ - \x03\x12\x04\xe5\x03\x16\x17\n\r\n\x05\x04\x07\x02\x02\x08\x12\x04\xe5\ - \x03\x18@\n\x10\n\x08\x04\x07\x02\x02\x08\x9c\x08\0\x12\x04\xe5\x03\x19?\ - \nn\n\x02\x04\x08\x12\x06\xe9\x03\0\x90\x04\x01\x1a`\x20The\x20request\ - \x20for\x20[ListInstances][google.spanner.admin.instance.v1.InstanceAdmi\ - n.ListInstances].\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xe9\x03\x08\x1c\n\ - \x8d\x01\n\x04\x04\x08\x02\0\x12\x06\xec\x03\x02\xf1\x03\x04\x1a}\x20Req\ - uired.\x20The\x20name\x20of\x20the\x20project\x20for\x20which\x20a\x20li\ - st\x20of\x20instances\x20is\n\x20requested.\x20Values\x20are\x20of\x20th\ - e\x20form\x20`projects/`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\ - \x06\xec\x03\x02\xe9\x03\x1e\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xec\x03\ - \x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xec\x03\t\x0f\n\r\n\x05\x04\ - \x08\x02\0\x03\x12\x04\xec\x03\x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\x12\ - \x06\xec\x03\x14\xf1\x03\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\ - \x04\xed\x03\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xee\x03\ - \x04\xf0\x03\x05\n\x86\x01\n\x04\x04\x08\x02\x01\x12\x04\xf5\x03\x02\x16\ - \x1ax\x20Number\x20of\x20instances\x20to\x20be\x20returned\x20in\x20the\ - \x20response.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\x20the\x20se\ - rver's\x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x08\x02\ - \x01\x04\x12\x06\xf5\x03\x02\xf1\x03\x04\n\r\n\x05\x04\x08\x02\x01\x05\ - \x12\x04\xf5\x03\x02\x07\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xf5\x03\ - \x08\x11\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xf5\x03\x14\x15\n\xf9\x01\ - \n\x04\x04\x08\x02\x02\x12\x04\xfa\x03\x02\x18\x1a\xea\x01\x20If\x20non-\ - empty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][\ - google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token]\ + ations/`\x20and\n\x20can\x20be\x20used\x20to\x20track\x20t\ + he\x20instance\x20modification.\x20\x20The\n\x20[metadata][google.longru\ + nning.Operation.metadata]\x20field\x20type\x20is\n\x20[UpdateInstanceMet\ + adata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].\n\x20Th\ + e\x20[response][google.longrunning.Operation.response]\x20field\x20type\ + \x20is\n\x20[Instance][google.spanner.admin.instance.v1.Instance],\x20if\ + \x20successful.\n\n\x20Authorization\x20requires\x20`spanner.instances.u\ + pdate`\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\x20Delete\ + s\x20an\x20instance.\n\n\x20Immediately\x20upon\x20completion\x20of\x20t\ + he\x20request:\n\n\x20\x20\x20*\x20Billing\x20ceases\x20for\x20all\x20of\ + \x20the\x20instance's\x20reserved\x20resources.\n\n\x20Soon\x20afterward\ + :\n\n\x20\x20\x20*\x20The\x20instance\x20and\x20*all\x20of\x20its\x20dat\ + abases*\x20immediately\x20and\n\x20\x20\x20\x20\x20irrevocably\x20disapp\ + ear\x20from\x20the\x20API.\x20All\x20data\x20in\x20the\x20databases\n\ + \x20\x20\x20\x20\x20is\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\x20Authorization\x20requires\x20`spanner.instances.setIa\ + mPolicy`\x20on\n\x20[resource][google.iam.v1.SetIamPolicyRequest.resourc\ + e].\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\x20acces\ + s\x20control\x20policy\x20for\x20an\x20instance\x20resource.\x20Returns\ + \x20an\x20empty\n\x20policy\x20if\x20an\x20instance\x20exists\x20but\x20\ + does\x20not\x20have\x20a\x20policy\x20set.\n\n\x20Authorization\x20requi\ + res\x20`spanner.instances.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\x20permissions\x20that\x20the\x20caller\x20has\x20on\ + \x20the\x20specified\x20instance\x20resource.\n\n\x20Attempting\x20this\ + \x20RPC\x20on\x20a\x20non-existent\x20Cloud\x20Spanner\x20instance\x20re\ + source\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\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[replica\x20types\n\x20documentation](https://clou\ + d.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\x20specifi\ + ed.\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\x20repl\ + icas\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\x20to\x20commit\x20\ + a\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\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\x20sup\ + port\x20reads\x20(not\x20writes).\x20Read-only\x20replicas:\n\n\x20*\x20\ + Maintain\x20a\x20full\x20copy\x20of\x20your\x20data.\n\x20*\x20Serve\x20\ + reads.\n\x20*\x20Do\x20not\x20participate\x20in\x20voting\x20to\x20commi\ + t\x20writes.\n\x20*\x20Are\x20not\x20eligible\x20to\x20become\x20a\x20le\ + ader.\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\x20r\ + eplicas\x20don't\x20support\x20reads\x20but\x20do\x20participate\x20in\ + \x20voting\x20to\n\x20commit\x20writes.\x20Witness\x20replicas:\n\n\x20*\ + \x20Do\x20not\x20maintain\x20a\x20full\x20copy\x20of\x20data.\n\x20*\x20\ + Do\x20not\x20serve\x20reads.\n\x20*\x20Vote\x20whether\x20to\x20commit\ + \x20writes.\n\x20*\x20Participate\x20in\x20leader\x20election\x20but\x20\ + are\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\x20location\x20of\x20the\x20serving\x20resources,\ + \x20e.g.\x20\"us-central1\".\n\n\x0f\n\x05\x04\0\x02\0\x04\x12\x06\xa1\ + \x02\x02\x9e\x02\x03\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\x0f\n\x05\x04\0\x02\x01\ + \x04\x12\x06\xa4\x02\x02\xa1\x02\x16\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\x20wh\ + ere\n\x20leader\x20replicas\x20are\x20placed.\x20See\x20the\x20[region\ + \x20types\n\x20documentation](https://cloud.google.com/spanner/docs/inst\ + ances#region_types)\n\x20for\x20more\x20details.\n\n\x0f\n\x05\x04\0\x02\ + \x02\x04\x12\x06\xaa\x02\x02\xa4\x02\x17\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\x20configura\ + tion\x20for\x20a\x20Cloud\x20Spanner\x20instance.\x20Configurations\n\ + \x20define\x20the\x20geographic\x20placement\x20of\x20nodes\x20and\x20th\ + eir\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\x20f\ + or\x20the\x20instance\x20configuration.\x20\x20Values\n\x20are\x20of\x20\ + the\x20form\n\x20`projects//instanceConfigs/[a-z][-a-z0-9]*`\n\ + \n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xb8\x02\x02\xb3\x02\x04\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\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xbb\x02\x02\xb8\x02\ + \x12\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\x20insta\ + nce\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\x20resources\x20on\x20which\x20databases\x20c\ + an\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.\x20Indicates\x20the\x20current\x20stat\ + e\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.\x20Resou\ + rces\x20may\x20not\x20be\n\x20available\x20yet,\x20and\x20operations\x20\ + such\x20as\x20database\x20creation\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\x20do\x20work\x20such\x20as\n\x20creat\ + ing\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\x20Requ\ + ired.\x20A\x20unique\x20identifier\x20for\x20the\x20instance,\x20which\ + \x20cannot\x20be\x20changed\n\x20after\x20the\x20instance\x20is\x20creat\ + ed.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//insta\ + nces/[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\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xdc\x02\x02\xd6\x02\ + \x03\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\x20instanc\ + e's\x20configuration.\x20Values\x20are\x20of\x20the\x20form\n\x20`projec\ + ts//instanceConfigs/`.\x20See\n\x20also\x20[Inst\ + anceConfig][google.spanner.admin.instance.v1.InstanceConfig]\x20and\n\ + \x20[ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin\ + .ListInstanceConfigs].\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xe2\x02\ + \x02\xdc\x02\x12\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\x20instance\x20as\x20it\x20appears\x20in\x20UIs.\n\x20Must\x20b\ + e\x20unique\x20per\x20project\x20and\x20between\x204\x20and\x2030\x20cha\ + racters\x20in\x20length.\n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xe8\ + \x02\x02\xe4\x02\x05\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\ + \x20nodes\x20allocated\x20to\x20this\x20instance.\x20This\x20may\x20be\ + \x20zero\n\x20in\x20API\x20responses\x20for\x20instances\x20that\x20are\ + \x20not\x20yet\x20in\x20state\x20`READY`.\n\n\x20See\x20[the\n\x20docume\ + ntation](https://cloud.google.com/spanner/docs/instances#node_count)\n\ + \x20for\x20more\x20information\x20about\x20nodes.\n\n\x0f\n\x05\x04\x02\ + \x02\x03\x04\x12\x06\xf0\x02\x02\xe8\x02\x1a\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\ + \x20only.\x20The\x20current\x20instance\x20state.\x20For\n\x20[CreateIns\ + tance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],\ + \x20the\x20state\x20must\x20be\n\x20either\x20omitted\x20or\x20set\x20to\ + \x20`CREATING`.\x20For\n\x20[UpdateInstance][google.spanner.admin.instan\ + ce.v1.InstanceAdmin.UpdateInstance],\x20the\x20state\x20must\x20be\n\x20\ + either\x20omitted\x20or\x20set\x20to\x20`READY`.\n\n\x0f\n\x05\x04\x02\ + \x02\x04\x04\x12\x06\xf7\x02\x02\xf0\x02\x17\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\ + \x0f\n\x05\x04\x02\x02\x05\x04\x12\x06\x8e\x03\x02\xf7\x02\x12\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\x20on\ + \x20the\x20instance\x20config.\n\x20For\x20example,\x20instances\x20loca\ + ted\x20in\x20a\x20specific\x20cloud\x20region\x20(or\x20multi\x20region)\ + \n\x20such\x20as\x20nam3,\x20would\x20have\x20a\x20nam3\x20specific\x20e\ + ndpoint\x20URI.\n\x20This\x20URI\x20is\x20to\x20be\x20used\x20implictly\ + \x20by\x20SDK\x20clients,\x20with\x20fallback\x20to\x20default\n\x20URI.\ + \x20These\x20endpoints\x20are\x20intended\x20to\x20optimize\x20the\x20ne\ + twork\x20routing\x20between\n\x20the\x20client\x20and\x20the\x20instance\ + 's\x20serving\x20resources.\n\x20If\x20multiple\x20endpoints\x20are\x20p\ + resent,\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][google.spann\ + er.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\x20in\ + stance\n\x20configurations\x20is\x20requested.\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects/`.\n\n\x0f\n\x05\x04\x03\x02\0\ + \x04\x12\x06\xa0\x03\x02\x9c\x03$\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\x20configurations\ + \x20to\x20be\x20returned\x20in\x20the\x20response.\x20If\x200\x20or\n\ + \x20less,\x20defaults\x20to\x20the\x20server's\x20maximum\x20allowed\x20\ + page\x20size.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xa9\x03\x02\xa5\ + \x03\x04\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`page_token`\x20should\ + \x20contain\x20a\n\x20[next_page_token][google.spanner.admin.instance.v1\ + .ListInstanceConfigsResponse.next_page_token]\n\x20from\x20a\x20previous\ + \x20[ListInstanceConfigsResponse][google.spanner.admin.instance.v1.ListI\ + nstanceConfigsResponse].\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xae\ + \x03\x02\xa9\x03\x16\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\x20for\x20[ListInstanceConfig\ + s][google.spanner.admin.instance.v1.InstanceAdmin.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\x20requested\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.instance.v1.InstanceAdm\ + in.ListInstanceConfigs]\x20call\x20to\n\x20fetch\x20more\x20of\x20the\ + \x20matching\x20instance\x20configurations.\n\n\x0f\n\x05\x04\x04\x02\ + \x01\x04\x12\x06\xb9\x03\x02\xb4\x03/\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\x20request\x20for\n\x20[GetIn\ + stanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetI\ + nstanceConfig].\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\x20\ + Required.\x20The\x20name\x20of\x20the\x20requested\x20instance\x20config\ + uration.\x20Values\x20are\x20of\n\x20the\x20form\x20`projects//\ + instanceConfigs/`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xc1\ + \x03\x02\xbe\x03\"\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\x20\ + request\x20for\x20[GetInstance][google.spanner.admin.instance.v1.Instanc\ + eAdmin.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\x20Req\ + uired.\x20The\x20name\x20of\x20the\x20requested\x20instance.\x20Values\ + \x20are\x20of\x20the\x20form\n\x20`projects//instances/`.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xcd\x03\x02\xca\x03\x1c\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,\x20\ + all\x20[][Instance]\x20fields\x20are\x20returned.\n\n\x0f\n\x05\x04\x06\ + \x02\x01\x04\x12\x06\xd7\x03\x02\xd2\x03\x04\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[Cre\ + ateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstan\ + ce].\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\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xde\x03\x02\xdb\x03\x1f\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\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xe8\x03\x02\xe3\x03\x04\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\x20\ + instance\x20to\x20create.\x20\x20The\x20name\x20may\x20be\x20omitted,\ + \x20but\x20if\n\x20specified\x20must\x20be\x20`/instances/`.\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xec\x03\x02\xe8\x03B\ + \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\x20request\x20for\x20\ + [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInsta\ + nces].\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\x20a\x20list\x20of\x20i\ + nstances\x20is\n\x20requested.\x20Values\x20are\x20of\x20the\x20form\x20\ + `projects/`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xf3\x03\ + \x02\xf0\x03\x1e\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\x20returned\x20in\x20the\x20re\ + sponse.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\x20the\x20server's\ + \x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x08\x02\x01\ + \x04\x12\x06\xfc\x03\x02\xf8\x03\x04\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-em\ + pty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][go\ + ogle.spanner.admin.instance.v1.ListInstancesResponse.next_page_token]\ \x20from\x20a\n\x20previous\x20[ListInstancesResponse][google.spanner.ad\ min.instance.v1.ListInstancesResponse].\n\n\x0f\n\x05\x04\x08\x02\x02\ - \x04\x12\x06\xfa\x03\x02\xf5\x03\x16\n\r\n\x05\x04\x08\x02\x02\x05\x12\ - \x04\xfa\x03\x02\x08\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xfa\x03\t\x13\ - \n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xfa\x03\x16\x17\n\xdd\x06\n\x04\ - \x04\x08\x02\x03\x12\x04\x8f\x04\x02\x14\x1a\xce\x06\x20An\x20expression\ + \x04\x12\x06\x81\x04\x02\xfc\x03\x16\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.\x20Filte\ r\x20rules\x20are\n\x20case\x20insensitive.\x20The\x20fields\x20eligible\ \x20for\x20filtering\x20are:\n\n\x20\x20\x20*\x20`name`\n\x20\x20\x20*\ @@ -4288,112 +4295,112 @@ static file_descriptor_proto_data: &'static [u8] = b"\ nv\"\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\x20\x20\x20\x20containing\x20\"dev\".\n\n\x0f\n\x05\x04\x08\x02\ - \x03\x04\x12\x06\x8f\x04\x02\xfa\x03\x18\n\r\n\x05\x04\x08\x02\x03\x05\ - \x12\x04\x8f\x04\x02\x08\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\x8f\x04\t\ - \x0f\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\x8f\x04\x12\x13\no\n\x02\x04\ - \t\x12\x06\x93\x04\0\x9b\x04\x01\x1aa\x20The\x20response\x20for\x20[List\ + \x03\x04\x12\x06\x96\x04\x02\x81\x04\x18\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\x20The\x20response\x20for\x20[List\ Instances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]\ - .\n\n\x0b\n\x03\x04\t\x01\x12\x04\x93\x04\x08\x1d\n0\n\x04\x04\t\x02\0\ - \x12\x04\x95\x04\x02\"\x1a\"\x20The\x20list\x20of\x20requested\x20instan\ - ces.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\x95\x04\x02\n\n\r\n\x05\x04\t\ - \x02\0\x06\x12\x04\x95\x04\x0b\x13\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x95\ - \x04\x14\x1d\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x95\x04\x20!\n\xbc\x01\n\ - \x04\x04\t\x02\x01\x12\x04\x9a\x04\x02\x1d\x1a\xad\x01\x20`next_page_tok\ + .\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\x20instan\ + ces.\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_tok\ en`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[ListInstances][g\ oogle.spanner.admin.instance.v1.InstanceAdmin.ListInstances]\x20call\x20\ to\x20fetch\x20more\n\x20of\x20the\x20matching\x20instances.\n\n\x0f\n\ - \x05\x04\t\x02\x01\x04\x12\x06\x9a\x04\x02\x95\x04\"\n\r\n\x05\x04\t\x02\ - \x01\x05\x12\x04\x9a\x04\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x9a\ - \x04\t\x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x9a\x04\x1b\x1c\np\n\x02\ - \x04\n\x12\x06\x9e\x04\0\xa8\x04\x01\x1ab\x20The\x20request\x20for\x20[U\ + \x05\x04\t\x02\x01\x04\x12\x06\xa1\x04\x02\x9c\x04\"\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[U\ pdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInst\ - ance].\n\n\x0b\n\x03\x04\n\x01\x12\x04\x9e\x04\x08\x1d\n\xe7\x01\n\x04\ - \x04\n\x02\0\x12\x04\xa1\x04\x02A\x1a\xd8\x01\x20Required.\x20The\x20ins\ + ance].\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\x20ins\ tance\x20to\x20update,\x20which\x20must\x20always\x20include\x20the\x20i\ nstance\n\x20name.\x20\x20Otherwise,\x20only\x20fields\x20mentioned\x20i\ - n\x20[field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest\ - .field_mask]\x20need\x20be\x20included.\n\n\x0f\n\x05\x04\n\x02\0\x04\ - \x12\x06\xa1\x04\x02\x9e\x04\x1f\n\r\n\x05\x04\n\x02\0\x06\x12\x04\xa1\ - \x04\x02\n\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xa1\x04\x0b\x13\n\r\n\x05\ - \x04\n\x02\0\x03\x12\x04\xa1\x04\x16\x17\n\r\n\x05\x04\n\x02\0\x08\x12\ - \x04\xa1\x04\x18@\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\xa1\x04\ - \x19?\n\xd1\x02\n\x04\x04\n\x02\x01\x12\x04\xa7\x04\x02T\x1a\xc2\x02\x20\ - Required.\x20A\x20mask\x20specifying\x20which\x20fields\x20in\x20[Instan\ - ce][google.spanner.admin.instance.v1.Instance]\x20should\x20be\x20update\ + n\x20[][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mas\ + k]\x20need\x20be\x20included.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\xa8\ + \x04\x02\xa5\x04\x1f\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.adm\ + in.instance.v1.UpdateInstanceRequest.instance]\x20should\x20be\x20update\ d.\n\x20The\x20field\x20mask\x20must\x20always\x20be\x20specified;\x20th\ - is\x20prevents\x20any\x20future\x20fields\x20in\n\x20[Instance][google.s\ - panner.admin.instance.v1.Instance]\x20from\x20being\x20erased\x20acciden\ - tally\x20by\x20clients\x20that\x20do\x20not\x20know\n\x20about\x20them.\ - \n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\xa7\x04\x02\xa1\x04A\n\r\n\x05\ - \x04\n\x02\x01\x06\x12\x04\xa7\x04\x02\x1b\n\r\n\x05\x04\n\x02\x01\x01\ - \x12\x04\xa7\x04\x1c&\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xa7\x04)*\n\r\ - \n\x05\x04\n\x02\x01\x08\x12\x04\xa7\x04+S\n\x10\n\x08\x04\n\x02\x01\x08\ - \x9c\x08\0\x12\x04\xa7\x04,R\np\n\x02\x04\x0b\x12\x06\xab\x04\0\xb4\x04\ + is\x20prevents\x20any\x20future\x20fields\x20in\n\x20[][google.spanner.a\ + dmin.instance.v1.Instance]\x20from\x20being\x20erased\x20accidentally\ + \x20by\x20clients\x20that\x20do\x20not\x20know\n\x20about\x20them.\n\n\ + \x0f\n\x05\x04\n\x02\x01\x04\x12\x06\xae\x04\x02\xa8\x04A\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\xab\x04\x08\x1d\n\x85\x01\n\x04\x04\x0b\x02\0\x12\x06\xae\x04\ - \x02\xb3\x04\x04\x1au\x20Required.\x20The\x20name\x20of\x20the\x20instan\ + \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\x0f\n\x05\x04\x0b\x02\0\x04\ - \x12\x06\xae\x04\x02\xab\x04\x1f\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xae\ - \x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xae\x04\t\r\n\r\n\x05\ - \x04\x0b\x02\0\x03\x12\x04\xae\x04\x10\x11\n\x0f\n\x05\x04\x0b\x02\0\x08\ - \x12\x06\xae\x04\x12\xb3\x04\x03\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\ - \x12\x04\xaf\x04\x04*\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\x06\xb0\ - \x04\x04\xb2\x04\x05\n\x8d\x01\n\x02\x04\x0c\x12\x06\xb8\x04\0\xc8\x04\ + \x12\x06\xb5\x04\x02\xb2\x04\x1f\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.v1.InstanceAd\ - min.CreateInstance].\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xb8\x04\x08\x1e\n\ - +\n\x04\x04\x0c\x02\0\x12\x04\xba\x04\x02\x18\x1a\x1d\x20The\x20instance\ - \x20being\x20created.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xba\x04\ - \x02\xb8\x04\x20\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\xba\x04\x02\n\n\r\n\ - \x05\x04\x0c\x02\0\x01\x12\x04\xba\x04\x0b\x13\n\r\n\x05\x04\x0c\x02\0\ - \x03\x12\x04\xba\x04\x16\x17\n\x8d\x01\n\x04\x04\x0c\x02\x01\x12\x04\xbf\ + min.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\x20The\x20instance\ + \x20being\x20created.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xc1\x04\ + \x02\xbf\x04\x20\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[CreateInsta\ nce][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]\x20r\ equest\x20was\n\x20received.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\ - \xbf\x04\x02\xba\x04\x18\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\xbf\x04\ - \x02\x1b\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xbf\x04\x1c&\n\r\n\x05\ - \x04\x0c\x02\x01\x03\x12\x04\xbf\x04)*\n\xbd\x01\n\x04\x04\x0c\x02\x02\ - \x12\x04\xc4\x04\x02,\x1a\xae\x01\x20The\x20time\x20at\x20which\x20this\ + \xc6\x04\x02\xc1\x04\x18\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\x20undoing\x20itself\x20(which\ \x20is\x20guaranteed\x20to\x20succeed)\x20and\n\x20cannot\x20be\x20cance\ - lled\x20again.\n\n\x0f\n\x05\x04\x0c\x02\x02\x04\x12\x06\xc4\x04\x02\xbf\ - \x04+\n\r\n\x05\x04\x0c\x02\x02\x06\x12\x04\xc4\x04\x02\x1b\n\r\n\x05\ - \x04\x0c\x02\x02\x01\x12\x04\xc4\x04\x1c'\n\r\n\x05\x04\x0c\x02\x02\x03\ - \x12\x04\xc4\x04*+\nV\n\x04\x04\x0c\x02\x03\x12\x04\xc7\x04\x02)\x1aH\ + lled\x20again.\n\n\x0f\n\x05\x04\x0c\x02\x02\x04\x12\x06\xcb\x04\x02\xc6\ + \x04+\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\x20this\x20operation\x20failed\x20or\x20w\ as\x20completed\x20successfully.\n\n\x0f\n\x05\x04\x0c\x02\x03\x04\x12\ - \x06\xc7\x04\x02\xc4\x04,\n\r\n\x05\x04\x0c\x02\x03\x06\x12\x04\xc7\x04\ - \x02\x1b\n\r\n\x05\x04\x0c\x02\x03\x01\x12\x04\xc7\x04\x1c$\n\r\n\x05\ - \x04\x0c\x02\x03\x03\x12\x04\xc7\x04'(\n\x8d\x01\n\x02\x04\r\x12\x06\xcc\ - \x04\0\xdb\x04\x01\x1a\x7f\x20Metadata\x20type\x20for\x20the\x20operatio\ + \x06\xce\x04\x02\xcb\x04,\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\x20operatio\ n\x20returned\x20by\n\x20[UpdateInstance][google.spanner.admin.instance.\ - v1.InstanceAdmin.UpdateInstance].\n\n\x0b\n\x03\x04\r\x01\x12\x04\xcc\ - \x04\x08\x1e\n4\n\x04\x04\r\x02\0\x12\x04\xce\x04\x02\x18\x1a&\x20The\ + v1.InstanceAdmin.UpdateInstance].\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\x0f\n\x05\x04\r\ - \x02\0\x04\x12\x06\xce\x04\x02\xcc\x04\x20\n\r\n\x05\x04\r\x02\0\x06\x12\ - \x04\xce\x04\x02\n\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xce\x04\x0b\x13\n\r\ - \n\x05\x04\r\x02\0\x03\x12\x04\xce\x04\x16\x17\n\x88\x01\n\x04\x04\r\x02\ - \x01\x12\x04\xd2\x04\x02+\x1az\x20The\x20time\x20at\x20which\x20[UpdateI\ + \x02\0\x04\x12\x06\xd5\x04\x02\xd3\x04\x20\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[UpdateI\ nstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]\ \n\x20request\x20was\x20received.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\ - \x06\xd2\x04\x02\xce\x04\x18\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xd2\x04\ - \x02\x1b\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xd2\x04\x1c&\n\r\n\x05\x04\ - \r\x02\x01\x03\x12\x04\xd2\x04)*\n\xbd\x01\n\x04\x04\r\x02\x02\x12\x04\ - \xd7\x04\x02,\x1a\xae\x01\x20The\x20time\x20at\x20which\x20this\x20opera\ + \x06\xd9\x04\x02\xd5\x04\x18\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\x20opera\ tion\x20was\x20cancelled.\x20If\x20set,\x20this\x20operation\x20is\n\x20\ in\x20the\x20process\x20of\x20undoing\x20itself\x20(which\x20is\x20guara\ nteed\x20to\x20succeed)\x20and\n\x20cannot\x20be\x20cancelled\x20again.\ - \n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xd7\x04\x02\xd2\x04+\n\r\n\x05\ - \x04\r\x02\x02\x06\x12\x04\xd7\x04\x02\x1b\n\r\n\x05\x04\r\x02\x02\x01\ - \x12\x04\xd7\x04\x1c'\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\xd7\x04*+\nV\n\ - \x04\x04\r\x02\x03\x12\x04\xda\x04\x02)\x1aH\x20The\x20time\x20at\x20whi\ + \n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xde\x04\x02\xd9\x04+\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\x20whi\ ch\x20this\x20operation\x20failed\x20or\x20was\x20completed\x20successfu\ - lly.\n\n\x0f\n\x05\x04\r\x02\x03\x04\x12\x06\xda\x04\x02\xd7\x04,\n\r\n\ - \x05\x04\r\x02\x03\x06\x12\x04\xda\x04\x02\x1b\n\r\n\x05\x04\r\x02\x03\ - \x01\x12\x04\xda\x04\x1c$\n\r\n\x05\x04\r\x02\x03\x03\x12\x04\xda\x04'(b\ + lly.\n\n\x0f\n\x05\x04\r\x02\x03\x04\x12\x06\xe1\x04\x02\xde\x04,\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\ "; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs index 95a98aae0a..9d395ead21 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs @@ -263,16 +263,36 @@ impl InstanceAdminClient { } pub trait InstanceAdmin { - fn list_instance_configs(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::ListInstanceConfigsRequest, sink: ::grpcio::UnarySink); - fn get_instance_config(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::GetInstanceConfigRequest, sink: ::grpcio::UnarySink); - fn list_instances(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::ListInstancesRequest, sink: ::grpcio::UnarySink); - fn get_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::GetInstanceRequest, sink: ::grpcio::UnarySink); - fn create_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::CreateInstanceRequest, sink: ::grpcio::UnarySink); - fn update_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::UpdateInstanceRequest, sink: ::grpcio::UnarySink); - fn delete_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::DeleteInstanceRequest, sink: ::grpcio::UnarySink); - fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); + fn list_instance_configs(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::ListInstanceConfigsRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn get_instance_config(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::GetInstanceConfigRequest, 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) + } + fn get_instance(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::GetInstanceRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn create_instance(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::CreateInstanceRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn update_instance(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::UpdateInstanceRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn delete_instance(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::DeleteInstanceRequest, 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_instance_admin(s: S) -> ::grpcio::Service { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/keys.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/keys.rs index a7911fe63b..aa939e5547 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/keys.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/keys.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct KeyRange { @@ -732,153 +732,152 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\ - \xaf\x01\n\x15com.google.spanner.v1B\tKeysProtoP\x01Z8google.golang.org/\ + \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\\V1\xea\x02\x1aGoogle::Cloud::Spanne\ - r::V1J\x98,\n\x07\x12\x05\x0e\0\xa3\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\ - \x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\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\x08\n\x01\x08\ - \x12\x03\x1b\03\n\t\n\x02\x08-\x12\x03\x1b\03\n\xb5\x15\n\x02\x04\0\x12\ - \x05u\0\x8b\x01\x01\x1a\xa7\x15\x20KeyRange\x20represents\x20a\x20range\ - \x20of\x20rows\x20in\x20a\x20table\x20or\x20index.\n\n\x20A\x20range\x20\ - has\x20a\x20start\x20key\x20and\x20an\x20end\x20key.\x20These\x20keys\ - \x20can\x20be\x20open\x20or\n\x20closed,\x20indicating\x20if\x20the\x20r\ - ange\x20includes\x20rows\x20with\x20that\x20key.\n\n\x20Keys\x20are\x20r\ - epresented\x20by\x20lists,\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.Type\ - Code].\n\n\x20For\x20example,\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)\x20PRIMAR\ - Y\x20KEY(UserName,\x20EventDate);\n\n\x20The\x20following\x20keys\x20nam\ - e\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`UserEvents`\x20table's\x20`PRIMARY\x20KEY`\x20claus\ - e\x20names\x20two\n\x20columns,\x20each\x20`UserEvents`\x20key\x20has\ - \x20two\x20elements;\x20the\x20first\x20is\x20the\n\x20`UserName`,\x20an\ - d\x20the\x20second\x20is\x20the\x20`EventDate`.\n\n\x20Key\x20ranges\x20\ - with\x20multiple\x20components\x20are\x20interpreted\n\x20lexicographica\ - lly\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\"`\x20t\ - hat\x20occurred\x20in\x20the\x20year\x202015:\n\n\x20\x20\x20\x20\x20\"s\ - tart_closed\":\x20[\"Bob\",\x20\"2015-01-01\"]\n\x20\x20\x20\x20\x20\"en\ - d_closed\":\x20[\"Bob\",\x20\"2015-12-31\"]\n\n\x20Start\x20and\x20end\ - \x20keys\x20can\x20omit\x20trailing\x20key\x20components.\x20This\x20aff\ - ects\x20the\n\x20inclusion\x20and\x20exclusion\x20of\x20rows\x20that\x20\ - exactly\x20match\x20the\x20provided\x20key\n\x20components:\x20if\x20the\ - \x20key\x20is\x20closed,\x20then\x20rows\x20that\x20exactly\x20match\x20\ - the\n\x20provided\x20components\x20are\x20included;\x20if\x20the\x20key\ - \x20is\x20open,\x20then\x20rows\n\x20that\x20exactly\x20match\x20are\x20\ - not\x20included.\n\n\x20For\x20example,\x20the\x20following\x20range\x20\ - includes\x20all\x20events\x20for\x20`\"Bob\"`\x20that\n\x20occurred\x20d\ - uring\x20and\x20after\x20the\x20year\x202000:\n\n\x20\x20\x20\x20\x20\"s\ - tart_closed\":\x20[\"Bob\",\x20\"2000-01-01\"]\n\x20\x20\x20\x20\x20\"en\ - d_closed\":\x20[\"Bob\"]\n\n\x20The\x20next\x20example\x20retrieves\x20a\ - ll\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\"start_closed\":\x20[\"Bob\"]\n\x20\x20\x20\x20\x20\"en\ - d_open\":\x20[\"Bob\",\x20\"2000-01-01\"]\n\n\x20The\x20following\x20ran\ - ge\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\x03u\x08\x10\nP\n\x04\x04\0\x08\0\x12\x04w\x02\x7f\x03\ - \x1aB\x20The\x20start\x20key\x20must\x20be\x20provided.\x20It\x20can\x20\ - be\x20either\x20closed\x20or\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\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\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\x03z-.\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\x82\ - \x01\x02\x8a\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\x82\x01\x08\x14\n\x8d\x01\n\x04\x04\0\x02\x02\x12\ - \x04\x85\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\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\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\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`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\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\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\ - \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.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\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\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\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\ - \xa2\x01\x02\x9d\x01\x1f\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\ + 1\xca\x02\x17Google\\Cloud\\Spanner\\V1J\x85,\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\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\xa2\x01\x02\x9d\x01\x1f\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/mutation.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/mutation.rs index b95f12436e..41fd6a2a69 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/mutation.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/mutation.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct Mutation { @@ -1013,132 +1013,120 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\xb3\x01\n\x15com.google.spanner.v1B\rMutationProtoP\x01Z8\ + \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\\V1\xea\x02\x1aGoo\ - gle::Cloud::Spanner::V1J\xd2%\n\x06\x12\x04\x0e\0j\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\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\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\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\x20\ - rows.\x20\x20Mutations\x20can\x20be\n\x20applied\x20to\x20a\x20Cloud\x20\ - Spanner\x20database\x20by\x20sending\x20them\x20in\x20a\n\x20[Commit][go\ - ogle.spanner.v1.Spanner.Commit]\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\x20Ar\ - guments\x20to\x20[insert][google.spanner.v1.Mutation.insert],\x20[update\ - ][google.spanner.v1.Mutation.update],\x20[insert_or_update][google.spann\ - er.v1.Mutation.insert_or_update],\x20and\n\x20[replace][google.spanner.v\ - 1.Mutation.replace]\x20operations.\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\x15\x1a1\x20Required.\ - \x20The\x20table\x20whose\x20rows\x20will\x20be\x20written.\n\n\x0f\n\ - \x07\x04\0\x03\0\x02\0\x04\x12\x04&\x04$\x11\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\x20t\ - he\x20columns\x20in\x20[table][google.spanner.v1.Mutation.Write.table]\ - \x20to\x20be\x20written.\n\n\x20The\x20list\x20of\x20columns\x20must\x20\ - contain\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\x20values\x20to\x20be\x20wri\ - tten.\x20`values`\x20can\x20contain\x20more\x20than\x20one\n\x20list\x20\ - of\x20values.\x20If\x20it\x20does,\x20then\x20multiple\x20rows\x20are\ - \x20written,\x20one\n\x20for\x20each\x20entry\x20in\x20`values`.\x20Each\ - \x20list\x20in\x20`values`\x20must\x20have\n\x20exactly\x20as\x20many\ - \x20entries\x20as\x20there\x20are\x20entries\x20in\x20[columns][google.s\ - panner.v1.Mutation.Write.columns]\n\x20above.\x20Sending\x20multiple\x20\ - lists\x20is\x20equivalent\x20to\x20sending\x20multiple\n\x20`Mutation`s,\ - \x20each\x20containing\x20one\x20`values`\x20entry\x20and\x20repeating\n\ - \x20[table][google.spanner.v1.Mutation.Write.table]\x20and\x20[columns][\ - google.spanner.v1.Mutation.Write.columns].\x20Individual\x20values\x20in\ - \x20each\x20list\x20are\n\x20encoded\x20as\x20described\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\x15\x1a1\x20Required.\x20The\x20table\x20whose\x20rows\x20will\ - \x20be\x20deleted.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\x04\x12\x04=\x04;\ - \x12\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\x94\x03\n\x06\x04\0\x03\x01\x02\x01\x12\x03E\x04\ - \x17\x1a\x84\x03\x20Required.\x20The\x20primary\x20keys\x20of\x20the\x20\ - rows\x20within\x20[table][google.spanner.v1.Mutation.Delete.table]\x20to\ - \x20delete.\x20\x20The\n\x20primary\x20keys\x20must\x20be\x20specified\ - \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\x0f\n\x07\x04\0\x03\x01\x02\x01\x04\x12\x04E\x04=\ - \x15\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\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|\x20Insert\x20new\x20rows\x20in\x20a\x20table.\x20If\x20any\x20of\ - \x20the\x20rows\x20already\x20exist,\n\x20the\x20write\x20or\x20transact\ - ion\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\x20t\ - able.\x20If\x20any\x20of\x20the\x20rows\x20does\x20not\n\x20already\x20e\ - xist,\x20the\x20transaction\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\x20\ - row\x20already\x20exists,\x20then\n\x20its\x20column\x20values\x20are\ - \x20overwritten\x20with\x20the\x20ones\x20provided.\x20Any\n\x20column\ - \x20values\x20not\x20explicitly\x20written\x20are\x20preserved.\n\n\x20W\ - hen\x20using\x20[insert_or_update][google.spanner.v1.Mutation.insert_or_\ - update],\x20just\x20as\x20when\x20using\x20[insert][google.spanner.v1.Mu\ - tation.insert],\x20all\x20`NOT\n\x20NULL`\x20columns\x20in\x20the\x20tab\ - le\x20must\x20be\x20given\x20a\x20value.\x20This\x20holds\x20true\n\x20e\ - ven\x20when\x20the\x20row\x20already\x20exists\x20and\x20will\x20therefo\ - re\x20actually\x20be\x20updated.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\ - Y\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\x20deleted,\x20and\x20the\x20column\x20values\x20provided\x20are\x20i\ - nserted\n\x20instead.\x20Unlike\x20[insert_or_update][google.spanner.v1.\ - Mutation.insert_or_update],\x20this\x20means\x20any\x20values\x20not\n\ - \x20explicitly\x20written\x20become\x20`NULL`.\n\n\x20In\x20an\x20interl\ - eaved\x20table,\x20if\x20you\x20create\x20the\x20child\x20table\x20with\ - \x20the\n\x20`ON\x20DELETE\x20CASCADE`\x20annotation,\x20then\x20replaci\ - ng\x20a\x20parent\x20row\n\x20also\x20deletes\x20the\x20child\x20rows.\ - \x20Otherwise,\x20you\x20must\x20delete\x20the\n\x20child\x20rows\x20bef\ - ore\x20you\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\ - \x20whether\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\ + le.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1J\xde!\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\x15\x1a1\x20Required.\x20The\x20table\x20whose\x20ro\ + ws\x20will\x20be\x20written.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04\ + &\x04$\x11\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\x20columns\x20in\x20[table\ + ][google.spanner.v1.Mutation.Write.table]\x20to\x20be\x20written.\n\n\ + \x20The\x20list\x20of\x20columns\x20must\x20contain\x20enough\x20columns\ + \x20to\x20allow\n\x20Cloud\x20Spanner\x20to\x20derive\x20values\x20for\ + \x20all\x20primary\x20key\x20columns\x20in\x20the\n\x20row(s)\x20to\x20b\ + e\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\x20cont\ + ain\x20more\x20than\x20one\n\x20list\x20of\x20values.\x20If\x20it\x20doe\ + s,\x20then\x20multiple\x20rows\x20are\x20written,\x20one\n\x20for\x20eac\ + h\x20entry\x20in\x20`values`.\x20Each\x20list\x20in\x20`values`\x20must\ + \x20have\n\x20exactly\x20as\x20many\x20entries\x20as\x20there\x20are\x20\ + entries\x20in\x20[columns][google.spanner.v1.Mutation.Write.columns]\n\ + \x20above.\x20Sending\x20multiple\x20lists\x20is\x20equivalent\x20to\x20\ + sending\x20multiple\n\x20`Mutation`s,\x20each\x20containing\x20one\x20`v\ + alues`\x20entry\x20and\x20repeating\n\x20[table][google.spanner.v1.Mutat\ + ion.Write.table]\x20and\x20[columns][google.spanner.v1.Mutation.Write.co\ + lumns].\x20Individual\x20values\x20in\x20each\x20list\x20are\n\x20encode\ + d\x20as\x20described\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;\x02C\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\x15\x1a1\x20Required.\ + \x20The\x20table\x20whose\x20rows\x20will\x20be\x20deleted.\n\n\x0f\n\ + \x07\x04\0\x03\x01\x02\0\x04\x12\x04=\x04;\x12\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][goo\ + gle.spanner.v1.Mutation.Delete.table]\x20to\x20delete.\n\x20Delete\x20is\ + \x20idempotent.\x20The\x20transaction\x20will\x20succeed\x20even\x20if\ + \x20some\x20or\x20all\n\x20rows\x20do\x20not\x20exist.\n\n\x0f\n\x07\x04\ + \0\x03\x01\x02\x01\x04\x12\x04B\x04=\x15\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\x20\ + to\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.\x20If\x20any\x20of\x20the\x20rows\x20already\x20exist,\n\ + \x20the\x20write\x20or\x20transaction\x20fails\x20with\x20error\x20`ALRE\ + ADY_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\x20ex\ + isting\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.inse\ + rt],\x20except\x20that\x20if\x20the\x20row\x20already\x20exists,\x20then\ + \n\x20its\x20column\x20values\x20are\x20overwritten\x20with\x20the\x20on\ + es\x20provided.\x20Any\n\x20column\x20values\x20not\x20explicitly\x20wri\ + tten\x20are\x20preserved.\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],\x20exce\ + pt\x20that\x20if\x20the\x20row\x20already\x20exists,\x20it\x20is\n\x20de\ + leted,\x20and\x20the\x20column\x20values\x20provided\x20are\x20inserted\ + \n\x20instead.\x20Unlike\x20[insert_or_update][google.spanner.v1.Mutatio\ + n.insert_or_update],\x20this\x20means\x20any\x20values\x20not\n\x20expli\ + citly\x20written\x20become\x20`NULL`.\n\n\x20In\x20an\x20interleaved\x20\ + table,\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\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\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\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/query_plan.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/query_plan.rs index 362f1417d7..dddbd02434 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/query_plan.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/query_plan.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct PlanNode { @@ -1140,159 +1140,158 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\xb4\x01\n\x15com.\ + \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\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1J\ - \xdb*\n\x07\x12\x05\x0e\0\x80\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202020\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\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\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\x08\n\x01\x08\x12\x03\x1b\03\n\t\ - \n\x02\x08-\x12\x03\x1b\03\nw\n\x02\x04\0\x12\x04\x1e\0x\x01\x1ak\x20Nod\ - e\x20information\x20for\x20nodes\x20appearing\x20in\x20a\x20[QueryPlan.p\ - lan_nodes][google.spanner.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\x20\ - Metadata\x20associated\x20with\x20a\x20parent-child\x20relationship\x20a\ - ppearing\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\x20node\x20to\x20which\x20the\x20link\x20points.\n\ - \n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04#\x04!\x15\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\ - \x20could\x20be\x20used\x20to\n\x20distinguish\x20between\x20the\x20buil\ - d\x20child\x20and\x20the\x20probe\x20child,\x20or\x20in\x20the\x20case\n\ - \x20of\x20the\x20child\x20being\x20an\x20output\x20variable,\x20to\x20re\ - present\x20the\x20tag\x20associated\n\x20with\x20the\x20output\x20variab\ - le.\n\n\x0f\n\x07\x04\0\x03\0\x02\x01\x04\x12\x04)\x04#\x1a\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][goog\ - le.spanner.v1.PlanNode.Kind.SCALAR]\x20and\x20corresponds\n\x20to\x20an\ - \x20output\x20variable\x20of\x20the\x20parent\x20node.\x20The\x20field\ - \x20carries\x20the\x20name\x20of\n\x20the\x20output\x20variable.\n\x20Fo\ - r\x20example,\x20a\x20`TableScan`\x20operator\x20that\x20reads\x20rows\ - \x20from\x20a\x20table\x20will\n\x20have\x20child\x20links\x20to\x20the\ - \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\x0f\n\x07\x04\0\x03\0\x02\x02\x04\x12\x043\x04)\x14\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{\x20Co\ - ndensed\x20representation\x20of\x20a\x20node\x20and\x20its\x20subtree.\ - \x20Only\x20present\x20for\n\x20`SCALAR`\x20[PlanNode(s)][google.spanner\ - .v1.PlanNode].\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x038\n\x1d\nW\n\x06\ - \x04\0\x03\x01\x02\0\x12\x03:\x04\x1b\x1aH\x20A\x20string\x20representat\ - ion\x20of\x20the\x20expression\x20subtree\x20rooted\x20at\x20this\x20nod\ - e.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\x04\x12\x04:\x048\x1f\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\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\x20\ - A\x20mapping\x20of\x20(subquery\x20variable\x20name)\x20->\x20(subquery\ - \x20node\x20id)\x20for\x20cases\n\x20where\x20the\x20`description`\x20st\ - ring\x20of\x20this\x20node\x20references\x20a\x20`SCALAR`\n\x20subquery\ - \x20contained\x20in\x20the\x20expression\x20subtree\x20rooted\x20at\x20t\ - his\x20node.\x20The\n\x20referenced\x20`SCALAR`\x20subquery\x20may\x20no\ - t\x20necessarily\x20be\x20a\x20direct\x20child\x20of\n\x20this\x20node.\ - \n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x04\x12\x04A\x04:\x1b\n\x0e\n\x07\ - \x04\0\x03\x01\x02\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\x03\ - A$%\n\x9d\x01\n\x04\x04\0\x04\0\x12\x04F\x02T\x03\x1a\x8e\x01\x20The\x20\ - kind\x20of\x20[PlanNode][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\x20specified.\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\x20operator\x20node\x20in\x20the\x20expression\x20tree.\ - \x20Relational\n\x20operators\x20represent\x20iterative\x20processing\ - \x20of\x20rows\x20during\x20query\x20execution.\n\x20For\x20example,\x20\ - a\x20`TableScan`\x20operation\x20that\x20reads\x20rows\x20from\x20a\x20t\ - able.\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\x20expression\x20tree.\x20Scalar\x20nodes\x20represent\n\ - \x20non-iterable\x20entities\x20in\x20the\x20query\x20plan.\x20For\x20ex\ - ample,\x20constants\x20or\n\x20arithmetic\x20operators\x20appearing\x20i\ - nside\x20predicate\x20expressions\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\x03\ - W\x02\x12\x1aP\x20The\x20`PlanNode`'s\x20index\x20in\x20[node\x20list][g\ - oogle.spanner.v1.QueryPlan.plan_nodes].\n\n\r\n\x05\x04\0\x02\0\x04\x12\ - \x04W\x02T\x03\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\x20differe\ - ntly.\x20For\x20example,\x20If\x20the\x20node\x20is\x20a\n\x20[SCALAR][g\ - oogle.spanner.v1.PlanNode.Kind.SCALAR]\x20node,\x20it\x20will\x20have\ - \x20a\x20condensed\x20representation\n\x20which\x20can\x20be\x20used\x20\ - to\x20directly\x20embed\x20a\x20description\x20of\x20the\x20node\x20in\ - \x20its\n\x20parent.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04^\x02W\x12\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\r\n\x05\x04\0\x02\x02\x04\x12\x04a\x02^\x10\ - \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\n\ - R\n\x04\x04\0\x02\x03\x12\x03d\x02%\x1aE\x20List\x20of\x20child\x20node\ - \x20`index`es\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\x20Condensed\x20representation\x20for\x20[SCALAR][google.span\ - ner.v1.PlanNode.Kind.SCALAR]\x20nodes.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\ - \x04g\x02d%\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\x20Parameter\x20Refere\ - nce\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_reference\":\x20\"param1\",\n\x20\x20\x20\x20\x20\x20\ - \x20\"parameter_type\":\x20\"array\"\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\ - \x04\0\x02\x05\x04\x12\x04q\x02g/\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\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\x20example,\x20numbe\ - r\x20of\x20executions,\x20number\x20of\x20rows/time\x20per\n\x20executio\ - n\x20etc.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04w\x02q&\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\ + \x17Google\\Cloud\\Spanner\\V1J\xc8*\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\x0f\n\x07\x04\0\x03\0\ + \x02\0\x04\x12\x04#\x04!\x15\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.\x20Fo\ + r\x20example,\x20in\x20Hash\x20Joins\x20this\x20could\x20be\x20used\x20t\ + o\n\x20distinguish\x20between\x20the\x20build\x20child\x20and\x20the\x20\ + probe\x20child,\x20or\x20in\x20the\x20case\n\x20of\x20the\x20child\x20be\ + ing\x20an\x20output\x20variable,\x20to\x20represent\x20the\x20tag\x20ass\ + ociated\n\x20with\x20the\x20output\x20variable.\n\n\x0f\n\x07\x04\0\x03\ + \0\x02\x01\x04\x12\x04)\x04#\x1a\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.SCAL\ + AR]\x20and\x20corresponds\n\x20to\x20an\x20output\x20variable\x20of\x20t\ + he\x20parent\x20node.\x20The\x20field\x20carries\x20the\x20name\x20of\n\ + \x20the\x20output\x20variable.\n\x20For\x20example,\x20a\x20`TableScan`\ + \x20operator\x20that\x20reads\x20rows\x20from\x20a\x20table\x20will\n\ + \x20have\x20child\x20links\x20to\x20the\x20`SCALAR`\x20nodes\x20represen\ + ting\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\x0f\n\x07\x04\0\x03\ + \0\x02\x02\x04\x12\x043\x04)\x14\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`SCALA\ + R`\x20[PlanNode(s)][google.spanner.v1.PlanNode].\n\n\x0c\n\x05\x04\0\x03\ + \x01\x01\x12\x038\n\x1d\nW\n\x06\x04\0\x03\x01\x02\0\x12\x03:\x04\x1b\ + \x1aH\x20A\x20string\x20representation\x20of\x20the\x20expression\x20sub\ + tree\x20rooted\x20at\x20this\x20node.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\ + \x04\x12\x04:\x048\x1f\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\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(subquery\x20var\ + iable\x20name)\x20->\x20(subquery\x20node\x20id)\x20for\x20cases\n\x20wh\ + ere\x20the\x20`description`\x20string\x20of\x20this\x20node\x20reference\ + s\x20a\x20`SCALAR`\n\x20subquery\x20contained\x20in\x20the\x20expression\ + \x20subtree\x20rooted\x20at\x20this\x20node.\x20The\n\x20referenced\x20`\ + SCALAR`\x20subquery\x20may\x20not\x20necessarily\x20be\x20a\x20direct\ + \x20child\x20of\n\x20this\x20node.\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\ + \x04\x12\x04A\x04:\x1b\n\x0e\n\x07\x04\0\x03\x01\x02\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[PlanNode][google.spa\ + nner.v1.PlanNode].\x20Distinguishes\x20between\x20the\x20two\x20differen\ + t\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\x20specified.\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\x20operator\x20node\x20in\ + \x20the\x20expression\x20tree.\x20Relational\n\x20operators\x20represent\ + \x20iterative\x20processing\x20of\x20rows\x20during\x20query\x20executio\ + n.\n\x20For\x20example,\x20a\x20`TableScan`\x20operation\x20that\x20read\ + s\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\x20Denot\ + es\x20a\x20Scalar\x20node\x20in\x20the\x20expression\x20tree.\x20Scalar\ + \x20nodes\x20represent\n\x20non-iterable\x20entities\x20in\x20the\x20que\ + ry\x20plan.\x20For\x20example,\x20constants\x20or\n\x20arithmetic\x20ope\ + rators\x20appearing\x20inside\x20predicate\x20expressions\x20or\x20refer\ + ences\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.QueryPlan.plan_nodes].\n\n\r\ + \n\x05\x04\0\x02\0\x04\x12\x04W\x02T\x03\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]\x20nod\ + e,\x20it\x20will\x20have\x20a\x20condensed\x20representation\n\x20which\ + \x20can\x20be\x20used\x20to\x20directly\x20embed\x20a\x20description\x20\ + of\x20the\x20node\x20in\x20its\n\x20parent.\n\n\r\n\x05\x04\0\x02\x01\ + \x04\x12\x04^\x02W\x12\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\r\n\x05\x04\0\x02\ + \x02\x04\x12\x04a\x02^\x10\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\x20L\ + ist\x20of\x20child\x20node\x20`index`es\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\x20Condensed\x20representation\x20\ + for\x20[SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR]\x20nodes.\n\n\r\ + \n\x05\x04\0\x02\x04\x04\x12\x04g\x02d%\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\x20cont\ + ained\x20in\x20a\x20group\x20of\x20key-value\x20pairs.\n\x20For\x20examp\ + le,\x20a\x20Parameter\x20Reference\x20node\x20could\x20have\x20the\x20fo\ + llowing\n\x20information\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\r\n\x05\x04\0\x02\x05\x04\x12\x04q\x02g/\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\x20execution\x20statisti\ + cs\x20associated\x20with\x20the\x20node,\x20contained\x20in\x20a\x20grou\ + p\x20of\n\x20key-value\x20pairs.\x20Only\x20present\x20if\x20the\x20plan\ + \x20was\x20returned\x20as\x20a\x20result\x20of\x20a\n\x20profile\x20quer\ + y.\x20For\x20example,\x20number\x20of\x20executions,\x20number\x20of\x20\ + rows/time\x20per\n\x20execution\x20etc.\n\n\r\n\x05\x04\0\x02\x06\x04\ + \x12\x04w\x02q&\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\x20\ + query\x20plan.\x20Plan\x20nodes\x20are\x20returned\x20in\x20pre-order\ + \x20starting\n\x20with\x20the\x20plan\x20root.\x20Each\x20[PlanNode][goo\ + gle.spanner.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\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/result_set.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/result_set.rs index 8b787bc34d..005c864548 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/result_set.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/result_set.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct ResultSet { @@ -1246,177 +1246,176 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\ - \xb7\x01\n\x15com.google.spanner.v1B\x0eResultSetProtoP\x01Z8google.gola\ + \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\\V1\xea\x02\x1aGo\ - ogle::Cloud::Spanner::V1J\xe5@\n\x07\x12\x05\x0e\0\xcc\x01\x01\n\xbc\x04\ - \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\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\04\n\t\n\x02\x08%\x12\x03\x19\04\n\x08\n\ - \x01\x08\x12\x03\x1a\0O\n\t\n\x02\x08\x0b\x12\x03\x1a\0O\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\04\n\t\n\ - \x02\x08)\x12\x03\x1e\04\n\x08\n\x01\x08\x12\x03\x1f\03\n\t\n\x02\x08-\ - \x12\x03\x1f\03\ny\n\x02\x04\0\x12\x04#\08\x01\x1am\x20Results\x20from\ - \x20[Read][google.spanner.v1.Spanner.Read]\x20or\n\x20[ExecuteSql][googl\ - e.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\x20\ - result\x20set,\x20such\x20as\x20row\x20type\x20information.\n\n\r\n\x05\ - \x04\0\x02\0\x04\x12\x04%\x02#\x13\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\x20who\ - se\x20format\x20is\x20defined\x20by\n\x20[metadata.row_type][google.span\ - ner.v1.ResultSetMetadata.row_type].\x20The\x20ith\x20element\n\x20in\x20\ - each\x20row\x20matches\x20the\x20ith\x20field\x20in\n\x20[metadata.row_t\ - ype][google.spanner.v1.ResultSetMetadata.row_type].\x20Elements\x20are\n\ + gle.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1J\xd2@\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\r\n\x05\x04\0\x02\0\x04\x12\ + \x04%\x02#\x13\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][google.spanner.v1.ResultSetMe\ + tadata.row_type].\x20The\x20ith\x20element\n\x20in\x20each\x20row\x20mat\ + ches\x20the\x20ith\x20field\x20in\n\x20[metadata.row_type][google.spanne\ + r.v1.ResultSetMetadata.row_type].\x20Elements\x20are\n\x20encoded\x20bas\ + ed\x20on\x20type\x20as\x20described\n\x20[here][google.spanner.v1.TypeCo\ + de].\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\x20st\ + atistics\x20for\x20the\x20SQL\x20statement\x20that\n\x20produced\x20this\ + \x20result\x20set.\x20These\x20can\x20be\x20requested\x20by\x20setting\n\ + \x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.q\ + uery_mode].\n\x20DML\x20statements\x20always\x20produce\x20stats\x20cont\ + aining\x20the\x20number\x20of\x20rows\n\x20modified,\x20unless\x20execut\ + ed\x20using\x20the\n\x20[ExecuteSqlRequest.QueryMode.PLAN][google.spanne\ + r.v1.ExecuteSqlRequest.QueryMode.PLAN]\x20[ExecuteSqlRequest.query_mode]\ + [google.spanner.v1.ExecuteSqlRequest.query_mode].\n\x20Other\x20fields\ + \x20may\x20or\x20may\x20not\x20be\x20populated,\x20based\x20on\x20the\n\ + \x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.q\ + uery_mode].\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x047\x02-.\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\x20fro\ + m\x20a\x20streaming\x20read\x20or\x20SQL\x20query.\x20Streaming\x20reads\ + \x20and\n\x20SQL\x20queries\x20better\x20tolerate\x20large\x20result\x20\ + sets,\x20large\x20rows,\x20and\x20large\n\x20values,\x20but\x20are\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\x20information.\n\ + \x20Only\x20present\x20in\x20the\x20first\x20response.\n\n\r\n\x05\x04\ + \x01\x02\0\x04\x12\x04@\x02=\x1a\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\x20consists\ + \x20of\x20a\x20stream\x20of\x20values,\x20which\x20might\n\x20be\x20spli\ + t\x20into\x20many\x20`PartialResultSet`\x20messages\x20to\x20accommodate\ + \n\x20large\x20rows\x20and/or\x20large\x20values.\x20Every\x20N\x20compl\ + ete\x20values\x20defines\x20a\n\x20row,\x20where\x20N\x20is\x20equal\x20\ + to\x20the\x20number\x20of\x20entries\x20in\n\x20[metadata.row_type.field\ + s][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\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\x20execu\ - tion\x20statistics\x20for\x20the\x20SQL\x20statement\x20that\n\x20produc\ - ed\x20this\x20result\x20set.\x20These\x20can\x20be\x20requested\x20by\ - \x20setting\n\x20[ExecuteSqlRequest.query_mode][google.spanner.v1.Execut\ - eSqlRequest.query_mode].\n\x20DML\x20statements\x20always\x20produce\x20\ - stats\x20containing\x20the\x20number\x20of\x20rows\n\x20modified,\x20unl\ - ess\x20executed\x20using\x20the\n\x20[ExecuteSqlRequest.QueryMode.PLAN][\ - google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]\x20[ExecuteSqlReques\ - t.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].\n\x20Othe\ - r\x20fields\x20may\x20or\x20may\x20not\x20be\x20populated,\x20based\x20o\ - n\x20the\n\x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSq\ - lRequest.query_mode].\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x047\x02-.\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\x20resu\ - lts\x20from\x20a\x20streaming\x20read\x20or\x20SQL\x20query.\x20Streamin\ - g\x20reads\x20and\n\x20SQL\x20queries\x20better\x20tolerate\x20large\x20\ - result\x20sets,\x20large\x20rows,\x20and\x20large\n\x20values,\x20but\ - \x20are\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\x20Metad\ - ata\x20about\x20the\x20result\x20set,\x20such\x20as\x20row\x20type\x20in\ - formation.\n\x20Only\x20present\x20in\x20the\x20first\x20response.\n\n\r\ - \n\x05\x04\x01\x02\0\x04\x12\x04@\x02=\x1a\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\ - \x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\x90\x01\x02\x8b\x01,\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\x20lo\ - ss.\x20If\x20this\x20occurs,\x20the\x20stream\x20of\x20results\x20can\n\ - \x20be\x20resumed\x20by\x20re-sending\x20the\x20original\x20request\x20a\ - nd\x20including\n\x20`resume_token`.\x20Note\x20that\x20executing\x20any\ - \x20other\x20transaction\x20in\x20the\n\x20same\x20session\x20invalidate\ - s\x20the\x20token.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x97\x01\x02\ - \x90\x01\x19\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\x20execution\x20sta\ - tistics\x20for\x20the\x20statement\x20that\x20produced\x20this\n\x20stre\ - aming\x20result\x20set.\x20These\x20can\x20be\x20requested\x20by\x20sett\ - ing\n\x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequ\ - est.query_mode]\x20and\x20are\x20sent\n\x20only\x20once\x20with\x20the\ - \x20last\x20response\x20in\x20the\x20stream.\n\x20This\x20field\x20will\ - \x20also\x20be\x20present\x20in\x20the\x20last\x20response\x20for\x20DML\ - \n\x20statements.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\x9f\x01\x02\ - \x97\x01\x19\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\x20a\x20[ResultSet][google.span\ - ner.v1.ResultSet]\x20or\x20[PartialResultSet][google.spanner.v1.PartialR\ - esultSet].\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\x20t\ - he\x20field\x20names\x20and\x20types\x20for\x20the\x20rows\x20in\x20the\ + .spanner.v1.TypeCode].\n\n\x20It\x20is\x20possible\x20that\x20the\x20las\ + t\x20value\x20in\x20values\x20is\x20\"chunked\",\n\x20meaning\x20that\ + \x20the\x20rest\x20of\x20the\x20value\x20is\x20sent\x20in\x20subsequent\ + \n\x20`PartialResultSet`(s).\x20This\x20is\x20denoted\x20by\x20the\x20[c\ + hunked_value][google.spanner.v1.PartialResultSet.chunked_value]\n\x20fie\ + ld.\x20Two\x20or\x20more\x20chunked\x20values\x20can\x20be\x20merged\x20\ + to\x20form\x20a\n\x20complete\x20value\x20as\x20follows:\n\n\x20\x20\x20\ + *\x20`bool/number/null`:\x20cannot\x20be\x20chunked\n\x20\x20\x20*\x20`s\ + tring`:\x20concatenate\x20the\x20strings\n\x20\x20\x20*\x20`list`:\x20co\ + ncatenate\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\x20these\x20rules\ + \x20recursively.\n\x20\x20\x20*\x20`object`:\x20concatenate\x20the\x20(f\ + ield\x20name,\x20field\x20value)\x20pairs.\x20If\x20a\n\x20\x20\x20\x20\ + \x20field\x20name\x20is\x20duplicated,\x20then\x20apply\x20these\x20rule\ + s\x20recursively\n\x20\x20\x20\x20\x20to\x20merge\x20the\x20field\x20val\ + ues.\n\n\x20Some\x20examples\x20of\x20merging:\n\n\x20\x20\x20\x20\x20#\ + \x20Strings\x20are\x20concatenated.\n\x20\x20\x20\x20\x20\"foo\",\x20\"b\ + ar\"\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\x20co\ + ncatenated,\x20but\x20the\x20last\x20and\x20first\x20elements\x20are\x20\ + merged\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#\x20Lists\x20are\x20co\ + ncatenated,\x20but\x20the\x20last\x20and\x20first\x20elements\x20are\x20\ + merged\n\x20\x20\x20\x20\x20#\x20because\x20they\x20are\x20lists.\x20Rec\ + ursively,\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\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\x20fields\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#\x20Examples\x20of\x20merging\x20objects\x20con\ + taining\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\x20a\x20streaming\x20SQ\ + L\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[\"orl\"]\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`PartialResultSet`s\x20en\ + codes\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.spanner.v1.P\ + artialResultSet.values]\x20is\x20chunked,\x20and\x20must\n\x20be\x20comb\ + ined\x20with\x20more\x20values\x20from\x20subsequent\x20`PartialResultSe\ + t`s\n\x20to\x20obtain\x20a\x20complete\x20field\x20value.\n\n\x0f\n\x05\ + \x04\x01\x02\x02\x04\x12\x06\x90\x01\x02\x8b\x01,\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\x20St\ + reaming\x20calls\x20might\x20be\x20interrupted\x20for\x20a\x20variety\ + \x20of\x20reasons,\x20such\n\x20as\x20TCP\x20connection\x20loss.\x20If\ + \x20this\x20occurs,\x20the\x20stream\x20of\x20results\x20can\n\x20be\x20\ + resumed\x20by\x20re-sending\x20the\x20original\x20request\x20and\x20incl\ + uding\n\x20`resume_token`.\x20Note\x20that\x20executing\x20any\x20other\ + \x20transaction\x20in\x20the\n\x20same\x20session\x20invalidates\x20the\ + \x20token.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x97\x01\x02\x90\x01\ + \x19\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\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.q\ + uery_mode]\x20and\x20are\x20sent\n\x20only\x20once\x20with\x20the\x20las\ + t\x20response\x20in\x20the\x20stream.\n\x20This\x20field\x20will\x20also\ + \x20be\x20present\x20in\x20the\x20last\x20response\x20for\x20DML\n\x20st\ + atements.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\x9f\x01\x02\x97\x01\ + \x19\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\x20a\x20[ResultSet][google.spanner.v1\ + .ResultSet]\x20or\x20[PartialResultSet][google.spanner.v1.PartialResultS\ + et].\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\x20for\x20the\x20rows\x20in\x20the\ \x20result\n\x20set.\x20\x20For\x20example,\x20a\x20SQL\x20query\x20like\ \x20`\"SELECT\x20UserId,\x20UserName\x20FROM\n\x20Users\"`\x20could\x20r\ eturn\x20a\x20`row_type`\x20value\x20like:\n\n\x20\x20\x20\x20\x20\"fiel\ diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner.rs index af44244c09..38ee00224d 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct CreateSessionRequest { @@ -1782,7 +1782,6 @@ pub struct ExecuteSqlRequest { pub query_mode: ExecuteSqlRequest_QueryMode, pub partition_token: ::std::vec::Vec, pub seqno: i64, - pub query_options: ::protobuf::SingularPtrField, // special fields pub unknown_fields: ::protobuf::UnknownFields, pub cached_size: ::protobuf::CachedSize, @@ -2023,39 +2022,6 @@ impl ExecuteSqlRequest { pub fn set_seqno(&mut self, v: i64) { self.seqno = v; } - - // .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(); - } - - pub fn has_query_options(&self) -> bool { - self.query_options.is_some() - } - - // Param is passed by value, moved - pub fn set_query_options(&mut self, v: ExecuteSqlRequest_QueryOptions) { - self.query_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_query_options(&mut self) -> &mut ExecuteSqlRequest_QueryOptions { - if self.query_options.is_none() { - self.query_options.set_default(); - } - self.query_options.as_mut().unwrap() - } - - // Take field - pub fn take_query_options(&mut self) -> ExecuteSqlRequest_QueryOptions { - self.query_options.take().unwrap_or_else(|| ExecuteSqlRequest_QueryOptions::new()) - } } impl ::protobuf::Message for ExecuteSqlRequest { @@ -2070,11 +2036,6 @@ impl ::protobuf::Message for ExecuteSqlRequest { return false; } }; - for v in &self.query_options { - if !v.is_initialized() { - return false; - } - }; true } @@ -2113,9 +2074,6 @@ impl ::protobuf::Message for ExecuteSqlRequest { let tmp = is.read_int64()?; self.seqno = tmp; }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.query_options)?; - }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; }, @@ -2155,10 +2113,6 @@ impl ::protobuf::Message for ExecuteSqlRequest { 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() { - 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 @@ -2194,11 +2148,6 @@ impl ::protobuf::Message for ExecuteSqlRequest { 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)?; - } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -2282,11 +2231,6 @@ impl ::protobuf::Message for ExecuteSqlRequest { |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 }, - )); ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ExecuteSqlRequest", fields, @@ -2312,7 +2256,6 @@ impl ::protobuf::Clear for ExecuteSqlRequest { self.query_mode = ExecuteSqlRequest_QueryMode::NORMAL; self.partition_token.clear(); self.seqno = 0; - self.query_options.clear(); self.unknown_fields.clear(); } } @@ -2329,165 +2272,6 @@ impl ::protobuf::reflect::ProtobufValue for ExecuteSqlRequest { } } -#[derive(PartialEq,Clone,Default)] -pub struct ExecuteSqlRequest_QueryOptions { - // message fields - pub optimizer_version: ::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()) - } -} - -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)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::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 }, - )); - ::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.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, @@ -5488,7 +5272,6 @@ pub struct CommitRequest { // message fields pub session: ::std::string::String, pub mutations: ::protobuf::RepeatedField, - pub return_commit_stats: bool, // message oneof groups pub transaction: ::std::option::Option, // special fields @@ -5661,21 +5444,6 @@ impl CommitRequest { pub fn take_mutations(&mut self) -> ::protobuf::RepeatedField { ::std::mem::replace(&mut self.mutations, ::protobuf::RepeatedField::new()) } - - // 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; - } - - // Param is passed by value, moved - pub fn set_return_commit_stats(&mut self, v: bool) { - self.return_commit_stats = v; - } } impl ::protobuf::Message for CommitRequest { @@ -5715,13 +5483,6 @@ impl ::protobuf::Message for CommitRequest { 4 => { ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.mutations)?; }, - 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; - }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; }, @@ -5741,9 +5502,6 @@ impl ::protobuf::Message for CommitRequest { 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 ::std::option::Option::Some(ref v) = self.transaction { match v { &CommitRequest_oneof_transaction::transaction_id(ref v) => { @@ -5769,9 +5527,6 @@ impl ::protobuf::Message for CommitRequest { os.write_raw_varint32(v.get_cached_size())?; v.write_to_with_cached_sizes(os)?; }; - if self.return_commit_stats != false { - os.write_bool(5, self.return_commit_stats)?; - } if let ::std::option::Option::Some(ref v) = self.transaction { match v { &CommitRequest_oneof_transaction::transaction_id(ref v) => { @@ -5842,11 +5597,6 @@ impl ::protobuf::Message for CommitRequest { |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 }, - )); ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CommitRequest", fields, @@ -5867,7 +5617,6 @@ impl ::protobuf::Clear for CommitRequest { self.transaction = ::std::option::Option::None; self.transaction = ::std::option::Option::None; self.mutations.clear(); - self.return_commit_stats = false; self.unknown_fields.clear(); } } @@ -5888,7 +5637,6 @@ impl ::protobuf::reflect::ProtobufValue for CommitRequest { 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, @@ -5937,39 +5685,6 @@ impl CommitResponse { 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 { @@ -5979,11 +5694,6 @@ impl ::protobuf::Message for CommitResponse { return false; } }; - for v in &self.commit_stats { - if !v.is_initialized() { - return false; - } - }; true } @@ -5994,9 +5704,6 @@ impl ::protobuf::Message for CommitResponse { 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())?; }, @@ -6013,10 +5720,6 @@ impl ::protobuf::Message for CommitResponse { 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 @@ -6028,11 +5731,6 @@ impl ::protobuf::Message for CommitResponse { 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(()) } @@ -6076,11 +5774,6 @@ impl ::protobuf::Message for CommitResponse { |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, @@ -6098,7 +5791,6 @@ impl ::protobuf::Message for CommitResponse { impl ::protobuf::Clear for CommitResponse { fn clear(&mut self) { self.commit_timestamp.clear(); - self.commit_stats.clear(); self.unknown_fields.clear(); } } @@ -6115,158 +5807,6 @@ impl ::protobuf::reflect::ProtobufValue for CommitResponse { } } -#[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) - } -} - #[derive(PartialEq,Clone,Default)] pub struct RollbackRequest { // message fields @@ -6471,33 +6011,32 @@ impl ::protobuf::reflect::ProtobufValue for RollbackRequest { static file_descriptor_proto_data: &'static [u8] = b"\ \n\x1fgoogle/spanner/v1/spanner.proto\x12\x11google.spanner.v1\x1a\x1cgo\ ogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/\ - api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/\ - protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle\ - /protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17goo\ - gle/rpc/status.proto\x1a\x1cgoogle/spanner/v1/keys.proto\x1a\x20google/s\ - panner/v1/mutation.proto\x1a\"google/spanner/v1/result_set.proto\x1a#goo\ - gle/spanner/v1/transaction.proto\x1a\x1cgoogle/spanner/v1/type.proto\"\ - \x91\x01\n\x14CreateSessionRequest\x12C\n\x08database\x18\x01\x20\x01(\t\ - R\x08databaseB'\xe0A\x02\xfaA!\n\x1fspanner.googleapis.com/Database\x124\ - \n\x07session\x18\x02\x20\x01(\x0b2\x1a.google.spanner.v1.SessionR\x07se\ - ssion\"\xd2\x01\n\x1aBatchCreateSessionsRequest\x12C\n\x08database\x18\ - \x01\x20\x01(\tR\x08databaseB'\xe0A\x02\xfaA!\n\x1fspanner.googleapis.co\ - m/Database\x12E\n\x10session_template\x18\x02\x20\x01(\x0b2\x1a.google.s\ - panner.v1.SessionR\x0fsessionTemplate\x12(\n\rsession_count\x18\x03\x20\ - \x01(\x05R\x0csessionCountB\x03\xe0A\x02\"S\n\x1bBatchCreateSessionsResp\ - onse\x124\n\x07session\x18\x01\x20\x03(\x0b2\x1a.google.spanner.v1.Sessi\ - onR\x07session\"\xb1\x03\n\x07Session\x12\x17\n\x04name\x18\x01\x20\x01(\ - \tR\x04nameB\x03\xe0A\x03\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\ncreateTimeB\x03\xe0A\x03\ - \x12Z\n\x19approximate_last_use_time\x18\x04\x20\x01(\x0b2\x1a.google.pr\ - otobuf.TimestampR\x16approximateLastUseTimeB\x03\xe0A\x03\x1a9\n\x0bLabe\ + 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\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'\xe0A\x02\xfaA!\n\x1fsp\ + anner.googleapis.com/Database\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\ + \x20\x01(\tR\x04nameB&\xe0A\x02\xfaA\x20\n\x1espanner.googleapis.com/Ses\ + sion\"\xae\x01\n\x13ListSessionsRequest\x12C\n\x08database\x18\x01\x20\ \x01(\tR\x08databaseB'\xe0A\x02\xfaA!\n\x1fspanner.googleapis.com/Databa\ se\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npag\ e_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06filter\x18\x04\x20\ @@ -6505,7 +6044,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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&\xe0A\x02\xfaA\x20\n\ - \x1espanner.googleapis.com/Session\"\x8c\x06\n\x11ExecuteSqlRequest\x12@\ + \x1espanner.googleapis.com/Session\"\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\ @@ -6516,140 +6055,133 @@ static file_descriptor_proto_data: &'static [u8] = b"\ 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\x12V\n\rquery_options\x18\n\x20\x01(\x0b21.google.spanner.v1.Execut\ - eSqlRequest.QueryOptionsR\x0cqueryOptions\x1a;\n\x0cQueryOptions\x12+\n\ - \x11optimizer_version\x18\x01\x20\x01(\tR\x10optimizerVersion\x1aV\n\x0f\ - ParamTypesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12-\n\x05va\ - lue\x18\x02\x20\x01(\x0b2\x17.google.spanner.v1.TypeR\x05value:\x028\x01\ - \".\n\tQueryMode\x12\n\n\x06NORMAL\x10\0\x12\x08\n\x04PLAN\x10\x01\x12\ - \x0b\n\x07PROFILE\x10\x02\"\xad\x04\n\x16ExecuteBatchDmlRequest\x12@\n\ + 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\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&\xe0A\ + \x02\xfaA\x20\n\x1espanner.googleapis.com/Session\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&\xe0A\ + \x02\xfaA\x20\n\x1espanner.googleapis.com/Session\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&\xe0A\x02\xfaA\x20\n\x1espan\ - ner.googleapis.com/Session\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.ExecuteBatchDmlR\ - equest.StatementR\nstatementsB\x03\xe0A\x02\x12\x19\n\x05seqno\x18\x04\ - \x20\x01(\x03R\x05seqnoB\x03\xe0A\x02\x1a\x8c\x02\n\tStatement\x12\x10\n\ - \x03sql\x18\x01\x20\x01(\tR\x03sql\x12/\n\x06params\x18\x02\x20\x01(\x0b\ - 2\x17.google.protobuf.StructR\x06params\x12d\n\x0bparam_types\x18\x03\ - \x20\x03(\x0b2C.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Param\ - TypesEntryR\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\x17ExecuteBatchDmlRespo\ - nse\x12=\n\x0bresult_sets\x18\x01\x20\x03(\x0b2\x1c.google.spanner.v1.Re\ - sultSetR\nresultSets\x12*\n\x06status\x18\x02\x20\x01(\x0b2\x12.google.r\ - pc.StatusR\x06status\"k\n\x10PartitionOptions\x120\n\x14partition_size_b\ - ytes\x18\x01\x20\x01(\x03R\x12partitionSizeBytes\x12%\n\x0emax_partition\ - s\x18\x02\x20\x01(\x03R\rmaxPartitions\"\xf0\x03\n\x15PartitionQueryRequ\ - est\x12@\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xe0A\x02\xfaA\x20\ - \n\x1espanner.googleapis.com/Session\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\x12Y\n\x0bp\ - aram_types\x18\x05\x20\x03(\x0b28.google.spanner.v1.PartitionQueryReques\ - t.ParamTypesEntryR\nparamTypes\x12P\n\x11partition_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.spanner.v1.TypeR\x05value:\ - \x028\x01\"\xf8\x02\n\x14PartitionReadRequest\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\x0btransaction\x12\x19\n\x05table\x18\x03\x20\x01(\ - \tR\x05tableB\x03\xe0A\x02\x12\x14\n\x05index\x18\x04\x20\x01(\tR\x05ind\ - ex\x12\x18\n\x07columns\x18\x05\x20\x03(\tR\x07columns\x127\n\x07key_set\ - \x18\x06\x20\x01(\x0b2\x19.google.spanner.v1.KeySetR\x06keySetB\x03\xe0A\ - \x02\x12P\n\x11partition_options\x18\t\x20\x01(\x0b2#.google.spanner.v1.\ - PartitionOptionsR\x10partitionOptions\"4\n\tPartition\x12'\n\x0fpartitio\ - n_token\x18\x01\x20\x01(\x0cR\x0epartitionToken\"\x93\x01\n\x11Partition\ - Response\x12<\n\npartitions\x18\x01\x20\x03(\x0b2\x1c.google.spanner.v1.\ - PartitionR\npartitions\x12@\n\x0btransaction\x18\x02\x20\x01(\x0b2\x1e.g\ - oogle.spanner.v1.TransactionR\x0btransaction\"\x84\x03\n\x0bReadRequest\ - \x12@\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xe0A\x02\xfaA\x20\n\ - \x1espanner.googleapis.com/Session\x12H\n\x0btransaction\x18\x02\x20\x01\ - (\x0b2&.google.spanner.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\x1d\n\x07columns\x18\x05\x20\x03(\tR\ - \x07columnsB\x03\xe0A\x02\x127\n\x07key_set\x18\x06\x20\x01(\x0b2\x19.go\ - ogle.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\x0epartiti\ - onToken\"\xa1\x01\n\x17BeginTransactionRequest\x12@\n\x07session\x18\x01\ - \x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1espanner.googleapis.com/Session\ - \xe0A\x02\x12D\n\x07options\x18\x02\x20\x01(\x0b2%.google.spanner.v1.Tra\ - nsactionOptionsR\x07optionsB\x03\xe0A\x02\"\xd3\x02\n\rCommitRequest\x12\ - @\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xe0A\x02\xfaA\x20\n\x1es\ - panner.googleapis.com/Session\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\x14singleUseTransaction\ - \x129\n\tmutations\x18\x04\x20\x03(\x0b2\x1b.google.spanner.v1.MutationR\ - \tmutations\x12.\n\x13return_commit_stats\x18\x05\x20\x01(\x08R\x11retur\ - nCommitStatsB\r\n\x0btransaction\"\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\rmutationCount\"\ - \x7f\n\x0fRollbackRequest\x12@\n\x07session\x18\x01\x20\x01(\tR\x07sessi\ - onB&\xe0A\x02\xfaA\x20\n\x1espanner.googleapis.com/Session\x12*\n\x0etra\ - nsaction_id\x18\x02\x20\x01(\x0cR\rtransactionIdB\x03\xe0A\x022\xc0\x16\ - \n\x07Spanner\x12\xa6\x01\n\rCreateSession\x12'.google.spanner.v1.Create\ - SessionRequest\x1a\x1a.google.spanner.v1.Session\"P\x82\xd3\xe4\x93\x02?\ - \":/v1/{database=projects/*/instances/*/databases/*}/sessions:\x01*\xdaA\ - \x08database\x12\xe0\x01\n\x13BatchCreateSessions\x12-.google.spanner.v1\ - .BatchCreateSessionsRequest\x1a..google.spanner.v1.BatchCreateSessionsRe\ - sponse\"j\xdaA\x16database,session_count\x82\xd3\xe4\x93\x02K\"F/v1/{dat\ - abase=projects/*/instances/*/databases/*}/sessions:batchCreate:\x01*\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\x0cLis\ - tSessions\x12&.google.spanner.v1.ListSessionsRequest\x1a'.google.spanner\ - .v1.ListSessionsResponse\"M\x82\xd3\xe4\x93\x02<\x12:/v1/{database=proje\ - cts/*/instances/*/databases/*}/sessions\xdaA\x08database\x12\x99\x01\n\r\ - DeleteSession\x12'.google.spanner.v1.DeleteSessionRequest\x1a\x16.google\ - .protobuf.Empty\"G\xdaA\x04name\x82\xd3\xe4\x93\x02:*8/v1/{name=projects\ - /*/instances/*/databases/*/sessions/*}\x12\xa3\x01\n\nExecuteSql\x12$.go\ - ogle.spanner.v1.ExecuteSqlRequest\x1a\x1c.google.spanner.v1.ResultSet\"Q\ - \x82\xd3\xe4\x93\x02K\"F/v1/{session=projects/*/instances/*/databases/*/\ - sessions/*}:executeSql:\x01*\x12\xbe\x01\n\x13ExecuteStreamingSql\x12$.g\ - oogle.spanner.v1.ExecuteSqlRequest\x1a#.google.spanner.v1.PartialResultS\ - et\"Z\x82\xd3\xe4\x93\x02T\"O/v1/{session=projects/*/instances/*/databas\ - es/*/sessions/*}:executeStreamingSql:\x01*0\x01\x12\xc0\x01\n\x0fExecute\ - BatchDml\x12).google.spanner.v1.ExecuteBatchDmlRequest\x1a*.google.spann\ - er.v1.ExecuteBatchDmlResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{session=pro\ - jects/*/instances/*/databases/*/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/*/i\ - nstances/*/databases/*/sessions/*}:read:\x01*\x12\xac\x01\n\rStreamingRe\ - ad\x12\x1e.google.spanner.v1.ReadRequest\x1a#.google.spanner.v1.PartialR\ - esultSet\"T\x82\xd3\xe4\x93\x02N\"I/v1/{session=projects/*/instances/*/d\ - atabases/*/sessions/*}:streamingRead:\x01*0\x01\x12\xc9\x01\n\x10BeginTr\ - ansaction\x12*.google.spanner.v1.BeginTransactionRequest\x1a\x1e.google.\ - spanner.v1.Transaction\"i\xdaA\x0fsession,options\x82\xd3\xe4\x93\x02Q\"\ - L/v1/{session=projects/*/instances/*/databases/*/sessions/*}:beginTransa\ - ction:\x01*\x12\xeb\x01\n\x06Commit\x12\x20.google.spanner.v1.CommitRequ\ - est\x1a!.google.spanner.v1.CommitResponse\"\x9b\x01\x82\xd3\xe4\x93\x02G\ - \"B/v1/{session=projects/*/instances/*/databases/*/sessions/*}:commit:\ - \x01*\xdaA\x20session,transaction_id,mutations\xdaA(session,single_use_t\ - ransaction,mutations\x12\xb0\x01\n\x08Rollback\x12\".google.spanner.v1.R\ - ollbackRequest\x1a\x16.google.protobuf.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(.go\ - ogle.spanner.v1.PartitionQueryRequest\x1a$.google.spanner.v1.PartitionRe\ - sponse\"U\x82\xd3\xe4\x93\x02O\"J/v1/{session=projects/*/instances/*/dat\ - abases/*/sessions/*}:partitionQuery:\x01*\x12\xb4\x01\n\rPartitionRead\ - \x12'.google.spanner.v1.PartitionReadRequest\x1a$.google.spanner.v1.Part\ - itionResponse\"T\x82\xd3\xe4\x93\x02N\"I/v1/{session=projects/*/instance\ - s/*/databases/*/sessions/*}:partitionRead:\x01*\x1aw\xcaA\x16spanner.goo\ - gleapis.com\xd2A[https://www.googleapis.com/auth/cloud-platform,https://\ - www.googleapis.com/auth/spanner.dataB\x94\x02\n\x15com.google.spanner.v1\ - B\x0cSpannerProtoP\x01Z8google.golang.org/genproto/googleapis/spanner/v1\ - ;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Sp\ - anner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1\xeaA_\n\x1fspanner.googl\ - eapis.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\x20perform\n\x20transactions\x20that\x20read\x20and\ - /or\x20modify\x20data\x20in\x20a\x20Cloud\x20Spanner\x20database.\n\x20S\ - essions\x20are\x20meant\x20to\x20be\x20reused\x20for\x20many\x20consecut\ - ive\n\x20transactions.\n\n\x20Sessions\x20can\x20only\x20execute\x20one\ - \x20transaction\x20at\x20a\x20time.\x20To\x20execute\n\x20multiple\x20co\ - ncurrent\x20read-write/write-only\x20transactions,\x20create\n\x20multip\ - le\x20sessions.\x20Note\x20that\x20standalone\x20reads\x20and\x20queries\ - \x20use\x20a\n\x20transaction\x20internally,\x20and\x20count\x20toward\ - \x20the\x20one\x20transaction\n\x20limit.\n\n\x20Active\x20sessions\x20u\ - se\x20additional\x20server\x20resources,\x20so\x20it\x20is\x20a\x20good\ - \x20idea\x20to\n\x20delete\x20idle\x20and\x20unneeded\x20sessions.\n\x20\ - Aside\x20from\x20explicit\x20deletes,\x20Cloud\x20Spanner\x20may\x20dele\ - te\x20sessions\x20for\x20which\x20no\n\x20operations\x20are\x20sent\x20f\ - or\x20more\x20than\x20an\x20hour.\x20If\x20a\x20session\x20is\x20deleted\ - ,\n\x20requests\x20to\x20it\x20return\x20`NOT_FOUND`.\n\n\x20Idle\x20ses\ - sions\x20can\x20be\x20kept\x20alive\x20by\x20sending\x20a\x20trivial\x20\ - SQL\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\x04\ - V\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\x20\ - for\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\x04W\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.\x20Ret\ - urns\x20`NOT_FOUND`\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\ - \x20asynchronously\x20trigger\x20cancellation\x20of\x20any\x20operations\ - \x20that\x20are\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,\x20returning\x20all\x20results\x20in\x20a\x20single\x20re\ - ply.\x20This\n\x20method\x20cannot\x20be\x20used\x20to\x20return\x20a\ - \x20result\x20set\x20larger\x20than\x2010\x20MiB;\n\x20if\x20the\x20quer\ - y\x20yields\x20more\x20data\x20than\x20that,\x20the\x20query\x20fails\ - \x20with\n\x20a\x20`FAILED_PRECONDITION`\x20error.\n\n\x20Operations\x20\ - inside\x20read-write\x20transactions\x20might\x20return\x20`ABORTED`.\ - \x20If\n\x20this\x20occurs,\x20the\x20application\x20should\x20restart\ - \x20the\x20transaction\x20from\n\x20the\x20beginning.\x20See\x20[Transac\ - tion][google.spanner.v1.Transaction]\x20for\x20more\x20details.\n\n\x20L\ - arger\x20result\x20sets\x20can\x20be\x20fetched\x20in\x20streaming\x20fa\ - shion\x20by\x20calling\n\x20[ExecuteStreamingSql][google.spanner.v1.Span\ - ner.ExecuteStreamingSql]\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.ExecuteSql],\x20except\x20returns\x20the\x20result\n\ - \x20set\x20as\x20a\x20stream.\x20Unlike\x20[ExecuteSql][google.spanner.v\ - 1.Spanner.ExecuteSql],\x20there\n\x20is\x20no\x20limit\x20on\x20the\x20s\ - ize\x20of\x20the\x20returned\x20result\x20set.\x20However,\x20no\n\x20in\ - dividual\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\x20SQL\x20DML\x20statements.\x20This\x20method\x20allows\ - \x20many\x20statements\n\x20to\x20be\x20run\x20with\x20lower\x20latency\ - \x20than\x20submitting\x20them\x20sequentially\x20with\n\x20[ExecuteSql]\ - [google.spanner.v1.Spanner.ExecuteSql].\n\n\x20Statements\x20are\x20exec\ - uted\x20in\x20sequential\x20order.\x20A\x20request\x20can\x20succeed\x20\ - even\x20if\n\x20a\x20statement\x20fails.\x20The\x20[ExecuteBatchDmlRespo\ - nse.status][google.spanner.v1.ExecuteBatchDmlResponse.status]\x20field\ - \x20in\x20the\n\x20response\x20provides\x20information\x20about\x20the\ - \x20statement\x20that\x20failed.\x20Clients\x20must\n\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\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\x20\ - Reads\x20rows\x20from\x20the\x20database\x20using\x20key\x20lookups\x20a\ - nd\x20scans,\x20as\x20a\n\x20simple\x20key/value\x20style\x20alternative\ - \x20to\n\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].\x20\x20T\ - his\x20method\x20cannot\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_PRECONDITION`\n\x20error.\n\n\x20Reads\x20inside\x20read-wri\ - te\x20transactions\x20might\x20return\x20`ABORTED`.\x20If\n\x20this\x20o\ - ccurs,\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\x20yielded\x20in\x20streaming\x20fashion\x20by\x20calling\ - \n\x20[StreamingRead][google.spanner.v1.Spanner.StreamingRead]\x20instea\ - d.\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\x20ret\ - urns\x20the\x20result\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\x20individual\x20row\x20in\n\x20the\x20result\x20set\x20can\x20ex\ - ceed\x20100\x20MiB,\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\x20n\ - ew\x20transaction.\x20This\x20step\x20can\x20often\x20be\x20skipped:\n\ - \x20[Read][google.spanner.v1.Spanner.Read],\x20[ExecuteSql][google.spann\ - er.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\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\x20appl\ - ied\x20to\x20rows\x20in\x20the\x20database.\n\n\x20`Commit`\x20might\x20\ - return\x20an\x20`ABORTED`\x20error.\x20This\x20can\x20occur\x20at\x20any\ - \x20time;\n\x20commonly,\x20the\x20cause\x20is\x20conflicts\x20with\x20c\ - oncurrent\n\x20transactions.\x20However,\x20it\x20can\x20also\x20happen\ - \x20for\x20a\x20variety\x20of\x20other\n\x20reasons.\x20If\x20`Commit`\ - \x20returns\x20`ABORTED`,\x20the\x20caller\x20should\x20re-attempt\n\x20\ - the\x20transaction\x20from\x20the\x20beginning,\x20re-using\x20the\x20sa\ - me\x20session.\n\n\x20On\x20very\x20rare\x20occasions,\x20`Commit`\x20mi\ - ght\x20return\x20`UNKNOWN`.\x20This\x20can\x20happen,\n\x20for\x20exampl\ - e,\x20if\x20the\x20client\x20job\x20experiences\x20a\x201+\x20hour\x20ne\ - tworking\x20failure.\n\x20At\x20that\x20point,\x20Cloud\x20Spanner\x20ha\ - s\x20lost\x20track\x20of\x20the\x20transaction\x20outcome\x20and\n\x20we\ - \x20recommend\x20that\x20you\x20perform\x20another\x20read\x20from\x20th\ - e\x20database\x20to\x20see\x20the\n\x20state\x20of\x20things\x20as\x20th\ - ey\x20are\x20now.\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\x20transactio\ - n,\x20releasing\x20any\x20locks\x20it\x20holds.\x20It\x20is\x20a\x20good\ - \n\x20idea\x20to\x20call\x20this\x20for\x20any\x20transaction\x20that\ - \x20includes\x20one\x20or\x20more\n\x20[Read][google.spanner.v1.Spanner.\ - Read]\x20or\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]\x20req\ - uests\x20and\n\x20ultimately\x20decides\x20not\x20to\x20commit.\n\n\x20`\ - Rollback`\x20returns\x20`OK`\x20if\x20it\x20successfully\x20aborts\x20th\ - e\x20transaction,\x20the\n\x20transaction\x20was\x20already\x20aborted,\ - \x20or\x20the\x20transaction\x20is\x20not\n\x20found.\x20`Rollback`\x20n\ - ever\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\x20\ - can\x20be\x20used\x20to\x20execute\x20a\x20query\n\x20operation\x20in\ + e\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\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\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\x08\n\x01\x08\x12\x03\ + !\04\n\t\n\x02\x08%\x12\x03!\04\n\x08\n\x01\x08\x12\x03\"\0O\n\t\n\x02\ + \x08\x0b\x12\x03\"\0O\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&\04\n\t\n\x02\x08)\x12\x03&\04\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\x20Datab\ + ase\x20resource\x20is\x20defined\x20in\x20`google.spanner.admin.database\ + .v1`.\n\x20Because\x20this\x20is\x20a\x20separate,\x20independent\x20API\ + \x20(technically),\x20we\x20redefine\n\x20the\x20resource\x20name\x20pat\ + tern\x20here.\n\n\x9d\x01\n\x02\x06\0\x12\x054\0\xaa\x02\x01\x1a\x8f\x01\ + \x20Cloud\x20Spanner\x20API\n\n\x20The\x20Cloud\x20Spanner\x20API\x20can\ + \x20be\x20used\x20to\x20manage\x20sessions\x20and\x20execute\n\x20transa\ + ctions\x20on\x20data\x20stored\x20in\x20Cloud\x20Spanner\x20databases.\n\ + \n\n\n\x03\x06\0\x01\x12\x034\x08\x0f\n\n\n\x03\x06\0\x03\x12\x035\x02>\ + \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[ExecuteStreamingSql][google.spanner.v\ - 1.Spanner.ExecuteStreamingSql]\x20to\x20specify\x20a\x20subset\n\x20of\ - \x20the\x20query\x20result\x20to\x20read.\x20\x20The\x20same\x20session\ - \x20and\x20read-only\x20transaction\n\x20must\x20be\x20used\x20by\x20the\ - \x20PartitionQueryRequest\x20used\x20to\x20create\x20the\n\x20partition\ - \x20tokens\x20and\x20the\x20ExecuteSqlRequests\x20that\x20use\x20the\x20\ - partition\x20tokens.\n\n\x20Partition\x20tokens\x20become\x20invalid\x20\ - when\x20the\x20session\x20used\x20to\x20create\x20them\n\x20is\x20delete\ - d,\x20is\x20idle\x20for\x20too\x20long,\x20begins\x20a\x20new\x20transac\ - tion,\x20or\x20becomes\x20too\n\x20old.\x20\x20When\x20any\x20of\x20thes\ - e\x20happen,\x20it\x20is\x20not\x20possible\x20to\x20resume\x20the\x20qu\ - ery,\x20and\n\x20the\x20whole\x20operation\x20must\x20be\x20restarted\ - \x20from\x20the\x20beginning.\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\x20Creates\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\x20be\x20used\n\x20by\x20[StreamingRead][\ - google.spanner.v1.Spanner.StreamingRead]\x20to\x20specify\x20a\x20subset\ - \x20of\x20the\x20read\n\x20result\x20to\x20read.\x20\x20The\x20same\x20s\ - ession\x20and\x20read-only\x20transaction\x20must\x20be\x20used\x20by\n\ - \x20the\x20PartitionReadRequest\x20used\x20to\x20create\x20the\x20partit\ - ion\x20tokens\x20and\x20the\n\x20ReadRequests\x20that\x20use\x20the\x20p\ - artition\x20tokens.\x20\x20There\x20are\x20no\x20ordering\n\x20guarantee\ - s\x20on\x20rows\x20returned\x20among\x20the\x20returned\x20partition\x20\ - tokens,\x20or\x20even\n\x20within\x20each\x20individual\x20StreamingRead\ - \x20call\x20issued\x20with\x20a\x20partition_token.\n\n\x20Partition\x20\ - tokens\x20become\x20invalid\x20when\x20the\x20session\x20used\x20to\x20c\ - reate\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\x20poss\ - ible\x20to\x20resume\x20the\x20read,\x20and\n\x20the\x20whole\x20operati\ - on\x20must\x20be\x20restarted\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\nY\n\ - \x02\x04\0\x12\x06\xa5\x02\0\xb0\x02\x01\x1aK\x20The\x20request\x20for\ - \x20[CreateSession][google.spanner.v1.Spanner.CreateSession].\n\n\x0b\n\ - \x03\x04\0\x01\x12\x04\xa5\x02\x08\x1c\nM\n\x04\x04\0\x02\0\x12\x06\xa7\ - \x02\x02\xac\x02\x04\x1a=\x20Required.\x20The\x20database\x20in\x20which\ - \x20the\x20new\x20session\x20is\x20created.\n\n\x0f\n\x05\x04\0\x02\0\ - \x04\x12\x06\xa7\x02\x02\xa5\x02\x1e\n\r\n\x05\x04\0\x02\0\x05\x12\x04\ - \xa7\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa7\x02\t\x11\n\r\n\ - \x05\x04\0\x02\0\x03\x12\x04\xa7\x02\x14\x15\n\x0f\n\x05\x04\0\x02\0\x08\ - \x12\x06\xa7\x02\x16\xac\x02\x03\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\ - \x12\x04\xa8\x02\x04*\n\x11\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x06\xa9\ - \x02\x04\xab\x02\x05\n&\n\x04\x04\0\x02\x01\x12\x04\xaf\x02\x02\x16\x1a\ - \x18\x20The\x20session\x20to\x20create.\n\n\x0f\n\x05\x04\0\x02\x01\x04\ - \x12\x06\xaf\x02\x02\xac\x02\x04\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xaf\ - \x02\x02\t\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xaf\x02\n\x11\n\r\n\x05\ - \x04\0\x02\x01\x03\x12\x04\xaf\x02\x14\x15\ne\n\x02\x04\x01\x12\x06\xb3\ - \x02\0\xc5\x02\x01\x1aW\x20The\x20request\x20for\x20[BatchCreateSessions\ - ][google.spanner.v1.Spanner.BatchCreateSessions].\n\n\x0b\n\x03\x04\x01\ - \x01\x12\x04\xb3\x02\x08\"\nO\n\x04\x04\x01\x02\0\x12\x06\xb5\x02\x02\ - \xba\x02\x04\x1a?\x20Required.\x20The\x20database\x20in\x20which\x20the\ - \x20new\x20sessions\x20are\x20created.\n\n\x0f\n\x05\x04\x01\x02\0\x04\ - \x12\x06\xb5\x02\x02\xb3\x02$\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xb5\ - \x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xb5\x02\t\x11\n\r\n\x05\ - \x04\x01\x02\0\x03\x12\x04\xb5\x02\x14\x15\n\x0f\n\x05\x04\x01\x02\0\x08\ - \x12\x06\xb5\x02\x16\xba\x02\x03\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\ - \x12\x04\xb6\x02\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x06\xb7\ - \x02\x04\xb9\x02\x05\nA\n\x04\x04\x01\x02\x01\x12\x04\xbd\x02\x02\x1f\ - \x1a3\x20Parameters\x20to\x20be\x20applied\x20to\x20each\x20created\x20s\ - ession.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xbd\x02\x02\xba\x02\ - \x04\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xbd\x02\x02\t\n\r\n\x05\x04\ - \x01\x02\x01\x01\x12\x04\xbd\x02\n\x1a\n\r\n\x05\x04\x01\x02\x01\x03\x12\ - \x04\xbd\x02\x1d\x1e\n\xe7\x02\n\x04\x04\x01\x02\x02\x12\x04\xc4\x02\x02\ - C\x1a\xd8\x02\x20Required.\x20The\x20number\x20of\x20sessions\x20to\x20b\ - e\x20created\x20in\x20this\x20batch\x20call.\n\x20The\x20API\x20may\x20r\ - eturn\x20fewer\x20than\x20the\x20requested\x20number\x20of\x20sessions.\ - \x20If\x20a\n\x20specific\x20number\x20of\x20sessions\x20are\x20desired,\ - \x20the\x20client\x20can\x20make\x20additional\n\x20calls\x20to\x20Batch\ - CreateSessions\x20(adjusting\n\x20[session_count][google.spanner.v1.Batc\ - hCreateSessionsRequest.session_count]\x20as\x20necessary).\n\n\x0f\n\x05\ - \x04\x01\x02\x02\x04\x12\x06\xc4\x02\x02\xbd\x02\x1f\n\r\n\x05\x04\x01\ - \x02\x02\x05\x12\x04\xc4\x02\x02\x07\n\r\n\x05\x04\x01\x02\x02\x01\x12\ - \x04\xc4\x02\x08\x15\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xc4\x02\x18\ - \x19\n\r\n\x05\x04\x01\x02\x02\x08\x12\x04\xc4\x02\x1aB\n\x10\n\x08\x04\ - \x01\x02\x02\x08\x9c\x08\0\x12\x04\xc4\x02\x1bA\nf\n\x02\x04\x02\x12\x06\ - \xc8\x02\0\xcb\x02\x01\x1aX\x20The\x20response\x20for\x20[BatchCreateSes\ - sions][google.spanner.v1.Spanner.BatchCreateSessions].\n\n\x0b\n\x03\x04\ - \x02\x01\x12\x04\xc8\x02\x08#\n-\n\x04\x04\x02\x02\0\x12\x04\xca\x02\x02\ - \x1f\x1a\x1f\x20The\x20freshly\x20created\x20sessions.\n\n\r\n\x05\x04\ - \x02\x02\0\x04\x12\x04\xca\x02\x02\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\ - \xca\x02\x0b\x12\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xca\x02\x13\x1a\n\r\ - \n\x05\x04\x02\x02\0\x03\x12\x04\xca\x02\x1d\x1e\n3\n\x02\x04\x03\x12\ - \x06\xce\x02\0\xe8\x02\x01\x1a%\x20A\x20session\x20in\x20the\x20Cloud\ - \x20Spanner\x20API.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xce\x02\x08\x0f\n\ - \r\n\x03\x04\x03\x07\x12\x06\xcf\x02\x02\xd2\x02\x04\n\x0f\n\x05\x04\x03\ - \x07\x9d\x08\x12\x06\xcf\x02\x02\xd2\x02\x04\nU\n\x04\x04\x03\x02\0\x12\ - \x04\xd5\x02\x02>\x1aG\x20Output\x20only.\x20The\x20name\x20of\x20the\ - \x20session.\x20This\x20is\x20always\x20system-assigned.\n\n\x0f\n\x05\ - \x04\x03\x02\0\x04\x12\x06\xd5\x02\x02\xd2\x02\x04\n\r\n\x05\x04\x03\x02\ - \0\x05\x12\x04\xd5\x02\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xd5\ - \x02\t\r\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xd5\x02\x10\x11\n\r\n\x05\ - \x04\x03\x02\0\x08\x12\x04\xd5\x02\x12=\n\x10\n\x08\x04\x03\x02\0\x08\ - \x9c\x08\0\x12\x04\xd5\x02\x13<\n\xd6\x03\n\x04\x04\x03\x02\x01\x12\x04\ - \xe0\x02\x02!\x1a\xc7\x03\x20The\x20labels\x20for\x20the\x20session.\n\n\ - \x20\x20*\x20Label\x20keys\x20must\x20be\x20between\x201\x20and\x2063\ - \x20characters\x20long\x20and\x20must\x20conform\x20to\n\x20\x20\x20\x20\ - the\x20following\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\x20\ - to\x20the\x20regular\x20expression\x20`([a-z]([-a-z0-9]*[a-z0-9])?)?`.\n\ - \x20\x20*\x20No\x20more\x20than\x2064\x20labels\x20can\x20be\x20associat\ - ed\x20with\x20a\x20given\x20session.\n\n\x20See\x20https://goo.gl/xmQnxf\ - \x20for\x20more\x20information\x20on\x20and\x20examples\x20of\x20labels.\ - \n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xe0\x02\x02\xd5\x02>\n\r\n\ - \x05\x04\x03\x02\x01\x06\x12\x04\xe0\x02\x02\x15\n\r\n\x05\x04\x03\x02\ - \x01\x01\x12\x04\xe0\x02\x16\x1c\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\ - \xe0\x02\x1f\x20\nG\n\x04\x04\x03\x02\x02\x12\x04\xe3\x02\x02X\x1a9\x20O\ - utput\x20only.\x20The\x20timestamp\x20when\x20the\x20session\x20is\x20cr\ - eated.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xe3\x02\x02\xe0\x02!\n\ - \r\n\x05\x04\x03\x02\x02\x06\x12\x04\xe3\x02\x02\x1b\n\r\n\x05\x04\x03\ - \x02\x02\x01\x12\x04\xe3\x02\x1c'\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\ - \xe3\x02*+\n\r\n\x05\x04\x03\x02\x02\x08\x12\x04\xe3\x02,W\n\x10\n\x08\ - \x04\x03\x02\x02\x08\x9c\x08\0\x12\x04\xe3\x02-V\n\x8d\x01\n\x04\x04\x03\ - \x02\x03\x12\x04\xe7\x02\x02f\x1a\x7f\x20Output\x20only.\x20The\x20appro\ - ximate\x20timestamp\x20when\x20the\x20session\x20is\x20last\x20used.\x20\ - It\x20is\n\x20typically\x20earlier\x20than\x20the\x20actual\x20last\x20u\ - se\x20time.\n\n\x0f\n\x05\x04\x03\x02\x03\x04\x12\x06\xe7\x02\x02\xe3\ - \x02X\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xe7\x02\x02\x1b\n\r\n\x05\ - \x04\x03\x02\x03\x01\x12\x04\xe7\x02\x1c5\n\r\n\x05\x04\x03\x02\x03\x03\ - \x12\x04\xe7\x0289\n\r\n\x05\x04\x03\x02\x03\x08\x12\x04\xe7\x02:e\n\x10\ - \n\x08\x04\x03\x02\x03\x08\x9c\x08\0\x12\x04\xe7\x02;d\nS\n\x02\x04\x04\ - \x12\x06\xeb\x02\0\xf3\x02\x01\x1aE\x20The\x20request\x20for\x20[GetSess\ - ion][google.spanner.v1.Spanner.GetSession].\n\n\x0b\n\x03\x04\x04\x01\ - \x12\x04\xeb\x02\x08\x19\n@\n\x04\x04\x04\x02\0\x12\x06\xed\x02\x02\xf2\ - \x02\x04\x1a0\x20Required.\x20The\x20name\x20of\x20the\x20session\x20to\ - \x20retrieve.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xed\x02\x02\xeb\ - \x02\x1b\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xed\x02\x02\x08\n\r\n\x05\ - \x04\x04\x02\0\x01\x12\x04\xed\x02\t\r\n\r\n\x05\x04\x04\x02\0\x03\x12\ - \x04\xed\x02\x10\x11\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xed\x02\x12\ - \xf2\x02\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xee\x02\x04\ - *\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\xef\x02\x04\xf1\x02\x05\ - \nW\n\x02\x04\x05\x12\x06\xf6\x02\0\x93\x03\x01\x1aI\x20The\x20request\ - \x20for\x20[ListSessions][google.spanner.v1.Spanner.ListSessions].\n\n\ - \x0b\n\x03\x04\x05\x01\x12\x04\xf6\x02\x08\x1b\nC\n\x04\x04\x05\x02\0\ - \x12\x06\xf8\x02\x02\xfd\x02\x04\x1a3\x20Required.\x20The\x20database\ - \x20in\x20which\x20to\x20list\x20sessions.\n\n\x0f\n\x05\x04\x05\x02\0\ - \x04\x12\x06\xf8\x02\x02\xf6\x02\x1d\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\ - \xf8\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xf8\x02\t\x11\n\r\n\ - \x05\x04\x05\x02\0\x03\x12\x04\xf8\x02\x14\x15\n\x0f\n\x05\x04\x05\x02\0\ - \x08\x12\x06\xf8\x02\x16\xfd\x02\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\ - \x08\0\x12\x04\xf9\x02\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\ - \x06\xfa\x02\x04\xfc\x02\x05\n\x85\x01\n\x04\x04\x05\x02\x01\x12\x04\x81\ - \x03\x02\x16\x1aw\x20Number\x20of\x20sessions\x20to\x20be\x20returned\ - \x20in\x20the\x20response.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\ - \x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\ - \x04\x05\x02\x01\x04\x12\x06\x81\x03\x02\xfd\x02\x04\n\r\n\x05\x04\x05\ - \x02\x01\x05\x12\x04\x81\x03\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\ - \x04\x81\x03\x08\x11\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\x81\x03\x14\ - \x15\n\xd8\x01\n\x04\x04\x05\x02\x02\x12\x04\x86\x03\x02\x18\x1a\xc9\x01\ - \x20If\x20non-empty,\x20`page_token`\x20should\x20contain\x20a\n\x20[nex\ - t_page_token][google.spanner.v1.ListSessionsResponse.next_page_token]\ - \x20from\x20a\x20previous\n\x20[ListSessionsResponse][google.spanner.v1.\ - ListSessionsResponse].\n\n\x0f\n\x05\x04\x05\x02\x02\x04\x12\x06\x86\x03\ - \x02\x81\x03\x16\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\x86\x03\x02\x08\n\ - \r\n\x05\x04\x05\x02\x02\x01\x12\x04\x86\x03\t\x13\n\r\n\x05\x04\x05\x02\ - \x02\x03\x12\x04\x86\x03\x16\x17\n\xaf\x03\n\x04\x04\x05\x02\x03\x12\x04\ - \x92\x03\x02\x14\x1a\xa0\x03\x20An\x20expression\x20for\x20filtering\x20\ - the\x20results\x20of\x20the\x20request.\x20Filter\x20rules\x20are\n\x20c\ - ase\x20insensitive.\x20The\x20fields\x20eligible\x20for\x20filtering\x20\ - are:\n\n\x20\x20\x20*\x20`labels.key`\x20where\x20key\x20is\x20the\x20na\ - me\x20of\x20a\x20label\n\n\x20Some\x20examples\x20of\x20using\x20filters\ - \x20are:\n\n\x20\x20\x20*\x20`labels.env:*`\x20-->\x20The\x20session\x20\ - has\x20the\x20label\x20\"env\".\n\x20\x20\x20*\x20`labels.env:dev`\x20--\ - >\x20The\x20session\x20has\x20the\x20label\x20\"env\"\x20and\x20the\x20v\ - alue\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\x20s\ - tring\x20\"dev\".\n\n\x0f\n\x05\x04\x05\x02\x03\x04\x12\x06\x92\x03\x02\ - \x86\x03\x18\n\r\n\x05\x04\x05\x02\x03\x05\x12\x04\x92\x03\x02\x08\n\r\n\ - \x05\x04\x05\x02\x03\x01\x12\x04\x92\x03\t\x0f\n\r\n\x05\x04\x05\x02\x03\ - \x03\x12\x04\x92\x03\x12\x13\nX\n\x02\x04\x06\x12\x06\x96\x03\0\x9e\x03\ - \x01\x1aJ\x20The\x20response\x20for\x20[ListSessions][google.spanner.v1.\ - Spanner.ListSessions].\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x96\x03\x08\x1c\ - \n/\n\x04\x04\x06\x02\0\x12\x04\x98\x03\x02\x20\x1a!\x20The\x20list\x20o\ - f\x20requested\x20sessions.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\x98\ - \x03\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\x98\x03\x0b\x12\n\r\n\x05\ - \x04\x06\x02\0\x01\x12\x04\x98\x03\x13\x1b\n\r\n\x05\x04\x06\x02\0\x03\ - \x12\x04\x98\x03\x1e\x1f\n\xa4\x01\n\x04\x04\x06\x02\x01\x12\x04\x9d\x03\ - \x02\x1d\x1a\x95\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20\ - a\x20subsequent\n\x20[ListSessions][google.spanner.v1.Spanner.ListSessio\ - ns]\x20call\x20to\x20fetch\x20more\x20of\x20the\x20matching\n\x20session\ - s.\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\x9d\x03\x02\x98\x03\x20\n\r\ - \n\x05\x04\x06\x02\x01\x05\x12\x04\x9d\x03\x02\x08\n\r\n\x05\x04\x06\x02\ - \x01\x01\x12\x04\x9d\x03\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x9d\ - \x03\x1b\x1c\nY\n\x02\x04\x07\x12\x06\xa1\x03\0\xa9\x03\x01\x1aK\x20The\ + 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\x0f\n\x05\x04\0\x02\0\x04\x12\x06\ + \xaf\x02\x02\xad\x02\x1e\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\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\xb7\ + \x02\x02\xb4\x02\x04\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[BatchCreateSessions][google.spa\ + nner.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\x20which\x20the\x20new\x20se\ + ssions\x20are\x20created.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xbe\ + \x02\x02\xbc\x02$\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\x20Parame\ + ters\x20to\x20be\x20applied\x20to\x20each\x20created\x20session.\n\n\x0f\ + \n\x05\x04\x01\x02\x01\x04\x12\x06\xc6\x02\x02\xc3\x02\x04\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\x20Req\ + uired.\x20The\x20number\x20of\x20sessions\x20to\x20be\x20created\x20in\ + \x20this\x20batch\x20call.\n\x20The\x20API\x20may\x20return\x20fewer\x20\ + than\x20the\x20requested\x20number\x20of\x20sessions.\x20If\x20a\n\x20sp\ + ecific\x20number\x20of\x20sessions\x20are\x20desired,\x20the\x20client\ + \x20can\x20make\x20additional\n\x20calls\x20to\x20BatchCreateSessions\ + \x20(adjusting\n\x20[session_count][google.spanner.v1.BatchCreateSession\ + sRequest.session_count]\n\x20as\x20necessary).\n\n\x0f\n\x05\x04\x01\x02\ + \x02\x04\x12\x06\xce\x02\x02\xc6\x02\x1f\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][g\ + oogle.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\x20freshly\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\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\x20The\x20name\x20of\x20the\x20session.\x20This\x20is\x20a\ + lways\x20system-assigned;\x20values\x20provided\n\x20when\x20creating\ + \x20a\x20session\x20are\x20ignored.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\ + \x06\xe1\x02\x02\xdd\x02\x04\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\x20sess\ + ion.\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\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\x20more\x20than\x2064\x20labels\x20can\x20be\x20\ + associated\x20with\x20a\x20given\x20session.\n\n\x20See\x20https://goo.g\ + l/xmQnxf\x20for\x20more\x20information\x20on\x20and\x20examples\x20of\ + \x20labels.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xec\x02\x02\xe1\ + \x02\x12\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\x20sess\ + ion\x20is\x20created.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xef\x02\ + \x02\xec\x02!\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\x20timestamp\ + \x20when\x20the\x20session\x20is\x20last\x20used.\x20It\x20is\n\x20typic\ + ally\x20earlier\x20than\x20the\x20actual\x20last\x20use\x20time.\n\n\x0f\ + \n\x05\x04\x03\x02\x03\x04\x12\x06\xf3\x02\x02\xef\x02,\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\x20The\x20request\x20f\ + or\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\x20se\ + ssion\x20to\x20retrieve.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xf9\x02\ + \x02\xf7\x02\x1b\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.Spanner.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.\x20The\x20database\x20in\x20w\ + hich\x20to\x20list\x20sessions.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\ + \x82\x03\x02\x80\x03\x1d\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\x1a\ + w\x20Number\x20of\x20sessions\x20to\x20be\x20returned\x20in\x20the\x20re\ + sponse.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\x20the\x20server's\ + \x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x05\x02\x01\ + \x04\x12\x06\x8b\x03\x02\x87\x03\x04\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-em\ + pty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][go\ + ogle.spanner.v1.ListSessionsResponse.next_page_token]\n\x20from\x20a\x20\ + previous\n\x20[ListSessionsResponse][google.spanner.v1.ListSessionsRespo\ + nse].\n\n\x0f\n\x05\x04\x05\x02\x02\x04\x12\x06\x91\x03\x02\x8b\x03\x16\ + \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\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`labels.key`\x20where\x20key\x20is\x20the\x20name\x20of\x20\ + a\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\x20label\x20\"env\"\x20and\x20the\x20value\x20\ + of\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\x0f\n\x05\x04\x05\x02\x03\x04\x12\x06\x9d\x03\x02\x91\ + \x03\x18\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.Span\ + ner.ListSessions].\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\ + \x20requested\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.ListSession\ + s]\x20call\x20to\x20fetch\x20more\n\x20of\x20the\x20matching\x20sessions\ + .\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xa8\x03\x02\xa3\x03\x20\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\ \x20request\x20for\x20[DeleteSession][google.spanner.v1.Spanner.DeleteSe\ - ssion].\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xa1\x03\x08\x1c\n>\n\x04\x04\ - \x07\x02\0\x12\x06\xa3\x03\x02\xa8\x03\x04\x1a.\x20Required.\x20The\x20n\ + ssion].\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\x20n\ ame\x20of\x20the\x20session\x20to\x20delete.\n\n\x0f\n\x05\x04\x07\x02\0\ - \x04\x12\x06\xa3\x03\x02\xa1\x03\x1e\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\ - \xa3\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xa3\x03\t\r\n\r\n\ - \x05\x04\x07\x02\0\x03\x12\x04\xa3\x03\x10\x11\n\x0f\n\x05\x04\x07\x02\0\ - \x08\x12\x06\xa3\x03\x12\xa8\x03\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\ - \x08\0\x12\x04\xa4\x03\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\ - \x06\xa5\x03\x04\xa7\x03\x05\n\x9e\x01\n\x02\x04\x08\x12\x06\xad\x03\0\ - \xa5\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\xad\x03\x08\x19\n0\n\x04\x04\x08\x03\0\x12\x06\xaf\x03\x02\xc4\x03\ - \x03\x1a\x20\x20Query\x20optimizer\x20configuration.\n\n\r\n\x05\x04\x08\ - \x03\0\x01\x12\x04\xaf\x03\n\x16\n\xae\x07\n\x06\x04\x08\x03\0\x02\0\x12\ - \x04\xc3\x03\x04!\x1a\x9d\x07\x20An\x20option\x20to\x20control\x20the\ - \x20selection\x20of\x20optimizer\x20version.\n\n\x20This\x20parameter\ - \x20allows\x20individual\x20queries\x20to\x20pick\x20different\x20query\ - \n\x20optimizer\x20versions.\n\n\x20Specifying\x20\"latest\"\x20as\x20a\ - \x20value\x20instructs\x20Cloud\x20Spanner\x20to\x20use\x20the\n\x20late\ - st\x20supported\x20query\x20optimizer\x20version.\x20If\x20not\x20specif\ - ied,\x20Cloud\x20Spanner\n\x20uses\x20optimizer\x20version\x20set\x20at\ - \x20the\x20database\x20level\x20options.\x20Any\x20other\n\x20positive\ - \x20integer\x20(from\x20the\x20list\x20of\x20supported\x20optimizer\x20v\ - ersions)\n\x20overrides\x20the\x20default\x20optimizer\x20version\x20for\ - \x20query\x20execution.\n\x20The\x20list\x20of\x20supported\x20optimizer\ - \x20versions\x20can\x20be\x20queried\x20from\n\x20SPANNER_SYS.SUPPORTED_\ - OPTIMIZER_VERSIONS.\x20Executing\x20a\x20SQL\x20statement\n\x20with\x20a\ - n\x20invalid\x20optimizer\x20version\x20will\x20fail\x20with\x20a\x20syn\ - tax\x20error\n\x20(`INVALID_ARGUMENT`)\x20status.\n\x20See\n\x20https://\ - cloud.google.com/spanner/docs/query-optimizer/manage-query-optimizer\n\ - \x20for\x20more\x20information\x20on\x20managing\x20the\x20query\x20opti\ - mizer.\n\n\x20The\x20`optimizer_version`\x20statement\x20hint\x20has\x20\ - precedence\x20over\x20this\x20setting.\n\n\x11\n\x07\x04\x08\x03\0\x02\0\ - \x04\x12\x06\xc3\x03\x04\xaf\x03\x18\n\x0f\n\x07\x04\x08\x03\0\x02\0\x05\ - \x12\x04\xc3\x03\x04\n\n\x0f\n\x07\x04\x08\x03\0\x02\0\x01\x12\x04\xc3\ - \x03\x0b\x1c\n\x0f\n\x07\x04\x08\x03\0\x02\0\x03\x12\x04\xc3\x03\x1f\x20\ - \n@\n\x04\x04\x08\x04\0\x12\x06\xc7\x03\x02\xd2\x03\x03\x1a0\x20Mode\x20\ - in\x20which\x20the\x20statement\x20must\x20be\x20processed.\n\n\r\n\x05\ - \x04\x08\x04\0\x01\x12\x04\xc7\x03\x07\x10\nL\n\x06\x04\x08\x04\0\x02\0\ - \x12\x04\xc9\x03\x04\x0f\x1a<\x20The\x20default\x20mode.\x20Only\x20the\ - \x20statement\x20results\x20are\x20returned.\n\n\x0f\n\x07\x04\x08\x04\0\ - \x02\0\x01\x12\x04\xc9\x03\x04\n\n\x0f\n\x07\x04\x08\x04\0\x02\0\x02\x12\ - \x04\xc9\x03\r\x0e\nr\n\x06\x04\x08\x04\0\x02\x01\x12\x04\xcd\x03\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\x08\x04\0\x02\x01\x01\x12\x04\xcd\x03\x04\x08\n\x0f\ - \n\x07\x04\x08\x04\0\x02\x01\x02\x12\x04\xcd\x03\x0b\x0c\nm\n\x06\x04\ - \x08\x04\0\x02\x02\x12\x04\xd1\x03\x04\x10\x1a]\x20This\x20mode\x20retur\ - ns\x20both\x20the\x20query\x20plan\x20and\x20the\x20execution\x20statist\ - ics\x20along\n\x20with\x20the\x20results.\n\n\x0f\n\x07\x04\x08\x04\0\ - \x02\x02\x01\x12\x04\xd1\x03\x04\x0b\n\x0f\n\x07\x04\x08\x04\0\x02\x02\ - \x02\x12\x04\xd1\x03\x0e\x0f\nS\n\x04\x04\x08\x02\0\x12\x06\xd5\x03\x02\ - \xda\x03\x04\x1aC\x20Required.\x20The\x20session\x20in\x20which\x20the\ - \x20SQL\x20query\x20should\x20be\x20performed.\n\n\x0f\n\x05\x04\x08\x02\ - \0\x04\x12\x06\xd5\x03\x02\xd2\x03\x03\n\r\n\x05\x04\x08\x02\0\x05\x12\ - \x04\xd5\x03\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xd5\x03\t\x10\n\ - \r\n\x05\x04\x08\x02\0\x03\x12\x04\xd5\x03\x13\x14\n\x0f\n\x05\x04\x08\ - \x02\0\x08\x12\x06\xd5\x03\x15\xda\x03\x03\n\x10\n\x08\x04\x08\x02\0\x08\ - \x9c\x08\0\x12\x04\xd6\x03\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\ - \x12\x06\xd7\x03\x04\xd9\x03\x05\n\xb9\x03\n\x04\x04\x08\x02\x01\x12\x04\ - \xe6\x03\x02&\x1a\xaa\x03\x20The\x20transaction\x20to\x20use.\n\n\x20For\ + \x04\x12\x06\xae\x03\x02\xac\x03\x1e\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\x20\ + Mode\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.\x20Only\ + \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\x20pl\ + an,\x20without\x20any\x20results\x20or\n\x20execution\x20statistics\x20i\ + nformation.\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\x20execution\ + \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\x0f\n\x05\x04\ + \x08\x02\0\x04\x12\x06\xc6\x03\x02\xc3\x03\x03\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\x20with\x20strong\x20co\ ncurrency.\n\n\x20Standard\x20DML\x20statements\x20require\x20a\x20read-\ @@ -7127,611 +6626,571 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20must\x20either\x20supply\x20an\x20existing\x20transaction\x20ID\x20o\ r\x20begin\x20a\x20new\x20transaction.\n\n\x20Partitioned\x20DML\x20requ\ ires\x20an\x20existing\x20Partitioned\x20DML\x20transaction\x20ID.\n\n\ - \x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xe6\x03\x02\xda\x03\x04\n\r\n\x05\ - \x04\x08\x02\x01\x06\x12\x04\xe6\x03\x02\x15\n\r\n\x05\x04\x08\x02\x01\ - \x01\x12\x04\xe6\x03\x16!\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xe6\x03$\ - %\n)\n\x04\x04\x08\x02\x02\x12\x04\xe9\x03\x02:\x1a\x1b\x20Required.\x20\ - The\x20SQL\x20string.\n\n\x0f\n\x05\x04\x08\x02\x02\x04\x12\x06\xe9\x03\ - \x02\xe6\x03&\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\xe9\x03\x02\x08\n\r\ - \n\x05\x04\x08\x02\x02\x01\x12\x04\xe9\x03\t\x0c\n\r\n\x05\x04\x08\x02\ - \x02\x03\x12\x04\xe9\x03\x0f\x10\n\r\n\x05\x04\x08\x02\x02\x08\x12\x04\ - \xe9\x03\x119\n\x10\n\x08\x04\x08\x02\x02\x08\x9c\x08\0\x12\x04\xe9\x03\ - \x128\n\xdc\x04\n\x04\x04\x08\x02\x03\x12\x04\xf8\x03\x02$\x1a\xcd\x04\ + \x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xd5\x03\x02\xc9\x03\x04\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.\x20\ + The\x20SQL\x20string.\n\n\x0f\n\x05\x04\x08\x02\x02\x04\x12\x06\xd8\x03\ + \x02\xd5\x03&\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\x20placeho\ lders\x20in\x20the\x20SQL\x20string.\n\n\x20A\x20parameter\x20placeholde\ r\x20consists\x20of\x20the\x20`@`\x20character\x20followed\x20by\x20the\ \n\x20parameter\x20name\x20(for\x20example,\x20`@firstName`).\x20Paramet\ - er\x20names\x20must\x20conform\n\x20to\x20the\x20naming\x20requirements\ - \x20of\x20identifiers\x20as\x20specified\x20at\n\x20https://cloud.google\ - .com/spanner/docs/lexical#identifiers.\n\n\x20Parameters\x20can\x20appea\ - r\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\x0f\n\x05\x04\x08\x02\x03\x04\x12\x06\xf8\x03\x02\xe9\x03:\n\ - \r\n\x05\x04\x08\x02\x03\x06\x12\x04\xf8\x03\x02\x18\n\r\n\x05\x04\x08\ - \x02\x03\x01\x12\x04\xf8\x03\x19\x1f\n\r\n\x05\x04\x08\x02\x03\x03\x12\ - \x04\xf8\x03\"#\n\xdc\x03\n\x04\x04\x08\x02\x04\x12\x04\x82\x04\x02$\x1a\ - \xcd\x03\x20It\x20is\x20not\x20always\x20possible\x20for\x20Cloud\x20Spa\ - nner\x20to\x20infer\x20the\x20right\x20SQL\x20type\n\x20from\x20a\x20JSO\ - N\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\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\x05\x04\ - \x08\x02\x04\x04\x12\x06\x82\x04\x02\xf8\x03$\n\r\n\x05\x04\x08\x02\x04\ - \x06\x12\x04\x82\x04\x02\x13\n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\x82\ - \x04\x14\x1f\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\x82\x04\"#\n\x9e\x03\ - \n\x04\x04\x08\x02\x05\x12\x04\x8a\x04\x02\x19\x1a\x8f\x03\x20If\x20this\ - \x20request\x20is\x20resuming\x20a\x20previously\x20interrupted\x20SQL\ - \x20statement\n\x20execution,\x20`resume_token`\x20should\x20be\x20copie\ - d\x20from\x20the\x20last\n\x20[PartialResultSet][google.spanner.v1.Parti\ - alResultSet]\x20yielded\x20before\x20the\x20interruption.\x20Doing\x20th\ - is\n\x20enables\x20the\x20new\x20SQL\x20statement\x20execution\x20to\x20\ - resume\x20where\x20the\x20last\x20one\x20left\n\x20off.\x20The\x20rest\ - \x20of\x20the\x20request\x20parameters\x20must\x20exactly\x20match\x20th\ - e\n\x20request\x20that\x20yielded\x20this\x20token.\n\n\x0f\n\x05\x04\ - \x08\x02\x05\x04\x12\x06\x8a\x04\x02\x82\x04$\n\r\n\x05\x04\x08\x02\x05\ - \x05\x12\x04\x8a\x04\x02\x07\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\x8a\ - \x04\x08\x14\n\r\n\x05\x04\x08\x02\x05\x03\x12\x04\x8a\x04\x17\x18\n\xf2\ - \x02\n\x04\x04\x08\x02\x06\x12\x04\x8f\x04\x02\x1b\x1a\xe3\x02\x20Used\ - \x20to\x20control\x20the\x20amount\x20of\x20debugging\x20information\x20\ - returned\x20in\n\x20[ResultSetStats][google.spanner.v1.ResultSetStats].\ - \x20If\x20[partition_token][google.spanner.v1.ExecuteSqlRequest.partitio\ - n_token]\x20is\x20set,\x20[query_mode][google.spanner.v1.ExecuteSqlReque\ - st.query_mode]\x20can\x20only\n\x20be\x20set\x20to\x20[QueryMode.NORMAL]\ - [google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].\n\n\x0f\n\x05\ - \x04\x08\x02\x06\x04\x12\x06\x8f\x04\x02\x8a\x04\x19\n\r\n\x05\x04\x08\ - \x02\x06\x06\x12\x04\x8f\x04\x02\x0b\n\r\n\x05\x04\x08\x02\x06\x01\x12\ - \x04\x8f\x04\x0c\x16\n\r\n\x05\x04\x08\x02\x06\x03\x12\x04\x8f\x04\x19\ - \x1a\n\x99\x02\n\x04\x04\x08\x02\x07\x12\x04\x95\x04\x02\x1c\x1a\x8a\x02\ - \x20If\x20present,\x20results\x20will\x20be\x20restricted\x20to\x20the\ - \x20specified\x20partition\n\x20previously\x20created\x20using\x20Partit\ - ionQuery().\x20\x20There\x20must\x20be\x20an\x20exact\n\x20match\x20for\ - \x20the\x20values\x20of\x20fields\x20common\x20to\x20this\x20message\x20\ - and\x20the\n\x20PartitionQueryRequest\x20message\x20used\x20to\x20create\ - \x20this\x20partition_token.\n\n\x0f\n\x05\x04\x08\x02\x07\x04\x12\x06\ - \x95\x04\x02\x8f\x04\x1b\n\r\n\x05\x04\x08\x02\x07\x05\x12\x04\x95\x04\ - \x02\x07\n\r\n\x05\x04\x08\x02\x07\x01\x12\x04\x95\x04\x08\x17\n\r\n\x05\ - \x04\x08\x02\x07\x03\x12\x04\x95\x04\x1a\x1b\n\x9b\x04\n\x04\x04\x08\x02\ - \x08\x12\x04\xa1\x04\x02\x12\x1a\x8c\x04\x20A\x20per-transaction\x20sequ\ - ence\x20number\x20used\x20to\x20identify\x20this\x20request.\x20This\x20\ - field\n\x20makes\x20each\x20request\x20idempotent\x20such\x20that\x20if\ - \x20the\x20request\x20is\x20received\x20multiple\n\x20times,\x20at\x20mo\ - st\x20one\x20will\x20succeed.\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\x20yield\x20the\x20same\x20response\x20as\x20the\ - \x20first\x20execution.\n\n\x20Required\x20for\x20DML\x20statements.\x20\ - Ignored\x20for\x20queries.\n\n\x0f\n\x05\x04\x08\x02\x08\x04\x12\x06\xa1\ - \x04\x02\x95\x04\x1c\n\r\n\x05\x04\x08\x02\x08\x05\x12\x04\xa1\x04\x02\ - \x07\n\r\n\x05\x04\x08\x02\x08\x01\x12\x04\xa1\x04\x08\r\n\r\n\x05\x04\ - \x08\x02\x08\x03\x12\x04\xa1\x04\x10\x11\nI\n\x04\x04\x08\x02\t\x12\x04\ - \xa4\x04\x02\"\x1a;\x20Query\x20optimizer\x20configuration\x20to\x20use\ - \x20for\x20the\x20given\x20query.\n\n\x0f\n\x05\x04\x08\x02\t\x04\x12\ - \x06\xa4\x04\x02\xa1\x04\x12\n\r\n\x05\x04\x08\x02\t\x06\x12\x04\xa4\x04\ - \x02\x0e\n\r\n\x05\x04\x08\x02\t\x01\x12\x04\xa4\x04\x0f\x1c\n\r\n\x05\ - \x04\x08\x02\t\x03\x12\x04\xa4\x04\x1f!\n]\n\x02\x04\t\x12\x06\xa8\x04\0\ - \xe7\x04\x01\x1aO\x20The\x20request\x20for\x20[ExecuteBatchDml][google.s\ - panner.v1.Spanner.ExecuteBatchDml].\n\n\x0b\n\x03\x04\t\x01\x12\x04\xa8\ - \x04\x08\x1e\n)\n\x04\x04\t\x03\0\x12\x06\xaa\x04\x02\xc5\x04\x03\x1a\ - \x19\x20A\x20single\x20DML\x20statement.\n\n\r\n\x05\x04\t\x03\0\x01\x12\ - \x04\xaa\x04\n\x13\n+\n\x06\x04\t\x03\0\x02\0\x12\x04\xac\x04\x04\x13\ - \x1a\x1b\x20Required.\x20The\x20DML\x20string.\n\n\x11\n\x07\x04\t\x03\0\ - \x02\0\x04\x12\x06\xac\x04\x04\xaa\x04\x15\n\x0f\n\x07\x04\t\x03\0\x02\0\ - \x05\x12\x04\xac\x04\x04\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x01\x12\x04\xac\ - \x04\x0b\x0e\n\x0f\n\x07\x04\t\x03\0\x02\0\x03\x12\x04\xac\x04\x11\x12\n\ - \x8a\x04\n\x06\x04\t\x03\0\x02\x01\x12\x04\xba\x04\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\ + er\x20names\x20can\x20contain\n\x20letters,\x20numbers,\x20and\x20unders\ + cores.\n\n\x20Parameters\x20can\x20appear\x20anywhere\x20that\x20a\x20li\ + teral\x20value\x20is\x20expected.\x20\x20The\x20same\n\x20parameter\x20n\ + ame\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\x11\n\x07\x04\t\x03\0\x02\ - \x01\x04\x12\x06\xba\x04\x04\xac\x04\x13\n\x0f\n\x07\x04\t\x03\0\x02\x01\ - \x06\x12\x04\xba\x04\x04\x1a\n\x0f\n\x07\x04\t\x03\0\x02\x01\x01\x12\x04\ - \xba\x04\x1b!\n\x0f\n\x07\x04\t\x03\0\x02\x01\x03\x12\x04\xba\x04$%\n\ - \xed\x03\n\x06\x04\t\x03\0\x02\x02\x12\x04\xc4\x04\x04&\x1a\xdc\x03\x20I\ - t\x20is\x20not\x20always\x20possible\x20for\x20Cloud\x20Spanner\x20to\ - \x20infer\x20the\x20right\x20SQL\x20type\n\x20from\x20a\x20JSON\x20value\ - .\x20\x20For\x20example,\x20values\x20of\x20type\x20`BYTES`\x20and\x20va\ - lues\n\x20of\x20type\x20`STRING`\x20both\x20appear\x20in\x20[params][goo\ - gle.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\x11\n\x07\x04\t\ - \x03\0\x02\x02\x04\x12\x06\xc4\x04\x04\xba\x04&\n\x0f\n\x07\x04\t\x03\0\ - \x02\x02\x06\x12\x04\xc4\x04\x04\x15\n\x0f\n\x07\x04\t\x03\0\x02\x02\x01\ - \x12\x04\xc4\x04\x16!\n\x0f\n\x07\x04\t\x03\0\x02\x02\x03\x12\x04\xc4\ - \x04$%\nX\n\x04\x04\t\x02\0\x12\x06\xc8\x04\x02\xcd\x04\x04\x1aH\x20Requ\ - ired.\x20The\x20session\x20in\x20which\x20the\x20DML\x20statements\x20sh\ - ould\x20be\x20performed.\n\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\xc8\x04\ - \x02\xc5\x04\x03\n\r\n\x05\x04\t\x02\0\x05\x12\x04\xc8\x04\x02\x08\n\r\n\ - \x05\x04\t\x02\0\x01\x12\x04\xc8\x04\t\x10\n\r\n\x05\x04\t\x02\0\x03\x12\ - \x04\xc8\x04\x13\x14\n\x0f\n\x05\x04\t\x02\0\x08\x12\x06\xc8\x04\x15\xcd\ - \x04\x03\n\x10\n\x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xc9\x04\x04*\n\ - \x11\n\x07\x04\t\x02\0\x08\x9f\x08\x12\x06\xca\x04\x04\xcc\x04\x05\n\xf4\ - \x01\n\x04\x04\t\x02\x01\x12\x04\xd4\x04\x02O\x1a\xe5\x01\x20Required.\ - \x20The\x20transaction\x20to\x20use.\x20Must\x20be\x20a\x20read-write\ - \x20transaction.\n\n\x20To\x20protect\x20against\x20replays,\x20single-u\ - se\x20transactions\x20are\x20not\x20supported.\x20The\n\x20caller\x20mus\ - t\x20either\x20supply\x20an\x20existing\x20transaction\x20ID\x20or\x20be\ - gin\x20a\x20new\n\x20transaction.\n\n\x0f\n\x05\x04\t\x02\x01\x04\x12\ - \x06\xd4\x04\x02\xcd\x04\x04\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\xd4\x04\ - \x02\x15\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xd4\x04\x16!\n\r\n\x05\x04\ - \t\x02\x01\x03\x12\x04\xd4\x04$%\n\r\n\x05\x04\t\x02\x01\x08\x12\x04\xd4\ - \x04&N\n\x10\n\x08\x04\t\x02\x01\x08\x9c\x08\0\x12\x04\xd4\x04'M\n\xe8\ - \x02\n\x04\x04\t\x02\x02\x12\x04\xdc\x04\x02M\x1a\xd9\x02\x20Required.\ - \x20The\x20list\x20of\x20statements\x20to\x20execute\x20in\x20this\x20ba\ - tch.\x20Statements\x20are\x20executed\n\x20serially,\x20such\x20that\x20\ - the\x20effects\x20of\x20statement\x20`i`\x20are\x20visible\x20to\x20stat\ - ement\n\x20`i+1`.\x20Each\x20statement\x20must\x20be\x20a\x20DML\x20stat\ - ement.\x20Execution\x20stops\x20at\x20the\n\x20first\x20failed\x20statem\ - ent;\x20the\x20remaining\x20statements\x20are\x20not\x20executed.\n\n\ - \x20Callers\x20must\x20provide\x20at\x20least\x20one\x20statement.\n\n\r\ - \n\x05\x04\t\x02\x02\x04\x12\x04\xdc\x04\x02\n\n\r\n\x05\x04\t\x02\x02\ - \x06\x12\x04\xdc\x04\x0b\x14\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xdc\x04\ - \x15\x1f\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xdc\x04\"#\n\r\n\x05\x04\t\ - \x02\x02\x08\x12\x04\xdc\x04$L\n\x10\n\x08\x04\t\x02\x02\x08\x9c\x08\0\ - \x12\x04\xdc\x04%K\n\xf1\x03\n\x04\x04\t\x02\x03\x12\x04\xe6\x04\x02;\ - \x1a\xe2\x03\x20Required.\x20A\x20per-transaction\x20sequence\x20number\ - \x20used\x20to\x20identify\x20this\x20request.\x20This\x20field\n\x20mak\ - es\x20each\x20request\x20idempotent\x20such\x20that\x20if\x20the\x20requ\ - est\x20is\x20received\x20multiple\n\x20times,\x20at\x20most\x20one\x20wi\ - ll\x20succeed.\n\n\x20The\x20sequence\x20number\x20must\x20be\x20monoton\ - ically\x20increasing\x20within\x20the\n\x20transaction.\x20If\x20a\x20re\ - quest\x20arrives\x20for\x20the\x20first\x20time\x20with\x20an\x20out-of-\ - order\n\x20sequence\x20number,\x20the\x20transaction\x20may\x20be\x20abo\ - rted.\x20Replays\x20of\x20previously\n\x20handled\x20requests\x20will\ - \x20yield\x20the\x20same\x20response\x20as\x20the\x20first\x20execution.\ - \n\n\x0f\n\x05\x04\t\x02\x03\x04\x12\x06\xe6\x04\x02\xdc\x04M\n\r\n\x05\ - \x04\t\x02\x03\x05\x12\x04\xe6\x04\x02\x07\n\r\n\x05\x04\t\x02\x03\x01\ - \x12\x04\xe6\x04\x08\r\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xe6\x04\x10\ - \x11\n\r\n\x05\x04\t\x02\x03\x08\x12\x04\xe6\x04\x12:\n\x10\n\x08\x04\t\ - \x02\x03\x08\x9c\x08\0\x12\x04\xe6\x04\x139\n\xbf\n\n\x02\x04\n\x12\x06\ - \x81\x05\0\x8e\x05\x01\x1a\xb0\n\x20The\x20response\x20for\x20[ExecuteBa\ - tchDml][google.spanner.v1.Spanner.ExecuteBatchDml].\x20Contains\x20a\x20\ - list\n\x20of\x20[ResultSet][google.spanner.v1.ResultSet]\x20messages,\ - \x20one\x20for\x20each\x20DML\x20statement\x20that\x20has\x20successfull\ - y\n\x20executed,\x20in\x20the\x20same\x20order\x20as\x20the\x20statement\ - s\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\n\x01\x12\x04\x81\x05\x08\x1f\n\xa8\x04\ - \n\x04\x04\n\x02\0\x12\x04\x89\x05\x02%\x1a\x99\x04\x20One\x20[ResultSet\ - ][google.spanner.v1.ResultSet]\x20for\x20each\x20statement\x20in\x20the\ - \x20request\x20that\x20ran\x20successfully,\n\x20in\x20the\x20same\x20or\ - der\x20as\x20the\x20statements\x20in\x20the\x20request.\x20Each\x20[Resu\ - ltSet][google.spanner.v1.ResultSet]\x20does\n\x20not\x20contain\x20any\ - \x20rows.\x20The\x20[ResultSetStats][google.spanner.v1.ResultSetStats]\ - \x20in\x20each\x20[ResultSet][google.spanner.v1.ResultSet]\x20contain\n\ - \x20the\x20number\x20of\x20rows\x20modified\x20by\x20the\x20statement.\n\ - \n\x20Only\x20the\x20first\x20[ResultSet][google.spanner.v1.ResultSet]\ - \x20in\x20the\x20response\x20contains\x20valid\n\x20[ResultSetMetadata][\ - google.spanner.v1.ResultSetMetadata].\n\n\r\n\x05\x04\n\x02\0\x04\x12\ - \x04\x89\x05\x02\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\x89\x05\x0b\x14\n\r\ - \n\x05\x04\n\x02\0\x01\x12\x04\x89\x05\x15\x20\n\r\n\x05\x04\n\x02\0\x03\ - \x12\x04\x89\x05#$\n\x91\x01\n\x04\x04\n\x02\x01\x12\x04\x8d\x05\x02\x1f\ - \x1a\x82\x01\x20If\x20all\x20DML\x20statements\x20are\x20executed\x20suc\ - cessfully,\x20the\x20status\x20is\x20`OK`.\n\x20Otherwise,\x20the\x20err\ - or\x20status\x20of\x20the\x20first\x20failed\x20statement.\n\n\x0f\n\x05\ - \x04\n\x02\x01\x04\x12\x06\x8d\x05\x02\x89\x05%\n\r\n\x05\x04\n\x02\x01\ - \x06\x12\x04\x8d\x05\x02\x13\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x8d\x05\ - \x14\x1a\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\x8d\x05\x1d\x1e\nN\n\x02\ - \x04\x0b\x12\x06\x92\x05\0\xa4\x05\x01\x1a@\x20Options\x20for\x20a\x20Pa\ - rtitionQueryRequest\x20and\n\x20PartitionReadRequest.\n\n\x0b\n\x03\x04\ - \x0b\x01\x12\x04\x92\x05\x08\x18\n\xba\x02\n\x04\x04\x0b\x02\0\x12\x04\ - \x99\x05\x02!\x1a\xab\x02\x20**Note:**\x20This\x20hint\x20is\x20currentl\ - y\x20ignored\x20by\x20PartitionQuery\x20and\n\x20PartitionRead\x20reques\ - ts.\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.\x20Th\ - e\x20actual\x20size\x20of\x20each\n\x20partition\x20may\x20be\x20smaller\ - \x20or\x20larger\x20than\x20this\x20size\x20request.\n\n\x0f\n\x05\x04\ - \x0b\x02\0\x04\x12\x06\x99\x05\x02\x92\x05\x1a\n\r\n\x05\x04\x0b\x02\0\ - \x05\x12\x04\x99\x05\x02\x07\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x99\x05\ - \x08\x1c\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x99\x05\x1f\x20\n\xb8\x03\n\ - \x04\x04\x0b\x02\x01\x12\x04\xa3\x05\x02\x1b\x1a\xa9\x03\x20**Note:**\ - \x20This\x20hint\x20is\x20currently\x20ignored\x20by\x20PartitionQuery\ - \x20and\n\x20PartitionRead\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,000.\x20The\x20maximum\x20value\x20is\x20currently\ - \x20200,000.\x20\x20This\x20is\x20only\n\x20a\x20hint.\x20\x20The\x20act\ - ual\x20number\x20of\x20partitions\x20returned\x20may\x20be\x20smaller\ - \x20or\x20larger\n\x20than\x20this\x20maximum\x20count\x20request.\n\n\ - \x0f\n\x05\x04\x0b\x02\x01\x04\x12\x06\xa3\x05\x02\x99\x05!\n\r\n\x05\ - \x04\x0b\x02\x01\x05\x12\x04\xa3\x05\x02\x07\n\r\n\x05\x04\x0b\x02\x01\ - \x01\x12\x04\xa3\x05\x08\x16\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xa3\ - \x05\x19\x1a\nZ\n\x02\x04\x0c\x12\x06\xa7\x05\0\xda\x05\x01\x1aL\x20The\ - \x20request\x20for\x20[PartitionQuery][google.spanner.v1.Spanner.Partiti\ - onQuery]\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xa7\x05\x08\x1d\nF\n\x04\x04\ - \x0c\x02\0\x12\x06\xa9\x05\x02\xae\x05\x04\x1a6\x20Required.\x20The\x20s\ - ession\x20used\x20to\x20create\x20the\x20partitions.\n\n\x0f\n\x05\x04\ - \x0c\x02\0\x04\x12\x06\xa9\x05\x02\xa7\x05\x1f\n\r\n\x05\x04\x0c\x02\0\ - \x05\x12\x04\xa9\x05\x02\x08\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xa9\x05\ - \t\x10\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xa9\x05\x13\x14\n\x0f\n\x05\ - \x04\x0c\x02\0\x08\x12\x06\xa9\x05\x15\xae\x05\x03\n\x10\n\x08\x04\x0c\ - \x02\0\x08\x9c\x08\0\x12\x04\xaa\x05\x04*\n\x11\n\x07\x04\x0c\x02\0\x08\ - \x9f\x08\x12\x06\xab\x05\x04\xad\x05\x05\no\n\x04\x04\x0c\x02\x01\x12\ - \x04\xb2\x05\x02&\x1aa\x20Read\x20only\x20snapshot\x20transactions\x20ar\ - e\x20supported,\x20read/write\x20and\x20single\x20use\n\x20transactions\ - \x20are\x20not.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\xb2\x05\x02\ - \xae\x05\x04\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\xb2\x05\x02\x15\n\r\n\ - \x05\x04\x0c\x02\x01\x01\x12\x04\xb2\x05\x16!\n\r\n\x05\x04\x0c\x02\x01\ - \x03\x12\x04\xb2\x05$%\n\xf8\x04\n\x04\x04\x0c\x02\x02\x12\x04\xbe\x05\ - \x02:\x1a\xe9\x04\x20Required.\x20The\x20query\x20request\x20to\x20gener\ - ate\x20partitions\x20for.\x20The\x20request\x20will\x20fail\x20if\n\x20t\ - he\x20query\x20is\x20not\x20root\x20partitionable.\x20The\x20query\x20pl\ - an\x20of\x20a\x20root\n\x20partitionable\x20query\x20has\x20a\x20single\ - \x20distributed\x20union\x20operator.\x20A\x20distributed\n\x20union\x20\ - operator\x20conceptually\x20divides\x20one\x20or\x20more\x20tables\x20in\ - to\x20multiple\n\x20splits,\x20remotely\x20evaluates\x20a\x20subquery\ - \x20independently\x20on\x20each\x20split,\x20and\n\x20then\x20unions\x20\ - all\x20results.\n\n\x20This\x20must\x20not\x20contain\x20DML\x20commands\ - ,\x20such\x20as\x20INSERT,\x20UPDATE,\x20or\n\x20DELETE.\x20Use\x20[Exec\ - uteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql]\x20with\ - \x20a\n\x20PartitionedDml\x20transaction\x20for\x20large,\x20partition-f\ - riendly\x20DML\x20operations.\n\n\x0f\n\x05\x04\x0c\x02\x02\x04\x12\x06\ - \xbe\x05\x02\xb2\x05&\n\r\n\x05\x04\x0c\x02\x02\x05\x12\x04\xbe\x05\x02\ - \x08\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\xbe\x05\t\x0c\n\r\n\x05\x04\ - \x0c\x02\x02\x03\x12\x04\xbe\x05\x0f\x10\n\r\n\x05\x04\x0c\x02\x02\x08\ - \x12\x04\xbe\x05\x119\n\x10\n\x08\x04\x0c\x02\x02\x08\x9c\x08\0\x12\x04\ - \xbe\x05\x128\n\x88\x04\n\x04\x04\x0c\x02\x03\x12\x04\xcc\x05\x02$\x1a\ - \xf9\x03\x20Parameter\x20names\x20and\x20values\x20that\x20bind\x20to\ - \x20placeholders\x20in\x20the\x20SQL\x20string.\n\n\x20A\x20parameter\ + atement\x20with\x20unbound\x20parameters.\n\n\x0f\n\x05\x04\x08\x02\x03\ + \x04\x12\x06\xe6\x03\x02\xd8\x03:\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\x20from\x20a\x20JSON\x20value.\x20\x20For\x20example,\ + \x20values\x20of\x20type\x20`BYTES`\x20and\x20values\n\x20of\x20type\x20\ + `STRING`\x20both\x20appear\x20in\n\x20[params][google.spanner.v1.Execute\ + SqlRequest.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\x20sta\ + tement\x20parameters.\x20See\x20the\n\x20definition\x20of\x20[Type][goog\ + le.spanner.v1.Type]\x20for\x20more\x20information\n\x20about\x20SQL\x20t\ + ypes.\n\n\x0f\n\x05\x04\x08\x02\x04\x04\x12\x06\xf1\x03\x02\xe6\x03$\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\ + \x20interrupted\x20SQL\x20statement\n\x20execution,\x20`resume_token`\ + \x20should\x20be\x20copied\x20from\x20the\x20last\n\x20[PartialResultSet\ + ][google.spanner.v1.PartialResultSet]\x20yielded\x20before\x20the\n\x20i\ + nterruption.\x20Doing\x20this\x20enables\x20the\x20new\x20SQL\x20stateme\ + nt\x20execution\x20to\x20resume\n\x20where\x20the\x20last\x20one\x20left\ + \x20off.\x20The\x20rest\x20of\x20the\x20request\x20parameters\x20must\n\ + \x20exactly\x20match\x20the\x20request\x20that\x20yielded\x20this\x20tok\ + en.\n\n\x0f\n\x05\x04\x08\x02\x05\x04\x12\x06\xf9\x03\x02\xf1\x03$\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\x0f\n\x05\x04\x08\x02\x06\x04\x12\x06\x81\x04\x02\xf9\x03\ + \x19\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\x20restr\ + icted\x20to\x20the\x20specified\x20partition\n\x20previously\x20created\ + \x20using\x20PartitionQuery().\x20\x20There\x20must\x20be\x20an\x20exact\ + \n\x20match\x20for\x20the\x20values\x20of\x20fields\x20common\x20to\x20t\ + his\x20message\x20and\x20the\n\x20PartitionQueryRequest\x20message\x20us\ + ed\x20to\x20create\x20this\x20partition_token.\n\n\x0f\n\x05\x04\x08\x02\ + \x07\x04\x12\x06\x87\x04\x02\x81\x04\x1b\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-t\ + ransaction\x20sequence\x20number\x20used\x20to\x20identify\x20this\x20re\ + quest.\x20This\x20field\n\x20makes\x20each\x20request\x20idempotent\x20s\ + uch\x20that\x20if\x20the\x20request\x20is\x20received\x20multiple\n\x20t\ + imes,\x20at\x20most\x20one\x20will\x20succeed.\n\n\x20The\x20sequence\ + \x20number\x20must\x20be\x20monotonically\x20increasing\x20within\x20the\ + \n\x20transaction.\x20If\x20a\x20request\x20arrives\x20for\x20the\x20fir\ + st\x20time\x20with\x20an\x20out-of-order\n\x20sequence\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\x20st\ + atements.\x20Ignored\x20for\x20queries.\n\n\x0f\n\x05\x04\x08\x02\x08\ + \x04\x12\x06\x93\x04\x02\x87\x04\x1c\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\x20request\x20for\x20[Execute\ + BatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].\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\x20statement.\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\x11\n\ + \x07\x04\t\x03\0\x02\0\x04\x12\x06\x9b\x04\x04\x99\x04\x15\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\x20\ + to\x20placeholders\x20in\x20the\x20DML\x20string.\n\n\x20A\x20parameter\ \x20placeholder\x20consists\x20of\x20the\x20`@`\x20character\x20followed\ \x20by\x20the\n\x20parameter\x20name\x20(for\x20example,\x20`@firstName`\ ).\x20Parameter\x20names\x20can\x20contain\n\x20letters,\x20numbers,\x20\ and\x20underscores.\n\n\x20Parameters\x20can\x20appear\x20anywhere\x20th\ - at\x20a\x20literal\x20value\x20is\x20expected.\x20\x20The\x20same\n\x20p\ + at\x20a\x20literal\x20value\x20is\x20expected.\x20\x20The\n\x20same\x20p\ arameter\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\x20unbound\x20parameters.\n\n\x0f\n\ - \x05\x04\x0c\x02\x03\x04\x12\x06\xcc\x05\x02\xbe\x05:\n\r\n\x05\x04\x0c\ - \x02\x03\x06\x12\x04\xcc\x05\x02\x18\n\r\n\x05\x04\x0c\x02\x03\x01\x12\ - \x04\xcc\x05\x19\x1f\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xcc\x05\"#\n\ - \xdc\x03\n\x04\x04\x0c\x02\x04\x12\x04\xd6\x05\x02$\x1a\xcd\x03\x20It\ - \x20is\x20not\x20always\x20possible\x20for\x20Cloud\x20Spanner\x20to\x20\ - infer\x20the\x20right\x20SQL\x20type\n\x20from\x20a\x20JSON\x20value.\ - \x20\x20For\x20example,\x20values\x20of\x20type\x20`BYTES`\x20and\x20val\ - ues\n\x20of\x20type\x20`STRING`\x20both\x20appear\x20in\x20[params][goog\ - le.spanner.v1.PartitionQueryRequest.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\x20query\x20parameters.\x20See\x20the\n\x20definiti\ - on\x20of\x20[Type][google.spanner.v1.Type]\x20for\x20more\x20information\ - \n\x20about\x20SQL\x20types.\n\n\x0f\n\x05\x04\x0c\x02\x04\x04\x12\x06\ - \xd6\x05\x02\xcc\x05$\n\r\n\x05\x04\x0c\x02\x04\x06\x12\x04\xd6\x05\x02\ - \x13\n\r\n\x05\x04\x0c\x02\x04\x01\x12\x04\xd6\x05\x14\x1f\n\r\n\x05\x04\ - \x0c\x02\x04\x03\x12\x04\xd6\x05\"#\nO\n\x04\x04\x0c\x02\x05\x12\x04\xd9\ - \x05\x02)\x1aA\x20Additional\x20options\x20that\x20affect\x20how\x20many\ - \x20partitions\x20are\x20created.\n\n\x0f\n\x05\x04\x0c\x02\x05\x04\x12\ - \x06\xd9\x05\x02\xd6\x05$\n\r\n\x05\x04\x0c\x02\x05\x06\x12\x04\xd9\x05\ - \x02\x12\n\r\n\x05\x04\x0c\x02\x05\x01\x12\x04\xd9\x05\x13$\n\r\n\x05\ - \x04\x0c\x02\x05\x03\x12\x04\xd9\x05'(\nX\n\x02\x04\r\x12\x06\xdd\x05\0\ - \x81\x06\x01\x1aJ\x20The\x20request\x20for\x20[PartitionRead][google.spa\ - nner.v1.Spanner.PartitionRead]\n\n\x0b\n\x03\x04\r\x01\x12\x04\xdd\x05\ - \x08\x1c\nF\n\x04\x04\r\x02\0\x12\x06\xdf\x05\x02\xe4\x05\x04\x1a6\x20Re\ - quired.\x20The\x20session\x20used\x20to\x20create\x20the\x20partitions.\ - \n\n\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xdf\x05\x02\xdd\x05\x1e\n\r\n\x05\ - \x04\r\x02\0\x05\x12\x04\xdf\x05\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\ - \x04\xdf\x05\t\x10\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xdf\x05\x13\x14\n\ - \x0f\n\x05\x04\r\x02\0\x08\x12\x06\xdf\x05\x15\xe4\x05\x03\n\x10\n\x08\ - \x04\r\x02\0\x08\x9c\x08\0\x12\x04\xe0\x05\x04*\n\x11\n\x07\x04\r\x02\0\ - \x08\x9f\x08\x12\x06\xe1\x05\x04\xe3\x05\x05\no\n\x04\x04\r\x02\x01\x12\ - \x04\xe8\x05\x02&\x1aa\x20Read\x20only\x20snapshot\x20transactions\x20ar\ - e\x20supported,\x20read/write\x20and\x20single\x20use\n\x20transactions\ - \x20are\x20not.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xe8\x05\x02\xe4\ - \x05\x04\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xe8\x05\x02\x15\n\r\n\x05\ - \x04\r\x02\x01\x01\x12\x04\xe8\x05\x16!\n\r\n\x05\x04\r\x02\x01\x03\x12\ - \x04\xe8\x05$%\nK\n\x04\x04\r\x02\x02\x12\x04\xeb\x05\x02<\x1a=\x20Requi\ - red.\x20The\x20name\x20of\x20the\x20table\x20in\x20the\x20database\x20to\ - \x20be\x20read.\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xeb\x05\x02\xe8\ - \x05&\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xeb\x05\x02\x08\n\r\n\x05\x04\ - \r\x02\x02\x01\x12\x04\xeb\x05\t\x0e\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\ - \xeb\x05\x11\x12\n\r\n\x05\x04\r\x02\x02\x08\x12\x04\xeb\x05\x13;\n\x10\ - \n\x08\x04\r\x02\x02\x08\x9c\x08\0\x12\x04\xeb\x05\x14:\n\xdf\x02\n\x04\ - \x04\r\x02\x03\x12\x04\xf0\x05\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\x20primary\x20key\x20when\x20interpreting\x20[key\ - _set][google.spanner.v1.PartitionReadRequest.key_set]\n\x20and\x20sortin\ - g\x20result\x20rows.\x20See\x20[key_set][google.spanner.v1.PartitionRead\ - Request.key_set]\x20for\x20further\x20information.\n\n\x0f\n\x05\x04\r\ - \x02\x03\x04\x12\x06\xf0\x05\x02\xeb\x05<\n\r\n\x05\x04\r\x02\x03\x05\ - \x12\x04\xf0\x05\x02\x08\n\r\n\x05\x04\r\x02\x03\x01\x12\x04\xf0\x05\t\ - \x0e\n\r\n\x05\x04\r\x02\x03\x03\x12\x04\xf0\x05\x11\x12\n\x88\x01\n\x04\ - \x04\r\x02\x04\x12\x04\xf4\x05\x02\x1e\x1az\x20The\x20columns\x20of\x20[\ - table][google.spanner.v1.PartitionReadRequest.table]\x20to\x20be\x20retu\ - rned\x20for\x20each\x20row\x20matching\n\x20this\x20request.\n\n\r\n\x05\ - \x04\r\x02\x04\x04\x12\x04\xf4\x05\x02\n\n\r\n\x05\x04\r\x02\x04\x05\x12\ - \x04\xf4\x05\x0b\x11\n\r\n\x05\x04\r\x02\x04\x01\x12\x04\xf4\x05\x12\x19\ - \n\r\n\x05\x04\r\x02\x04\x03\x12\x04\xf4\x05\x1c\x1d\n\xe1\x04\n\x04\x04\ - \r\x02\x05\x12\x04\xfd\x05\x02>\x1a\xd2\x04\x20Required.\x20`key_set`\ + \x20a\x20SQL\x20statement\x20with\x20unbound\x20parameters.\n\n\x11\n\ + \x07\x04\t\x03\0\x02\x01\x04\x12\x06\xa9\x04\x04\x9b\x04\x13\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\x20always\x20possible\x20for\x20Clo\ + ud\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\x20appe\ + ar\x20in\n\x20[params][google.spanner.v1.ExecuteBatchDmlRequest.Statemen\ + t.params]\x20as\n\x20JSON\x20strings.\n\n\x20In\x20these\x20cases,\x20`p\ + aram_types`\x20can\x20be\x20used\x20to\x20specify\x20the\x20exact\n\x20S\ + QL\x20type\x20for\x20some\x20or\x20all\x20of\x20the\x20SQL\x20statement\ + \x20parameters.\x20See\x20the\n\x20definition\x20of\x20[Type][google.spa\ + nner.v1.Type]\x20for\x20more\x20information\n\x20about\x20SQL\x20types.\ + \n\n\x11\n\x07\x04\t\x03\0\x02\x02\x04\x12\x06\xb5\x04\x04\xa9\x04&\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\x0f\n\x05\x04\t\ + \x02\0\x04\x12\x06\xb9\x04\x02\xb6\x04\x03\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\x20transaction\x20to\x20use.\x20Must\x20be\x20a\x20\ + read-write\x20transaction.\n\n\x20To\x20protect\x20against\x20replays,\ + \x20single-use\x20transactions\x20are\x20not\x20supported.\x20The\n\x20c\ + aller\x20must\x20either\x20supply\x20an\x20existing\x20transaction\x20ID\ + \x20or\x20begin\x20a\x20new\n\x20transaction.\n\n\x0f\n\x05\x04\t\x02\ + \x01\x04\x12\x06\xc3\x04\x02\xbc\x04\x04\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,\x20su\ + ch\x20that\x20the\x20effects\x20of\x20statement\x20`i`\x20are\x20visible\ + \x20to\n\x20statement\x20`i+1`.\x20Each\x20statement\x20must\x20be\x20a\ + \x20DML\x20statement.\x20Execution\x20stops\x20at\n\x20the\x20first\x20f\ + ailed\x20statement;\x20the\x20remaining\x20statements\x20are\x20not\x20e\ + xecuted.\n\n\x20Callers\x20must\x20provide\x20at\x20least\x20one\x20stat\ + ement.\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\x20fi\ + eld\x20makes\x20each\x20request\x20idempotent\x20such\x20that\x20if\x20t\ + he\x20request\x20is\n\x20received\x20multiple\x20times,\x20at\x20most\ + \x20one\x20will\x20succeed.\n\n\x20The\x20sequence\x20number\x20must\x20\ + be\x20monotonically\x20increasing\x20within\x20the\n\x20transaction.\x20\ + If\x20a\x20request\x20arrives\x20for\x20the\x20first\x20time\x20with\x20\ + an\x20out-of-order\n\x20sequence\x20number,\x20the\x20transaction\x20may\ + \x20be\x20aborted.\x20Replays\x20of\x20previously\n\x20handled\x20reques\ + ts\x20will\x20yield\x20the\x20same\x20response\x20as\x20the\x20first\x20\ + execution.\n\n\x0f\n\x05\x04\t\x02\x03\x04\x12\x06\xd5\x04\x02\xcb\x04M\ + \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].\x20Con\ + tains\x20a\x20list\n\x20of\x20[ResultSet][google.spanner.v1.ResultSet]\ + \x20messages,\x20one\x20for\x20each\x20DML\n\x20statement\x20that\x20has\ + \x20successfully\x20executed,\x20in\x20the\x20same\x20order\x20as\x20the\ + \x20statements\n\x20in\x20the\x20request.\x20If\x20a\x20statement\x20fai\ + ls,\x20the\x20status\x20in\x20the\x20response\x20body\n\x20identifies\ + \x20the\x20cause\x20of\x20the\x20failure.\n\n\x20To\x20check\x20for\x20D\ + ML\x20statements\x20that\x20failed,\x20use\x20the\x20following\x20approa\ + ch:\n\n\x201.\x20Check\x20the\x20status\x20in\x20the\x20response\x20mess\ + age.\x20The\n\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\x20n\ + ot\x20`OK`,\x20check\x20the\x20number\x20of\x20result\x20sets\x20in\x20t\ + he\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\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\x85\x05\x02\ + \x81\x05%\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\x20Partit\ + ionReadRequest.\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\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\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\x91\x05\x02\ + \x8a\x05\x1a\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\x20hint\x20is\x20currently\ + \x20ignored\x20by\x20PartitionQuery\x20and\n\x20PartitionRead\x20request\ + s.\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,000.\x20The\x20maxi\ + mum\x20value\x20is\x20currently\x20200,000.\x20\x20This\x20is\x20only\n\ + \x20a\x20hint.\x20\x20The\x20actual\x20number\x20of\x20partitions\x20ret\ + urned\x20may\x20be\x20smaller\x20or\x20larger\n\x20than\x20this\x20maxim\ + um\x20count\x20request.\n\n\x0f\n\x05\x04\x0b\x02\x01\x04\x12\x06\x9b\ + \x05\x02\x91\x05!\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.sp\ + anner.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\x20partit\ + ions.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xa1\x05\x02\x9f\x05\x1f\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\x20Read\x20only\x20snapshot\x20transactions\ + \x20are\x20supported,\x20read/write\x20and\x20single\x20use\n\x20transac\ + tions\x20are\x20not.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\xa8\x05\ + \x02\xa4\x05\x04\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\x20Required.\x20The\x20query\x20request\x20to\x20g\ + enerate\x20partitions\x20for.\x20The\x20request\x20will\n\x20fail\x20if\ + \x20the\x20query\x20is\x20not\x20root\x20partitionable.\x20The\x20query\ + \x20plan\x20of\x20a\x20root\n\x20partitionable\x20query\x20has\x20a\x20s\ + ingle\x20distributed\x20union\x20operator.\x20A\x20distributed\n\x20unio\ + n\x20operator\x20conceptually\x20divides\x20one\x20or\x20more\x20tables\ + \x20into\x20multiple\n\x20splits,\x20remotely\x20evaluates\x20a\x20subqu\ + ery\x20independently\x20on\x20each\x20split,\x20and\n\x20then\x20unions\ + \x20all\x20results.\n\n\x20This\x20must\x20not\x20contain\x20DML\x20comm\ + ands,\x20such\x20as\x20INSERT,\x20UPDATE,\x20or\n\x20DELETE.\x20Use\n\ + \x20[ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql]\ + \x20with\x20a\n\x20PartitionedDml\x20transaction\x20for\x20large,\x20par\ + tition-friendly\x20DML\x20operations.\n\n\x0f\n\x05\x04\x0c\x02\x02\x04\ + \x12\x06\xb5\x05\x02\xa8\x05&\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\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\x20can\x20contain\n\x20letters,\x20numbers,\ + \x20and\x20underscores.\n\n\x20Parameters\x20can\x20appear\x20anywhere\ + \x20that\x20a\x20literal\x20value\x20is\x20expected.\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\x20\ + execute\x20a\x20SQL\x20statement\x20with\x20unbound\x20parameters.\n\n\ + \x0f\n\x05\x04\x0c\x02\x03\x04\x12\x06\xc3\x05\x02\xb5\x05:\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\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\n\x20[params]\ + [google.spanner.v1.PartitionQueryRequest.params]\x20as\x20JSON\x20string\ + s.\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\x20query\x20parameters.\x20See\x20the\n\x20d\ + efinition\x20of\x20[Type][google.spanner.v1.Type]\x20for\x20more\x20info\ + rmation\n\x20about\x20SQL\x20types.\n\n\x0f\n\x05\x04\x0c\x02\x04\x04\ + \x12\x06\xce\x05\x02\xc3\x05$\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\x20partitions\x20are\x20created.\n\n\x0f\n\x05\x04\x0c\x02\x05\ + \x04\x12\x06\xd1\x05\x02\xce\x05$\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\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xd7\x05\x02\xd5\x05\x1e\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\x20are\x20support\ + ed,\x20read/write\x20and\x20single\x20use\n\x20transactions\x20are\x20no\ + t.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xde\x05\x02\xda\x05\x04\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\x20database\x20to\x20be\x20r\ + ead.\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xe1\x05\x02\xde\x05&\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.Parti\ + tionReadRequest.table].\x20This\x20index\x20is\x20used\n\x20instead\x20o\ + f\x20the\x20table\x20primary\x20key\x20when\x20interpreting\n\x20[key_se\ + t][google.spanner.v1.PartitionReadRequest.key_set]\x20and\x20sorting\n\ + \x20result\x20rows.\x20See\x20[key_set][google.spanner.v1.PartitionReadR\ + equest.key_set]\n\x20for\x20further\x20information.\n\n\x0f\n\x05\x04\r\ + \x02\x03\x04\x12\x06\xe9\x05\x02\xe1\x05<\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.PartitionReadRequest.table]\x20to\x20be\n\x20re\ + turned\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\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\x0f\n\x05\x04\r\x02\x05\x04\ - \x12\x06\xfd\x05\x02\xf4\x05\x1e\n\r\n\x05\x04\r\x02\x05\x06\x12\x04\xfd\ - \x05\x02\x08\n\r\n\x05\x04\r\x02\x05\x01\x12\x04\xfd\x05\t\x10\n\r\n\x05\ - \x04\r\x02\x05\x03\x12\x04\xfd\x05\x13\x14\n\r\n\x05\x04\r\x02\x05\x08\ - \x12\x04\xfd\x05\x15=\n\x10\n\x08\x04\r\x02\x05\x08\x9c\x08\0\x12\x04\ - \xfd\x05\x16<\nO\n\x04\x04\r\x02\x06\x12\x04\x80\x06\x02)\x1aA\x20Additi\ - onal\x20options\x20that\x20affect\x20how\x20many\x20partitions\x20are\ - \x20created.\n\n\x0f\n\x05\x04\r\x02\x06\x04\x12\x06\x80\x06\x02\xfd\x05\ - >\n\r\n\x05\x04\r\x02\x06\x06\x12\x04\x80\x06\x02\x12\n\r\n\x05\x04\r\ - \x02\x06\x01\x12\x04\x80\x06\x13$\n\r\n\x05\x04\r\x02\x06\x03\x12\x04\ - \x80\x06'(\nY\n\x02\x04\x0e\x12\x06\x85\x06\0\x8a\x06\x01\x1aK\x20Inform\ - ation\x20returned\x20for\x20each\x20partition\x20returned\x20in\x20a\n\ - \x20PartitionResponse.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x85\x06\x08\x11\ - \n\xb4\x01\n\x04\x04\x0e\x02\0\x12\x04\x89\x06\x02\x1c\x1a\xa5\x01\x20Th\ - is\x20token\x20can\x20be\x20passed\x20to\x20Read,\x20StreamingRead,\x20E\ - xecuteSql,\x20or\n\x20ExecuteStreamingSql\x20requests\x20to\x20restrict\ - \x20the\x20results\x20to\x20those\x20identified\x20by\n\x20this\x20parti\ - tion\x20token.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\x89\x06\x02\x85\ - \x06\x13\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\x89\x06\x02\x07\n\r\n\x05\ - \x04\x0e\x02\0\x01\x12\x04\x89\x06\x08\x17\n\r\n\x05\x04\x0e\x02\0\x03\ - \x12\x04\x89\x06\x1a\x1b\n\x99\x01\n\x02\x04\x0f\x12\x06\x8e\x06\0\x94\ - \x06\x01\x1a\x8a\x01\x20The\x20response\x20for\x20[PartitionQuery][googl\ - e.spanner.v1.Spanner.PartitionQuery]\n\x20or\x20[PartitionRead][google.s\ - panner.v1.Spanner.PartitionRead]\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\x8e\ - \x06\x08\x19\n3\n\x04\x04\x0f\x02\0\x12\x04\x90\x06\x02$\x1a%\x20Partiti\ - ons\x20created\x20by\x20this\x20request.\n\n\r\n\x05\x04\x0f\x02\0\x04\ - \x12\x04\x90\x06\x02\n\n\r\n\x05\x04\x0f\x02\0\x06\x12\x04\x90\x06\x0b\ - \x14\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x90\x06\x15\x1f\n\r\n\x05\x04\ - \x0f\x02\0\x03\x12\x04\x90\x06\"#\n4\n\x04\x04\x0f\x02\x01\x12\x04\x93\ - \x06\x02\x1e\x1a&\x20Transaction\x20created\x20by\x20this\x20request.\n\ - \n\x0f\n\x05\x04\x0f\x02\x01\x04\x12\x06\x93\x06\x02\x90\x06$\n\r\n\x05\ - \x04\x0f\x02\x01\x06\x12\x04\x93\x06\x02\r\n\r\n\x05\x04\x0f\x02\x01\x01\ - \x12\x04\x93\x06\x0e\x19\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x93\x06\ - \x1c\x1d\n\x85\x01\n\x02\x04\x10\x12\x06\x98\x06\0\xd1\x06\x01\x1aw\x20T\ - he\x20request\x20for\x20[Read][google.spanner.v1.Spanner.Read]\x20and\n\ - \x20[StreamingRead][google.spanner.v1.Spanner.StreamingRead].\n\n\x0b\n\ - \x03\x04\x10\x01\x12\x04\x98\x06\x08\x13\nN\n\x04\x04\x10\x02\0\x12\x06\ - \x9a\x06\x02\x9f\x06\x04\x1a>\x20Required.\x20The\x20session\x20in\x20wh\ - ich\x20the\x20read\x20should\x20be\x20performed.\n\n\x0f\n\x05\x04\x10\ - \x02\0\x04\x12\x06\x9a\x06\x02\x98\x06\x15\n\r\n\x05\x04\x10\x02\0\x05\ - \x12\x04\x9a\x06\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\x9a\x06\t\ - \x10\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x9a\x06\x13\x14\n\x0f\n\x05\x04\ - \x10\x02\0\x08\x12\x06\x9a\x06\x15\x9f\x06\x03\n\x10\n\x08\x04\x10\x02\0\ - \x08\x9c\x08\0\x12\x04\x9b\x06\x04*\n\x11\n\x07\x04\x10\x02\0\x08\x9f\ - \x08\x12\x06\x9c\x06\x04\x9e\x06\x05\n\x87\x01\n\x04\x04\x10\x02\x01\x12\ - \x04\xa3\x06\x02&\x1ay\x20The\x20transaction\x20to\x20use.\x20If\x20none\ + mes\x20the\n\x20primary\x20keys\x20of\x20the\x20rows\x20in\n\x20[table][\ + google.spanner.v1.PartitionReadRequest.table]\x20to\x20be\x20yielded,\ + \x20unless\n\x20[index][google.spanner.v1.PartitionReadRequest.index]\ + \x20is\x20present.\x20If\n\x20[index][google.spanner.v1.PartitionReadReq\ + uest.index]\x20is\x20present,\x20then\n\x20[key_set][google.spanner.v1.P\ + artitionReadRequest.key_set]\x20instead\x20names\n\x20index\x20keys\x20i\ + n\x20[index][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.\x20Re\ + ad\x20yields\x20nothing\x20for\x20nonexistent\x20rows.\n\n\x0f\n\x05\x04\ + \r\x02\x05\x04\x12\x06\xf9\x05\x02\xed\x05\x1e\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\x20parti\ + tions\x20are\x20created.\n\n\x0f\n\x05\x04\r\x02\x06\x04\x12\x06\xfc\x05\ + \x02\xf9\x05>\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\ + \x20Information\x20returned\x20for\x20each\x20partition\x20returned\x20i\ + n\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,\x20Streaming\ + Read,\x20ExecuteSql,\x20or\n\x20ExecuteStreamingSql\x20requests\x20to\ + \x20restrict\x20the\x20results\x20to\x20those\x20identified\x20by\n\x20t\ + his\x20partition\x20token.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\x85\ + \x06\x02\x81\x06\x13\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[PartitionQu\ + ery][google.spanner.v1.Spanner.PartitionQuery]\n\x20or\x20[PartitionRead\ + ][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\x0f\n\x05\x04\x0f\x02\x01\x04\x12\x06\x8f\x06\x02\x8c\x06$\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.Spanner.Read]\ + \x20and\n\x20[StreamingRead][google.spanner.v1.Spanner.StreamingRead].\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\x20\ + in\x20which\x20the\x20read\x20should\x20be\x20performed.\n\n\x0f\n\x05\ + \x04\x10\x02\0\x04\x12\x06\x96\x06\x02\x94\x06\x15\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\x20concurrency.\n\n\x0f\n\x05\x04\ - \x10\x02\x01\x04\x12\x06\xa3\x06\x02\x9f\x06\x04\n\r\n\x05\x04\x10\x02\ - \x01\x06\x12\x04\xa3\x06\x02\x15\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\ - \xa3\x06\x16!\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xa3\x06$%\nK\n\x04\ - \x04\x10\x02\x02\x12\x04\xa6\x06\x02<\x1a=\x20Required.\x20The\x20name\ + \x10\x02\x01\x04\x12\x06\x9d\x06\x02\x99\x06\x04\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\x20database\x20to\x20be\x20read.\n\n\ - \x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\xa6\x06\x02\xa3\x06&\n\r\n\x05\ - \x04\x10\x02\x02\x05\x12\x04\xa6\x06\x02\x08\n\r\n\x05\x04\x10\x02\x02\ - \x01\x12\x04\xa6\x06\t\x0e\n\r\n\x05\x04\x10\x02\x02\x03\x12\x04\xa6\x06\ - \x11\x12\n\r\n\x05\x04\x10\x02\x02\x08\x12\x04\xa6\x06\x13;\n\x10\n\x08\ - \x04\x10\x02\x02\x08\x9c\x08\0\x12\x04\xa6\x06\x14:\n\xc4\x02\n\x04\x04\ - \x10\x02\x03\x12\x04\xab\x06\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\x0f\n\x05\x04\x10\x02\x03\x04\x12\x06\xab\x06\ - \x02\xa6\x06<\n\r\n\x05\x04\x10\x02\x03\x05\x12\x04\xab\x06\x02\x08\n\r\ - \n\x05\x04\x10\x02\x03\x01\x12\x04\xab\x06\t\x0e\n\r\n\x05\x04\x10\x02\ - \x03\x03\x12\x04\xab\x06\x11\x12\n\x89\x01\n\x04\x04\x10\x02\x04\x12\x04\ - \xaf\x06\x02G\x1a{\x20Required.\x20The\x20columns\x20of\x20[table][googl\ - e.spanner.v1.ReadRequest.table]\x20to\x20be\x20returned\x20for\x20each\ - \x20row\x20matching\n\x20this\x20request.\n\n\r\n\x05\x04\x10\x02\x04\ - \x04\x12\x04\xaf\x06\x02\n\n\r\n\x05\x04\x10\x02\x04\x05\x12\x04\xaf\x06\ - \x0b\x11\n\r\n\x05\x04\x10\x02\x04\x01\x12\x04\xaf\x06\x12\x19\n\r\n\x05\ - \x04\x10\x02\x04\x03\x12\x04\xaf\x06\x1c\x1d\n\r\n\x05\x04\x10\x02\x04\ - \x08\x12\x04\xaf\x06\x1eF\n\x10\n\x08\x04\x10\x02\x04\x08\x9c\x08\0\x12\ - \x04\xaf\x06\x1fE\n\xd6\x07\n\x04\x04\x10\x02\x05\x12\x04\xbd\x06\x02>\ - \x1a\xc7\x07\x20Required.\x20`key_set`\x20identifies\x20the\x20rows\x20t\ + \x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\xa0\x06\x02\x9d\x06&\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,\x20\ + the\x20name\x20of\x20an\x20index\x20on\n\x20[table][google.spanner.v1.Re\ + adRequest.table].\x20This\x20index\x20is\x20used\x20instead\x20of\n\x20t\ + he\x20table\x20primary\x20key\x20when\x20interpreting\n\x20[key_set][goo\ + gle.spanner.v1.ReadRequest.key_set]\x20and\x20sorting\x20result\x20rows.\ + \n\x20See\x20[key_set][google.spanner.v1.ReadRequest.key_set]\x20for\x20\ + further\n\x20information.\n\n\x0f\n\x05\x04\x10\x02\x03\x04\x12\x06\xa8\ + \x06\x02\xa0\x06<\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][g\ + oogle.spanner.v1.ReadRequest.table]\x20to\x20be\n\x20returned\x20for\x20\ + each\x20row\x20matching\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\x20t\ o\x20be\x20yielded.\x20`key_set`\x20names\x20the\n\x20primary\x20keys\ \x20of\x20the\x20rows\x20in\x20[table][google.spanner.v1.ReadRequest.tab\ - le]\x20to\x20be\x20yielded,\x20unless\x20[index][google.spanner.v1.ReadR\ - equest.index]\n\x20is\x20present.\x20If\x20[index][google.spanner.v1.Rea\ - dRequest.index]\x20is\x20present,\x20then\x20[key_set][google.spanner.v1\ - .ReadRequest.key_set]\x20instead\x20names\n\x20index\x20keys\x20in\x20[i\ - ndex][google.spanner.v1.ReadRequest.index].\n\n\x20If\x20the\x20[partiti\ - on_token][google.spanner.v1.ReadRequest.partition_token]\x20field\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][google.spa\ - nner.v1.ReadRequest.index]\x20is\x20non-empty).\x20\x20If\x20the\x20[par\ - tition_token][google.spanner.v1.ReadRequest.partition_token]\x20field\ - \x20is\x20not\n\x20empty,\x20rows\x20will\x20be\x20yielded\x20in\x20an\ - \x20unspecified\x20order.\n\n\x20It\x20is\x20not\x20an\x20error\x20for\ - \x20the\x20`key_set`\x20to\x20name\x20rows\x20that\x20do\x20not\n\x20exi\ - st\x20in\x20the\x20database.\x20Read\x20yields\x20nothing\x20for\x20none\ - xistent\x20rows.\n\n\x0f\n\x05\x04\x10\x02\x05\x04\x12\x06\xbd\x06\x02\ - \xaf\x06G\n\r\n\x05\x04\x10\x02\x05\x06\x12\x04\xbd\x06\x02\x08\n\r\n\ - \x05\x04\x10\x02\x05\x01\x12\x04\xbd\x06\t\x10\n\r\n\x05\x04\x10\x02\x05\ - \x03\x12\x04\xbd\x06\x13\x14\n\r\n\x05\x04\x10\x02\x05\x08\x12\x04\xbd\ - \x06\x15=\n\x10\n\x08\x04\x10\x02\x05\x08\x9c\x08\0\x12\x04\xbd\x06\x16<\ - \n\xb7\x01\n\x04\x04\x10\x02\x06\x12\x04\xc2\x06\x02\x12\x1a\xa8\x01\x20\ - If\x20greater\x20than\x20zero,\x20only\x20the\x20first\x20`limit`\x20row\ - s\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\x0f\n\x05\x04\x10\x02\x06\x04\ - \x12\x06\xc2\x06\x02\xbd\x06>\n\r\n\x05\x04\x10\x02\x06\x05\x12\x04\xc2\ - \x06\x02\x07\n\r\n\x05\x04\x10\x02\x06\x01\x12\x04\xc2\x06\x08\r\n\r\n\ - \x05\x04\x10\x02\x06\x03\x12\x04\xc2\x06\x10\x11\n\xf9\x02\n\x04\x04\x10\ - \x02\x07\x12\x04\xca\x06\x02\x19\x1a\xea\x02\x20If\x20this\x20request\ - \x20is\x20resuming\x20a\x20previously\x20interrupted\x20read,\n\x20`resu\ - me_token`\x20should\x20be\x20copied\x20from\x20the\x20last\n\x20[Partial\ - ResultSet][google.spanner.v1.PartialResultSet]\x20yielded\x20before\x20t\ - he\x20interruption.\x20Doing\x20this\n\x20enables\x20the\x20new\x20read\ - \x20to\x20resume\x20where\x20the\x20last\x20read\x20left\x20off.\x20The\ - \n\x20rest\x20of\x20the\x20request\x20parameters\x20must\x20exactly\x20m\ - atch\x20the\x20request\n\x20that\x20yielded\x20this\x20token.\n\n\x0f\n\ - \x05\x04\x10\x02\x07\x04\x12\x06\xca\x06\x02\xc2\x06\x12\n\r\n\x05\x04\ - \x10\x02\x07\x05\x12\x04\xca\x06\x02\x07\n\r\n\x05\x04\x10\x02\x07\x01\ - \x12\x04\xca\x06\x08\x14\n\r\n\x05\x04\x10\x02\x07\x03\x12\x04\xca\x06\ - \x17\x18\n\x99\x02\n\x04\x04\x10\x02\x08\x12\x04\xd0\x06\x02\x1d\x1a\x8a\ - \x02\x20If\x20present,\x20results\x20will\x20be\x20restricted\x20to\x20t\ - he\x20specified\x20partition\n\x20previously\x20created\x20using\x20Part\ - itionRead().\x20\x20\x20\x20There\x20must\x20be\x20an\x20exact\n\x20matc\ - h\x20for\x20the\x20values\x20of\x20fields\x20common\x20to\x20this\x20mes\ - sage\x20and\x20the\n\x20PartitionReadRequest\x20message\x20used\x20to\ - \x20create\x20this\x20partition_token.\n\n\x0f\n\x05\x04\x10\x02\x08\x04\ - \x12\x06\xd0\x06\x02\xca\x06\x19\n\r\n\x05\x04\x10\x02\x08\x05\x12\x04\ - \xd0\x06\x02\x07\n\r\n\x05\x04\x10\x02\x08\x01\x12\x04\xd0\x06\x08\x17\n\ - \r\n\x05\x04\x10\x02\x08\x03\x12\x04\xd0\x06\x1a\x1c\n_\n\x02\x04\x11\ - \x12\x06\xd4\x06\0\xdf\x06\x01\x1aQ\x20The\x20request\x20for\x20[BeginTr\ - ansaction][google.spanner.v1.Spanner.BeginTransaction].\n\n\x0b\n\x03\ - \x04\x11\x01\x12\x04\xd4\x06\x08\x1f\nF\n\x04\x04\x11\x02\0\x12\x06\xd6\ - \x06\x02\xdb\x06\x04\x1a6\x20Required.\x20The\x20session\x20in\x20which\ - \x20the\x20transaction\x20runs.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\ - \xd6\x06\x02\xd4\x06!\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xd6\x06\x02\ - \x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xd6\x06\t\x10\n\r\n\x05\x04\x11\ - \x02\0\x03\x12\x04\xd6\x06\x13\x14\n\x0f\n\x05\x04\x11\x02\0\x08\x12\x06\ - \xd6\x06\x15\xdb\x06\x03\n\x10\n\x08\x04\x11\x02\0\x08\x9c\x08\0\x12\x04\ - \xd7\x06\x04*\n\x11\n\x07\x04\x11\x02\0\x08\x9f\x08\x12\x06\xd8\x06\x04\ - \xda\x06\x05\n:\n\x04\x04\x11\x02\x01\x12\x04\xde\x06\x02J\x1a,\x20Requi\ - red.\x20Options\x20for\x20the\x20new\x20transaction.\n\n\x0f\n\x05\x04\ - \x11\x02\x01\x04\x12\x06\xde\x06\x02\xdb\x06\x04\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\ - \x85\x07\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\xe9\x06\x04\x1aL\x20Required.\ - \x20The\x20session\x20in\x20which\x20the\x20transaction\x20to\x20be\x20c\ - ommitted\x20is\x20running.\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\x06\xe4\ - \x06\x02\xe2\x06\x17\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\xe9\x06\x03\n\x10\n\x08\x04\x12\x02\0\x08\x9c\x08\0\x12\x04\xe5\ - \x06\x04*\n\x11\n\x07\x04\x12\x02\0\x08\x9f\x08\x12\x06\xe6\x06\x04\xe8\ - \x06\x05\n?\n\x04\x04\x12\x08\0\x12\x06\xec\x06\x02\xfa\x06\x03\x1a/\x20\ - Required.\x20The\x20transaction\x20in\x20which\x20to\x20commit.\n\n\r\n\ - \x05\x04\x12\x08\0\x01\x12\x04\xec\x06\x08\x13\n8\n\x04\x04\x12\x02\x01\ - \x12\x04\xee\x06\x04\x1d\x1a*\x20Commit\x20a\x20previously-started\x20tr\ - ansaction.\n\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\xee\x06\x04\t\n\r\n\ - \x05\x04\x12\x02\x01\x01\x12\x04\xee\x06\n\x18\n\r\n\x05\x04\x12\x02\x01\ - \x03\x12\x04\xee\x06\x1b\x1c\n\xa4\x04\n\x04\x04\x12\x02\x02\x12\x04\xf9\ - \x06\x042\x1a\x95\x04\x20Execute\x20mutations\x20in\x20a\x20temporary\ - \x20transaction.\x20Note\x20that\x20unlike\n\x20commit\x20of\x20a\x20pre\ - viously-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\ - \x12\x02\x02\x06\x12\x04\xf9\x06\x04\x16\n\r\n\x05\x04\x12\x02\x02\x01\ - \x12\x04\xf9\x06\x17-\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xf9\x0601\n\ - \x9b\x01\n\x04\x04\x12\x02\x03\x12\x04\xff\x06\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\x12\x02\x03\x04\x12\x04\xff\x06\x02\n\n\r\n\x05\x04\x12\x02\x03\x06\ - \x12\x04\xff\x06\x0b\x13\n\r\n\x05\x04\x12\x02\x03\x01\x12\x04\xff\x06\ - \x14\x1d\n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\xff\x06\x20!\n\xbb\x01\n\ - \x04\x04\x12\x02\x04\x12\x04\x84\x07\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\x0f\n\x05\x04\x12\x02\x04\x04\x12\x06\x84\x07\x02\xff\x06\"\n\r\n\x05\ - \x04\x12\x02\x04\x05\x12\x04\x84\x07\x02\x06\n\r\n\x05\x04\x12\x02\x04\ - \x01\x12\x04\x84\x07\x07\x1a\n\r\n\x05\x04\x12\x02\x04\x03\x12\x04\x84\ - \x07\x1d\x1e\nL\n\x02\x04\x13\x12\x06\x88\x07\0\x9c\x07\x01\x1a>\x20The\ - \x20response\x20for\x20[Commit][google.spanner.v1.Spanner.Commit].\n\n\ - \x0b\n\x03\x04\x13\x01\x12\x04\x88\x07\x08\x16\n7\n\x04\x04\x13\x03\0\ - \x12\x06\x8a\x07\x02\x93\x07\x03\x1a'\x20Additional\x20statistics\x20abo\ - ut\x20a\x20commit.\n\n\r\n\x05\x04\x13\x03\0\x01\x12\x04\x8a\x07\n\x15\n\ - \xc2\x04\n\x06\x04\x13\x03\0\x02\0\x12\x04\x92\x07\x04\x1d\x1a\xb1\x04\ - \x20The\x20total\x20number\x20of\x20mutations\x20for\x20the\x20transacti\ - on.\x20Knowing\x20the\n\x20`mutation_count`\x20value\x20can\x20help\x20y\ - ou\x20maximize\x20the\x20number\x20of\x20mutations\n\x20in\x20a\x20trans\ - action\x20and\x20minimize\x20the\x20number\x20of\x20API\x20round\x20trip\ - s.\x20You\x20can\n\x20also\x20monitor\x20this\x20value\x20to\x20prevent\ - \x20transactions\x20from\x20exceeding\x20the\x20system\n\x20[limit](http\ - ://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_\ - and_deleting_data).\n\x20If\x20the\x20number\x20of\x20mutations\x20excee\ - ds\x20the\x20limit,\x20the\x20server\x20returns\n\x20[INVALID_ARGUMENT](\ - http://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.\ - INVALID_ARGUMENT).\n\n\x11\n\x07\x04\x13\x03\0\x02\0\x04\x12\x06\x92\x07\ - \x04\x8a\x07\x17\n\x0f\n\x07\x04\x13\x03\0\x02\0\x05\x12\x04\x92\x07\x04\ - \t\n\x0f\n\x07\x04\x13\x03\0\x02\0\x01\x12\x04\x92\x07\n\x18\n\x0f\n\x07\ - \x04\x13\x03\0\x02\0\x03\x12\x04\x92\x07\x1b\x1c\nO\n\x04\x04\x13\x02\0\ - \x12\x04\x96\x07\x021\x1aA\x20The\x20Cloud\x20Spanner\x20timestamp\x20at\ - \x20which\x20the\x20transaction\x20committed.\n\n\x0f\n\x05\x04\x13\x02\ - \0\x04\x12\x06\x96\x07\x02\x93\x07\x03\n\r\n\x05\x04\x13\x02\0\x06\x12\ - \x04\x96\x07\x02\x1b\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\x96\x07\x1c,\n\ - \r\n\x05\x04\x13\x02\0\x03\x12\x04\x96\x07/0\n\xc1\x01\n\x04\x04\x13\x02\ - \x01\x12\x04\x9b\x07\x02\x1f\x1a\xb2\x01\x20The\x20statistics\x20about\ - \x20this\x20Commit.\x20Not\x20returned\x20by\x20default.\n\x20For\x20mor\ - e\x20information,\x20see\n\x20[CommitRequest.return_commit_stats][google\ - .spanner.v1.CommitRequest.return_commit_stats].\n\n\x0f\n\x05\x04\x13\ - \x02\x01\x04\x12\x06\x9b\x07\x02\x96\x071\n\r\n\x05\x04\x13\x02\x01\x06\ - \x12\x04\x9b\x07\x02\r\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\x9b\x07\x0e\ - \x1a\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\x9b\x07\x1d\x1e\nO\n\x02\x04\ - \x14\x12\x06\x9f\x07\0\xaa\x07\x01\x1aA\x20The\x20request\x20for\x20[Rol\ - lback][google.spanner.v1.Spanner.Rollback].\n\n\x0b\n\x03\x04\x14\x01\ - \x12\x04\x9f\x07\x08\x17\nY\n\x04\x04\x14\x02\0\x12\x06\xa1\x07\x02\xa6\ - \x07\x04\x1aI\x20Required.\x20The\x20session\x20in\x20which\x20the\x20tr\ - ansaction\x20to\x20roll\x20back\x20is\x20running.\n\n\x0f\n\x05\x04\x14\ - \x02\0\x04\x12\x06\xa1\x07\x02\x9f\x07\x19\n\r\n\x05\x04\x14\x02\0\x05\ - \x12\x04\xa1\x07\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xa1\x07\t\ - \x10\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\xa1\x07\x13\x14\n\x0f\n\x05\x04\ - \x14\x02\0\x08\x12\x06\xa1\x07\x15\xa6\x07\x03\n\x10\n\x08\x04\x14\x02\0\ - \x08\x9c\x08\0\x12\x04\xa2\x07\x04*\n\x11\n\x07\x04\x14\x02\0\x08\x9f\ - \x08\x12\x06\xa3\x07\x04\xa5\x07\x05\n7\n\x04\x04\x14\x02\x01\x12\x04\ - \xa9\x07\x02D\x1a)\x20Required.\x20The\x20transaction\x20to\x20roll\x20b\ - ack.\n\n\x0f\n\x05\x04\x14\x02\x01\x04\x12\x06\xa9\x07\x02\xa6\x07\x04\n\ - \r\n\x05\x04\x14\x02\x01\x05\x12\x04\xa9\x07\x02\x07\n\r\n\x05\x04\x14\ - \x02\x01\x01\x12\x04\xa9\x07\x08\x16\n\r\n\x05\x04\x14\x02\x01\x03\x12\ - \x04\xa9\x07\x19\x1a\n\r\n\x05\x04\x14\x02\x01\x08\x12\x04\xa9\x07\x1bC\ - \n\x10\n\x08\x04\x14\x02\x01\x08\x9c\x08\0\x12\x04\xa9\x07\x1cBb\x06prot\ - o3\ + le]\x20to\n\x20be\x20yielded,\x20unless\x20[index][google.spanner.v1.Rea\ + dRequest.index]\x20is\x20present.\n\x20If\x20[index][google.spanner.v1.R\ + eadRequest.index]\x20is\x20present,\x20then\n\x20[key_set][google.spanne\ + r.v1.ReadRequest.key_set]\x20instead\x20names\x20index\x20keys\n\x20in\ + \x20[index][google.spanner.v1.ReadRequest.index].\n\n\x20If\x20the\x20[p\ + artition_token][google.spanner.v1.ReadRequest.partition_token]\n\x20fiel\ + d\x20is\x20empty,\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][goo\ + gle.spanner.v1.ReadRequest.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\x20i\ + n\x20an\x20unspecified\x20order.\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\x0f\n\x05\x04\x10\x02\x05\x04\x12\x06\xbe\ + \x06\x02\xac\x06G\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`l\ + imit`\x20rows\x20are\x20yielded.\x20If\x20`limit`\n\x20is\x20zero,\x20th\ + e\x20default\x20is\x20no\x20limit.\x20A\x20limit\x20cannot\x20be\x20spec\ + ified\x20if\n\x20`partition_token`\x20is\x20set.\n\n\x0f\n\x05\x04\x10\ + \x02\x06\x04\x12\x06\xc3\x06\x02\xbe\x06>\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\x0f\n\x05\x04\x10\x02\x07\x04\x12\x06\xcb\x06\x02\xc3\x06\x12\ + \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\x20restricte\ + d\x20to\x20the\x20specified\x20partition\n\x20previously\x20created\x20u\ + sing\x20PartitionRead().\x20\x20\x20\x20There\x20must\x20be\x20an\x20exa\ + ct\n\x20match\x20for\x20the\x20values\x20of\x20fields\x20common\x20to\ + \x20this\x20message\x20and\x20the\n\x20PartitionReadRequest\x20message\ + \x20used\x20to\x20create\x20this\x20partition_token.\n\n\x0f\n\x05\x04\ + \x10\x02\x08\x04\x12\x06\xd1\x06\x02\xcb\x06\x19\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\x20request\x20\ + for\n\x20[BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].\ + \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\x0f\n\x05\x04\x11\x02\ + \0\x04\x12\x06\xd8\x06\x02\xd6\x06!\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,\x20\ + Required.\x20Options\x20for\x20the\x20new\x20transaction.\n\n\x0f\n\x05\ + \x04\x11\x02\x01\x04\x12\x06\xde\x06\x02\xdb\x06\x04\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.span\ + ner.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\x20Req\ + uired.\x20The\x20session\x20in\x20which\x20the\x20transaction\x20to\x20b\ + e\x20committed\x20is\x20running.\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\x06\ + \xe4\x06\x02\xe2\x06\x17\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\x20in\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*\x20Commit\x20a\x20previously-started\x20transactio\ + n.\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\x04\ + 2\x1a\x95\x04\x20Execute\x20mutations\x20in\x20a\x20temporary\x20transac\ + tion.\x20Note\x20that\x20unlike\n\x20commit\x20of\x20a\x20previously-sta\ + rted\x20transaction,\x20commit\x20with\x20a\n\x20temporary\x20transactio\ + n\x20is\x20non-idempotent.\x20That\x20is,\x20if\x20the\n\x20`CommitReque\ + st`\x20is\x20sent\x20to\x20Cloud\x20Spanner\x20more\x20than\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\x20more\x20than\x20onc\ + e.\x20If\x20this\x20is\x20undesirable,\x20use\n\x20[BeginTransaction][go\ + ogle.spanner.v1.Spanner.BeginTransaction]\x20and\n\x20[Commit][google.sp\ + anner.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\x20\ + be\x20executed\x20when\x20this\x20transaction\x20commits.\x20All\n\x20mu\ + tations\x20are\x20applied\x20atomically,\x20in\x20the\x20order\x20they\ + \x20appear\x20in\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.Sp\ + anner.Commit].\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\ + \x20timestamp\x20at\x20which\x20the\x20transaction\x20committed.\n\n\x0f\ + \n\x05\x04\x13\x02\0\x04\x12\x06\x83\x07\x02\x81\x07\x18\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\x0f\n\x05\ + \x04\x14\x02\0\x04\x12\x06\x89\x07\x02\x87\x07\x19\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\x20back.\ + \n\n\x0f\n\x05\x04\x14\x02\x01\x04\x12\x06\x8f\x07\x02\x8c\x07\x04\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\x1cBb\x06proto3\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner_grpc.rs index 7fd860c39e..b23081f116 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner_grpc.rs @@ -362,21 +362,51 @@ impl SpannerClient { } pub trait Spanner { - fn create_session(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::CreateSessionRequest, sink: ::grpcio::UnarySink); - fn batch_create_sessions(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::BatchCreateSessionsRequest, sink: ::grpcio::UnarySink); - fn get_session(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::GetSessionRequest, sink: ::grpcio::UnarySink); - fn list_sessions(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ListSessionsRequest, sink: ::grpcio::UnarySink); - fn delete_session(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::DeleteSessionRequest, sink: ::grpcio::UnarySink); - fn execute_sql(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ExecuteSqlRequest, sink: ::grpcio::UnarySink); - fn execute_streaming_sql(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ExecuteSqlRequest, sink: ::grpcio::ServerStreamingSink); - fn execute_batch_dml(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ExecuteBatchDmlRequest, sink: ::grpcio::UnarySink); - fn read(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ReadRequest, sink: ::grpcio::UnarySink); - fn streaming_read(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ReadRequest, sink: ::grpcio::ServerStreamingSink); - fn begin_transaction(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::BeginTransactionRequest, sink: ::grpcio::UnarySink); - fn commit(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::CommitRequest, sink: ::grpcio::UnarySink); - fn rollback(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::RollbackRequest, sink: ::grpcio::UnarySink); - fn partition_query(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::PartitionQueryRequest, sink: ::grpcio::UnarySink); - fn partition_read(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::PartitionReadRequest, sink: ::grpcio::UnarySink); + fn create_session(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::CreateSessionRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn batch_create_sessions(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::BatchCreateSessionsRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn get_session(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::GetSessionRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn list_sessions(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ListSessionsRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn delete_session(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::DeleteSessionRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn execute_sql(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ExecuteSqlRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn execute_streaming_sql(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ExecuteSqlRequest, sink: ::grpcio::ServerStreamingSink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn execute_batch_dml(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ExecuteBatchDmlRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn read(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ReadRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn streaming_read(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ReadRequest, sink: ::grpcio::ServerStreamingSink) { + grpcio::unimplemented_call!(ctx, sink) + } + 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) { + grpcio::unimplemented_call!(ctx, sink) + } + fn rollback(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::RollbackRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn partition_query(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::PartitionQueryRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn partition_read(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::PartitionReadRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } } pub fn create_spanner(s: S) -> ::grpcio::Service { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/transaction.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/transaction.rs index afebccc4e8..0937d463d3 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/transaction.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/transaction.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct TransactionOptions { @@ -1716,166 +1716,162 @@ static file_descriptor_proto_data: &'static [u8] = b"\ 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\xb6\x01\n\x15com.googl\ + 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\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1J\xd9\x9a\ - \x01\n\x07\x12\x05\x0e\0\xc8\x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202020\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\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\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\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\xf6e\n\x02\ - \x04\0\x12\x06\xb4\x02\0\x9b\x03\x01\x1a\xe7e\x20#\x20Transactions\n\n\n\ - \x20Each\x20session\x20can\x20have\x20at\x20most\x20one\x20active\x20tra\ - nsaction\x20at\x20a\x20time\x20(note\x20that\n\x20standalone\x20reads\ - \x20and\x20queries\x20use\x20a\x20transaction\x20internally\x20and\x20do\ - \x20count\n\x20towards\x20the\x20one\x20transaction\x20limit).\x20After\ - \x20the\x20active\x20transaction\x20is\n\x20completed,\x20the\x20session\ - \x20can\x20immediately\x20be\x20re-used\x20for\x20the\x20next\x20transac\ - tion.\n\x20It\x20is\x20not\x20necessary\x20to\x20create\x20a\x20new\x20s\ - ession\x20for\x20each\x20transaction.\n\n\x20#\x20Transaction\x20Modes\n\ - \n\x20Cloud\x20Spanner\x20supports\x20three\x20transaction\x20modes:\n\n\ - \x20\x20\x201.\x20Locking\x20read-write.\x20This\x20type\x20of\x20transa\ - ction\x20is\x20the\x20only\x20way\n\x20\x20\x20\x20\x20\x20to\x20write\ - \x20data\x20into\x20Cloud\x20Spanner.\x20These\x20transactions\x20rely\ - \x20on\n\x20\x20\x20\x20\x20\x20pessimistic\x20locking\x20and,\x20if\x20\ - necessary,\x20two-phase\x20commit.\n\x20\x20\x20\x20\x20\x20Locking\x20r\ - ead-write\x20transactions\x20may\x20abort,\x20requiring\x20the\n\x20\x20\ - \x20\x20\x20\x20application\x20to\x20retry.\n\n\x20\x20\x202.\x20Snapsho\ - t\x20read-only.\x20This\x20transaction\x20type\x20provides\x20guaranteed\ - \n\x20\x20\x20\x20\x20\x20consistency\x20across\x20several\x20reads,\x20\ - but\x20does\x20not\x20allow\n\x20\x20\x20\x20\x20\x20writes.\x20Snapshot\ - \x20read-only\x20transactions\x20can\x20be\x20configured\x20to\n\x20\x20\ - \x20\x20\x20\x20read\x20at\x20timestamps\x20in\x20the\x20past.\x20Snapsh\ - ot\x20read-only\n\x20\x20\x20\x20\x20\x20transactions\x20do\x20not\x20ne\ - ed\x20to\x20be\x20committed.\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.\ - \x20Partitioned\x20DML\x20partitions\n\x20\x20\x20\x20\x20\x20the\x20key\ - \x20space\x20and\x20runs\x20the\x20DML\x20statement\x20over\x20each\x20p\ - artition\n\x20\x20\x20\x20\x20\x20in\x20parallel\x20using\x20separate,\ - \x20internal\x20transactions\x20that\x20commit\n\x20\x20\x20\x20\x20\x20\ - independently.\x20Partitioned\x20DML\x20transactions\x20do\x20not\x20nee\ - d\x20to\x20be\n\x20\x20\x20\x20\x20\x20committed.\n\n\x20For\x20transact\ - ions\x20that\x20only\x20read,\x20snapshot\x20read-only\x20transactions\n\ - \x20provide\x20simpler\x20semantics\x20and\x20are\x20almost\x20always\ - \x20faster.\x20In\n\x20particular,\x20read-only\x20transactions\x20do\ - \x20not\x20take\x20locks,\x20so\x20they\x20do\n\x20not\x20conflict\x20wi\ - th\x20read-write\x20transactions.\x20As\x20a\x20consequence\x20of\x20not\ - \n\x20taking\x20locks,\x20they\x20also\x20do\x20not\x20abort,\x20so\x20r\ - etry\x20loops\x20are\x20not\x20needed.\n\n\x20Transactions\x20may\x20onl\ - y\x20read/write\x20data\x20in\x20a\x20single\x20database.\x20They\n\x20m\ - ay,\x20however,\x20read/write\x20data\x20in\x20different\x20tables\x20wi\ - thin\x20that\n\x20database.\n\n\x20##\x20Locking\x20Read-Write\x20Transa\ - ctions\n\n\x20Locking\x20transactions\x20may\x20be\x20used\x20to\x20atom\ - ically\x20read-modify-write\n\x20data\x20anywhere\x20in\x20a\x20database\ - .\x20This\x20type\x20of\x20transaction\x20is\x20externally\n\x20consiste\ - nt.\n\n\x20Clients\x20should\x20attempt\x20to\x20minimize\x20the\x20amou\ - nt\x20of\x20time\x20a\x20transaction\n\x20is\x20active.\x20Faster\x20tra\ - nsactions\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\x20transaction\x20ha\ - s\x20not\x20been\x20terminated\x20by\n\x20[Commit][google.spanner.v1.Spa\ - nner.Commit]\x20or\n\x20[Rollback][google.spanner.v1.Spanner.Rollback].\ - \x20\x20Long\x20periods\x20of\n\x20inactivity\x20at\x20the\x20client\x20\ - may\x20cause\x20Cloud\x20Spanner\x20to\x20release\x20a\n\x20transaction'\ - s\x20locks\x20and\x20abort\x20it.\n\n\x20Conceptually,\x20a\x20read-writ\ - e\x20transaction\x20consists\x20of\x20zero\x20or\x20more\n\x20reads\x20o\ - r\x20SQL\x20statements\x20followed\x20by\n\x20[Commit][google.spanner.v1\ - .Spanner.Commit].\x20At\x20any\x20time\x20before\n\x20[Commit][google.sp\ - anner.v1.Spanner.Commit],\x20the\x20client\x20can\x20send\x20a\n\x20[Rol\ - lback][google.spanner.v1.Spanner.Rollback]\x20request\x20to\x20abort\x20\ - the\n\x20transaction.\n\n\x20###\x20Semantics\n\n\x20Cloud\x20Spanner\ - \x20can\x20commit\x20the\x20transaction\x20if\x20all\x20read\x20locks\ - \x20it\x20acquired\n\x20are\x20still\x20valid\x20at\x20commit\x20time,\ - \x20and\x20it\x20is\x20able\x20to\x20acquire\x20write\n\x20locks\x20for\ - \x20all\x20writes.\x20Cloud\x20Spanner\x20can\x20abort\x20the\x20transac\ - tion\x20for\x20any\n\x20reason.\x20If\x20a\x20commit\x20attempt\x20retur\ - ns\x20`ABORTED`,\x20Cloud\x20Spanner\x20guarantees\n\x20that\x20the\x20t\ - ransaction\x20has\x20not\x20modified\x20any\x20user\x20data\x20in\x20Clo\ - ud\x20Spanner.\n\n\x20Unless\x20the\x20transaction\x20commits,\x20Cloud\ - \x20Spanner\x20makes\x20no\x20guarantees\x20about\n\x20how\x20long\x20th\ - e\x20transaction's\x20locks\x20were\x20held\x20for.\x20It\x20is\x20an\ - \x20error\x20to\n\x20use\x20Cloud\x20Spanner\x20locks\x20for\x20any\x20s\ - ort\x20of\x20mutual\x20exclusion\x20other\x20than\n\x20between\x20Cloud\ - \x20Spanner\x20transactions\x20themselves.\n\n\x20###\x20Retrying\x20Abo\ - rted\x20Transactions\n\n\x20When\x20a\x20transaction\x20aborts,\x20the\ - \x20application\x20can\x20choose\x20to\x20retry\x20the\n\x20whole\x20tra\ - nsaction\x20again.\x20To\x20maximize\x20the\x20chances\x20of\x20successf\ - ully\n\x20committing\x20the\x20retry,\x20the\x20client\x20should\x20exec\ - ute\x20the\x20retry\x20in\x20the\n\x20same\x20session\x20as\x20the\x20or\ - iginal\x20attempt.\x20The\x20original\x20session's\x20lock\n\x20priority\ - \x20increases\x20with\x20each\x20consecutive\x20abort,\x20meaning\x20tha\ - t\x20each\n\x20attempt\x20has\x20a\x20slightly\x20better\x20chance\x20of\ - \x20success\x20than\x20the\x20previous.\n\n\x20Under\x20some\x20circumst\ - ances\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\x20successfully\x20c\ - ommitting.\x20Thus,\x20it\x20is\x20not\x20a\x20good\n\x20idea\x20to\x20c\ - ap\x20the\x20number\x20of\x20retries\x20a\x20transaction\x20can\x20attem\ - pt;\n\x20instead,\x20it\x20is\x20better\x20to\x20limit\x20the\x20total\ - \x20amount\x20of\x20wall\x20time\x20spent\n\x20retrying.\n\n\x20###\x20I\ - dle\x20Transactions\n\n\x20A\x20transaction\x20is\x20considered\x20idle\ - \x20if\x20it\x20has\x20no\x20outstanding\x20reads\x20or\n\x20SQL\x20quer\ - ies\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\x20error\x20`ABORTE\ - D`.\n\n\x20If\x20this\x20behavior\x20is\x20undesirable,\x20periodically\ - \x20executing\x20a\x20simple\n\x20SQL\x20query\x20in\x20the\x20transacti\ - on\x20(e.g.,\x20`SELECT\x201`)\x20prevents\x20the\n\x20transaction\x20fr\ - om\x20becoming\x20idle.\n\n\x20##\x20Snapshot\x20Read-Only\x20Transactio\ - ns\n\n\x20Snapshot\x20read-only\x20transactions\x20provides\x20a\x20simp\ - ler\x20method\x20than\n\x20locking\x20read-write\x20transactions\x20for\ - \x20doing\x20several\x20consistent\n\x20reads.\x20However,\x20this\x20ty\ - pe\x20of\x20transaction\x20does\x20not\x20support\x20writes.\n\n\x20Snap\ - shot\x20transactions\x20do\x20not\x20take\x20locks.\x20Instead,\x20they\ - \x20work\x20by\n\x20choosing\x20a\x20Cloud\x20Spanner\x20timestamp,\x20t\ - hen\x20executing\x20all\x20reads\x20at\x20that\n\x20timestamp.\x20Since\ - \x20they\x20do\x20not\x20acquire\x20locks,\x20they\x20do\x20not\x20block\ - \n\x20concurrent\x20read-write\x20transactions.\n\n\x20Unlike\x20locking\ - \x20read-write\x20transactions,\x20snapshot\x20read-only\n\x20transactio\ - ns\x20never\x20abort.\x20They\x20can\x20fail\x20if\x20the\x20chosen\x20r\ - ead\n\x20timestamp\x20is\x20garbage\x20collected;\x20however,\x20the\x20\ - default\x20garbage\n\x20collection\x20policy\x20is\x20generous\x20enough\ - \x20that\x20most\x20applications\x20do\x20not\n\x20need\x20to\x20worry\ - \x20about\x20this\x20in\x20practice.\n\n\x20Snapshot\x20read-only\x20tra\ - nsactions\x20do\x20not\x20need\x20to\x20call\n\x20[Commit][google.spanne\ - r.v1.Spanner.Commit]\x20or\n\x20[Rollback][google.spanner.v1.Spanner.Rol\ - lback]\x20(and\x20in\x20fact\x20are\x20not\n\x20permitted\x20to\x20do\ - \x20so).\n\n\x20To\x20execute\x20a\x20snapshot\x20transaction,\x20the\ - \x20client\x20specifies\x20a\x20timestamp\n\x20bound,\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\x20If\x20the\x20Cloud\x20Span\ - ner\x20database\x20to\x20be\x20read\x20is\x20geographically\x20distribut\ - ed,\n\x20stale\x20read-only\x20transactions\x20can\x20execute\x20more\ - \x20quickly\x20than\x20strong\n\x20or\x20read-write\x20transaction,\x20b\ - ecause\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\x20###\x20Strong\n\n\ - \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\ + oogle\\Cloud\\Spanner\\V1J\xd0\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\ @@ -2012,25 +2008,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\xb4\x02\x08\x1a\nu\n\x04\x04\0\x03\0\x12\ - \x06\xb7\x02\x02\xb9\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\ - \xb7\x02\n\x13\nI\n\x04\x04\0\x03\x01\x12\x06\xbc\x02\x02\xbe\x02\x03\ + \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\xbc\x02\n\x18\nC\ - \n\x04\x04\0\x03\x02\x12\x06\xc1\x02\x02\x82\x03\x03\x1a3\x20Message\x20\ + \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\xc1\x02\n\x12\nN\n\x06\x04\0\x03\x02\x08\0\x12\ - \x06\xc3\x02\x04\xfd\x02\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\xc3\x02\n\x19\n_\n\x06\x04\0\x03\x02\x02\0\x12\ - \x04\xc6\x02\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\xc6\x02\x06\n\n\x0f\n\x07\x04\ - \0\x03\x02\x02\0\x01\x12\x04\xc6\x02\x0b\x11\n\x0f\n\x07\x04\0\x03\x02\ - \x02\0\x03\x12\x04\xc6\x02\x14\x15\n\xc6\x03\n\x06\x04\0\x03\x02\x02\x01\ - \x12\x04\xd2\x02\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\ @@ -2040,9 +2036,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\ - \xd2\x02\x06\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\x12\x04\xd2\x02\ - \x202\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\xd2\x0256\n\xba\x04\ - \n\x06\x04\0\x03\x02\x02\x02\x12\x04\xe1\x02\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\ @@ -2055,9 +2051,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\xe1\x02\x06\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x01\x12\ - \x04\xe1\x02\x1f,\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x03\x12\x04\xe1\x02/\ - 0\n\xb6\x04\n\x06\x04\0\x03\x02\x02\x03\x12\x04\xef\x02\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\ @@ -2069,10 +2065,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\xef\ - \x02\x06\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x01\x12\x04\xef\x02\x20.\ - \n\x0f\n\x07\x04\0\x03\x02\x02\x03\x03\x12\x04\xef\x0212\n\x92\x04\n\x06\ - \x04\0\x03\x02\x02\x04\x12\x04\xfc\x02\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\ @@ -2083,40 +2079,40 @@ 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\xfc\ - \x02\x06\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x01\x12\x04\xfc\x02\x1f.\ - \n\x0f\n\x07\x04\0\x03\x02\x02\x04\x03\x12\x04\xfc\x0212\n\xae\x01\n\x06\ - \x04\0\x03\x02\x02\x05\x12\x04\x81\x03\x04#\x1a\x9d\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\x20the\x20transaction.\n\n\x11\n\x07\x04\0\ - \x03\x02\x02\x05\x04\x12\x06\x81\x03\x04\xfd\x02\x05\n\x0f\n\x07\x04\0\ - \x03\x02\x02\x05\x05\x12\x04\x81\x03\x04\x08\n\x0f\n\x07\x04\0\x03\x02\ - \x02\x05\x01\x12\x04\x81\x03\t\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x05\x03\ - \x12\x04\x81\x03!\"\n4\n\x04\x04\0\x08\0\x12\x06\x85\x03\x02\x9a\x03\x03\ + \x03\x02\x02\x05\x04\x12\x06\x80\x03\x04\xfc\x02\x05\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\x85\x03\x08\x0c\n\xc2\x01\n\x04\x04\0\x02\0\x12\x04\ - \x8b\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\x8b\x03\x04\r\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x8b\x03\x0e\x18\ - \n\r\n\x05\x04\0\x02\0\x03\x12\x04\x8b\x03\x1b\x1c\n\xc8\x01\n\x04\x04\0\ - \x02\x01\x12\x04\x92\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\x92\x03\x04\x12\n\r\n\x05\x04\0\x02\x01\ - \x01\x12\x04\x92\x03\x13\"\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x92\x03%&\ - \n\xbb\x01\n\x04\x04\0\x02\x02\x12\x04\x99\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\x99\x03\x04\x0c\n\r\n\x05\ - \x04\0\x02\x02\x01\x12\x04\x99\x03\r\x16\n\r\n\x05\x04\0\x02\x02\x03\x12\ - \x04\x99\x03\x19\x1a\n\x1e\n\x02\x04\x01\x12\x06\x9e\x03\0\xb0\x03\x01\ - \x1a\x10\x20A\x20transaction.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x9e\x03\ - \x08\x13\n\x88\x03\n\x04\x04\x01\x02\0\x12\x04\xa7\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\ @@ -2124,48 +2120,48 @@ 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\x0f\n\x05\x04\x01\ - \x02\0\x04\x12\x06\xa7\x03\x02\x9e\x03\x15\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\xa7\x03\x02\x07\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xa7\x03\x08\ - \n\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xa7\x03\r\x0e\n\xf2\x02\n\x04\x04\ - \x01\x02\x01\x12\x04\xaf\x03\x02/\x1a\xe3\x02\x20For\x20snapshot\x20read\ + \x02\0\x04\x12\x06\xa6\x03\x02\x9d\x03\x15\n\r\n\x05\x04\x01\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\x20snapshot\x20read\ -only\x20transactions,\x20the\x20read\x20timestamp\x20chosen\n\x20for\ \x20the\x20transaction.\x20Not\x20returned\x20by\x20default:\x20see\n\ \x20[TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v\ 1.TransactionOptions.ReadOnly.return_read_timestamp].\n\n\x20A\x20timest\ amp\x20in\x20RFC3339\x20UTC\x20\\\"Zulu\\\"\x20format,\x20accurate\x20to\ \x20nanoseconds.\n\x20Example:\x20`\"2014-10-02T15:01:23.045123456Z\"`.\ - \n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xaf\x03\x02\xa7\x03\x0f\n\r\n\ - \x05\x04\x01\x02\x01\x06\x12\x04\xaf\x03\x02\x1b\n\r\n\x05\x04\x01\x02\ - \x01\x01\x12\x04\xaf\x03\x1c*\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xaf\ - \x03-.\n\x9e\x02\n\x02\x04\x02\x12\x06\xb7\x03\0\xc8\x03\x01\x1a\x8f\x02\ + \n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xae\x03\x02\xa6\x03\x0f\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.Spanner.Read]\x20or\n\ \x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]\x20call\x20runs.\ \n\n\x20See\x20[TransactionOptions][google.spanner.v1.TransactionOptions\ ]\x20for\x20more\x20information\x20about\x20transactions.\n\n\x0b\n\x03\ - \x04\x02\x01\x12\x04\xb7\x03\x08\x1b\ni\n\x04\x04\x02\x08\0\x12\x06\xba\ - \x03\x02\xc7\x03\x03\x1aY\x20If\x20no\x20fields\x20are\x20set,\x20the\ + \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\x20stro\ - ng\x20concurrency.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\xba\x03\x08\x10\ - \n\xa9\x01\n\x04\x04\x02\x02\0\x12\x04\xbe\x03\x04&\x1a\x9a\x01\x20Execu\ + ng\x20concurrency.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\xb9\x03\x08\x10\ + \n\xa9\x01\n\x04\x04\x02\x02\0\x12\x04\xbd\x03\x04&\x1a\x9a\x01\x20Execu\ te\x20the\x20read\x20or\x20SQL\x20query\x20in\x20a\x20temporary\x20trans\ action.\n\x20This\x20is\x20the\x20most\x20efficient\x20way\x20to\x20exec\ ute\x20a\x20transaction\x20that\n\x20consists\x20of\x20a\x20single\x20SQ\ - L\x20query.\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xbe\x03\x04\x16\n\r\n\ - \x05\x04\x02\x02\0\x01\x12\x04\xbe\x03\x17!\n\r\n\x05\x04\x02\x02\0\x03\ - \x12\x04\xbe\x03$%\nR\n\x04\x04\x02\x02\x01\x12\x04\xc1\x03\x04\x11\x1aD\ + L\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\x20previousl\ - y-started\x20transaction.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xc1\ - \x03\x04\t\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xc1\x03\n\x0c\n\r\n\x05\ - \x04\x02\x02\x01\x03\x12\x04\xc1\x03\x0f\x10\n\x98\x02\n\x04\x04\x02\x02\ - \x02\x12\x04\xc6\x03\x04!\x1a\x89\x02\x20Begin\x20a\x20new\x20transactio\ + y-started\x20transaction.\n\n\r\n\x05\x04\x02\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\x20transactio\ n\x20and\x20execute\x20this\x20read\x20or\x20SQL\x20query\x20in\n\x20it.\ \x20The\x20transaction\x20ID\x20of\x20the\x20new\x20transaction\x20is\ \x20returned\x20in\n\x20[ResultSetMetadata.transaction][google.spanner.v\ 1.ResultSetMetadata.transaction],\x20which\x20is\x20a\x20[Transaction][g\ oogle.spanner.v1.Transaction].\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\ - \xc6\x03\x04\x16\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xc6\x03\x17\x1c\n\ - \r\n\x05\x04\x02\x02\x02\x03\x12\x04\xc6\x03\x1f\x20b\x06proto3\ + \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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/type_pb.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/type_pb.rs index 154f4e261f..0020480ca7 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/type_pb.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/type_pb.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit +// This file is generated by rust-protobuf 2.23.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![rustfmt::skip] +#![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; #[derive(PartialEq,Clone,Default)] pub struct Type { @@ -679,7 +679,6 @@ pub enum TypeCode { BYTES = 7, ARRAY = 8, STRUCT = 9, - NUMERIC = 10, } impl ::protobuf::ProtobufEnum for TypeCode { @@ -699,7 +698,6 @@ impl ::protobuf::ProtobufEnum for TypeCode { 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), _ => ::std::option::Option::None } } @@ -716,7 +714,6 @@ impl ::protobuf::ProtobufEnum for TypeCode { TypeCode::BYTES, TypeCode::ARRAY, TypeCode::STRUCT, - TypeCode::NUMERIC, ]; values } @@ -745,154 +742,141 @@ impl ::protobuf::reflect::ProtobufValue for TypeCode { } 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\x1a\x1cgoogle/api/annotations.proto\"\xc3\x01\ - \n\x04Type\x124\n\x04code\x18\x01\x20\x01(\x0e2\x1b.google.spanner.v1.Ty\ - peCodeR\x04codeB\x03\xe0A\x02\x12E\n\x12array_element_type\x18\x02\x20\ - \x01(\x0b2\x17.google.spanner.v1.TypeR\x10arrayElementType\x12>\n\x0bstr\ - uct_type\x18\x03\x20\x01(\x0b2\x1d.google.spanner.v1.StructTypeR\nstruct\ - Type\"\x93\x01\n\nStructType\x12;\n\x06fields\x18\x01\x20\x03(\x0b2#.goo\ - gle.spanner.v1.StructType.FieldR\x06fields\x1aH\n\x05Field\x12\x12\n\x04\ - name\x18\x01\x20\x01(\tR\x04name\x12+\n\x04type\x18\x02\x20\x01(\x0b2\ - \x17.google.spanner.v1.TypeR\x04type*\x9b\x01\n\x08TypeCode\x12\x19\n\ - \x15TYPE_CODE_UNSPECIFIED\x10\0\x12\x08\n\x04BOOL\x10\x01\x12\t\n\x05INT\ - 64\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\x07NUMER\ - IC\x10\nB\xaf\x01\n\x15com.google.spanner.v1B\tTypeProtoP\x01Z8google.go\ - lang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.\ - Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Clou\ - d::Spanner::V1J\x88&\n\x07\x12\x05\x0e\0\x82\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\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\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\x08\n\ - \x01\x08\x12\x03\x1b\03\n\t\n\x02\x08-\x12\x03\x1b\03\n\x84\x01\n\x02\ - \x04\0\x12\x04\x1f\0*\x01\x1ax\x20`Type`\x20indicates\x20the\x20type\x20\ - of\x20a\x20Cloud\x20Spanner\x20value,\x20as\x20might\x20be\x20stored\x20\ - in\x20a\n\x20table\x20cell\x20or\x20returned\x20from\x20an\x20SQL\x20que\ - ry.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x0c\nR\n\x04\x04\0\x02\0\x12\ - \x03!\x02=\x1aE\x20Required.\x20The\x20[TypeCode][google.spanner.v1.Type\ - Code]\x20for\x20this\x20type.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04!\x02\ - \x1f\x0e\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03!\x02\n\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03!\x0b\x0f\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x12\x13\ - \n\x0c\n\x05\x04\0\x02\0\x08\x12\x03!\x14<\n\x0f\n\x08\x04\0\x02\0\x08\ - \x9c\x08\0\x12\x03!\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[ARRA\ - Y][google.spanner.v1.TypeCode.ARRAY],\x20then\x20`array_element_type`\n\ - \x20is\x20the\x20type\x20of\x20the\x20array\x20elements.\n\n\r\n\x05\x04\ - \0\x02\x01\x04\x12\x04%\x02!=\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[code][google.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\r\n\x05\x04\0\x02\x02\x04\x12\x04)\x02%\x1e\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-\ - \0D\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\x04/\x02;\x03\x1a2\x20M\ - essage\x20representing\x20a\x20single\x20field\x20of\x20a\x20struct.\n\n\ - \x0c\n\x05\x04\x01\x03\0\x01\x12\x03/\n\x0f\n\x99\x03\n\x06\x04\x01\x03\ - \0\x02\0\x12\x037\x04\x14\x1a\x89\x03\x20The\x20name\x20of\x20the\x20fie\ - ld.\x20For\x20reads,\x20this\x20is\x20the\x20column\x20name.\x20For\n\ - \x20SQL\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\ - \x20the\x20query\x20`\"SELECT\x20ColName\x20FROM\x20Table\"`).\x20Some\n\ - \x20columns\x20might\x20have\x20an\x20empty\x20name\x20(e.g.,\x20`\"SELE\ - CT\n\x20UPPER(ColName)\"`).\x20Note\x20that\x20a\x20query\x20result\x20c\ - an\x20contain\n\x20multiple\x20fields\x20with\x20the\x20same\x20name.\n\ - \n\x0f\n\x07\x04\x01\x03\0\x02\0\x04\x12\x047\x04/\x11\n\x0e\n\x07\x04\ - \x01\x03\0\x02\0\x05\x12\x037\x04\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x01\ - \x12\x037\x0b\x0f\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\x12\x037\x12\x13\n\ - '\n\x06\x04\x01\x03\0\x02\x01\x12\x03:\x04\x12\x1a\x18\x20The\x20type\ - \x20of\x20the\x20field.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x04\x12\x04:\ - \x047\x14\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x06\x12\x03:\x04\x08\n\x0e\n\ - \x07\x04\x01\x03\0\x02\x01\x01\x12\x03:\t\r\n\x0e\n\x07\x04\x01\x03\0\ - \x02\x01\x03\x12\x03:\x10\x11\n\x8a\x03\n\x04\x04\x01\x02\0\x12\x03C\x02\ - \x1c\x1a\xfc\x02\x20The\x20list\x20of\x20fields\x20that\x20make\x20up\ - \x20this\x20struct.\x20Order\x20is\n\x20significant,\x20because\x20value\ - s\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\x20matc\ - hes\x20the\x20order\x20of\x20columns\x20in\x20a\x20read\x20request,\x20o\ - r\x20the\x20order\x20of\n\x20fields\x20in\x20the\x20`SELECT`\x20clause\ - \x20of\x20a\x20query.\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03C\x02\n\n\ - \x0c\n\x05\x04\x01\x02\0\x06\x12\x03C\x0b\x10\n\x0c\n\x05\x04\x01\x02\0\ - \x01\x12\x03C\x11\x17\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03C\x1a\x1b\n\ - \xda\x02\n\x02\x05\0\x12\x05M\0\x82\x01\x01\x1a\xcc\x02\x20`TypeCode`\ - \x20is\x20used\x20as\x20part\x20of\x20[Type][google.spanner.v1.Type]\x20\ - to\n\x20indicate\x20the\x20type\x20of\x20a\x20Cloud\x20Spanner\x20value.\ - \n\n\x20Each\x20legal\x20value\x20of\x20a\x20type\x20can\x20be\x20encode\ - d\x20to\x20or\x20decoded\x20from\x20a\x20JSON\n\x20value,\x20using\x20th\ - e\x20encodings\x20described\x20below.\x20All\x20Cloud\x20Spanner\x20valu\ - es\x20can\n\x20be\x20`null`,\x20regardless\x20of\x20type;\x20`null`s\x20\ - are\x20always\x20encoded\x20as\x20a\x20JSON\n\x20`null`.\n\n\n\n\x03\x05\ - \0\x01\x12\x03M\x05\r\n\x1d\n\x04\x05\0\x02\0\x12\x03O\x02\x1c\x1a\x10\ - \x20Not\x20specified.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03O\x02\x17\n\ - \x0c\n\x05\x05\0\x02\0\x02\x12\x03O\x1a\x1b\n1\n\x04\x05\0\x02\x01\x12\ - \x03R\x02\x0b\x1a$\x20Encoded\x20as\x20JSON\x20`true`\x20or\x20`false`.\ - \n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03R\x02\x06\n\x0c\n\x05\x05\0\x02\ - \x01\x02\x12\x03R\t\n\n6\n\x04\x05\0\x02\x02\x12\x03U\x02\x0c\x1a)\x20En\ - coded\x20as\x20`string`,\x20in\x20decimal\x20format.\n\n\x0c\n\x05\x05\0\ - \x02\x02\x01\x12\x03U\x02\x07\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03U\n\ - \x0b\n\\\n\x04\x05\0\x02\x03\x12\x03Y\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\x03Y\x02\t\n\ - \x0c\n\x05\x05\0\x02\x03\x02\x12\x03Y\x0c\r\n\xdd\x02\n\x04\x05\0\x02\ - \x04\x12\x03c\x02\x10\x1a\xcf\x02\x20Encoded\x20as\x20`string`\x20in\x20\ - RFC\x203339\x20timestamp\x20format.\x20The\x20time\x20zone\n\x20must\x20\ - be\x20present,\x20and\x20must\x20be\x20`\"Z\"`.\n\n\x20If\x20the\x20sche\ - ma\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\x20inse\ - rt\x20the\x20commit\x20timestamp\x20associated\x20with\x20the\x20transac\ - tion\n\x20commit.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03c\x02\x0b\n\x0c\ - \n\x05\x05\0\x02\x04\x02\x12\x03c\x0e\x0f\n;\n\x04\x05\0\x02\x05\x12\x03\ - f\x02\x0b\x1a.\x20Encoded\x20as\x20`string`\x20in\x20RFC\x203339\x20date\ - \x20format.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03f\x02\x06\n\x0c\n\x05\ - \x05\0\x02\x05\x02\x12\x03f\t\n\n#\n\x04\x05\0\x02\x06\x12\x03i\x02\r\ - \x1a\x16\x20Encoded\x20as\x20`string`.\n\n\x0c\n\x05\x05\0\x02\x06\x01\ - \x12\x03i\x02\x08\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03i\x0b\x0c\nZ\n\ - \x04\x05\0\x02\x07\x12\x03m\x02\x0c\x1aM\x20Encoded\x20as\x20a\x20base64\ - -encoded\x20`string`,\x20as\x20described\x20in\x20RFC\x204648,\n\x20sect\ - ion\x204.\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x03m\x02\x07\n\x0c\n\x05\ - \x05\0\x02\x07\x02\x12\x03m\n\x0b\n\x9a\x01\n\x04\x05\0\x02\x08\x12\x03r\ - \x02\x0c\x1a\x8c\x01\x20Encoded\x20as\x20`list`,\x20where\x20the\x20list\ - \x20elements\x20are\x20represented\n\x20according\x20to\n\x20[array_elem\ - ent_type][google.spanner.v1.Type.array_element_type].\n\n\x0c\n\x05\x05\ - \0\x02\x08\x01\x12\x03r\x02\x07\n\x0c\n\x05\x05\0\x02\x08\x02\x12\x03r\n\ - \x0b\n\x94\x01\n\x04\x05\0\x02\t\x12\x03v\x02\r\x1a\x86\x01\x20Encoded\ - \x20as\x20`list`,\x20where\x20list\x20element\x20`i`\x20is\x20represente\ - d\x20according\n\x20to\x20[struct_type.fields[i]][google.spanner.v1.Stru\ - ctType.fields].\n\n\x0c\n\x05\x05\0\x02\t\x01\x12\x03v\x02\x08\n\x0c\n\ - \x05\x05\0\x02\t\x02\x12\x03v\x0b\x0c\n\xdd\x02\n\x04\x05\0\x02\n\x12\ - \x04\x81\x01\x02\x0f\x1a\xce\x02\x20Encoded\x20as\x20`string`,\x20in\x20\ - decimal\x20format\x20or\x20scientific\x20notation\x20format.\n\x20
De\ - cimal\x20format:\n\x20
`[+-]Digits[.[Digits]]`\x20or\n\x20
`[+-][D\ - igits].Digits`\n\n\x20Scientific\x20notation:\n\x20
`[+-]Digits[.[Dig\ - its]][ExponentIndicator[+-]Digits]`\x20or\n\x20
`[+-][Digits].Digits[\ - ExponentIndicator[+-]Digits]`\n\x20
(ExponentIndicator\x20is\x20`\"e\ - \"`\x20or\x20`\"E\"`)\n\n\r\n\x05\x05\0\x02\n\x01\x12\x04\x81\x01\x02\t\ - \n\r\n\x05\x05\0\x02\n\x02\x12\x04\x81\x01\x0c\x0eb\x06proto3\ + \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\xcb\"\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\r\n\x05\x04\0\x02\0\x04\ + \x12\x04S\x02Q\x0e\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.sp\ + anner.v1.TypeCode.ARRAY],\x20then\x20`array_element_type`\n\x20is\x20the\ + \x20type\x20of\x20the\x20array\x20elements.\n\n\r\n\x05\x04\0\x02\x01\ + \x04\x12\x04W\x02S\x14\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][google.spanner.v1.Type.code]\x20==\x20[STRUCT][\ + google.spanner.v1.TypeCode.STRUCT],\x20then\x20`struct_type`\n\x20provid\ + es\x20type\x20information\x20for\x20the\x20struct's\x20fields.\n\n\r\n\ + \x05\x04\0\x02\x02\x04\x12\x04[\x02W\x1e\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\ + \x0f\n\x07\x04\x01\x03\0\x02\0\x04\x12\x04i\x04a\x11\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\x0f\n\x07\x04\x01\x03\0\x02\x01\x04\x12\x04l\x04i\ + \x14\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\x20of\x20fields\x20that\x20make\x20up\x20thi\ + s\x20struct.\x20Order\x20is\n\x20significant,\x20because\x20values\x20of\ + \x20this\x20struct\x20type\x20are\x20represented\x20as\n\x20lists,\x20wh\ + ere\x20the\x20order\x20of\x20field\x20values\x20matches\x20the\x20order\ + \x20of\n\x20fields\x20in\x20the\x20[StructType][google.spanner.v1.Struct\ + Type].\x20In\x20turn,\x20the\x20order\x20of\x20fields\n\x20matches\x20th\ + e\x20order\x20of\x20columns\x20in\x20a\x20read\x20request,\x20or\x20the\ + \x20order\x20of\n\x20fields\x20in\x20the\x20`SELECT`\x20clause\x20of\x20\ + a\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\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage.rs deleted file mode 100644 index a0db55df1d..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage.rs +++ /dev/null @@ -1,27040 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/storage/v1/storage.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteBucketAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteBucketAccessControlRequest { - fn default() -> &'a DeleteBucketAccessControlRequest { - ::default_instance() - } -} - -impl DeleteBucketAccessControlRequest { - pub fn new() -> DeleteBucketAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for DeleteBucketAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if let Some(ref v) = self.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteBucketAccessControlRequest { - DeleteBucketAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteBucketAccessControlRequest| { &m.bucket }, - |m: &mut DeleteBucketAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &DeleteBucketAccessControlRequest| { &m.entity }, - |m: &mut DeleteBucketAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &DeleteBucketAccessControlRequest| { &m.common_request_params }, - |m: &mut DeleteBucketAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteBucketAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteBucketAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteBucketAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for DeleteBucketAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteBucketAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteBucketAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetBucketAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetBucketAccessControlRequest { - fn default() -> &'a GetBucketAccessControlRequest { - ::default_instance() - } -} - -impl GetBucketAccessControlRequest { - pub fn new() -> GetBucketAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetBucketAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if let Some(ref v) = self.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetBucketAccessControlRequest { - GetBucketAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetBucketAccessControlRequest| { &m.bucket }, - |m: &mut GetBucketAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &GetBucketAccessControlRequest| { &m.entity }, - |m: &mut GetBucketAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetBucketAccessControlRequest| { &m.common_request_params }, - |m: &mut GetBucketAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetBucketAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetBucketAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetBucketAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for GetBucketAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetBucketAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetBucketAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct InsertBucketAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub bucket_access_control: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InsertBucketAccessControlRequest { - fn default() -> &'a InsertBucketAccessControlRequest { - ::default_instance() - } -} - -impl InsertBucketAccessControlRequest { - pub fn new() -> InsertBucketAccessControlRequest { - ::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()) - } - - // .google.storage.v1.BucketAccessControl bucket_access_control = 3; - - - pub fn get_bucket_access_control(&self) -> &super::storage_resources::BucketAccessControl { - self.bucket_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_bucket_access_control(&mut self) { - self.bucket_access_control.clear(); - } - - pub fn has_bucket_access_control(&self) -> bool { - self.bucket_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_bucket_access_control(&mut self, v: super::storage_resources::BucketAccessControl) { - self.bucket_access_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_bucket_access_control(&mut self) -> &mut super::storage_resources::BucketAccessControl { - if self.bucket_access_control.is_none() { - self.bucket_access_control.set_default(); - } - self.bucket_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_bucket_access_control(&mut self) -> super::storage_resources::BucketAccessControl { - self.bucket_access_control.take().unwrap_or_else(|| super::storage_resources::BucketAccessControl::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for InsertBucketAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.bucket_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_access_control)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.bucket_access_control.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.bucket_access_control.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.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> InsertBucketAccessControlRequest { - InsertBucketAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &InsertBucketAccessControlRequest| { &m.bucket }, - |m: &mut InsertBucketAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "bucket_access_control", - |m: &InsertBucketAccessControlRequest| { &m.bucket_access_control }, - |m: &mut InsertBucketAccessControlRequest| { &mut m.bucket_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &InsertBucketAccessControlRequest| { &m.common_request_params }, - |m: &mut InsertBucketAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InsertBucketAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InsertBucketAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InsertBucketAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for InsertBucketAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.bucket_access_control.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InsertBucketAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InsertBucketAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBucketAccessControlsRequest { - // message fields - pub bucket: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListBucketAccessControlsRequest { - fn default() -> &'a ListBucketAccessControlsRequest { - ::default_instance() - } -} - -impl ListBucketAccessControlsRequest { - pub fn new() -> ListBucketAccessControlsRequest { - ::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()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 3; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ListBucketAccessControlsRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.common_request_params.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() -> ListBucketAccessControlsRequest { - ListBucketAccessControlsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListBucketAccessControlsRequest| { &m.bucket }, - |m: &mut ListBucketAccessControlsRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ListBucketAccessControlsRequest| { &m.common_request_params }, - |m: &mut ListBucketAccessControlsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBucketAccessControlsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListBucketAccessControlsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBucketAccessControlsRequest::new) - } -} - -impl ::protobuf::Clear for ListBucketAccessControlsRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListBucketAccessControlsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListBucketAccessControlsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchBucketAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub bucket_access_control: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchBucketAccessControlRequest { - fn default() -> &'a PatchBucketAccessControlRequest { - ::default_instance() - } -} - -impl PatchBucketAccessControlRequest { - pub fn new() -> PatchBucketAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // .google.storage.v1.BucketAccessControl bucket_access_control = 4; - - - pub fn get_bucket_access_control(&self) -> &super::storage_resources::BucketAccessControl { - self.bucket_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_bucket_access_control(&mut self) { - self.bucket_access_control.clear(); - } - - pub fn has_bucket_access_control(&self) -> bool { - self.bucket_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_bucket_access_control(&mut self, v: super::storage_resources::BucketAccessControl) { - self.bucket_access_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_bucket_access_control(&mut self) -> &mut super::storage_resources::BucketAccessControl { - if self.bucket_access_control.is_none() { - self.bucket_access_control.set_default(); - } - self.bucket_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_bucket_access_control(&mut self) -> super::storage_resources::BucketAccessControl { - self.bucket_access_control.take().unwrap_or_else(|| super::storage_resources::BucketAccessControl::new()) - } - - // .google.protobuf.FieldMask update_mask = 5; - - - 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()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 6; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for PatchBucketAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.bucket_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_access_control)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if let Some(ref v) = self.bucket_access_control.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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if let Some(ref v) = self.bucket_access_control.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_mask.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.common_request_params.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() -> PatchBucketAccessControlRequest { - PatchBucketAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchBucketAccessControlRequest| { &m.bucket }, - |m: &mut PatchBucketAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &PatchBucketAccessControlRequest| { &m.entity }, - |m: &mut PatchBucketAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "bucket_access_control", - |m: &PatchBucketAccessControlRequest| { &m.bucket_access_control }, - |m: &mut PatchBucketAccessControlRequest| { &mut m.bucket_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &PatchBucketAccessControlRequest| { &m.update_mask }, - |m: &mut PatchBucketAccessControlRequest| { &mut m.update_mask }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &PatchBucketAccessControlRequest| { &m.common_request_params }, - |m: &mut PatchBucketAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchBucketAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchBucketAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchBucketAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for PatchBucketAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.bucket_access_control.clear(); - self.update_mask.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchBucketAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchBucketAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateBucketAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub bucket_access_control: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateBucketAccessControlRequest { - fn default() -> &'a UpdateBucketAccessControlRequest { - ::default_instance() - } -} - -impl UpdateBucketAccessControlRequest { - pub fn new() -> UpdateBucketAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // .google.storage.v1.BucketAccessControl bucket_access_control = 4; - - - pub fn get_bucket_access_control(&self) -> &super::storage_resources::BucketAccessControl { - self.bucket_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_bucket_access_control(&mut self) { - self.bucket_access_control.clear(); - } - - pub fn has_bucket_access_control(&self) -> bool { - self.bucket_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_bucket_access_control(&mut self, v: super::storage_resources::BucketAccessControl) { - self.bucket_access_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_bucket_access_control(&mut self) -> &mut super::storage_resources::BucketAccessControl { - if self.bucket_access_control.is_none() { - self.bucket_access_control.set_default(); - } - self.bucket_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_bucket_access_control(&mut self) -> super::storage_resources::BucketAccessControl { - self.bucket_access_control.take().unwrap_or_else(|| super::storage_resources::BucketAccessControl::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 5; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for UpdateBucketAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.bucket_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_access_control)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if let Some(ref v) = self.bucket_access_control.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if let Some(ref v) = self.bucket_access_control.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.common_request_params.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() -> UpdateBucketAccessControlRequest { - UpdateBucketAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateBucketAccessControlRequest| { &m.bucket }, - |m: &mut UpdateBucketAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &UpdateBucketAccessControlRequest| { &m.entity }, - |m: &mut UpdateBucketAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "bucket_access_control", - |m: &UpdateBucketAccessControlRequest| { &m.bucket_access_control }, - |m: &mut UpdateBucketAccessControlRequest| { &mut m.bucket_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &UpdateBucketAccessControlRequest| { &m.common_request_params }, - |m: &mut UpdateBucketAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateBucketAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateBucketAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateBucketAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for UpdateBucketAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.bucket_access_control.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateBucketAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateBucketAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteBucketRequest { - // message fields - pub bucket: ::std::string::String, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteBucketRequest { - fn default() -> &'a DeleteBucketRequest { - ::default_instance() - } -} - -impl DeleteBucketRequest { - pub fn new() -> DeleteBucketRequest { - ::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()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 2; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 3; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 5; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for DeleteBucketRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.common_request_params.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() -> DeleteBucketRequest { - DeleteBucketRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteBucketRequest| { &m.bucket }, - |m: &mut DeleteBucketRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &DeleteBucketRequest| { &m.if_metageneration_match }, - |m: &mut DeleteBucketRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &DeleteBucketRequest| { &m.if_metageneration_not_match }, - |m: &mut DeleteBucketRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &DeleteBucketRequest| { &m.common_request_params }, - |m: &mut DeleteBucketRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteBucketRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteBucketRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteBucketRequest::new) - } -} - -impl ::protobuf::Clear for DeleteBucketRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteBucketRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteBucketRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetBucketRequest { - // message fields - pub bucket: ::std::string::String, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub projection: super::storage_resources::CommonEnums_Projection, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetBucketRequest { - fn default() -> &'a GetBucketRequest { - ::default_instance() - } -} - -impl GetBucketRequest { - pub fn new() -> GetBucketRequest { - ::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()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 2; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 3; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonEnums.Projection projection = 4; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.CommonRequestParams common_request_params = 6; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetBucketRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 4, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.projection); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.common_request_params.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() -> GetBucketRequest { - GetBucketRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetBucketRequest| { &m.bucket }, - |m: &mut GetBucketRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &GetBucketRequest| { &m.if_metageneration_match }, - |m: &mut GetBucketRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &GetBucketRequest| { &m.if_metageneration_not_match }, - |m: &mut GetBucketRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &GetBucketRequest| { &m.projection }, - |m: &mut GetBucketRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetBucketRequest| { &m.common_request_params }, - |m: &mut GetBucketRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetBucketRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetBucketRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetBucketRequest::new) - } -} - -impl ::protobuf::Clear for GetBucketRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetBucketRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetBucketRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct InsertBucketRequest { - // message fields - pub predefined_acl: super::storage_resources::CommonEnums_PredefinedBucketAcl, - pub predefined_default_object_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub project: ::std::string::String, - pub projection: super::storage_resources::CommonEnums_Projection, - pub bucket: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InsertBucketRequest { - fn default() -> &'a InsertBucketRequest { - ::default_instance() - } -} - -impl InsertBucketRequest { - pub fn new() -> InsertBucketRequest { - ::std::default::Default::default() - } - - // .google.storage.v1.CommonEnums.PredefinedBucketAcl predefined_acl = 1; - - - pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedBucketAcl { - self.predefined_acl - } - pub fn clear_predefined_acl(&mut self) { - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedBucketAcl) { - self.predefined_acl = v; - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_default_object_acl = 2; - - - pub fn get_predefined_default_object_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.predefined_default_object_acl - } - pub fn clear_predefined_default_object_acl(&mut self) { - self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_default_object_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.predefined_default_object_acl = v; - } - - // 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()) - } - - // .google.storage.v1.CommonEnums.Projection projection = 4; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.Bucket bucket = 6; - - - pub fn get_bucket(&self) -> &super::storage_resources::Bucket { - self.bucket.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_bucket(&mut self) { - self.bucket.clear(); - } - - pub fn has_bucket(&self) -> bool { - self.bucket.is_some() - } - - // Param is passed by value, moved - pub fn set_bucket(&mut self, v: super::storage_resources::Bucket) { - self.bucket = ::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(&mut self) -> &mut super::storage_resources::Bucket { - if self.bucket.is_none() { - self.bucket.set_default(); - } - self.bucket.as_mut().unwrap() - } - - // Take field - pub fn take_bucket(&mut self) -> super::storage_resources::Bucket { - self.bucket.take().unwrap_or_else(|| super::storage_resources::Bucket::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 7; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for InsertBucketRequest { - fn is_initialized(&self) -> bool { - for v in &self.bucket { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_default_object_acl, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 4, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.predefined_acl); - } - if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.predefined_default_object_acl); - } - if !self.project.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.project); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.projection); - } - if let Some(ref v) = self.bucket.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; - } - if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.predefined_default_object_acl))?; - } - if !self.project.is_empty() { - os.write_string(3, &self.project)?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.bucket.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.common_request_params.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> InsertBucketRequest { - InsertBucketRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( - "predefined_acl", - |m: &InsertBucketRequest| { &m.predefined_acl }, - |m: &mut InsertBucketRequest| { &mut m.predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "predefined_default_object_acl", - |m: &InsertBucketRequest| { &m.predefined_default_object_acl }, - |m: &mut InsertBucketRequest| { &mut m.predefined_default_object_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &InsertBucketRequest| { &m.project }, - |m: &mut InsertBucketRequest| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &InsertBucketRequest| { &m.projection }, - |m: &mut InsertBucketRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "bucket", - |m: &InsertBucketRequest| { &m.bucket }, - |m: &mut InsertBucketRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &InsertBucketRequest| { &m.common_request_params }, - |m: &mut InsertBucketRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InsertBucketRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InsertBucketRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InsertBucketRequest::new) - } -} - -impl ::protobuf::Clear for InsertBucketRequest { - fn clear(&mut self) { - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; - self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.project.clear(); - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.bucket.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InsertBucketRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InsertBucketRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListChannelsRequest { - // message fields - pub bucket: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListChannelsRequest { - fn default() -> &'a ListChannelsRequest { - ::default_instance() - } -} - -impl ListChannelsRequest { - pub fn new() -> ListChannelsRequest { - ::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()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 3; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ListChannelsRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.common_request_params.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() -> ListChannelsRequest { - ListChannelsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListChannelsRequest| { &m.bucket }, - |m: &mut ListChannelsRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ListChannelsRequest| { &m.common_request_params }, - |m: &mut ListChannelsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListChannelsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListChannelsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListChannelsRequest::new) - } -} - -impl ::protobuf::Clear for ListChannelsRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListChannelsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListChannelsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBucketsRequest { - // message fields - pub max_results: i32, - pub page_token: ::std::string::String, - pub prefix: ::std::string::String, - pub project: ::std::string::String, - pub projection: super::storage_resources::CommonEnums_Projection, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListBucketsRequest { - fn default() -> &'a ListBucketsRequest { - ::default_instance() - } -} - -impl ListBucketsRequest { - pub fn new() -> ListBucketsRequest { - ::std::default::Default::default() - } - - // int32 max_results = 1; - - - pub fn get_max_results(&self) -> i32 { - self.max_results - } - pub fn clear_max_results(&mut self) { - self.max_results = 0; - } - - // Param is passed by value, moved - pub fn set_max_results(&mut self, v: i32) { - self.max_results = 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()) - } - - // string prefix = 3; - - - pub fn get_prefix(&self) -> &str { - &self.prefix - } - pub fn clear_prefix(&mut self) { - self.prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_prefix(&mut self, v: ::std::string::String) { - self.prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_prefix(&mut self) -> &mut ::std::string::String { - &mut self.prefix - } - - // Take field - pub fn take_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.prefix, ::std::string::String::new()) - } - - // string project = 4; - - - 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()) - } - - // .google.storage.v1.CommonEnums.Projection projection = 5; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.CommonRequestParams common_request_params = 7; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ListBucketsRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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 => { - 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_results = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.prefix)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 5, &mut self.unknown_fields)? - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.max_results != 0 { - my_size += ::protobuf::rt::value_size(1, self.max_results, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.page_token); - } - if !self.prefix.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.prefix); - } - if !self.project.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.project); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.projection); - } - if let Some(ref v) = self.common_request_params.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.max_results != 0 { - os.write_int32(1, self.max_results)?; - } - if !self.page_token.is_empty() { - os.write_string(2, &self.page_token)?; - } - if !self.prefix.is_empty() { - os.write_string(3, &self.prefix)?; - } - if !self.project.is_empty() { - os.write_string(4, &self.project)?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.common_request_params.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListBucketsRequest { - ListBucketsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( - "max_results", - |m: &ListBucketsRequest| { &m.max_results }, - |m: &mut ListBucketsRequest| { &mut m.max_results }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListBucketsRequest| { &m.page_token }, - |m: &mut ListBucketsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "prefix", - |m: &ListBucketsRequest| { &m.prefix }, - |m: &mut ListBucketsRequest| { &mut m.prefix }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &ListBucketsRequest| { &m.project }, - |m: &mut ListBucketsRequest| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &ListBucketsRequest| { &m.projection }, - |m: &mut ListBucketsRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ListBucketsRequest| { &m.common_request_params }, - |m: &mut ListBucketsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBucketsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListBucketsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBucketsRequest::new) - } -} - -impl ::protobuf::Clear for ListBucketsRequest { - fn clear(&mut self) { - self.max_results = 0; - self.page_token.clear(); - self.prefix.clear(); - self.project.clear(); - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListBucketsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListBucketsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LockRetentionPolicyRequest { - // message fields - pub bucket: ::std::string::String, - pub if_metageneration_match: i64, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LockRetentionPolicyRequest { - fn default() -> &'a LockRetentionPolicyRequest { - ::default_instance() - } -} - -impl LockRetentionPolicyRequest { - pub fn new() -> LockRetentionPolicyRequest { - ::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()) - } - - // int64 if_metageneration_match = 2; - - - pub fn get_if_metageneration_match(&self) -> i64 { - self.if_metageneration_match - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match = 0; - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: i64) { - self.if_metageneration_match = v; - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for LockRetentionPolicyRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 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.if_metageneration_match = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.if_metageneration_match != 0 { - my_size += ::protobuf::rt::value_size(2, self.if_metageneration_match, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if self.if_metageneration_match != 0 { - os.write_int64(2, self.if_metageneration_match)?; - } - if let Some(ref v) = self.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LockRetentionPolicyRequest { - LockRetentionPolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &LockRetentionPolicyRequest| { &m.bucket }, - |m: &mut LockRetentionPolicyRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "if_metageneration_match", - |m: &LockRetentionPolicyRequest| { &m.if_metageneration_match }, - |m: &mut LockRetentionPolicyRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &LockRetentionPolicyRequest| { &m.common_request_params }, - |m: &mut LockRetentionPolicyRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LockRetentionPolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static LockRetentionPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LockRetentionPolicyRequest::new) - } -} - -impl ::protobuf::Clear for LockRetentionPolicyRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.if_metageneration_match = 0; - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LockRetentionPolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LockRetentionPolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchBucketRequest { - // message fields - pub bucket: ::std::string::String, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub predefined_acl: super::storage_resources::CommonEnums_PredefinedBucketAcl, - pub predefined_default_object_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub projection: super::storage_resources::CommonEnums_Projection, - pub metadata: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchBucketRequest { - fn default() -> &'a PatchBucketRequest { - ::default_instance() - } -} - -impl PatchBucketRequest { - pub fn new() -> PatchBucketRequest { - ::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()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 2; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 3; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonEnums.PredefinedBucketAcl predefined_acl = 4; - - - pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedBucketAcl { - self.predefined_acl - } - pub fn clear_predefined_acl(&mut self) { - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedBucketAcl) { - self.predefined_acl = v; - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_default_object_acl = 5; - - - pub fn get_predefined_default_object_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.predefined_default_object_acl - } - pub fn clear_predefined_default_object_acl(&mut self) { - self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_default_object_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.predefined_default_object_acl = v; - } - - // .google.storage.v1.CommonEnums.Projection projection = 6; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.Bucket metadata = 8; - - - pub fn get_metadata(&self) -> &super::storage_resources::Bucket { - 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: super::storage_resources::Bucket) { - 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 super::storage_resources::Bucket { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> super::storage_resources::Bucket { - self.metadata.take().unwrap_or_else(|| super::storage_resources::Bucket::new()) - } - - // .google.protobuf.FieldMask update_mask = 9; - - - 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()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 10; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for PatchBucketRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_default_object_acl, 5, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 6, &mut self.unknown_fields)? - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.predefined_acl); - } - if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.predefined_default_object_acl); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.projection); - } - if let Some(ref v) = self.metadata.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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; - } - if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.predefined_default_object_acl))?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.metadata.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_mask.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.common_request_params.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() -> PatchBucketRequest { - PatchBucketRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchBucketRequest| { &m.bucket }, - |m: &mut PatchBucketRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &PatchBucketRequest| { &m.if_metageneration_match }, - |m: &mut PatchBucketRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &PatchBucketRequest| { &m.if_metageneration_not_match }, - |m: &mut PatchBucketRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "predefined_acl", - |m: &PatchBucketRequest| { &m.predefined_acl }, - |m: &mut PatchBucketRequest| { &mut m.predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "predefined_default_object_acl", - |m: &PatchBucketRequest| { &m.predefined_default_object_acl }, - |m: &mut PatchBucketRequest| { &mut m.predefined_default_object_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &PatchBucketRequest| { &m.projection }, - |m: &mut PatchBucketRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &PatchBucketRequest| { &m.metadata }, - |m: &mut PatchBucketRequest| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &PatchBucketRequest| { &m.update_mask }, - |m: &mut PatchBucketRequest| { &mut m.update_mask }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &PatchBucketRequest| { &m.common_request_params }, - |m: &mut PatchBucketRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchBucketRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchBucketRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchBucketRequest::new) - } -} - -impl ::protobuf::Clear for PatchBucketRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; - self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.metadata.clear(); - self.update_mask.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchBucketRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchBucketRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateBucketRequest { - // message fields - pub bucket: ::std::string::String, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub predefined_acl: super::storage_resources::CommonEnums_PredefinedBucketAcl, - pub predefined_default_object_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub projection: super::storage_resources::CommonEnums_Projection, - pub metadata: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateBucketRequest { - fn default() -> &'a UpdateBucketRequest { - ::default_instance() - } -} - -impl UpdateBucketRequest { - pub fn new() -> UpdateBucketRequest { - ::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()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 2; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 3; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonEnums.PredefinedBucketAcl predefined_acl = 4; - - - pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedBucketAcl { - self.predefined_acl - } - pub fn clear_predefined_acl(&mut self) { - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedBucketAcl) { - self.predefined_acl = v; - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_default_object_acl = 5; - - - pub fn get_predefined_default_object_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.predefined_default_object_acl - } - pub fn clear_predefined_default_object_acl(&mut self) { - self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_default_object_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.predefined_default_object_acl = v; - } - - // .google.storage.v1.CommonEnums.Projection projection = 6; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.Bucket metadata = 8; - - - pub fn get_metadata(&self) -> &super::storage_resources::Bucket { - 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: super::storage_resources::Bucket) { - 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 super::storage_resources::Bucket { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> super::storage_resources::Bucket { - self.metadata.take().unwrap_or_else(|| super::storage_resources::Bucket::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 9; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for UpdateBucketRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_default_object_acl, 5, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 6, &mut self.unknown_fields)? - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.predefined_acl); - } - if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.predefined_default_object_acl); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.projection); - } - if let Some(ref v) = self.metadata.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; - } - if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.predefined_default_object_acl))?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.metadata.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.common_request_params.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() -> UpdateBucketRequest { - UpdateBucketRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateBucketRequest| { &m.bucket }, - |m: &mut UpdateBucketRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &UpdateBucketRequest| { &m.if_metageneration_match }, - |m: &mut UpdateBucketRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &UpdateBucketRequest| { &m.if_metageneration_not_match }, - |m: &mut UpdateBucketRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "predefined_acl", - |m: &UpdateBucketRequest| { &m.predefined_acl }, - |m: &mut UpdateBucketRequest| { &mut m.predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "predefined_default_object_acl", - |m: &UpdateBucketRequest| { &m.predefined_default_object_acl }, - |m: &mut UpdateBucketRequest| { &mut m.predefined_default_object_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &UpdateBucketRequest| { &m.projection }, - |m: &mut UpdateBucketRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &UpdateBucketRequest| { &m.metadata }, - |m: &mut UpdateBucketRequest| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &UpdateBucketRequest| { &m.common_request_params }, - |m: &mut UpdateBucketRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateBucketRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateBucketRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateBucketRequest::new) - } -} - -impl ::protobuf::Clear for UpdateBucketRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; - self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.metadata.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateBucketRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateBucketRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StopChannelRequest { - // message fields - pub channel: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StopChannelRequest { - fn default() -> &'a StopChannelRequest { - ::default_instance() - } -} - -impl StopChannelRequest { - pub fn new() -> StopChannelRequest { - ::std::default::Default::default() - } - - // .google.storage.v1.Channel channel = 1; - - - pub fn get_channel(&self) -> &super::storage_resources::Channel { - self.channel.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_channel(&mut self) { - self.channel.clear(); - } - - pub fn has_channel(&self) -> bool { - self.channel.is_some() - } - - // Param is passed by value, moved - pub fn set_channel(&mut self, v: super::storage_resources::Channel) { - self.channel = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_channel(&mut self) -> &mut super::storage_resources::Channel { - if self.channel.is_none() { - self.channel.set_default(); - } - self.channel.as_mut().unwrap() - } - - // Take field - pub fn take_channel(&mut self) -> super::storage_resources::Channel { - self.channel.take().unwrap_or_else(|| super::storage_resources::Channel::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 2; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for StopChannelRequest { - fn is_initialized(&self) -> bool { - for v in &self.channel { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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_message_into(wire_type, is, &mut self.channel)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.channel.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.channel.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.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StopChannelRequest { - StopChannelRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "channel", - |m: &StopChannelRequest| { &m.channel }, - |m: &mut StopChannelRequest| { &mut m.channel }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &StopChannelRequest| { &m.common_request_params }, - |m: &mut StopChannelRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StopChannelRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StopChannelRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StopChannelRequest::new) - } -} - -impl ::protobuf::Clear for StopChannelRequest { - fn clear(&mut self) { - self.channel.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StopChannelRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StopChannelRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteDefaultObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteDefaultObjectAccessControlRequest { - fn default() -> &'a DeleteDefaultObjectAccessControlRequest { - ::default_instance() - } -} - -impl DeleteDefaultObjectAccessControlRequest { - pub fn new() -> DeleteDefaultObjectAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for DeleteDefaultObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if let Some(ref v) = self.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteDefaultObjectAccessControlRequest { - DeleteDefaultObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteDefaultObjectAccessControlRequest| { &m.bucket }, - |m: &mut DeleteDefaultObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &DeleteDefaultObjectAccessControlRequest| { &m.entity }, - |m: &mut DeleteDefaultObjectAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &DeleteDefaultObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut DeleteDefaultObjectAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteDefaultObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteDefaultObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteDefaultObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for DeleteDefaultObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteDefaultObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteDefaultObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetDefaultObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetDefaultObjectAccessControlRequest { - fn default() -> &'a GetDefaultObjectAccessControlRequest { - ::default_instance() - } -} - -impl GetDefaultObjectAccessControlRequest { - pub fn new() -> GetDefaultObjectAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetDefaultObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if let Some(ref v) = self.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetDefaultObjectAccessControlRequest { - GetDefaultObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetDefaultObjectAccessControlRequest| { &m.bucket }, - |m: &mut GetDefaultObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &GetDefaultObjectAccessControlRequest| { &m.entity }, - |m: &mut GetDefaultObjectAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetDefaultObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut GetDefaultObjectAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetDefaultObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetDefaultObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDefaultObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for GetDefaultObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetDefaultObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetDefaultObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct InsertDefaultObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub object_access_control: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InsertDefaultObjectAccessControlRequest { - fn default() -> &'a InsertDefaultObjectAccessControlRequest { - ::default_instance() - } -} - -impl InsertDefaultObjectAccessControlRequest { - pub fn new() -> InsertDefaultObjectAccessControlRequest { - ::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()) - } - - // .google.storage.v1.ObjectAccessControl object_access_control = 3; - - - pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { - self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_access_control(&mut self) { - self.object_access_control.clear(); - } - - pub fn has_object_access_control(&self) -> bool { - self.object_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { - self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { - if self.object_access_control.is_none() { - self.object_access_control.set_default(); - } - self.object_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { - self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for InsertDefaultObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.object_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.object_access_control.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.object_access_control.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.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> InsertDefaultObjectAccessControlRequest { - InsertDefaultObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &InsertDefaultObjectAccessControlRequest| { &m.bucket }, - |m: &mut InsertDefaultObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_access_control", - |m: &InsertDefaultObjectAccessControlRequest| { &m.object_access_control }, - |m: &mut InsertDefaultObjectAccessControlRequest| { &mut m.object_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &InsertDefaultObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut InsertDefaultObjectAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InsertDefaultObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InsertDefaultObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InsertDefaultObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for InsertDefaultObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.object_access_control.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InsertDefaultObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InsertDefaultObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListDefaultObjectAccessControlsRequest { - // message fields - pub bucket: ::std::string::String, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListDefaultObjectAccessControlsRequest { - fn default() -> &'a ListDefaultObjectAccessControlsRequest { - ::default_instance() - } -} - -impl ListDefaultObjectAccessControlsRequest { - pub fn new() -> ListDefaultObjectAccessControlsRequest { - ::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()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 2; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 3; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 5; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ListDefaultObjectAccessControlsRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.common_request_params.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() -> ListDefaultObjectAccessControlsRequest { - ListDefaultObjectAccessControlsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListDefaultObjectAccessControlsRequest| { &m.bucket }, - |m: &mut ListDefaultObjectAccessControlsRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &ListDefaultObjectAccessControlsRequest| { &m.if_metageneration_match }, - |m: &mut ListDefaultObjectAccessControlsRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &ListDefaultObjectAccessControlsRequest| { &m.if_metageneration_not_match }, - |m: &mut ListDefaultObjectAccessControlsRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ListDefaultObjectAccessControlsRequest| { &m.common_request_params }, - |m: &mut ListDefaultObjectAccessControlsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDefaultObjectAccessControlsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListDefaultObjectAccessControlsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDefaultObjectAccessControlsRequest::new) - } -} - -impl ::protobuf::Clear for ListDefaultObjectAccessControlsRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListDefaultObjectAccessControlsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListDefaultObjectAccessControlsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchDefaultObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub object_access_control: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchDefaultObjectAccessControlRequest { - fn default() -> &'a PatchDefaultObjectAccessControlRequest { - ::default_instance() - } -} - -impl PatchDefaultObjectAccessControlRequest { - pub fn new() -> PatchDefaultObjectAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // .google.storage.v1.ObjectAccessControl object_access_control = 4; - - - pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { - self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_access_control(&mut self) { - self.object_access_control.clear(); - } - - pub fn has_object_access_control(&self) -> bool { - self.object_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { - self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { - if self.object_access_control.is_none() { - self.object_access_control.set_default(); - } - self.object_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { - self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) - } - - // .google.protobuf.FieldMask update_mask = 5; - - - 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()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 6; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for PatchDefaultObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.object_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if let Some(ref v) = self.object_access_control.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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if let Some(ref v) = self.object_access_control.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_mask.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.common_request_params.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() -> PatchDefaultObjectAccessControlRequest { - PatchDefaultObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchDefaultObjectAccessControlRequest| { &m.bucket }, - |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &PatchDefaultObjectAccessControlRequest| { &m.entity }, - |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_access_control", - |m: &PatchDefaultObjectAccessControlRequest| { &m.object_access_control }, - |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.object_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &PatchDefaultObjectAccessControlRequest| { &m.update_mask }, - |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.update_mask }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &PatchDefaultObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchDefaultObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchDefaultObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchDefaultObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for PatchDefaultObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.object_access_control.clear(); - self.update_mask.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchDefaultObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchDefaultObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateDefaultObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub object_access_control: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateDefaultObjectAccessControlRequest { - fn default() -> &'a UpdateDefaultObjectAccessControlRequest { - ::default_instance() - } -} - -impl UpdateDefaultObjectAccessControlRequest { - pub fn new() -> UpdateDefaultObjectAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // .google.storage.v1.ObjectAccessControl object_access_control = 4; - - - pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { - self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_access_control(&mut self) { - self.object_access_control.clear(); - } - - pub fn has_object_access_control(&self) -> bool { - self.object_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { - self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { - if self.object_access_control.is_none() { - self.object_access_control.set_default(); - } - self.object_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { - self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 5; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for UpdateDefaultObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.object_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if let Some(ref v) = self.object_access_control.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if let Some(ref v) = self.object_access_control.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.common_request_params.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() -> UpdateDefaultObjectAccessControlRequest { - UpdateDefaultObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateDefaultObjectAccessControlRequest| { &m.bucket }, - |m: &mut UpdateDefaultObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &UpdateDefaultObjectAccessControlRequest| { &m.entity }, - |m: &mut UpdateDefaultObjectAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_access_control", - |m: &UpdateDefaultObjectAccessControlRequest| { &m.object_access_control }, - |m: &mut UpdateDefaultObjectAccessControlRequest| { &mut m.object_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &UpdateDefaultObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut UpdateDefaultObjectAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateDefaultObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateDefaultObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateDefaultObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for UpdateDefaultObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.object_access_control.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateDefaultObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateDefaultObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteNotificationRequest { - // message fields - pub bucket: ::std::string::String, - pub notification: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteNotificationRequest { - fn default() -> &'a DeleteNotificationRequest { - ::default_instance() - } -} - -impl DeleteNotificationRequest { - pub fn new() -> DeleteNotificationRequest { - ::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 notification = 2; - - - pub fn get_notification(&self) -> &str { - &self.notification - } - pub fn clear_notification(&mut self) { - self.notification.clear(); - } - - // Param is passed by value, moved - pub fn set_notification(&mut self, v: ::std::string::String) { - self.notification = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_notification(&mut self) -> &mut ::std::string::String { - &mut self.notification - } - - // Take field - pub fn take_notification(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.notification, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for DeleteNotificationRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.notification)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.notification.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.notification); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.notification.is_empty() { - os.write_string(2, &self.notification)?; - } - if let Some(ref v) = self.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteNotificationRequest { - DeleteNotificationRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteNotificationRequest| { &m.bucket }, - |m: &mut DeleteNotificationRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "notification", - |m: &DeleteNotificationRequest| { &m.notification }, - |m: &mut DeleteNotificationRequest| { &mut m.notification }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &DeleteNotificationRequest| { &m.common_request_params }, - |m: &mut DeleteNotificationRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteNotificationRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteNotificationRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteNotificationRequest::new) - } -} - -impl ::protobuf::Clear for DeleteNotificationRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.notification.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteNotificationRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteNotificationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetNotificationRequest { - // message fields - pub bucket: ::std::string::String, - pub notification: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetNotificationRequest { - fn default() -> &'a GetNotificationRequest { - ::default_instance() - } -} - -impl GetNotificationRequest { - pub fn new() -> GetNotificationRequest { - ::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 notification = 2; - - - pub fn get_notification(&self) -> &str { - &self.notification - } - pub fn clear_notification(&mut self) { - self.notification.clear(); - } - - // Param is passed by value, moved - pub fn set_notification(&mut self, v: ::std::string::String) { - self.notification = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_notification(&mut self) -> &mut ::std::string::String { - &mut self.notification - } - - // Take field - pub fn take_notification(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.notification, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetNotificationRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.notification)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.notification.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.notification); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.notification.is_empty() { - os.write_string(2, &self.notification)?; - } - if let Some(ref v) = self.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetNotificationRequest { - GetNotificationRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetNotificationRequest| { &m.bucket }, - |m: &mut GetNotificationRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "notification", - |m: &GetNotificationRequest| { &m.notification }, - |m: &mut GetNotificationRequest| { &mut m.notification }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetNotificationRequest| { &m.common_request_params }, - |m: &mut GetNotificationRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetNotificationRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetNotificationRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetNotificationRequest::new) - } -} - -impl ::protobuf::Clear for GetNotificationRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.notification.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetNotificationRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetNotificationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct InsertNotificationRequest { - // message fields - pub bucket: ::std::string::String, - pub notification: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InsertNotificationRequest { - fn default() -> &'a InsertNotificationRequest { - ::default_instance() - } -} - -impl InsertNotificationRequest { - pub fn new() -> InsertNotificationRequest { - ::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()) - } - - // .google.storage.v1.Notification notification = 3; - - - pub fn get_notification(&self) -> &super::storage_resources::Notification { - self.notification.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_notification(&mut self) { - self.notification.clear(); - } - - pub fn has_notification(&self) -> bool { - self.notification.is_some() - } - - // Param is passed by value, moved - pub fn set_notification(&mut self, v: super::storage_resources::Notification) { - self.notification = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_notification(&mut self) -> &mut super::storage_resources::Notification { - if self.notification.is_none() { - self.notification.set_default(); - } - self.notification.as_mut().unwrap() - } - - // Take field - pub fn take_notification(&mut self) -> super::storage_resources::Notification { - self.notification.take().unwrap_or_else(|| super::storage_resources::Notification::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for InsertNotificationRequest { - fn is_initialized(&self) -> bool { - for v in &self.notification { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.notification)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.notification.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.notification.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.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> InsertNotificationRequest { - InsertNotificationRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &InsertNotificationRequest| { &m.bucket }, - |m: &mut InsertNotificationRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "notification", - |m: &InsertNotificationRequest| { &m.notification }, - |m: &mut InsertNotificationRequest| { &mut m.notification }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &InsertNotificationRequest| { &m.common_request_params }, - |m: &mut InsertNotificationRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InsertNotificationRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InsertNotificationRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InsertNotificationRequest::new) - } -} - -impl ::protobuf::Clear for InsertNotificationRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.notification.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InsertNotificationRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InsertNotificationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListNotificationsRequest { - // message fields - pub bucket: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListNotificationsRequest { - fn default() -> &'a ListNotificationsRequest { - ::default_instance() - } -} - -impl ListNotificationsRequest { - pub fn new() -> ListNotificationsRequest { - ::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()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 3; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ListNotificationsRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if let Some(ref v) = self.common_request_params.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() -> ListNotificationsRequest { - ListNotificationsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListNotificationsRequest| { &m.bucket }, - |m: &mut ListNotificationsRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ListNotificationsRequest| { &m.common_request_params }, - |m: &mut ListNotificationsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListNotificationsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListNotificationsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListNotificationsRequest::new) - } -} - -impl ::protobuf::Clear for ListNotificationsRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListNotificationsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListNotificationsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteObjectAccessControlRequest { - fn default() -> &'a DeleteObjectAccessControlRequest { - ::default_instance() - } -} - -impl DeleteObjectAccessControlRequest { - pub fn new() -> DeleteObjectAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // string object = 3; - - - 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 = 4; - - - 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; - } - - // .google.storage.v1.CommonRequestParams common_request_params = 6; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for DeleteObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 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.generation = tmp; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.object); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if !self.object.is_empty() { - os.write_string(3, &self.object)?; - } - if self.generation != 0 { - os.write_int64(4, self.generation)?; - } - if let Some(ref v) = self.common_request_params.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() -> DeleteObjectAccessControlRequest { - DeleteObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteObjectAccessControlRequest| { &m.bucket }, - |m: &mut DeleteObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &DeleteObjectAccessControlRequest| { &m.entity }, - |m: &mut DeleteObjectAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &DeleteObjectAccessControlRequest| { &m.object }, - |m: &mut DeleteObjectAccessControlRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &DeleteObjectAccessControlRequest| { &m.generation }, - |m: &mut DeleteObjectAccessControlRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &DeleteObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut DeleteObjectAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for DeleteObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.object.clear(); - self.generation = 0; - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetObjectAccessControlRequest { - fn default() -> &'a GetObjectAccessControlRequest { - ::default_instance() - } -} - -impl GetObjectAccessControlRequest { - pub fn new() -> GetObjectAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // string object = 3; - - - 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 = 4; - - - 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; - } - - // .google.storage.v1.CommonRequestParams common_request_params = 6; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 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.generation = tmp; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.object); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if !self.object.is_empty() { - os.write_string(3, &self.object)?; - } - if self.generation != 0 { - os.write_int64(4, self.generation)?; - } - if let Some(ref v) = self.common_request_params.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() -> GetObjectAccessControlRequest { - GetObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetObjectAccessControlRequest| { &m.bucket }, - |m: &mut GetObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &GetObjectAccessControlRequest| { &m.entity }, - |m: &mut GetObjectAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &GetObjectAccessControlRequest| { &m.object }, - |m: &mut GetObjectAccessControlRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &GetObjectAccessControlRequest| { &m.generation }, - |m: &mut GetObjectAccessControlRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut GetObjectAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for GetObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.object.clear(); - self.generation = 0; - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct InsertObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub object_access_control: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InsertObjectAccessControlRequest { - fn default() -> &'a InsertObjectAccessControlRequest { - ::default_instance() - } -} - -impl InsertObjectAccessControlRequest { - pub fn new() -> InsertObjectAccessControlRequest { - ::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; - } - - // .google.storage.v1.ObjectAccessControl object_access_control = 5; - - - pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { - self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_access_control(&mut self) { - self.object_access_control.clear(); - } - - pub fn has_object_access_control(&self) -> bool { - self.object_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { - self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { - if self.object_access_control.is_none() { - self.object_access_control.set_default(); - } - self.object_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { - self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 6; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for InsertObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.object_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.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; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if let Some(ref v) = self.object_access_control.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.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)?; - } - if let Some(ref v) = self.object_access_control.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.common_request_params.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() -> InsertObjectAccessControlRequest { - InsertObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &InsertObjectAccessControlRequest| { &m.bucket }, - |m: &mut InsertObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &InsertObjectAccessControlRequest| { &m.object }, - |m: &mut InsertObjectAccessControlRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &InsertObjectAccessControlRequest| { &m.generation }, - |m: &mut InsertObjectAccessControlRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_access_control", - |m: &InsertObjectAccessControlRequest| { &m.object_access_control }, - |m: &mut InsertObjectAccessControlRequest| { &mut m.object_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &InsertObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut InsertObjectAccessControlRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InsertObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InsertObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InsertObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for InsertObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.object_access_control.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InsertObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InsertObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListObjectAccessControlsRequest { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListObjectAccessControlsRequest { - fn default() -> &'a ListObjectAccessControlsRequest { - ::default_instance() - } -} - -impl ListObjectAccessControlsRequest { - pub fn new() -> ListObjectAccessControlsRequest { - ::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; - } - - // .google.storage.v1.CommonRequestParams common_request_params = 5; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ListObjectAccessControlsRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.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; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if let Some(ref v) = self.common_request_params.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.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)?; - } - if let Some(ref v) = self.common_request_params.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() -> ListObjectAccessControlsRequest { - ListObjectAccessControlsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListObjectAccessControlsRequest| { &m.bucket }, - |m: &mut ListObjectAccessControlsRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &ListObjectAccessControlsRequest| { &m.object }, - |m: &mut ListObjectAccessControlsRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &ListObjectAccessControlsRequest| { &m.generation }, - |m: &mut ListObjectAccessControlsRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ListObjectAccessControlsRequest| { &m.common_request_params }, - |m: &mut ListObjectAccessControlsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListObjectAccessControlsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListObjectAccessControlsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListObjectAccessControlsRequest::new) - } -} - -impl ::protobuf::Clear for ListObjectAccessControlsRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListObjectAccessControlsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListObjectAccessControlsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub object_access_control: ::protobuf::SingularPtrField, - pub common_request_params: ::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 PatchObjectAccessControlRequest { - fn default() -> &'a PatchObjectAccessControlRequest { - ::default_instance() - } -} - -impl PatchObjectAccessControlRequest { - pub fn new() -> PatchObjectAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // string object = 3; - - - 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 = 4; - - - 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; - } - - // .google.storage.v1.ObjectAccessControl object_access_control = 5; - - - pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { - self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_access_control(&mut self) { - self.object_access_control.clear(); - } - - pub fn has_object_access_control(&self) -> bool { - self.object_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { - self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { - if self.object_access_control.is_none() { - self.object_access_control.set_default(); - } - self.object_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { - self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 6; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } - - // .google.protobuf.FieldMask update_mask = 7; - - - 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 PatchObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.object_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_params { - 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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 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.generation = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - 7 => { - ::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 !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.bucket); - } - if !self.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.object); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.object_access_control.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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 !self.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if !self.object.is_empty() { - os.write_string(3, &self.object)?; - } - if self.generation != 0 { - os.write_int64(4, self.generation)?; - } - if let Some(ref v) = self.object_access_control.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.common_request_params.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_mask.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchObjectAccessControlRequest { - PatchObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchObjectAccessControlRequest| { &m.bucket }, - |m: &mut PatchObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &PatchObjectAccessControlRequest| { &m.entity }, - |m: &mut PatchObjectAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &PatchObjectAccessControlRequest| { &m.object }, - |m: &mut PatchObjectAccessControlRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &PatchObjectAccessControlRequest| { &m.generation }, - |m: &mut PatchObjectAccessControlRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_access_control", - |m: &PatchObjectAccessControlRequest| { &m.object_access_control }, - |m: &mut PatchObjectAccessControlRequest| { &mut m.object_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &PatchObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut PatchObjectAccessControlRequest| { &mut m.common_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &PatchObjectAccessControlRequest| { &m.update_mask }, - |m: &mut PatchObjectAccessControlRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for PatchObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.object.clear(); - self.generation = 0; - self.object_access_control.clear(); - self.common_request_params.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateObjectAccessControlRequest { - // message fields - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub object_access_control: ::protobuf::SingularPtrField, - pub common_request_params: ::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 UpdateObjectAccessControlRequest { - fn default() -> &'a UpdateObjectAccessControlRequest { - ::default_instance() - } -} - -impl UpdateObjectAccessControlRequest { - pub fn new() -> UpdateObjectAccessControlRequest { - ::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 entity = 2; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // string object = 3; - - - 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 = 4; - - - 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; - } - - // .google.storage.v1.ObjectAccessControl object_access_control = 6; - - - pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { - self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_access_control(&mut self) { - self.object_access_control.clear(); - } - - pub fn has_object_access_control(&self) -> bool { - self.object_access_control.is_some() - } - - // Param is passed by value, moved - pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { - self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { - if self.object_access_control.is_none() { - self.object_access_control.set_default(); - } - self.object_access_control.as_mut().unwrap() - } - - // Take field - pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { - self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 7; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } - - // .google.protobuf.FieldMask update_mask = 8; - - - 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 UpdateObjectAccessControlRequest { - fn is_initialized(&self) -> bool { - for v in &self.object_access_control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_params { - 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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 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.generation = tmp; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - 8 => { - ::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 !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.bucket); - } - if !self.entity.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.object); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.object_access_control.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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 !self.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(2, &self.entity)?; - } - if !self.object.is_empty() { - os.write_string(3, &self.object)?; - } - if self.generation != 0 { - os.write_int64(4, self.generation)?; - } - if let Some(ref v) = self.object_access_control.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.common_request_params.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.update_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() -> UpdateObjectAccessControlRequest { - UpdateObjectAccessControlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateObjectAccessControlRequest| { &m.bucket }, - |m: &mut UpdateObjectAccessControlRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &UpdateObjectAccessControlRequest| { &m.entity }, - |m: &mut UpdateObjectAccessControlRequest| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &UpdateObjectAccessControlRequest| { &m.object }, - |m: &mut UpdateObjectAccessControlRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &UpdateObjectAccessControlRequest| { &m.generation }, - |m: &mut UpdateObjectAccessControlRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_access_control", - |m: &UpdateObjectAccessControlRequest| { &m.object_access_control }, - |m: &mut UpdateObjectAccessControlRequest| { &mut m.object_access_control }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &UpdateObjectAccessControlRequest| { &m.common_request_params }, - |m: &mut UpdateObjectAccessControlRequest| { &mut m.common_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateObjectAccessControlRequest| { &m.update_mask }, - |m: &mut UpdateObjectAccessControlRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateObjectAccessControlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateObjectAccessControlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateObjectAccessControlRequest::new) - } -} - -impl ::protobuf::Clear for UpdateObjectAccessControlRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.entity.clear(); - self.object.clear(); - self.generation = 0; - self.object_access_control.clear(); - self.common_request_params.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateObjectAccessControlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateObjectAccessControlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ComposeObjectRequest { - // message fields - pub destination_bucket: ::std::string::String, - pub destination_object: ::std::string::String, - pub destination_predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub destination: ::protobuf::SingularPtrField, - pub source_objects: ::protobuf::RepeatedField, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub kms_key_name: ::std::string::String, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ComposeObjectRequest { - fn default() -> &'a ComposeObjectRequest { - ::default_instance() - } -} - -impl ComposeObjectRequest { - pub fn new() -> ComposeObjectRequest { - ::std::default::Default::default() - } - - // string destination_bucket = 1; - - - pub fn get_destination_bucket(&self) -> &str { - &self.destination_bucket - } - pub fn clear_destination_bucket(&mut self) { - self.destination_bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_bucket(&mut self, v: ::std::string::String) { - self.destination_bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_bucket(&mut self) -> &mut ::std::string::String { - &mut self.destination_bucket - } - - // Take field - pub fn take_destination_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_bucket, ::std::string::String::new()) - } - - // string destination_object = 2; - - - pub fn get_destination_object(&self) -> &str { - &self.destination_object - } - pub fn clear_destination_object(&mut self) { - self.destination_object.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_object(&mut self, v: ::std::string::String) { - self.destination_object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_object(&mut self) -> &mut ::std::string::String { - &mut self.destination_object - } - - // Take field - pub fn take_destination_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_object, ::std::string::String::new()) - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl destination_predefined_acl = 3; - - - pub fn get_destination_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.destination_predefined_acl - } - pub fn clear_destination_predefined_acl(&mut self) { - self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_destination_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.destination_predefined_acl = v; - } - - // .google.storage.v1.Object destination = 11; - - - pub fn get_destination(&self) -> &super::storage_resources::Object { - self.destination.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_destination(&mut self) { - self.destination.clear(); - } - - pub fn has_destination(&self) -> bool { - self.destination.is_some() - } - - // Param is passed by value, moved - pub fn set_destination(&mut self, v: super::storage_resources::Object) { - self.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_destination(&mut self) -> &mut super::storage_resources::Object { - if self.destination.is_none() { - self.destination.set_default(); - } - self.destination.as_mut().unwrap() - } - - // Take field - pub fn take_destination(&mut self) -> super::storage_resources::Object { - self.destination.take().unwrap_or_else(|| super::storage_resources::Object::new()) - } - - // repeated .google.storage.v1.ComposeObjectRequest.SourceObjects source_objects = 12; - - - pub fn get_source_objects(&self) -> &[ComposeObjectRequest_SourceObjects] { - &self.source_objects - } - pub fn clear_source_objects(&mut self) { - self.source_objects.clear(); - } - - // Param is passed by value, moved - pub fn set_source_objects(&mut self, v: ::protobuf::RepeatedField) { - self.source_objects = v; - } - - // Mutable pointer to the field. - pub fn mut_source_objects(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.source_objects - } - - // Take field - pub fn take_source_objects(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.source_objects, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Int64Value if_generation_match = 4; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 5; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // string kms_key_name = 6; - - - 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()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 9; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 10; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ComposeObjectRequest { - fn is_initialized(&self) -> bool { - for v in &self.destination { - if !v.is_initialized() { - return false; - } - }; - for v in &self.source_objects { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.destination_bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_object)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.destination_predefined_acl, 3, &mut self.unknown_fields)? - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.destination)?; - }, - 12 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.source_objects)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.destination_bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.destination_bucket); - } - if !self.destination_object.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.destination_object); - } - if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.destination_predefined_acl); - } - if let Some(ref v) = self.destination.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.source_objects { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.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(6, &self.kms_key_name); - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.destination_bucket.is_empty() { - os.write_string(1, &self.destination_bucket)?; - } - if !self.destination_object.is_empty() { - os.write_string(2, &self.destination_object)?; - } - if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.destination_predefined_acl))?; - } - if let Some(ref v) = self.destination.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)?; - } - for v in &self.source_objects { - 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(ref v) = self.if_generation_match.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.if_metageneration_match.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.kms_key_name.is_empty() { - os.write_string(6, &self.kms_key_name)?; - } - if let Some(ref v) = self.common_object_request_params.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.common_request_params.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() -> ComposeObjectRequest { - ComposeObjectRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_bucket", - |m: &ComposeObjectRequest| { &m.destination_bucket }, - |m: &mut ComposeObjectRequest| { &mut m.destination_bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_object", - |m: &ComposeObjectRequest| { &m.destination_object }, - |m: &mut ComposeObjectRequest| { &mut m.destination_object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "destination_predefined_acl", - |m: &ComposeObjectRequest| { &m.destination_predefined_acl }, - |m: &mut ComposeObjectRequest| { &mut m.destination_predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "destination", - |m: &ComposeObjectRequest| { &m.destination }, - |m: &mut ComposeObjectRequest| { &mut m.destination }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source_objects", - |m: &ComposeObjectRequest| { &m.source_objects }, - |m: &mut ComposeObjectRequest| { &mut m.source_objects }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &ComposeObjectRequest| { &m.if_generation_match }, - |m: &mut ComposeObjectRequest| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &ComposeObjectRequest| { &m.if_metageneration_match }, - |m: &mut ComposeObjectRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_name", - |m: &ComposeObjectRequest| { &m.kms_key_name }, - |m: &mut ComposeObjectRequest| { &mut m.kms_key_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &ComposeObjectRequest| { &m.common_object_request_params }, - |m: &mut ComposeObjectRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ComposeObjectRequest| { &m.common_request_params }, - |m: &mut ComposeObjectRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ComposeObjectRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ComposeObjectRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ComposeObjectRequest::new) - } -} - -impl ::protobuf::Clear for ComposeObjectRequest { - fn clear(&mut self) { - self.destination_bucket.clear(); - self.destination_object.clear(); - self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.destination.clear(); - self.source_objects.clear(); - self.if_generation_match.clear(); - self.if_metageneration_match.clear(); - self.kms_key_name.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ComposeObjectRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ComposeObjectRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ComposeObjectRequest_SourceObjects { - // message fields - pub name: ::std::string::String, - pub generation: i64, - pub object_preconditions: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ComposeObjectRequest_SourceObjects { - fn default() -> &'a ComposeObjectRequest_SourceObjects { - ::default_instance() - } -} - -impl ComposeObjectRequest_SourceObjects { - pub fn new() -> ComposeObjectRequest_SourceObjects { - ::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()) - } - - // int64 generation = 2; - - - 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; - } - - // .google.storage.v1.ComposeObjectRequest.SourceObjects.ObjectPreconditions object_preconditions = 3; - - - pub fn get_object_preconditions(&self) -> &ComposeObjectRequest_SourceObjects_ObjectPreconditions { - self.object_preconditions.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_preconditions(&mut self) { - self.object_preconditions.clear(); - } - - pub fn has_object_preconditions(&self) -> bool { - self.object_preconditions.is_some() - } - - // Param is passed by value, moved - pub fn set_object_preconditions(&mut self, v: ComposeObjectRequest_SourceObjects_ObjectPreconditions) { - self.object_preconditions = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object_preconditions(&mut self) -> &mut ComposeObjectRequest_SourceObjects_ObjectPreconditions { - if self.object_preconditions.is_none() { - self.object_preconditions.set_default(); - } - self.object_preconditions.as_mut().unwrap() - } - - // Take field - pub fn take_object_preconditions(&mut self) -> ComposeObjectRequest_SourceObjects_ObjectPreconditions { - self.object_preconditions.take().unwrap_or_else(|| ComposeObjectRequest_SourceObjects_ObjectPreconditions::new()) - } -} - -impl ::protobuf::Message for ComposeObjectRequest_SourceObjects { - fn is_initialized(&self) -> bool { - for v in &self.object_preconditions { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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_int64()?; - self.generation = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_preconditions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.generation != 0 { - my_size += ::protobuf::rt::value_size(2, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.object_preconditions.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.generation != 0 { - os.write_int64(2, self.generation)?; - } - if let Some(ref v) = self.object_preconditions.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() -> ComposeObjectRequest_SourceObjects { - ComposeObjectRequest_SourceObjects::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ComposeObjectRequest_SourceObjects| { &m.name }, - |m: &mut ComposeObjectRequest_SourceObjects| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &ComposeObjectRequest_SourceObjects| { &m.generation }, - |m: &mut ComposeObjectRequest_SourceObjects| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_preconditions", - |m: &ComposeObjectRequest_SourceObjects| { &m.object_preconditions }, - |m: &mut ComposeObjectRequest_SourceObjects| { &mut m.object_preconditions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ComposeObjectRequest.SourceObjects", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ComposeObjectRequest_SourceObjects { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ComposeObjectRequest_SourceObjects::new) - } -} - -impl ::protobuf::Clear for ComposeObjectRequest_SourceObjects { - fn clear(&mut self) { - self.name.clear(); - self.generation = 0; - self.object_preconditions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ComposeObjectRequest_SourceObjects { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ComposeObjectRequest_SourceObjects { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ComposeObjectRequest_SourceObjects_ObjectPreconditions { - // message fields - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ComposeObjectRequest_SourceObjects_ObjectPreconditions { - fn default() -> &'a ComposeObjectRequest_SourceObjects_ObjectPreconditions { - ::default_instance() - } -} - -impl ComposeObjectRequest_SourceObjects_ObjectPreconditions { - pub fn new() -> ComposeObjectRequest_SourceObjects_ObjectPreconditions { - ::std::default::Default::default() - } - - // .google.protobuf.Int64Value if_generation_match = 1; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } -} - -impl ::protobuf::Message for ComposeObjectRequest_SourceObjects_ObjectPreconditions { - fn is_initialized(&self) -> bool { - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::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.if_generation_match)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.if_generation_match.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.if_generation_match.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() -> ComposeObjectRequest_SourceObjects_ObjectPreconditions { - ComposeObjectRequest_SourceObjects_ObjectPreconditions::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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::Int64Value>>( - "if_generation_match", - |m: &ComposeObjectRequest_SourceObjects_ObjectPreconditions| { &m.if_generation_match }, - |m: &mut ComposeObjectRequest_SourceObjects_ObjectPreconditions| { &mut m.if_generation_match }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ComposeObjectRequest.SourceObjects.ObjectPreconditions", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ComposeObjectRequest_SourceObjects_ObjectPreconditions { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ComposeObjectRequest_SourceObjects_ObjectPreconditions::new) - } -} - -impl ::protobuf::Clear for ComposeObjectRequest_SourceObjects_ObjectPreconditions { - fn clear(&mut self) { - self.if_generation_match.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ComposeObjectRequest_SourceObjects_ObjectPreconditions { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ComposeObjectRequest_SourceObjects_ObjectPreconditions { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CopyObjectRequest { - // message fields - pub destination_bucket: ::std::string::String, - pub destination_object: ::std::string::String, - pub destination_predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_source_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_source_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_source_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_source_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub projection: super::storage_resources::CommonEnums_Projection, - pub source_bucket: ::std::string::String, - pub source_object: ::std::string::String, - pub source_generation: i64, - pub destination: ::protobuf::SingularPtrField, - pub destination_kms_key_name: ::std::string::String, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CopyObjectRequest { - fn default() -> &'a CopyObjectRequest { - ::default_instance() - } -} - -impl CopyObjectRequest { - pub fn new() -> CopyObjectRequest { - ::std::default::Default::default() - } - - // string destination_bucket = 1; - - - pub fn get_destination_bucket(&self) -> &str { - &self.destination_bucket - } - pub fn clear_destination_bucket(&mut self) { - self.destination_bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_bucket(&mut self, v: ::std::string::String) { - self.destination_bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_bucket(&mut self) -> &mut ::std::string::String { - &mut self.destination_bucket - } - - // Take field - pub fn take_destination_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_bucket, ::std::string::String::new()) - } - - // string destination_object = 2; - - - pub fn get_destination_object(&self) -> &str { - &self.destination_object - } - pub fn clear_destination_object(&mut self) { - self.destination_object.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_object(&mut self, v: ::std::string::String) { - self.destination_object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_object(&mut self) -> &mut ::std::string::String { - &mut self.destination_object - } - - // Take field - pub fn take_destination_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_object, ::std::string::String::new()) - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl destination_predefined_acl = 3; - - - pub fn get_destination_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.destination_predefined_acl - } - pub fn clear_destination_predefined_acl(&mut self) { - self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_destination_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.destination_predefined_acl = v; - } - - // .google.protobuf.Int64Value if_generation_match = 4; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_generation_not_match = 5; - - - pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_not_match(&mut self) { - self.if_generation_not_match.clear(); - } - - pub fn has_if_generation_not_match(&self) -> bool { - self.if_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_not_match.is_none() { - self.if_generation_not_match.set_default(); - } - self.if_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 6; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 7; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_source_generation_match = 8; - - - pub fn get_if_source_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_source_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_source_generation_match(&mut self) { - self.if_source_generation_match.clear(); - } - - pub fn has_if_source_generation_match(&self) -> bool { - self.if_source_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_source_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_source_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_source_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_source_generation_match.is_none() { - self.if_source_generation_match.set_default(); - } - self.if_source_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_source_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_source_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_source_generation_not_match = 9; - - - pub fn get_if_source_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_source_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_source_generation_not_match(&mut self) { - self.if_source_generation_not_match.clear(); - } - - pub fn has_if_source_generation_not_match(&self) -> bool { - self.if_source_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_source_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_source_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_source_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_source_generation_not_match.is_none() { - self.if_source_generation_not_match.set_default(); - } - self.if_source_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_source_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_source_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_source_metageneration_match = 10; - - - pub fn get_if_source_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_source_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_source_metageneration_match(&mut self) { - self.if_source_metageneration_match.clear(); - } - - pub fn has_if_source_metageneration_match(&self) -> bool { - self.if_source_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_source_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_source_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_source_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_source_metageneration_match.is_none() { - self.if_source_metageneration_match.set_default(); - } - self.if_source_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_source_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_source_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_source_metageneration_not_match = 11; - - - pub fn get_if_source_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_source_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_source_metageneration_not_match(&mut self) { - self.if_source_metageneration_not_match.clear(); - } - - pub fn has_if_source_metageneration_not_match(&self) -> bool { - self.if_source_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_source_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_source_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_source_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_source_metageneration_not_match.is_none() { - self.if_source_metageneration_not_match.set_default(); - } - self.if_source_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_source_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_source_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonEnums.Projection projection = 12; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // string source_bucket = 13; - - - pub fn get_source_bucket(&self) -> &str { - &self.source_bucket - } - pub fn clear_source_bucket(&mut self) { - self.source_bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_source_bucket(&mut self, v: ::std::string::String) { - self.source_bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_bucket(&mut self) -> &mut ::std::string::String { - &mut self.source_bucket - } - - // Take field - pub fn take_source_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_bucket, ::std::string::String::new()) - } - - // string source_object = 14; - - - pub fn get_source_object(&self) -> &str { - &self.source_object - } - pub fn clear_source_object(&mut self) { - self.source_object.clear(); - } - - // Param is passed by value, moved - pub fn set_source_object(&mut self, v: ::std::string::String) { - self.source_object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_object(&mut self) -> &mut ::std::string::String { - &mut self.source_object - } - - // Take field - pub fn take_source_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_object, ::std::string::String::new()) - } - - // int64 source_generation = 15; - - - pub fn get_source_generation(&self) -> i64 { - self.source_generation - } - pub fn clear_source_generation(&mut self) { - self.source_generation = 0; - } - - // Param is passed by value, moved - pub fn set_source_generation(&mut self, v: i64) { - self.source_generation = v; - } - - // .google.storage.v1.Object destination = 17; - - - pub fn get_destination(&self) -> &super::storage_resources::Object { - self.destination.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_destination(&mut self) { - self.destination.clear(); - } - - pub fn has_destination(&self) -> bool { - self.destination.is_some() - } - - // Param is passed by value, moved - pub fn set_destination(&mut self, v: super::storage_resources::Object) { - self.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_destination(&mut self) -> &mut super::storage_resources::Object { - if self.destination.is_none() { - self.destination.set_default(); - } - self.destination.as_mut().unwrap() - } - - // Take field - pub fn take_destination(&mut self) -> super::storage_resources::Object { - self.destination.take().unwrap_or_else(|| super::storage_resources::Object::new()) - } - - // string destination_kms_key_name = 20; - - - pub fn get_destination_kms_key_name(&self) -> &str { - &self.destination_kms_key_name - } - pub fn clear_destination_kms_key_name(&mut self) { - self.destination_kms_key_name.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_kms_key_name(&mut self, v: ::std::string::String) { - self.destination_kms_key_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.destination_kms_key_name - } - - // Take field - pub fn take_destination_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_kms_key_name, ::std::string::String::new()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 18; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 19; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for CopyObjectRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_source_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_source_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_source_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_source_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.destination { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.destination_bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_object)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.destination_predefined_acl, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_generation_match)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_generation_not_match)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_metageneration_match)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_metageneration_not_match)?; - }, - 12 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 12, &mut self.unknown_fields)? - }, - 13 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_bucket)?; - }, - 14 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_object)?; - }, - 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.source_generation = tmp; - }, - 17 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.destination)?; - }, - 20 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_kms_key_name)?; - }, - 18 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 19 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.destination_bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.destination_bucket); - } - if !self.destination_object.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.destination_object); - } - if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.destination_predefined_acl); - } - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_source_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_source_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_source_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_source_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(12, self.projection); - } - if !self.source_bucket.is_empty() { - my_size += ::protobuf::rt::string_size(13, &self.source_bucket); - } - if !self.source_object.is_empty() { - my_size += ::protobuf::rt::string_size(14, &self.source_object); - } - if self.source_generation != 0 { - my_size += ::protobuf::rt::value_size(15, self.source_generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.destination.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.destination_kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(20, &self.destination_kms_key_name); - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.destination_bucket.is_empty() { - os.write_string(1, &self.destination_bucket)?; - } - if !self.destination_object.is_empty() { - os.write_string(2, &self.destination_object)?; - } - if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.destination_predefined_acl))?; - } - if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.if_source_generation_match.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.if_source_generation_not_match.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.if_source_metageneration_match.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.if_source_metageneration_not_match.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.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if !self.source_bucket.is_empty() { - os.write_string(13, &self.source_bucket)?; - } - if !self.source_object.is_empty() { - os.write_string(14, &self.source_object)?; - } - if self.source_generation != 0 { - os.write_int64(15, self.source_generation)?; - } - if let Some(ref v) = self.destination.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.destination_kms_key_name.is_empty() { - os.write_string(20, &self.destination_kms_key_name)?; - } - if let Some(ref v) = self.common_object_request_params.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.common_request_params.as_ref() { - os.write_tag(19, ::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() -> CopyObjectRequest { - CopyObjectRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_bucket", - |m: &CopyObjectRequest| { &m.destination_bucket }, - |m: &mut CopyObjectRequest| { &mut m.destination_bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_object", - |m: &CopyObjectRequest| { &m.destination_object }, - |m: &mut CopyObjectRequest| { &mut m.destination_object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "destination_predefined_acl", - |m: &CopyObjectRequest| { &m.destination_predefined_acl }, - |m: &mut CopyObjectRequest| { &mut m.destination_predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &CopyObjectRequest| { &m.if_generation_match }, - |m: &mut CopyObjectRequest| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_not_match", - |m: &CopyObjectRequest| { &m.if_generation_not_match }, - |m: &mut CopyObjectRequest| { &mut m.if_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &CopyObjectRequest| { &m.if_metageneration_match }, - |m: &mut CopyObjectRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &CopyObjectRequest| { &m.if_metageneration_not_match }, - |m: &mut CopyObjectRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_source_generation_match", - |m: &CopyObjectRequest| { &m.if_source_generation_match }, - |m: &mut CopyObjectRequest| { &mut m.if_source_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_source_generation_not_match", - |m: &CopyObjectRequest| { &m.if_source_generation_not_match }, - |m: &mut CopyObjectRequest| { &mut m.if_source_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_source_metageneration_match", - |m: &CopyObjectRequest| { &m.if_source_metageneration_match }, - |m: &mut CopyObjectRequest| { &mut m.if_source_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_source_metageneration_not_match", - |m: &CopyObjectRequest| { &m.if_source_metageneration_not_match }, - |m: &mut CopyObjectRequest| { &mut m.if_source_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &CopyObjectRequest| { &m.projection }, - |m: &mut CopyObjectRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_bucket", - |m: &CopyObjectRequest| { &m.source_bucket }, - |m: &mut CopyObjectRequest| { &mut m.source_bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_object", - |m: &CopyObjectRequest| { &m.source_object }, - |m: &mut CopyObjectRequest| { &mut m.source_object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "source_generation", - |m: &CopyObjectRequest| { &m.source_generation }, - |m: &mut CopyObjectRequest| { &mut m.source_generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "destination", - |m: &CopyObjectRequest| { &m.destination }, - |m: &mut CopyObjectRequest| { &mut m.destination }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_kms_key_name", - |m: &CopyObjectRequest| { &m.destination_kms_key_name }, - |m: &mut CopyObjectRequest| { &mut m.destination_kms_key_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &CopyObjectRequest| { &m.common_object_request_params }, - |m: &mut CopyObjectRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &CopyObjectRequest| { &m.common_request_params }, - |m: &mut CopyObjectRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CopyObjectRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CopyObjectRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CopyObjectRequest::new) - } -} - -impl ::protobuf::Clear for CopyObjectRequest { - fn clear(&mut self) { - self.destination_bucket.clear(); - self.destination_object.clear(); - self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.if_generation_match.clear(); - self.if_generation_not_match.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.if_source_generation_match.clear(); - self.if_source_generation_not_match.clear(); - self.if_source_metageneration_match.clear(); - self.if_source_metageneration_not_match.clear(); - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.source_bucket.clear(); - self.source_object.clear(); - self.source_generation = 0; - self.destination.clear(); - self.destination_kms_key_name.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CopyObjectRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CopyObjectRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteObjectRequest { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub upload_id: ::std::string::String, - pub generation: i64, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteObjectRequest { - fn default() -> &'a DeleteObjectRequest { - ::default_instance() - } -} - -impl DeleteObjectRequest { - pub fn new() -> DeleteObjectRequest { - ::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()) - } - - // string upload_id = 3; - - - pub fn get_upload_id(&self) -> &str { - &self.upload_id - } - pub fn clear_upload_id(&mut self) { - self.upload_id.clear(); - } - - // Param is passed by value, moved - pub fn set_upload_id(&mut self, v: ::std::string::String) { - self.upload_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_upload_id(&mut self) -> &mut ::std::string::String { - &mut self.upload_id - } - - // Take field - pub fn take_upload_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.upload_id, ::std::string::String::new()) - } - - // int64 generation = 4; - - - 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; - } - - // .google.protobuf.Int64Value if_generation_match = 5; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_generation_not_match = 6; - - - pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_not_match(&mut self) { - self.if_generation_not_match.clear(); - } - - pub fn has_if_generation_not_match(&self) -> bool { - self.if_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_not_match.is_none() { - self.if_generation_not_match.set_default(); - } - self.if_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 7; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 8; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 10; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 11; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for DeleteObjectRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.upload_id)?; - }, - 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.generation = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.upload_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.upload_id); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.object.is_empty() { - os.write_string(2, &self.object)?; - } - if !self.upload_id.is_empty() { - os.write_string(3, &self.upload_id)?; - } - if self.generation != 0 { - os.write_int64(4, self.generation)?; - } - if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.common_object_request_params.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.common_request_params.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteObjectRequest { - DeleteObjectRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteObjectRequest| { &m.bucket }, - |m: &mut DeleteObjectRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &DeleteObjectRequest| { &m.object }, - |m: &mut DeleteObjectRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "upload_id", - |m: &DeleteObjectRequest| { &m.upload_id }, - |m: &mut DeleteObjectRequest| { &mut m.upload_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &DeleteObjectRequest| { &m.generation }, - |m: &mut DeleteObjectRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &DeleteObjectRequest| { &m.if_generation_match }, - |m: &mut DeleteObjectRequest| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_not_match", - |m: &DeleteObjectRequest| { &m.if_generation_not_match }, - |m: &mut DeleteObjectRequest| { &mut m.if_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &DeleteObjectRequest| { &m.if_metageneration_match }, - |m: &mut DeleteObjectRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &DeleteObjectRequest| { &m.if_metageneration_not_match }, - |m: &mut DeleteObjectRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &DeleteObjectRequest| { &m.common_object_request_params }, - |m: &mut DeleteObjectRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &DeleteObjectRequest| { &m.common_request_params }, - |m: &mut DeleteObjectRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteObjectRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteObjectRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteObjectRequest::new) - } -} - -impl ::protobuf::Clear for DeleteObjectRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.upload_id.clear(); - self.generation = 0; - self.if_generation_match.clear(); - self.if_generation_not_match.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteObjectRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteObjectRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetObjectMediaRequest { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub read_offset: i64, - pub read_limit: i64, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetObjectMediaRequest { - fn default() -> &'a GetObjectMediaRequest { - ::default_instance() - } -} - -impl GetObjectMediaRequest { - pub fn new() -> GetObjectMediaRequest { - ::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; - } - - // int64 read_offset = 4; - - - pub fn get_read_offset(&self) -> i64 { - self.read_offset - } - pub fn clear_read_offset(&mut self) { - self.read_offset = 0; - } - - // Param is passed by value, moved - pub fn set_read_offset(&mut self, v: i64) { - self.read_offset = v; - } - - // int64 read_limit = 5; - - - pub fn get_read_limit(&self) -> i64 { - self.read_limit - } - pub fn clear_read_limit(&mut self) { - self.read_limit = 0; - } - - // Param is passed by value, moved - pub fn set_read_limit(&mut self, v: i64) { - self.read_limit = v; - } - - // .google.protobuf.Int64Value if_generation_match = 6; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_generation_not_match = 7; - - - pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_not_match(&mut self) { - self.if_generation_not_match.clear(); - } - - pub fn has_if_generation_not_match(&self) -> bool { - self.if_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_not_match.is_none() { - self.if_generation_not_match.set_default(); - } - self.if_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 8; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 9; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 11; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 12; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetObjectMediaRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.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; - }, - 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.read_offset = 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.read_limit = tmp; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if self.read_offset != 0 { - my_size += ::protobuf::rt::value_size(4, self.read_offset, ::protobuf::wire_format::WireTypeVarint); - } - if self.read_limit != 0 { - my_size += ::protobuf::rt::value_size(5, self.read_limit, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.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)?; - } - if self.read_offset != 0 { - os.write_int64(4, self.read_offset)?; - } - if self.read_limit != 0 { - os.write_int64(5, self.read_limit)?; - } - if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.common_object_request_params.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.common_request_params.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() -> GetObjectMediaRequest { - GetObjectMediaRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetObjectMediaRequest| { &m.bucket }, - |m: &mut GetObjectMediaRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &GetObjectMediaRequest| { &m.object }, - |m: &mut GetObjectMediaRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &GetObjectMediaRequest| { &m.generation }, - |m: &mut GetObjectMediaRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "read_offset", - |m: &GetObjectMediaRequest| { &m.read_offset }, - |m: &mut GetObjectMediaRequest| { &mut m.read_offset }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "read_limit", - |m: &GetObjectMediaRequest| { &m.read_limit }, - |m: &mut GetObjectMediaRequest| { &mut m.read_limit }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &GetObjectMediaRequest| { &m.if_generation_match }, - |m: &mut GetObjectMediaRequest| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_not_match", - |m: &GetObjectMediaRequest| { &m.if_generation_not_match }, - |m: &mut GetObjectMediaRequest| { &mut m.if_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &GetObjectMediaRequest| { &m.if_metageneration_match }, - |m: &mut GetObjectMediaRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &GetObjectMediaRequest| { &m.if_metageneration_not_match }, - |m: &mut GetObjectMediaRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &GetObjectMediaRequest| { &m.common_object_request_params }, - |m: &mut GetObjectMediaRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetObjectMediaRequest| { &m.common_request_params }, - |m: &mut GetObjectMediaRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetObjectMediaRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetObjectMediaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetObjectMediaRequest::new) - } -} - -impl ::protobuf::Clear for GetObjectMediaRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.read_offset = 0; - self.read_limit = 0; - self.if_generation_match.clear(); - self.if_generation_not_match.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetObjectMediaRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetObjectMediaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetObjectRequest { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub projection: super::storage_resources::CommonEnums_Projection, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetObjectRequest { - fn default() -> &'a GetObjectRequest { - ::default_instance() - } -} - -impl GetObjectRequest { - pub fn new() -> GetObjectRequest { - ::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; - } - - // .google.protobuf.Int64Value if_generation_match = 4; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_generation_not_match = 5; - - - pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_not_match(&mut self) { - self.if_generation_not_match.clear(); - } - - pub fn has_if_generation_not_match(&self) -> bool { - self.if_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_not_match.is_none() { - self.if_generation_not_match.set_default(); - } - self.if_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 6; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 7; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonEnums.Projection projection = 8; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 10; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 11; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetObjectRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.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; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 8 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 8, &mut self.unknown_fields)? - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(8, self.projection); - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.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)?; - } - if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.common_object_request_params.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.common_request_params.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetObjectRequest { - GetObjectRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetObjectRequest| { &m.bucket }, - |m: &mut GetObjectRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &GetObjectRequest| { &m.object }, - |m: &mut GetObjectRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &GetObjectRequest| { &m.generation }, - |m: &mut GetObjectRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &GetObjectRequest| { &m.if_generation_match }, - |m: &mut GetObjectRequest| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_not_match", - |m: &GetObjectRequest| { &m.if_generation_not_match }, - |m: &mut GetObjectRequest| { &mut m.if_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &GetObjectRequest| { &m.if_metageneration_match }, - |m: &mut GetObjectRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &GetObjectRequest| { &m.if_metageneration_not_match }, - |m: &mut GetObjectRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &GetObjectRequest| { &m.projection }, - |m: &mut GetObjectRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &GetObjectRequest| { &m.common_object_request_params }, - |m: &mut GetObjectRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetObjectRequest| { &m.common_request_params }, - |m: &mut GetObjectRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetObjectRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetObjectRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetObjectRequest::new) - } -} - -impl ::protobuf::Clear for GetObjectRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.if_generation_match.clear(); - self.if_generation_not_match.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetObjectRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetObjectRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetObjectMediaResponse { - // message fields - pub checksummed_data: ::protobuf::SingularPtrField, - pub object_checksums: ::protobuf::SingularPtrField, - pub content_range: ::protobuf::SingularPtrField, - pub metadata: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetObjectMediaResponse { - fn default() -> &'a GetObjectMediaResponse { - ::default_instance() - } -} - -impl GetObjectMediaResponse { - pub fn new() -> GetObjectMediaResponse { - ::std::default::Default::default() - } - - // .google.storage.v1.ChecksummedData checksummed_data = 1; - - - pub fn get_checksummed_data(&self) -> &super::storage_resources::ChecksummedData { - self.checksummed_data.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_checksummed_data(&mut self) { - self.checksummed_data.clear(); - } - - pub fn has_checksummed_data(&self) -> bool { - self.checksummed_data.is_some() - } - - // Param is passed by value, moved - pub fn set_checksummed_data(&mut self, v: super::storage_resources::ChecksummedData) { - self.checksummed_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_checksummed_data(&mut self) -> &mut super::storage_resources::ChecksummedData { - if self.checksummed_data.is_none() { - self.checksummed_data.set_default(); - } - self.checksummed_data.as_mut().unwrap() - } - - // Take field - pub fn take_checksummed_data(&mut self) -> super::storage_resources::ChecksummedData { - self.checksummed_data.take().unwrap_or_else(|| super::storage_resources::ChecksummedData::new()) - } - - // .google.storage.v1.ObjectChecksums object_checksums = 2; - - - pub fn get_object_checksums(&self) -> &super::storage_resources::ObjectChecksums { - self.object_checksums.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_checksums(&mut self) { - self.object_checksums.clear(); - } - - pub fn has_object_checksums(&self) -> bool { - self.object_checksums.is_some() - } - - // Param is passed by value, moved - pub fn set_object_checksums(&mut self, v: super::storage_resources::ObjectChecksums) { - self.object_checksums = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object_checksums(&mut self) -> &mut super::storage_resources::ObjectChecksums { - if self.object_checksums.is_none() { - self.object_checksums.set_default(); - } - self.object_checksums.as_mut().unwrap() - } - - // Take field - pub fn take_object_checksums(&mut self) -> super::storage_resources::ObjectChecksums { - self.object_checksums.take().unwrap_or_else(|| super::storage_resources::ObjectChecksums::new()) - } - - // .google.storage.v1.ContentRange content_range = 3; - - - pub fn get_content_range(&self) -> &super::storage_resources::ContentRange { - self.content_range.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_content_range(&mut self) { - self.content_range.clear(); - } - - pub fn has_content_range(&self) -> bool { - self.content_range.is_some() - } - - // Param is passed by value, moved - pub fn set_content_range(&mut self, v: super::storage_resources::ContentRange) { - self.content_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_content_range(&mut self) -> &mut super::storage_resources::ContentRange { - if self.content_range.is_none() { - self.content_range.set_default(); - } - self.content_range.as_mut().unwrap() - } - - // Take field - pub fn take_content_range(&mut self) -> super::storage_resources::ContentRange { - self.content_range.take().unwrap_or_else(|| super::storage_resources::ContentRange::new()) - } - - // .google.storage.v1.Object metadata = 4; - - - pub fn get_metadata(&self) -> &super::storage_resources::Object { - 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: super::storage_resources::Object) { - 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 super::storage_resources::Object { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> super::storage_resources::Object { - self.metadata.take().unwrap_or_else(|| super::storage_resources::Object::new()) - } -} - -impl ::protobuf::Message for GetObjectMediaResponse { - fn is_initialized(&self) -> bool { - for v in &self.checksummed_data { - if !v.is_initialized() { - return false; - } - }; - for v in &self.object_checksums { - if !v.is_initialized() { - return false; - } - }; - for v in &self.content_range { - 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_message_into(wire_type, is, &mut self.checksummed_data)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_checksums)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.content_range)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(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 let Some(ref v) = self.checksummed_data.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.object_checksums.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.content_range.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.metadata.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.checksummed_data.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.object_checksums.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.content_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)?; - } - if let Some(ref v) = self.metadata.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() -> GetObjectMediaResponse { - GetObjectMediaResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "checksummed_data", - |m: &GetObjectMediaResponse| { &m.checksummed_data }, - |m: &mut GetObjectMediaResponse| { &mut m.checksummed_data }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_checksums", - |m: &GetObjectMediaResponse| { &m.object_checksums }, - |m: &mut GetObjectMediaResponse| { &mut m.object_checksums }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "content_range", - |m: &GetObjectMediaResponse| { &m.content_range }, - |m: &mut GetObjectMediaResponse| { &mut m.content_range }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &GetObjectMediaResponse| { &m.metadata }, - |m: &mut GetObjectMediaResponse| { &mut m.metadata }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetObjectMediaResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetObjectMediaResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetObjectMediaResponse::new) - } -} - -impl ::protobuf::Clear for GetObjectMediaResponse { - fn clear(&mut self) { - self.checksummed_data.clear(); - self.object_checksums.clear(); - self.content_range.clear(); - self.metadata.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetObjectMediaResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetObjectMediaResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct InsertObjectSpec { - // message fields - pub resource: ::protobuf::SingularPtrField, - pub predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub projection: super::storage_resources::CommonEnums_Projection, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InsertObjectSpec { - fn default() -> &'a InsertObjectSpec { - ::default_instance() - } -} - -impl InsertObjectSpec { - pub fn new() -> InsertObjectSpec { - ::std::default::Default::default() - } - - // .google.storage.v1.Object resource = 1; - - - pub fn get_resource(&self) -> &super::storage_resources::Object { - self.resource.as_ref().unwrap_or_else(|| ::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: super::storage_resources::Object) { - 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 super::storage_resources::Object { - if self.resource.is_none() { - self.resource.set_default(); - } - self.resource.as_mut().unwrap() - } - - // Take field - pub fn take_resource(&mut self) -> super::storage_resources::Object { - self.resource.take().unwrap_or_else(|| super::storage_resources::Object::new()) - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_acl = 2; - - - pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.predefined_acl - } - pub fn clear_predefined_acl(&mut self) { - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.predefined_acl = v; - } - - // .google.protobuf.Int64Value if_generation_match = 3; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_generation_not_match = 4; - - - pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_not_match(&mut self) { - self.if_generation_not_match.clear(); - } - - pub fn has_if_generation_not_match(&self) -> bool { - self.if_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_not_match.is_none() { - self.if_generation_not_match.set_default(); - } - self.if_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 5; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 6; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonEnums.Projection projection = 7; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } -} - -impl ::protobuf::Message for InsertObjectSpec { - fn is_initialized(&self) -> bool { - for v in &self.resource { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::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.resource)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 7 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 7, &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 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.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.predefined_acl); - } - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(7, self.projection); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_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.resource.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; - } - if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> InsertObjectSpec { - InsertObjectSpec::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "resource", - |m: &InsertObjectSpec| { &m.resource }, - |m: &mut InsertObjectSpec| { &mut m.resource }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "predefined_acl", - |m: &InsertObjectSpec| { &m.predefined_acl }, - |m: &mut InsertObjectSpec| { &mut m.predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &InsertObjectSpec| { &m.if_generation_match }, - |m: &mut InsertObjectSpec| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_not_match", - |m: &InsertObjectSpec| { &m.if_generation_not_match }, - |m: &mut InsertObjectSpec| { &mut m.if_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &InsertObjectSpec| { &m.if_metageneration_match }, - |m: &mut InsertObjectSpec| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &InsertObjectSpec| { &m.if_metageneration_not_match }, - |m: &mut InsertObjectSpec| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &InsertObjectSpec| { &m.projection }, - |m: &mut InsertObjectSpec| { &mut m.projection }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InsertObjectSpec", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InsertObjectSpec { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InsertObjectSpec::new) - } -} - -impl ::protobuf::Clear for InsertObjectSpec { - fn clear(&mut self) { - self.resource.clear(); - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.if_generation_match.clear(); - self.if_generation_not_match.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InsertObjectSpec { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InsertObjectSpec { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct InsertObjectRequest { - // message fields - pub write_offset: i64, - pub object_checksums: ::protobuf::SingularPtrField, - pub finish_write: bool, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // message oneof groups - pub first_message: ::std::option::Option, - pub data: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InsertObjectRequest { - fn default() -> &'a InsertObjectRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum InsertObjectRequest_oneof_first_message { - upload_id(::std::string::String), - insert_object_spec(InsertObjectSpec), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum InsertObjectRequest_oneof_data { - checksummed_data(super::storage_resources::ChecksummedData), - reference(GetObjectMediaRequest), -} - -impl InsertObjectRequest { - pub fn new() -> InsertObjectRequest { - ::std::default::Default::default() - } - - // string upload_id = 1; - - - pub fn get_upload_id(&self) -> &str { - match self.first_message { - ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(ref v)) => v, - _ => "", - } - } - pub fn clear_upload_id(&mut self) { - self.first_message = ::std::option::Option::None; - } - - pub fn has_upload_id(&self) -> bool { - match self.first_message { - ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_upload_id(&mut self, v: ::std::string::String) { - self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(v)) - } - - // Mutable pointer to the field. - pub fn mut_upload_id(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(_)) = self.first_message { - } else { - self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(::std::string::String::new())); - } - match self.first_message { - ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_upload_id(&mut self) -> ::std::string::String { - if self.has_upload_id() { - match self.first_message.take() { - ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.storage.v1.InsertObjectSpec insert_object_spec = 2; - - - pub fn get_insert_object_spec(&self) -> &InsertObjectSpec { - match self.first_message { - ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_insert_object_spec(&mut self) { - self.first_message = ::std::option::Option::None; - } - - pub fn has_insert_object_spec(&self) -> bool { - match self.first_message { - ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_insert_object_spec(&mut self, v: InsertObjectSpec) { - self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(v)) - } - - // Mutable pointer to the field. - pub fn mut_insert_object_spec(&mut self) -> &mut InsertObjectSpec { - if let ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(_)) = self.first_message { - } else { - self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(InsertObjectSpec::new())); - } - match self.first_message { - ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_insert_object_spec(&mut self) -> InsertObjectSpec { - if self.has_insert_object_spec() { - match self.first_message.take() { - ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(v)) => v, - _ => panic!(), - } - } else { - InsertObjectSpec::new() - } - } - - // int64 write_offset = 3; - - - pub fn get_write_offset(&self) -> i64 { - self.write_offset - } - pub fn clear_write_offset(&mut self) { - self.write_offset = 0; - } - - // Param is passed by value, moved - pub fn set_write_offset(&mut self, v: i64) { - self.write_offset = v; - } - - // .google.storage.v1.ChecksummedData checksummed_data = 4; - - - pub fn get_checksummed_data(&self) -> &super::storage_resources::ChecksummedData { - match self.data { - ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_checksummed_data(&mut self) { - self.data = ::std::option::Option::None; - } - - pub fn has_checksummed_data(&self) -> bool { - match self.data { - ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_checksummed_data(&mut self, v: super::storage_resources::ChecksummedData) { - self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(v)) - } - - // Mutable pointer to the field. - pub fn mut_checksummed_data(&mut self) -> &mut super::storage_resources::ChecksummedData { - if let ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(_)) = self.data { - } else { - self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(super::storage_resources::ChecksummedData::new())); - } - match self.data { - ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_checksummed_data(&mut self) -> super::storage_resources::ChecksummedData { - if self.has_checksummed_data() { - match self.data.take() { - ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(v)) => v, - _ => panic!(), - } - } else { - super::storage_resources::ChecksummedData::new() - } - } - - // .google.storage.v1.GetObjectMediaRequest reference = 5; - - - pub fn get_reference(&self) -> &GetObjectMediaRequest { - match self.data { - ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_reference(&mut self) { - self.data = ::std::option::Option::None; - } - - pub fn has_reference(&self) -> bool { - match self.data { - ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_reference(&mut self, v: GetObjectMediaRequest) { - self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(v)) - } - - // Mutable pointer to the field. - pub fn mut_reference(&mut self) -> &mut GetObjectMediaRequest { - if let ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(_)) = self.data { - } else { - self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(GetObjectMediaRequest::new())); - } - match self.data { - ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_reference(&mut self) -> GetObjectMediaRequest { - if self.has_reference() { - match self.data.take() { - ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(v)) => v, - _ => panic!(), - } - } else { - GetObjectMediaRequest::new() - } - } - - // .google.storage.v1.ObjectChecksums object_checksums = 6; - - - pub fn get_object_checksums(&self) -> &super::storage_resources::ObjectChecksums { - self.object_checksums.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object_checksums(&mut self) { - self.object_checksums.clear(); - } - - pub fn has_object_checksums(&self) -> bool { - self.object_checksums.is_some() - } - - // Param is passed by value, moved - pub fn set_object_checksums(&mut self, v: super::storage_resources::ObjectChecksums) { - self.object_checksums = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object_checksums(&mut self) -> &mut super::storage_resources::ObjectChecksums { - if self.object_checksums.is_none() { - self.object_checksums.set_default(); - } - self.object_checksums.as_mut().unwrap() - } - - // Take field - pub fn take_object_checksums(&mut self) -> super::storage_resources::ObjectChecksums { - self.object_checksums.take().unwrap_or_else(|| super::storage_resources::ObjectChecksums::new()) - } - - // bool finish_write = 7; - - - pub fn get_finish_write(&self) -> bool { - self.finish_write - } - pub fn clear_finish_write(&mut self) { - self.finish_write = false; - } - - // Param is passed by value, moved - pub fn set_finish_write(&mut self, v: bool) { - self.finish_write = v; - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 8; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 9; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for InsertObjectRequest { - fn is_initialized(&self) -> bool { - if let Some(InsertObjectRequest_oneof_first_message::insert_object_spec(ref v)) = self.first_message { - if !v.is_initialized() { - return false; - } - } - if let Some(InsertObjectRequest_oneof_data::checksummed_data(ref v)) = self.data { - if !v.is_initialized() { - return false; - } - } - if let Some(InsertObjectRequest_oneof_data::reference(ref v)) = self.data { - if !v.is_initialized() { - return false; - } - } - for v in &self.object_checksums { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_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.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(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_int64()?; - self.write_offset = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(is.read_message()?)); - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_checksums)?; - }, - 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.finish_write = tmp; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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_offset != 0 { - my_size += ::protobuf::rt::value_size(3, self.write_offset, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.object_checksums.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.finish_write != false { - my_size += 2; - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.first_message { - match v { - &InsertObjectRequest_oneof_first_message::upload_id(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &InsertObjectRequest_oneof_first_message::insert_object_spec(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.data { - match v { - &InsertObjectRequest_oneof_data::checksummed_data(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &InsertObjectRequest_oneof_data::reference(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.write_offset != 0 { - os.write_int64(3, self.write_offset)?; - } - if let Some(ref v) = self.object_checksums.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.finish_write != false { - os.write_bool(7, self.finish_write)?; - } - if let Some(ref v) = self.common_object_request_params.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.common_request_params.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.first_message { - match v { - &InsertObjectRequest_oneof_first_message::upload_id(ref v) => { - os.write_string(1, v)?; - }, - &InsertObjectRequest_oneof_first_message::insert_object_spec(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 let ::std::option::Option::Some(ref v) = self.data { - match v { - &InsertObjectRequest_oneof_data::checksummed_data(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)?; - }, - &InsertObjectRequest_oneof_data::reference(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() -> InsertObjectRequest { - InsertObjectRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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::<_>( - "upload_id", - InsertObjectRequest::has_upload_id, - InsertObjectRequest::get_upload_id, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, InsertObjectSpec>( - "insert_object_spec", - InsertObjectRequest::has_insert_object_spec, - InsertObjectRequest::get_insert_object_spec, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "write_offset", - |m: &InsertObjectRequest| { &m.write_offset }, - |m: &mut InsertObjectRequest| { &mut m.write_offset }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::storage_resources::ChecksummedData>( - "checksummed_data", - InsertObjectRequest::has_checksummed_data, - InsertObjectRequest::get_checksummed_data, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, GetObjectMediaRequest>( - "reference", - InsertObjectRequest::has_reference, - InsertObjectRequest::get_reference, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object_checksums", - |m: &InsertObjectRequest| { &m.object_checksums }, - |m: &mut InsertObjectRequest| { &mut m.object_checksums }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "finish_write", - |m: &InsertObjectRequest| { &m.finish_write }, - |m: &mut InsertObjectRequest| { &mut m.finish_write }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &InsertObjectRequest| { &m.common_object_request_params }, - |m: &mut InsertObjectRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &InsertObjectRequest| { &m.common_request_params }, - |m: &mut InsertObjectRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InsertObjectRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InsertObjectRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InsertObjectRequest::new) - } -} - -impl ::protobuf::Clear for InsertObjectRequest { - fn clear(&mut self) { - self.first_message = ::std::option::Option::None; - self.first_message = ::std::option::Option::None; - self.write_offset = 0; - self.data = ::std::option::Option::None; - self.data = ::std::option::Option::None; - self.object_checksums.clear(); - self.finish_write = false; - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InsertObjectRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InsertObjectRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListObjectsRequest { - // message fields - pub bucket: ::std::string::String, - pub delimiter: ::std::string::String, - pub include_trailing_delimiter: bool, - pub max_results: i32, - pub page_token: ::std::string::String, - pub prefix: ::std::string::String, - pub projection: super::storage_resources::CommonEnums_Projection, - pub versions: bool, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListObjectsRequest { - fn default() -> &'a ListObjectsRequest { - ::default_instance() - } -} - -impl ListObjectsRequest { - pub fn new() -> ListObjectsRequest { - ::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 delimiter = 2; - - - pub fn get_delimiter(&self) -> &str { - &self.delimiter - } - pub fn clear_delimiter(&mut self) { - self.delimiter.clear(); - } - - // Param is passed by value, moved - pub fn set_delimiter(&mut self, v: ::std::string::String) { - self.delimiter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_delimiter(&mut self) -> &mut ::std::string::String { - &mut self.delimiter - } - - // Take field - pub fn take_delimiter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.delimiter, ::std::string::String::new()) - } - - // bool include_trailing_delimiter = 3; - - - pub fn get_include_trailing_delimiter(&self) -> bool { - self.include_trailing_delimiter - } - pub fn clear_include_trailing_delimiter(&mut self) { - self.include_trailing_delimiter = false; - } - - // Param is passed by value, moved - pub fn set_include_trailing_delimiter(&mut self, v: bool) { - self.include_trailing_delimiter = v; - } - - // int32 max_results = 4; - - - pub fn get_max_results(&self) -> i32 { - self.max_results - } - pub fn clear_max_results(&mut self) { - self.max_results = 0; - } - - // Param is passed by value, moved - pub fn set_max_results(&mut self, v: i32) { - self.max_results = 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 prefix = 6; - - - pub fn get_prefix(&self) -> &str { - &self.prefix - } - pub fn clear_prefix(&mut self) { - self.prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_prefix(&mut self, v: ::std::string::String) { - self.prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_prefix(&mut self) -> &mut ::std::string::String { - &mut self.prefix - } - - // Take field - pub fn take_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.prefix, ::std::string::String::new()) - } - - // .google.storage.v1.CommonEnums.Projection projection = 7; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // bool versions = 9; - - - pub fn get_versions(&self) -> bool { - self.versions - } - pub fn clear_versions(&mut self) { - self.versions = false; - } - - // Param is passed by value, moved - pub fn set_versions(&mut self, v: bool) { - self.versions = v; - } - - // .google.storage.v1.CommonRequestParams common_request_params = 10; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ListObjectsRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.delimiter)?; - }, - 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.include_trailing_delimiter = 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.max_results = 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.prefix)?; - }, - 7 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 7, &mut self.unknown_fields)? - }, - 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.versions = tmp; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.delimiter.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.delimiter); - } - if self.include_trailing_delimiter != false { - my_size += 2; - } - if self.max_results != 0 { - my_size += ::protobuf::rt::value_size(4, self.max_results, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.page_token); - } - if !self.prefix.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.prefix); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(7, self.projection); - } - if self.versions != false { - my_size += 2; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.delimiter.is_empty() { - os.write_string(2, &self.delimiter)?; - } - if self.include_trailing_delimiter != false { - os.write_bool(3, self.include_trailing_delimiter)?; - } - if self.max_results != 0 { - os.write_int32(4, self.max_results)?; - } - if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; - } - if !self.prefix.is_empty() { - os.write_string(6, &self.prefix)?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if self.versions != false { - os.write_bool(9, self.versions)?; - } - if let Some(ref v) = self.common_request_params.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() -> ListObjectsRequest { - ListObjectsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListObjectsRequest| { &m.bucket }, - |m: &mut ListObjectsRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "delimiter", - |m: &ListObjectsRequest| { &m.delimiter }, - |m: &mut ListObjectsRequest| { &mut m.delimiter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "include_trailing_delimiter", - |m: &ListObjectsRequest| { &m.include_trailing_delimiter }, - |m: &mut ListObjectsRequest| { &mut m.include_trailing_delimiter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "max_results", - |m: &ListObjectsRequest| { &m.max_results }, - |m: &mut ListObjectsRequest| { &mut m.max_results }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListObjectsRequest| { &m.page_token }, - |m: &mut ListObjectsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "prefix", - |m: &ListObjectsRequest| { &m.prefix }, - |m: &mut ListObjectsRequest| { &mut m.prefix }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &ListObjectsRequest| { &m.projection }, - |m: &mut ListObjectsRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "versions", - |m: &ListObjectsRequest| { &m.versions }, - |m: &mut ListObjectsRequest| { &mut m.versions }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ListObjectsRequest| { &m.common_request_params }, - |m: &mut ListObjectsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListObjectsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListObjectsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListObjectsRequest::new) - } -} - -impl ::protobuf::Clear for ListObjectsRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.delimiter.clear(); - self.include_trailing_delimiter = false; - self.max_results = 0; - self.page_token.clear(); - self.prefix.clear(); - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.versions = false; - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListObjectsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListObjectsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QueryWriteStatusRequest { - // message fields - pub upload_id: ::std::string::String, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QueryWriteStatusRequest { - fn default() -> &'a QueryWriteStatusRequest { - ::default_instance() - } -} - -impl QueryWriteStatusRequest { - pub fn new() -> QueryWriteStatusRequest { - ::std::default::Default::default() - } - - // string upload_id = 1; - - - pub fn get_upload_id(&self) -> &str { - &self.upload_id - } - pub fn clear_upload_id(&mut self) { - self.upload_id.clear(); - } - - // Param is passed by value, moved - pub fn set_upload_id(&mut self, v: ::std::string::String) { - self.upload_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_upload_id(&mut self) -> &mut ::std::string::String { - &mut self.upload_id - } - - // Take field - pub fn take_upload_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.upload_id, ::std::string::String::new()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 2; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 3; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for QueryWriteStatusRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.upload_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.upload_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.upload_id); - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.upload_id.is_empty() { - os.write_string(1, &self.upload_id)?; - } - if let Some(ref v) = self.common_object_request_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)?; - } - if let Some(ref v) = self.common_request_params.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() -> QueryWriteStatusRequest { - QueryWriteStatusRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "upload_id", - |m: &QueryWriteStatusRequest| { &m.upload_id }, - |m: &mut QueryWriteStatusRequest| { &mut m.upload_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &QueryWriteStatusRequest| { &m.common_object_request_params }, - |m: &mut QueryWriteStatusRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &QueryWriteStatusRequest| { &m.common_request_params }, - |m: &mut QueryWriteStatusRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QueryWriteStatusRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QueryWriteStatusRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QueryWriteStatusRequest::new) - } -} - -impl ::protobuf::Clear for QueryWriteStatusRequest { - fn clear(&mut self) { - self.upload_id.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for QueryWriteStatusRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for QueryWriteStatusRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QueryWriteStatusResponse { - // message fields - pub committed_size: i64, - pub complete: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QueryWriteStatusResponse { - fn default() -> &'a QueryWriteStatusResponse { - ::default_instance() - } -} - -impl QueryWriteStatusResponse { - pub fn new() -> QueryWriteStatusResponse { - ::std::default::Default::default() - } - - // int64 committed_size = 1; - - - pub fn get_committed_size(&self) -> i64 { - self.committed_size - } - pub fn clear_committed_size(&mut self) { - self.committed_size = 0; - } - - // Param is passed by value, moved - pub fn set_committed_size(&mut self, v: i64) { - self.committed_size = v; - } - - // bool complete = 2; - - - pub fn get_complete(&self) -> bool { - self.complete - } - pub fn clear_complete(&mut self) { - self.complete = false; - } - - // Param is passed by value, moved - pub fn set_complete(&mut self, v: bool) { - self.complete = v; - } -} - -impl ::protobuf::Message for QueryWriteStatusResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&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.committed_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_bool()?; - self.complete = 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.committed_size != 0 { - my_size += ::protobuf::rt::value_size(1, self.committed_size, ::protobuf::wire_format::WireTypeVarint); - } - if self.complete != 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.committed_size != 0 { - os.write_int64(1, self.committed_size)?; - } - if self.complete != false { - os.write_bool(2, self.complete)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> QueryWriteStatusResponse { - QueryWriteStatusResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( - "committed_size", - |m: &QueryWriteStatusResponse| { &m.committed_size }, - |m: &mut QueryWriteStatusResponse| { &mut m.committed_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "complete", - |m: &QueryWriteStatusResponse| { &m.complete }, - |m: &mut QueryWriteStatusResponse| { &mut m.complete }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QueryWriteStatusResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QueryWriteStatusResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QueryWriteStatusResponse::new) - } -} - -impl ::protobuf::Clear for QueryWriteStatusResponse { - fn clear(&mut self) { - self.committed_size = 0; - self.complete = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for QueryWriteStatusResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for QueryWriteStatusResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RewriteObjectRequest { - // message fields - pub destination_bucket: ::std::string::String, - pub destination_object: ::std::string::String, - pub destination_kms_key_name: ::std::string::String, - pub destination_predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_source_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_source_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_source_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_source_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub max_bytes_rewritten_per_call: i64, - pub projection: super::storage_resources::CommonEnums_Projection, - pub rewrite_token: ::std::string::String, - pub source_bucket: ::std::string::String, - pub source_object: ::std::string::String, - pub source_generation: i64, - pub object: ::protobuf::SingularPtrField, - pub copy_source_encryption_algorithm: ::std::string::String, - pub copy_source_encryption_key: ::std::string::String, - pub copy_source_encryption_key_sha256: ::std::string::String, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RewriteObjectRequest { - fn default() -> &'a RewriteObjectRequest { - ::default_instance() - } -} - -impl RewriteObjectRequest { - pub fn new() -> RewriteObjectRequest { - ::std::default::Default::default() - } - - // string destination_bucket = 1; - - - pub fn get_destination_bucket(&self) -> &str { - &self.destination_bucket - } - pub fn clear_destination_bucket(&mut self) { - self.destination_bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_bucket(&mut self, v: ::std::string::String) { - self.destination_bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_bucket(&mut self) -> &mut ::std::string::String { - &mut self.destination_bucket - } - - // Take field - pub fn take_destination_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_bucket, ::std::string::String::new()) - } - - // string destination_object = 2; - - - pub fn get_destination_object(&self) -> &str { - &self.destination_object - } - pub fn clear_destination_object(&mut self) { - self.destination_object.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_object(&mut self, v: ::std::string::String) { - self.destination_object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_object(&mut self) -> &mut ::std::string::String { - &mut self.destination_object - } - - // Take field - pub fn take_destination_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_object, ::std::string::String::new()) - } - - // string destination_kms_key_name = 3; - - - pub fn get_destination_kms_key_name(&self) -> &str { - &self.destination_kms_key_name - } - pub fn clear_destination_kms_key_name(&mut self) { - self.destination_kms_key_name.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_kms_key_name(&mut self, v: ::std::string::String) { - self.destination_kms_key_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.destination_kms_key_name - } - - // Take field - pub fn take_destination_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_kms_key_name, ::std::string::String::new()) - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl destination_predefined_acl = 4; - - - pub fn get_destination_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.destination_predefined_acl - } - pub fn clear_destination_predefined_acl(&mut self) { - self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_destination_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.destination_predefined_acl = v; - } - - // .google.protobuf.Int64Value if_generation_match = 5; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_generation_not_match = 6; - - - pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_not_match(&mut self) { - self.if_generation_not_match.clear(); - } - - pub fn has_if_generation_not_match(&self) -> bool { - self.if_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_not_match.is_none() { - self.if_generation_not_match.set_default(); - } - self.if_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 7; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 8; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_source_generation_match = 9; - - - pub fn get_if_source_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_source_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_source_generation_match(&mut self) { - self.if_source_generation_match.clear(); - } - - pub fn has_if_source_generation_match(&self) -> bool { - self.if_source_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_source_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_source_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_source_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_source_generation_match.is_none() { - self.if_source_generation_match.set_default(); - } - self.if_source_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_source_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_source_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_source_generation_not_match = 10; - - - pub fn get_if_source_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_source_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_source_generation_not_match(&mut self) { - self.if_source_generation_not_match.clear(); - } - - pub fn has_if_source_generation_not_match(&self) -> bool { - self.if_source_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_source_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_source_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_source_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_source_generation_not_match.is_none() { - self.if_source_generation_not_match.set_default(); - } - self.if_source_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_source_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_source_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_source_metageneration_match = 11; - - - pub fn get_if_source_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_source_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_source_metageneration_match(&mut self) { - self.if_source_metageneration_match.clear(); - } - - pub fn has_if_source_metageneration_match(&self) -> bool { - self.if_source_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_source_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_source_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_source_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_source_metageneration_match.is_none() { - self.if_source_metageneration_match.set_default(); - } - self.if_source_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_source_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_source_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_source_metageneration_not_match = 12; - - - pub fn get_if_source_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_source_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_source_metageneration_not_match(&mut self) { - self.if_source_metageneration_not_match.clear(); - } - - pub fn has_if_source_metageneration_not_match(&self) -> bool { - self.if_source_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_source_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_source_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_source_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_source_metageneration_not_match.is_none() { - self.if_source_metageneration_not_match.set_default(); - } - self.if_source_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_source_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_source_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // int64 max_bytes_rewritten_per_call = 13; - - - pub fn get_max_bytes_rewritten_per_call(&self) -> i64 { - self.max_bytes_rewritten_per_call - } - pub fn clear_max_bytes_rewritten_per_call(&mut self) { - self.max_bytes_rewritten_per_call = 0; - } - - // Param is passed by value, moved - pub fn set_max_bytes_rewritten_per_call(&mut self, v: i64) { - self.max_bytes_rewritten_per_call = v; - } - - // .google.storage.v1.CommonEnums.Projection projection = 14; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // string rewrite_token = 15; - - - pub fn get_rewrite_token(&self) -> &str { - &self.rewrite_token - } - pub fn clear_rewrite_token(&mut self) { - self.rewrite_token.clear(); - } - - // Param is passed by value, moved - pub fn set_rewrite_token(&mut self, v: ::std::string::String) { - self.rewrite_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rewrite_token(&mut self) -> &mut ::std::string::String { - &mut self.rewrite_token - } - - // Take field - pub fn take_rewrite_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.rewrite_token, ::std::string::String::new()) - } - - // string source_bucket = 16; - - - pub fn get_source_bucket(&self) -> &str { - &self.source_bucket - } - pub fn clear_source_bucket(&mut self) { - self.source_bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_source_bucket(&mut self, v: ::std::string::String) { - self.source_bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_bucket(&mut self) -> &mut ::std::string::String { - &mut self.source_bucket - } - - // Take field - pub fn take_source_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_bucket, ::std::string::String::new()) - } - - // string source_object = 17; - - - pub fn get_source_object(&self) -> &str { - &self.source_object - } - pub fn clear_source_object(&mut self) { - self.source_object.clear(); - } - - // Param is passed by value, moved - pub fn set_source_object(&mut self, v: ::std::string::String) { - self.source_object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_object(&mut self) -> &mut ::std::string::String { - &mut self.source_object - } - - // Take field - pub fn take_source_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_object, ::std::string::String::new()) - } - - // int64 source_generation = 18; - - - pub fn get_source_generation(&self) -> i64 { - self.source_generation - } - pub fn clear_source_generation(&mut self) { - self.source_generation = 0; - } - - // Param is passed by value, moved - pub fn set_source_generation(&mut self, v: i64) { - self.source_generation = v; - } - - // .google.storage.v1.Object object = 20; - - - pub fn get_object(&self) -> &super::storage_resources::Object { - self.object.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_object(&mut self) { - self.object.clear(); - } - - pub fn has_object(&self) -> bool { - self.object.is_some() - } - - // Param is passed by value, moved - pub fn set_object(&mut self, v: super::storage_resources::Object) { - self.object = ::protobuf::SingularPtrField::some(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 super::storage_resources::Object { - if self.object.is_none() { - self.object.set_default(); - } - self.object.as_mut().unwrap() - } - - // Take field - pub fn take_object(&mut self) -> super::storage_resources::Object { - self.object.take().unwrap_or_else(|| super::storage_resources::Object::new()) - } - - // string copy_source_encryption_algorithm = 21; - - - pub fn get_copy_source_encryption_algorithm(&self) -> &str { - &self.copy_source_encryption_algorithm - } - pub fn clear_copy_source_encryption_algorithm(&mut self) { - self.copy_source_encryption_algorithm.clear(); - } - - // Param is passed by value, moved - pub fn set_copy_source_encryption_algorithm(&mut self, v: ::std::string::String) { - self.copy_source_encryption_algorithm = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_copy_source_encryption_algorithm(&mut self) -> &mut ::std::string::String { - &mut self.copy_source_encryption_algorithm - } - - // Take field - pub fn take_copy_source_encryption_algorithm(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.copy_source_encryption_algorithm, ::std::string::String::new()) - } - - // string copy_source_encryption_key = 22; - - - pub fn get_copy_source_encryption_key(&self) -> &str { - &self.copy_source_encryption_key - } - pub fn clear_copy_source_encryption_key(&mut self) { - self.copy_source_encryption_key.clear(); - } - - // Param is passed by value, moved - pub fn set_copy_source_encryption_key(&mut self, v: ::std::string::String) { - self.copy_source_encryption_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_copy_source_encryption_key(&mut self) -> &mut ::std::string::String { - &mut self.copy_source_encryption_key - } - - // Take field - pub fn take_copy_source_encryption_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.copy_source_encryption_key, ::std::string::String::new()) - } - - // string copy_source_encryption_key_sha256 = 23; - - - pub fn get_copy_source_encryption_key_sha256(&self) -> &str { - &self.copy_source_encryption_key_sha256 - } - pub fn clear_copy_source_encryption_key_sha256(&mut self) { - self.copy_source_encryption_key_sha256.clear(); - } - - // Param is passed by value, moved - pub fn set_copy_source_encryption_key_sha256(&mut self, v: ::std::string::String) { - self.copy_source_encryption_key_sha256 = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_copy_source_encryption_key_sha256(&mut self) -> &mut ::std::string::String { - &mut self.copy_source_encryption_key_sha256 - } - - // Take field - pub fn take_copy_source_encryption_key_sha256(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.copy_source_encryption_key_sha256, ::std::string::String::new()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 24; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 25; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for RewriteObjectRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_source_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_source_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_source_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_source_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.object { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.destination_bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_object)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_kms_key_name)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.destination_predefined_acl, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_generation_match)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_generation_not_match)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_metageneration_match)?; - }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_metageneration_not_match)?; - }, - 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.max_bytes_rewritten_per_call = tmp; - }, - 14 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 14, &mut self.unknown_fields)? - }, - 15 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.rewrite_token)?; - }, - 16 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_bucket)?; - }, - 17 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_object)?; - }, - 18 => { - 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.source_generation = tmp; - }, - 20 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object)?; - }, - 21 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.copy_source_encryption_algorithm)?; - }, - 22 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.copy_source_encryption_key)?; - }, - 23 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.copy_source_encryption_key_sha256)?; - }, - 24 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 25 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.destination_bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.destination_bucket); - } - if !self.destination_object.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.destination_object); - } - if !self.destination_kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.destination_kms_key_name); - } - if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.destination_predefined_acl); - } - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_source_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_source_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_source_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_source_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.max_bytes_rewritten_per_call != 0 { - my_size += ::protobuf::rt::value_size(13, self.max_bytes_rewritten_per_call, ::protobuf::wire_format::WireTypeVarint); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(14, self.projection); - } - if !self.rewrite_token.is_empty() { - my_size += ::protobuf::rt::string_size(15, &self.rewrite_token); - } - if !self.source_bucket.is_empty() { - my_size += ::protobuf::rt::string_size(16, &self.source_bucket); - } - if !self.source_object.is_empty() { - my_size += ::protobuf::rt::string_size(17, &self.source_object); - } - if self.source_generation != 0 { - my_size += ::protobuf::rt::value_size(18, self.source_generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.object.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.copy_source_encryption_algorithm.is_empty() { - my_size += ::protobuf::rt::string_size(21, &self.copy_source_encryption_algorithm); - } - if !self.copy_source_encryption_key.is_empty() { - my_size += ::protobuf::rt::string_size(22, &self.copy_source_encryption_key); - } - if !self.copy_source_encryption_key_sha256.is_empty() { - my_size += ::protobuf::rt::string_size(23, &self.copy_source_encryption_key_sha256); - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.destination_bucket.is_empty() { - os.write_string(1, &self.destination_bucket)?; - } - if !self.destination_object.is_empty() { - os.write_string(2, &self.destination_object)?; - } - if !self.destination_kms_key_name.is_empty() { - os.write_string(3, &self.destination_kms_key_name)?; - } - if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.destination_predefined_acl))?; - } - if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.if_source_generation_match.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.if_source_generation_not_match.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.if_source_metageneration_match.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.if_source_metageneration_not_match.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.max_bytes_rewritten_per_call != 0 { - os.write_int64(13, self.max_bytes_rewritten_per_call)?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(14, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if !self.rewrite_token.is_empty() { - os.write_string(15, &self.rewrite_token)?; - } - if !self.source_bucket.is_empty() { - os.write_string(16, &self.source_bucket)?; - } - if !self.source_object.is_empty() { - os.write_string(17, &self.source_object)?; - } - if self.source_generation != 0 { - os.write_int64(18, self.source_generation)?; - } - if let Some(ref v) = self.object.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)?; - } - if !self.copy_source_encryption_algorithm.is_empty() { - os.write_string(21, &self.copy_source_encryption_algorithm)?; - } - if !self.copy_source_encryption_key.is_empty() { - os.write_string(22, &self.copy_source_encryption_key)?; - } - if !self.copy_source_encryption_key_sha256.is_empty() { - os.write_string(23, &self.copy_source_encryption_key_sha256)?; - } - if let Some(ref v) = self.common_object_request_params.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.common_request_params.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RewriteObjectRequest { - RewriteObjectRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_bucket", - |m: &RewriteObjectRequest| { &m.destination_bucket }, - |m: &mut RewriteObjectRequest| { &mut m.destination_bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_object", - |m: &RewriteObjectRequest| { &m.destination_object }, - |m: &mut RewriteObjectRequest| { &mut m.destination_object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_kms_key_name", - |m: &RewriteObjectRequest| { &m.destination_kms_key_name }, - |m: &mut RewriteObjectRequest| { &mut m.destination_kms_key_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "destination_predefined_acl", - |m: &RewriteObjectRequest| { &m.destination_predefined_acl }, - |m: &mut RewriteObjectRequest| { &mut m.destination_predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &RewriteObjectRequest| { &m.if_generation_match }, - |m: &mut RewriteObjectRequest| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_not_match", - |m: &RewriteObjectRequest| { &m.if_generation_not_match }, - |m: &mut RewriteObjectRequest| { &mut m.if_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &RewriteObjectRequest| { &m.if_metageneration_match }, - |m: &mut RewriteObjectRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &RewriteObjectRequest| { &m.if_metageneration_not_match }, - |m: &mut RewriteObjectRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_source_generation_match", - |m: &RewriteObjectRequest| { &m.if_source_generation_match }, - |m: &mut RewriteObjectRequest| { &mut m.if_source_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_source_generation_not_match", - |m: &RewriteObjectRequest| { &m.if_source_generation_not_match }, - |m: &mut RewriteObjectRequest| { &mut m.if_source_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_source_metageneration_match", - |m: &RewriteObjectRequest| { &m.if_source_metageneration_match }, - |m: &mut RewriteObjectRequest| { &mut m.if_source_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_source_metageneration_not_match", - |m: &RewriteObjectRequest| { &m.if_source_metageneration_not_match }, - |m: &mut RewriteObjectRequest| { &mut m.if_source_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "max_bytes_rewritten_per_call", - |m: &RewriteObjectRequest| { &m.max_bytes_rewritten_per_call }, - |m: &mut RewriteObjectRequest| { &mut m.max_bytes_rewritten_per_call }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &RewriteObjectRequest| { &m.projection }, - |m: &mut RewriteObjectRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "rewrite_token", - |m: &RewriteObjectRequest| { &m.rewrite_token }, - |m: &mut RewriteObjectRequest| { &mut m.rewrite_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_bucket", - |m: &RewriteObjectRequest| { &m.source_bucket }, - |m: &mut RewriteObjectRequest| { &mut m.source_bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_object", - |m: &RewriteObjectRequest| { &m.source_object }, - |m: &mut RewriteObjectRequest| { &mut m.source_object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "source_generation", - |m: &RewriteObjectRequest| { &m.source_generation }, - |m: &mut RewriteObjectRequest| { &mut m.source_generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "object", - |m: &RewriteObjectRequest| { &m.object }, - |m: &mut RewriteObjectRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "copy_source_encryption_algorithm", - |m: &RewriteObjectRequest| { &m.copy_source_encryption_algorithm }, - |m: &mut RewriteObjectRequest| { &mut m.copy_source_encryption_algorithm }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "copy_source_encryption_key", - |m: &RewriteObjectRequest| { &m.copy_source_encryption_key }, - |m: &mut RewriteObjectRequest| { &mut m.copy_source_encryption_key }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "copy_source_encryption_key_sha256", - |m: &RewriteObjectRequest| { &m.copy_source_encryption_key_sha256 }, - |m: &mut RewriteObjectRequest| { &mut m.copy_source_encryption_key_sha256 }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &RewriteObjectRequest| { &m.common_object_request_params }, - |m: &mut RewriteObjectRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &RewriteObjectRequest| { &m.common_request_params }, - |m: &mut RewriteObjectRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RewriteObjectRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RewriteObjectRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RewriteObjectRequest::new) - } -} - -impl ::protobuf::Clear for RewriteObjectRequest { - fn clear(&mut self) { - self.destination_bucket.clear(); - self.destination_object.clear(); - self.destination_kms_key_name.clear(); - self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.if_generation_match.clear(); - self.if_generation_not_match.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.if_source_generation_match.clear(); - self.if_source_generation_not_match.clear(); - self.if_source_metageneration_match.clear(); - self.if_source_metageneration_not_match.clear(); - self.max_bytes_rewritten_per_call = 0; - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.rewrite_token.clear(); - self.source_bucket.clear(); - self.source_object.clear(); - self.source_generation = 0; - self.object.clear(); - self.copy_source_encryption_algorithm.clear(); - self.copy_source_encryption_key.clear(); - self.copy_source_encryption_key_sha256.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RewriteObjectRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RewriteObjectRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RewriteResponse { - // message fields - pub total_bytes_rewritten: i64, - pub object_size: i64, - pub done: bool, - pub rewrite_token: ::std::string::String, - pub resource: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RewriteResponse { - fn default() -> &'a RewriteResponse { - ::default_instance() - } -} - -impl RewriteResponse { - pub fn new() -> RewriteResponse { - ::std::default::Default::default() - } - - // int64 total_bytes_rewritten = 1; - - - pub fn get_total_bytes_rewritten(&self) -> i64 { - self.total_bytes_rewritten - } - pub fn clear_total_bytes_rewritten(&mut self) { - self.total_bytes_rewritten = 0; - } - - // Param is passed by value, moved - pub fn set_total_bytes_rewritten(&mut self, v: i64) { - self.total_bytes_rewritten = v; - } - - // int64 object_size = 2; - - - pub fn get_object_size(&self) -> i64 { - self.object_size - } - pub fn clear_object_size(&mut self) { - self.object_size = 0; - } - - // Param is passed by value, moved - pub fn set_object_size(&mut self, v: i64) { - self.object_size = v; - } - - // 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; - } - - // string rewrite_token = 4; - - - pub fn get_rewrite_token(&self) -> &str { - &self.rewrite_token - } - pub fn clear_rewrite_token(&mut self) { - self.rewrite_token.clear(); - } - - // Param is passed by value, moved - pub fn set_rewrite_token(&mut self, v: ::std::string::String) { - self.rewrite_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rewrite_token(&mut self) -> &mut ::std::string::String { - &mut self.rewrite_token - } - - // Take field - pub fn take_rewrite_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.rewrite_token, ::std::string::String::new()) - } - - // .google.storage.v1.Object resource = 5; - - - pub fn get_resource(&self) -> &super::storage_resources::Object { - self.resource.as_ref().unwrap_or_else(|| ::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: super::storage_resources::Object) { - 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 super::storage_resources::Object { - if self.resource.is_none() { - self.resource.set_default(); - } - self.resource.as_mut().unwrap() - } - - // Take field - pub fn take_resource(&mut self) -> super::storage_resources::Object { - self.resource.take().unwrap_or_else(|| super::storage_resources::Object::new()) - } -} - -impl ::protobuf::Message for RewriteResponse { - 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 => { - 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_bytes_rewritten = 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.object_size = 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.done = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.rewrite_token)?; - }, - 5 => { - ::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.total_bytes_rewritten != 0 { - my_size += ::protobuf::rt::value_size(1, self.total_bytes_rewritten, ::protobuf::wire_format::WireTypeVarint); - } - if self.object_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.object_size, ::protobuf::wire_format::WireTypeVarint); - } - if self.done != false { - my_size += 2; - } - if !self.rewrite_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.rewrite_token); - } - 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.total_bytes_rewritten != 0 { - os.write_int64(1, self.total_bytes_rewritten)?; - } - if self.object_size != 0 { - os.write_int64(2, self.object_size)?; - } - if self.done != false { - os.write_bool(3, self.done)?; - } - if !self.rewrite_token.is_empty() { - os.write_string(4, &self.rewrite_token)?; - } - if let Some(ref v) = self.resource.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() -> RewriteResponse { - RewriteResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( - "total_bytes_rewritten", - |m: &RewriteResponse| { &m.total_bytes_rewritten }, - |m: &mut RewriteResponse| { &mut m.total_bytes_rewritten }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "object_size", - |m: &RewriteResponse| { &m.object_size }, - |m: &mut RewriteResponse| { &mut m.object_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "done", - |m: &RewriteResponse| { &m.done }, - |m: &mut RewriteResponse| { &mut m.done }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "rewrite_token", - |m: &RewriteResponse| { &m.rewrite_token }, - |m: &mut RewriteResponse| { &mut m.rewrite_token }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resource", - |m: &RewriteResponse| { &m.resource }, - |m: &mut RewriteResponse| { &mut m.resource }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RewriteResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RewriteResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RewriteResponse::new) - } -} - -impl ::protobuf::Clear for RewriteResponse { - fn clear(&mut self) { - self.total_bytes_rewritten = 0; - self.object_size = 0; - self.done = false; - self.rewrite_token.clear(); - self.resource.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RewriteResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RewriteResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StartResumableWriteRequest { - // message fields - pub insert_object_spec: ::protobuf::SingularPtrField, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StartResumableWriteRequest { - fn default() -> &'a StartResumableWriteRequest { - ::default_instance() - } -} - -impl StartResumableWriteRequest { - pub fn new() -> StartResumableWriteRequest { - ::std::default::Default::default() - } - - // .google.storage.v1.InsertObjectSpec insert_object_spec = 1; - - - pub fn get_insert_object_spec(&self) -> &InsertObjectSpec { - self.insert_object_spec.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_insert_object_spec(&mut self) { - self.insert_object_spec.clear(); - } - - pub fn has_insert_object_spec(&self) -> bool { - self.insert_object_spec.is_some() - } - - // Param is passed by value, moved - pub fn set_insert_object_spec(&mut self, v: InsertObjectSpec) { - self.insert_object_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_insert_object_spec(&mut self) -> &mut InsertObjectSpec { - if self.insert_object_spec.is_none() { - self.insert_object_spec.set_default(); - } - self.insert_object_spec.as_mut().unwrap() - } - - // Take field - pub fn take_insert_object_spec(&mut self) -> InsertObjectSpec { - self.insert_object_spec.take().unwrap_or_else(|| InsertObjectSpec::new()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 3; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 4; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for StartResumableWriteRequest { - fn is_initialized(&self) -> bool { - for v in &self.insert_object_spec { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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_message_into(wire_type, is, &mut self.insert_object_spec)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.insert_object_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.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.insert_object_spec.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.common_object_request_params.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.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StartResumableWriteRequest { - StartResumableWriteRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "insert_object_spec", - |m: &StartResumableWriteRequest| { &m.insert_object_spec }, - |m: &mut StartResumableWriteRequest| { &mut m.insert_object_spec }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &StartResumableWriteRequest| { &m.common_object_request_params }, - |m: &mut StartResumableWriteRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &StartResumableWriteRequest| { &m.common_request_params }, - |m: &mut StartResumableWriteRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StartResumableWriteRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StartResumableWriteRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StartResumableWriteRequest::new) - } -} - -impl ::protobuf::Clear for StartResumableWriteRequest { - fn clear(&mut self) { - self.insert_object_spec.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StartResumableWriteRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StartResumableWriteRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StartResumableWriteResponse { - // message fields - pub upload_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StartResumableWriteResponse { - fn default() -> &'a StartResumableWriteResponse { - ::default_instance() - } -} - -impl StartResumableWriteResponse { - pub fn new() -> StartResumableWriteResponse { - ::std::default::Default::default() - } - - // string upload_id = 1; - - - pub fn get_upload_id(&self) -> &str { - &self.upload_id - } - pub fn clear_upload_id(&mut self) { - self.upload_id.clear(); - } - - // Param is passed by value, moved - pub fn set_upload_id(&mut self, v: ::std::string::String) { - self.upload_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_upload_id(&mut self) -> &mut ::std::string::String { - &mut self.upload_id - } - - // Take field - pub fn take_upload_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.upload_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for StartResumableWriteResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.upload_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.upload_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.upload_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.upload_id.is_empty() { - os.write_string(1, &self.upload_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() -> StartResumableWriteResponse { - StartResumableWriteResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "upload_id", - |m: &StartResumableWriteResponse| { &m.upload_id }, - |m: &mut StartResumableWriteResponse| { &mut m.upload_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StartResumableWriteResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StartResumableWriteResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StartResumableWriteResponse::new) - } -} - -impl ::protobuf::Clear for StartResumableWriteResponse { - fn clear(&mut self) { - self.upload_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StartResumableWriteResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StartResumableWriteResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchObjectRequest { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub projection: super::storage_resources::CommonEnums_Projection, - pub metadata: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchObjectRequest { - fn default() -> &'a PatchObjectRequest { - ::default_instance() - } -} - -impl PatchObjectRequest { - pub fn new() -> PatchObjectRequest { - ::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; - } - - // .google.protobuf.Int64Value if_generation_match = 4; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_generation_not_match = 5; - - - pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_not_match(&mut self) { - self.if_generation_not_match.clear(); - } - - pub fn has_if_generation_not_match(&self) -> bool { - self.if_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_not_match.is_none() { - self.if_generation_not_match.set_default(); - } - self.if_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 6; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 7; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_acl = 8; - - - pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.predefined_acl - } - pub fn clear_predefined_acl(&mut self) { - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.predefined_acl = v; - } - - // .google.storage.v1.CommonEnums.Projection projection = 9; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.Object metadata = 11; - - - pub fn get_metadata(&self) -> &super::storage_resources::Object { - 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: super::storage_resources::Object) { - 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 super::storage_resources::Object { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> super::storage_resources::Object { - self.metadata.take().unwrap_or_else(|| super::storage_resources::Object::new()) - } - - // .google.protobuf.FieldMask update_mask = 12; - - - 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()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 13; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 14; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for PatchObjectRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.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; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 8 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 8, &mut self.unknown_fields)? - }, - 9 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 9, &mut self.unknown_fields)? - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; - }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - 13 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 14 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(8, self.predefined_acl); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(9, self.projection); - } - if let Some(ref v) = self.metadata.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 let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.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)?; - } - if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.metadata.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_mask.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(ref v) = self.common_object_request_params.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.common_request_params.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchObjectRequest { - PatchObjectRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchObjectRequest| { &m.bucket }, - |m: &mut PatchObjectRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &PatchObjectRequest| { &m.object }, - |m: &mut PatchObjectRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &PatchObjectRequest| { &m.generation }, - |m: &mut PatchObjectRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &PatchObjectRequest| { &m.if_generation_match }, - |m: &mut PatchObjectRequest| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_not_match", - |m: &PatchObjectRequest| { &m.if_generation_not_match }, - |m: &mut PatchObjectRequest| { &mut m.if_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &PatchObjectRequest| { &m.if_metageneration_match }, - |m: &mut PatchObjectRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &PatchObjectRequest| { &m.if_metageneration_not_match }, - |m: &mut PatchObjectRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "predefined_acl", - |m: &PatchObjectRequest| { &m.predefined_acl }, - |m: &mut PatchObjectRequest| { &mut m.predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &PatchObjectRequest| { &m.projection }, - |m: &mut PatchObjectRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &PatchObjectRequest| { &m.metadata }, - |m: &mut PatchObjectRequest| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &PatchObjectRequest| { &m.update_mask }, - |m: &mut PatchObjectRequest| { &mut m.update_mask }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &PatchObjectRequest| { &m.common_object_request_params }, - |m: &mut PatchObjectRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &PatchObjectRequest| { &m.common_request_params }, - |m: &mut PatchObjectRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchObjectRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchObjectRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchObjectRequest::new) - } -} - -impl ::protobuf::Clear for PatchObjectRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.if_generation_match.clear(); - self.if_generation_not_match.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.metadata.clear(); - self.update_mask.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchObjectRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchObjectRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateObjectRequest { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, - pub predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, - pub projection: super::storage_resources::CommonEnums_Projection, - pub metadata: ::protobuf::SingularPtrField, - pub common_object_request_params: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateObjectRequest { - fn default() -> &'a UpdateObjectRequest { - ::default_instance() - } -} - -impl UpdateObjectRequest { - pub fn new() -> UpdateObjectRequest { - ::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; - } - - // .google.protobuf.Int64Value if_generation_match = 4; - - - pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_match(&mut self) { - self.if_generation_match.clear(); - } - - pub fn has_if_generation_match(&self) -> bool { - self.if_generation_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_match.is_none() { - self.if_generation_match.set_default(); - } - self.if_generation_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_generation_not_match = 5; - - - pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_generation_not_match(&mut self) { - self.if_generation_not_match.clear(); - } - - pub fn has_if_generation_not_match(&self) -> bool { - self.if_generation_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_generation_not_match.is_none() { - self.if_generation_not_match.set_default(); - } - self.if_generation_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_match = 6; - - - pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_match(&mut self) { - self.if_metageneration_match.clear(); - } - - pub fn has_if_metageneration_match(&self) -> bool { - self.if_metageneration_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_match.is_none() { - self.if_metageneration_match.set_default(); - } - self.if_metageneration_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.protobuf.Int64Value if_metageneration_not_match = 7; - - - pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_if_metageneration_not_match(&mut self) { - self.if_metageneration_not_match.clear(); - } - - pub fn has_if_metageneration_not_match(&self) -> bool { - self.if_metageneration_not_match.is_some() - } - - // Param is passed by value, moved - pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { - self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { - if self.if_metageneration_not_match.is_none() { - self.if_metageneration_not_match.set_default(); - } - self.if_metageneration_not_match.as_mut().unwrap() - } - - // Take field - pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { - self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) - } - - // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_acl = 8; - - - pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { - self.predefined_acl - } - pub fn clear_predefined_acl(&mut self) { - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { - self.predefined_acl = v; - } - - // .google.storage.v1.CommonEnums.Projection projection = 9; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.Object metadata = 11; - - - pub fn get_metadata(&self) -> &super::storage_resources::Object { - 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: super::storage_resources::Object) { - 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 super::storage_resources::Object { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> super::storage_resources::Object { - self.metadata.take().unwrap_or_else(|| super::storage_resources::Object::new()) - } - - // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 12; - - - pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { - self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_object_request_params(&mut self) { - self.common_object_request_params.clear(); - } - - pub fn has_common_object_request_params(&self) -> bool { - self.common_object_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { - self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { - if self.common_object_request_params.is_none() { - self.common_object_request_params.set_default(); - } - self.common_object_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { - self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 13; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for UpdateObjectRequest { - fn is_initialized(&self) -> bool { - for v in &self.if_generation_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_generation_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.if_metageneration_not_match { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_object_request_params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.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; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; - }, - 8 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 8, &mut self.unknown_fields)? - }, - 9 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 9, &mut self.unknown_fields)? - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; - }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; - }, - 13 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if let Some(ref v) = self.if_generation_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_generation_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.if_metageneration_not_match.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(8, self.predefined_acl); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(9, self.projection); - } - if let Some(ref v) = self.metadata.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_object_request_params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.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)?; - } - if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { - os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.metadata.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.common_object_request_params.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(ref v) = self.common_request_params.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateObjectRequest { - UpdateObjectRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateObjectRequest| { &m.bucket }, - |m: &mut UpdateObjectRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &UpdateObjectRequest| { &m.object }, - |m: &mut UpdateObjectRequest| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &UpdateObjectRequest| { &m.generation }, - |m: &mut UpdateObjectRequest| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_match", - |m: &UpdateObjectRequest| { &m.if_generation_match }, - |m: &mut UpdateObjectRequest| { &mut m.if_generation_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_generation_not_match", - |m: &UpdateObjectRequest| { &m.if_generation_not_match }, - |m: &mut UpdateObjectRequest| { &mut m.if_generation_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_match", - |m: &UpdateObjectRequest| { &m.if_metageneration_match }, - |m: &mut UpdateObjectRequest| { &mut m.if_metageneration_match }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( - "if_metageneration_not_match", - |m: &UpdateObjectRequest| { &m.if_metageneration_not_match }, - |m: &mut UpdateObjectRequest| { &mut m.if_metageneration_not_match }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "predefined_acl", - |m: &UpdateObjectRequest| { &m.predefined_acl }, - |m: &mut UpdateObjectRequest| { &mut m.predefined_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &UpdateObjectRequest| { &m.projection }, - |m: &mut UpdateObjectRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &UpdateObjectRequest| { &m.metadata }, - |m: &mut UpdateObjectRequest| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_object_request_params", - |m: &UpdateObjectRequest| { &m.common_object_request_params }, - |m: &mut UpdateObjectRequest| { &mut m.common_object_request_params }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &UpdateObjectRequest| { &m.common_request_params }, - |m: &mut UpdateObjectRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateObjectRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateObjectRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateObjectRequest::new) - } -} - -impl ::protobuf::Clear for UpdateObjectRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.if_generation_match.clear(); - self.if_generation_not_match.clear(); - self.if_metageneration_match.clear(); - self.if_metageneration_not_match.clear(); - self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.metadata.clear(); - self.common_object_request_params.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateObjectRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateObjectRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WatchAllObjectsRequest { - // message fields - pub bucket: ::std::string::String, - pub versions: bool, - pub delimiter: ::std::string::String, - pub max_results: i32, - pub prefix: ::std::string::String, - pub include_trailing_delimiter: bool, - pub page_token: ::std::string::String, - pub projection: super::storage_resources::CommonEnums_Projection, - pub channel: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WatchAllObjectsRequest { - fn default() -> &'a WatchAllObjectsRequest { - ::default_instance() - } -} - -impl WatchAllObjectsRequest { - pub fn new() -> WatchAllObjectsRequest { - ::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()) - } - - // bool versions = 2; - - - pub fn get_versions(&self) -> bool { - self.versions - } - pub fn clear_versions(&mut self) { - self.versions = false; - } - - // Param is passed by value, moved - pub fn set_versions(&mut self, v: bool) { - self.versions = v; - } - - // string delimiter = 3; - - - pub fn get_delimiter(&self) -> &str { - &self.delimiter - } - pub fn clear_delimiter(&mut self) { - self.delimiter.clear(); - } - - // Param is passed by value, moved - pub fn set_delimiter(&mut self, v: ::std::string::String) { - self.delimiter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_delimiter(&mut self) -> &mut ::std::string::String { - &mut self.delimiter - } - - // Take field - pub fn take_delimiter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.delimiter, ::std::string::String::new()) - } - - // int32 max_results = 4; - - - pub fn get_max_results(&self) -> i32 { - self.max_results - } - pub fn clear_max_results(&mut self) { - self.max_results = 0; - } - - // Param is passed by value, moved - pub fn set_max_results(&mut self, v: i32) { - self.max_results = v; - } - - // string prefix = 5; - - - pub fn get_prefix(&self) -> &str { - &self.prefix - } - pub fn clear_prefix(&mut self) { - self.prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_prefix(&mut self, v: ::std::string::String) { - self.prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_prefix(&mut self) -> &mut ::std::string::String { - &mut self.prefix - } - - // Take field - pub fn take_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.prefix, ::std::string::String::new()) - } - - // bool include_trailing_delimiter = 6; - - - pub fn get_include_trailing_delimiter(&self) -> bool { - self.include_trailing_delimiter - } - pub fn clear_include_trailing_delimiter(&mut self) { - self.include_trailing_delimiter = false; - } - - // Param is passed by value, moved - pub fn set_include_trailing_delimiter(&mut self, v: bool) { - self.include_trailing_delimiter = v; - } - - // string page_token = 7; - - - 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.storage.v1.CommonEnums.Projection projection = 8; - - - pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { - self.projection - } - pub fn clear_projection(&mut self) { - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { - self.projection = v; - } - - // .google.storage.v1.Channel channel = 10; - - - pub fn get_channel(&self) -> &super::storage_resources::Channel { - self.channel.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_channel(&mut self) { - self.channel.clear(); - } - - pub fn has_channel(&self) -> bool { - self.channel.is_some() - } - - // Param is passed by value, moved - pub fn set_channel(&mut self, v: super::storage_resources::Channel) { - self.channel = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_channel(&mut self) -> &mut super::storage_resources::Channel { - if self.channel.is_none() { - self.channel.set_default(); - } - self.channel.as_mut().unwrap() - } - - // Take field - pub fn take_channel(&mut self) -> super::storage_resources::Channel { - self.channel.take().unwrap_or_else(|| super::storage_resources::Channel::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 11; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for WatchAllObjectsRequest { - fn is_initialized(&self) -> bool { - for v in &self.channel { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.bucket)?; - }, - 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.versions = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.delimiter)?; - }, - 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.max_results = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.prefix)?; - }, - 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.include_trailing_delimiter = tmp; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 8 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 8, &mut self.unknown_fields)? - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.channel)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.versions != false { - my_size += 2; - } - if !self.delimiter.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.delimiter); - } - if self.max_results != 0 { - my_size += ::protobuf::rt::value_size(4, self.max_results, ::protobuf::wire_format::WireTypeVarint); - } - if !self.prefix.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.prefix); - } - if self.include_trailing_delimiter != false { - my_size += 2; - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.page_token); - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(8, self.projection); - } - if let Some(ref v) = self.channel.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if self.versions != false { - os.write_bool(2, self.versions)?; - } - if !self.delimiter.is_empty() { - os.write_string(3, &self.delimiter)?; - } - if self.max_results != 0 { - os.write_int32(4, self.max_results)?; - } - if !self.prefix.is_empty() { - os.write_string(5, &self.prefix)?; - } - if self.include_trailing_delimiter != false { - os.write_bool(6, self.include_trailing_delimiter)?; - } - if !self.page_token.is_empty() { - os.write_string(7, &self.page_token)?; - } - if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { - os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.projection))?; - } - if let Some(ref v) = self.channel.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.common_request_params.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WatchAllObjectsRequest { - WatchAllObjectsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &WatchAllObjectsRequest| { &m.bucket }, - |m: &mut WatchAllObjectsRequest| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "versions", - |m: &WatchAllObjectsRequest| { &m.versions }, - |m: &mut WatchAllObjectsRequest| { &mut m.versions }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "delimiter", - |m: &WatchAllObjectsRequest| { &m.delimiter }, - |m: &mut WatchAllObjectsRequest| { &mut m.delimiter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "max_results", - |m: &WatchAllObjectsRequest| { &m.max_results }, - |m: &mut WatchAllObjectsRequest| { &mut m.max_results }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "prefix", - |m: &WatchAllObjectsRequest| { &m.prefix }, - |m: &mut WatchAllObjectsRequest| { &mut m.prefix }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "include_trailing_delimiter", - |m: &WatchAllObjectsRequest| { &m.include_trailing_delimiter }, - |m: &mut WatchAllObjectsRequest| { &mut m.include_trailing_delimiter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &WatchAllObjectsRequest| { &m.page_token }, - |m: &mut WatchAllObjectsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "projection", - |m: &WatchAllObjectsRequest| { &m.projection }, - |m: &mut WatchAllObjectsRequest| { &mut m.projection }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "channel", - |m: &WatchAllObjectsRequest| { &m.channel }, - |m: &mut WatchAllObjectsRequest| { &mut m.channel }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &WatchAllObjectsRequest| { &m.common_request_params }, - |m: &mut WatchAllObjectsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WatchAllObjectsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static WatchAllObjectsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(WatchAllObjectsRequest::new) - } -} - -impl ::protobuf::Clear for WatchAllObjectsRequest { - fn clear(&mut self) { - self.bucket.clear(); - self.versions = false; - self.delimiter.clear(); - self.max_results = 0; - self.prefix.clear(); - self.include_trailing_delimiter = false; - self.page_token.clear(); - self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; - self.channel.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WatchAllObjectsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WatchAllObjectsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetProjectServiceAccountRequest { - // message fields - pub project_id: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetProjectServiceAccountRequest { - fn default() -> &'a GetProjectServiceAccountRequest { - ::default_instance() - } -} - -impl GetProjectServiceAccountRequest { - pub fn new() -> GetProjectServiceAccountRequest { - ::std::default::Default::default() - } - - // string project_id = 1; - - - pub fn get_project_id(&self) -> &str { - &self.project_id - } - pub fn clear_project_id(&mut self) { - self.project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_project_id(&mut self, v: ::std::string::String) { - self.project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_id(&mut self) -> &mut ::std::string::String { - &mut self.project_id - } - - // Take field - pub fn take_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 3; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetProjectServiceAccountRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.project_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.project_id); - } - if let Some(ref v) = self.common_request_params.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.project_id.is_empty() { - os.write_string(1, &self.project_id)?; - } - if let Some(ref v) = self.common_request_params.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() -> GetProjectServiceAccountRequest { - GetProjectServiceAccountRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_id", - |m: &GetProjectServiceAccountRequest| { &m.project_id }, - |m: &mut GetProjectServiceAccountRequest| { &mut m.project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetProjectServiceAccountRequest| { &m.common_request_params }, - |m: &mut GetProjectServiceAccountRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetProjectServiceAccountRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetProjectServiceAccountRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetProjectServiceAccountRequest::new) - } -} - -impl ::protobuf::Clear for GetProjectServiceAccountRequest { - fn clear(&mut self) { - self.project_id.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetProjectServiceAccountRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetProjectServiceAccountRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateHmacKeyRequest { - // message fields - pub project_id: ::std::string::String, - pub service_account_email: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateHmacKeyRequest { - fn default() -> &'a CreateHmacKeyRequest { - ::default_instance() - } -} - -impl CreateHmacKeyRequest { - pub fn new() -> CreateHmacKeyRequest { - ::std::default::Default::default() - } - - // string project_id = 1; - - - pub fn get_project_id(&self) -> &str { - &self.project_id - } - pub fn clear_project_id(&mut self) { - self.project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_project_id(&mut self, v: ::std::string::String) { - self.project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_id(&mut self) -> &mut ::std::string::String { - &mut self.project_id - } - - // Take field - pub fn take_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) - } - - // string service_account_email = 2; - - - 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()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 3; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for CreateHmacKeyRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.project_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_account_email)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.project_id); - } - if !self.service_account_email.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.service_account_email); - } - if let Some(ref v) = self.common_request_params.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.project_id.is_empty() { - os.write_string(1, &self.project_id)?; - } - if !self.service_account_email.is_empty() { - os.write_string(2, &self.service_account_email)?; - } - if let Some(ref v) = self.common_request_params.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() -> CreateHmacKeyRequest { - CreateHmacKeyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_id", - |m: &CreateHmacKeyRequest| { &m.project_id }, - |m: &mut CreateHmacKeyRequest| { &mut m.project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_account_email", - |m: &CreateHmacKeyRequest| { &m.service_account_email }, - |m: &mut CreateHmacKeyRequest| { &mut m.service_account_email }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &CreateHmacKeyRequest| { &m.common_request_params }, - |m: &mut CreateHmacKeyRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateHmacKeyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateHmacKeyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateHmacKeyRequest::new) - } -} - -impl ::protobuf::Clear for CreateHmacKeyRequest { - fn clear(&mut self) { - self.project_id.clear(); - self.service_account_email.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateHmacKeyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateHmacKeyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateHmacKeyResponse { - // message fields - pub metadata: ::protobuf::SingularPtrField, - pub secret: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateHmacKeyResponse { - fn default() -> &'a CreateHmacKeyResponse { - ::default_instance() - } -} - -impl CreateHmacKeyResponse { - pub fn new() -> CreateHmacKeyResponse { - ::std::default::Default::default() - } - - // .google.storage.v1.HmacKeyMetadata metadata = 1; - - - pub fn get_metadata(&self) -> &super::storage_resources::HmacKeyMetadata { - 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: super::storage_resources::HmacKeyMetadata) { - 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 super::storage_resources::HmacKeyMetadata { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> super::storage_resources::HmacKeyMetadata { - self.metadata.take().unwrap_or_else(|| super::storage_resources::HmacKeyMetadata::new()) - } - - // string secret = 2; - - - pub fn get_secret(&self) -> &str { - &self.secret - } - pub fn clear_secret(&mut self) { - self.secret.clear(); - } - - // Param is passed by value, moved - pub fn set_secret(&mut self, v: ::std::string::String) { - self.secret = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_secret(&mut self) -> &mut ::std::string::String { - &mut self.secret - } - - // Take field - pub fn take_secret(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.secret, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CreateHmacKeyResponse { - fn is_initialized(&self) -> bool { - 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_message_into(wire_type, is, &mut self.metadata)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.secret)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.metadata.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.secret.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.secret); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_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.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)?; - } - if !self.secret.is_empty() { - os.write_string(2, &self.secret)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateHmacKeyResponse { - CreateHmacKeyResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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: &CreateHmacKeyResponse| { &m.metadata }, - |m: &mut CreateHmacKeyResponse| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "secret", - |m: &CreateHmacKeyResponse| { &m.secret }, - |m: &mut CreateHmacKeyResponse| { &mut m.secret }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateHmacKeyResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateHmacKeyResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateHmacKeyResponse::new) - } -} - -impl ::protobuf::Clear for CreateHmacKeyResponse { - fn clear(&mut self) { - self.metadata.clear(); - self.secret.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateHmacKeyResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateHmacKeyResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteHmacKeyRequest { - // message fields - pub access_id: ::std::string::String, - pub project_id: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteHmacKeyRequest { - fn default() -> &'a DeleteHmacKeyRequest { - ::default_instance() - } -} - -impl DeleteHmacKeyRequest { - pub fn new() -> DeleteHmacKeyRequest { - ::std::default::Default::default() - } - - // string access_id = 1; - - - pub fn get_access_id(&self) -> &str { - &self.access_id - } - pub fn clear_access_id(&mut self) { - self.access_id.clear(); - } - - // Param is passed by value, moved - pub fn set_access_id(&mut self, v: ::std::string::String) { - self.access_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_access_id(&mut self) -> &mut ::std::string::String { - &mut self.access_id - } - - // Take field - pub fn take_access_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.access_id, ::std::string::String::new()) - } - - // string project_id = 2; - - - pub fn get_project_id(&self) -> &str { - &self.project_id - } - pub fn clear_project_id(&mut self) { - self.project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_project_id(&mut self, v: ::std::string::String) { - self.project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_id(&mut self) -> &mut ::std::string::String { - &mut self.project_id - } - - // Take field - pub fn take_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 3; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for DeleteHmacKeyRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.access_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.access_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.access_id); - } - if !self.project_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.project_id); - } - if let Some(ref v) = self.common_request_params.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.access_id.is_empty() { - os.write_string(1, &self.access_id)?; - } - if !self.project_id.is_empty() { - os.write_string(2, &self.project_id)?; - } - if let Some(ref v) = self.common_request_params.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() -> DeleteHmacKeyRequest { - DeleteHmacKeyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "access_id", - |m: &DeleteHmacKeyRequest| { &m.access_id }, - |m: &mut DeleteHmacKeyRequest| { &mut m.access_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project_id", - |m: &DeleteHmacKeyRequest| { &m.project_id }, - |m: &mut DeleteHmacKeyRequest| { &mut m.project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &DeleteHmacKeyRequest| { &m.common_request_params }, - |m: &mut DeleteHmacKeyRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteHmacKeyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteHmacKeyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteHmacKeyRequest::new) - } -} - -impl ::protobuf::Clear for DeleteHmacKeyRequest { - fn clear(&mut self) { - self.access_id.clear(); - self.project_id.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteHmacKeyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteHmacKeyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetHmacKeyRequest { - // message fields - pub access_id: ::std::string::String, - pub project_id: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetHmacKeyRequest { - fn default() -> &'a GetHmacKeyRequest { - ::default_instance() - } -} - -impl GetHmacKeyRequest { - pub fn new() -> GetHmacKeyRequest { - ::std::default::Default::default() - } - - // string access_id = 1; - - - pub fn get_access_id(&self) -> &str { - &self.access_id - } - pub fn clear_access_id(&mut self) { - self.access_id.clear(); - } - - // Param is passed by value, moved - pub fn set_access_id(&mut self, v: ::std::string::String) { - self.access_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_access_id(&mut self) -> &mut ::std::string::String { - &mut self.access_id - } - - // Take field - pub fn take_access_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.access_id, ::std::string::String::new()) - } - - // string project_id = 2; - - - pub fn get_project_id(&self) -> &str { - &self.project_id - } - pub fn clear_project_id(&mut self) { - self.project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_project_id(&mut self, v: ::std::string::String) { - self.project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_id(&mut self) -> &mut ::std::string::String { - &mut self.project_id - } - - // Take field - pub fn take_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 3; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetHmacKeyRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.access_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.access_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.access_id); - } - if !self.project_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.project_id); - } - if let Some(ref v) = self.common_request_params.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.access_id.is_empty() { - os.write_string(1, &self.access_id)?; - } - if !self.project_id.is_empty() { - os.write_string(2, &self.project_id)?; - } - if let Some(ref v) = self.common_request_params.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() -> GetHmacKeyRequest { - GetHmacKeyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "access_id", - |m: &GetHmacKeyRequest| { &m.access_id }, - |m: &mut GetHmacKeyRequest| { &mut m.access_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project_id", - |m: &GetHmacKeyRequest| { &m.project_id }, - |m: &mut GetHmacKeyRequest| { &mut m.project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetHmacKeyRequest| { &m.common_request_params }, - |m: &mut GetHmacKeyRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetHmacKeyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetHmacKeyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetHmacKeyRequest::new) - } -} - -impl ::protobuf::Clear for GetHmacKeyRequest { - fn clear(&mut self) { - self.access_id.clear(); - self.project_id.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetHmacKeyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetHmacKeyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListHmacKeysRequest { - // message fields - pub project_id: ::std::string::String, - pub service_account_email: ::std::string::String, - pub show_deleted_keys: bool, - pub max_results: i32, - pub page_token: ::std::string::String, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListHmacKeysRequest { - fn default() -> &'a ListHmacKeysRequest { - ::default_instance() - } -} - -impl ListHmacKeysRequest { - pub fn new() -> ListHmacKeysRequest { - ::std::default::Default::default() - } - - // string project_id = 1; - - - pub fn get_project_id(&self) -> &str { - &self.project_id - } - pub fn clear_project_id(&mut self) { - self.project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_project_id(&mut self, v: ::std::string::String) { - self.project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_id(&mut self) -> &mut ::std::string::String { - &mut self.project_id - } - - // Take field - pub fn take_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) - } - - // string service_account_email = 2; - - - 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()) - } - - // bool show_deleted_keys = 3; - - - pub fn get_show_deleted_keys(&self) -> bool { - self.show_deleted_keys - } - pub fn clear_show_deleted_keys(&mut self) { - self.show_deleted_keys = false; - } - - // Param is passed by value, moved - pub fn set_show_deleted_keys(&mut self, v: bool) { - self.show_deleted_keys = v; - } - - // int32 max_results = 4; - - - pub fn get_max_results(&self) -> i32 { - self.max_results - } - pub fn clear_max_results(&mut self) { - self.max_results = 0; - } - - // Param is passed by value, moved - pub fn set_max_results(&mut self, v: i32) { - self.max_results = 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.storage.v1.CommonRequestParams common_request_params = 6; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for ListHmacKeysRequest { - fn is_initialized(&self) -> bool { - for v in &self.common_request_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.project_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_account_email)?; - }, - 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.show_deleted_keys = 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.max_results = 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.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.project_id); - } - if !self.service_account_email.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.service_account_email); - } - if self.show_deleted_keys != false { - my_size += 2; - } - if self.max_results != 0 { - my_size += ::protobuf::rt::value_size(4, self.max_results, ::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.common_request_params.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.project_id.is_empty() { - os.write_string(1, &self.project_id)?; - } - if !self.service_account_email.is_empty() { - os.write_string(2, &self.service_account_email)?; - } - if self.show_deleted_keys != false { - os.write_bool(3, self.show_deleted_keys)?; - } - if self.max_results != 0 { - os.write_int32(4, self.max_results)?; - } - if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; - } - if let Some(ref v) = self.common_request_params.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() -> ListHmacKeysRequest { - ListHmacKeysRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_id", - |m: &ListHmacKeysRequest| { &m.project_id }, - |m: &mut ListHmacKeysRequest| { &mut m.project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_account_email", - |m: &ListHmacKeysRequest| { &m.service_account_email }, - |m: &mut ListHmacKeysRequest| { &mut m.service_account_email }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "show_deleted_keys", - |m: &ListHmacKeysRequest| { &m.show_deleted_keys }, - |m: &mut ListHmacKeysRequest| { &mut m.show_deleted_keys }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "max_results", - |m: &ListHmacKeysRequest| { &m.max_results }, - |m: &mut ListHmacKeysRequest| { &mut m.max_results }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListHmacKeysRequest| { &m.page_token }, - |m: &mut ListHmacKeysRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &ListHmacKeysRequest| { &m.common_request_params }, - |m: &mut ListHmacKeysRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListHmacKeysRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListHmacKeysRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListHmacKeysRequest::new) - } -} - -impl ::protobuf::Clear for ListHmacKeysRequest { - fn clear(&mut self) { - self.project_id.clear(); - self.service_account_email.clear(); - self.show_deleted_keys = false; - self.max_results = 0; - self.page_token.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListHmacKeysRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListHmacKeysRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListHmacKeysResponse { - // message fields - pub next_page_token: ::std::string::String, - pub items: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListHmacKeysResponse { - fn default() -> &'a ListHmacKeysResponse { - ::default_instance() - } -} - -impl ListHmacKeysResponse { - pub fn new() -> ListHmacKeysResponse { - ::std::default::Default::default() - } - - // string next_page_token = 1; - - - 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 .google.storage.v1.HmacKeyMetadata items = 2; - - - pub fn get_items(&self) -> &[super::storage_resources::HmacKeyMetadata] { - &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 ListHmacKeysResponse { - fn is_initialized(&self) -> bool { - 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_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - 2 => { - ::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 !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.next_page_token); - } - 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 !self.next_page_token.is_empty() { - os.write_string(1, &self.next_page_token)?; - } - for v in &self.items { - 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() -> ListHmacKeysResponse { - ListHmacKeysResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListHmacKeysResponse| { &m.next_page_token }, - |m: &mut ListHmacKeysResponse| { &mut m.next_page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "items", - |m: &ListHmacKeysResponse| { &m.items }, - |m: &mut ListHmacKeysResponse| { &mut m.items }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListHmacKeysResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListHmacKeysResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListHmacKeysResponse::new) - } -} - -impl ::protobuf::Clear for ListHmacKeysResponse { - fn clear(&mut self) { - self.next_page_token.clear(); - self.items.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListHmacKeysResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListHmacKeysResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateHmacKeyRequest { - // message fields - pub access_id: ::std::string::String, - pub project_id: ::std::string::String, - pub metadata: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateHmacKeyRequest { - fn default() -> &'a UpdateHmacKeyRequest { - ::default_instance() - } -} - -impl UpdateHmacKeyRequest { - pub fn new() -> UpdateHmacKeyRequest { - ::std::default::Default::default() - } - - // string access_id = 1; - - - pub fn get_access_id(&self) -> &str { - &self.access_id - } - pub fn clear_access_id(&mut self) { - self.access_id.clear(); - } - - // Param is passed by value, moved - pub fn set_access_id(&mut self, v: ::std::string::String) { - self.access_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_access_id(&mut self) -> &mut ::std::string::String { - &mut self.access_id - } - - // Take field - pub fn take_access_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.access_id, ::std::string::String::new()) - } - - // string project_id = 2; - - - pub fn get_project_id(&self) -> &str { - &self.project_id - } - pub fn clear_project_id(&mut self) { - self.project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_project_id(&mut self, v: ::std::string::String) { - self.project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_id(&mut self) -> &mut ::std::string::String { - &mut self.project_id - } - - // Take field - pub fn take_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) - } - - // .google.storage.v1.HmacKeyMetadata metadata = 3; - - - pub fn get_metadata(&self) -> &super::storage_resources::HmacKeyMetadata { - 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: super::storage_resources::HmacKeyMetadata) { - 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 super::storage_resources::HmacKeyMetadata { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> super::storage_resources::HmacKeyMetadata { - self.metadata.take().unwrap_or_else(|| super::storage_resources::HmacKeyMetadata::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 5; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for UpdateHmacKeyRequest { - fn is_initialized(&self) -> bool { - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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.access_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.access_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.access_id); - } - if !self.project_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.project_id); - } - if let Some(ref v) = self.metadata.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.common_request_params.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.access_id.is_empty() { - os.write_string(1, &self.access_id)?; - } - if !self.project_id.is_empty() { - os.write_string(2, &self.project_id)?; - } - if let Some(ref v) = self.metadata.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.common_request_params.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() -> UpdateHmacKeyRequest { - UpdateHmacKeyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "access_id", - |m: &UpdateHmacKeyRequest| { &m.access_id }, - |m: &mut UpdateHmacKeyRequest| { &mut m.access_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project_id", - |m: &UpdateHmacKeyRequest| { &m.project_id }, - |m: &mut UpdateHmacKeyRequest| { &mut m.project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &UpdateHmacKeyRequest| { &m.metadata }, - |m: &mut UpdateHmacKeyRequest| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &UpdateHmacKeyRequest| { &m.common_request_params }, - |m: &mut UpdateHmacKeyRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateHmacKeyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateHmacKeyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateHmacKeyRequest::new) - } -} - -impl ::protobuf::Clear for UpdateHmacKeyRequest { - fn clear(&mut self) { - self.access_id.clear(); - self.project_id.clear(); - self.metadata.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateHmacKeyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateHmacKeyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetIamPolicyRequest { - // message fields - pub iam_request: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetIamPolicyRequest { - fn default() -> &'a GetIamPolicyRequest { - ::default_instance() - } -} - -impl GetIamPolicyRequest { - pub fn new() -> GetIamPolicyRequest { - ::std::default::Default::default() - } - - // .google.iam.v1.GetIamPolicyRequest iam_request = 1; - - - pub fn get_iam_request(&self) -> &super::iam_policy::GetIamPolicyRequest { - self.iam_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_iam_request(&mut self) { - self.iam_request.clear(); - } - - pub fn has_iam_request(&self) -> bool { - self.iam_request.is_some() - } - - // Param is passed by value, moved - pub fn set_iam_request(&mut self, v: super::iam_policy::GetIamPolicyRequest) { - self.iam_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_iam_request(&mut self) -> &mut super::iam_policy::GetIamPolicyRequest { - if self.iam_request.is_none() { - self.iam_request.set_default(); - } - self.iam_request.as_mut().unwrap() - } - - // Take field - pub fn take_iam_request(&mut self) -> super::iam_policy::GetIamPolicyRequest { - self.iam_request.take().unwrap_or_else(|| super::iam_policy::GetIamPolicyRequest::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 2; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for GetIamPolicyRequest { - fn is_initialized(&self) -> bool { - for v in &self.iam_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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_message_into(wire_type, is, &mut self.iam_request)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.iam_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.common_request_params.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.iam_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.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "iam_request", - |m: &GetIamPolicyRequest| { &m.iam_request }, - |m: &mut GetIamPolicyRequest| { &mut m.iam_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &GetIamPolicyRequest| { &m.common_request_params }, - |m: &mut GetIamPolicyRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetIamPolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetIamPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetIamPolicyRequest::new) - } -} - -impl ::protobuf::Clear for GetIamPolicyRequest { - fn clear(&mut self) { - self.iam_request.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SetIamPolicyRequest { - // message fields - pub iam_request: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SetIamPolicyRequest { - fn default() -> &'a SetIamPolicyRequest { - ::default_instance() - } -} - -impl SetIamPolicyRequest { - pub fn new() -> SetIamPolicyRequest { - ::std::default::Default::default() - } - - // .google.iam.v1.SetIamPolicyRequest iam_request = 1; - - - pub fn get_iam_request(&self) -> &super::iam_policy::SetIamPolicyRequest { - self.iam_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_iam_request(&mut self) { - self.iam_request.clear(); - } - - pub fn has_iam_request(&self) -> bool { - self.iam_request.is_some() - } - - // Param is passed by value, moved - pub fn set_iam_request(&mut self, v: super::iam_policy::SetIamPolicyRequest) { - self.iam_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_iam_request(&mut self) -> &mut super::iam_policy::SetIamPolicyRequest { - if self.iam_request.is_none() { - self.iam_request.set_default(); - } - self.iam_request.as_mut().unwrap() - } - - // Take field - pub fn take_iam_request(&mut self) -> super::iam_policy::SetIamPolicyRequest { - self.iam_request.take().unwrap_or_else(|| super::iam_policy::SetIamPolicyRequest::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 2; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for SetIamPolicyRequest { - fn is_initialized(&self) -> bool { - for v in &self.iam_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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_message_into(wire_type, is, &mut self.iam_request)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.iam_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.common_request_params.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.iam_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.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "iam_request", - |m: &SetIamPolicyRequest| { &m.iam_request }, - |m: &mut SetIamPolicyRequest| { &mut m.iam_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &SetIamPolicyRequest| { &m.common_request_params }, - |m: &mut SetIamPolicyRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SetIamPolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SetIamPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SetIamPolicyRequest::new) - } -} - -impl ::protobuf::Clear for SetIamPolicyRequest { - fn clear(&mut self) { - self.iam_request.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct TestIamPermissionsRequest { - // message fields - pub iam_request: ::protobuf::SingularPtrField, - pub common_request_params: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TestIamPermissionsRequest { - fn default() -> &'a TestIamPermissionsRequest { - ::default_instance() - } -} - -impl TestIamPermissionsRequest { - pub fn new() -> TestIamPermissionsRequest { - ::std::default::Default::default() - } - - // .google.iam.v1.TestIamPermissionsRequest iam_request = 1; - - - pub fn get_iam_request(&self) -> &super::iam_policy::TestIamPermissionsRequest { - self.iam_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_iam_request(&mut self) { - self.iam_request.clear(); - } - - pub fn has_iam_request(&self) -> bool { - self.iam_request.is_some() - } - - // Param is passed by value, moved - pub fn set_iam_request(&mut self, v: super::iam_policy::TestIamPermissionsRequest) { - self.iam_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_iam_request(&mut self) -> &mut super::iam_policy::TestIamPermissionsRequest { - if self.iam_request.is_none() { - self.iam_request.set_default(); - } - self.iam_request.as_mut().unwrap() - } - - // Take field - pub fn take_iam_request(&mut self) -> super::iam_policy::TestIamPermissionsRequest { - self.iam_request.take().unwrap_or_else(|| super::iam_policy::TestIamPermissionsRequest::new()) - } - - // .google.storage.v1.CommonRequestParams common_request_params = 2; - - - pub fn get_common_request_params(&self) -> &CommonRequestParams { - self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common_request_params(&mut self) { - self.common_request_params.clear(); - } - - pub fn has_common_request_params(&self) -> bool { - self.common_request_params.is_some() - } - - // Param is passed by value, moved - pub fn set_common_request_params(&mut self, v: CommonRequestParams) { - self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { - if self.common_request_params.is_none() { - self.common_request_params.set_default(); - } - self.common_request_params.as_mut().unwrap() - } - - // Take field - pub fn take_common_request_params(&mut self) -> CommonRequestParams { - self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) - } -} - -impl ::protobuf::Message for TestIamPermissionsRequest { - fn is_initialized(&self) -> bool { - for v in &self.iam_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.common_request_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_message_into(wire_type, is, &mut self.iam_request)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.iam_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.common_request_params.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.iam_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.common_request_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "iam_request", - |m: &TestIamPermissionsRequest| { &m.iam_request }, - |m: &mut TestIamPermissionsRequest| { &mut m.iam_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common_request_params", - |m: &TestIamPermissionsRequest| { &m.common_request_params }, - |m: &mut TestIamPermissionsRequest| { &mut m.common_request_params }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TestIamPermissionsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static TestIamPermissionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TestIamPermissionsRequest::new) - } -} - -impl ::protobuf::Clear for TestIamPermissionsRequest { - fn clear(&mut self) { - self.iam_request.clear(); - self.common_request_params.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CommonObjectRequestParams { - // message fields - pub encryption_algorithm: ::std::string::String, - pub encryption_key: ::std::string::String, - pub encryption_key_sha256: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CommonObjectRequestParams { - fn default() -> &'a CommonObjectRequestParams { - ::default_instance() - } -} - -impl CommonObjectRequestParams { - pub fn new() -> CommonObjectRequestParams { - ::std::default::Default::default() - } - - // string encryption_algorithm = 1; - - - pub fn get_encryption_algorithm(&self) -> &str { - &self.encryption_algorithm - } - pub fn clear_encryption_algorithm(&mut self) { - self.encryption_algorithm.clear(); - } - - // Param is passed by value, moved - pub fn set_encryption_algorithm(&mut self, v: ::std::string::String) { - self.encryption_algorithm = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_algorithm(&mut self) -> &mut ::std::string::String { - &mut self.encryption_algorithm - } - - // Take field - pub fn take_encryption_algorithm(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.encryption_algorithm, ::std::string::String::new()) - } - - // string encryption_key = 2; - - - pub fn get_encryption_key(&self) -> &str { - &self.encryption_key - } - pub fn clear_encryption_key(&mut self) { - self.encryption_key.clear(); - } - - // Param is passed by value, moved - pub fn set_encryption_key(&mut self, v: ::std::string::String) { - self.encryption_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_key(&mut self) -> &mut ::std::string::String { - &mut self.encryption_key - } - - // Take field - pub fn take_encryption_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.encryption_key, ::std::string::String::new()) - } - - // string encryption_key_sha256 = 3; - - - pub fn get_encryption_key_sha256(&self) -> &str { - &self.encryption_key_sha256 - } - pub fn clear_encryption_key_sha256(&mut self) { - self.encryption_key_sha256.clear(); - } - - // Param is passed by value, moved - pub fn set_encryption_key_sha256(&mut self, v: ::std::string::String) { - self.encryption_key_sha256 = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_key_sha256(&mut self) -> &mut ::std::string::String { - &mut self.encryption_key_sha256 - } - - // Take field - pub fn take_encryption_key_sha256(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.encryption_key_sha256, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CommonObjectRequestParams { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.encryption_algorithm)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.encryption_key)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.encryption_key_sha256)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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_algorithm.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.encryption_algorithm); - } - if !self.encryption_key.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.encryption_key); - } - if !self.encryption_key_sha256.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.encryption_key_sha256); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_algorithm.is_empty() { - os.write_string(1, &self.encryption_algorithm)?; - } - if !self.encryption_key.is_empty() { - os.write_string(2, &self.encryption_key)?; - } - if !self.encryption_key_sha256.is_empty() { - os.write_string(3, &self.encryption_key_sha256)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CommonObjectRequestParams { - CommonObjectRequestParams::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "encryption_algorithm", - |m: &CommonObjectRequestParams| { &m.encryption_algorithm }, - |m: &mut CommonObjectRequestParams| { &mut m.encryption_algorithm }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "encryption_key", - |m: &CommonObjectRequestParams| { &m.encryption_key }, - |m: &mut CommonObjectRequestParams| { &mut m.encryption_key }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "encryption_key_sha256", - |m: &CommonObjectRequestParams| { &m.encryption_key_sha256 }, - |m: &mut CommonObjectRequestParams| { &mut m.encryption_key_sha256 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommonObjectRequestParams", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommonObjectRequestParams { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommonObjectRequestParams::new) - } -} - -impl ::protobuf::Clear for CommonObjectRequestParams { - fn clear(&mut self) { - self.encryption_algorithm.clear(); - self.encryption_key.clear(); - self.encryption_key_sha256.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommonObjectRequestParams { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommonObjectRequestParams { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CommonRequestParams { - // message fields - pub user_project: ::std::string::String, - pub quota_user: ::std::string::String, - pub fields: ::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 CommonRequestParams { - fn default() -> &'a CommonRequestParams { - ::default_instance() - } -} - -impl CommonRequestParams { - pub fn new() -> CommonRequestParams { - ::std::default::Default::default() - } - - // string user_project = 1; - - - pub fn get_user_project(&self) -> &str { - &self.user_project - } - pub fn clear_user_project(&mut self) { - self.user_project.clear(); - } - - // Param is passed by value, moved - pub fn set_user_project(&mut self, v: ::std::string::String) { - self.user_project = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_user_project(&mut self) -> &mut ::std::string::String { - &mut self.user_project - } - - // Take field - pub fn take_user_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.user_project, ::std::string::String::new()) - } - - // string quota_user = 2; - - - pub fn get_quota_user(&self) -> &str { - &self.quota_user - } - pub fn clear_quota_user(&mut self) { - self.quota_user.clear(); - } - - // Param is passed by value, moved - pub fn set_quota_user(&mut self, v: ::std::string::String) { - self.quota_user = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_quota_user(&mut self) -> &mut ::std::string::String { - &mut self.quota_user - } - - // Take field - pub fn take_quota_user(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.quota_user, ::std::string::String::new()) - } - - // .google.protobuf.FieldMask fields = 4; - - - pub fn get_fields(&self) -> &::protobuf::well_known_types::FieldMask { - self.fields.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_fields(&mut self) { - self.fields.clear(); - } - - pub fn has_fields(&self) -> bool { - self.fields.is_some() - } - - // Param is passed by value, moved - pub fn set_fields(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.fields = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_fields(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.fields.is_none() { - self.fields.set_default(); - } - self.fields.as_mut().unwrap() - } - - // Take field - pub fn take_fields(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.fields.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for CommonRequestParams { - 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.user_project)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.quota_user)?; - }, - 4 => { - ::protobuf::rt::read_singular_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.user_project.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.user_project); - } - if !self.quota_user.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.quota_user); - } - if let Some(ref v) = self.fields.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.user_project.is_empty() { - os.write_string(1, &self.user_project)?; - } - if !self.quota_user.is_empty() { - os.write_string(2, &self.quota_user)?; - } - if let Some(ref v) = self.fields.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() -> CommonRequestParams { - CommonRequestParams::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "user_project", - |m: &CommonRequestParams| { &m.user_project }, - |m: &mut CommonRequestParams| { &mut m.user_project }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "quota_user", - |m: &CommonRequestParams| { &m.quota_user }, - |m: &mut CommonRequestParams| { &mut m.quota_user }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "fields", - |m: &CommonRequestParams| { &m.fields }, - |m: &mut CommonRequestParams| { &mut m.fields }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommonRequestParams", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommonRequestParams { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommonRequestParams::new) - } -} - -impl ::protobuf::Clear for CommonRequestParams { - fn clear(&mut self) { - self.user_project.clear(); - self.quota_user.clear(); - self.fields.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommonRequestParams { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommonRequestParams { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServiceConstants { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServiceConstants { - fn default() -> &'a ServiceConstants { - ::default_instance() - } -} - -impl ServiceConstants { - pub fn new() -> ServiceConstants { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for ServiceConstants { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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() -> ServiceConstants { - ServiceConstants::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::( - "ServiceConstants", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServiceConstants { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServiceConstants::new) - } -} - -impl ::protobuf::Clear for ServiceConstants { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServiceConstants { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServiceConstants { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -// Note: you cannot use pattern matching for enums with allow_alias option -#[derive(Clone,Eq,Debug)] -pub enum ServiceConstants_Values { - VALUES_UNSPECIFIED, // 0 - MAX_READ_CHUNK_BYTES, // 2097152 - MAX_WRITE_CHUNK_BYTES, // 2097152 - MAX_OBJECT_SIZE_MB, // 5242880 - MAX_CUSTOM_METADATA_FIELD_NAME_BYTES, // 1024 - MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES, // 4096 - MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES, // 8192 - MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES, // 20480 - MAX_NOTIFICATION_CONFIGS_PER_BUCKET, // 100 - MAX_LIFECYCLE_RULES_PER_BUCKET, // 100 - MAX_NOTIFICATION_CUSTOM_ATTRIBUTES, // 5 - MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH, // 256 - MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH, // 1024 - MAX_LABELS_ENTRIES_COUNT, // 64 - MAX_LABELS_KEY_VALUE_LENGTH, // 63 - MAX_LABELS_KEY_VALUE_BYTES, // 128 - MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST, // 1000 - SPLIT_TOKEN_MAX_VALID_DAYS, // 14 -} - -impl ::std::cmp::PartialEq for ServiceConstants_Values { - fn eq(&self, other: &Self) -> bool { - ::protobuf::ProtobufEnum::value(self) == ::protobuf::ProtobufEnum::value(other) - } -} - -impl ::std::hash::Hash for ServiceConstants_Values { - fn hash(&self, state: &mut H) { - state.write_i32(::protobuf::ProtobufEnum::value(self)) - } -} - -impl ::protobuf::ProtobufEnum for ServiceConstants_Values { - fn value(&self) -> i32 { - match *self { - ServiceConstants_Values::VALUES_UNSPECIFIED => 0, - ServiceConstants_Values::MAX_READ_CHUNK_BYTES => 2097152, - ServiceConstants_Values::MAX_WRITE_CHUNK_BYTES => 2097152, - ServiceConstants_Values::MAX_OBJECT_SIZE_MB => 5242880, - ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_NAME_BYTES => 1024, - ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES => 4096, - ServiceConstants_Values::MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES => 8192, - ServiceConstants_Values::MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES => 20480, - ServiceConstants_Values::MAX_NOTIFICATION_CONFIGS_PER_BUCKET => 100, - ServiceConstants_Values::MAX_LIFECYCLE_RULES_PER_BUCKET => 100, - ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTES => 5, - ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH => 256, - ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH => 1024, - ServiceConstants_Values::MAX_LABELS_ENTRIES_COUNT => 64, - ServiceConstants_Values::MAX_LABELS_KEY_VALUE_LENGTH => 63, - ServiceConstants_Values::MAX_LABELS_KEY_VALUE_BYTES => 128, - ServiceConstants_Values::MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST => 1000, - ServiceConstants_Values::SPLIT_TOKEN_MAX_VALID_DAYS => 14, - } - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ServiceConstants_Values::VALUES_UNSPECIFIED), - 2097152 => ::std::option::Option::Some(ServiceConstants_Values::MAX_READ_CHUNK_BYTES), - 5242880 => ::std::option::Option::Some(ServiceConstants_Values::MAX_OBJECT_SIZE_MB), - 1024 => ::std::option::Option::Some(ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_NAME_BYTES), - 4096 => ::std::option::Option::Some(ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES), - 8192 => ::std::option::Option::Some(ServiceConstants_Values::MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES), - 20480 => ::std::option::Option::Some(ServiceConstants_Values::MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES), - 100 => ::std::option::Option::Some(ServiceConstants_Values::MAX_NOTIFICATION_CONFIGS_PER_BUCKET), - 5 => ::std::option::Option::Some(ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTES), - 256 => ::std::option::Option::Some(ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH), - 64 => ::std::option::Option::Some(ServiceConstants_Values::MAX_LABELS_ENTRIES_COUNT), - 63 => ::std::option::Option::Some(ServiceConstants_Values::MAX_LABELS_KEY_VALUE_LENGTH), - 128 => ::std::option::Option::Some(ServiceConstants_Values::MAX_LABELS_KEY_VALUE_BYTES), - 1000 => ::std::option::Option::Some(ServiceConstants_Values::MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST), - 14 => ::std::option::Option::Some(ServiceConstants_Values::SPLIT_TOKEN_MAX_VALID_DAYS), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ServiceConstants_Values] = &[ - ServiceConstants_Values::VALUES_UNSPECIFIED, - ServiceConstants_Values::MAX_READ_CHUNK_BYTES, - ServiceConstants_Values::MAX_WRITE_CHUNK_BYTES, - ServiceConstants_Values::MAX_OBJECT_SIZE_MB, - ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_NAME_BYTES, - ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES, - ServiceConstants_Values::MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES, - ServiceConstants_Values::MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES, - ServiceConstants_Values::MAX_NOTIFICATION_CONFIGS_PER_BUCKET, - ServiceConstants_Values::MAX_LIFECYCLE_RULES_PER_BUCKET, - ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTES, - ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH, - ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH, - ServiceConstants_Values::MAX_LABELS_ENTRIES_COUNT, - ServiceConstants_Values::MAX_LABELS_KEY_VALUE_LENGTH, - ServiceConstants_Values::MAX_LABELS_KEY_VALUE_BYTES, - ServiceConstants_Values::MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST, - ServiceConstants_Values::SPLIT_TOKEN_MAX_VALID_DAYS, - ]; - 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::("ServiceConstants.Values", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ServiceConstants_Values { -} - -impl ::std::default::Default for ServiceConstants_Values { - fn default() -> Self { - ServiceConstants_Values::VALUES_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ServiceConstants_Values { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1fgoogle/storage/v1/storage.proto\x12\x11google.storage.v1\x1a\x1fgo\ - ogle/api/field_behavior.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\ - \x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\ - \x20google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.pro\ - to\x1a)google/storage/v1/storage_resources.proto\x1a\x17google/api/clien\ - t.proto\"\xb8\x01\n\x20DeleteBucketAccessControlRequest\x12\x1b\n\x06buc\ - ket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\x18\ - \x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15common_request_params\ - \x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13common\ - RequestParams\"\xb5\x01\n\x1dGetBucketAccessControlRequest\x12\x1b\n\x06\ - bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\ - \x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15common_request_pa\ - rams\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13co\ - mmonRequestParams\"\xf7\x01\n\x20InsertBucketAccessControlRequest\x12\ - \x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12Z\n\x15b\ - ucket_access_control\x18\x03\x20\x01(\x0b2&.google.storage.v1.BucketAcce\ - ssControlR\x13bucketAccessControl\x12Z\n\x15common_request_params\x18\ - \x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequ\ - estParams\"\x9a\x01\n\x1fListBucketAccessControlsRequest\x12\x1b\n\x06bu\ - cket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12Z\n\x15common_reques\ - t_params\x18\x03\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\ - \x13commonRequestParams\"\xd0\x02\n\x1fPatchBucketAccessControlRequest\ - \x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\ - \n\x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15bucke\ - t_access_control\x18\x04\x20\x01(\x0b2&.google.storage.v1.BucketAccessCo\ - ntrolR\x13bucketAccessControl\x12;\n\x0bupdate_mask\x18\x05\x20\x01(\x0b\ - 2\x1a.google.protobuf.FieldMaskR\nupdateMask\x12Z\n\x15common_request_pa\ - rams\x18\x06\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13co\ - mmonRequestParams\"\x94\x02\n\x20UpdateBucketAccessControlRequest\x12\ - \x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\ - \x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15bucket_\ - access_control\x18\x04\x20\x01(\x0b2&.google.storage.v1.BucketAccessCont\ - rolR\x13bucketAccessControl\x12Z\n\x15common_request_params\x18\x05\x20\ - \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ - s\"\xbf\x02\n\x13DeleteBucketRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01\ - (\tR\x06bucketB\x03\xe0A\x02\x12S\n\x17if_metageneration_match\x18\x02\ - \x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerationMatch\ - \x12Z\n\x1bif_metageneration_not_match\x18\x03\x20\x01(\x0b2\x1b.google.\ - protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12Z\n\x15common_reques\ - t_params\x18\x05\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\ - \x13commonRequestParams\"\x87\x03\n\x10GetBucketRequest\x12\x1b\n\x06buc\ - ket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12S\n\x17if_metagenerat\ - ion_match\x18\x02\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMet\ - agenerationMatch\x12Z\n\x1bif_metageneration_not_match\x18\x03\x20\x01(\ - \x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12I\n\ - \nprojection\x18\x04\x20\x01(\x0e2).google.storage.v1.CommonEnums.Projec\ - tionR\nprojection\x12Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&\ - .google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xe0\x03\ - \n\x13InsertBucketRequest\x12Y\n\x0epredefined_acl\x18\x01\x20\x01(\x0e2\ - 2.google.storage.v1.CommonEnums.PredefinedBucketAclR\rpredefinedAcl\x12u\ - \n\x1dpredefined_default_object_acl\x18\x02\x20\x01(\x0e22.google.storag\ - e.v1.CommonEnums.PredefinedObjectAclR\x1apredefinedDefaultObjectAcl\x12\ - \x1d\n\x07project\x18\x03\x20\x01(\tR\x07projectB\x03\xe0A\x02\x12I\n\np\ - rojection\x18\x04\x20\x01(\x0e2).google.storage.v1.CommonEnums.Projectio\ - nR\nprojection\x121\n\x06bucket\x18\x06\x20\x01(\x0b2\x19.google.storage\ - .v1.BucketR\x06bucket\x12Z\n\x15common_request_params\x18\x07\x20\x01(\ - \x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\ - \x8e\x01\n\x13ListChannelsRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\t\ - R\x06bucketB\x03\xe0A\x02\x12Z\n\x15common_request_params\x18\x03\x20\ - \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ - s\"\xb2\x02\n\x12ListBucketsRequest\x12\x1f\n\x0bmax_results\x18\x01\x20\ - \x01(\x05R\nmaxResults\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageTo\ - ken\x12\x16\n\x06prefix\x18\x03\x20\x01(\tR\x06prefix\x12\x1d\n\x07proje\ - ct\x18\x04\x20\x01(\tR\x07projectB\x03\xe0A\x02\x12I\n\nprojection\x18\ - \x05\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\nprojectio\ - n\x12Z\n\x15common_request_params\x18\x07\x20\x01(\x0b2&.google.storage.\ - v1.CommonRequestParamsR\x13commonRequestParams\"\xcd\x01\n\x1aLockRetent\ - ionPolicyRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\ - \xe0A\x02\x126\n\x17if_metageneration_match\x18\x02\x20\x01(\x03R\x15ifM\ - etagenerationMatch\x12Z\n\x15common_request_params\x18\x04\x20\x01(\x0b2\ - &.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xcf\ - \x05\n\x12PatchBucketRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06\ - bucketB\x03\xe0A\x02\x12S\n\x17if_metageneration_match\x18\x02\x20\x01(\ - \x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerationMatch\x12Z\n\ - \x1bif_metageneration_not_match\x18\x03\x20\x01(\x0b2\x1b.google.protobu\ - f.Int64ValueR\x18ifMetagenerationNotMatch\x12Y\n\x0epredefined_acl\x18\ - \x04\x20\x01(\x0e22.google.storage.v1.CommonEnums.PredefinedBucketAclR\r\ - predefinedAcl\x12u\n\x1dpredefined_default_object_acl\x18\x05\x20\x01(\ - \x0e22.google.storage.v1.CommonEnums.PredefinedObjectAclR\x1apredefinedD\ - efaultObjectAcl\x12I\n\nprojection\x18\x06\x20\x01(\x0e2).google.storage\ - .v1.CommonEnums.ProjectionR\nprojection\x125\n\x08metadata\x18\x08\x20\ - \x01(\x0b2\x19.google.storage.v1.BucketR\x08metadata\x12;\n\x0bupdate_ma\ - sk\x18\t\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMask\x12Z\n\ - \x15common_request_params\x18\n\x20\x01(\x0b2&.google.storage.v1.CommonR\ - equestParamsR\x13commonRequestParams\"\x93\x05\n\x13UpdateBucketRequest\ - \x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12S\n\ - \x17if_metageneration_match\x18\x02\x20\x01(\x0b2\x1b.google.protobuf.In\ - t64ValueR\x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_not_match\ - \x18\x03\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerati\ - onNotMatch\x12Y\n\x0epredefined_acl\x18\x04\x20\x01(\x0e22.google.storag\ - e.v1.CommonEnums.PredefinedBucketAclR\rpredefinedAcl\x12u\n\x1dpredefine\ - d_default_object_acl\x18\x05\x20\x01(\x0e22.google.storage.v1.CommonEnum\ - s.PredefinedObjectAclR\x1apredefinedDefaultObjectAcl\x12I\n\nprojection\ - \x18\x06\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\nproje\ - ction\x125\n\x08metadata\x18\x08\x20\x01(\x0b2\x19.google.storage.v1.Buc\ - ketR\x08metadata\x12Z\n\x15common_request_params\x18\t\x20\x01(\x0b2&.go\ - ogle.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xa6\x01\n\ - \x12StopChannelRequest\x124\n\x07channel\x18\x01\x20\x01(\x0b2\x1a.googl\ - e.storage.v1.ChannelR\x07channel\x12Z\n\x15common_request_params\x18\x02\ - \x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestP\ - arams\"\xbf\x01\n'DeleteDefaultObjectAccessControlRequest\x12\x1b\n\x06b\ - ucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\ - \x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15common_request_pa\ - rams\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13co\ - mmonRequestParams\"\xbc\x01\n$GetDefaultObjectAccessControlRequest\x12\ - \x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\ - \x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15common_\ - request_params\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestPar\ - amsR\x13commonRequestParams\"\xfe\x01\n'InsertDefaultObjectAccessControl\ - Request\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\ - \x12Z\n\x15object_access_control\x18\x03\x20\x01(\x0b2&.google.storage.v\ - 1.ObjectAccessControlR\x13objectAccessControl\x12Z\n\x15common_request_p\ - arams\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13c\ - ommonRequestParams\"\xd2\x02\n&ListDefaultObjectAccessControlsRequest\ - \x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12S\n\ - \x17if_metageneration_match\x18\x02\x20\x01(\x0b2\x1b.google.protobuf.In\ - t64ValueR\x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_not_match\ - \x18\x03\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerati\ - onNotMatch\x12Z\n\x15common_request_params\x18\x05\x20\x01(\x0b2&.google\ - .storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xd7\x02\n&Patc\ - hDefaultObjectAccessControlRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\ - \tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\x18\x02\x20\x01(\tR\x06e\ - ntityB\x03\xe0A\x02\x12Z\n\x15object_access_control\x18\x04\x20\x01(\x0b\ - 2&.google.storage.v1.ObjectAccessControlR\x13objectAccessControl\x12;\n\ - \x0bupdate_mask\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nup\ - dateMask\x12Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&.google.s\ - torage.v1.CommonRequestParamsR\x13commonRequestParams\"\x9b\x02\n'Update\ - DefaultObjectAccessControlRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\t\ - R\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\x18\x02\x20\x01(\tR\x06ent\ - ityB\x03\xe0A\x02\x12Z\n\x15object_access_control\x18\x04\x20\x01(\x0b2&\ - .google.storage.v1.ObjectAccessControlR\x13objectAccessControl\x12Z\n\ - \x15common_request_params\x18\x05\x20\x01(\x0b2&.google.storage.v1.Commo\ - nRequestParamsR\x13commonRequestParams\"\xbd\x01\n\x19DeleteNotification\ - Request\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\ - \x12'\n\x0cnotification\x18\x02\x20\x01(\tR\x0cnotificationB\x03\xe0A\ - \x02\x12Z\n\x15common_request_params\x18\x04\x20\x01(\x0b2&.google.stora\ - ge.v1.CommonRequestParamsR\x13commonRequestParams\"\xba\x01\n\x16GetNoti\ - ficationRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\ - \xe0A\x02\x12'\n\x0cnotification\x18\x02\x20\x01(\tR\x0cnotificationB\ - \x03\xe0A\x02\x12Z\n\x15common_request_params\x18\x04\x20\x01(\x0b2&.goo\ - gle.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xd9\x01\n\ - \x19InsertNotificationRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\ - \x06bucketB\x03\xe0A\x02\x12C\n\x0cnotification\x18\x03\x20\x01(\x0b2\ - \x1f.google.storage.v1.NotificationR\x0cnotification\x12Z\n\x15common_re\ - quest_params\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParam\ - sR\x13commonRequestParams\"\x93\x01\n\x18ListNotificationsRequest\x12\ - \x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12Z\n\x15c\ - ommon_request_params\x18\x03\x20\x01(\x0b2&.google.storage.v1.CommonRequ\ - estParamsR\x13commonRequestParams\"\xf5\x01\n\x20DeleteObjectAccessContr\ - olRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\ - \x02\x12\x1b\n\x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12\ - \x1b\n\x06object\x18\x03\x20\x01(\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\n\ - generation\x18\x04\x20\x01(\x03R\ngeneration\x12Z\n\x15common_request_pa\ - rams\x18\x06\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13co\ - mmonRequestParams\"\xf2\x01\n\x1dGetObjectAccessControlRequest\x12\x1b\n\ - \x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06enti\ - ty\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12\x1b\n\x06object\x18\ - \x03\x20\x01(\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\ngeneration\x18\x04\ - \x20\x01(\x03R\ngeneration\x12Z\n\x15common_request_params\x18\x06\x20\ - \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ - s\"\xb4\x02\n\x20InsertObjectAccessControlRequest\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\x12\x1e\n\ngeneration\x18\x03\x20\ - \x01(\x03R\ngeneration\x12Z\n\x15object_access_control\x18\x05\x20\x01(\ - \x0b2&.google.storage.v1.ObjectAccessControlR\x13objectAccessControl\x12\ - Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&.google.storage.v1.Co\ - mmonRequestParamsR\x13commonRequestParams\"\xd7\x01\n\x1fListObjectAcces\ - sControlsRequest\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\x12\x1e\n\ngeneration\x18\x03\x20\x01(\x03R\ngeneration\x12Z\n\x15c\ - ommon_request_params\x18\x05\x20\x01(\x0b2&.google.storage.v1.CommonRequ\ - estParamsR\x13commonRequestParams\"\x8d\x03\n\x1fPatchObjectAccessContro\ - lRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\ - \x12\x1b\n\x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12\x1b\ - \n\x06object\x18\x03\x20\x01(\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\ngene\ - ration\x18\x04\x20\x01(\x03R\ngeneration\x12Z\n\x15object_access_control\ - \x18\x05\x20\x01(\x0b2&.google.storage.v1.ObjectAccessControlR\x13object\ - AccessControl\x12Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&.goo\ - gle.storage.v1.CommonRequestParamsR\x13commonRequestParams\x12;\n\x0bupd\ - ate_mask\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMas\ - k\"\x8e\x03\n\x20UpdateObjectAccessControlRequest\x12\x1b\n\x06bucket\ - \x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\x18\x02\ - \x20\x01(\tR\x06entityB\x03\xe0A\x02\x12\x1b\n\x06object\x18\x03\x20\x01\ - (\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\ngeneration\x18\x04\x20\x01(\x03R\ - \ngeneration\x12Z\n\x15object_access_control\x18\x06\x20\x01(\x0b2&.goog\ - le.storage.v1.ObjectAccessControlR\x13objectAccessControl\x12Z\n\x15comm\ - on_request_params\x18\x07\x20\x01(\x0b2&.google.storage.v1.CommonRequest\ - ParamsR\x13commonRequestParams\x12;\n\x0bupdate_mask\x18\x08\x20\x01(\ - \x0b2\x1a.google.protobuf.FieldMaskR\nupdateMask\"\xc2\x08\n\x14ComposeO\ - bjectRequest\x122\n\x12destination_bucket\x18\x01\x20\x01(\tR\x11destina\ - tionBucketB\x03\xe0A\x02\x122\n\x12destination_object\x18\x02\x20\x01(\t\ - R\x11destinationObjectB\x03\xe0A\x02\x12p\n\x1adestination_predefined_ac\ - l\x18\x03\x20\x01(\x0e22.google.storage.v1.CommonEnums.PredefinedObjectA\ - clR\x18destinationPredefinedAcl\x12;\n\x0bdestination\x18\x0b\x20\x01(\ - \x0b2\x19.google.storage.v1.ObjectR\x0bdestination\x12\\\n\x0esource_obj\ - ects\x18\x0c\x20\x03(\x0b25.google.storage.v1.ComposeObjectRequest.Sourc\ - eObjectsR\rsourceObjects\x12K\n\x13if_generation_match\x18\x04\x20\x01(\ - \x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\x12S\n\x17if_\ - metageneration_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64Valu\ - eR\x15ifMetagenerationMatch\x12\x20\n\x0ckms_key_name\x18\x06\x20\x01(\t\ - R\nkmsKeyName\x12m\n\x1ccommon_object_request_params\x18\t\x20\x01(\x0b2\ - ,.google.storage.v1.CommonObjectRequestParamsR\x19commonObjectRequestPar\ - ams\x12Z\n\x15common_request_params\x18\n\x20\x01(\x0b2&.google.storage.\ - v1.CommonRequestParamsR\x13commonRequestParams\x1a\xa5\x02\n\rSourceObje\ - cts\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1e\n\ngeneration\ - \x18\x02\x20\x01(\x03R\ngeneration\x12|\n\x14object_preconditions\x18\ - \x03\x20\x01(\x0b2I.google.storage.v1.ComposeObjectRequest.SourceObjects\ - .ObjectPreconditionsR\x13objectPreconditions\x1ab\n\x13ObjectPreconditio\ - ns\x12K\n\x13if_generation_match\x18\x01\x20\x01(\x0b2\x1b.google.protob\ - uf.Int64ValueR\x11ifGenerationMatch\"\xd2\x0b\n\x11CopyObjectRequest\x12\ - 2\n\x12destination_bucket\x18\x01\x20\x01(\tR\x11destinationBucketB\x03\ - \xe0A\x02\x122\n\x12destination_object\x18\x02\x20\x01(\tR\x11destinatio\ - nObjectB\x03\xe0A\x02\x12p\n\x1adestination_predefined_acl\x18\x03\x20\ - \x01(\x0e22.google.storage.v1.CommonEnums.PredefinedObjectAclR\x18destin\ - ationPredefinedAcl\x12K\n\x13if_generation_match\x18\x04\x20\x01(\x0b2\ - \x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\x12R\n\x17if_gener\ - ation_not_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\ - \x14ifGenerationNotMatch\x12S\n\x17if_metageneration_match\x18\x06\x20\ - \x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerationMatch\x12Z\ - \n\x1bif_metageneration_not_match\x18\x07\x20\x01(\x0b2\x1b.google.proto\ - buf.Int64ValueR\x18ifMetagenerationNotMatch\x12X\n\x1aif_source_generati\ - on_match\x18\x08\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x17ifSour\ - ceGenerationMatch\x12_\n\x1eif_source_generation_not_match\x18\t\x20\x01\ - (\x0b2\x1b.google.protobuf.Int64ValueR\x1aifSourceGenerationNotMatch\x12\ - `\n\x1eif_source_metageneration_match\x18\n\x20\x01(\x0b2\x1b.google.pro\ - tobuf.Int64ValueR\x1bifSourceMetagenerationMatch\x12g\n\"if_source_metag\ - eneration_not_match\x18\x0b\x20\x01(\x0b2\x1b.google.protobuf.Int64Value\ - R\x1eifSourceMetagenerationNotMatch\x12I\n\nprojection\x18\x0c\x20\x01(\ - \x0e2).google.storage.v1.CommonEnums.ProjectionR\nprojection\x12(\n\rsou\ - rce_bucket\x18\r\x20\x01(\tR\x0csourceBucketB\x03\xe0A\x02\x12(\n\rsourc\ - e_object\x18\x0e\x20\x01(\tR\x0csourceObjectB\x03\xe0A\x02\x12+\n\x11sou\ - rce_generation\x18\x0f\x20\x01(\x03R\x10sourceGeneration\x12;\n\x0bdesti\ - nation\x18\x11\x20\x01(\x0b2\x19.google.storage.v1.ObjectR\x0bdestinatio\ - n\x127\n\x18destination_kms_key_name\x18\x14\x20\x01(\tR\x15destinationK\ - msKeyName\x12m\n\x1ccommon_object_request_params\x18\x12\x20\x01(\x0b2,.\ - google.storage.v1.CommonObjectRequestParamsR\x19commonObjectRequestParam\ - s\x12Z\n\x15common_request_params\x18\x13\x20\x01(\x0b2&.google.storage.\ - v1.CommonRequestParamsR\x13commonRequestParams\"\xa9\x05\n\x13DeleteObje\ - ctRequest\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\x12\ - \x1b\n\tupload_id\x18\x03\x20\x01(\tR\x08uploadId\x12\x1e\n\ngeneration\ - \x18\x04\x20\x01(\x03R\ngeneration\x12K\n\x13if_generation_match\x18\x05\ - \x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\x12R\ - \n\x17if_generation_not_match\x18\x06\x20\x01(\x0b2\x1b.google.protobuf.\ - Int64ValueR\x14ifGenerationNotMatch\x12S\n\x17if_metageneration_match\ - \x18\x07\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerati\ - onMatch\x12Z\n\x1bif_metageneration_not_match\x18\x08\x20\x01(\x0b2\x1b.\ - google.protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12m\n\x1ccommon\ - _object_request_params\x18\n\x20\x01(\x0b2,.google.storage.v1.CommonObje\ - ctRequestParamsR\x19commonObjectRequestParams\x12Z\n\x15common_request_p\ - arams\x18\x0b\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13c\ - ommonRequestParams\"\xc4\x05\n\x15GetObjectMediaRequest\x12\x16\n\x06buc\ - ket\x18\x01\x20\x01(\tR\x06bucket\x12\x16\n\x06object\x18\x02\x20\x01(\t\ - R\x06object\x12\x1e\n\ngeneration\x18\x03\x20\x01(\x03R\ngeneration\x12\ - \x1f\n\x0bread_offset\x18\x04\x20\x01(\x03R\nreadOffset\x12\x1d\n\nread_\ - limit\x18\x05\x20\x01(\x03R\treadLimit\x12K\n\x13if_generation_match\x18\ - \x06\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\ - \x12R\n\x17if_generation_not_match\x18\x07\x20\x01(\x0b2\x1b.google.prot\ - obuf.Int64ValueR\x14ifGenerationNotMatch\x12S\n\x17if_metageneration_mat\ - ch\x18\x08\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenera\ - tionMatch\x12Z\n\x1bif_metageneration_not_match\x18\t\x20\x01(\x0b2\x1b.\ - google.protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12m\n\x1ccommon\ - _object_request_params\x18\x0b\x20\x01(\x0b2,.google.storage.v1.CommonOb\ - jectRequestParamsR\x19commonObjectRequestParams\x12Z\n\x15common_request\ - _params\x18\x0c\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\ - \x13commonRequestParams\"\xd4\x05\n\x10GetObjectRequest\x12\x1b\n\x06buc\ - ket\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\ngeneration\x12K\n\x13if_generation_match\x18\x04\x20\x01\ - (\x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\x12R\n\x17if\ - _generation_not_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64Val\ - ueR\x14ifGenerationNotMatch\x12S\n\x17if_metageneration_match\x18\x06\ - \x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerationMatch\ - \x12Z\n\x1bif_metageneration_not_match\x18\x07\x20\x01(\x0b2\x1b.google.\ - protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12I\n\nprojection\x18\ - \x08\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\nprojectio\ - n\x12m\n\x1ccommon_object_request_params\x18\n\x20\x01(\x0b2,.google.sto\ - rage.v1.CommonObjectRequestParamsR\x19commonObjectRequestParams\x12Z\n\ - \x15common_request_params\x18\x0b\x20\x01(\x0b2&.google.storage.v1.Commo\ - nRequestParamsR\x13commonRequestParams\"\xb3\x02\n\x16GetObjectMediaResp\ - onse\x12M\n\x10checksummed_data\x18\x01\x20\x01(\x0b2\".google.storage.v\ - 1.ChecksummedDataR\x0fchecksummedData\x12M\n\x10object_checksums\x18\x02\ - \x20\x01(\x0b2\".google.storage.v1.ObjectChecksumsR\x0fobjectChecksums\ - \x12D\n\rcontent_range\x18\x03\x20\x01(\x0b2\x1f.google.storage.v1.Conte\ - ntRangeR\x0ccontentRange\x125\n\x08metadata\x18\x04\x20\x01(\x0b2\x19.go\ - ogle.storage.v1.ObjectR\x08metadata\"\xc1\x04\n\x10InsertObjectSpec\x125\ - \n\x08resource\x18\x01\x20\x01(\x0b2\x19.google.storage.v1.ObjectR\x08re\ - source\x12Y\n\x0epredefined_acl\x18\x02\x20\x01(\x0e22.google.storage.v1\ - .CommonEnums.PredefinedObjectAclR\rpredefinedAcl\x12K\n\x13if_generation\ - _match\x18\x03\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenera\ - tionMatch\x12R\n\x17if_generation_not_match\x18\x04\x20\x01(\x0b2\x1b.go\ - ogle.protobuf.Int64ValueR\x14ifGenerationNotMatch\x12S\n\x17if_metagener\ - ation_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifM\ - etagenerationMatch\x12Z\n\x1bif_metageneration_not_match\x18\x06\x20\x01\ - (\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12I\ - \n\nprojection\x18\x07\x20\x01(\x0e2).google.storage.v1.CommonEnums.Proj\ - ectionR\nprojection\"\xa2\x05\n\x13InsertObjectRequest\x12\x1d\n\tupload\ - _id\x18\x01\x20\x01(\tH\0R\x08uploadId\x12S\n\x12insert_object_spec\x18\ - \x02\x20\x01(\x0b2#.google.storage.v1.InsertObjectSpecH\0R\x10insertObje\ - ctSpec\x12&\n\x0cwrite_offset\x18\x03\x20\x01(\x03R\x0bwriteOffsetB\x03\ - \xe0A\x02\x12O\n\x10checksummed_data\x18\x04\x20\x01(\x0b2\".google.stor\ - age.v1.ChecksummedDataH\x01R\x0fchecksummedData\x12H\n\treference\x18\ - \x05\x20\x01(\x0b2(.google.storage.v1.GetObjectMediaRequestH\x01R\trefer\ - ence\x12M\n\x10object_checksums\x18\x06\x20\x01(\x0b2\".google.storage.v\ - 1.ObjectChecksumsR\x0fobjectChecksums\x12!\n\x0cfinish_write\x18\x07\x20\ - \x01(\x08R\x0bfinishWrite\x12m\n\x1ccommon_object_request_params\x18\x08\ - \x20\x01(\x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19commonOb\ - jectRequestParams\x12Z\n\x15common_request_params\x18\t\x20\x01(\x0b2&.g\ - oogle.storage.v1.CommonRequestParamsR\x13commonRequestParamsB\x0f\n\rfir\ - st_messageB\x06\n\x04data\"\xa8\x03\n\x12ListObjectsRequest\x12\x1b\n\ - \x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1c\n\tdelimi\ - ter\x18\x02\x20\x01(\tR\tdelimiter\x12<\n\x1ainclude_trailing_delimiter\ - \x18\x03\x20\x01(\x08R\x18includeTrailingDelimiter\x12\x1f\n\x0bmax_resu\ - lts\x18\x04\x20\x01(\x05R\nmaxResults\x12\x1d\n\npage_token\x18\x05\x20\ - \x01(\tR\tpageToken\x12\x16\n\x06prefix\x18\x06\x20\x01(\tR\x06prefix\ - \x12I\n\nprojection\x18\x07\x20\x01(\x0e2).google.storage.v1.CommonEnums\ - .ProjectionR\nprojection\x12\x1a\n\x08versions\x18\t\x20\x01(\x08R\x08ve\ - rsions\x12Z\n\x15common_request_params\x18\n\x20\x01(\x0b2&.google.stora\ - ge.v1.CommonRequestParamsR\x13commonRequestParams\"\x86\x02\n\x17QueryWr\ - iteStatusRequest\x12\x20\n\tupload_id\x18\x01\x20\x01(\tR\x08uploadIdB\ - \x03\xe0A\x02\x12m\n\x1ccommon_object_request_params\x18\x02\x20\x01(\ - \x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19commonObjectReque\ - stParams\x12Z\n\x15common_request_params\x18\x03\x20\x01(\x0b2&.google.s\ - torage.v1.CommonRequestParamsR\x13commonRequestParams\"]\n\x18QueryWrite\ - StatusResponse\x12%\n\x0ecommitted_size\x18\x01\x20\x01(\x03R\rcommitted\ - Size\x12\x1a\n\x08complete\x18\x02\x20\x01(\x08R\x08complete\"\x80\x0e\n\ - \x14RewriteObjectRequest\x122\n\x12destination_bucket\x18\x01\x20\x01(\t\ - R\x11destinationBucketB\x03\xe0A\x02\x122\n\x12destination_object\x18\ - \x02\x20\x01(\tR\x11destinationObjectB\x03\xe0A\x02\x127\n\x18destinatio\ - n_kms_key_name\x18\x03\x20\x01(\tR\x15destinationKmsKeyName\x12p\n\x1ade\ - stination_predefined_acl\x18\x04\x20\x01(\x0e22.google.storage.v1.Common\ - Enums.PredefinedObjectAclR\x18destinationPredefinedAcl\x12K\n\x13if_gene\ - ration_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x11if\ - GenerationMatch\x12R\n\x17if_generation_not_match\x18\x06\x20\x01(\x0b2\ - \x1b.google.protobuf.Int64ValueR\x14ifGenerationNotMatch\x12S\n\x17if_me\ - tageneration_match\x18\x07\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\ - \x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_not_match\x18\x08\ - \x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerationNotMat\ - ch\x12X\n\x1aif_source_generation_match\x18\t\x20\x01(\x0b2\x1b.google.p\ - rotobuf.Int64ValueR\x17ifSourceGenerationMatch\x12_\n\x1eif_source_gener\ - ation_not_match\x18\n\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x1ai\ - fSourceGenerationNotMatch\x12`\n\x1eif_source_metageneration_match\x18\ - \x0b\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x1bifSourceMetagenera\ - tionMatch\x12g\n\"if_source_metageneration_not_match\x18\x0c\x20\x01(\ - \x0b2\x1b.google.protobuf.Int64ValueR\x1eifSourceMetagenerationNotMatch\ - \x12>\n\x1cmax_bytes_rewritten_per_call\x18\r\x20\x01(\x03R\x18maxBytesR\ - ewrittenPerCall\x12I\n\nprojection\x18\x0e\x20\x01(\x0e2).google.storage\ - .v1.CommonEnums.ProjectionR\nprojection\x12#\n\rrewrite_token\x18\x0f\ - \x20\x01(\tR\x0crewriteToken\x12(\n\rsource_bucket\x18\x10\x20\x01(\tR\ - \x0csourceBucketB\x03\xe0A\x02\x12(\n\rsource_object\x18\x11\x20\x01(\tR\ - \x0csourceObjectB\x03\xe0A\x02\x12+\n\x11source_generation\x18\x12\x20\ - \x01(\x03R\x10sourceGeneration\x121\n\x06object\x18\x14\x20\x01(\x0b2\ - \x19.google.storage.v1.ObjectR\x06object\x12G\n\x20copy_source_encryptio\ - n_algorithm\x18\x15\x20\x01(\tR\x1dcopySourceEncryptionAlgorithm\x12;\n\ - \x1acopy_source_encryption_key\x18\x16\x20\x01(\tR\x17copySourceEncrypti\ - onKey\x12H\n!copy_source_encryption_key_sha256\x18\x17\x20\x01(\tR\x1dco\ - pySourceEncryptionKeySha256\x12m\n\x1ccommon_object_request_params\x18\ - \x18\x20\x01(\x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19comm\ - onObjectRequestParams\x12Z\n\x15common_request_params\x18\x19\x20\x01(\ - \x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\ - \xd6\x01\n\x0fRewriteResponse\x122\n\x15total_bytes_rewritten\x18\x01\ - \x20\x01(\x03R\x13totalBytesRewritten\x12\x1f\n\x0bobject_size\x18\x02\ - \x20\x01(\x03R\nobjectSize\x12\x12\n\x04done\x18\x03\x20\x01(\x08R\x04do\ - ne\x12#\n\rrewrite_token\x18\x04\x20\x01(\tR\x0crewriteToken\x125\n\x08r\ - esource\x18\x05\x20\x01(\x0b2\x19.google.storage.v1.ObjectR\x08resource\ - \"\xba\x02\n\x1aStartResumableWriteRequest\x12Q\n\x12insert_object_spec\ - \x18\x01\x20\x01(\x0b2#.google.storage.v1.InsertObjectSpecR\x10insertObj\ - ectSpec\x12m\n\x1ccommon_object_request_params\x18\x03\x20\x01(\x0b2,.go\ - ogle.storage.v1.CommonObjectRequestParamsR\x19commonObjectRequestParams\ - \x12Z\n\x15common_request_params\x18\x04\x20\x01(\x0b2&.google.storage.v\ - 1.CommonRequestParamsR\x13commonRequestParams\":\n\x1bStartResumableWrit\ - eResponse\x12\x1b\n\tupload_id\x18\x01\x20\x01(\tR\x08uploadId\"\xa5\x07\ - \n\x12PatchObjectRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06buck\ - etB\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\ngeneration\x12K\n\ - \x13if_generation_match\x18\x04\x20\x01(\x0b2\x1b.google.protobuf.Int64V\ - alueR\x11ifGenerationMatch\x12R\n\x17if_generation_not_match\x18\x05\x20\ - \x01(\x0b2\x1b.google.protobuf.Int64ValueR\x14ifGenerationNotMatch\x12S\ - \n\x17if_metageneration_match\x18\x06\x20\x01(\x0b2\x1b.google.protobuf.\ - Int64ValueR\x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_not_mat\ - ch\x18\x07\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenera\ - tionNotMatch\x12Y\n\x0epredefined_acl\x18\x08\x20\x01(\x0e22.google.stor\ - age.v1.CommonEnums.PredefinedObjectAclR\rpredefinedAcl\x12I\n\nprojectio\ - n\x18\t\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\nprojec\ - tion\x125\n\x08metadata\x18\x0b\x20\x01(\x0b2\x19.google.storage.v1.Obje\ - ctR\x08metadata\x12;\n\x0bupdate_mask\x18\x0c\x20\x01(\x0b2\x1a.google.p\ - rotobuf.FieldMaskR\nupdateMask\x12m\n\x1ccommon_object_request_params\ - \x18\r\x20\x01(\x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19co\ - mmonObjectRequestParams\x12Z\n\x15common_request_params\x18\x0e\x20\x01(\ - \x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\ - \xe9\x06\n\x13UpdateObjectRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\t\ - R\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06object\x18\x02\x20\x01(\tR\x06obj\ - ectB\x03\xe0A\x02\x12\x1e\n\ngeneration\x18\x03\x20\x01(\x03R\ngeneratio\ - n\x12K\n\x13if_generation_match\x18\x04\x20\x01(\x0b2\x1b.google.protobu\ - f.Int64ValueR\x11ifGenerationMatch\x12R\n\x17if_generation_not_match\x18\ - \x05\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x14ifGenerationNotMat\ - ch\x12S\n\x17if_metageneration_match\x18\x06\x20\x01(\x0b2\x1b.google.pr\ - otobuf.Int64ValueR\x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_\ - not_match\x18\x07\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMet\ - agenerationNotMatch\x12Y\n\x0epredefined_acl\x18\x08\x20\x01(\x0e22.goog\ - le.storage.v1.CommonEnums.PredefinedObjectAclR\rpredefinedAcl\x12I\n\npr\ - ojection\x18\t\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\ - \nprojection\x125\n\x08metadata\x18\x0b\x20\x01(\x0b2\x19.google.storage\ - .v1.ObjectR\x08metadata\x12m\n\x1ccommon_object_request_params\x18\x0c\ - \x20\x01(\x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19commonOb\ - jectRequestParams\x12Z\n\x15common_request_params\x18\r\x20\x01(\x0b2&.g\ - oogle.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xdd\x03\n\ - \x16WatchAllObjectsRequest\x12\x16\n\x06bucket\x18\x01\x20\x01(\tR\x06bu\ - cket\x12\x1a\n\x08versions\x18\x02\x20\x01(\x08R\x08versions\x12\x1c\n\t\ - delimiter\x18\x03\x20\x01(\tR\tdelimiter\x12\x1f\n\x0bmax_results\x18\ - \x04\x20\x01(\x05R\nmaxResults\x12\x16\n\x06prefix\x18\x05\x20\x01(\tR\ - \x06prefix\x12<\n\x1ainclude_trailing_delimiter\x18\x06\x20\x01(\x08R\ - \x18includeTrailingDelimiter\x12\x1d\n\npage_token\x18\x07\x20\x01(\tR\t\ - pageToken\x12I\n\nprojection\x18\x08\x20\x01(\x0e2).google.storage.v1.Co\ - mmonEnums.ProjectionR\nprojection\x124\n\x07channel\x18\n\x20\x01(\x0b2\ - \x1a.google.storage.v1.ChannelR\x07channel\x12Z\n\x15common_request_para\ - ms\x18\x0b\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13comm\ - onRequestParams\"\xa1\x01\n\x1fGetProjectServiceAccountRequest\x12\"\n\n\ - project_id\x18\x01\x20\x01(\tR\tprojectIdB\x03\xe0A\x02\x12Z\n\x15common\ - _request_params\x18\x03\x20\x01(\x0b2&.google.storage.v1.CommonRequestPa\ - ramsR\x13commonRequestParams\"\xcf\x01\n\x14CreateHmacKeyRequest\x12\"\n\ - \nproject_id\x18\x01\x20\x01(\tR\tprojectIdB\x03\xe0A\x02\x127\n\x15serv\ - ice_account_email\x18\x02\x20\x01(\tR\x13serviceAccountEmailB\x03\xe0A\ - \x02\x12Z\n\x15common_request_params\x18\x03\x20\x01(\x0b2&.google.stora\ - ge.v1.CommonRequestParamsR\x13commonRequestParams\"o\n\x15CreateHmacKeyR\ - esponse\x12>\n\x08metadata\x18\x01\x20\x01(\x0b2\".google.storage.v1.Hma\ - cKeyMetadataR\x08metadata\x12\x16\n\x06secret\x18\x02\x20\x01(\tR\x06sec\ - ret\"\xb8\x01\n\x14DeleteHmacKeyRequest\x12\x20\n\taccess_id\x18\x01\x20\ - \x01(\tR\x08accessIdB\x03\xe0A\x02\x12\"\n\nproject_id\x18\x02\x20\x01(\ - \tR\tprojectIdB\x03\xe0A\x02\x12Z\n\x15common_request_params\x18\x03\x20\ - \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ - s\"\xb5\x01\n\x11GetHmacKeyRequest\x12\x20\n\taccess_id\x18\x01\x20\x01(\ - \tR\x08accessIdB\x03\xe0A\x02\x12\"\n\nproject_id\x18\x02\x20\x01(\tR\tp\ - rojectIdB\x03\xe0A\x02\x12Z\n\x15common_request_params\x18\x03\x20\x01(\ - \x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\ - \xb5\x02\n\x13ListHmacKeysRequest\x12\"\n\nproject_id\x18\x01\x20\x01(\t\ - R\tprojectIdB\x03\xe0A\x02\x122\n\x15service_account_email\x18\x02\x20\ - \x01(\tR\x13serviceAccountEmail\x12*\n\x11show_deleted_keys\x18\x03\x20\ - \x01(\x08R\x0fshowDeletedKeys\x12\x1f\n\x0bmax_results\x18\x04\x20\x01(\ - \x05R\nmaxResults\x12\x1d\n\npage_token\x18\x05\x20\x01(\tR\tpageToken\ - \x12Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&.google.storage.v\ - 1.CommonRequestParamsR\x13commonRequestParams\"x\n\x14ListHmacKeysRespon\ - se\x12&\n\x0fnext_page_token\x18\x01\x20\x01(\tR\rnextPageToken\x128\n\ - \x05items\x18\x02\x20\x03(\x0b2\".google.storage.v1.HmacKeyMetadataR\x05\ - items\"\xfd\x01\n\x14UpdateHmacKeyRequest\x12\x20\n\taccess_id\x18\x01\ - \x20\x01(\tR\x08accessIdB\x03\xe0A\x02\x12\"\n\nproject_id\x18\x02\x20\ - \x01(\tR\tprojectIdB\x03\xe0A\x02\x12C\n\x08metadata\x18\x03\x20\x01(\ - \x0b2\".google.storage.v1.HmacKeyMetadataR\x08metadataB\x03\xe0A\x02\x12\ - Z\n\x15common_request_params\x18\x05\x20\x01(\x0b2&.google.storage.v1.Co\ - mmonRequestParamsR\x13commonRequestParams\"\xb6\x01\n\x13GetIamPolicyReq\ - uest\x12C\n\x0biam_request\x18\x01\x20\x01(\x0b2\".google.iam.v1.GetIamP\ - olicyRequestR\niamRequest\x12Z\n\x15common_request_params\x18\x02\x20\ - \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ - s\"\xb6\x01\n\x13SetIamPolicyRequest\x12C\n\x0biam_request\x18\x01\x20\ - \x01(\x0b2\".google.iam.v1.SetIamPolicyRequestR\niamRequest\x12Z\n\x15co\ - mmon_request_params\x18\x02\x20\x01(\x0b2&.google.storage.v1.CommonReque\ - stParamsR\x13commonRequestParams\"\xc2\x01\n\x19TestIamPermissionsReques\ - t\x12I\n\x0biam_request\x18\x01\x20\x01(\x0b2(.google.iam.v1.TestIamPerm\ - issionsRequestR\niamRequest\x12Z\n\x15common_request_params\x18\x02\x20\ - \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ - s\"\xa9\x01\n\x19CommonObjectRequestParams\x121\n\x14encryption_algorith\ - m\x18\x01\x20\x01(\tR\x13encryptionAlgorithm\x12%\n\x0eencryption_key\ - \x18\x02\x20\x01(\tR\rencryptionKey\x122\n\x15encryption_key_sha256\x18\ - \x03\x20\x01(\tR\x13encryptionKeySha256\"\x90\x01\n\x13CommonRequestPara\ - ms\x12&\n\x0cuser_project\x18\x01\x20\x01(\tR\x0buserProjectB\x03\xe0A\ - \x02\x12\x1d\n\nquota_user\x18\x02\x20\x01(\tR\tquotaUser\x122\n\x06fiel\ - ds\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\x06fields\"\xca\ - \x05\n\x10ServiceConstants\"\xb5\x05\n\x06Values\x12\x16\n\x12VALUES_UNS\ - PECIFIED\x10\0\x12\x1b\n\x14MAX_READ_CHUNK_BYTES\x10\x80\x80\x80\x01\x12\ - \x1c\n\x15MAX_WRITE_CHUNK_BYTES\x10\x80\x80\x80\x01\x12\x19\n\x12MAX_OBJ\ - ECT_SIZE_MB\x10\x80\x80\xc0\x02\x12)\n$MAX_CUSTOM_METADATA_FIELD_NAME_BY\ - TES\x10\x80\x08\x12*\n%MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES\x10\x80\x20\ - \x12)\n$MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES\x10\x80@\x12*\n$MAX_BUCKET_\ - METADATA_TOTAL_SIZE_BYTES\x10\x80\xa0\x01\x12'\n#MAX_NOTIFICATION_CONFIG\ - S_PER_BUCKET\x10d\x12\"\n\x1eMAX_LIFECYCLE_RULES_PER_BUCKET\x10d\x12&\n\ - \"MAX_NOTIFICATION_CUSTOM_ATTRIBUTES\x10\x05\x121\n,MAX_NOTIFICATION_CUS\ - TOM_ATTRIBUTE_KEY_LENGTH\x10\x80\x02\x123\n.MAX_NOTIFICATION_CUSTOM_ATTR\ - IBUTE_VALUE_LENGTH\x10\x80\x08\x12\x1c\n\x18MAX_LABELS_ENTRIES_COUNT\x10\ - @\x12\x1f\n\x1bMAX_LABELS_KEY_VALUE_LENGTH\x10?\x12\x1f\n\x1aMAX_LABELS_\ - KEY_VALUE_BYTES\x10\x80\x01\x12.\n)MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQ\ - UEST\x10\xe8\x07\x12\x1e\n\x1aSPLIT_TOKEN_MAX_VALID_DAYS\x10\x0e\x1a\x02\ - \x10\x012\x960\n\x07Storage\x12j\n\x19DeleteBucketAccessControl\x123.goo\ - gle.storage.v1.DeleteBucketAccessControlRequest\x1a\x16.google.protobuf.\ - Empty\"\0\x12t\n\x16GetBucketAccessControl\x120.google.storage.v1.GetBuc\ - ketAccessControlRequest\x1a&.google.storage.v1.BucketAccessControl\"\0\ - \x12z\n\x19InsertBucketAccessControl\x123.google.storage.v1.InsertBucket\ - AccessControlRequest\x1a&.google.storage.v1.BucketAccessControl\"\0\x12\ - \x85\x01\n\x18ListBucketAccessControls\x122.google.storage.v1.ListBucket\ - AccessControlsRequest\x1a3.google.storage.v1.ListBucketAccessControlsRes\ - ponse\"\0\x12z\n\x19UpdateBucketAccessControl\x123.google.storage.v1.Upd\ - ateBucketAccessControlRequest\x1a&.google.storage.v1.BucketAccessControl\ - \"\0\x12x\n\x18PatchBucketAccessControl\x122.google.storage.v1.PatchBuck\ - etAccessControlRequest\x1a&.google.storage.v1.BucketAccessControl\"\0\ - \x12P\n\x0cDeleteBucket\x12&.google.storage.v1.DeleteBucketRequest\x1a\ - \x16.google.protobuf.Empty\"\0\x12M\n\tGetBucket\x12#.google.storage.v1.\ - GetBucketRequest\x1a\x19.google.storage.v1.Bucket\"\0\x12S\n\x0cInsertBu\ - cket\x12&.google.storage.v1.InsertBucketRequest\x1a\x19.google.storage.v\ - 1.Bucket\"\0\x12a\n\x0cListChannels\x12&.google.storage.v1.ListChannelsR\ - equest\x1a'.google.storage.v1.ListChannelsResponse\"\0\x12^\n\x0bListBuc\ - kets\x12%.google.storage.v1.ListBucketsRequest\x1a&.google.storage.v1.Li\ - stBucketsResponse\"\0\x12g\n\x19LockBucketRetentionPolicy\x12-.google.st\ - orage.v1.LockRetentionPolicyRequest\x1a\x19.google.storage.v1.Bucket\"\0\ - \x12U\n\x12GetBucketIamPolicy\x12&.google.storage.v1.GetIamPolicyRequest\ - \x1a\x15.google.iam.v1.Policy\"\0\x12U\n\x12SetBucketIamPolicy\x12&.goog\ - le.storage.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\0\x12u\ - \n\x18TestBucketIamPermissions\x12,.google.storage.v1.TestIamPermissions\ - Request\x1a).google.iam.v1.TestIamPermissionsResponse\"\0\x12Q\n\x0bPatc\ - hBucket\x12%.google.storage.v1.PatchBucketRequest\x1a\x19.google.storage\ - .v1.Bucket\"\0\x12S\n\x0cUpdateBucket\x12&.google.storage.v1.UpdateBucke\ - tRequest\x1a\x19.google.storage.v1.Bucket\"\0\x12N\n\x0bStopChannel\x12%\ - .google.storage.v1.StopChannelRequest\x1a\x16.google.protobuf.Empty\"\0\ - \x12x\n\x20DeleteDefaultObjectAccessControl\x12:.google.storage.v1.Delet\ - eDefaultObjectAccessControlRequest\x1a\x16.google.protobuf.Empty\"\0\x12\ - \x82\x01\n\x1dGetDefaultObjectAccessControl\x127.google.storage.v1.GetDe\ - faultObjectAccessControlRequest\x1a&.google.storage.v1.ObjectAccessContr\ - ol\"\0\x12\x88\x01\n\x20InsertDefaultObjectAccessControl\x12:.google.sto\ - rage.v1.InsertDefaultObjectAccessControlRequest\x1a&.google.storage.v1.O\ - bjectAccessControl\"\0\x12\x93\x01\n\x1fListDefaultObjectAccessControls\ - \x129.google.storage.v1.ListDefaultObjectAccessControlsRequest\x1a3.goog\ - le.storage.v1.ListObjectAccessControlsResponse\"\0\x12\x86\x01\n\x1fPatc\ - hDefaultObjectAccessControl\x129.google.storage.v1.PatchDefaultObjectAcc\ - essControlRequest\x1a&.google.storage.v1.ObjectAccessControl\"\0\x12\x88\ - \x01\n\x20UpdateDefaultObjectAccessControl\x12:.google.storage.v1.Update\ - DefaultObjectAccessControlRequest\x1a&.google.storage.v1.ObjectAccessCon\ - trol\"\0\x12\\\n\x12DeleteNotification\x12,.google.storage.v1.DeleteNoti\ - ficationRequest\x1a\x16.google.protobuf.Empty\"\0\x12_\n\x0fGetNotificat\ - ion\x12).google.storage.v1.GetNotificationRequest\x1a\x1f.google.storage\ - .v1.Notification\"\0\x12e\n\x12InsertNotification\x12,.google.storage.v1\ - .InsertNotificationRequest\x1a\x1f.google.storage.v1.Notification\"\0\ - \x12p\n\x11ListNotifications\x12+.google.storage.v1.ListNotificationsReq\ - uest\x1a,.google.storage.v1.ListNotificationsResponse\"\0\x12j\n\x19Dele\ - teObjectAccessControl\x123.google.storage.v1.DeleteObjectAccessControlRe\ - quest\x1a\x16.google.protobuf.Empty\"\0\x12t\n\x16GetObjectAccessControl\ - \x120.google.storage.v1.GetObjectAccessControlRequest\x1a&.google.storag\ - e.v1.ObjectAccessControl\"\0\x12z\n\x19InsertObjectAccessControl\x123.go\ - ogle.storage.v1.InsertObjectAccessControlRequest\x1a&.google.storage.v1.\ - ObjectAccessControl\"\0\x12\x85\x01\n\x18ListObjectAccessControls\x122.g\ - oogle.storage.v1.ListObjectAccessControlsRequest\x1a3.google.storage.v1.\ - ListObjectAccessControlsResponse\"\0\x12x\n\x18PatchObjectAccessControl\ - \x122.google.storage.v1.PatchObjectAccessControlRequest\x1a&.google.stor\ - age.v1.ObjectAccessControl\"\0\x12z\n\x19UpdateObjectAccessControl\x123.\ - google.storage.v1.UpdateObjectAccessControlRequest\x1a&.google.storage.v\ - 1.ObjectAccessControl\"\0\x12U\n\rComposeObject\x12'.google.storage.v1.C\ - omposeObjectRequest\x1a\x19.google.storage.v1.Object\"\0\x12O\n\nCopyObj\ - ect\x12$.google.storage.v1.CopyObjectRequest\x1a\x19.google.storage.v1.O\ - bject\"\0\x12P\n\x0cDeleteObject\x12&.google.storage.v1.DeleteObjectRequ\ - est\x1a\x16.google.protobuf.Empty\"\0\x12M\n\tGetObject\x12#.google.stor\ - age.v1.GetObjectRequest\x1a\x19.google.storage.v1.Object\"\0\x12i\n\x0eG\ - etObjectMedia\x12(.google.storage.v1.GetObjectMediaRequest\x1a).google.s\ - torage.v1.GetObjectMediaResponse\"\00\x01\x12U\n\x0cInsertObject\x12&.go\ - ogle.storage.v1.InsertObjectRequest\x1a\x19.google.storage.v1.Object\"\0\ - (\x01\x12^\n\x0bListObjects\x12%.google.storage.v1.ListObjectsRequest\ - \x1a&.google.storage.v1.ListObjectsResponse\"\0\x12^\n\rRewriteObject\ - \x12'.google.storage.v1.RewriteObjectRequest\x1a\".google.storage.v1.Rew\ - riteResponse\"\0\x12v\n\x13StartResumableWrite\x12-.google.storage.v1.St\ - artResumableWriteRequest\x1a..google.storage.v1.StartResumableWriteRespo\ - nse\"\0\x12m\n\x10QueryWriteStatus\x12*.google.storage.v1.QueryWriteStat\ - usRequest\x1a+.google.storage.v1.QueryWriteStatusResponse\"\0\x12Q\n\x0b\ - PatchObject\x12%.google.storage.v1.PatchObjectRequest\x1a\x19.google.sto\ - rage.v1.Object\"\0\x12S\n\x0cUpdateObject\x12&.google.storage.v1.UpdateO\ - bjectRequest\x1a\x19.google.storage.v1.Object\"\0\x12U\n\x12GetObjectIam\ - Policy\x12&.google.storage.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.\ - Policy\"\0\x12U\n\x12SetObjectIamPolicy\x12&.google.storage.v1.SetIamPol\ - icyRequest\x1a\x15.google.iam.v1.Policy\"\0\x12u\n\x18TestObjectIamPermi\ - ssions\x12,.google.storage.v1.TestIamPermissionsRequest\x1a).google.iam.\ - v1.TestIamPermissionsResponse\"\0\x12Z\n\x0fWatchAllObjects\x12).google.\ - storage.v1.WatchAllObjectsRequest\x1a\x1a.google.storage.v1.Channel\"\0\ - \x12l\n\x11GetServiceAccount\x122.google.storage.v1.GetProjectServiceAcc\ - ountRequest\x1a!.google.storage.v1.ServiceAccount\"\0\x12d\n\rCreateHmac\ - Key\x12'.google.storage.v1.CreateHmacKeyRequest\x1a(.google.storage.v1.C\ - reateHmacKeyResponse\"\0\x12R\n\rDeleteHmacKey\x12'.google.storage.v1.De\ - leteHmacKeyRequest\x1a\x16.google.protobuf.Empty\"\0\x12X\n\nGetHmacKey\ - \x12$.google.storage.v1.GetHmacKeyRequest\x1a\".google.storage.v1.HmacKe\ - yMetadata\"\0\x12a\n\x0cListHmacKeys\x12&.google.storage.v1.ListHmacKeys\ - Request\x1a'.google.storage.v1.ListHmacKeysResponse\"\0\x12^\n\rUpdateHm\ - acKey\x12'.google.storage.v1.UpdateHmacKeyRequest\x1a\".google.storage.v\ - 1.HmacKeyMetadata\"\0\x1a\xa7\x02\xcaA\x16storage.googleapis.com\xd2A\ - \x8a\x02https://www.googleapis.com/auth/cloud-platform,https://www.googl\ - eapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/\ - devstorage.full_control,https://www.googleapis.com/auth/devstorage.read_\ - only,https://www.googleapis.com/auth/devstorage.read_writeBS\n\x15com.go\ - ogle.storage.v1P\x01Z8google.golang.org/genproto/googleapis/storage/v1;s\ - torageJ\xe5\x84\x05\n\x07\x12\x05\x0e\0\xbc\x0f\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\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\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\03\n\t\n\x02\x03\ - \x07\x12\x03\x19\0!\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\x01\x12\x03\x1d\0.\n6\ - \n\x02\x06\0\x12\x05\x20\0\xcd\x02\x01\x1a)\x20Manages\x20Google\x20Clou\ - d\x20Storage\x20resources.\n\n\n\n\x03\x06\0\x01\x12\x03\x20\x08\x0f\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'>\nd\n\x04\x06\0\x02\0\x12\x04+\x02,\x03\x1aV\x20Permanen\ - tly\x20deletes\x20the\x20ACL\x20entry\x20for\x20the\x20specified\x20enti\ - ty\x20on\x20the\x20specified\n\x20bucket.\n\n\x0c\n\x05\x06\0\x02\0\x01\ - \x12\x03+\x06\x1f\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03+\x20@\n\x0c\n\x05\ - \x06\0\x02\0\x03\x12\x03+K`\nW\n\x04\x06\0\x02\x01\x12\x04/\x020\x03\x1a\ - I\x20Returns\x20the\x20ACL\x20entry\x20for\x20the\x20specified\x20entity\ - \x20on\x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x01\x01\ - \x12\x03/\x06\x1c\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03/\x1d:\n\x0c\n\ - \x05\x06\0\x02\x01\x03\x12\x03/EX\n@\n\x04\x06\0\x02\x02\x12\x043\x024\ - \x03\x1a2\x20Creates\x20a\x20new\x20ACL\x20entry\x20on\x20the\x20specifi\ - ed\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x033\x06\x1f\n\x0c\n\ - \x05\x06\0\x02\x02\x02\x12\x033\x20@\n\x0c\n\x05\x06\0\x02\x02\x03\x12\ - \x033K^\n>\n\x04\x06\0\x02\x03\x12\x047\x028\x03\x1a0\x20Retrieves\x20AC\ - L\x20entries\x20on\x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\0\ - \x02\x03\x01\x12\x037\x06\x1e\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x037\x1f\ - >\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x037Ii\n\xaa\x01\n\x04\x06\0\x02\x04\ - \x12\x04=\x02>\x03\x1a\x9b\x01\x20Updates\x20an\x20ACL\x20entry\x20on\ - \x20the\x20specified\x20bucket.\x20Equivalent\x20to\n\x20PatchBucketAcce\ - ssControl,\x20but\x20all\x20unspecified\x20fields\x20will\x20be\n\x20res\ - et\x20to\x20their\x20default\x20values.\n\n\x0c\n\x05\x06\0\x02\x04\x01\ - \x12\x03=\x06\x1f\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03=\x20@\n\x0c\n\ - \x05\x06\0\x02\x04\x03\x12\x03=K^\n=\n\x04\x06\0\x02\x05\x12\x04A\x02B\ - \x03\x1a/\x20Updates\x20an\x20ACL\x20entry\x20on\x20the\x20specified\x20\ - bucket.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03A\x06\x1e\n\x0c\n\x05\x06\ - \0\x02\x05\x02\x12\x03A\x1f>\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03AI\\\n\ - 4\n\x04\x06\0\x02\x06\x12\x04E\x02F\x03\x1a&\x20Permanently\x20deletes\ - \x20an\x20empty\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03E\x06\ - \x12\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03E\x13&\n\x0c\n\x05\x06\0\x02\ - \x06\x03\x12\x03E1F\n:\n\x04\x06\0\x02\x07\x12\x04I\x02J\x03\x1a,\x20Ret\ - urns\x20metadata\x20for\x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\ - \0\x02\x07\x01\x12\x03I\x06\x0f\n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03I\ - \x10\x20\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03I+1\n%\n\x04\x06\0\x02\x08\ - \x12\x04M\x02N\x03\x1a\x17\x20Creates\x20a\x20new\x20bucket.\n\n\x0c\n\ - \x05\x06\0\x02\x08\x01\x12\x03M\x06\x12\n\x0c\n\x05\x06\0\x02\x08\x02\ - \x12\x03M\x13&\n\x0c\n\x05\x06\0\x02\x08\x03\x12\x03M17\nP\n\x04\x06\0\ - \x02\t\x12\x04Q\x02R\x03\x1aB\x20List\x20active\x20object\x20change\x20n\ - otification\x20channels\x20for\x20this\x20bucket.\n\n\x0c\n\x05\x06\0\ - \x02\t\x01\x12\x03Q\x06\x12\n\x0c\n\x05\x06\0\x02\t\x02\x12\x03Q\x13&\n\ - \x0c\n\x05\x06\0\x02\t\x03\x12\x03Q1E\n@\n\x04\x06\0\x02\n\x12\x04U\x02V\ - \x03\x1a2\x20Retrieves\x20a\x20list\x20of\x20buckets\x20for\x20a\x20give\ - n\x20project.\n\n\x0c\n\x05\x06\0\x02\n\x01\x12\x03U\x06\x11\n\x0c\n\x05\ - \x06\0\x02\n\x02\x12\x03U\x12$\n\x0c\n\x05\x06\0\x02\n\x03\x12\x03U/B\n3\ - \n\x04\x06\0\x02\x0b\x12\x04Y\x02Z\x03\x1a%\x20Locks\x20retention\x20pol\ - icy\x20on\x20a\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x0b\x01\x12\x03Y\x06\ - \x1f\n\x0c\n\x05\x06\0\x02\x0b\x02\x12\x03Y\x20:\n\x0c\n\x05\x06\0\x02\ - \x0b\x03\x12\x03YEK\n=\n\x04\x06\0\x02\x0c\x12\x04]\x02^\x03\x1a/\x20Get\ - s\x20the\x20IAM\x20policy\x20for\x20the\x20specified\x20bucket.\n\n\x0c\ - \n\x05\x06\0\x02\x0c\x01\x12\x03]\x06\x18\n\x0c\n\x05\x06\0\x02\x0c\x02\ - \x12\x03]\x19,\n\x0c\n\x05\x06\0\x02\x0c\x03\x12\x03]7K\n?\n\x04\x06\0\ - \x02\r\x12\x04a\x02b\x03\x1a1\x20Updates\x20an\x20IAM\x20policy\x20for\ - \x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\0\x02\r\x01\x12\x03a\ - \x06\x18\n\x0c\n\x05\x06\0\x02\r\x02\x12\x03a\x19,\n\x0c\n\x05\x06\0\x02\ - \r\x03\x12\x03a7K\nm\n\x04\x06\0\x02\x0e\x12\x04f\x02g\x03\x1a_\x20Tests\ - \x20a\x20set\x20of\x20permissions\x20on\x20the\x20given\x20bucket\x20to\ - \x20see\x20which,\x20if\n\x20any,\x20are\x20held\x20by\x20the\x20caller.\ - \n\n\x0c\n\x05\x06\0\x02\x0e\x01\x12\x03f\x06\x1e\n\x0c\n\x05\x06\0\x02\ - \x0e\x02\x12\x03f\x1f8\n\x0c\n\x05\x06\0\x02\x0e\x03\x12\x03fCk\n\x9b\ - \x01\n\x04\x06\0\x02\x0f\x12\x04k\x02l\x03\x1a\x8c\x01\x20Updates\x20a\ - \x20bucket.\x20Changes\x20to\x20the\x20bucket\x20will\x20be\x20readable\ - \x20immediately\x20after\n\x20writing,\x20but\x20configuration\x20change\ - s\x20may\x20take\x20time\x20to\x20propagate.\n\n\x0c\n\x05\x06\0\x02\x0f\ - \x01\x12\x03k\x06\x11\n\x0c\n\x05\x06\0\x02\x0f\x02\x12\x03k\x12$\n\x0c\ - \n\x05\x06\0\x02\x0f\x03\x12\x03k/5\n\xcd\x02\n\x04\x06\0\x02\x10\x12\ - \x04s\x02t\x03\x1a\xbe\x02\x20Updates\x20a\x20bucket.\x20Equivalent\x20t\ - o\x20PatchBucket,\x20but\x20always\x20replaces\x20all\n\x20mutatable\x20\ - fields\x20of\x20the\x20bucket\x20with\x20new\x20values,\x20reverting\x20\ - all\n\x20unspecified\x20fields\x20to\x20their\x20default\x20values.\n\ - \x20Like\x20PatchBucket,\x20Changes\x20to\x20the\x20bucket\x20will\x20be\ - \x20readable\x20immediately\x20after\n\x20writing,\x20but\x20configurati\ - on\x20changes\x20may\x20take\x20time\x20to\x20propagate.\n\n\x0c\n\x05\ - \x06\0\x02\x10\x01\x12\x03s\x06\x12\n\x0c\n\x05\x06\0\x02\x10\x02\x12\ - \x03s\x13&\n\x0c\n\x05\x06\0\x02\x10\x03\x12\x03s17\n\xf9\x01\n\x04\x06\ - \0\x02\x11\x12\x04z\x02{\x03\x1a\xea\x01\x20Halts\x20\"Object\x20Change\ - \x20Notification\"\x20push\x20messagages.\n\x20See\x20https://cloud.goog\ - le.com/storage/docs/object-change-notification\n\x20Note:\x20this\x20is\ - \x20not\x20related\x20to\x20the\x20newer\x20\"Notifications\"\x20resourc\ - e,\x20which\n\x20are\x20stopped\x20using\x20DeleteNotification.\n\n\x0c\ - \n\x05\x06\0\x02\x11\x01\x12\x03z\x06\x11\n\x0c\n\x05\x06\0\x02\x11\x02\ - \x12\x03z\x12$\n\x0c\n\x05\x06\0\x02\x11\x03\x12\x03z/D\nt\n\x04\x06\0\ - \x02\x12\x12\x05\x7f\x02\x80\x01\x03\x1ae\x20Permanently\x20deletes\x20t\ - he\x20default\x20object\x20ACL\x20entry\x20for\x20the\x20specified\x20en\ - tity\n\x20on\x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x12\ - \x01\x12\x03\x7f\x06&\n\x0c\n\x05\x06\0\x02\x12\x02\x12\x03\x7f'N\n\x0c\ - \n\x05\x06\0\x02\x12\x03\x12\x03\x7fYn\ni\n\x04\x06\0\x02\x13\x12\x06\ - \x84\x01\x02\x85\x01\x03\x1aY\x20Returns\x20the\x20default\x20object\x20\ - ACL\x20entry\x20for\x20the\x20specified\x20entity\x20on\x20the\n\x20spec\ - ified\x20bucket.\n\n\r\n\x05\x06\0\x02\x13\x01\x12\x04\x84\x01\x06#\n\r\ - \n\x05\x06\0\x02\x13\x02\x12\x04\x84\x01$H\n\r\n\x05\x06\0\x02\x13\x03\ - \x12\x04\x84\x01Sf\nQ\n\x04\x06\0\x02\x14\x12\x06\x88\x01\x02\x89\x01\ - \x03\x1aA\x20Creates\x20a\x20new\x20default\x20object\x20ACL\x20entry\ - \x20on\x20the\x20specified\x20bucket.\n\n\r\n\x05\x06\0\x02\x14\x01\x12\ - \x04\x88\x01\x06&\n\r\n\x05\x06\0\x02\x14\x02\x12\x04\x88\x01'N\n\r\n\ - \x05\x06\0\x02\x14\x03\x12\x04\x88\x01Yl\nO\n\x04\x06\0\x02\x15\x12\x06\ - \x8c\x01\x02\x8d\x01\x03\x1a?\x20Retrieves\x20default\x20object\x20ACL\ - \x20entries\x20on\x20the\x20specified\x20bucket.\n\n\r\n\x05\x06\0\x02\ - \x15\x01\x12\x04\x8c\x01\x06%\n\r\n\x05\x06\0\x02\x15\x02\x12\x04\x8c\ - \x01&L\n\r\n\x05\x06\0\x02\x15\x03\x12\x04\x8c\x01Ww\nM\n\x04\x06\0\x02\ - \x16\x12\x06\x90\x01\x02\x91\x01\x03\x1a=\x20Updates\x20a\x20default\x20\ - object\x20ACL\x20entry\x20on\x20the\x20specified\x20bucket.\n\n\r\n\x05\ - \x06\0\x02\x16\x01\x12\x04\x90\x01\x06%\n\r\n\x05\x06\0\x02\x16\x02\x12\ - \x04\x90\x01&L\n\r\n\x05\x06\0\x02\x16\x03\x12\x04\x90\x01Wj\n\xbc\x01\n\ - \x04\x06\0\x02\x17\x12\x06\x96\x01\x02\x97\x01\x03\x1a\xab\x01\x20Update\ - s\x20a\x20default\x20object\x20ACL\x20entry\x20on\x20the\x20specified\ - \x20bucket.\x20Equivalent\x20to\n\x20PatchDefaultObjectAccessControl,\ - \x20but\x20modifies\x20all\x20unspecified\x20fields\x20to\n\x20their\x20\ - default\x20values.\n\n\r\n\x05\x06\0\x02\x17\x01\x12\x04\x96\x01\x06&\n\ - \r\n\x05\x06\0\x02\x17\x02\x12\x04\x96\x01'N\n\r\n\x05\x06\0\x02\x17\x03\ - \x12\x04\x96\x01Yl\n\xaf\x01\n\x04\x06\0\x02\x18\x12\x06\x9c\x01\x02\x9d\ - \x01\x03\x1a\x9e\x01\x20Permanently\x20deletes\x20a\x20notification\x20s\ - ubscription.\n\x20Note:\x20Older,\x20\"Object\x20Change\x20Notification\ - \"\x20push\x20subscriptions\x20should\x20be\n\x20deleted\x20using\x20Sto\ - pChannel\x20instead.\n\n\r\n\x05\x06\0\x02\x18\x01\x12\x04\x9c\x01\x06\ - \x18\n\r\n\x05\x06\0\x02\x18\x02\x12\x04\x9c\x01\x192\n\r\n\x05\x06\0\ - \x02\x18\x03\x12\x04\x9c\x01=R\n4\n\x04\x06\0\x02\x19\x12\x06\xa0\x01\ - \x02\xa1\x01\x03\x1a$\x20View\x20a\x20notification\x20configuration.\n\n\ - \r\n\x05\x06\0\x02\x19\x01\x12\x04\xa0\x01\x06\x15\n\r\n\x05\x06\0\x02\ - \x19\x02\x12\x04\xa0\x01\x16,\n\r\n\x05\x06\0\x02\x19\x03\x12\x04\xa0\ - \x017C\n\xea\x01\n\x04\x06\0\x02\x1a\x12\x06\xa7\x01\x02\xa8\x01\x03\x1a\ - \xd9\x01\x20Creates\x20a\x20notification\x20subscription\x20for\x20a\x20\ - given\x20bucket.\n\x20These\x20notifications,\x20when\x20triggered,\x20p\ - ublish\x20messages\x20to\x20the\x20specified\n\x20Cloud\x20Pub/Sub\x20to\ - pics.\n\x20See\x20https://cloud.google.com/storage/docs/pubsub-notificat\ - ions.\n\n\r\n\x05\x06\0\x02\x1a\x01\x12\x04\xa7\x01\x06\x18\n\r\n\x05\ - \x06\0\x02\x1a\x02\x12\x04\xa7\x01\x192\n\r\n\x05\x06\0\x02\x1a\x03\x12\ - \x04\xa7\x01=I\nT\n\x04\x06\0\x02\x1b\x12\x06\xab\x01\x02\xac\x01\x03\ - \x1aD\x20Retrieves\x20a\x20list\x20of\x20notification\x20subscriptions\ - \x20for\x20a\x20given\x20bucket.\n\n\r\n\x05\x06\0\x02\x1b\x01\x12\x04\ - \xab\x01\x06\x17\n\r\n\x05\x06\0\x02\x1b\x02\x12\x04\xab\x01\x180\n\r\n\ - \x05\x06\0\x02\x1b\x03\x12\x04\xab\x01;T\nf\n\x04\x06\0\x02\x1c\x12\x06\ - \xb0\x01\x02\xb1\x01\x03\x1aV\x20Permanently\x20deletes\x20the\x20ACL\ - \x20entry\x20for\x20the\x20specified\x20entity\x20on\x20the\x20specified\ - \n\x20object.\n\n\r\n\x05\x06\0\x02\x1c\x01\x12\x04\xb0\x01\x06\x1f\n\r\ - \n\x05\x06\0\x02\x1c\x02\x12\x04\xb0\x01\x20@\n\r\n\x05\x06\0\x02\x1c\ - \x03\x12\x04\xb0\x01K`\nY\n\x04\x06\0\x02\x1d\x12\x06\xb4\x01\x02\xb5\ - \x01\x03\x1aI\x20Returns\x20the\x20ACL\x20entry\x20for\x20the\x20specifi\ - ed\x20entity\x20on\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\x02\ - \x1d\x01\x12\x04\xb4\x01\x06\x1c\n\r\n\x05\x06\0\x02\x1d\x02\x12\x04\xb4\ - \x01\x1d:\n\r\n\x05\x06\0\x02\x1d\x03\x12\x04\xb4\x01EX\nB\n\x04\x06\0\ - \x02\x1e\x12\x06\xb8\x01\x02\xb9\x01\x03\x1a2\x20Creates\x20a\x20new\x20\ - ACL\x20entry\x20on\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\x02\ - \x1e\x01\x12\x04\xb8\x01\x06\x1f\n\r\n\x05\x06\0\x02\x1e\x02\x12\x04\xb8\ - \x01\x20@\n\r\n\x05\x06\0\x02\x1e\x03\x12\x04\xb8\x01K^\n@\n\x04\x06\0\ - \x02\x1f\x12\x06\xbc\x01\x02\xbd\x01\x03\x1a0\x20Retrieves\x20ACL\x20ent\ - ries\x20on\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\x02\x1f\x01\ - \x12\x04\xbc\x01\x06\x1e\n\r\n\x05\x06\0\x02\x1f\x02\x12\x04\xbc\x01\x1f\ - >\n\r\n\x05\x06\0\x02\x1f\x03\x12\x04\xbc\x01Ii\n\xd3\x01\n\x04\x06\0\ - \x02\x20\x12\x06\xc2\x01\x02\xc3\x01\x03\x1a\xc2\x01\x20Patches\x20an\ - \x20ACL\x20entry\x20on\x20the\x20specified\x20object.\x20\x20Patch\x20is\ - \x20similar\x20to\x20update,\n\x20but\x20only\x20applies\x20or\x20append\ - s\x20the\x20specified\x20fields\x20in\x20the\n\x20object_access_control\ - \x20object.\x20\x20Other\x20fields\x20are\x20unaffected.\n\n\r\n\x05\x06\ - \0\x02\x20\x01\x12\x04\xc2\x01\x06\x1e\n\r\n\x05\x06\0\x02\x20\x02\x12\ - \x04\xc2\x01\x1f>\n\r\n\x05\x06\0\x02\x20\x03\x12\x04\xc2\x01I\\\n?\n\ - \x04\x06\0\x02!\x12\x06\xc6\x01\x02\xc7\x01\x03\x1a/\x20Updates\x20an\ - \x20ACL\x20entry\x20on\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\ - \x02!\x01\x12\x04\xc6\x01\x06\x1f\n\r\n\x05\x06\0\x02!\x02\x12\x04\xc6\ - \x01\x20@\n\r\n\x05\x06\0\x02!\x03\x12\x04\xc6\x01K^\n`\n\x04\x06\0\x02\ - \"\x12\x06\xcb\x01\x02\xcc\x01\x03\x1aP\x20Concatenates\x20a\x20list\x20\ - of\x20existing\x20objects\x20into\x20a\x20new\x20object\x20in\x20the\x20\ - same\n\x20bucket.\n\n\r\n\x05\x06\0\x02\"\x01\x12\x04\xcb\x01\x06\x13\n\ - \r\n\x05\x06\0\x02\"\x02\x12\x04\xcb\x01\x14(\n\r\n\x05\x06\0\x02\"\x03\ - \x12\x04\xcb\x0139\na\n\x04\x06\0\x02#\x12\x06\xd0\x01\x02\xd1\x01\x03\ - \x1aQ\x20Copies\x20a\x20source\x20object\x20to\x20a\x20destination\x20ob\ - ject.\x20Optionally\x20overrides\n\x20metadata.\n\n\r\n\x05\x06\0\x02#\ - \x01\x12\x04\xd0\x01\x06\x10\n\r\n\x05\x06\0\x02#\x02\x12\x04\xd0\x01\ - \x11\"\n\r\n\x05\x06\0\x02#\x03\x12\x04\xd0\x01-3\n\xa7\x01\n\x04\x06\0\ - \x02$\x12\x06\xd6\x01\x02\xd7\x01\x03\x1a\x96\x01\x20Deletes\x20an\x20ob\ - ject\x20and\x20its\x20metadata.\x20Deletions\x20are\x20permanent\x20if\ - \x20versioning\n\x20is\x20not\x20enabled\x20for\x20the\x20bucket,\x20or\ - \x20if\x20the\x20`generation`\x20parameter\n\x20is\x20used.\n\n\r\n\x05\ - \x06\0\x02$\x01\x12\x04\xd6\x01\x06\x12\n\r\n\x05\x06\0\x02$\x02\x12\x04\ - \xd6\x01\x13&\n\r\n\x05\x06\0\x02$\x03\x12\x04\xd6\x011F\n1\n\x04\x06\0\ - \x02%\x12\x06\xda\x01\x02\xdb\x01\x03\x1a!\x20Retrieves\x20an\x20object'\ - s\x20metadata.\n\n\r\n\x05\x06\0\x02%\x01\x12\x04\xda\x01\x06\x0f\n\r\n\ - \x05\x06\0\x02%\x02\x12\x04\xda\x01\x10\x20\n\r\n\x05\x06\0\x02%\x03\x12\ - \x04\xda\x01+1\n)\n\x04\x06\0\x02&\x12\x06\xde\x01\x02\xdf\x01\x03\x1a\ - \x19\x20Reads\x20an\x20object's\x20data.\n\n\r\n\x05\x06\0\x02&\x01\x12\ - \x04\xde\x01\x06\x14\n\r\n\x05\x06\0\x02&\x02\x12\x04\xde\x01\x15*\n\r\n\ - \x05\x06\0\x02&\x06\x12\x04\xde\x015;\n\r\n\x05\x06\0\x02&\x03\x12\x04\ - \xde\x01\nD\n\x04\x06\0\x02(\x12\x06\xfd\x01\x02\xfe\x01\x03\x1a4\ - \x20Retrieves\x20a\x20list\x20of\x20objects\x20matching\x20the\x20criter\ - ia.\n\n\r\n\x05\x06\0\x02(\x01\x12\x04\xfd\x01\x06\x11\n\r\n\x05\x06\0\ - \x02(\x02\x12\x04\xfd\x01\x12$\n\r\n\x05\x06\0\x02(\x03\x12\x04\xfd\x01/\ - B\nc\n\x04\x06\0\x02)\x12\x06\x82\x02\x02\x83\x02\x03\x1aS\x20Rewrites\ - \x20a\x20source\x20object\x20to\x20a\x20destination\x20object.\x20Option\ - ally\x20overrides\n\x20metadata.\n\n\r\n\x05\x06\0\x02)\x01\x12\x04\x82\ - \x02\x06\x13\n\r\n\x05\x06\0\x02)\x02\x12\x04\x82\x02\x14(\n\r\n\x05\x06\ - \0\x02)\x03\x12\x04\x82\x023B\n\xac\x01\n\x04\x06\0\x02*\x12\x06\x88\x02\ - \x02\x89\x02\x03\x1a\x9b\x01\x20Starts\x20a\x20resumable\x20write.\x20Ho\ - w\x20long\x20the\x20write\x20operation\x20remains\x20valid,\x20and\n\x20\ - what\x20happens\x20when\x20the\x20write\x20operation\x20becomes\x20inval\ - id,\x20are\n\x20service-dependent.\n\n\r\n\x05\x06\0\x02*\x01\x12\x04\ - \x88\x02\x06\x19\n\r\n\x05\x06\0\x02*\x02\x12\x04\x88\x02\x1a4\n\r\n\x05\ - \x06\0\x02*\x03\x12\x04\x88\x02?Z\n\xbe\x05\n\x04\x06\0\x02+\x12\x06\x98\ - \x02\x02\x99\x02\x03\x1a\xad\x05\x20Determines\x20the\x20`committed_size\ - `\x20for\x20an\x20object\x20that\x20is\x20being\x20written,\x20which\n\ - \x20can\x20then\x20be\x20used\x20as\x20the\x20`write_offset`\x20for\x20t\ - he\x20next\x20`Write()`\x20call.\n\n\x20If\x20the\x20object\x20does\x20n\ - ot\x20exist\x20(i.e.,\x20the\x20object\x20has\x20been\x20deleted,\x20or\ - \x20the\n\x20first\x20`Write()`\x20has\x20not\x20yet\x20reached\x20the\ - \x20service),\x20this\x20method\x20returns\x20the\n\x20error\x20`NOT_FOU\ - ND`.\n\n\x20The\x20client\x20**may**\x20call\x20`QueryWriteStatus()`\x20\ - at\x20any\x20time\x20to\x20determine\x20how\n\x20much\x20data\x20has\x20\ - been\x20processed\x20for\x20this\x20object.\x20This\x20is\x20useful\x20i\ - f\x20the\n\x20client\x20is\x20buffering\x20data\x20and\x20needs\x20to\ - \x20know\x20which\x20data\x20can\x20be\x20safely\n\x20evicted.\x20For\ - \x20any\x20sequence\x20of\x20`QueryWriteStatus()`\x20calls\x20for\x20a\ - \x20given\n\x20object\x20name,\x20the\x20sequence\x20of\x20returned\x20`\ - committed_size`\x20values\x20will\x20be\n\x20non-decreasing.\n\n\r\n\x05\ - \x06\0\x02+\x01\x12\x04\x98\x02\x06\x16\n\r\n\x05\x06\0\x02+\x02\x12\x04\ - \x98\x02\x17.\n\r\n\x05\x06\0\x02+\x03\x12\x04\x98\x029Q\n/\n\x04\x06\0\ - \x02,\x12\x06\x9c\x02\x02\x9d\x02\x03\x1a\x1f\x20Updates\x20an\x20object\ - 's\x20metadata.\n\n\r\n\x05\x06\0\x02,\x01\x12\x04\x9c\x02\x06\x11\n\r\n\ - \x05\x06\0\x02,\x02\x12\x04\x9c\x02\x12$\n\r\n\x05\x06\0\x02,\x03\x12\ - \x04\x9c\x02/5\n\xcf\x01\n\x04\x06\0\x02-\x12\x06\xa2\x02\x02\xa3\x02\ - \x03\x1a\xbe\x01\x20Updates\x20an\x20object's\x20metadata.\x20Equivalent\ - \x20to\x20PatchObject,\x20but\x20always\n\x20replaces\x20all\x20mutatabl\ - e\x20fields\x20of\x20the\x20bucket\x20with\x20new\x20values,\x20revertin\ - g\x20all\n\x20unspecified\x20fields\x20to\x20their\x20default\x20values.\ - \n\n\r\n\x05\x06\0\x02-\x01\x12\x04\xa2\x02\x06\x12\n\r\n\x05\x06\0\x02-\ - \x02\x12\x04\xa2\x02\x13&\n\r\n\x05\x06\0\x02-\x03\x12\x04\xa2\x0217\n?\ - \n\x04\x06\0\x02.\x12\x06\xa6\x02\x02\xa7\x02\x03\x1a/\x20Gets\x20the\ - \x20IAM\x20policy\x20for\x20the\x20specified\x20object.\n\n\r\n\x05\x06\ - \0\x02.\x01\x12\x04\xa6\x02\x06\x18\n\r\n\x05\x06\0\x02.\x02\x12\x04\xa6\ - \x02\x19,\n\r\n\x05\x06\0\x02.\x03\x12\x04\xa6\x027K\nA\n\x04\x06\0\x02/\ - \x12\x06\xaa\x02\x02\xab\x02\x03\x1a1\x20Updates\x20an\x20IAM\x20policy\ - \x20for\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\x02/\x01\x12\ - \x04\xaa\x02\x06\x18\n\r\n\x05\x06\0\x02/\x02\x12\x04\xaa\x02\x19,\n\r\n\ - \x05\x06\0\x02/\x03\x12\x04\xaa\x027K\no\n\x04\x06\0\x020\x12\x06\xaf\ - \x02\x02\xb0\x02\x03\x1a_\x20Tests\x20a\x20set\x20of\x20permissions\x20o\ - n\x20the\x20given\x20object\x20to\x20see\x20which,\x20if\n\x20any,\x20ar\ - e\x20held\x20by\x20the\x20caller.\n\n\r\n\x05\x06\0\x020\x01\x12\x04\xaf\ - \x02\x06\x1e\n\r\n\x05\x06\0\x020\x02\x12\x04\xaf\x02\x1f8\n\r\n\x05\x06\ - \0\x020\x03\x12\x04\xaf\x02Ck\n?\n\x04\x06\0\x021\x12\x06\xb3\x02\x02\ - \xb4\x02\x03\x1a/\x20Watch\x20for\x20changes\x20on\x20all\x20objects\x20\ - in\x20a\x20bucket.\n\n\r\n\x05\x06\0\x021\x01\x12\x04\xb3\x02\x06\x15\n\ - \r\n\x05\x06\0\x021\x02\x12\x04\xb3\x02\x16,\n\r\n\x05\x06\0\x021\x03\ - \x12\x04\xb3\x027>\nY\n\x04\x06\0\x022\x12\x06\xb7\x02\x02\xb8\x02\x03\ - \x1aI\x20Retrieves\x20the\x20name\x20of\x20a\x20project's\x20Google\x20C\ - loud\x20Storage\x20service\x20account.\n\n\r\n\x05\x06\0\x022\x01\x12\ - \x04\xb7\x02\x06\x17\n\r\n\x05\x06\0\x022\x02\x12\x04\xb7\x02\x187\n\r\n\ - \x05\x06\0\x022\x03\x12\x04\xb7\x02BP\nG\n\x04\x06\0\x023\x12\x06\xbb\ - \x02\x02\xbc\x02\x03\x1a7\x20Creates\x20a\x20new\x20HMAC\x20key\x20for\ - \x20the\x20given\x20service\x20account.\n\n\r\n\x05\x06\0\x023\x01\x12\ - \x04\xbb\x02\x06\x13\n\r\n\x05\x06\0\x023\x02\x12\x04\xbb\x02\x14(\n\r\n\ - \x05\x06\0\x023\x03\x12\x04\xbb\x023H\nN\n\x04\x06\0\x024\x12\x06\xbf\ - \x02\x02\xc0\x02\x03\x1a>\x20Deletes\x20a\x20given\x20HMAC\x20key.\x20\ - \x20Key\x20must\x20be\x20in\x20an\x20INACTIVE\x20state.\n\n\r\n\x05\x06\ - \0\x024\x01\x12\x04\xbf\x02\x06\x13\n\r\n\x05\x06\0\x024\x02\x12\x04\xbf\ - \x02\x14(\n\r\n\x05\x06\0\x024\x03\x12\x04\xbf\x023H\nF\n\x04\x06\0\x025\ - \x12\x06\xc3\x02\x02\xc4\x02\x03\x1a6\x20Gets\x20an\x20existing\x20HMAC\ - \x20key\x20metadata\x20for\x20the\x20given\x20id.\n\n\r\n\x05\x06\0\x025\ - \x01\x12\x04\xc3\x02\x06\x10\n\r\n\x05\x06\0\x025\x02\x12\x04\xc3\x02\ - \x11\"\n\r\n\x05\x06\0\x025\x03\x12\x04\xc3\x02-<\n]\n\x04\x06\0\x026\ - \x12\x06\xc7\x02\x02\xc8\x02\x03\x1aM\x20Lists\x20HMAC\x20keys\x20under\ - \x20a\x20given\x20project\x20with\x20the\x20additional\x20filters\x20pro\ - vided.\n\n\r\n\x05\x06\0\x026\x01\x12\x04\xc7\x02\x06\x12\n\r\n\x05\x06\ - \0\x026\x02\x12\x04\xc7\x02\x13&\n\r\n\x05\x06\0\x026\x03\x12\x04\xc7\ - \x021E\nM\n\x04\x06\0\x027\x12\x06\xcb\x02\x02\xcc\x02\x03\x1a=\x20Updat\ - es\x20a\x20given\x20HMAC\x20key\x20state\x20between\x20ACTIVE\x20and\x20\ - INACTIVE.\n\n\r\n\x05\x06\0\x027\x01\x12\x04\xcb\x02\x06\x13\n\r\n\x05\ - \x06\0\x027\x02\x12\x04\xcb\x02\x14(\n\r\n\x05\x06\0\x027\x03\x12\x04\ - \xcb\x023B\n>\n\x02\x04\0\x12\x06\xd0\x02\0\xdf\x02\x01\x1a0\x20Request\ - \x20message\x20for\x20DeleteBucketAccessControl.\n\n\x0b\n\x03\x04\0\x01\ - \x12\x04\xd0\x02\x08(\n+\n\x04\x04\0\x02\0\x12\x04\xd2\x02\x02=\x1a\x1d\ - \x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\0\x02\0\ - \x04\x12\x06\xd2\x02\x02\xd0\x02*\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xd2\ - \x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xd2\x02\t\x0f\n\r\n\x05\ - \x04\0\x02\0\x03\x12\x04\xd2\x02\x12\x13\n\r\n\x05\x04\0\x02\0\x08\x12\ - \x04\xd2\x02\x14<\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\xd2\x02\ - \x15;\n\xd0\x01\n\x04\x04\0\x02\x01\x12\x04\xdb\x02\x02=\x1a\xc1\x01\x20\ - Required.\x20The\x20entity\x20holding\x20the\x20permission.\x20Can\x20be\ - \x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\ - \n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20\ - `allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\0\x02\x01\ - \x04\x12\x06\xdb\x02\x02\xd2\x02=\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\ - \xdb\x02\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xdb\x02\t\x0f\n\r\n\ - \x05\x04\0\x02\x01\x03\x12\x04\xdb\x02\x12\x13\n\r\n\x05\x04\0\x02\x01\ - \x08\x12\x04\xdb\x02\x14<\n\x10\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\ - \x04\xdb\x02\x15;\nG\n\x04\x04\0\x02\x02\x12\x04\xde\x02\x020\x1a9\x20A\ - \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ - requests.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\xde\x02\x02\xdb\x02=\n\ - \r\n\x05\x04\0\x02\x02\x06\x12\x04\xde\x02\x02\x15\n\r\n\x05\x04\0\x02\ - \x02\x01\x12\x04\xde\x02\x16+\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xde\ - \x02./\n;\n\x02\x04\x01\x12\x06\xe2\x02\0\xf1\x02\x01\x1a-\x20Request\ - \x20message\x20for\x20GetBucketAccessControl.\n\n\x0b\n\x03\x04\x01\x01\ - \x12\x04\xe2\x02\x08%\n+\n\x04\x04\x01\x02\0\x12\x04\xe4\x02\x02=\x1a\ - \x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x01\ - \x02\0\x04\x12\x06\xe4\x02\x02\xe2\x02'\n\r\n\x05\x04\x01\x02\0\x05\x12\ - \x04\xe4\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xe4\x02\t\x0f\n\ - \r\n\x05\x04\x01\x02\0\x03\x12\x04\xe4\x02\x12\x13\n\r\n\x05\x04\x01\x02\ - \0\x08\x12\x04\xe4\x02\x14<\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\ - \x04\xe4\x02\x15;\n\xd0\x01\n\x04\x04\x01\x02\x01\x12\x04\xed\x02\x02=\ - \x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permissi\ - on.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user\ - -`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAdd\ - ress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\ - \x05\x04\x01\x02\x01\x04\x12\x06\xed\x02\x02\xe4\x02=\n\r\n\x05\x04\x01\ - \x02\x01\x05\x12\x04\xed\x02\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\ - \x04\xed\x02\t\x0f\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xed\x02\x12\x13\ - \n\r\n\x05\x04\x01\x02\x01\x08\x12\x04\xed\x02\x14<\n\x10\n\x08\x04\x01\ - \x02\x01\x08\x9c\x08\0\x12\x04\xed\x02\x15;\nG\n\x04\x04\x01\x02\x02\x12\ - \x04\xf0\x02\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ - \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\ - \x12\x06\xf0\x02\x02\xed\x02=\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\xf0\ - \x02\x02\x15\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xf0\x02\x16+\n\r\n\ - \x05\x04\x01\x02\x02\x03\x12\x04\xf0\x02./\n>\n\x02\x04\x02\x12\x06\xf4\ - \x02\0\xfd\x02\x01\x1a0\x20Request\x20message\x20for\x20InsertBucketAcce\ - ssControl.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xf4\x02\x08(\n+\n\x04\x04\ - \x02\x02\0\x12\x04\xf6\x02\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\ - \x20bucket.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xf6\x02\x02\xf4\x02*\ - \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\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xf6\ - \x02\x12\x13\n\r\n\x05\x04\x02\x02\0\x08\x12\x04\xf6\x02\x14<\n\x10\n\ - \x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xf6\x02\x15;\nK\n\x04\x04\x02\ - \x02\x01\x12\x04\xf9\x02\x020\x1a=\x20Properties\x20of\x20the\x20new\x20\ - bucket\x20access\x20control\x20being\x20inserted.\n\n\x0f\n\x05\x04\x02\ - \x02\x01\x04\x12\x06\xf9\x02\x02\xf6\x02=\n\r\n\x05\x04\x02\x02\x01\x06\ - \x12\x04\xf9\x02\x02\x15\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xf9\x02\ - \x16+\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xf9\x02./\nG\n\x04\x04\x02\ - \x02\x02\x12\x04\xfc\x02\x020\x1a9\x20A\x20set\x20of\x20parameters\x20co\ - mmon\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x02\ - \x02\x02\x04\x12\x06\xfc\x02\x02\xf9\x020\n\r\n\x05\x04\x02\x02\x02\x06\ - \x12\x04\xfc\x02\x02\x15\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xfc\x02\ - \x16+\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xfc\x02./\n<\n\x02\x04\x03\ - \x12\x06\x80\x03\0\x86\x03\x01\x1a.\x20Request\x20message\x20for\x20List\ - BucketAccessControl.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x80\x03\x08'\n+\n\ - \x04\x04\x03\x02\0\x12\x04\x82\x03\x02=\x1a\x1d\x20Required.\x20Name\x20\ - of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\x06\x82\x03\x02\ - \x80\x03)\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x82\x03\x02\x08\n\r\n\x05\ - \x04\x03\x02\0\x01\x12\x04\x82\x03\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\ - \x04\x82\x03\x12\x13\n\r\n\x05\x04\x03\x02\0\x08\x12\x04\x82\x03\x14<\n\ - \x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\x82\x03\x15;\nG\n\x04\x04\ - \x03\x02\x01\x12\x04\x85\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\ - \x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\ - \x03\x02\x01\x04\x12\x06\x85\x03\x02\x82\x03=\n\r\n\x05\x04\x03\x02\x01\ - \x06\x12\x04\x85\x03\x02\x15\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\x85\ - \x03\x16+\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x85\x03./\n5\n\x02\x04\ - \x04\x12\x06\x89\x03\0\xa6\x03\x01\x1a'\x20Request\x20for\x20PatchBucket\ - AccessControl.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x89\x03\x08'\n+\n\x04\ - \x04\x04\x02\0\x12\x04\x8b\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\ - \x20a\x20bucket.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\x8b\x03\x02\x89\ - \x03)\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x8b\x03\x02\x08\n\r\n\x05\x04\ - \x04\x02\0\x01\x12\x04\x8b\x03\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ - \x8b\x03\x12\x13\n\r\n\x05\x04\x04\x02\0\x08\x12\x04\x8b\x03\x14<\n\x10\ - \n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\x8b\x03\x15;\n\xd0\x01\n\x04\ - \x04\x04\x02\x01\x12\x04\x94\x03\x02=\x1a\xc1\x01\x20Required.\x20The\ - \x20entity\x20holding\x20the\x20permission.\x20Can\x20be\x20one\x20of:\n\ - \x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`grou\ - p-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\x20\ - *\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\ - \x94\x03\x02\x8b\x03=\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\x94\x03\x02\ - \x08\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\x94\x03\t\x0f\n\r\n\x05\x04\ - \x04\x02\x01\x03\x12\x04\x94\x03\x12\x13\n\r\n\x05\x04\x04\x02\x01\x08\ - \x12\x04\x94\x03\x14<\n\x10\n\x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x04\ - \x94\x03\x15;\n5\n\x04\x04\x04\x02\x02\x12\x04\x97\x03\x020\x1a'\x20The\ - \x20BucketAccessControl\x20for\x20updating.\n\n\x0f\n\x05\x04\x04\x02\ - \x02\x04\x12\x06\x97\x03\x02\x94\x03=\n\r\n\x05\x04\x04\x02\x02\x06\x12\ - \x04\x97\x03\x02\x15\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\x97\x03\x16+\ - \n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x97\x03./\n\xa3\x02\n\x04\x04\x04\ - \x02\x03\x12\x04\xa2\x03\x02,\x1a\x94\x02\x20List\x20of\x20fields\x20to\ - \x20be\x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\ - \x20to\x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\ - \x20a\x20single\x20field\x20with\x20the\x20value\x20`*`.\n\n\n\x20Not\ - \x20specifying\x20any\x20fields\x20is\x20an\x20error.\n\x20Not\x20specif\ - ying\x20a\x20field\x20while\x20setting\x20that\x20field\x20to\x20a\x20no\ - n-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\n\x05\x04\x04\x02\x03\ - \x04\x12\x06\xa2\x03\x02\x97\x030\n\r\n\x05\x04\x04\x02\x03\x06\x12\x04\ - \xa2\x03\x02\x1b\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\xa2\x03\x1c'\n\r\ - \n\x05\x04\x04\x02\x03\x03\x12\x04\xa2\x03*+\nG\n\x04\x04\x04\x02\x04\ - \x12\x04\xa5\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20\ - to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x04\x02\x04\ - \x04\x12\x06\xa5\x03\x02\xa2\x03,\n\r\n\x05\x04\x04\x02\x04\x06\x12\x04\ - \xa5\x03\x02\x15\n\r\n\x05\x04\x04\x02\x04\x01\x12\x04\xa5\x03\x16+\n\r\ - \n\x05\x04\x04\x02\x04\x03\x12\x04\xa5\x03./\n6\n\x02\x04\x05\x12\x06\ - \xa9\x03\0\xbb\x03\x01\x1a(\x20Request\x20for\x20UpdateBucketAccessContr\ - ol.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xa9\x03\x08(\n+\n\x04\x04\x05\x02\ - \0\x12\x04\xab\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucke\ - t.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xab\x03\x02\xa9\x03*\n\r\n\ - \x05\x04\x05\x02\0\x05\x12\x04\xab\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\ - \x01\x12\x04\xab\x03\t\x0f\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xab\x03\ - \x12\x13\n\r\n\x05\x04\x05\x02\0\x08\x12\x04\xab\x03\x14<\n\x10\n\x08\ - \x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xab\x03\x15;\n\xd0\x01\n\x04\x04\ - \x05\x02\x01\x12\x04\xb4\x03\x02=\x1a\xc1\x01\x20Required.\x20The\x20ent\ - ity\x20holding\x20the\x20permission.\x20Can\x20be\x20one\x20of:\n\x20*\ - \x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`group-`*g\ - roupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\x20*\x20\ - `allAuthenticatedUsers`\n\n\x0f\n\x05\x04\x05\x02\x01\x04\x12\x06\xb4\ - \x03\x02\xab\x03=\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\xb4\x03\x02\x08\ - \n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xb4\x03\t\x0f\n\r\n\x05\x04\x05\ - \x02\x01\x03\x12\x04\xb4\x03\x12\x13\n\r\n\x05\x04\x05\x02\x01\x08\x12\ - \x04\xb4\x03\x14<\n\x10\n\x08\x04\x05\x02\x01\x08\x9c\x08\0\x12\x04\xb4\ - \x03\x15;\n5\n\x04\x04\x05\x02\x02\x12\x04\xb7\x03\x020\x1a'\x20The\x20B\ - ucketAccessControl\x20for\x20updating.\n\n\x0f\n\x05\x04\x05\x02\x02\x04\ - \x12\x06\xb7\x03\x02\xb4\x03=\n\r\n\x05\x04\x05\x02\x02\x06\x12\x04\xb7\ - \x03\x02\x15\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xb7\x03\x16+\n\r\n\ - \x05\x04\x05\x02\x02\x03\x12\x04\xb7\x03./\nG\n\x04\x04\x05\x02\x03\x12\ - \x04\xba\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ - \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x05\x02\x03\x04\ - \x12\x06\xba\x03\x02\xb7\x030\n\r\n\x05\x04\x05\x02\x03\x06\x12\x04\xba\ - \x03\x02\x15\n\r\n\x05\x04\x05\x02\x03\x01\x12\x04\xba\x03\x16+\n\r\n\ - \x05\x04\x05\x02\x03\x03\x12\x04\xba\x03./\n1\n\x02\x04\x06\x12\x06\xbe\ - \x03\0\xcb\x03\x01\x1a#\x20Request\x20message\x20for\x20DeleteBucket.\n\ - \n\x0b\n\x03\x04\x06\x01\x12\x04\xbe\x03\x08\x1b\n+\n\x04\x04\x06\x02\0\ - \x12\x04\xc0\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\ - \n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xc0\x03\x02\xbe\x03\x1d\n\r\n\ - \x05\x04\x06\x02\0\x05\x12\x04\xc0\x03\x02\x08\n\r\n\x05\x04\x06\x02\0\ - \x01\x12\x04\xc0\x03\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xc0\x03\ - \x12\x13\n\r\n\x05\x04\x06\x02\0\x08\x12\x04\xc0\x03\x14<\n\x10\n\x08\ - \x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xc0\x03\x15;\nY\n\x04\x04\x06\x02\ - \x01\x12\x04\xc3\x03\x029\x1aK\x20If\x20set,\x20only\x20deletes\x20the\ - \x20bucket\x20if\x20its\x20metageneration\x20matches\x20this\x20value.\n\ - \n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xc3\x03\x02\xc0\x03=\n\r\n\x05\ - \x04\x06\x02\x01\x06\x12\x04\xc3\x03\x02\x1c\n\r\n\x05\x04\x06\x02\x01\ - \x01\x12\x04\xc3\x03\x1d4\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xc3\x037\ - 8\na\n\x04\x04\x06\x02\x02\x12\x04\xc7\x03\x02=\x1aS\x20If\x20set,\x20on\ - ly\x20deletes\x20the\x20bucket\x20if\x20its\x20metageneration\x20does\ - \x20not\x20match\x20this\n\x20value.\n\n\x0f\n\x05\x04\x06\x02\x02\x04\ - \x12\x06\xc7\x03\x02\xc3\x039\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\xc7\ - \x03\x02\x1c\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xc7\x03\x1d8\n\r\n\ - \x05\x04\x06\x02\x02\x03\x12\x04\xc7\x03;<\nG\n\x04\x04\x06\x02\x03\x12\ - \x04\xca\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ - \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x06\x02\x03\x04\ - \x12\x06\xca\x03\x02\xc7\x03=\n\r\n\x05\x04\x06\x02\x03\x06\x12\x04\xca\ - \x03\x02\x15\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\xca\x03\x16+\n\r\n\ - \x05\x04\x06\x02\x03\x03\x12\x04\xca\x03./\n.\n\x02\x04\x07\x12\x06\xce\ - \x03\0\xdf\x03\x01\x1a\x20\x20Request\x20message\x20for\x20GetBucket.\n\ - \n\x0b\n\x03\x04\x07\x01\x12\x04\xce\x03\x08\x18\n+\n\x04\x04\x07\x02\0\ - \x12\x04\xd0\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\ - \n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xd0\x03\x02\xce\x03\x1a\n\r\n\ - \x05\x04\x07\x02\0\x05\x12\x04\xd0\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\ - \x01\x12\x04\xd0\x03\t\x0f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xd0\x03\ - \x12\x13\n\r\n\x05\x04\x07\x02\0\x08\x12\x04\xd0\x03\x14<\n\x10\n\x08\ - \x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xd0\x03\x15;\n\x8c\x01\n\x04\x04\ - \x07\x02\x01\x12\x04\xd4\x03\x029\x1a~\x20Makes\x20the\x20return\x20of\ - \x20the\x20bucket\x20metadata\x20conditional\x20on\x20whether\x20the\x20\ - bucket's\n\x20current\x20metageneration\x20matches\x20the\x20given\x20va\ - lue.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xd4\x03\x02\xd0\x03=\n\r\ - \n\x05\x04\x07\x02\x01\x06\x12\x04\xd4\x03\x02\x1c\n\r\n\x05\x04\x07\x02\ - \x01\x01\x12\x04\xd4\x03\x1d4\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xd4\ - \x0378\n\x94\x01\n\x04\x04\x07\x02\x02\x12\x04\xd8\x03\x02=\x1a\x85\x01\ - \x20Makes\x20the\x20return\x20of\x20the\x20bucket\x20metadata\x20conditi\ - onal\x20on\x20whether\x20the\x20bucket's\n\x20current\x20metageneration\ - \x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\x07\ - \x02\x02\x04\x12\x06\xd8\x03\x02\xd4\x039\n\r\n\x05\x04\x07\x02\x02\x06\ - \x12\x04\xd8\x03\x02\x1c\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xd8\x03\ - \x1d8\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xd8\x03;<\nB\n\x04\x04\x07\ - \x02\x03\x12\x04\xdb\x03\x02(\x1a4\x20Set\x20of\x20properties\x20to\x20r\ - eturn.\x20Defaults\x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x04\x07\x02\x03\x04\ - \x12\x06\xdb\x03\x02\xd8\x03=\n\r\n\x05\x04\x07\x02\x03\x06\x12\x04\xdb\ - \x03\x02\x18\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\xdb\x03\x19#\n\r\n\ - \x05\x04\x07\x02\x03\x03\x12\x04\xdb\x03&'\nG\n\x04\x04\x07\x02\x04\x12\ - \x04\xde\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ - \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x07\x02\x04\x04\ - \x12\x06\xde\x03\x02\xdb\x03(\n\r\n\x05\x04\x07\x02\x04\x06\x12\x04\xde\ - \x03\x02\x15\n\r\n\x05\x04\x07\x02\x04\x01\x12\x04\xde\x03\x16+\n\r\n\ - \x05\x04\x07\x02\x04\x03\x12\x04\xde\x03./\n1\n\x02\x04\x08\x12\x06\xe2\ - \x03\0\xf6\x03\x01\x1a#\x20Request\x20message\x20for\x20InsertBucket.\n\ - \n\x0b\n\x03\x04\x08\x01\x12\x04\xe2\x03\x08\x1b\nI\n\x04\x04\x08\x02\0\ - \x12\x04\xe4\x03\x025\x1a;\x20Apply\x20a\x20predefined\x20set\x20of\x20a\ - ccess\x20controls\x20to\x20this\x20bucket.\n\n\x0f\n\x05\x04\x08\x02\0\ - \x04\x12\x06\xe4\x03\x02\xe2\x03\x1d\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\ - \xe4\x03\x02!\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xe4\x03\"0\n\r\n\x05\ - \x04\x08\x02\0\x03\x12\x04\xe4\x0334\nX\n\x04\x04\x08\x02\x01\x12\x04\ - \xe7\x03\x02D\x1aJ\x20Apply\x20a\x20predefined\x20set\x20of\x20default\ - \x20object\x20access\x20controls\x20to\x20this\x20bucket.\n\n\x0f\n\x05\ - \x04\x08\x02\x01\x04\x12\x06\xe7\x03\x02\xe4\x035\n\r\n\x05\x04\x08\x02\ - \x01\x06\x12\x04\xe7\x03\x02!\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xe7\ - \x03\"?\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xe7\x03BC\n9\n\x04\x04\x08\ - \x02\x02\x12\x04\xea\x03\x02>\x1a+\x20Required.\x20A\x20valid\x20API\x20\ - project\x20identifier.\n\n\x0f\n\x05\x04\x08\x02\x02\x04\x12\x06\xea\x03\ - \x02\xe7\x03D\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\xea\x03\x02\x08\n\r\ - \n\x05\x04\x08\x02\x02\x01\x12\x04\xea\x03\t\x10\n\r\n\x05\x04\x08\x02\ - \x02\x03\x12\x04\xea\x03\x13\x14\n\r\n\x05\x04\x08\x02\x02\x08\x12\x04\ - \xea\x03\x15=\n\x10\n\x08\x04\x08\x02\x02\x08\x9c\x08\0\x12\x04\xea\x03\ - \x16<\n\xae\x01\n\x04\x04\x08\x02\x03\x12\x04\xef\x03\x02(\x1a\x9f\x01\ - \x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\x20to\x20`NO_AC\ - L`,\x20unless\x20the\n\x20bucket\x20resource\x20specifies\x20`acl`\x20or\ - \x20`defaultObjectAcl`\n\x20properties,\x20when\x20it\x20defaults\x20to\ - \x20`FULL`.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\x12\x06\xef\x03\x02\xea\ - \x03>\n\r\n\x05\x04\x08\x02\x03\x06\x12\x04\xef\x03\x02\x18\n\r\n\x05\ - \x04\x08\x02\x03\x01\x12\x04\xef\x03\x19#\n\r\n\x05\x04\x08\x02\x03\x03\ - \x12\x04\xef\x03&'\nP\n\x04\x04\x08\x02\x04\x12\x04\xf2\x03\x02\x14\x1aB\ - \x20Properties\x20of\x20the\x20new\x20bucket\x20being\x20inserted,\x20in\ - cluding\x20its\x20name.\n\n\x0f\n\x05\x04\x08\x02\x04\x04\x12\x06\xf2\ - \x03\x02\xef\x03(\n\r\n\x05\x04\x08\x02\x04\x06\x12\x04\xf2\x03\x02\x08\ - \n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\xf2\x03\t\x0f\n\r\n\x05\x04\x08\ - \x02\x04\x03\x12\x04\xf2\x03\x12\x13\nG\n\x04\x04\x08\x02\x05\x12\x04\ - \xf5\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ - l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x08\x02\x05\x04\x12\ - \x06\xf5\x03\x02\xf2\x03\x14\n\r\n\x05\x04\x08\x02\x05\x06\x12\x04\xf5\ - \x03\x02\x15\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\xf5\x03\x16+\n\r\n\ - \x05\x04\x08\x02\x05\x03\x12\x04\xf5\x03./\n1\n\x02\x04\t\x12\x06\xf9\ - \x03\0\xff\x03\x01\x1a#\x20Request\x20message\x20for\x20ListChannels.\n\ - \n\x0b\n\x03\x04\t\x01\x12\x04\xf9\x03\x08\x1b\n+\n\x04\x04\t\x02\0\x12\ - \x04\xfb\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\ - \x0f\n\x05\x04\t\x02\0\x04\x12\x06\xfb\x03\x02\xf9\x03\x1d\n\r\n\x05\x04\ - \t\x02\0\x05\x12\x04\xfb\x03\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\ - \xfb\x03\t\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xfb\x03\x12\x13\n\r\n\ - \x05\x04\t\x02\0\x08\x12\x04\xfb\x03\x14<\n\x10\n\x08\x04\t\x02\0\x08\ - \x9c\x08\0\x12\x04\xfb\x03\x15;\nG\n\x04\x04\t\x02\x01\x12\x04\xfe\x03\ - \x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Sto\ - rage\x20API\x20requests.\n\n\x0f\n\x05\x04\t\x02\x01\x04\x12\x06\xfe\x03\ - \x02\xfb\x03=\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\xfe\x03\x02\x15\n\r\n\ - \x05\x04\t\x02\x01\x01\x12\x04\xfe\x03\x16+\n\r\n\x05\x04\t\x02\x01\x03\ - \x12\x04\xfe\x03./\n0\n\x02\x04\n\x12\x06\x82\x04\0\x96\x04\x01\x1a\"\ - \x20Request\x20message\x20for\x20ListBuckets.\n\n\x0b\n\x03\x04\n\x01\ - \x12\x04\x82\x04\x08\x1a\n\x95\x01\n\x04\x04\n\x02\0\x12\x04\x85\x04\x02\ - \x18\x1a\x86\x01\x20Maximum\x20number\x20of\x20buckets\x20to\x20return\ - \x20in\x20a\x20single\x20response.\x20The\x20service\x20will\n\x20use\ - \x20this\x20parameter\x20or\x201,000\x20items,\x20whichever\x20is\x20sma\ - ller.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\x85\x04\x02\x82\x04\x1c\n\r\ - \n\x05\x04\n\x02\0\x05\x12\x04\x85\x04\x02\x07\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\x85\x04\x08\x13\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x85\x04\x16\ - \x17\ni\n\x04\x04\n\x02\x01\x12\x04\x89\x04\x02\x18\x1a[\x20A\x20previou\ - sly-returned\x20page\x20token\x20representing\x20part\x20of\x20the\x20la\ - rger\x20set\x20of\n\x20results\x20to\x20view.\n\n\x0f\n\x05\x04\n\x02\ - \x01\x04\x12\x06\x89\x04\x02\x85\x04\x18\n\r\n\x05\x04\n\x02\x01\x05\x12\ - \x04\x89\x04\x02\x08\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x89\x04\t\x13\n\ - \r\n\x05\x04\n\x02\x01\x03\x12\x04\x89\x04\x16\x17\nM\n\x04\x04\n\x02\ - \x02\x12\x04\x8c\x04\x02\x14\x1a?\x20Filter\x20results\x20to\x20buckets\ - \x20whose\x20names\x20begin\x20with\x20this\x20prefix.\n\n\x0f\n\x05\x04\ - \n\x02\x02\x04\x12\x06\x8c\x04\x02\x89\x04\x18\n\r\n\x05\x04\n\x02\x02\ - \x05\x12\x04\x8c\x04\x02\x08\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\x8c\x04\ - \t\x0f\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\x8c\x04\x12\x13\n9\n\x04\x04\ - \n\x02\x03\x12\x04\x8f\x04\x02>\x1a+\x20Required.\x20A\x20valid\x20API\ - \x20project\x20identifier.\n\n\x0f\n\x05\x04\n\x02\x03\x04\x12\x06\x8f\ - \x04\x02\x8c\x04\x14\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\x8f\x04\x02\x08\ - \n\r\n\x05\x04\n\x02\x03\x01\x12\x04\x8f\x04\t\x10\n\r\n\x05\x04\n\x02\ - \x03\x03\x12\x04\x8f\x04\x13\x14\n\r\n\x05\x04\n\x02\x03\x08\x12\x04\x8f\ - \x04\x15=\n\x10\n\x08\x04\n\x02\x03\x08\x9c\x08\0\x12\x04\x8f\x04\x16<\n\ - B\n\x04\x04\n\x02\x04\x12\x04\x92\x04\x02(\x1a4\x20Set\x20of\x20properti\ - es\x20to\x20return.\x20Defaults\x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x04\n\ - \x02\x04\x04\x12\x06\x92\x04\x02\x8f\x04>\n\r\n\x05\x04\n\x02\x04\x06\ - \x12\x04\x92\x04\x02\x18\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\x92\x04\x19\ - #\n\r\n\x05\x04\n\x02\x04\x03\x12\x04\x92\x04&'\nG\n\x04\x04\n\x02\x05\ - \x12\x04\x95\x04\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20\ - to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\n\x02\x05\x04\ - \x12\x06\x95\x04\x02\x92\x04(\n\r\n\x05\x04\n\x02\x05\x06\x12\x04\x95\ - \x04\x02\x15\n\r\n\x05\x04\n\x02\x05\x01\x12\x04\x95\x04\x16+\n\r\n\x05\ - \x04\n\x02\x05\x03\x12\x04\x95\x04./\n8\n\x02\x04\x0b\x12\x06\x99\x04\0\ - \xa3\x04\x01\x1a*\x20Request\x20message\x20for\x20LockRetentionPolicy.\n\ - \n\x0b\n\x03\x04\x0b\x01\x12\x04\x99\x04\x08\"\n+\n\x04\x04\x0b\x02\0\ - \x12\x04\x9b\x04\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\ - \n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\x9b\x04\x02\x99\x04$\n\r\n\x05\ - \x04\x0b\x02\0\x05\x12\x04\x9b\x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\ - \x12\x04\x9b\x04\t\x0f\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x9b\x04\x12\ - \x13\n\r\n\x05\x04\x0b\x02\0\x08\x12\x04\x9b\x04\x14<\n\x10\n\x08\x04\ - \x0b\x02\0\x08\x9c\x08\0\x12\x04\x9b\x04\x15;\n\x86\x01\n\x04\x04\x0b\ - \x02\x01\x12\x04\x9f\x04\x02$\x1ax\x20Makes\x20the\x20operation\x20condi\ - tional\x20on\x20whether\x20bucket's\x20current\x20metageneration\n\x20ma\ - tches\x20the\x20given\x20value.\x20Must\x20be\x20positive.\n\n\x0f\n\x05\ - \x04\x0b\x02\x01\x04\x12\x06\x9f\x04\x02\x9b\x04=\n\r\n\x05\x04\x0b\x02\ - \x01\x05\x12\x04\x9f\x04\x02\x07\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\ - \x9f\x04\x08\x1f\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x9f\x04\"#\nG\n\ - \x04\x04\x0b\x02\x02\x12\x04\xa2\x04\x020\x1a9\x20A\x20set\x20of\x20para\ - meters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\ - \x05\x04\x0b\x02\x02\x04\x12\x06\xa2\x04\x02\x9f\x04$\n\r\n\x05\x04\x0b\ - \x02\x02\x06\x12\x04\xa2\x04\x02\x15\n\r\n\x05\x04\x0b\x02\x02\x01\x12\ - \x04\xa2\x04\x16+\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xa2\x04./\n/\n\ - \x02\x04\x0c\x12\x06\xa6\x04\0\xcc\x04\x01\x1a!\x20Request\x20for\x20Pat\ - chBucket\x20method.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xa6\x04\x08\x1a\n+\ - \n\x04\x04\x0c\x02\0\x12\x04\xa8\x04\x02=\x1a\x1d\x20Required.\x20Name\ - \x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xa8\x04\ - \x02\xa6\x04\x1c\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xa8\x04\x02\x08\n\r\ - \n\x05\x04\x0c\x02\0\x01\x12\x04\xa8\x04\t\x0f\n\r\n\x05\x04\x0c\x02\0\ - \x03\x12\x04\xa8\x04\x12\x13\n\r\n\x05\x04\x0c\x02\0\x08\x12\x04\xa8\x04\ - \x14<\n\x10\n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xa8\x04\x15;\n\x8c\ - \x01\n\x04\x04\x0c\x02\x01\x12\x04\xac\x04\x029\x1a~\x20Makes\x20the\x20\ - return\x20of\x20the\x20bucket\x20metadata\x20conditional\x20on\x20whethe\ - r\x20the\x20bucket's\n\x20current\x20metageneration\x20matches\x20the\ - \x20given\x20value.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\xac\x04\ - \x02\xa8\x04=\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\xac\x04\x02\x1c\n\r\ - \n\x05\x04\x0c\x02\x01\x01\x12\x04\xac\x04\x1d4\n\r\n\x05\x04\x0c\x02\ - \x01\x03\x12\x04\xac\x0478\n\x94\x01\n\x04\x04\x0c\x02\x02\x12\x04\xb0\ - \x04\x02=\x1a\x85\x01\x20Makes\x20the\x20return\x20of\x20the\x20bucket\ - \x20metadata\x20conditional\x20on\x20whether\x20the\x20bucket's\n\x20cur\ - rent\x20metageneration\x20does\x20not\x20match\x20the\x20given\x20value.\ - \n\n\x0f\n\x05\x04\x0c\x02\x02\x04\x12\x06\xb0\x04\x02\xac\x049\n\r\n\ - \x05\x04\x0c\x02\x02\x06\x12\x04\xb0\x04\x02\x1c\n\r\n\x05\x04\x0c\x02\ - \x02\x01\x12\x04\xb0\x04\x1d8\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xb0\ - \x04;<\nI\n\x04\x04\x0c\x02\x03\x12\x04\xb3\x04\x025\x1a;\x20Apply\x20a\ - \x20predefined\x20set\x20of\x20access\x20controls\x20to\x20this\x20bucke\ - t.\n\n\x0f\n\x05\x04\x0c\x02\x03\x04\x12\x06\xb3\x04\x02\xb0\x04=\n\r\n\ - \x05\x04\x0c\x02\x03\x06\x12\x04\xb3\x04\x02!\n\r\n\x05\x04\x0c\x02\x03\ - \x01\x12\x04\xb3\x04\"0\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xb3\x0434\ - \nX\n\x04\x04\x0c\x02\x04\x12\x04\xb6\x04\x02D\x1aJ\x20Apply\x20a\x20pre\ - defined\x20set\x20of\x20default\x20object\x20access\x20controls\x20to\ - \x20this\x20bucket.\n\n\x0f\n\x05\x04\x0c\x02\x04\x04\x12\x06\xb6\x04\ - \x02\xb3\x045\n\r\n\x05\x04\x0c\x02\x04\x06\x12\x04\xb6\x04\x02!\n\r\n\ - \x05\x04\x0c\x02\x04\x01\x12\x04\xb6\x04\"?\n\r\n\x05\x04\x0c\x02\x04\ - \x03\x12\x04\xb6\x04BC\n@\n\x04\x04\x0c\x02\x05\x12\x04\xb9\x04\x02(\x1a\ - 2\x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\x20to\x20`FULL\ - `.\n\n\x0f\n\x05\x04\x0c\x02\x05\x04\x12\x06\xb9\x04\x02\xb6\x04D\n\r\n\ - \x05\x04\x0c\x02\x05\x06\x12\x04\xb9\x04\x02\x18\n\r\n\x05\x04\x0c\x02\ - \x05\x01\x12\x04\xb9\x04\x19#\n\r\n\x05\x04\x0c\x02\x05\x03\x12\x04\xb9\ - \x04&'\n1\n\x04\x04\x0c\x02\x06\x12\x04\xbc\x04\x02\x16\x1a#\x20The\x20B\ - ucket\x20metadata\x20for\x20updating.\n\n\x0f\n\x05\x04\x0c\x02\x06\x04\ - \x12\x06\xbc\x04\x02\xb9\x04(\n\r\n\x05\x04\x0c\x02\x06\x06\x12\x04\xbc\ - \x04\x02\x08\n\r\n\x05\x04\x0c\x02\x06\x01\x12\x04\xbc\x04\t\x11\n\r\n\ - \x05\x04\x0c\x02\x06\x03\x12\x04\xbc\x04\x14\x15\n\xbd\x03\n\x04\x04\x0c\ - \x02\x07\x12\x04\xc8\x04\x02,\x1a\xae\x03\x20List\x20of\x20fields\x20to\ - \x20be\x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\ - \x20to\x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\ - \x20a\x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20not\ - \x20recommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20at\ - \x20a\x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\x20\ - the\x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field's\ - \x20value.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20erro\ - r.\n\x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20f\ - ield\x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\ - \n\x05\x04\x0c\x02\x07\x04\x12\x06\xc8\x04\x02\xbc\x04\x16\n\r\n\x05\x04\ - \x0c\x02\x07\x06\x12\x04\xc8\x04\x02\x1b\n\r\n\x05\x04\x0c\x02\x07\x01\ - \x12\x04\xc8\x04\x1c'\n\r\n\x05\x04\x0c\x02\x07\x03\x12\x04\xc8\x04*+\nG\ - \n\x04\x04\x0c\x02\x08\x12\x04\xcb\x04\x021\x1a9\x20A\x20set\x20of\x20pa\ - rameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\ - \x05\x04\x0c\x02\x08\x04\x12\x06\xcb\x04\x02\xc8\x04,\n\r\n\x05\x04\x0c\ - \x02\x08\x06\x12\x04\xcb\x04\x02\x15\n\r\n\x05\x04\x0c\x02\x08\x01\x12\ - \x04\xcb\x04\x16+\n\r\n\x05\x04\x0c\x02\x08\x03\x12\x04\xcb\x04.0\n0\n\ - \x02\x04\r\x12\x06\xcf\x04\0\xe9\x04\x01\x1a\"\x20Request\x20for\x20Upda\ - teBucket\x20method.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xcf\x04\x08\x1b\n+\n\ - \x04\x04\r\x02\0\x12\x04\xd1\x04\x02=\x1a\x1d\x20Required.\x20Name\x20of\ - \x20a\x20bucket.\n\n\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xd1\x04\x02\xcf\ - \x04\x1d\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xd1\x04\x02\x08\n\r\n\x05\x04\ - \r\x02\0\x01\x12\x04\xd1\x04\t\x0f\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xd1\ - \x04\x12\x13\n\r\n\x05\x04\r\x02\0\x08\x12\x04\xd1\x04\x14<\n\x10\n\x08\ - \x04\r\x02\0\x08\x9c\x08\0\x12\x04\xd1\x04\x15;\n\x8c\x01\n\x04\x04\r\ - \x02\x01\x12\x04\xd5\x04\x029\x1a~\x20Makes\x20the\x20return\x20of\x20th\ - e\x20bucket\x20metadata\x20conditional\x20on\x20whether\x20the\x20bucket\ - 's\n\x20current\x20metageneration\x20matches\x20the\x20given\x20value.\n\ - \n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xd5\x04\x02\xd1\x04=\n\r\n\x05\ - \x04\r\x02\x01\x06\x12\x04\xd5\x04\x02\x1c\n\r\n\x05\x04\r\x02\x01\x01\ - \x12\x04\xd5\x04\x1d4\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\xd5\x0478\n\ - \x94\x01\n\x04\x04\r\x02\x02\x12\x04\xd9\x04\x02=\x1a\x85\x01\x20Makes\ - \x20the\x20return\x20of\x20the\x20bucket\x20metadata\x20conditional\x20o\ - n\x20whether\x20the\x20bucket's\n\x20current\x20metageneration\x20does\ - \x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\r\x02\x02\ - \x04\x12\x06\xd9\x04\x02\xd5\x049\n\r\n\x05\x04\r\x02\x02\x06\x12\x04\ - \xd9\x04\x02\x1c\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xd9\x04\x1d8\n\r\n\ - \x05\x04\r\x02\x02\x03\x12\x04\xd9\x04;<\nI\n\x04\x04\r\x02\x03\x12\x04\ - \xdc\x04\x025\x1a;\x20Apply\x20a\x20predefined\x20set\x20of\x20access\ - \x20controls\x20to\x20this\x20bucket.\n\n\x0f\n\x05\x04\r\x02\x03\x04\ - \x12\x06\xdc\x04\x02\xd9\x04=\n\r\n\x05\x04\r\x02\x03\x06\x12\x04\xdc\ - \x04\x02!\n\r\n\x05\x04\r\x02\x03\x01\x12\x04\xdc\x04\"0\n\r\n\x05\x04\r\ - \x02\x03\x03\x12\x04\xdc\x0434\nX\n\x04\x04\r\x02\x04\x12\x04\xdf\x04\ - \x02D\x1aJ\x20Apply\x20a\x20predefined\x20set\x20of\x20default\x20object\ - \x20access\x20controls\x20to\x20this\x20bucket.\n\n\x0f\n\x05\x04\r\x02\ - \x04\x04\x12\x06\xdf\x04\x02\xdc\x045\n\r\n\x05\x04\r\x02\x04\x06\x12\ - \x04\xdf\x04\x02!\n\r\n\x05\x04\r\x02\x04\x01\x12\x04\xdf\x04\"?\n\r\n\ - \x05\x04\r\x02\x04\x03\x12\x04\xdf\x04BC\n@\n\x04\x04\r\x02\x05\x12\x04\ - \xe2\x04\x02(\x1a2\x20Set\x20of\x20properties\x20to\x20return.\x20Defaul\ - ts\x20to\x20`FULL`.\n\n\x0f\n\x05\x04\r\x02\x05\x04\x12\x06\xe2\x04\x02\ - \xdf\x04D\n\r\n\x05\x04\r\x02\x05\x06\x12\x04\xe2\x04\x02\x18\n\r\n\x05\ - \x04\r\x02\x05\x01\x12\x04\xe2\x04\x19#\n\r\n\x05\x04\r\x02\x05\x03\x12\ - \x04\xe2\x04&'\n1\n\x04\x04\r\x02\x06\x12\x04\xe5\x04\x02\x16\x1a#\x20Th\ - e\x20Bucket\x20metadata\x20for\x20updating.\n\n\x0f\n\x05\x04\r\x02\x06\ - \x04\x12\x06\xe5\x04\x02\xe2\x04(\n\r\n\x05\x04\r\x02\x06\x06\x12\x04\ - \xe5\x04\x02\x08\n\r\n\x05\x04\r\x02\x06\x01\x12\x04\xe5\x04\t\x11\n\r\n\ - \x05\x04\r\x02\x06\x03\x12\x04\xe5\x04\x14\x15\nG\n\x04\x04\r\x02\x07\ - \x12\x04\xe8\x04\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20\ - to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\r\x02\x07\x04\ - \x12\x06\xe8\x04\x02\xe5\x04\x16\n\r\n\x05\x04\r\x02\x07\x06\x12\x04\xe8\ - \x04\x02\x15\n\r\n\x05\x04\r\x02\x07\x01\x12\x04\xe8\x04\x16+\n\r\n\x05\ - \x04\r\x02\x07\x03\x12\x04\xe8\x04./\n0\n\x02\x04\x0e\x12\x06\xec\x04\0\ - \xf2\x04\x01\x1a\"\x20Request\x20message\x20for\x20StopChannel.\n\n\x0b\ - \n\x03\x04\x0e\x01\x12\x04\xec\x04\x08\x1a\n*\n\x04\x04\x0e\x02\0\x12\ - \x04\xee\x04\x02\x16\x1a\x1c\x20The\x20channel\x20to\x20be\x20stopped.\n\ - \n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xee\x04\x02\xec\x04\x1c\n\r\n\x05\ - \x04\x0e\x02\0\x06\x12\x04\xee\x04\x02\t\n\r\n\x05\x04\x0e\x02\0\x01\x12\ - \x04\xee\x04\n\x11\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xee\x04\x14\x15\n\ - G\n\x04\x04\x0e\x02\x01\x12\x04\xf1\x04\x020\x1a9\x20A\x20set\x20of\x20p\ - arameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\ - \n\x05\x04\x0e\x02\x01\x04\x12\x06\xf1\x04\x02\xee\x04\x16\n\r\n\x05\x04\ - \x0e\x02\x01\x06\x12\x04\xf1\x04\x02\x15\n\r\n\x05\x04\x0e\x02\x01\x01\ - \x12\x04\xf1\x04\x16+\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xf1\x04./\nE\ - \n\x02\x04\x0f\x12\x06\xf5\x04\0\x84\x05\x01\x1a7\x20Request\x20message\ - \x20for\x20DeleteDefaultObjectAccessControl.\n\n\x0b\n\x03\x04\x0f\x01\ - \x12\x04\xf5\x04\x08/\n+\n\x04\x04\x0f\x02\0\x12\x04\xf7\x04\x02=\x1a\ - \x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x0f\ - \x02\0\x04\x12\x06\xf7\x04\x02\xf5\x041\n\r\n\x05\x04\x0f\x02\0\x05\x12\ - \x04\xf7\x04\x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xf7\x04\t\x0f\n\ - \r\n\x05\x04\x0f\x02\0\x03\x12\x04\xf7\x04\x12\x13\n\r\n\x05\x04\x0f\x02\ - \0\x08\x12\x04\xf7\x04\x14<\n\x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\ - \x04\xf7\x04\x15;\n\xd0\x01\n\x04\x04\x0f\x02\x01\x12\x04\x80\x05\x02=\ - \x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permissi\ - on.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user\ - -`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAdd\ - ress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\ - \x05\x04\x0f\x02\x01\x04\x12\x06\x80\x05\x02\xf7\x04=\n\r\n\x05\x04\x0f\ - \x02\x01\x05\x12\x04\x80\x05\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\ - \x04\x80\x05\t\x0f\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x80\x05\x12\x13\ - \n\r\n\x05\x04\x0f\x02\x01\x08\x12\x04\x80\x05\x14<\n\x10\n\x08\x04\x0f\ - \x02\x01\x08\x9c\x08\0\x12\x04\x80\x05\x15;\nG\n\x04\x04\x0f\x02\x02\x12\ - \x04\x83\x05\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ - \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x0f\x02\x02\x04\ - \x12\x06\x83\x05\x02\x80\x05=\n\r\n\x05\x04\x0f\x02\x02\x06\x12\x04\x83\ - \x05\x02\x15\n\r\n\x05\x04\x0f\x02\x02\x01\x12\x04\x83\x05\x16+\n\r\n\ - \x05\x04\x0f\x02\x02\x03\x12\x04\x83\x05./\nB\n\x02\x04\x10\x12\x06\x87\ - \x05\0\x96\x05\x01\x1a4\x20Request\x20message\x20for\x20GetDefaultObject\ - AccessControl.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x87\x05\x08,\n+\n\x04\ - \x04\x10\x02\0\x12\x04\x89\x05\x02=\x1a\x1d\x20Required.\x20Name\x20of\ - \x20a\x20bucket.\n\n\x0f\n\x05\x04\x10\x02\0\x04\x12\x06\x89\x05\x02\x87\ - \x05.\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\x89\x05\x02\x08\n\r\n\x05\x04\ - \x10\x02\0\x01\x12\x04\x89\x05\t\x0f\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\ - \x89\x05\x12\x13\n\r\n\x05\x04\x10\x02\0\x08\x12\x04\x89\x05\x14<\n\x10\ - \n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\x04\x89\x05\x15;\n\xd0\x01\n\x04\ - \x04\x10\x02\x01\x12\x04\x92\x05\x02=\x1a\xc1\x01\x20Required.\x20The\ - \x20entity\x20holding\x20the\x20permission.\x20Can\x20be\x20one\x20of:\n\ - \x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`grou\ - p-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\x20\ - *\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\x10\x02\x01\x04\x12\x06\ - \x92\x05\x02\x89\x05=\n\r\n\x05\x04\x10\x02\x01\x05\x12\x04\x92\x05\x02\ - \x08\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\x92\x05\t\x0f\n\r\n\x05\x04\ - \x10\x02\x01\x03\x12\x04\x92\x05\x12\x13\n\r\n\x05\x04\x10\x02\x01\x08\ - \x12\x04\x92\x05\x14<\n\x10\n\x08\x04\x10\x02\x01\x08\x9c\x08\0\x12\x04\ - \x92\x05\x15;\nG\n\x04\x04\x10\x02\x02\x12\x04\x95\x05\x020\x1a9\x20A\ - \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ - requests.\n\n\x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\x95\x05\x02\x92\x05=\ - \n\r\n\x05\x04\x10\x02\x02\x06\x12\x04\x95\x05\x02\x15\n\r\n\x05\x04\x10\ - \x02\x02\x01\x12\x04\x95\x05\x16+\n\r\n\x05\x04\x10\x02\x02\x03\x12\x04\ - \x95\x05./\nE\n\x02\x04\x11\x12\x06\x99\x05\0\xa2\x05\x01\x1a7\x20Reques\ - t\x20message\x20for\x20InsertDefaultObjectAccessControl.\n\n\x0b\n\x03\ - \x04\x11\x01\x12\x04\x99\x05\x08/\n+\n\x04\x04\x11\x02\0\x12\x04\x9b\x05\ - \x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\ - \x04\x11\x02\0\x04\x12\x06\x9b\x05\x02\x99\x051\n\r\n\x05\x04\x11\x02\0\ - \x05\x12\x04\x9b\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\x9b\x05\ - \t\x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\x9b\x05\x12\x13\n\r\n\x05\x04\ - \x11\x02\0\x08\x12\x04\x9b\x05\x14<\n\x10\n\x08\x04\x11\x02\0\x08\x9c\ - \x08\0\x12\x04\x9b\x05\x15;\nG\n\x04\x04\x11\x02\x01\x12\x04\x9e\x05\x02\ - 0\x1a9\x20Properties\x20of\x20the\x20object\x20access\x20control\x20bein\ - g\x20inserted.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\x9e\x05\x02\x9b\ - \x05=\n\r\n\x05\x04\x11\x02\x01\x06\x12\x04\x9e\x05\x02\x15\n\r\n\x05\ - \x04\x11\x02\x01\x01\x12\x04\x9e\x05\x16+\n\r\n\x05\x04\x11\x02\x01\x03\ - \x12\x04\x9e\x05./\nG\n\x04\x04\x11\x02\x02\x12\x04\xa1\x05\x020\x1a9\ - \x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20AP\ - I\x20requests.\n\n\x0f\n\x05\x04\x11\x02\x02\x04\x12\x06\xa1\x05\x02\x9e\ - \x050\n\r\n\x05\x04\x11\x02\x02\x06\x12\x04\xa1\x05\x02\x15\n\r\n\x05\ - \x04\x11\x02\x02\x01\x12\x04\xa1\x05\x16+\n\r\n\x05\x04\x11\x02\x02\x03\ - \x12\x04\xa1\x05./\nD\n\x02\x04\x12\x12\x06\xa5\x05\0\xb3\x05\x01\x1a6\ - \x20Request\x20message\x20for\x20ListDefaultObjectAccessControls.\n\n\ - \x0b\n\x03\x04\x12\x01\x12\x04\xa5\x05\x08.\n+\n\x04\x04\x12\x02\0\x12\ - \x04\xa7\x05\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\ - \x0f\n\x05\x04\x12\x02\0\x04\x12\x06\xa7\x05\x02\xa5\x050\n\r\n\x05\x04\ - \x12\x02\0\x05\x12\x04\xa7\x05\x02\x08\n\r\n\x05\x04\x12\x02\0\x01\x12\ - \x04\xa7\x05\t\x0f\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xa7\x05\x12\x13\n\ - \r\n\x05\x04\x12\x02\0\x08\x12\x04\xa7\x05\x14<\n\x10\n\x08\x04\x12\x02\ - \0\x08\x9c\x08\0\x12\x04\xa7\x05\x15;\nw\n\x04\x04\x12\x02\x01\x12\x04\ - \xab\x05\x029\x1ai\x20If\x20present,\x20only\x20return\x20default\x20ACL\ - \x20listing\x20if\x20the\x20bucket's\x20current\n\x20metageneration\x20m\ - atches\x20this\x20value.\n\n\x0f\n\x05\x04\x12\x02\x01\x04\x12\x06\xab\ - \x05\x02\xa7\x05=\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xab\x05\x02\x1c\ - \n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xab\x05\x1d4\n\r\n\x05\x04\x12\ - \x02\x01\x03\x12\x04\xab\x0578\n\x83\x01\n\x04\x04\x12\x02\x02\x12\x04\ - \xaf\x05\x02=\x1au\x20If\x20present,\x20only\x20return\x20default\x20ACL\ - \x20listing\x20if\x20the\x20bucket's\x20current\n\x20metageneration\x20d\ - oes\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\x12\x02\ - \x02\x04\x12\x06\xaf\x05\x02\xab\x059\n\r\n\x05\x04\x12\x02\x02\x06\x12\ - \x04\xaf\x05\x02\x1c\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\xaf\x05\x1d8\ - \n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xaf\x05;<\nG\n\x04\x04\x12\x02\ - \x03\x12\x04\xb2\x05\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\ - \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x12\x02\ - \x03\x04\x12\x06\xb2\x05\x02\xaf\x05=\n\r\n\x05\x04\x12\x02\x03\x06\x12\ - \x04\xb2\x05\x02\x15\n\r\n\x05\x04\x12\x02\x03\x01\x12\x04\xb2\x05\x16+\ - \n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\xb2\x05./\nD\n\x02\x04\x13\x12\ - \x06\xb6\x05\0\xd4\x05\x01\x1a6\x20Request\x20message\x20for\x20PatchDef\ - aultObjectAccessControl.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xb6\x05\x08.\ - \n+\n\x04\x04\x13\x02\0\x12\x04\xb8\x05\x02=\x1a\x1d\x20Required.\x20Nam\ - e\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xb8\x05\ - \x02\xb6\x050\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xb8\x05\x02\x08\n\r\n\ - \x05\x04\x13\x02\0\x01\x12\x04\xb8\x05\t\x0f\n\r\n\x05\x04\x13\x02\0\x03\ - \x12\x04\xb8\x05\x12\x13\n\r\n\x05\x04\x13\x02\0\x08\x12\x04\xb8\x05\x14\ - <\n\x10\n\x08\x04\x13\x02\0\x08\x9c\x08\0\x12\x04\xb8\x05\x15;\n\xd0\x01\ - \n\x04\x04\x13\x02\x01\x12\x04\xc1\x05\x02=\x1a\xc1\x01\x20Required.\x20\ - The\x20entity\x20holding\x20the\x20permission.\x20Can\x20be\x20one\x20of\ - :\n\x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`g\ - roup-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\ - \x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\x13\x02\x01\x04\x12\ - \x06\xc1\x05\x02\xb8\x05=\n\r\n\x05\x04\x13\x02\x01\x05\x12\x04\xc1\x05\ - \x02\x08\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xc1\x05\t\x0f\n\r\n\x05\ - \x04\x13\x02\x01\x03\x12\x04\xc1\x05\x12\x13\n\r\n\x05\x04\x13\x02\x01\ - \x08\x12\x04\xc1\x05\x14<\n\x10\n\x08\x04\x13\x02\x01\x08\x9c\x08\0\x12\ - \x04\xc1\x05\x15;\n5\n\x04\x04\x13\x02\x02\x12\x04\xc4\x05\x020\x1a'\x20\ - The\x20ObjectAccessControl\x20for\x20updating.\n\n\x0f\n\x05\x04\x13\x02\ - \x02\x04\x12\x06\xc4\x05\x02\xc1\x05=\n\r\n\x05\x04\x13\x02\x02\x06\x12\ - \x04\xc4\x05\x02\x15\n\r\n\x05\x04\x13\x02\x02\x01\x12\x04\xc4\x05\x16+\ - \n\r\n\x05\x04\x13\x02\x02\x03\x12\x04\xc4\x05./\n\xbd\x03\n\x04\x04\x13\ - \x02\x03\x12\x04\xd0\x05\x02,\x1a\xae\x03\x20List\x20of\x20fields\x20to\ - \x20be\x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\ - \x20to\x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\ - \x20a\x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20not\ - \x20recommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20at\ - \x20a\x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\x20\ - the\x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field's\ - \x20value.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20erro\ - r.\n\x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20f\ - ield\x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\ - \n\x05\x04\x13\x02\x03\x04\x12\x06\xd0\x05\x02\xc4\x050\n\r\n\x05\x04\ - \x13\x02\x03\x06\x12\x04\xd0\x05\x02\x1b\n\r\n\x05\x04\x13\x02\x03\x01\ - \x12\x04\xd0\x05\x1c'\n\r\n\x05\x04\x13\x02\x03\x03\x12\x04\xd0\x05*+\nG\ - \n\x04\x04\x13\x02\x04\x12\x04\xd3\x05\x020\x1a9\x20A\x20set\x20of\x20pa\ - rameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\ - \x05\x04\x13\x02\x04\x04\x12\x06\xd3\x05\x02\xd0\x05,\n\r\n\x05\x04\x13\ - \x02\x04\x06\x12\x04\xd3\x05\x02\x15\n\r\n\x05\x04\x13\x02\x04\x01\x12\ - \x04\xd3\x05\x16+\n\r\n\x05\x04\x13\x02\x04\x03\x12\x04\xd3\x05./\nE\n\ - \x02\x04\x14\x12\x06\xd7\x05\0\xe9\x05\x01\x1a7\x20Request\x20message\ - \x20for\x20UpdateDefaultObjectAccessControl.\n\n\x0b\n\x03\x04\x14\x01\ - \x12\x04\xd7\x05\x08/\n+\n\x04\x04\x14\x02\0\x12\x04\xd9\x05\x02=\x1a\ - \x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x14\ - \x02\0\x04\x12\x06\xd9\x05\x02\xd7\x051\n\r\n\x05\x04\x14\x02\0\x05\x12\ - \x04\xd9\x05\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xd9\x05\t\x0f\n\ - \r\n\x05\x04\x14\x02\0\x03\x12\x04\xd9\x05\x12\x13\n\r\n\x05\x04\x14\x02\ - \0\x08\x12\x04\xd9\x05\x14<\n\x10\n\x08\x04\x14\x02\0\x08\x9c\x08\0\x12\ - \x04\xd9\x05\x15;\n\xd0\x01\n\x04\x04\x14\x02\x01\x12\x04\xe2\x05\x02=\ - \x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permissi\ - on.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user\ - -`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAdd\ - ress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\ - \x05\x04\x14\x02\x01\x04\x12\x06\xe2\x05\x02\xd9\x05=\n\r\n\x05\x04\x14\ - \x02\x01\x05\x12\x04\xe2\x05\x02\x08\n\r\n\x05\x04\x14\x02\x01\x01\x12\ - \x04\xe2\x05\t\x0f\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xe2\x05\x12\x13\ - \n\r\n\x05\x04\x14\x02\x01\x08\x12\x04\xe2\x05\x14<\n\x10\n\x08\x04\x14\ - \x02\x01\x08\x9c\x08\0\x12\x04\xe2\x05\x15;\n5\n\x04\x04\x14\x02\x02\x12\ - \x04\xe5\x05\x020\x1a'\x20The\x20ObjectAccessControl\x20for\x20updating.\ - \n\n\x0f\n\x05\x04\x14\x02\x02\x04\x12\x06\xe5\x05\x02\xe2\x05=\n\r\n\ - \x05\x04\x14\x02\x02\x06\x12\x04\xe5\x05\x02\x15\n\r\n\x05\x04\x14\x02\ - \x02\x01\x12\x04\xe5\x05\x16+\n\r\n\x05\x04\x14\x02\x02\x03\x12\x04\xe5\ - \x05./\nG\n\x04\x04\x14\x02\x03\x12\x04\xe8\x05\x020\x1a9\x20A\x20set\ - \x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20request\ - s.\n\n\x0f\n\x05\x04\x14\x02\x03\x04\x12\x06\xe8\x05\x02\xe5\x050\n\r\n\ - \x05\x04\x14\x02\x03\x06\x12\x04\xe8\x05\x02\x15\n\r\n\x05\x04\x14\x02\ - \x03\x01\x12\x04\xe8\x05\x16+\n\r\n\x05\x04\x14\x02\x03\x03\x12\x04\xe8\ - \x05./\n7\n\x02\x04\x15\x12\x06\xec\x05\0\xf5\x05\x01\x1a)\x20Request\ - \x20message\x20for\x20DeleteNotification.\n\n\x0b\n\x03\x04\x15\x01\x12\ - \x04\xec\x05\x08!\n@\n\x04\x04\x15\x02\0\x12\x04\xee\x05\x02=\x1a2\x20Re\ - quired.\x20The\x20parent\x20bucket\x20of\x20the\x20notification.\n\n\x0f\ - \n\x05\x04\x15\x02\0\x04\x12\x06\xee\x05\x02\xec\x05#\n\r\n\x05\x04\x15\ - \x02\0\x05\x12\x04\xee\x05\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\ - \xee\x05\t\x0f\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xee\x05\x12\x13\n\r\n\ - \x05\x04\x15\x02\0\x08\x12\x04\xee\x05\x14<\n\x10\n\x08\x04\x15\x02\0\ - \x08\x9c\x08\0\x12\x04\xee\x05\x15;\n;\n\x04\x04\x15\x02\x01\x12\x04\xf1\ - \x05\x02C\x1a-\x20Required.\x20ID\x20of\x20the\x20notification\x20to\x20\ - delete.\n\n\x0f\n\x05\x04\x15\x02\x01\x04\x12\x06\xf1\x05\x02\xee\x05=\n\ - \r\n\x05\x04\x15\x02\x01\x05\x12\x04\xf1\x05\x02\x08\n\r\n\x05\x04\x15\ - \x02\x01\x01\x12\x04\xf1\x05\t\x15\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\ - \xf1\x05\x18\x19\n\r\n\x05\x04\x15\x02\x01\x08\x12\x04\xf1\x05\x1aB\n\ - \x10\n\x08\x04\x15\x02\x01\x08\x9c\x08\0\x12\x04\xf1\x05\x1bA\nG\n\x04\ - \x04\x15\x02\x02\x12\x04\xf4\x05\x020\x1a9\x20A\x20set\x20of\x20paramete\ - rs\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\ - \x04\x15\x02\x02\x04\x12\x06\xf4\x05\x02\xf1\x05C\n\r\n\x05\x04\x15\x02\ - \x02\x06\x12\x04\xf4\x05\x02\x15\n\r\n\x05\x04\x15\x02\x02\x01\x12\x04\ - \xf4\x05\x16+\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\xf4\x05./\n4\n\x02\ - \x04\x16\x12\x06\xf8\x05\0\x82\x06\x01\x1a&\x20Request\x20message\x20for\ - \x20GetNotification.\n\n\x0b\n\x03\x04\x16\x01\x12\x04\xf8\x05\x08\x1e\n\ - @\n\x04\x04\x16\x02\0\x12\x04\xfa\x05\x02=\x1a2\x20Required.\x20The\x20p\ - arent\x20bucket\x20of\x20the\x20notification.\n\n\x0f\n\x05\x04\x16\x02\ - \0\x04\x12\x06\xfa\x05\x02\xf8\x05\x20\n\r\n\x05\x04\x16\x02\0\x05\x12\ - \x04\xfa\x05\x02\x08\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\xfa\x05\t\x0f\n\ - \r\n\x05\x04\x16\x02\0\x03\x12\x04\xfa\x05\x12\x13\n\r\n\x05\x04\x16\x02\ - \0\x08\x12\x04\xfa\x05\x14<\n\x10\n\x08\x04\x16\x02\0\x08\x9c\x08\0\x12\ - \x04\xfa\x05\x15;\n5\n\x04\x04\x16\x02\x01\x12\x04\xfe\x05\x02C\x1a'\x20\ - Required.\x20Notification\x20ID.\n\x20Required.\n\n\x0f\n\x05\x04\x16\ - \x02\x01\x04\x12\x06\xfe\x05\x02\xfa\x05=\n\r\n\x05\x04\x16\x02\x01\x05\ - \x12\x04\xfe\x05\x02\x08\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\xfe\x05\t\ - \x15\n\r\n\x05\x04\x16\x02\x01\x03\x12\x04\xfe\x05\x18\x19\n\r\n\x05\x04\ - \x16\x02\x01\x08\x12\x04\xfe\x05\x1aB\n\x10\n\x08\x04\x16\x02\x01\x08\ - \x9c\x08\0\x12\x04\xfe\x05\x1bA\nG\n\x04\x04\x16\x02\x02\x12\x04\x81\x06\ - \x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Sto\ - rage\x20API\x20requests.\n\n\x0f\n\x05\x04\x16\x02\x02\x04\x12\x06\x81\ - \x06\x02\xfe\x05C\n\r\n\x05\x04\x16\x02\x02\x06\x12\x04\x81\x06\x02\x15\ - \n\r\n\x05\x04\x16\x02\x02\x01\x12\x04\x81\x06\x16+\n\r\n\x05\x04\x16\ - \x02\x02\x03\x12\x04\x81\x06./\n7\n\x02\x04\x17\x12\x06\x85\x06\0\x8e\ - \x06\x01\x1a)\x20Request\x20message\x20for\x20InsertNotification.\n\n\ - \x0b\n\x03\x04\x17\x01\x12\x04\x85\x06\x08!\n@\n\x04\x04\x17\x02\0\x12\ - \x04\x87\x06\x02=\x1a2\x20Required.\x20The\x20parent\x20bucket\x20of\x20\ - the\x20notification.\n\n\x0f\n\x05\x04\x17\x02\0\x04\x12\x06\x87\x06\x02\ - \x85\x06#\n\r\n\x05\x04\x17\x02\0\x05\x12\x04\x87\x06\x02\x08\n\r\n\x05\ - \x04\x17\x02\0\x01\x12\x04\x87\x06\t\x0f\n\r\n\x05\x04\x17\x02\0\x03\x12\ - \x04\x87\x06\x12\x13\n\r\n\x05\x04\x17\x02\0\x08\x12\x04\x87\x06\x14<\n\ - \x10\n\x08\x04\x17\x02\0\x08\x9c\x08\0\x12\x04\x87\x06\x15;\n>\n\x04\x04\ - \x17\x02\x01\x12\x04\x8a\x06\x02\x20\x1a0\x20Properties\x20of\x20the\x20\ - notification\x20to\x20be\x20inserted.\n\n\x0f\n\x05\x04\x17\x02\x01\x04\ - \x12\x06\x8a\x06\x02\x87\x06=\n\r\n\x05\x04\x17\x02\x01\x06\x12\x04\x8a\ - \x06\x02\x0e\n\r\n\x05\x04\x17\x02\x01\x01\x12\x04\x8a\x06\x0f\x1b\n\r\n\ - \x05\x04\x17\x02\x01\x03\x12\x04\x8a\x06\x1e\x1f\nG\n\x04\x04\x17\x02\ - \x02\x12\x04\x8d\x06\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\ - \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x17\x02\ - \x02\x04\x12\x06\x8d\x06\x02\x8a\x06\x20\n\r\n\x05\x04\x17\x02\x02\x06\ - \x12\x04\x8d\x06\x02\x15\n\r\n\x05\x04\x17\x02\x02\x01\x12\x04\x8d\x06\ - \x16+\n\r\n\x05\x04\x17\x02\x02\x03\x12\x04\x8d\x06./\n6\n\x02\x04\x18\ - \x12\x06\x91\x06\0\x97\x06\x01\x1a(\x20Request\x20message\x20for\x20List\ - Notifications.\n\n\x0b\n\x03\x04\x18\x01\x12\x04\x91\x06\x08\x20\n@\n\ - \x04\x04\x18\x02\0\x12\x04\x93\x06\x02=\x1a2\x20Required.\x20Name\x20of\ - \x20a\x20Google\x20Cloud\x20Storage\x20bucket.\n\n\x0f\n\x05\x04\x18\x02\ - \0\x04\x12\x06\x93\x06\x02\x91\x06\"\n\r\n\x05\x04\x18\x02\0\x05\x12\x04\ - \x93\x06\x02\x08\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\x93\x06\t\x0f\n\r\n\ - \x05\x04\x18\x02\0\x03\x12\x04\x93\x06\x12\x13\n\r\n\x05\x04\x18\x02\0\ - \x08\x12\x04\x93\x06\x14<\n\x10\n\x08\x04\x18\x02\0\x08\x9c\x08\0\x12\ - \x04\x93\x06\x15;\nG\n\x04\x04\x18\x02\x01\x12\x04\x96\x06\x020\x1a9\x20\ - A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\ - \x20requests.\n\n\x0f\n\x05\x04\x18\x02\x01\x04\x12\x06\x96\x06\x02\x93\ - \x06=\n\r\n\x05\x04\x18\x02\x01\x06\x12\x04\x96\x06\x02\x15\n\r\n\x05\ - \x04\x18\x02\x01\x01\x12\x04\x96\x06\x16+\n\r\n\x05\x04\x18\x02\x01\x03\ - \x12\x04\x96\x06./\n>\n\x02\x04\x19\x12\x06\x9a\x06\0\xb0\x06\x01\x1a0\ - \x20Request\x20message\x20for\x20DeleteObjectAccessControl.\n\n\x0b\n\ - \x03\x04\x19\x01\x12\x04\x9a\x06\x08(\n+\n\x04\x04\x19\x02\0\x12\x04\x9c\ - \x06\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\ - \x05\x04\x19\x02\0\x04\x12\x06\x9c\x06\x02\x9a\x06*\n\r\n\x05\x04\x19\ - \x02\0\x05\x12\x04\x9c\x06\x02\x08\n\r\n\x05\x04\x19\x02\0\x01\x12\x04\ - \x9c\x06\t\x0f\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\x9c\x06\x12\x13\n\r\n\ - \x05\x04\x19\x02\0\x08\x12\x04\x9c\x06\x14<\n\x10\n\x08\x04\x19\x02\0\ - \x08\x9c\x08\0\x12\x04\x9c\x06\x15;\n\xd0\x01\n\x04\x04\x19\x02\x01\x12\ - \x04\xa5\x06\x02=\x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\ - \x20the\x20permission.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*user\ - Id*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\ - \x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthentica\ - tedUsers`\n\n\x0f\n\x05\x04\x19\x02\x01\x04\x12\x06\xa5\x06\x02\x9c\x06=\ - \n\r\n\x05\x04\x19\x02\x01\x05\x12\x04\xa5\x06\x02\x08\n\r\n\x05\x04\x19\ - \x02\x01\x01\x12\x04\xa5\x06\t\x0f\n\r\n\x05\x04\x19\x02\x01\x03\x12\x04\ - \xa5\x06\x12\x13\n\r\n\x05\x04\x19\x02\x01\x08\x12\x04\xa5\x06\x14<\n\ - \x10\n\x08\x04\x19\x02\x01\x08\x9c\x08\0\x12\x04\xa5\x06\x15;\n-\n\x04\ - \x04\x19\x02\x02\x12\x04\xa8\x06\x02=\x1a\x1f\x20Required.\x20Name\x20of\ - \x20the\x20object.\n\n\x0f\n\x05\x04\x19\x02\x02\x04\x12\x06\xa8\x06\x02\ - \xa5\x06=\n\r\n\x05\x04\x19\x02\x02\x05\x12\x04\xa8\x06\x02\x08\n\r\n\ - \x05\x04\x19\x02\x02\x01\x12\x04\xa8\x06\t\x0f\n\r\n\x05\x04\x19\x02\x02\ - \x03\x12\x04\xa8\x06\x12\x13\n\r\n\x05\x04\x19\x02\x02\x08\x12\x04\xa8\ - \x06\x14<\n\x10\n\x08\x04\x19\x02\x02\x08\x9c\x08\0\x12\x04\xa8\x06\x15;\ - \nx\n\x04\x04\x19\x02\x03\x12\x04\xac\x06\x02\x17\x1aj\x20If\x20present,\ - \x20selects\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\ - \x20opposed\x20to\x20the\n\x20latest\x20version,\x20the\x20default).\n\n\ - \x0f\n\x05\x04\x19\x02\x03\x04\x12\x06\xac\x06\x02\xa8\x06=\n\r\n\x05\ - \x04\x19\x02\x03\x05\x12\x04\xac\x06\x02\x07\n\r\n\x05\x04\x19\x02\x03\ - \x01\x12\x04\xac\x06\x08\x12\n\r\n\x05\x04\x19\x02\x03\x03\x12\x04\xac\ - \x06\x15\x16\nG\n\x04\x04\x19\x02\x04\x12\x04\xaf\x06\x020\x1a9\x20A\x20\ - set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20requ\ - ests.\n\n\x0f\n\x05\x04\x19\x02\x04\x04\x12\x06\xaf\x06\x02\xac\x06\x17\ - \n\r\n\x05\x04\x19\x02\x04\x06\x12\x04\xaf\x06\x02\x15\n\r\n\x05\x04\x19\ - \x02\x04\x01\x12\x04\xaf\x06\x16+\n\r\n\x05\x04\x19\x02\x04\x03\x12\x04\ - \xaf\x06./\n;\n\x02\x04\x1a\x12\x06\xb3\x06\0\xc9\x06\x01\x1a-\x20Reques\ - t\x20message\x20for\x20GetObjectAccessControl.\n\n\x0b\n\x03\x04\x1a\x01\ - \x12\x04\xb3\x06\x08%\n+\n\x04\x04\x1a\x02\0\x12\x04\xb5\x06\x02=\x1a\ - \x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x1a\ - \x02\0\x04\x12\x06\xb5\x06\x02\xb3\x06'\n\r\n\x05\x04\x1a\x02\0\x05\x12\ - \x04\xb5\x06\x02\x08\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\xb5\x06\t\x0f\n\ - \r\n\x05\x04\x1a\x02\0\x03\x12\x04\xb5\x06\x12\x13\n\r\n\x05\x04\x1a\x02\ - \0\x08\x12\x04\xb5\x06\x14<\n\x10\n\x08\x04\x1a\x02\0\x08\x9c\x08\0\x12\ - \x04\xb5\x06\x15;\n\xd0\x01\n\x04\x04\x1a\x02\x01\x12\x04\xbe\x06\x02=\ - \x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permissi\ - on.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user\ - -`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAdd\ - ress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\ - \x05\x04\x1a\x02\x01\x04\x12\x06\xbe\x06\x02\xb5\x06=\n\r\n\x05\x04\x1a\ - \x02\x01\x05\x12\x04\xbe\x06\x02\x08\n\r\n\x05\x04\x1a\x02\x01\x01\x12\ - \x04\xbe\x06\t\x0f\n\r\n\x05\x04\x1a\x02\x01\x03\x12\x04\xbe\x06\x12\x13\ - \n\r\n\x05\x04\x1a\x02\x01\x08\x12\x04\xbe\x06\x14<\n\x10\n\x08\x04\x1a\ - \x02\x01\x08\x9c\x08\0\x12\x04\xbe\x06\x15;\n-\n\x04\x04\x1a\x02\x02\x12\ - \x04\xc1\x06\x02=\x1a\x1f\x20Required.\x20Name\x20of\x20the\x20object.\n\ - \n\x0f\n\x05\x04\x1a\x02\x02\x04\x12\x06\xc1\x06\x02\xbe\x06=\n\r\n\x05\ - \x04\x1a\x02\x02\x05\x12\x04\xc1\x06\x02\x08\n\r\n\x05\x04\x1a\x02\x02\ - \x01\x12\x04\xc1\x06\t\x0f\n\r\n\x05\x04\x1a\x02\x02\x03\x12\x04\xc1\x06\ - \x12\x13\n\r\n\x05\x04\x1a\x02\x02\x08\x12\x04\xc1\x06\x14<\n\x10\n\x08\ - \x04\x1a\x02\x02\x08\x9c\x08\0\x12\x04\xc1\x06\x15;\nx\n\x04\x04\x1a\x02\ - \x03\x12\x04\xc5\x06\x02\x17\x1aj\x20If\x20present,\x20selects\x20a\x20s\ - pecific\x20revision\x20of\x20this\x20object\x20(as\x20opposed\x20to\x20t\ - he\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\x04\x1a\x02\ - \x03\x04\x12\x06\xc5\x06\x02\xc1\x06=\n\r\n\x05\x04\x1a\x02\x03\x05\x12\ - \x04\xc5\x06\x02\x07\n\r\n\x05\x04\x1a\x02\x03\x01\x12\x04\xc5\x06\x08\ - \x12\n\r\n\x05\x04\x1a\x02\x03\x03\x12\x04\xc5\x06\x15\x16\nG\n\x04\x04\ - \x1a\x02\x04\x12\x04\xc8\x06\x020\x1a9\x20A\x20set\x20of\x20parameters\ - \x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\ - \x1a\x02\x04\x04\x12\x06\xc8\x06\x02\xc5\x06\x17\n\r\n\x05\x04\x1a\x02\ - \x04\x06\x12\x04\xc8\x06\x02\x15\n\r\n\x05\x04\x1a\x02\x04\x01\x12\x04\ - \xc8\x06\x16+\n\r\n\x05\x04\x1a\x02\x04\x03\x12\x04\xc8\x06./\n>\n\x02\ - \x04\x1b\x12\x06\xcc\x06\0\xdc\x06\x01\x1a0\x20Request\x20message\x20for\ - \x20InsertObjectAccessControl.\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xcc\x06\ - \x08(\n+\n\x04\x04\x1b\x02\0\x12\x04\xce\x06\x02=\x1a\x1d\x20Required.\ - \x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\ - \xce\x06\x02\xcc\x06*\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\xce\x06\x02\ - \x08\n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\xce\x06\t\x0f\n\r\n\x05\x04\x1b\ - \x02\0\x03\x12\x04\xce\x06\x12\x13\n\r\n\x05\x04\x1b\x02\0\x08\x12\x04\ - \xce\x06\x14<\n\x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\xce\x06\ - \x15;\n-\n\x04\x04\x1b\x02\x01\x12\x04\xd1\x06\x02=\x1a\x1f\x20Required.\ - \x20Name\x20of\x20the\x20object.\n\n\x0f\n\x05\x04\x1b\x02\x01\x04\x12\ - \x06\xd1\x06\x02\xce\x06=\n\r\n\x05\x04\x1b\x02\x01\x05\x12\x04\xd1\x06\ - \x02\x08\n\r\n\x05\x04\x1b\x02\x01\x01\x12\x04\xd1\x06\t\x0f\n\r\n\x05\ - \x04\x1b\x02\x01\x03\x12\x04\xd1\x06\x12\x13\n\r\n\x05\x04\x1b\x02\x01\ - \x08\x12\x04\xd1\x06\x14<\n\x10\n\x08\x04\x1b\x02\x01\x08\x9c\x08\0\x12\ - \x04\xd1\x06\x15;\nx\n\x04\x04\x1b\x02\x02\x12\x04\xd5\x06\x02\x17\x1aj\ - \x20If\x20present,\x20selects\x20a\x20specific\x20revision\x20of\x20this\ - \x20object\x20(as\x20opposed\x20to\x20the\n\x20latest\x20version,\x20the\ - \x20default).\n\n\x0f\n\x05\x04\x1b\x02\x02\x04\x12\x06\xd5\x06\x02\xd1\ - \x06=\n\r\n\x05\x04\x1b\x02\x02\x05\x12\x04\xd5\x06\x02\x07\n\r\n\x05\ - \x04\x1b\x02\x02\x01\x12\x04\xd5\x06\x08\x12\n\r\n\x05\x04\x1b\x02\x02\ - \x03\x12\x04\xd5\x06\x15\x16\nG\n\x04\x04\x1b\x02\x03\x12\x04\xd8\x06\ - \x020\x1a9\x20Properties\x20of\x20the\x20object\x20access\x20control\x20\ - to\x20be\x20inserted.\n\n\x0f\n\x05\x04\x1b\x02\x03\x04\x12\x06\xd8\x06\ - \x02\xd5\x06\x17\n\r\n\x05\x04\x1b\x02\x03\x06\x12\x04\xd8\x06\x02\x15\n\ - \r\n\x05\x04\x1b\x02\x03\x01\x12\x04\xd8\x06\x16+\n\r\n\x05\x04\x1b\x02\ - \x03\x03\x12\x04\xd8\x06./\nG\n\x04\x04\x1b\x02\x04\x12\x04\xdb\x06\x020\ - \x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\ - \x20API\x20requests.\n\n\x0f\n\x05\x04\x1b\x02\x04\x04\x12\x06\xdb\x06\ - \x02\xd8\x060\n\r\n\x05\x04\x1b\x02\x04\x06\x12\x04\xdb\x06\x02\x15\n\r\ - \n\x05\x04\x1b\x02\x04\x01\x12\x04\xdb\x06\x16+\n\r\n\x05\x04\x1b\x02\ - \x04\x03\x12\x04\xdb\x06./\n=\n\x02\x04\x1c\x12\x06\xdf\x06\0\xec\x06\ - \x01\x1a/\x20Request\x20message\x20for\x20ListObjectAccessControls.\n\n\ - \x0b\n\x03\x04\x1c\x01\x12\x04\xdf\x06\x08'\n+\n\x04\x04\x1c\x02\0\x12\ - \x04\xe1\x06\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\ - \x0f\n\x05\x04\x1c\x02\0\x04\x12\x06\xe1\x06\x02\xdf\x06)\n\r\n\x05\x04\ - \x1c\x02\0\x05\x12\x04\xe1\x06\x02\x08\n\r\n\x05\x04\x1c\x02\0\x01\x12\ - \x04\xe1\x06\t\x0f\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xe1\x06\x12\x13\n\ - \r\n\x05\x04\x1c\x02\0\x08\x12\x04\xe1\x06\x14<\n\x10\n\x08\x04\x1c\x02\ - \0\x08\x9c\x08\0\x12\x04\xe1\x06\x15;\n-\n\x04\x04\x1c\x02\x01\x12\x04\ - \xe4\x06\x02=\x1a\x1f\x20Required.\x20Name\x20of\x20the\x20object.\n\n\ - \x0f\n\x05\x04\x1c\x02\x01\x04\x12\x06\xe4\x06\x02\xe1\x06=\n\r\n\x05\ - \x04\x1c\x02\x01\x05\x12\x04\xe4\x06\x02\x08\n\r\n\x05\x04\x1c\x02\x01\ - \x01\x12\x04\xe4\x06\t\x0f\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xe4\x06\ - \x12\x13\n\r\n\x05\x04\x1c\x02\x01\x08\x12\x04\xe4\x06\x14<\n\x10\n\x08\ - \x04\x1c\x02\x01\x08\x9c\x08\0\x12\x04\xe4\x06\x15;\nx\n\x04\x04\x1c\x02\ - \x02\x12\x04\xe8\x06\x02\x17\x1aj\x20If\x20present,\x20selects\x20a\x20s\ - pecific\x20revision\x20of\x20this\x20object\x20(as\x20opposed\x20to\x20t\ - he\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\x04\x1c\x02\ - \x02\x04\x12\x06\xe8\x06\x02\xe4\x06=\n\r\n\x05\x04\x1c\x02\x02\x05\x12\ - \x04\xe8\x06\x02\x07\n\r\n\x05\x04\x1c\x02\x02\x01\x12\x04\xe8\x06\x08\ - \x12\n\r\n\x05\x04\x1c\x02\x02\x03\x12\x04\xe8\x06\x15\x16\nG\n\x04\x04\ - \x1c\x02\x03\x12\x04\xeb\x06\x020\x1a9\x20A\x20set\x20of\x20parameters\ - \x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\ - \x1c\x02\x03\x04\x12\x06\xeb\x06\x02\xe8\x06\x17\n\r\n\x05\x04\x1c\x02\ - \x03\x06\x12\x04\xeb\x06\x02\x15\n\r\n\x05\x04\x1c\x02\x03\x01\x12\x04\ - \xeb\x06\x16+\n\r\n\x05\x04\x1c\x02\x03\x03\x12\x04\xeb\x06./\n=\n\x02\ - \x04\x1d\x12\x06\xef\x06\0\x95\x07\x01\x1a/\x20Request\x20message\x20for\ - \x20PatchObjectAccessControl.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\xef\x06\ - \x08'\n+\n\x04\x04\x1d\x02\0\x12\x04\xf1\x06\x02=\x1a\x1d\x20Required.\ - \x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x1d\x02\0\x04\x12\x06\ - \xf1\x06\x02\xef\x06)\n\r\n\x05\x04\x1d\x02\0\x05\x12\x04\xf1\x06\x02\ - \x08\n\r\n\x05\x04\x1d\x02\0\x01\x12\x04\xf1\x06\t\x0f\n\r\n\x05\x04\x1d\ - \x02\0\x03\x12\x04\xf1\x06\x12\x13\n\r\n\x05\x04\x1d\x02\0\x08\x12\x04\ - \xf1\x06\x14<\n\x10\n\x08\x04\x1d\x02\0\x08\x9c\x08\0\x12\x04\xf1\x06\ - \x15;\n\xd0\x01\n\x04\x04\x1d\x02\x01\x12\x04\xfa\x06\x02=\x1a\xc1\x01\ - \x20Required.\x20The\x20entity\x20holding\x20the\x20permission.\x20Can\ - \x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAd\ - dress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\ - \x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\ - \x1d\x02\x01\x04\x12\x06\xfa\x06\x02\xf1\x06=\n\r\n\x05\x04\x1d\x02\x01\ - \x05\x12\x04\xfa\x06\x02\x08\n\r\n\x05\x04\x1d\x02\x01\x01\x12\x04\xfa\ - \x06\t\x0f\n\r\n\x05\x04\x1d\x02\x01\x03\x12\x04\xfa\x06\x12\x13\n\r\n\ - \x05\x04\x1d\x02\x01\x08\x12\x04\xfa\x06\x14<\n\x10\n\x08\x04\x1d\x02\ - \x01\x08\x9c\x08\0\x12\x04\xfa\x06\x15;\n8\n\x04\x04\x1d\x02\x02\x12\x04\ - \xfe\x06\x02=\x1a*\x20Required.\x20Name\x20of\x20the\x20object.\n\x20Req\ - uired.\n\n\x0f\n\x05\x04\x1d\x02\x02\x04\x12\x06\xfe\x06\x02\xfa\x06=\n\ - \r\n\x05\x04\x1d\x02\x02\x05\x12\x04\xfe\x06\x02\x08\n\r\n\x05\x04\x1d\ - \x02\x02\x01\x12\x04\xfe\x06\t\x0f\n\r\n\x05\x04\x1d\x02\x02\x03\x12\x04\ - \xfe\x06\x12\x13\n\r\n\x05\x04\x1d\x02\x02\x08\x12\x04\xfe\x06\x14<\n\ - \x10\n\x08\x04\x1d\x02\x02\x08\x9c\x08\0\x12\x04\xfe\x06\x15;\nx\n\x04\ - \x04\x1d\x02\x03\x12\x04\x82\x07\x02\x17\x1aj\x20If\x20present,\x20selec\ - ts\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\x20oppose\ - d\x20to\x20the\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\ - \x04\x1d\x02\x03\x04\x12\x06\x82\x07\x02\xfe\x06=\n\r\n\x05\x04\x1d\x02\ - \x03\x05\x12\x04\x82\x07\x02\x07\n\r\n\x05\x04\x1d\x02\x03\x01\x12\x04\ - \x82\x07\x08\x12\n\r\n\x05\x04\x1d\x02\x03\x03\x12\x04\x82\x07\x15\x16\n\ - 5\n\x04\x04\x1d\x02\x04\x12\x04\x85\x07\x020\x1a'\x20The\x20ObjectAccess\ - Control\x20for\x20updating.\n\n\x0f\n\x05\x04\x1d\x02\x04\x04\x12\x06\ - \x85\x07\x02\x82\x07\x17\n\r\n\x05\x04\x1d\x02\x04\x06\x12\x04\x85\x07\ - \x02\x15\n\r\n\x05\x04\x1d\x02\x04\x01\x12\x04\x85\x07\x16+\n\r\n\x05\ - \x04\x1d\x02\x04\x03\x12\x04\x85\x07./\nG\n\x04\x04\x1d\x02\x05\x12\x04\ - \x88\x07\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ - l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x1d\x02\x05\x04\x12\ - \x06\x88\x07\x02\x85\x070\n\r\n\x05\x04\x1d\x02\x05\x06\x12\x04\x88\x07\ - \x02\x15\n\r\n\x05\x04\x1d\x02\x05\x01\x12\x04\x88\x07\x16+\n\r\n\x05\ - \x04\x1d\x02\x05\x03\x12\x04\x88\x07./\n\xbd\x03\n\x04\x04\x1d\x02\x06\ - \x12\x04\x94\x07\x02,\x1a\xae\x03\x20List\x20of\x20fields\x20to\x20be\ - \x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\x20to\ - \x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\x20a\ - \x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20not\x20r\ - ecommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20at\x20a\ - \x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\x20the\ - \x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field's\x20va\ - lue.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20error.\n\ - \x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20field\ - \x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\n\ - \x05\x04\x1d\x02\x06\x04\x12\x06\x94\x07\x02\x88\x070\n\r\n\x05\x04\x1d\ - \x02\x06\x06\x12\x04\x94\x07\x02\x1b\n\r\n\x05\x04\x1d\x02\x06\x01\x12\ - \x04\x94\x07\x1c'\n\r\n\x05\x04\x1d\x02\x06\x03\x12\x04\x94\x07*+\n>\n\ - \x02\x04\x1e\x12\x06\x98\x07\0\xbe\x07\x01\x1a0\x20Request\x20message\ - \x20for\x20UpdateObjectAccessControl.\n\n\x0b\n\x03\x04\x1e\x01\x12\x04\ - \x98\x07\x08(\n+\n\x04\x04\x1e\x02\0\x12\x04\x9a\x07\x02=\x1a\x1d\x20Req\ - uired.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x1e\x02\0\x04\x12\ - \x06\x9a\x07\x02\x98\x07*\n\r\n\x05\x04\x1e\x02\0\x05\x12\x04\x9a\x07\ - \x02\x08\n\r\n\x05\x04\x1e\x02\0\x01\x12\x04\x9a\x07\t\x0f\n\r\n\x05\x04\ - \x1e\x02\0\x03\x12\x04\x9a\x07\x12\x13\n\r\n\x05\x04\x1e\x02\0\x08\x12\ - \x04\x9a\x07\x14<\n\x10\n\x08\x04\x1e\x02\0\x08\x9c\x08\0\x12\x04\x9a\ - \x07\x15;\n\xd0\x01\n\x04\x04\x1e\x02\x01\x12\x04\xa3\x07\x02=\x1a\xc1\ - \x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permission.\x20C\ - an\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user-`*email\ - Address*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\ - \x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\ - \x1e\x02\x01\x04\x12\x06\xa3\x07\x02\x9a\x07=\n\r\n\x05\x04\x1e\x02\x01\ - \x05\x12\x04\xa3\x07\x02\x08\n\r\n\x05\x04\x1e\x02\x01\x01\x12\x04\xa3\ - \x07\t\x0f\n\r\n\x05\x04\x1e\x02\x01\x03\x12\x04\xa3\x07\x12\x13\n\r\n\ - \x05\x04\x1e\x02\x01\x08\x12\x04\xa3\x07\x14<\n\x10\n\x08\x04\x1e\x02\ - \x01\x08\x9c\x08\0\x12\x04\xa3\x07\x15;\n8\n\x04\x04\x1e\x02\x02\x12\x04\ - \xa7\x07\x02=\x1a*\x20Required.\x20Name\x20of\x20the\x20object.\n\x20Req\ - uired.\n\n\x0f\n\x05\x04\x1e\x02\x02\x04\x12\x06\xa7\x07\x02\xa3\x07=\n\ - \r\n\x05\x04\x1e\x02\x02\x05\x12\x04\xa7\x07\x02\x08\n\r\n\x05\x04\x1e\ - \x02\x02\x01\x12\x04\xa7\x07\t\x0f\n\r\n\x05\x04\x1e\x02\x02\x03\x12\x04\ - \xa7\x07\x12\x13\n\r\n\x05\x04\x1e\x02\x02\x08\x12\x04\xa7\x07\x14<\n\ - \x10\n\x08\x04\x1e\x02\x02\x08\x9c\x08\0\x12\x04\xa7\x07\x15;\nx\n\x04\ - \x04\x1e\x02\x03\x12\x04\xab\x07\x02\x17\x1aj\x20If\x20present,\x20selec\ - ts\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\x20oppose\ - d\x20to\x20the\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\ - \x04\x1e\x02\x03\x04\x12\x06\xab\x07\x02\xa7\x07=\n\r\n\x05\x04\x1e\x02\ - \x03\x05\x12\x04\xab\x07\x02\x07\n\r\n\x05\x04\x1e\x02\x03\x01\x12\x04\ - \xab\x07\x08\x12\n\r\n\x05\x04\x1e\x02\x03\x03\x12\x04\xab\x07\x15\x16\n\ - 5\n\x04\x04\x1e\x02\x04\x12\x04\xae\x07\x020\x1a'\x20The\x20ObjectAccess\ - Control\x20for\x20updating.\n\n\x0f\n\x05\x04\x1e\x02\x04\x04\x12\x06\ - \xae\x07\x02\xab\x07\x17\n\r\n\x05\x04\x1e\x02\x04\x06\x12\x04\xae\x07\ - \x02\x15\n\r\n\x05\x04\x1e\x02\x04\x01\x12\x04\xae\x07\x16+\n\r\n\x05\ - \x04\x1e\x02\x04\x03\x12\x04\xae\x07./\nG\n\x04\x04\x1e\x02\x05\x12\x04\ - \xb1\x07\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ - l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x1e\x02\x05\x04\x12\ - \x06\xb1\x07\x02\xae\x070\n\r\n\x05\x04\x1e\x02\x05\x06\x12\x04\xb1\x07\ - \x02\x15\n\r\n\x05\x04\x1e\x02\x05\x01\x12\x04\xb1\x07\x16+\n\r\n\x05\ - \x04\x1e\x02\x05\x03\x12\x04\xb1\x07./\n\xbd\x03\n\x04\x04\x1e\x02\x06\ - \x12\x04\xbd\x07\x02,\x1a\xae\x03\x20List\x20of\x20fields\x20to\x20be\ - \x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\x20to\ - \x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\x20a\ - \x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20not\x20r\ - ecommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20at\x20a\ - \x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\x20the\ - \x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field's\x20va\ - lue.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20error.\n\ - \x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20field\ - \x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\n\ - \x05\x04\x1e\x02\x06\x04\x12\x06\xbd\x07\x02\xb1\x070\n\r\n\x05\x04\x1e\ - \x02\x06\x06\x12\x04\xbd\x07\x02\x1b\n\r\n\x05\x04\x1e\x02\x06\x01\x12\ - \x04\xbd\x07\x1c'\n\r\n\x05\x04\x1e\x02\x06\x03\x12\x04\xbd\x07*+\n2\n\ - \x02\x04\x1f\x12\x06\xc1\x07\0\xfb\x07\x01\x1a$\x20Request\x20message\ - \x20for\x20ComposeObject.\n\n\x0b\n\x03\x04\x1f\x01\x12\x04\xc1\x07\x08\ - \x1c\nK\n\x04\x04\x1f\x03\0\x12\x06\xc3\x07\x02\xd5\x07\x03\x1a;\x20Desc\ - ription\x20of\x20a\x20source\x20object\x20for\x20a\x20composition\x20req\ - uest.\n\n\r\n\x05\x04\x1f\x03\0\x01\x12\x04\xc3\x07\n\x17\nO\n\x06\x04\ - \x1f\x03\0\x03\0\x12\x06\xc5\x07\x04\xca\x07\x05\x1a=\x20Preconditions\ - \x20for\x20a\x20source\x20object\x20of\x20a\x20composition\x20request.\n\ - \n\x0f\n\x07\x04\x1f\x03\0\x03\0\x01\x12\x04\xc5\x07\x0c\x1f\n\xe8\x01\n\ - \x08\x04\x1f\x03\0\x03\0\x02\0\x12\x04\xc9\x07\x069\x1a\xd5\x01\x20Only\ - \x20perform\x20the\x20composition\x20if\x20the\x20generation\x20of\x20th\ - e\x20source\x20object\n\x20that\x20would\x20be\x20used\x20matches\x20thi\ - s\x20value.\x20\x20If\x20this\x20value\x20and\x20a\x20generation\n\x20ar\ - e\x20both\x20specified,\x20they\x20must\x20be\x20the\x20same\x20value\ - \x20or\x20the\x20call\x20will\x20fail.\n\n\x13\n\t\x04\x1f\x03\0\x03\0\ - \x02\0\x04\x12\x06\xc9\x07\x06\xc5\x07!\n\x11\n\t\x04\x1f\x03\0\x03\0\ - \x02\0\x06\x12\x04\xc9\x07\x06\x20\n\x11\n\t\x04\x1f\x03\0\x03\0\x02\0\ - \x01\x12\x04\xc9\x07!4\n\x11\n\t\x04\x1f\x03\0\x03\0\x02\0\x03\x12\x04\ - \xc9\x0778\n_\n\x06\x04\x1f\x03\0\x02\0\x12\x04\xce\x07\x04\x14\x1aO\x20\ - The\x20source\x20object's\x20name.\x20All\x20source\x20objects\x20must\ - \x20reside\x20in\x20the\x20same\n\x20bucket.\n\n\x11\n\x07\x04\x1f\x03\0\ - \x02\0\x04\x12\x06\xce\x07\x04\xca\x07\x05\n\x0f\n\x07\x04\x1f\x03\0\x02\ - \0\x05\x12\x04\xce\x07\x04\n\n\x0f\n\x07\x04\x1f\x03\0\x02\0\x01\x12\x04\ - \xce\x07\x0b\x0f\n\x0f\n\x07\x04\x1f\x03\0\x02\0\x03\x12\x04\xce\x07\x12\ - \x13\nE\n\x06\x04\x1f\x03\0\x02\x01\x12\x04\xd1\x07\x04\x19\x1a5\x20The\ - \x20generation\x20of\x20this\x20object\x20to\x20use\x20as\x20the\x20sour\ - ce.\n\n\x11\n\x07\x04\x1f\x03\0\x02\x01\x04\x12\x06\xd1\x07\x04\xce\x07\ - \x14\n\x0f\n\x07\x04\x1f\x03\0\x02\x01\x05\x12\x04\xd1\x07\x04\t\n\x0f\n\ - \x07\x04\x1f\x03\0\x02\x01\x01\x12\x04\xd1\x07\n\x14\n\x0f\n\x07\x04\x1f\ - \x03\0\x02\x01\x03\x12\x04\xd1\x07\x17\x18\nL\n\x06\x04\x1f\x03\0\x02\ - \x02\x12\x04\xd4\x07\x041\x1a<\x20Conditions\x20that\x20must\x20be\x20me\ - t\x20for\x20this\x20operation\x20to\x20execute.\n\n\x11\n\x07\x04\x1f\ - \x03\0\x02\x02\x04\x12\x06\xd4\x07\x04\xd1\x07\x19\n\x0f\n\x07\x04\x1f\ - \x03\0\x02\x02\x06\x12\x04\xd4\x07\x04\x17\n\x0f\n\x07\x04\x1f\x03\0\x02\ - \x02\x01\x12\x04\xd4\x07\x18,\n\x0f\n\x07\x04\x1f\x03\0\x02\x02\x03\x12\ - \x04\xd4\x07/0\n}\n\x04\x04\x1f\x02\0\x12\x04\xd9\x07\x02I\x1ao\x20Requi\ - red.\x20Name\x20of\x20the\x20bucket\x20containing\x20the\x20source\x20ob\ - jects.\x20The\x20destination\x20object\x20is\n\x20stored\x20in\x20this\ - \x20bucket.\n\n\x0f\n\x05\x04\x1f\x02\0\x04\x12\x06\xd9\x07\x02\xd5\x07\ - \x03\n\r\n\x05\x04\x1f\x02\0\x05\x12\x04\xd9\x07\x02\x08\n\r\n\x05\x04\ - \x1f\x02\0\x01\x12\x04\xd9\x07\t\x1b\n\r\n\x05\x04\x1f\x02\0\x03\x12\x04\ - \xd9\x07\x1e\x1f\n\r\n\x05\x04\x1f\x02\0\x08\x12\x04\xd9\x07\x20H\n\x10\ - \n\x08\x04\x1f\x02\0\x08\x9c\x08\0\x12\x04\xd9\x07!G\n1\n\x04\x04\x1f\ - \x02\x01\x12\x04\xdc\x07\x02I\x1a#\x20Required.\x20Name\x20of\x20the\x20\ - new\x20object.\n\n\x0f\n\x05\x04\x1f\x02\x01\x04\x12\x06\xdc\x07\x02\xd9\ - \x07I\n\r\n\x05\x04\x1f\x02\x01\x05\x12\x04\xdc\x07\x02\x08\n\r\n\x05\ - \x04\x1f\x02\x01\x01\x12\x04\xdc\x07\t\x1b\n\r\n\x05\x04\x1f\x02\x01\x03\ - \x12\x04\xdc\x07\x1e\x1f\n\r\n\x05\x04\x1f\x02\x01\x08\x12\x04\xdc\x07\ - \x20H\n\x10\n\x08\x04\x1f\x02\x01\x08\x9c\x08\0\x12\x04\xdc\x07!G\nT\n\ - \x04\x04\x1f\x02\x02\x12\x04\xdf\x07\x02A\x1aF\x20Apply\x20a\x20predefin\ - ed\x20set\x20of\x20access\x20controls\x20to\x20the\x20destination\x20obj\ - ect.\n\n\x0f\n\x05\x04\x1f\x02\x02\x04\x12\x06\xdf\x07\x02\xdc\x07I\n\r\ - \n\x05\x04\x1f\x02\x02\x06\x12\x04\xdf\x07\x02!\n\r\n\x05\x04\x1f\x02\ - \x02\x01\x12\x04\xdf\x07\"<\n\r\n\x05\x04\x1f\x02\x02\x03\x12\x04\xdf\ - \x07?@\n3\n\x04\x04\x1f\x02\x03\x12\x04\xe2\x07\x02\x1a\x1a%\x20Properti\ - es\x20of\x20the\x20resulting\x20object.\n\n\x0f\n\x05\x04\x1f\x02\x03\ - \x04\x12\x06\xe2\x07\x02\xdf\x07A\n\r\n\x05\x04\x1f\x02\x03\x06\x12\x04\ - \xe2\x07\x02\x08\n\r\n\x05\x04\x1f\x02\x03\x01\x12\x04\xe2\x07\t\x14\n\r\ - \n\x05\x04\x1f\x02\x03\x03\x12\x04\xe2\x07\x17\x19\nZ\n\x04\x04\x1f\x02\ - \x04\x12\x04\xe5\x07\x02-\x1aL\x20The\x20list\x20of\x20source\x20objects\ - \x20that\x20will\x20be\x20concatenated\x20into\x20a\x20single\x20object.\ - \n\n\r\n\x05\x04\x1f\x02\x04\x04\x12\x04\xe5\x07\x02\n\n\r\n\x05\x04\x1f\ - \x02\x04\x06\x12\x04\xe5\x07\x0b\x18\n\r\n\x05\x04\x1f\x02\x04\x01\x12\ - \x04\xe5\x07\x19'\n\r\n\x05\x04\x1f\x02\x04\x03\x12\x04\xe5\x07*,\n\xd1\ - \x01\n\x04\x04\x1f\x02\x05\x12\x04\xea\x07\x025\x1a\xc2\x01\x20Makes\x20\ - the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\x20c\ - urrent\x20generation\n\x20matches\x20the\x20given\x20value.\x20Setting\ - \x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\x20t\ - here\x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\x0f\n\ - \x05\x04\x1f\x02\x05\x04\x12\x06\xea\x07\x02\xe5\x07-\n\r\n\x05\x04\x1f\ - \x02\x05\x06\x12\x04\xea\x07\x02\x1c\n\r\n\x05\x04\x1f\x02\x05\x01\x12\ - \x04\xea\x07\x1d0\n\r\n\x05\x04\x1f\x02\x05\x03\x12\x04\xea\x0734\nx\n\ - \x04\x04\x1f\x02\x06\x12\x04\xee\x07\x029\x1aj\x20Makes\x20the\x20operat\ - ion\x20conditional\x20on\x20whether\x20the\x20object's\x20current\n\x20m\ - etageneration\x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\x1f\ - \x02\x06\x04\x12\x06\xee\x07\x02\xea\x075\n\r\n\x05\x04\x1f\x02\x06\x06\ - \x12\x04\xee\x07\x02\x1c\n\r\n\x05\x04\x1f\x02\x06\x01\x12\x04\xee\x07\ - \x1d4\n\r\n\x05\x04\x1f\x02\x06\x03\x12\x04\xee\x0778\n\xf8\x01\n\x04\ - \x04\x1f\x02\x07\x12\x04\xf4\x07\x02\x1a\x1a\xe9\x01\x20Resource\x20name\ - \x20of\x20the\x20Cloud\x20KMS\x20key,\x20of\x20the\x20form\n\x20`project\ - s/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,\n\ - \x20that\x20will\x20be\x20used\x20to\x20encrypt\x20the\x20object.\x20Ove\ - rrides\x20the\x20object\n\x20metadata's\x20`kms_key_name`\x20value,\x20i\ - f\x20any.\n\n\x0f\n\x05\x04\x1f\x02\x07\x04\x12\x06\xf4\x07\x02\xee\x079\ - \n\r\n\x05\x04\x1f\x02\x07\x05\x12\x04\xf4\x07\x02\x08\n\r\n\x05\x04\x1f\ - \x02\x07\x01\x12\x04\xf4\x07\t\x15\n\r\n\x05\x04\x1f\x02\x07\x03\x12\x04\ - \xf4\x07\x18\x19\nX\n\x04\x04\x1f\x02\x08\x12\x04\xf7\x07\x02=\x1aJ\x20A\ - \x20set\x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20request\ - s\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04\x1f\x02\x08\x04\x12\ - \x06\xf7\x07\x02\xf4\x07\x1a\n\r\n\x05\x04\x1f\x02\x08\x06\x12\x04\xf7\ - \x07\x02\x1b\n\r\n\x05\x04\x1f\x02\x08\x01\x12\x04\xf7\x07\x1c8\n\r\n\ - \x05\x04\x1f\x02\x08\x03\x12\x04\xf7\x07;<\nG\n\x04\x04\x1f\x02\t\x12\ - \x04\xfa\x07\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ - \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x1f\x02\t\x04\ - \x12\x06\xfa\x07\x02\xf7\x07=\n\r\n\x05\x04\x1f\x02\t\x06\x12\x04\xfa\ - \x07\x02\x15\n\r\n\x05\x04\x1f\x02\t\x01\x12\x04\xfa\x07\x16+\n\r\n\x05\ - \x04\x1f\x02\t\x03\x12\x04\xfa\x07.0\n/\n\x02\x04\x20\x12\x06\xfe\x07\0\ - \xcd\x08\x01\x1a!\x20Request\x20message\x20for\x20CopyObject.\n\n\x0b\n\ - \x03\x04\x20\x01\x12\x04\xfe\x07\x08\x19\n\x92\x01\n\x04\x04\x20\x02\0\ - \x12\x04\x82\x08\x02I\x1a\x83\x01\x20Required.\x20Name\x20of\x20the\x20b\ - ucket\x20in\x20which\x20to\x20store\x20the\x20new\x20object.\x20Override\ - s\x20the\x20provided\n\x20object\n\x20metadata's\x20`bucket`\x20value,\ - \x20if\x20any.\n\n\x0f\n\x05\x04\x20\x02\0\x04\x12\x06\x82\x08\x02\xfe\ - \x07\x1b\n\r\n\x05\x04\x20\x02\0\x05\x12\x04\x82\x08\x02\x08\n\r\n\x05\ - \x04\x20\x02\0\x01\x12\x04\x82\x08\t\x1b\n\r\n\x05\x04\x20\x02\0\x03\x12\ - \x04\x82\x08\x1e\x1f\n\r\n\x05\x04\x20\x02\0\x08\x12\x04\x82\x08\x20H\n\ - \x10\n\x08\x04\x20\x02\0\x08\x9c\x08\0\x12\x04\x82\x08!G\n\xa7\x01\n\x04\ - \x04\x20\x02\x01\x12\x04\x87\x08\x02I\x1a\x98\x01\x20Required.\x20Name\ - \x20of\x20the\x20new\x20object.\n\x20Required\x20when\x20the\x20object\ - \x20metadata\x20is\x20not\x20otherwise\x20provided.\x20Overrides\x20the\ - \n\x20object\x20metadata's\x20`name`\x20value,\x20if\x20any.\n\n\x0f\n\ - \x05\x04\x20\x02\x01\x04\x12\x06\x87\x08\x02\x82\x08I\n\r\n\x05\x04\x20\ - \x02\x01\x05\x12\x04\x87\x08\x02\x08\n\r\n\x05\x04\x20\x02\x01\x01\x12\ - \x04\x87\x08\t\x1b\n\r\n\x05\x04\x20\x02\x01\x03\x12\x04\x87\x08\x1e\x1f\ - \n\r\n\x05\x04\x20\x02\x01\x08\x12\x04\x87\x08\x20H\n\x10\n\x08\x04\x20\ - \x02\x01\x08\x9c\x08\0\x12\x04\x87\x08!G\nT\n\x04\x04\x20\x02\x02\x12\ - \x04\x8a\x08\x02A\x1aF\x20Apply\x20a\x20predefined\x20set\x20of\x20acces\ - s\x20controls\x20to\x20the\x20destination\x20object.\n\n\x0f\n\x05\x04\ - \x20\x02\x02\x04\x12\x06\x8a\x08\x02\x87\x08I\n\r\n\x05\x04\x20\x02\x02\ - \x06\x12\x04\x8a\x08\x02!\n\r\n\x05\x04\x20\x02\x02\x01\x12\x04\x8a\x08\ - \"<\n\r\n\x05\x04\x20\x02\x02\x03\x12\x04\x8a\x08?@\n\xdd\x01\n\x04\x04\ - \x20\x02\x03\x12\x04\x8f\x08\x025\x1a\xce\x01\x20Makes\x20the\x20operati\ - on\x20conditional\x20on\x20whether\x20the\x20destination\x20object's\x20\ - current\n\x20generation\x20matches\x20the\x20given\x20value.\x20Setting\ - \x20to\x200\x20makes\x20the\x20operation\n\x20succeed\x20only\x20if\x20t\ - here\x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\x0f\n\ - \x05\x04\x20\x02\x03\x04\x12\x06\x8f\x08\x02\x8a\x08A\n\r\n\x05\x04\x20\ - \x02\x03\x06\x12\x04\x8f\x08\x02\x1c\n\r\n\x05\x04\x20\x02\x03\x01\x12\ - \x04\x8f\x08\x1d0\n\r\n\x05\x04\x20\x02\x03\x03\x12\x04\x8f\x0834\n\x94\ - \x02\n\x04\x04\x20\x02\x04\x12\x04\x95\x08\x029\x1a\x85\x02\x20Makes\x20\ - the\x20operation\x20conditional\x20on\x20whether\x20the\x20destination\ - \x20object's\x20current\n\x20generation\x20does\x20not\x20match\x20the\ - \x20given\x20value.\x20If\x20no\x20live\x20object\x20exists,\x20the\n\ - \x20precondition\x20fails.\x20Setting\x20to\x200\x20makes\x20the\x20oper\ - ation\x20succeed\x20only\x20if\x20there\n\x20is\x20a\x20live\x20version\ - \x20of\x20the\x20object.\n\n\x0f\n\x05\x04\x20\x02\x04\x04\x12\x06\x95\ - \x08\x02\x8f\x085\n\r\n\x05\x04\x20\x02\x04\x06\x12\x04\x95\x08\x02\x1c\ - \n\r\n\x05\x04\x20\x02\x04\x01\x12\x04\x95\x08\x1d4\n\r\n\x05\x04\x20\ - \x02\x04\x03\x12\x04\x95\x0878\n\x84\x01\n\x04\x04\x20\x02\x05\x12\x04\ - \x99\x08\x029\x1av\x20Makes\x20the\x20operation\x20conditional\x20on\x20\ - whether\x20the\x20destination\x20object's\x20current\n\x20metageneration\ - \x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\x20\x02\x05\x04\ - \x12\x06\x99\x08\x02\x95\x089\n\r\n\x05\x04\x20\x02\x05\x06\x12\x04\x99\ - \x08\x02\x1c\n\r\n\x05\x04\x20\x02\x05\x01\x12\x04\x99\x08\x1d4\n\r\n\ - \x05\x04\x20\x02\x05\x03\x12\x04\x99\x0878\n\x8b\x01\n\x04\x04\x20\x02\ - \x06\x12\x04\x9d\x08\x02=\x1a}\x20Makes\x20the\x20operation\x20condition\ - al\x20on\x20whether\x20the\x20destination\x20object's\x20current\n\x20me\ - tageneration\x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\ - \x05\x04\x20\x02\x06\x04\x12\x06\x9d\x08\x02\x99\x089\n\r\n\x05\x04\x20\ - \x02\x06\x06\x12\x04\x9d\x08\x02\x1c\n\r\n\x05\x04\x20\x02\x06\x01\x12\ - \x04\x9d\x08\x1d8\n\r\n\x05\x04\x20\x02\x06\x03\x12\x04\x9d\x08;<\n{\n\ - \x04\x04\x20\x02\x07\x12\x04\xa1\x08\x02<\x1am\x20Makes\x20the\x20operat\ - ion\x20conditional\x20on\x20whether\x20the\x20source\x20object's\x20curr\ - ent\n\x20generation\x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\ - \x04\x20\x02\x07\x04\x12\x06\xa1\x08\x02\x9d\x08=\n\r\n\x05\x04\x20\x02\ - \x07\x06\x12\x04\xa1\x08\x02\x1c\n\r\n\x05\x04\x20\x02\x07\x01\x12\x04\ - \xa1\x08\x1d7\n\r\n\x05\x04\x20\x02\x07\x03\x12\x04\xa1\x08:;\n\x82\x01\ - \n\x04\x04\x20\x02\x08\x12\x04\xa5\x08\x02@\x1at\x20Makes\x20the\x20oper\ - ation\x20conditional\x20on\x20whether\x20the\x20source\x20object's\x20cu\ - rrent\n\x20generation\x20does\x20not\x20match\x20the\x20given\x20value.\ - \n\n\x0f\n\x05\x04\x20\x02\x08\x04\x12\x06\xa5\x08\x02\xa1\x08<\n\r\n\ - \x05\x04\x20\x02\x08\x06\x12\x04\xa5\x08\x02\x1c\n\r\n\x05\x04\x20\x02\ - \x08\x01\x12\x04\xa5\x08\x1d;\n\r\n\x05\x04\x20\x02\x08\x03\x12\x04\xa5\ - \x08>?\n\x7f\n\x04\x04\x20\x02\t\x12\x04\xa9\x08\x02A\x1aq\x20Makes\x20t\ - he\x20operation\x20conditional\x20on\x20whether\x20the\x20source\x20obje\ - ct's\x20current\n\x20metageneration\x20matches\x20the\x20given\x20value.\ - \n\n\x0f\n\x05\x04\x20\x02\t\x04\x12\x06\xa9\x08\x02\xa5\x08@\n\r\n\x05\ - \x04\x20\x02\t\x06\x12\x04\xa9\x08\x02\x1c\n\r\n\x05\x04\x20\x02\t\x01\ - \x12\x04\xa9\x08\x1d;\n\r\n\x05\x04\x20\x02\t\x03\x12\x04\xa9\x08>@\n\ - \x86\x01\n\x04\x04\x20\x02\n\x12\x04\xad\x08\x02E\x1ax\x20Makes\x20the\ - \x20operation\x20conditional\x20on\x20whether\x20the\x20source\x20object\ - 's\x20current\n\x20metageneration\x20does\x20not\x20match\x20the\x20give\ - n\x20value.\n\n\x0f\n\x05\x04\x20\x02\n\x04\x12\x06\xad\x08\x02\xa9\x08A\ - \n\r\n\x05\x04\x20\x02\n\x06\x12\x04\xad\x08\x02\x1c\n\r\n\x05\x04\x20\ - \x02\n\x01\x12\x04\xad\x08\x1d?\n\r\n\x05\x04\x20\x02\n\x03\x12\x04\xad\ - \x08BD\n\x9a\x01\n\x04\x04\x20\x02\x0b\x12\x04\xb2\x08\x02)\x1a\x8b\x01\ - \x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\x20to\x20`NO_AC\ - L`,\x20unless\x20the\n\x20object\x20resource\x20specifies\x20the\x20`acl\ - `\x20property,\x20when\x20it\x20defaults\n\x20to\x20`full`.\n\n\x0f\n\ - \x05\x04\x20\x02\x0b\x04\x12\x06\xb2\x08\x02\xad\x08E\n\r\n\x05\x04\x20\ - \x02\x0b\x06\x12\x04\xb2\x08\x02\x18\n\r\n\x05\x04\x20\x02\x0b\x01\x12\ - \x04\xb2\x08\x19#\n\r\n\x05\x04\x20\x02\x0b\x03\x12\x04\xb2\x08&(\nP\n\ - \x04\x04\x20\x02\x0c\x12\x04\xb5\x08\x02E\x1aB\x20Required.\x20Name\x20o\ - f\x20the\x20bucket\x20in\x20which\x20to\x20find\x20the\x20source\x20obje\ - ct.\n\n\x0f\n\x05\x04\x20\x02\x0c\x04\x12\x06\xb5\x08\x02\xb2\x08)\n\r\n\ - \x05\x04\x20\x02\x0c\x05\x12\x04\xb5\x08\x02\x08\n\r\n\x05\x04\x20\x02\ - \x0c\x01\x12\x04\xb5\x08\t\x16\n\r\n\x05\x04\x20\x02\x0c\x03\x12\x04\xb5\ - \x08\x19\x1b\n\r\n\x05\x04\x20\x02\x0c\x08\x12\x04\xb5\x08\x1cD\n\x10\n\ - \x08\x04\x20\x02\x0c\x08\x9c\x08\0\x12\x04\xb5\x08\x1dC\n4\n\x04\x04\x20\ - \x02\r\x12\x04\xb8\x08\x02E\x1a&\x20Required.\x20Name\x20of\x20the\x20so\ - urce\x20object.\n\n\x0f\n\x05\x04\x20\x02\r\x04\x12\x06\xb8\x08\x02\xb5\ - \x08E\n\r\n\x05\x04\x20\x02\r\x05\x12\x04\xb8\x08\x02\x08\n\r\n\x05\x04\ - \x20\x02\r\x01\x12\x04\xb8\x08\t\x16\n\r\n\x05\x04\x20\x02\r\x03\x12\x04\ - \xb8\x08\x19\x1b\n\r\n\x05\x04\x20\x02\r\x08\x12\x04\xb8\x08\x1cD\n\x10\ - \n\x08\x04\x20\x02\r\x08\x9c\x08\0\x12\x04\xb8\x08\x1dC\n~\n\x04\x04\x20\ - \x02\x0e\x12\x04\xbc\x08\x02\x1f\x1ap\x20If\x20present,\x20selects\x20a\ - \x20specific\x20revision\x20of\x20the\x20source\x20object\x20(as\x20oppo\ - sed\x20to\n\x20the\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\ - \x05\x04\x20\x02\x0e\x04\x12\x06\xbc\x08\x02\xb8\x08E\n\r\n\x05\x04\x20\ - \x02\x0e\x05\x12\x04\xbc\x08\x02\x07\n\r\n\x05\x04\x20\x02\x0e\x01\x12\ - \x04\xbc\x08\x08\x19\n\r\n\x05\x04\x20\x02\x0e\x03\x12\x04\xbc\x08\x1c\ - \x1e\ng\n\x04\x04\x20\x02\x0f\x12\x04\xc0\x08\x02\x1a\x1aY\x20Properties\ - \x20of\x20the\x20resulting\x20object.\x20If\x20not\x20set,\x20duplicate\ - \x20properties\x20of\n\x20source\x20object.\n\n\x0f\n\x05\x04\x20\x02\ - \x0f\x04\x12\x06\xc0\x08\x02\xbc\x08\x1f\n\r\n\x05\x04\x20\x02\x0f\x06\ - \x12\x04\xc0\x08\x02\x08\n\r\n\x05\x04\x20\x02\x0f\x01\x12\x04\xc0\x08\t\ - \x14\n\r\n\x05\x04\x20\x02\x0f\x03\x12\x04\xc0\x08\x17\x19\n\xf8\x01\n\ - \x04\x04\x20\x02\x10\x12\x04\xc6\x08\x02'\x1a\xe9\x01\x20Resource\x20nam\ - e\x20of\x20the\x20Cloud\x20KMS\x20key,\x20of\x20the\x20form\n\x20`projec\ - ts/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,\n\ - \x20that\x20will\x20be\x20used\x20to\x20encrypt\x20the\x20object.\x20Ove\ - rrides\x20the\x20object\n\x20metadata's\x20`kms_key_name`\x20value,\x20i\ - f\x20any.\n\n\x0f\n\x05\x04\x20\x02\x10\x04\x12\x06\xc6\x08\x02\xc0\x08\ - \x1a\n\r\n\x05\x04\x20\x02\x10\x05\x12\x04\xc6\x08\x02\x08\n\r\n\x05\x04\ - \x20\x02\x10\x01\x12\x04\xc6\x08\t!\n\r\n\x05\x04\x20\x02\x10\x03\x12\ - \x04\xc6\x08$&\nX\n\x04\x04\x20\x02\x11\x12\x04\xc9\x08\x02>\x1aJ\x20A\ - \x20set\x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20request\ - s\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04\x20\x02\x11\x04\x12\ - \x06\xc9\x08\x02\xc6\x08'\n\r\n\x05\x04\x20\x02\x11\x06\x12\x04\xc9\x08\ - \x02\x1b\n\r\n\x05\x04\x20\x02\x11\x01\x12\x04\xc9\x08\x1c8\n\r\n\x05\ - \x04\x20\x02\x11\x03\x12\x04\xc9\x08;=\nG\n\x04\x04\x20\x02\x12\x12\x04\ - \xcc\x08\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ - l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x20\x02\x12\x04\x12\ - \x06\xcc\x08\x02\xc9\x08>\n\r\n\x05\x04\x20\x02\x12\x06\x12\x04\xcc\x08\ - \x02\x15\n\r\n\x05\x04\x20\x02\x12\x01\x12\x04\xcc\x08\x16+\n\r\n\x05\ - \x04\x20\x02\x12\x03\x12\x04\xcc\x08.0\n~\n\x02\x04!\x12\x06\xd1\x08\0\ - \xf9\x08\x01\x1ap\x20Message\x20for\x20deleting\x20an\x20object.\n\x20Ei\ - ther\x20`bucket`\x20and\x20`object`\x20*or*\x20`upload_id`\x20**must**\ - \x20be\x20set\x20(but\x20not\x20both).\n\n\x0b\n\x03\x04!\x01\x12\x04\ - \xd1\x08\x08\x1b\nI\n\x04\x04!\x02\0\x12\x04\xd3\x08\x02=\x1a;\x20Requir\ - ed.\x20Name\x20of\x20the\x20bucket\x20in\x20which\x20the\x20object\x20re\ - sides.\n\n\x0f\n\x05\x04!\x02\0\x04\x12\x06\xd3\x08\x02\xd1\x08\x1d\n\r\ - \n\x05\x04!\x02\0\x05\x12\x04\xd3\x08\x02\x08\n\r\n\x05\x04!\x02\0\x01\ - \x12\x04\xd3\x08\t\x0f\n\r\n\x05\x04!\x02\0\x03\x12\x04\xd3\x08\x12\x13\ - \n\r\n\x05\x04!\x02\0\x08\x12\x04\xd3\x08\x14<\n\x10\n\x08\x04!\x02\0\ - \x08\x9c\x08\0\x12\x04\xd3\x08\x15;\n^\n\x04\x04!\x02\x01\x12\x04\xd6\ - \x08\x02=\x1aP\x20Required.\x20The\x20name\x20of\x20the\x20object\x20to\ - \x20delete\x20(when\x20not\x20using\x20a\x20resumable\x20write).\n\n\x0f\ - \n\x05\x04!\x02\x01\x04\x12\x06\xd6\x08\x02\xd3\x08=\n\r\n\x05\x04!\x02\ - \x01\x05\x12\x04\xd6\x08\x02\x08\n\r\n\x05\x04!\x02\x01\x01\x12\x04\xd6\ - \x08\t\x0f\n\r\n\x05\x04!\x02\x01\x03\x12\x04\xd6\x08\x12\x13\n\r\n\x05\ - \x04!\x02\x01\x08\x12\x04\xd6\x08\x14<\n\x10\n\x08\x04!\x02\x01\x08\x9c\ - \x08\0\x12\x04\xd6\x08\x15;\n\xb5\x01\n\x04\x04!\x02\x02\x12\x04\xdb\x08\ - \x02\x17\x1a\xa6\x01\x20The\x20resumable\x20upload_id\x20of\x20the\x20ob\ - ject\x20to\x20delete\x20(when\x20using\x20a\n\x20resumable\x20write).\ - \x20This\x20should\x20be\x20copied\x20from\x20the\x20`upload_id`\x20fiel\ - d\x20of\n\x20`StartResumableWriteResponse`.\n\n\x0f\n\x05\x04!\x02\x02\ - \x04\x12\x06\xdb\x08\x02\xd6\x08=\n\r\n\x05\x04!\x02\x02\x05\x12\x04\xdb\ - \x08\x02\x08\n\r\n\x05\x04!\x02\x02\x01\x12\x04\xdb\x08\t\x12\n\r\n\x05\ - \x04!\x02\x02\x03\x12\x04\xdb\x08\x15\x16\n\x84\x01\n\x04\x04!\x02\x03\ - \x12\x04\xdf\x08\x02\x17\x1av\x20If\x20present,\x20permanently\x20delete\ - s\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\n\x20oppos\ - ed\x20to\x20the\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\ - \x04!\x02\x03\x04\x12\x06\xdf\x08\x02\xdb\x08\x17\n\r\n\x05\x04!\x02\x03\ - \x05\x12\x04\xdf\x08\x02\x07\n\r\n\x05\x04!\x02\x03\x01\x12\x04\xdf\x08\ - \x08\x12\n\r\n\x05\x04!\x02\x03\x03\x12\x04\xdf\x08\x15\x16\n\xd1\x01\n\ - \x04\x04!\x02\x04\x12\x04\xe4\x08\x025\x1a\xc2\x01\x20Makes\x20the\x20op\ - eration\x20conditional\x20on\x20whether\x20the\x20object's\x20current\ - \x20generation\n\x20matches\x20the\x20given\x20value.\x20Setting\x20to\ - \x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\x20there\ - \x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\x0f\n\x05\ - \x04!\x02\x04\x04\x12\x06\xe4\x08\x02\xdf\x08\x17\n\r\n\x05\x04!\x02\x04\ - \x06\x12\x04\xe4\x08\x02\x1c\n\r\n\x05\x04!\x02\x04\x01\x12\x04\xe4\x08\ - \x1d0\n\r\n\x05\x04!\x02\x04\x03\x12\x04\xe4\x0834\n\x88\x02\n\x04\x04!\ - \x02\x05\x12\x04\xea\x08\x029\x1a\xf9\x01\x20Makes\x20the\x20operation\ - \x20conditional\x20on\x20whether\x20the\x20object's\x20current\x20genera\ - tion\n\x20does\x20not\x20match\x20the\x20given\x20value.\x20If\x20no\x20\ - live\x20object\x20exists,\x20the\x20precondition\n\x20fails.\x20Setting\ - \x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\x20the\ - re\x20is\x20a\x20live\n\x20version\x20of\x20the\x20object.\n\n\x0f\n\x05\ - \x04!\x02\x05\x04\x12\x06\xea\x08\x02\xe4\x085\n\r\n\x05\x04!\x02\x05\ - \x06\x12\x04\xea\x08\x02\x1c\n\r\n\x05\x04!\x02\x05\x01\x12\x04\xea\x08\ - \x1d4\n\r\n\x05\x04!\x02\x05\x03\x12\x04\xea\x0878\nx\n\x04\x04!\x02\x06\ - \x12\x04\xee\x08\x029\x1aj\x20Makes\x20the\x20operation\x20conditional\ - \x20on\x20whether\x20the\x20object's\x20current\n\x20metageneration\x20m\ - atches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04!\x02\x06\x04\x12\x06\ - \xee\x08\x02\xea\x089\n\r\n\x05\x04!\x02\x06\x06\x12\x04\xee\x08\x02\x1c\ - \n\r\n\x05\x04!\x02\x06\x01\x12\x04\xee\x08\x1d4\n\r\n\x05\x04!\x02\x06\ - \x03\x12\x04\xee\x0878\n\x7f\n\x04\x04!\x02\x07\x12\x04\xf2\x08\x02=\x1a\ - q\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20the\ - \x20object's\x20current\n\x20metageneration\x20does\x20not\x20match\x20t\ - he\x20given\x20value.\n\n\x0f\n\x05\x04!\x02\x07\x04\x12\x06\xf2\x08\x02\ - \xee\x089\n\r\n\x05\x04!\x02\x07\x06\x12\x04\xf2\x08\x02\x1c\n\r\n\x05\ - \x04!\x02\x07\x01\x12\x04\xf2\x08\x1d8\n\r\n\x05\x04!\x02\x07\x03\x12\ - \x04\xf2\x08;<\nX\n\x04\x04!\x02\x08\x12\x04\xf5\x08\x02>\x1aJ\x20A\x20s\ - et\x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20requests\x20\ - concerning\x20an\x20object.\n\n\x0f\n\x05\x04!\x02\x08\x04\x12\x06\xf5\ - \x08\x02\xf2\x08=\n\r\n\x05\x04!\x02\x08\x06\x12\x04\xf5\x08\x02\x1b\n\r\ - \n\x05\x04!\x02\x08\x01\x12\x04\xf5\x08\x1c8\n\r\n\x05\x04!\x02\x08\x03\ - \x12\x04\xf5\x08;=\nG\n\x04\x04!\x02\t\x12\x04\xf8\x08\x021\x1a9\x20A\ - \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ - requests.\n\n\x0f\n\x05\x04!\x02\t\x04\x12\x06\xf8\x08\x02\xf5\x08>\n\r\ - \n\x05\x04!\x02\t\x06\x12\x04\xf8\x08\x02\x15\n\r\n\x05\x04!\x02\t\x01\ - \x12\x04\xf8\x08\x16+\n\r\n\x05\x04!\x02\t\x03\x12\x04\xf8\x08.0\n3\n\ - \x02\x04\"\x12\x06\xfc\x08\0\xb1\t\x01\x1a%\x20Request\x20message\x20for\ - \x20GetObjectMedia.\n\n\x0b\n\x03\x04\"\x01\x12\x04\xfc\x08\x08\x1d\nE\n\ - \x04\x04\"\x02\0\x12\x04\xfe\x08\x02\x14\x1a7\x20The\x20name\x20of\x20th\ - e\x20bucket\x20containing\x20the\x20object\x20to\x20read.\n\n\x0f\n\x05\ - \x04\"\x02\0\x04\x12\x06\xfe\x08\x02\xfc\x08\x1f\n\r\n\x05\x04\"\x02\0\ - \x05\x12\x04\xfe\x08\x02\x08\n\r\n\x05\x04\"\x02\0\x01\x12\x04\xfe\x08\t\ - \x0f\n\r\n\x05\x04\"\x02\0\x03\x12\x04\xfe\x08\x12\x13\n/\n\x04\x04\"\ - \x02\x01\x12\x04\x81\t\x02\x14\x1a!\x20The\x20name\x20of\x20the\x20objec\ - t\x20to\x20read.\n\n\x0f\n\x05\x04\"\x02\x01\x04\x12\x06\x81\t\x02\xfe\ - \x08\x14\n\r\n\x05\x04\"\x02\x01\x05\x12\x04\x81\t\x02\x08\n\r\n\x05\x04\ - \"\x02\x01\x01\x12\x04\x81\t\t\x0f\n\r\n\x05\x04\"\x02\x01\x03\x12\x04\ - \x81\t\x12\x13\nx\n\x04\x04\"\x02\x02\x12\x04\x85\t\x02\x17\x1aj\x20If\ - \x20present,\x20selects\x20a\x20specific\x20revision\x20of\x20this\x20ob\ - ject\x20(as\x20opposed\n\x20to\x20the\x20latest\x20version,\x20the\x20de\ - fault).\n\n\x0f\n\x05\x04\"\x02\x02\x04\x12\x06\x85\t\x02\x81\t\x14\n\r\ - \n\x05\x04\"\x02\x02\x05\x12\x04\x85\t\x02\x07\n\r\n\x05\x04\"\x02\x02\ - \x01\x12\x04\x85\t\x08\x12\n\r\n\x05\x04\"\x02\x02\x03\x12\x04\x85\t\x15\ - \x16\n\x8f\x03\n\x04\x04\"\x02\x03\x12\x04\x8e\t\x02\x18\x1a\x80\x03\x20\ - The\x20offset\x20for\x20the\x20first\x20byte\x20to\x20return\x20in\x20th\ - e\x20read,\x20relative\x20to\x20the\x20start\n\x20of\x20the\x20object.\n\ - \n\x20A\x20negative\x20`read_offset`\x20value\x20will\x20be\x20interpret\ - ed\x20as\x20the\x20number\x20of\x20bytes\n\x20back\x20from\x20the\x20end\ - \x20of\x20the\x20object\x20to\x20be\x20returned.\x20For\x20example,\x20i\ - f\x20an\x20object's\n\x20length\x20is\x2015\x20bytes,\x20a\x20GetObjectM\ - ediaRequest\x20with\x20`read_offset`\x20=\x20-5\x20and\n\x20`read_limit`\ - \x20=\x203\x20would\x20return\x20bytes\x2010\x20through\x2012\x20of\x20t\ - he\x20object.\n\n\x0f\n\x05\x04\"\x02\x03\x04\x12\x06\x8e\t\x02\x85\t\ - \x17\n\r\n\x05\x04\"\x02\x03\x05\x12\x04\x8e\t\x02\x07\n\r\n\x05\x04\"\ - \x02\x03\x01\x12\x04\x8e\t\x08\x13\n\r\n\x05\x04\"\x02\x03\x03\x12\x04\ - \x8e\t\x16\x17\n\x92\x03\n\x04\x04\"\x02\x04\x12\x04\x97\t\x02\x17\x1a\ - \x83\x03\x20The\x20maximum\x20number\x20of\x20`data`\x20bytes\x20the\x20\ - server\x20is\x20allowed\x20to\x20return\x20in\x20the\n\x20sum\x20of\x20a\ - ll\x20`Object`\x20messages.\x20A\x20`read_limit`\x20of\x20zero\x20indica\ - tes\x20that\x20there\n\x20is\x20no\x20limit,\x20and\x20a\x20negative\x20\ - `read_limit`\x20will\x20cause\x20an\x20error.\n\n\x20If\x20the\x20stream\ - \x20returns\x20fewer\x20bytes\x20than\x20allowed\x20by\x20the\x20`read_l\ - imit`\x20and\x20no\n\x20error\x20occurred,\x20the\x20stream\x20includes\ - \x20all\x20data\x20from\x20the\x20`read_offset`\x20to\x20the\n\x20end\ - \x20of\x20the\x20resource.\n\n\x0f\n\x05\x04\"\x02\x04\x04\x12\x06\x97\t\ - \x02\x8e\t\x18\n\r\n\x05\x04\"\x02\x04\x05\x12\x04\x97\t\x02\x07\n\r\n\ - \x05\x04\"\x02\x04\x01\x12\x04\x97\t\x08\x12\n\r\n\x05\x04\"\x02\x04\x03\ - \x12\x04\x97\t\x15\x16\n\xd1\x01\n\x04\x04\"\x02\x05\x12\x04\x9c\t\x025\ - \x1a\xc2\x01\x20Makes\x20the\x20operation\x20conditional\x20on\x20whethe\ - r\x20the\x20object's\x20current\x20generation\n\x20matches\x20the\x20giv\ - en\x20value.\x20Setting\x20to\x200\x20makes\x20the\x20operation\x20succe\ - ed\x20only\x20if\n\x20there\x20are\x20no\x20live\x20versions\x20of\x20th\ - e\x20object.\n\n\x0f\n\x05\x04\"\x02\x05\x04\x12\x06\x9c\t\x02\x97\t\x17\ - \n\r\n\x05\x04\"\x02\x05\x06\x12\x04\x9c\t\x02\x1c\n\r\n\x05\x04\"\x02\ - \x05\x01\x12\x04\x9c\t\x1d0\n\r\n\x05\x04\"\x02\x05\x03\x12\x04\x9c\t34\ - \n\x88\x02\n\x04\x04\"\x02\x06\x12\x04\xa2\t\x029\x1a\xf9\x01\x20Makes\ - \x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\ - \x20current\x20generation\n\x20does\x20not\x20match\x20the\x20given\x20v\ - alue.\x20If\x20no\x20live\x20object\x20exists,\x20the\x20precondition\n\ - \x20fails.\x20Setting\x20to\x200\x20makes\x20the\x20operation\x20succeed\ - \x20only\x20if\x20there\x20is\x20a\x20live\n\x20version\x20of\x20the\x20\ - object.\n\n\x0f\n\x05\x04\"\x02\x06\x04\x12\x06\xa2\t\x02\x9c\t5\n\r\n\ - \x05\x04\"\x02\x06\x06\x12\x04\xa2\t\x02\x1c\n\r\n\x05\x04\"\x02\x06\x01\ - \x12\x04\xa2\t\x1d4\n\r\n\x05\x04\"\x02\x06\x03\x12\x04\xa2\t78\nx\n\x04\ - \x04\"\x02\x07\x12\x04\xa6\t\x029\x1aj\x20Makes\x20the\x20operation\x20c\ - onditional\x20on\x20whether\x20the\x20object's\x20current\n\x20metagener\ - ation\x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\"\x02\x07\ - \x04\x12\x06\xa6\t\x02\xa2\t9\n\r\n\x05\x04\"\x02\x07\x06\x12\x04\xa6\t\ - \x02\x1c\n\r\n\x05\x04\"\x02\x07\x01\x12\x04\xa6\t\x1d4\n\r\n\x05\x04\"\ - \x02\x07\x03\x12\x04\xa6\t78\n\x7f\n\x04\x04\"\x02\x08\x12\x04\xaa\t\x02\ - =\x1aq\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20t\ - he\x20object's\x20current\n\x20metageneration\x20does\x20not\x20match\ - \x20the\x20given\x20value.\n\n\x0f\n\x05\x04\"\x02\x08\x04\x12\x06\xaa\t\ - \x02\xa6\t9\n\r\n\x05\x04\"\x02\x08\x06\x12\x04\xaa\t\x02\x1c\n\r\n\x05\ - \x04\"\x02\x08\x01\x12\x04\xaa\t\x1d8\n\r\n\x05\x04\"\x02\x08\x03\x12\ - \x04\xaa\t;<\nX\n\x04\x04\"\x02\t\x12\x04\xad\t\x02>\x1aJ\x20A\x20set\ - \x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20requests\x20co\ - ncerning\x20an\x20object.\n\n\x0f\n\x05\x04\"\x02\t\x04\x12\x06\xad\t\ - \x02\xaa\t=\n\r\n\x05\x04\"\x02\t\x06\x12\x04\xad\t\x02\x1b\n\r\n\x05\ - \x04\"\x02\t\x01\x12\x04\xad\t\x1c8\n\r\n\x05\x04\"\x02\t\x03\x12\x04\ - \xad\t;=\nG\n\x04\x04\"\x02\n\x12\x04\xb0\t\x021\x1a9\x20A\x20set\x20of\ - \x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\ - \x0f\n\x05\x04\"\x02\n\x04\x12\x06\xb0\t\x02\xad\t>\n\r\n\x05\x04\"\x02\ - \n\x06\x12\x04\xb0\t\x02\x15\n\r\n\x05\x04\"\x02\n\x01\x12\x04\xb0\t\x16\ - +\n\r\n\x05\x04\"\x02\n\x03\x12\x04\xb0\t.0\n.\n\x02\x04#\x12\x06\xb4\t\ - \0\xda\t\x01\x1a\x20\x20Request\x20message\x20for\x20GetObject.\n\n\x0b\ - \n\x03\x04#\x01\x12\x04\xb4\t\x08\x18\nI\n\x04\x04#\x02\0\x12\x04\xb6\t\ - \x02=\x1a;\x20Required.\x20Name\x20of\x20the\x20bucket\x20in\x20which\ - \x20the\x20object\x20resides.\n\n\x0f\n\x05\x04#\x02\0\x04\x12\x06\xb6\t\ - \x02\xb4\t\x1a\n\r\n\x05\x04#\x02\0\x05\x12\x04\xb6\t\x02\x08\n\r\n\x05\ - \x04#\x02\0\x01\x12\x04\xb6\t\t\x0f\n\r\n\x05\x04#\x02\0\x03\x12\x04\xb6\ - \t\x12\x13\n\r\n\x05\x04#\x02\0\x08\x12\x04\xb6\t\x14<\n\x10\n\x08\x04#\ - \x02\0\x08\x9c\x08\0\x12\x04\xb6\t\x15;\n-\n\x04\x04#\x02\x01\x12\x04\ - \xb9\t\x02=\x1a\x1f\x20Required.\x20Name\x20of\x20the\x20object.\n\n\x0f\ - \n\x05\x04#\x02\x01\x04\x12\x06\xb9\t\x02\xb6\t=\n\r\n\x05\x04#\x02\x01\ - \x05\x12\x04\xb9\t\x02\x08\n\r\n\x05\x04#\x02\x01\x01\x12\x04\xb9\t\t\ - \x0f\n\r\n\x05\x04#\x02\x01\x03\x12\x04\xb9\t\x12\x13\n\r\n\x05\x04#\x02\ - \x01\x08\x12\x04\xb9\t\x14<\n\x10\n\x08\x04#\x02\x01\x08\x9c\x08\0\x12\ - \x04\xb9\t\x15;\nx\n\x04\x04#\x02\x02\x12\x04\xbd\t\x02\x17\x1aj\x20If\ - \x20present,\x20selects\x20a\x20specific\x20revision\x20of\x20this\x20ob\ - ject\x20(as\x20opposed\x20to\x20the\n\x20latest\x20version,\x20the\x20de\ - fault).\n\n\x0f\n\x05\x04#\x02\x02\x04\x12\x06\xbd\t\x02\xb9\t=\n\r\n\ - \x05\x04#\x02\x02\x05\x12\x04\xbd\t\x02\x07\n\r\n\x05\x04#\x02\x02\x01\ - \x12\x04\xbd\t\x08\x12\n\r\n\x05\x04#\x02\x02\x03\x12\x04\xbd\t\x15\x16\ - \n\xd1\x01\n\x04\x04#\x02\x03\x12\x04\xc2\t\x025\x1a\xc2\x01\x20Makes\ - \x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\ - \x20current\x20generation\n\x20matches\x20the\x20given\x20value.\x20Sett\ - ing\x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\ - \x20there\x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\ - \x0f\n\x05\x04#\x02\x03\x04\x12\x06\xc2\t\x02\xbd\t\x17\n\r\n\x05\x04#\ - \x02\x03\x06\x12\x04\xc2\t\x02\x1c\n\r\n\x05\x04#\x02\x03\x01\x12\x04\ - \xc2\t\x1d0\n\r\n\x05\x04#\x02\x03\x03\x12\x04\xc2\t34\n\x88\x02\n\x04\ - \x04#\x02\x04\x12\x04\xc8\t\x029\x1a\xf9\x01\x20Makes\x20the\x20operatio\ - n\x20conditional\x20on\x20whether\x20the\x20object's\x20current\x20gener\ - ation\n\x20does\x20not\x20match\x20the\x20given\x20value.\x20If\x20no\ - \x20live\x20object\x20exists,\x20the\x20precondition\n\x20fails.\x20Sett\ - ing\x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\x20\ - there\x20is\x20a\x20live\n\x20version\x20of\x20the\x20object.\n\n\x0f\n\ - \x05\x04#\x02\x04\x04\x12\x06\xc8\t\x02\xc2\t5\n\r\n\x05\x04#\x02\x04\ - \x06\x12\x04\xc8\t\x02\x1c\n\r\n\x05\x04#\x02\x04\x01\x12\x04\xc8\t\x1d4\ - \n\r\n\x05\x04#\x02\x04\x03\x12\x04\xc8\t78\nx\n\x04\x04#\x02\x05\x12\ - \x04\xcc\t\x029\x1aj\x20Makes\x20the\x20operation\x20conditional\x20on\ - \x20whether\x20the\x20object's\x20current\n\x20metageneration\x20matches\ - \x20the\x20given\x20value.\n\n\x0f\n\x05\x04#\x02\x05\x04\x12\x06\xcc\t\ - \x02\xc8\t9\n\r\n\x05\x04#\x02\x05\x06\x12\x04\xcc\t\x02\x1c\n\r\n\x05\ - \x04#\x02\x05\x01\x12\x04\xcc\t\x1d4\n\r\n\x05\x04#\x02\x05\x03\x12\x04\ - \xcc\t78\n\x7f\n\x04\x04#\x02\x06\x12\x04\xd0\t\x02=\x1aq\x20Makes\x20th\ - e\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\x20cur\ - rent\n\x20metageneration\x20does\x20not\x20match\x20the\x20given\x20valu\ - e.\n\n\x0f\n\x05\x04#\x02\x06\x04\x12\x06\xd0\t\x02\xcc\t9\n\r\n\x05\x04\ - #\x02\x06\x06\x12\x04\xd0\t\x02\x1c\n\r\n\x05\x04#\x02\x06\x01\x12\x04\ - \xd0\t\x1d8\n\r\n\x05\x04#\x02\x06\x03\x12\x04\xd0\t;<\nB\n\x04\x04#\x02\ - \x07\x12\x04\xd3\t\x02(\x1a4\x20Set\x20of\x20properties\x20to\x20return.\ - \x20Defaults\x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x04#\x02\x07\x04\x12\x06\ - \xd3\t\x02\xd0\t=\n\r\n\x05\x04#\x02\x07\x06\x12\x04\xd3\t\x02\x18\n\r\n\ - \x05\x04#\x02\x07\x01\x12\x04\xd3\t\x19#\n\r\n\x05\x04#\x02\x07\x03\x12\ - \x04\xd3\t&'\nX\n\x04\x04#\x02\x08\x12\x04\xd6\t\x02>\x1aJ\x20A\x20set\ - \x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20requests\x20co\ - ncerning\x20an\x20object.\n\n\x0f\n\x05\x04#\x02\x08\x04\x12\x06\xd6\t\ - \x02\xd3\t(\n\r\n\x05\x04#\x02\x08\x06\x12\x04\xd6\t\x02\x1b\n\r\n\x05\ - \x04#\x02\x08\x01\x12\x04\xd6\t\x1c8\n\r\n\x05\x04#\x02\x08\x03\x12\x04\ - \xd6\t;=\nG\n\x04\x04#\x02\t\x12\x04\xd9\t\x021\x1a9\x20A\x20set\x20of\ - \x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\ - \x0f\n\x05\x04#\x02\t\x04\x12\x06\xd9\t\x02\xd6\t>\n\r\n\x05\x04#\x02\t\ - \x06\x12\x04\xd9\t\x02\x15\n\r\n\x05\x04#\x02\t\x01\x12\x04\xd9\t\x16+\n\ - \r\n\x05\x04#\x02\t\x03\x12\x04\xd9\t.0\n/\n\x02\x04$\x12\x06\xdd\t\0\ - \xf1\t\x01\x1a!\x20Response\x20message\x20for\x20GetObject.\n\n\x0b\n\ - \x03\x04$\x01\x12\x04\xdd\t\x08\x1e\n\x83\x02\n\x04\x04$\x02\0\x12\x04\ - \xe2\t\x02'\x1a\xf4\x01\x20A\x20portion\x20of\x20the\x20data\x20for\x20t\ - he\x20object.\x20The\x20service\x20**may**\x20leave\x20`data`\n\x20empty\ - \x20for\x20any\x20given\x20`ReadResponse`.\x20This\x20enables\x20the\x20\ - service\x20to\x20inform\x20the\n\x20client\x20that\x20the\x20request\x20\ - is\x20still\x20live\x20while\x20it\x20is\x20running\x20an\x20operation\ - \x20to\n\x20generate\x20more\x20data.\n\n\x0f\n\x05\x04$\x02\0\x04\x12\ - \x06\xe2\t\x02\xdd\t\x20\n\r\n\x05\x04$\x02\0\x06\x12\x04\xe2\t\x02\x11\ - \n\r\n\x05\x04$\x02\0\x01\x12\x04\xe2\t\x12\"\n\r\n\x05\x04$\x02\0\x03\ - \x12\x04\xe2\t%&\n\xb4\x01\n\x04\x04$\x02\x01\x12\x04\xe7\t\x02'\x1a\xa5\ - \x01\x20The\x20checksums\x20of\x20the\x20complete\x20object.\x20The\x20c\ - lient\x20should\x20compute\x20one\x20of\n\x20these\x20checksums\x20over\ - \x20the\x20downloaded\x20object\x20and\x20compare\x20it\x20against\x20th\ - e\x20value\n\x20provided\x20here.\n\n\x0f\n\x05\x04$\x02\x01\x04\x12\x06\ - \xe7\t\x02\xe2\t'\n\r\n\x05\x04$\x02\x01\x06\x12\x04\xe7\t\x02\x11\n\r\n\ - \x05\x04$\x02\x01\x01\x12\x04\xe7\t\x12\"\n\r\n\x05\x04$\x02\x01\x03\x12\ - \x04\xe7\t%&\n\xbe\x01\n\x04\x04$\x02\x02\x12\x04\xec\t\x02!\x1a\xaf\x01\ - \x20If\x20read_offset\x20and\x20or\x20read_limit\x20was\x20specified\x20\ - on\x20the\n\x20GetObjectMediaRequest,\x20ContentRange\x20will\x20be\x20p\ - opulated\x20on\x20the\x20first\n\x20GetObjectMediaResponse\x20message\ - \x20of\x20the\x20read\x20stream.\n\n\x0f\n\x05\x04$\x02\x02\x04\x12\x06\ - \xec\t\x02\xe7\t'\n\r\n\x05\x04$\x02\x02\x06\x12\x04\xec\t\x02\x0e\n\r\n\ - \x05\x04$\x02\x02\x01\x12\x04\xec\t\x0f\x1c\n\r\n\x05\x04$\x02\x02\x03\ - \x12\x04\xec\t\x1f\x20\nz\n\x04\x04$\x02\x03\x12\x04\xf0\t\x02\x16\x1al\ - \x20Metadata\x20of\x20the\x20object\x20whose\x20media\x20is\x20being\x20\ - returned.\n\x20Only\x20populated\x20in\x20the\x20first\x20response\x20in\ - \x20the\x20stream.\n\n\x0f\n\x05\x04$\x02\x03\x04\x12\x06\xf0\t\x02\xec\ - \t!\n\r\n\x05\x04$\x02\x03\x06\x12\x04\xf0\t\x02\x08\n\r\n\x05\x04$\x02\ - \x03\x01\x12\x04\xf0\t\t\x11\n\r\n\x05\x04$\x02\x03\x03\x12\x04\xf0\t\ - \x14\x15\nZ\n\x02\x04%\x12\x06\xf4\t\0\x92\n\x01\x1aL\x20Describes\x20an\ - \x20attempt\x20to\x20insert\x20an\x20object,\x20possibly\x20over\x20mult\ - iple\x20requests.\n\n\x0b\n\x03\x04%\x01\x12\x04\xf4\t\x08\x18\nH\n\x04\ - \x04%\x02\0\x12\x04\xf6\t\x02\x16\x1a:\x20Destination\x20object,\x20incl\ - uding\x20its\x20name\x20and\x20its\x20metadata.\n\n\x0f\n\x05\x04%\x02\0\ - \x04\x12\x06\xf6\t\x02\xf4\t\x1a\n\r\n\x05\x04%\x02\0\x06\x12\x04\xf6\t\ - \x02\x08\n\r\n\x05\x04%\x02\0\x01\x12\x04\xf6\t\t\x11\n\r\n\x05\x04%\x02\ - \0\x03\x12\x04\xf6\t\x14\x15\nI\n\x04\x04%\x02\x01\x12\x04\xf9\t\x025\ - \x1a;\x20Apply\x20a\x20predefined\x20set\x20of\x20access\x20controls\x20\ - to\x20this\x20object.\n\n\x0f\n\x05\x04%\x02\x01\x04\x12\x06\xf9\t\x02\ - \xf6\t\x16\n\r\n\x05\x04%\x02\x01\x06\x12\x04\xf9\t\x02!\n\r\n\x05\x04%\ - \x02\x01\x01\x12\x04\xf9\t\"0\n\r\n\x05\x04%\x02\x01\x03\x12\x04\xf9\t34\ - \n\xd1\x01\n\x04\x04%\x02\x02\x12\x04\xfe\t\x025\x1a\xc2\x01\x20Makes\ - \x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\ - \x20current\n\x20generation\x20matches\x20the\x20given\x20value.\x20Sett\ - ing\x20to\x200\x20makes\x20the\x20operation\n\x20succeed\x20only\x20if\ - \x20there\x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\ - \x0f\n\x05\x04%\x02\x02\x04\x12\x06\xfe\t\x02\xf9\t5\n\r\n\x05\x04%\x02\ - \x02\x06\x12\x04\xfe\t\x02\x1c\n\r\n\x05\x04%\x02\x02\x01\x12\x04\xfe\t\ - \x1d0\n\r\n\x05\x04%\x02\x02\x03\x12\x04\xfe\t34\n\x88\x02\n\x04\x04%\ - \x02\x03\x12\x04\x84\n\x029\x1a\xf9\x01\x20Makes\x20the\x20operation\x20\ - conditional\x20on\x20whether\x20the\x20object's\x20current\n\x20generati\ - on\x20does\x20not\x20match\x20the\x20given\x20value.\x20If\x20no\x20live\ - \x20object\x20exists,\x20the\n\x20precondition\x20fails.\x20Setting\x20t\ - o\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\x20there\ - \x20is\x20a\x20live\x20version\x20of\x20the\x20object.\n\n\x0f\n\x05\x04\ - %\x02\x03\x04\x12\x06\x84\n\x02\xfe\t5\n\r\n\x05\x04%\x02\x03\x06\x12\ - \x04\x84\n\x02\x1c\n\r\n\x05\x04%\x02\x03\x01\x12\x04\x84\n\x1d4\n\r\n\ - \x05\x04%\x02\x03\x03\x12\x04\x84\n78\nx\n\x04\x04%\x02\x04\x12\x04\x88\ - \n\x029\x1aj\x20Makes\x20the\x20operation\x20conditional\x20on\x20whethe\ - r\x20the\x20object's\x20current\n\x20metageneration\x20matches\x20the\ - \x20given\x20value.\n\n\x0f\n\x05\x04%\x02\x04\x04\x12\x06\x88\n\x02\x84\ - \n9\n\r\n\x05\x04%\x02\x04\x06\x12\x04\x88\n\x02\x1c\n\r\n\x05\x04%\x02\ - \x04\x01\x12\x04\x88\n\x1d4\n\r\n\x05\x04%\x02\x04\x03\x12\x04\x88\n78\n\ - \x7f\n\x04\x04%\x02\x05\x12\x04\x8c\n\x02=\x1aq\x20Makes\x20the\x20opera\ - tion\x20conditional\x20on\x20whether\x20the\x20object's\x20current\n\x20\ - metageneration\x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\ - \n\x05\x04%\x02\x05\x04\x12\x06\x8c\n\x02\x88\n9\n\r\n\x05\x04%\x02\x05\ - \x06\x12\x04\x8c\n\x02\x1c\n\r\n\x05\x04%\x02\x05\x01\x12\x04\x8c\n\x1d8\ - \n\r\n\x05\x04%\x02\x05\x03\x12\x04\x8c\n;<\n\x9a\x01\n\x04\x04%\x02\x06\ - \x12\x04\x91\n\x02(\x1a\x8b\x01\x20Set\x20of\x20properties\x20to\x20retu\ - rn.\x20Defaults\x20to\x20`NO_ACL`,\x20unless\x20the\n\x20object\x20resou\ - rce\x20specifies\x20the\x20`acl`\x20property,\x20when\x20it\x20defaults\ - \n\x20to\x20`full`.\n\n\x0f\n\x05\x04%\x02\x06\x04\x12\x06\x91\n\x02\x8c\ - \n=\n\r\n\x05\x04%\x02\x06\x06\x12\x04\x91\n\x02\x18\n\r\n\x05\x04%\x02\ - \x06\x01\x12\x04\x91\n\x19#\n\r\n\x05\x04%\x02\x06\x03\x12\x04\x91\n&'\n\ - .\n\x02\x04&\x12\x06\x95\n\0\xd8\n\x01\x1a\x20\x20Message\x20for\x20writ\ - ing\x20an\x20object.\n\n\x0b\n\x03\x04&\x01\x12\x04\x95\n\x08\x1b\nS\n\ - \x04\x04&\x08\0\x12\x06\x97\n\x02\x9f\n\x03\x1aC\x20The\x20first\x20mess\ - age\x20of\x20each\x20stream\x20should\x20set\x20one\x20of\x20the\x20foll\ - owing.\n\n\r\n\x05\x04&\x08\0\x01\x12\x04\x97\n\x08\x15\n}\n\x04\x04&\ - \x02\0\x12\x04\x9a\n\x04\x19\x1ao\x20For\x20resumable\x20uploads.\x20Thi\ - s\x20should\x20be\x20the\x20`upload_id`\x20returned\x20from\x20a\n\x20ca\ - ll\x20to\x20`StartResumableWriteResponse`.\n\n\r\n\x05\x04&\x02\0\x05\ - \x12\x04\x9a\n\x04\n\n\r\n\x05\x04&\x02\0\x01\x12\x04\x9a\n\x0b\x14\n\r\ - \n\x05\x04&\x02\0\x03\x12\x04\x9a\n\x17\x18\n\x90\x01\n\x04\x04&\x02\x01\ - \x12\x04\x9e\n\x04,\x1a\x81\x01\x20For\x20non-resumable\x20uploads.\x20D\ - escribes\x20the\x20overall\x20upload,\x20including\x20the\n\x20destinati\ - on\x20bucket\x20and\x20object\x20name,\x20preconditions,\x20etc.\n\n\r\n\ - \x05\x04&\x02\x01\x06\x12\x04\x9e\n\x04\x14\n\r\n\x05\x04&\x02\x01\x01\ - \x12\x04\x9e\n\x15'\n\r\n\x05\x04&\x02\x01\x03\x12\x04\x9e\n*+\n\xce\x04\ - \n\x04\x04&\x02\x02\x12\x04\xae\n\x02B\x1a\xbf\x04\x20Required.\x20The\ - \x20offset\x20from\x20the\x20beginning\x20of\x20the\x20object\x20at\x20w\ - hich\x20the\x20data\x20should\x20be\n\x20written.\n\n\x20In\x20the\x20fi\ - rst\x20`InsertObjectRequest`\x20of\x20a\x20`InsertObject()`\x20action,\ - \x20it\n\x20indicates\x20the\x20initial\x20offset\x20for\x20the\x20`Inse\ - rt()`\x20call.\x20The\x20value\x20**must**\x20be\n\x20equal\x20to\x20the\ - \x20`committed_size`\x20that\x20a\x20call\x20to\x20`QueryWriteStatus()`\ - \x20would\n\x20return\x20(0\x20if\x20this\x20is\x20the\x20first\x20write\ - \x20to\x20the\x20object).\n\n\x20On\x20subsequent\x20calls,\x20this\x20v\ - alue\x20**must**\x20be\x20no\x20larger\x20than\x20the\x20sum\x20of\x20th\ - e\n\x20first\x20`write_offset`\x20and\x20the\x20sizes\x20of\x20all\x20`d\ - ata`\x20chunks\x20sent\x20previously\x20on\n\x20this\x20stream.\n\n\x20A\ - n\x20incorrect\x20value\x20will\x20cause\x20an\x20error.\n\n\x0f\n\x05\ - \x04&\x02\x02\x04\x12\x06\xae\n\x02\x9f\n\x03\n\r\n\x05\x04&\x02\x02\x05\ - \x12\x04\xae\n\x02\x07\n\r\n\x05\x04&\x02\x02\x01\x12\x04\xae\n\x08\x14\ - \n\r\n\x05\x04&\x02\x02\x03\x12\x04\xae\n\x17\x18\n\r\n\x05\x04&\x02\x02\ - \x08\x12\x04\xae\n\x19A\n\x10\n\x08\x04&\x02\x02\x08\x9c\x08\0\x12\x04\ - \xae\n\x1a@\n7\n\x04\x04&\x08\x01\x12\x06\xb1\n\x02\xc3\n\x03\x1a'\x20A\ - \x20portion\x20of\x20the\x20data\x20for\x20the\x20object.\n\n\r\n\x05\ - \x04&\x08\x01\x01\x12\x04\xb1\n\x08\x0c\n\x96\x01\n\x04\x04&\x02\x03\x12\ - \x04\xb4\n\x04)\x1a\x87\x01\x20The\x20data\x20to\x20insert.\x20If\x20a\ - \x20crc32c\x20checksum\x20is\x20provided\x20that\x20doesn't\x20match\n\ - \x20the\x20checksum\x20computed\x20by\x20the\x20service,\x20the\x20reque\ - st\x20will\x20fail.\n\n\r\n\x05\x04&\x02\x03\x06\x12\x04\xb4\n\x04\x13\n\ - \r\n\x05\x04&\x02\x03\x01\x12\x04\xb4\n\x14$\n\r\n\x05\x04&\x02\x03\x03\ - \x12\x04\xb4\n'(\n\xdc\x05\n\x04\x04&\x02\x04\x12\x04\xc2\n\x04(\x1a\xcd\ - \x05\x20A\x20reference\x20to\x20an\x20existing\x20object.\x20This\x20can\ - \x20be\x20used\x20to\x20support\n\x20several\x20use\x20cases:\n\x20\x20\ - \x20-\x20Writing\x20a\x20sequence\x20of\x20data\x20buffers\x20supports\ - \x20the\x20basic\x20use\x20case\x20of\n\x20\x20\x20\x20\x20uploading\x20\ - a\x20complete\x20object,\x20chunk\x20by\x20chunk.\n\x20\x20\x20-\x20Writ\ - ing\x20a\x20sequence\x20of\x20references\x20to\x20existing\x20objects\ - \x20allows\x20an\n\x20\x20\x20\x20\x20object\x20to\x20be\x20composed\x20\ - from\x20a\x20collection\x20of\x20objects,\x20which\x20can\x20be\n\x20\ - \x20\x20\x20\x20used\x20to\x20support\x20parallel\x20object\x20writes.\n\ - \x20\x20\x20-\x20Writing\x20a\x20single\x20reference\x20with\x20a\x20giv\ - en\x20offset\x20and\x20size\x20can\x20be\x20used\n\x20\x20\x20\x20\x20to\ - \x20create\x20an\x20object\x20from\x20a\x20slice\x20of\x20an\x20existing\ - \x20object.\n\x20\x20\x20-\x20Writing\x20an\x20object\x20referencing\x20\ - a\x20object\x20slice\x20(created\x20as\x20noted\n\x20\x20\x20\x20\x20abo\ - ve)\x20followed\x20by\x20a\x20data\x20buffer\x20followed\x20by\x20anothe\ - r\x20object\n\x20\x20\x20\x20\x20slice\x20can\x20be\x20used\x20to\x20sup\ - port\x20delta\x20upload\x20functionality.\n\n\r\n\x05\x04&\x02\x04\x06\ - \x12\x04\xc2\n\x04\x19\n\r\n\x05\x04&\x02\x04\x01\x12\x04\xc2\n\x1a#\n\r\ - \n\x05\x04&\x02\x04\x03\x12\x04\xc2\n&'\n\xfd\x01\n\x04\x04&\x02\x05\x12\ - \x04\xc9\n\x02'\x1a\xee\x01\x20Checksums\x20for\x20the\x20complete\x20ob\ - ject.\x20If\x20the\x20checksums\x20computed\x20by\x20the\x20service\n\ - \x20don't\x20match\x20the\x20specifified\x20checksums\x20the\x20call\x20\ - will\x20fail.\x20May\x20only\x20be\n\x20provided\x20in\x20the\x20first\ - \x20or\x20last\x20request\x20(either\x20with\x20first_message,\x20or\n\ - \x20finish_write\x20set).\n\n\x0f\n\x05\x04&\x02\x05\x04\x12\x06\xc9\n\ - \x02\xc3\n\x03\n\r\n\x05\x04&\x02\x05\x06\x12\x04\xc9\n\x02\x11\n\r\n\ - \x05\x04&\x02\x05\x01\x12\x04\xc9\n\x12\"\n\r\n\x05\x04&\x02\x05\x03\x12\ - \x04\xc9\n%&\n\xd2\x02\n\x04\x04&\x02\x06\x12\x04\xd1\n\x02\x18\x1a\xc3\ - \x02\x20If\x20`true`,\x20this\x20indicates\x20that\x20the\x20write\x20is\ - \x20complete.\x20Sending\x20any\n\x20`InsertObjectRequest`s\x20subsequen\ - t\x20to\x20one\x20in\x20which\x20`finish_write`\x20is\x20`true`\n\x20wil\ - l\x20cause\x20an\x20error.\n\x20For\x20a\x20non-resumable\x20write\x20(w\ - here\x20the\x20upload_id\x20was\x20not\x20set\x20in\x20the\x20first\n\ - \x20message),\x20it\x20is\x20an\x20error\x20not\x20to\x20set\x20this\x20\ - field\x20in\x20the\x20final\x20message\x20of\x20the\n\x20stream.\n\n\x0f\ - \n\x05\x04&\x02\x06\x04\x12\x06\xd1\n\x02\xc9\n'\n\r\n\x05\x04&\x02\x06\ - \x05\x12\x04\xd1\n\x02\x06\n\r\n\x05\x04&\x02\x06\x01\x12\x04\xd1\n\x07\ - \x13\n\r\n\x05\x04&\x02\x06\x03\x12\x04\xd1\n\x16\x17\nX\n\x04\x04&\x02\ - \x07\x12\x04\xd4\n\x02=\x1aJ\x20A\x20set\x20of\x20parameters\x20common\ - \x20to\x20Storage\x20API\x20requests\x20concerning\x20an\x20object.\n\n\ - \x0f\n\x05\x04&\x02\x07\x04\x12\x06\xd4\n\x02\xd1\n\x18\n\r\n\x05\x04&\ - \x02\x07\x06\x12\x04\xd4\n\x02\x1b\n\r\n\x05\x04&\x02\x07\x01\x12\x04\ - \xd4\n\x1c8\n\r\n\x05\x04&\x02\x07\x03\x12\x04\xd4\n;<\nG\n\x04\x04&\x02\ - \x08\x12\x04\xd7\n\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\ - \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04&\x02\x08\ - \x04\x12\x06\xd7\n\x02\xd4\n=\n\r\n\x05\x04&\x02\x08\x06\x12\x04\xd7\n\ - \x02\x15\n\r\n\x05\x04&\x02\x08\x01\x12\x04\xd7\n\x16+\n\r\n\x05\x04&\ - \x02\x08\x03\x12\x04\xd7\n./\n0\n\x02\x04'\x12\x06\xdb\n\0\x84\x0b\x01\ - \x1a\"\x20Request\x20message\x20for\x20ListObjects.\n\n\x0b\n\x03\x04'\ - \x01\x12\x04\xdb\n\x08\x1a\nJ\n\x04\x04'\x02\0\x12\x04\xdd\n\x02=\x1a<\ - \x20Required.\x20Name\x20of\x20the\x20bucket\x20in\x20which\x20to\x20loo\ - k\x20for\x20objects.\n\n\x0f\n\x05\x04'\x02\0\x04\x12\x06\xdd\n\x02\xdb\ - \n\x1c\n\r\n\x05\x04'\x02\0\x05\x12\x04\xdd\n\x02\x08\n\r\n\x05\x04'\x02\ - \0\x01\x12\x04\xdd\n\t\x0f\n\r\n\x05\x04'\x02\0\x03\x12\x04\xdd\n\x12\ - \x13\n\r\n\x05\x04'\x02\0\x08\x12\x04\xdd\n\x14<\n\x10\n\x08\x04'\x02\0\ - \x08\x9c\x08\0\x12\x04\xdd\n\x15;\n\xd6\x02\n\x04\x04'\x02\x01\x12\x04\ - \xe5\n\x02\x17\x1a\xc7\x02\x20Returns\x20results\x20in\x20a\x20directory\ - -like\x20mode.\x20`items`\x20will\x20contain\n\x20only\x20objects\x20who\ - se\x20names,\x20aside\x20from\x20the\x20`prefix`,\x20do\x20not\n\x20cont\ - ain\x20`delimiter`.\x20Objects\x20whose\x20names,\x20aside\x20from\x20th\ - e\n\x20`prefix`,\x20contain\x20`delimiter`\x20will\x20have\x20their\x20n\ - ame,\n\x20truncated\x20after\x20the\x20`delimiter`,\x20returned\x20in\n\ - \x20`prefixes`.\x20Duplicate\x20`prefixes`\x20are\x20omitted.\n\n\x0f\n\ - \x05\x04'\x02\x01\x04\x12\x06\xe5\n\x02\xdd\n=\n\r\n\x05\x04'\x02\x01\ - \x05\x12\x04\xe5\n\x02\x08\n\r\n\x05\x04'\x02\x01\x01\x12\x04\xe5\n\t\ - \x12\n\r\n\x05\x04'\x02\x01\x03\x12\x04\xe5\n\x15\x16\n\x9b\x01\n\x04\ - \x04'\x02\x02\x12\x04\xea\n\x02&\x1a\x8c\x01\x20If\x20true,\x20objects\ - \x20that\x20end\x20in\x20exactly\x20one\x20instance\x20of\x20`delimiter`\ - \n\x20will\x20have\x20their\x20metadata\x20included\x20in\x20`items`\x20\ - in\x20addition\x20to\n\x20`prefixes`.\n\n\x0f\n\x05\x04'\x02\x02\x04\x12\ - \x06\xea\n\x02\xe5\n\x17\n\r\n\x05\x04'\x02\x02\x05\x12\x04\xea\n\x02\ - \x06\n\r\n\x05\x04'\x02\x02\x01\x12\x04\xea\n\x07!\n\r\n\x05\x04'\x02\ - \x02\x03\x12\x04\xea\n$%\n\x89\x02\n\x04\x04'\x02\x03\x12\x04\xf0\n\x02\ - \x18\x1a\xfa\x01\x20Maximum\x20number\x20of\x20`items`\x20plus\x20`prefi\ - xes`\x20to\x20return\n\x20in\x20a\x20single\x20page\x20of\x20responses.\ - \x20As\x20duplicate\x20`prefixes`\x20are\n\x20omitted,\x20fewer\x20total\ - \x20results\x20may\x20be\x20returned\x20than\x20requested.\x20The\x20ser\ - vice\n\x20will\x20use\x20this\x20parameter\x20or\x201,000\x20items,\x20w\ - hichever\x20is\x20smaller.\n\n\x0f\n\x05\x04'\x02\x03\x04\x12\x06\xf0\n\ - \x02\xea\n&\n\r\n\x05\x04'\x02\x03\x05\x12\x04\xf0\n\x02\x07\n\r\n\x05\ - \x04'\x02\x03\x01\x12\x04\xf0\n\x08\x13\n\r\n\x05\x04'\x02\x03\x03\x12\ - \x04\xf0\n\x16\x17\ni\n\x04\x04'\x02\x04\x12\x04\xf4\n\x02\x18\x1a[\x20A\ - \x20previously-returned\x20page\x20token\x20representing\x20part\x20of\ - \x20the\x20larger\x20set\x20of\n\x20results\x20to\x20view.\n\n\x0f\n\x05\ - \x04'\x02\x04\x04\x12\x06\xf4\n\x02\xf0\n\x18\n\r\n\x05\x04'\x02\x04\x05\ - \x12\x04\xf4\n\x02\x08\n\r\n\x05\x04'\x02\x04\x01\x12\x04\xf4\n\t\x13\n\ - \r\n\x05\x04'\x02\x04\x03\x12\x04\xf4\n\x16\x17\nM\n\x04\x04'\x02\x05\ - \x12\x04\xf7\n\x02\x14\x1a?\x20Filter\x20results\x20to\x20objects\x20who\ - se\x20names\x20begin\x20with\x20this\x20prefix.\n\n\x0f\n\x05\x04'\x02\ - \x05\x04\x12\x06\xf7\n\x02\xf4\n\x18\n\r\n\x05\x04'\x02\x05\x05\x12\x04\ - \xf7\n\x02\x08\n\r\n\x05\x04'\x02\x05\x01\x12\x04\xf7\n\t\x0f\n\r\n\x05\ - \x04'\x02\x05\x03\x12\x04\xf7\n\x12\x13\nB\n\x04\x04'\x02\x06\x12\x04\ - \xfa\n\x02(\x1a4\x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\ - \x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x04'\x02\x06\x04\x12\x06\xfa\n\x02\xf7\ - \n\x14\n\r\n\x05\x04'\x02\x06\x06\x12\x04\xfa\n\x02\x18\n\r\n\x05\x04'\ - \x02\x06\x01\x12\x04\xfa\n\x19#\n\r\n\x05\x04'\x02\x06\x03\x12\x04\xfa\n\ - &'\n\xd3\x01\n\x04\x04'\x02\x07\x12\x04\x80\x0b\x02\x14\x1a\xc4\x01\x20I\ - f\x20`true`,\x20lists\x20all\x20versions\x20of\x20an\x20object\x20as\x20\ - distinct\x20results.\n\x20The\x20default\x20is\x20`false`.\x20For\x20mor\ - e\x20information,\x20see\n\x20[Object\n\x20Versioning](https://cloud.goo\ - gle.com/storage/docs/object-versioning).\n\n\x0f\n\x05\x04'\x02\x07\x04\ - \x12\x06\x80\x0b\x02\xfa\n(\n\r\n\x05\x04'\x02\x07\x05\x12\x04\x80\x0b\ - \x02\x06\n\r\n\x05\x04'\x02\x07\x01\x12\x04\x80\x0b\x07\x0f\n\r\n\x05\ - \x04'\x02\x07\x03\x12\x04\x80\x0b\x12\x13\nG\n\x04\x04'\x02\x08\x12\x04\ - \x83\x0b\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ - l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04'\x02\x08\x04\x12\x06\ - \x83\x0b\x02\x80\x0b\x14\n\r\n\x05\x04'\x02\x08\x06\x12\x04\x83\x0b\x02\ - \x15\n\r\n\x05\x04'\x02\x08\x01\x12\x04\x83\x0b\x16+\n\r\n\x05\x04'\x02\ - \x08\x03\x12\x04\x83\x0b.0\nA\n\x02\x04(\x12\x06\x87\x0b\0\x91\x0b\x01\ - \x1a3\x20Request\x20object\x20for\x20`ByteStream.QueryWriteStatus`.\n\n\ - \x0b\n\x03\x04(\x01\x12\x04\x87\x0b\x08\x1f\nm\n\x04\x04(\x02\0\x12\x04\ - \x8a\x0b\x02@\x1a_\x20Required.\x20The\x20name\x20of\x20the\x20resume\ - \x20token\x20for\x20the\x20object\x20whose\x20write\x20status\x20is\x20b\ - eing\n\x20requested.\n\n\x0f\n\x05\x04(\x02\0\x04\x12\x06\x8a\x0b\x02\ - \x87\x0b!\n\r\n\x05\x04(\x02\0\x05\x12\x04\x8a\x0b\x02\x08\n\r\n\x05\x04\ - (\x02\0\x01\x12\x04\x8a\x0b\t\x12\n\r\n\x05\x04(\x02\0\x03\x12\x04\x8a\ - \x0b\x15\x16\n\r\n\x05\x04(\x02\0\x08\x12\x04\x8a\x0b\x17?\n\x10\n\x08\ - \x04(\x02\0\x08\x9c\x08\0\x12\x04\x8a\x0b\x18>\nX\n\x04\x04(\x02\x01\x12\ - \x04\x8d\x0b\x02=\x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20to\ - \x20Storage\x20API\x20requests\x20concerning\x20an\x20object.\n\n\x0f\n\ - \x05\x04(\x02\x01\x04\x12\x06\x8d\x0b\x02\x8a\x0b@\n\r\n\x05\x04(\x02\ - \x01\x06\x12\x04\x8d\x0b\x02\x1b\n\r\n\x05\x04(\x02\x01\x01\x12\x04\x8d\ - \x0b\x1c8\n\r\n\x05\x04(\x02\x01\x03\x12\x04\x8d\x0b;<\nG\n\x04\x04(\x02\ - \x02\x12\x04\x90\x0b\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\ - \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04(\x02\x02\ - \x04\x12\x06\x90\x0b\x02\x8d\x0b=\n\r\n\x05\x04(\x02\x02\x06\x12\x04\x90\ - \x0b\x02\x15\n\r\n\x05\x04(\x02\x02\x01\x12\x04\x90\x0b\x16+\n\r\n\x05\ - \x04(\x02\x02\x03\x12\x04\x90\x0b./\nB\n\x02\x04)\x12\x06\x94\x0b\0\x9b\ - \x0b\x01\x1a4\x20Response\x20object\x20for\x20`ByteStream.QueryWriteStat\ - us`.\n\n\x0b\n\x03\x04)\x01\x12\x04\x94\x0b\x08\x20\nR\n\x04\x04)\x02\0\ - \x12\x04\x96\x0b\x02\x1b\x1aD\x20The\x20number\x20of\x20bytes\x20that\ - \x20have\x20been\x20processed\x20for\x20the\x20given\x20object.\n\n\x0f\ - \n\x05\x04)\x02\0\x04\x12\x06\x96\x0b\x02\x94\x0b\"\n\r\n\x05\x04)\x02\0\ - \x05\x12\x04\x96\x0b\x02\x07\n\r\n\x05\x04)\x02\0\x01\x12\x04\x96\x0b\ - \x08\x16\n\r\n\x05\x04)\x02\0\x03\x12\x04\x96\x0b\x19\x1a\n\xa6\x01\n\ - \x04\x04)\x02\x01\x12\x04\x9a\x0b\x02\x14\x1a\x97\x01\x20`complete`\x20i\ - s\x20`true`\x20only\x20if\x20the\x20client\x20has\x20sent\x20a\x20`Inser\ - tObjectRequest`\n\x20with\x20`finish_write`\x20set\x20to\x20true,\x20and\ - \x20the\x20server\x20has\x20processed\x20that\x20request.\n\n\x0f\n\x05\ - \x04)\x02\x01\x04\x12\x06\x9a\x0b\x02\x96\x0b\x1b\n\r\n\x05\x04)\x02\x01\ - \x05\x12\x04\x9a\x0b\x02\x06\n\r\n\x05\x04)\x02\x01\x01\x12\x04\x9a\x0b\ - \x07\x0f\n\r\n\x05\x04)\x02\x01\x03\x12\x04\x9a\x0b\x12\x13\n2\n\x02\x04\ - *\x12\x06\x9e\x0b\0\x85\x0c\x01\x1a$\x20Request\x20message\x20for\x20Rew\ - riteObject.\n\n\x0b\n\x03\x04*\x01\x12\x04\x9e\x0b\x08\x1c\n\x91\x01\n\ - \x04\x04*\x02\0\x12\x04\xa1\x0b\x02I\x1a\x82\x01\x20Required.\x20Name\ - \x20of\x20the\x20bucket\x20in\x20which\x20to\x20store\x20the\x20new\x20o\ - bject.\x20Overrides\x20the\x20provided\n\x20object\x20metadata's\x20`buc\ - ket`\x20value,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\0\x04\x12\x06\xa1\ - \x0b\x02\x9e\x0b\x1e\n\r\n\x05\x04*\x02\0\x05\x12\x04\xa1\x0b\x02\x08\n\ - \r\n\x05\x04*\x02\0\x01\x12\x04\xa1\x0b\t\x1b\n\r\n\x05\x04*\x02\0\x03\ - \x12\x04\xa1\x0b\x1e\x1f\n\r\n\x05\x04*\x02\0\x08\x12\x04\xa1\x0b\x20H\n\ - \x10\n\x08\x04*\x02\0\x08\x9c\x08\0\x12\x04\xa1\x0b!G\n\xa7\x01\n\x04\ - \x04*\x02\x01\x12\x04\xa6\x0b\x02I\x1a\x98\x01\x20Required.\x20Name\x20o\ - f\x20the\x20new\x20object.\n\x20Required\x20when\x20the\x20object\x20met\ - adata\x20is\x20not\x20otherwise\x20provided.\x20Overrides\x20the\n\x20ob\ - ject\x20metadata's\x20`name`\x20value,\x20if\x20any.\n\n\x0f\n\x05\x04*\ - \x02\x01\x04\x12\x06\xa6\x0b\x02\xa1\x0bI\n\r\n\x05\x04*\x02\x01\x05\x12\ - \x04\xa6\x0b\x02\x08\n\r\n\x05\x04*\x02\x01\x01\x12\x04\xa6\x0b\t\x1b\n\ - \r\n\x05\x04*\x02\x01\x03\x12\x04\xa6\x0b\x1e\x1f\n\r\n\x05\x04*\x02\x01\ - \x08\x12\x04\xa6\x0b\x20H\n\x10\n\x08\x04*\x02\x01\x08\x9c\x08\0\x12\x04\ - \xa6\x0b!G\n\xf8\x01\n\x04\x04*\x02\x02\x12\x04\xac\x0b\x02&\x1a\xe9\x01\ - \x20Resource\x20name\x20of\x20the\x20Cloud\x20KMS\x20key,\x20of\x20the\ - \x20form\n\x20`projects/my-project/locations/my-location/keyRings/my-kr/\ - cryptoKeys/my-key`,\n\x20that\x20will\x20be\x20used\x20to\x20encrypt\x20\ - the\x20object.\x20Overrides\x20the\x20object\n\x20metadata's\x20`kms_key\ - _name`\x20value,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\x02\x04\x12\x06\ - \xac\x0b\x02\xa6\x0bI\n\r\n\x05\x04*\x02\x02\x05\x12\x04\xac\x0b\x02\x08\ - \n\r\n\x05\x04*\x02\x02\x01\x12\x04\xac\x0b\t!\n\r\n\x05\x04*\x02\x02\ - \x03\x12\x04\xac\x0b$%\nT\n\x04\x04*\x02\x03\x12\x04\xaf\x0b\x02A\x1aF\ - \x20Apply\x20a\x20predefined\x20set\x20of\x20access\x20controls\x20to\ - \x20the\x20destination\x20object.\n\n\x0f\n\x05\x04*\x02\x03\x04\x12\x06\ - \xaf\x0b\x02\xac\x0b&\n\r\n\x05\x04*\x02\x03\x06\x12\x04\xaf\x0b\x02!\n\ - \r\n\x05\x04*\x02\x03\x01\x12\x04\xaf\x0b\"<\n\r\n\x05\x04*\x02\x03\x03\ - \x12\x04\xaf\x0b?@\n\xd1\x01\n\x04\x04*\x02\x04\x12\x04\xb4\x0b\x025\x1a\ - \xc2\x01\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\ - \x20the\x20object's\x20current\x20generation\n\x20matches\x20the\x20give\ - n\x20value.\x20Setting\x20to\x200\x20makes\x20the\x20operation\x20succee\ - d\x20only\x20if\n\x20there\x20are\x20no\x20live\x20versions\x20of\x20the\ - \x20object.\n\n\x0f\n\x05\x04*\x02\x04\x04\x12\x06\xb4\x0b\x02\xaf\x0bA\ - \n\r\n\x05\x04*\x02\x04\x06\x12\x04\xb4\x0b\x02\x1c\n\r\n\x05\x04*\x02\ - \x04\x01\x12\x04\xb4\x0b\x1d0\n\r\n\x05\x04*\x02\x04\x03\x12\x04\xb4\x0b\ - 34\n\x88\x02\n\x04\x04*\x02\x05\x12\x04\xba\x0b\x029\x1a\xf9\x01\x20Make\ - s\x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\ - \x20current\x20generation\n\x20does\x20not\x20match\x20the\x20given\x20v\ - alue.\x20If\x20no\x20live\x20object\x20exists,\x20the\x20precondition\n\ - \x20fails.\x20Setting\x20to\x200\x20makes\x20the\x20operation\x20succeed\ - \x20only\x20if\x20there\x20is\x20a\x20live\n\x20version\x20of\x20the\x20\ - object.\n\n\x0f\n\x05\x04*\x02\x05\x04\x12\x06\xba\x0b\x02\xb4\x0b5\n\r\ - \n\x05\x04*\x02\x05\x06\x12\x04\xba\x0b\x02\x1c\n\r\n\x05\x04*\x02\x05\ - \x01\x12\x04\xba\x0b\x1d4\n\r\n\x05\x04*\x02\x05\x03\x12\x04\xba\x0b78\n\ - \x84\x01\n\x04\x04*\x02\x06\x12\x04\xbe\x0b\x029\x1av\x20Makes\x20the\ - \x20operation\x20conditional\x20on\x20whether\x20the\x20destination\x20o\ - bject's\x20current\n\x20metageneration\x20matches\x20the\x20given\x20val\ - ue.\n\n\x0f\n\x05\x04*\x02\x06\x04\x12\x06\xbe\x0b\x02\xba\x0b9\n\r\n\ - \x05\x04*\x02\x06\x06\x12\x04\xbe\x0b\x02\x1c\n\r\n\x05\x04*\x02\x06\x01\ - \x12\x04\xbe\x0b\x1d4\n\r\n\x05\x04*\x02\x06\x03\x12\x04\xbe\x0b78\n\x8b\ - \x01\n\x04\x04*\x02\x07\x12\x04\xc2\x0b\x02=\x1a}\x20Makes\x20the\x20ope\ - ration\x20conditional\x20on\x20whether\x20the\x20destination\x20object's\ - \x20current\n\x20metageneration\x20does\x20not\x20match\x20the\x20given\ - \x20value.\n\n\x0f\n\x05\x04*\x02\x07\x04\x12\x06\xc2\x0b\x02\xbe\x0b9\n\ - \r\n\x05\x04*\x02\x07\x06\x12\x04\xc2\x0b\x02\x1c\n\r\n\x05\x04*\x02\x07\ - \x01\x12\x04\xc2\x0b\x1d8\n\r\n\x05\x04*\x02\x07\x03\x12\x04\xc2\x0b;<\n\ - {\n\x04\x04*\x02\x08\x12\x04\xc6\x0b\x02<\x1am\x20Makes\x20the\x20operat\ - ion\x20conditional\x20on\x20whether\x20the\x20source\x20object's\x20curr\ - ent\n\x20generation\x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\ - \x04*\x02\x08\x04\x12\x06\xc6\x0b\x02\xc2\x0b=\n\r\n\x05\x04*\x02\x08\ - \x06\x12\x04\xc6\x0b\x02\x1c\n\r\n\x05\x04*\x02\x08\x01\x12\x04\xc6\x0b\ - \x1d7\n\r\n\x05\x04*\x02\x08\x03\x12\x04\xc6\x0b:;\n\x82\x01\n\x04\x04*\ - \x02\t\x12\x04\xca\x0b\x02A\x1at\x20Makes\x20the\x20operation\x20conditi\ - onal\x20on\x20whether\x20the\x20source\x20object's\x20current\n\x20gener\ - ation\x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\ - \x04*\x02\t\x04\x12\x06\xca\x0b\x02\xc6\x0b<\n\r\n\x05\x04*\x02\t\x06\ - \x12\x04\xca\x0b\x02\x1c\n\r\n\x05\x04*\x02\t\x01\x12\x04\xca\x0b\x1d;\n\ - \r\n\x05\x04*\x02\t\x03\x12\x04\xca\x0b>@\n\x7f\n\x04\x04*\x02\n\x12\x04\ - \xce\x0b\x02A\x1aq\x20Makes\x20the\x20operation\x20conditional\x20on\x20\ - whether\x20the\x20source\x20object's\x20current\n\x20metageneration\x20m\ - atches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04*\x02\n\x04\x12\x06\ - \xce\x0b\x02\xca\x0bA\n\r\n\x05\x04*\x02\n\x06\x12\x04\xce\x0b\x02\x1c\n\ - \r\n\x05\x04*\x02\n\x01\x12\x04\xce\x0b\x1d;\n\r\n\x05\x04*\x02\n\x03\ - \x12\x04\xce\x0b>@\n\x86\x01\n\x04\x04*\x02\x0b\x12\x04\xd2\x0b\x02E\x1a\ - x\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20the\ - \x20source\x20object's\x20current\n\x20metageneration\x20does\x20not\x20\ - match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04*\x02\x0b\x04\x12\x06\ - \xd2\x0b\x02\xce\x0bA\n\r\n\x05\x04*\x02\x0b\x06\x12\x04\xd2\x0b\x02\x1c\ - \n\r\n\x05\x04*\x02\x0b\x01\x12\x04\xd2\x0b\x1d?\n\r\n\x05\x04*\x02\x0b\ - \x03\x12\x04\xd2\x0bBD\n\xee\x03\n\x04\x04*\x02\x0c\x12\x04\xdc\x0b\x02*\ - \x1a\xdf\x03\x20The\x20maximum\x20number\x20of\x20bytes\x20that\x20will\ - \x20be\x20rewritten\x20per\x20rewrite\x20request.\n\x20Most\x20callers\n\ - \x20shouldn't\x20need\x20to\x20specify\x20this\x20parameter\x20-\x20it\ - \x20is\x20primarily\x20in\x20place\x20to\n\x20support\x20testing.\x20If\ - \x20specified\x20the\x20value\x20must\x20be\x20an\x20integral\x20multipl\ - e\x20of\n\x201\x20MiB\x20(1048576).\x20Also,\x20this\x20only\x20applies\ - \x20to\x20requests\x20where\x20the\x20source\x20and\n\x20destination\x20\ - span\x20locations\x20and/or\x20storage\x20classes.\x20Finally,\x20this\ - \x20value\x20must\n\x20not\x20change\x20across\x20rewrite\x20calls\x20el\ - se\x20you'll\x20get\x20an\x20error\x20that\x20the\n\x20`rewriteToken`\ - \x20is\x20invalid.\n\n\x0f\n\x05\x04*\x02\x0c\x04\x12\x06\xdc\x0b\x02\ - \xd2\x0bE\n\r\n\x05\x04*\x02\x0c\x05\x12\x04\xdc\x0b\x02\x07\n\r\n\x05\ - \x04*\x02\x0c\x01\x12\x04\xdc\x0b\x08$\n\r\n\x05\x04*\x02\x0c\x03\x12\ - \x04\xdc\x0b')\n\x9a\x01\n\x04\x04*\x02\r\x12\x04\xe1\x0b\x02)\x1a\x8b\ - \x01\x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\x20to\x20`N\ - O_ACL`,\x20unless\x20the\n\x20object\x20resource\x20specifies\x20the\x20\ - `acl`\x20property,\x20when\x20it\x20defaults\n\x20to\x20`full`.\n\n\x0f\ - \n\x05\x04*\x02\r\x04\x12\x06\xe1\x0b\x02\xdc\x0b*\n\r\n\x05\x04*\x02\r\ - \x06\x12\x04\xe1\x0b\x02\x18\n\r\n\x05\x04*\x02\r\x01\x12\x04\xe1\x0b\ - \x19#\n\r\n\x05\x04*\x02\r\x03\x12\x04\xe1\x0b&(\n\xc8\x02\n\x04\x04*\ - \x02\x0e\x12\x04\xe8\x0b\x02\x1c\x1a\xb9\x02\x20Include\x20this\x20field\ - \x20(from\x20the\x20previous\x20rewrite\x20response)\x20on\x20each\x20re\ - write\n\x20request\x20after\x20the\x20first\x20one,\x20until\x20the\x20r\ - ewrite\x20response\x20'done'\x20flag\x20is\n\x20true.\x20Calls\x20that\ - \x20provide\x20a\x20rewriteToken\x20can\x20omit\x20all\x20other\x20reque\ - st\x20fields,\n\x20but\x20if\x20included\x20those\x20fields\x20must\x20m\ - atch\x20the\x20values\x20provided\x20in\x20the\x20first\n\x20rewrite\x20\ - request.\n\n\x0f\n\x05\x04*\x02\x0e\x04\x12\x06\xe8\x0b\x02\xe1\x0b)\n\r\ - \n\x05\x04*\x02\x0e\x05\x12\x04\xe8\x0b\x02\x08\n\r\n\x05\x04*\x02\x0e\ - \x01\x12\x04\xe8\x0b\t\x16\n\r\n\x05\x04*\x02\x0e\x03\x12\x04\xe8\x0b\ - \x19\x1b\nP\n\x04\x04*\x02\x0f\x12\x04\xeb\x0b\x02E\x1aB\x20Required.\ - \x20Name\x20of\x20the\x20bucket\x20in\x20which\x20to\x20find\x20the\x20s\ - ource\x20object.\n\n\x0f\n\x05\x04*\x02\x0f\x04\x12\x06\xeb\x0b\x02\xe8\ - \x0b\x1c\n\r\n\x05\x04*\x02\x0f\x05\x12\x04\xeb\x0b\x02\x08\n\r\n\x05\ - \x04*\x02\x0f\x01\x12\x04\xeb\x0b\t\x16\n\r\n\x05\x04*\x02\x0f\x03\x12\ - \x04\xeb\x0b\x19\x1b\n\r\n\x05\x04*\x02\x0f\x08\x12\x04\xeb\x0b\x1cD\n\ - \x10\n\x08\x04*\x02\x0f\x08\x9c\x08\0\x12\x04\xeb\x0b\x1dC\n4\n\x04\x04*\ - \x02\x10\x12\x04\xee\x0b\x02E\x1a&\x20Required.\x20Name\x20of\x20the\x20\ - source\x20object.\n\n\x0f\n\x05\x04*\x02\x10\x04\x12\x06\xee\x0b\x02\xeb\ - \x0bE\n\r\n\x05\x04*\x02\x10\x05\x12\x04\xee\x0b\x02\x08\n\r\n\x05\x04*\ - \x02\x10\x01\x12\x04\xee\x0b\t\x16\n\r\n\x05\x04*\x02\x10\x03\x12\x04\ - \xee\x0b\x19\x1b\n\r\n\x05\x04*\x02\x10\x08\x12\x04\xee\x0b\x1cD\n\x10\n\ - \x08\x04*\x02\x10\x08\x9c\x08\0\x12\x04\xee\x0b\x1dC\n~\n\x04\x04*\x02\ - \x11\x12\x04\xf2\x0b\x02\x1f\x1ap\x20If\x20present,\x20selects\x20a\x20s\ - pecific\x20revision\x20of\x20the\x20source\x20object\x20(as\x20opposed\ - \x20to\n\x20the\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\ - \x04*\x02\x11\x04\x12\x06\xf2\x0b\x02\xee\x0bE\n\r\n\x05\x04*\x02\x11\ - \x05\x12\x04\xf2\x0b\x02\x07\n\r\n\x05\x04*\x02\x11\x01\x12\x04\xf2\x0b\ - \x08\x19\n\r\n\x05\x04*\x02\x11\x03\x12\x04\xf2\x0b\x1c\x1e\nC\n\x04\x04\ - *\x02\x12\x12\x04\xf5\x0b\x02\x15\x1a5\x20Properties\x20of\x20the\x20des\ - tination,\x20post-rewrite\x20object.\n\n\x0f\n\x05\x04*\x02\x12\x04\x12\ - \x06\xf5\x0b\x02\xf2\x0b\x1f\n\r\n\x05\x04*\x02\x12\x06\x12\x04\xf5\x0b\ - \x02\x08\n\r\n\x05\x04*\x02\x12\x01\x12\x04\xf5\x0b\t\x0f\n\r\n\x05\x04*\ - \x02\x12\x03\x12\x04\xf5\x0b\x12\x14\nH\n\x04\x04*\x02\x13\x12\x04\xf8\ - \x0b\x02/\x1a:\x20The\x20algorithm\x20used\x20to\x20encrypt\x20the\x20so\ - urce\x20object,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\x13\x04\x12\x06\xf8\ - \x0b\x02\xf5\x0b\x15\n\r\n\x05\x04*\x02\x13\x05\x12\x04\xf8\x0b\x02\x08\ - \n\r\n\x05\x04*\x02\x13\x01\x12\x04\xf8\x0b\t)\n\r\n\x05\x04*\x02\x13\ - \x03\x12\x04\xf8\x0b,.\nM\n\x04\x04*\x02\x14\x12\x04\xfb\x0b\x02)\x1a?\ - \x20The\x20encryption\x20key\x20used\x20to\x20encrypt\x20the\x20source\ - \x20object,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\x14\x04\x12\x06\xfb\x0b\ - \x02\xf8\x0b/\n\r\n\x05\x04*\x02\x14\x05\x12\x04\xfb\x0b\x02\x08\n\r\n\ - \x05\x04*\x02\x14\x01\x12\x04\xfb\x0b\t#\n\r\n\x05\x04*\x02\x14\x03\x12\ - \x04\xfb\x0b&(\nV\n\x04\x04*\x02\x15\x12\x04\xfe\x0b\x020\x1aH\x20The\ - \x20SHA-256\x20hash\x20of\x20the\x20key\x20used\x20to\x20encrypt\x20the\ - \x20source\x20object,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\x15\x04\x12\ - \x06\xfe\x0b\x02\xfb\x0b)\n\r\n\x05\x04*\x02\x15\x05\x12\x04\xfe\x0b\x02\ - \x08\n\r\n\x05\x04*\x02\x15\x01\x12\x04\xfe\x0b\t*\n\r\n\x05\x04*\x02\ - \x15\x03\x12\x04\xfe\x0b-/\nX\n\x04\x04*\x02\x16\x12\x04\x81\x0c\x02>\ - \x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20to\x20Storage\x20API\ - \x20requests\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04*\x02\x16\ - \x04\x12\x06\x81\x0c\x02\xfe\x0b0\n\r\n\x05\x04*\x02\x16\x06\x12\x04\x81\ - \x0c\x02\x1b\n\r\n\x05\x04*\x02\x16\x01\x12\x04\x81\x0c\x1c8\n\r\n\x05\ - \x04*\x02\x16\x03\x12\x04\x81\x0c;=\nG\n\x04\x04*\x02\x17\x12\x04\x84\ - \x0c\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\ - \x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04*\x02\x17\x04\x12\x06\ - \x84\x0c\x02\x81\x0c>\n\r\n\x05\x04*\x02\x17\x06\x12\x04\x84\x0c\x02\x15\ - \n\r\n\x05\x04*\x02\x17\x01\x12\x04\x84\x0c\x16+\n\r\n\x05\x04*\x02\x17\ - \x03\x12\x04\x84\x0c.0\n#\n\x02\x04+\x12\x06\x88\x0c\0\x9c\x0c\x01\x1a\ - \x15\x20A\x20rewrite\x20response.\n\n\x0b\n\x03\x04+\x01\x12\x04\x88\x0c\ - \x08\x17\n\xa9\x01\n\x04\x04+\x02\0\x12\x04\x8b\x0c\x02\"\x1a\x9a\x01\ - \x20The\x20total\x20bytes\x20written\x20so\x20far,\x20which\x20can\x20be\ - \x20used\x20to\x20provide\x20a\x20waiting\x20user\n\x20with\x20a\x20prog\ - ress\x20indicator.\x20This\x20property\x20is\x20always\x20present\x20in\ - \x20the\x20response.\n\n\x0f\n\x05\x04+\x02\0\x04\x12\x06\x8b\x0c\x02\ - \x88\x0c\x19\n\r\n\x05\x04+\x02\0\x05\x12\x04\x8b\x0c\x02\x07\n\r\n\x05\ - \x04+\x02\0\x01\x12\x04\x8b\x0c\x08\x1d\n\r\n\x05\x04+\x02\0\x03\x12\x04\ - \x8b\x0c\x20!\nu\n\x04\x04+\x02\x01\x12\x04\x8f\x0c\x02\x18\x1ag\x20The\ - \x20total\x20size\x20of\x20the\x20object\x20being\x20copied\x20in\x20byt\ - es.\x20This\x20property\x20is\x20always\n\x20present\x20in\x20the\x20res\ - ponse.\n\n\x0f\n\x05\x04+\x02\x01\x04\x12\x06\x8f\x0c\x02\x8b\x0c\"\n\r\ - \n\x05\x04+\x02\x01\x05\x12\x04\x8f\x0c\x02\x07\n\r\n\x05\x04+\x02\x01\ - \x01\x12\x04\x8f\x0c\x08\x13\n\r\n\x05\x04+\x02\x01\x03\x12\x04\x8f\x0c\ - \x16\x17\n\x91\x01\n\x04\x04+\x02\x02\x12\x04\x93\x0c\x02\x10\x1a\x82\ - \x01\x20`true`\x20if\x20the\x20copy\x20is\x20finished;\x20otherwise,\x20\ - `false`\x20if\n\x20the\x20copy\x20is\x20in\x20progress.\x20This\x20prope\ - rty\x20is\x20always\x20present\x20in\x20the\x20response.\n\n\x0f\n\x05\ - \x04+\x02\x02\x04\x12\x06\x93\x0c\x02\x8f\x0c\x18\n\r\n\x05\x04+\x02\x02\ - \x05\x12\x04\x93\x0c\x02\x06\n\r\n\x05\x04+\x02\x02\x01\x12\x04\x93\x0c\ - \x07\x0b\n\r\n\x05\x04+\x02\x02\x03\x12\x04\x93\x0c\x0e\x0f\n\x9d\x01\n\ - \x04\x04+\x02\x03\x12\x04\x97\x0c\x02\x1b\x1a\x8e\x01\x20A\x20token\x20t\ - o\x20use\x20in\x20subsequent\x20requests\x20to\x20continue\x20copying\ - \x20data.\x20This\x20token\n\x20is\x20present\x20in\x20the\x20response\ - \x20only\x20when\x20there\x20is\x20more\x20data\x20to\x20copy.\n\n\x0f\n\ - \x05\x04+\x02\x03\x04\x12\x06\x97\x0c\x02\x93\x0c\x10\n\r\n\x05\x04+\x02\ - \x03\x05\x12\x04\x97\x0c\x02\x08\n\r\n\x05\x04+\x02\x03\x01\x12\x04\x97\ - \x0c\t\x16\n\r\n\x05\x04+\x02\x03\x03\x12\x04\x97\x0c\x19\x1a\n\x94\x01\ - \n\x04\x04+\x02\x04\x12\x04\x9b\x0c\x02\x16\x1a\x85\x01\x20A\x20resource\ - \x20containing\x20the\x20metadata\x20for\x20the\x20copied-to\x20object.\ - \x20This\x20property\n\x20is\x20present\x20in\x20the\x20response\x20only\ - \x20when\x20copying\x20completes.\n\n\x0f\n\x05\x04+\x02\x04\x04\x12\x06\ - \x9b\x0c\x02\x97\x0c\x1b\n\r\n\x05\x04+\x02\x04\x06\x12\x04\x9b\x0c\x02\ - \x08\n\r\n\x05\x04+\x02\x04\x01\x12\x04\x9b\x0c\t\x11\n\r\n\x05\x04+\x02\ - \x04\x03\x12\x04\x9b\x0c\x14\x15\n4\n\x02\x04,\x12\x06\x9f\x0c\0\xa8\x0c\ - \x01\x1a&\x20Request\x20message\x20StartResumableWrite.\n\n\x0b\n\x03\ - \x04,\x01\x12\x04\x9f\x0c\x08\"\n[\n\x04\x04,\x02\0\x12\x04\xa1\x0c\x02*\ - \x1aM\x20The\x20destination\x20bucket,\x20object,\x20and\x20metadata,\ - \x20as\x20well\x20as\x20any\x20preconditions.\n\n\x0f\n\x05\x04,\x02\0\ - \x04\x12\x06\xa1\x0c\x02\x9f\x0c$\n\r\n\x05\x04,\x02\0\x06\x12\x04\xa1\ - \x0c\x02\x12\n\r\n\x05\x04,\x02\0\x01\x12\x04\xa1\x0c\x13%\n\r\n\x05\x04\ - ,\x02\0\x03\x12\x04\xa1\x0c()\nX\n\x04\x04,\x02\x01\x12\x04\xa4\x0c\x02=\ - \x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20to\x20Storage\x20API\ - \x20requests\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04,\x02\x01\ - \x04\x12\x06\xa4\x0c\x02\xa1\x0c*\n\r\n\x05\x04,\x02\x01\x06\x12\x04\xa4\ - \x0c\x02\x1b\n\r\n\x05\x04,\x02\x01\x01\x12\x04\xa4\x0c\x1c8\n\r\n\x05\ - \x04,\x02\x01\x03\x12\x04\xa4\x0c;<\nG\n\x04\x04,\x02\x02\x12\x04\xa7\ - \x0c\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\ - \x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04,\x02\x02\x04\x12\x06\ - \xa7\x0c\x02\xa4\x0c=\n\r\n\x05\x04,\x02\x02\x06\x12\x04\xa7\x0c\x02\x15\ - \n\r\n\x05\x04,\x02\x02\x01\x12\x04\xa7\x0c\x16+\n\r\n\x05\x04,\x02\x02\ - \x03\x12\x04\xa7\x0c./\nC\n\x02\x04-\x12\x06\xab\x0c\0\xaf\x0c\x01\x1a5\ - \x20Response\x20object\x20for\x20ByteStream.StartResumableWrite.\n\n\x0b\ - \n\x03\x04-\x01\x12\x04\xab\x0c\x08#\n\x9b\x01\n\x04\x04-\x02\0\x12\x04\ - \xae\x0c\x02\x17\x1a\x8c\x01\x20The\x20upload_id\x20of\x20the\x20newly\ - \x20started\x20resumable\x20write\x20operation.\x20This\n\x20value\x20sh\ - ould\x20be\x20copied\x20into\x20the\x20`InsertObjectRequest.upload_id`\ - \x20field.\n\n\x0f\n\x05\x04-\x02\0\x04\x12\x06\xae\x0c\x02\xab\x0c%\n\r\ - \n\x05\x04-\x02\0\x05\x12\x04\xae\x0c\x02\x08\n\r\n\x05\x04-\x02\0\x01\ - \x12\x04\xae\x0c\t\x12\n\r\n\x05\x04-\x02\0\x03\x12\x04\xae\x0c\x15\x16\ - \n0\n\x02\x04.\x12\x06\xb2\x0c\0\xea\x0c\x01\x1a\"\x20Request\x20message\ - \x20for\x20PatchObject.\n\n\x0b\n\x03\x04.\x01\x12\x04\xb2\x0c\x08\x1a\n\ - I\n\x04\x04.\x02\0\x12\x04\xb4\x0c\x02=\x1a;\x20Required.\x20Name\x20of\ - \x20the\x20bucket\x20in\x20which\x20the\x20object\x20resides.\n\n\x0f\n\ - \x05\x04.\x02\0\x04\x12\x06\xb4\x0c\x02\xb2\x0c\x1c\n\r\n\x05\x04.\x02\0\ - \x05\x12\x04\xb4\x0c\x02\x08\n\r\n\x05\x04.\x02\0\x01\x12\x04\xb4\x0c\t\ - \x0f\n\r\n\x05\x04.\x02\0\x03\x12\x04\xb4\x0c\x12\x13\n\r\n\x05\x04.\x02\ - \0\x08\x12\x04\xb4\x0c\x14<\n\x10\n\x08\x04.\x02\0\x08\x9c\x08\0\x12\x04\ - \xb4\x0c\x15;\n-\n\x04\x04.\x02\x01\x12\x04\xb7\x0c\x02=\x1a\x1f\x20Requ\ - ired.\x20Name\x20of\x20the\x20object.\n\n\x0f\n\x05\x04.\x02\x01\x04\x12\ - \x06\xb7\x0c\x02\xb4\x0c=\n\r\n\x05\x04.\x02\x01\x05\x12\x04\xb7\x0c\x02\ - \x08\n\r\n\x05\x04.\x02\x01\x01\x12\x04\xb7\x0c\t\x0f\n\r\n\x05\x04.\x02\ - \x01\x03\x12\x04\xb7\x0c\x12\x13\n\r\n\x05\x04.\x02\x01\x08\x12\x04\xb7\ - \x0c\x14<\n\x10\n\x08\x04.\x02\x01\x08\x9c\x08\0\x12\x04\xb7\x0c\x15;\nx\ - \n\x04\x04.\x02\x02\x12\x04\xbb\x0c\x02\x17\x1aj\x20If\x20present,\x20se\ - lects\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\x20opp\ - osed\x20to\x20the\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\ - \x05\x04.\x02\x02\x04\x12\x06\xbb\x0c\x02\xb7\x0c=\n\r\n\x05\x04.\x02\ - \x02\x05\x12\x04\xbb\x0c\x02\x07\n\r\n\x05\x04.\x02\x02\x01\x12\x04\xbb\ - \x0c\x08\x12\n\r\n\x05\x04.\x02\x02\x03\x12\x04\xbb\x0c\x15\x16\n\xd1\ - \x01\n\x04\x04.\x02\x03\x12\x04\xc0\x0c\x025\x1a\xc2\x01\x20Makes\x20the\ - \x20operation\x20conditional\x20on\x20whether\x20the\x20object's\x20curr\ - ent\x20generation\n\x20matches\x20the\x20given\x20value.\x20Setting\x20t\ - o\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\x20there\ - \x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\x0f\n\x05\ - \x04.\x02\x03\x04\x12\x06\xc0\x0c\x02\xbb\x0c\x17\n\r\n\x05\x04.\x02\x03\ - \x06\x12\x04\xc0\x0c\x02\x1c\n\r\n\x05\x04.\x02\x03\x01\x12\x04\xc0\x0c\ - \x1d0\n\r\n\x05\x04.\x02\x03\x03\x12\x04\xc0\x0c34\n\x88\x02\n\x04\x04.\ - \x02\x04\x12\x04\xc6\x0c\x029\x1a\xf9\x01\x20Makes\x20the\x20operation\ - \x20conditional\x20on\x20whether\x20the\x20object's\x20current\x20genera\ - tion\n\x20does\x20not\x20match\x20the\x20given\x20value.\x20If\x20no\x20\ - live\x20object\x20exists,\x20the\x20precondition\n\x20fails.\x20Setting\ - \x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\x20the\ - re\x20is\x20a\x20live\n\x20version\x20of\x20the\x20object.\n\n\x0f\n\x05\ - \x04.\x02\x04\x04\x12\x06\xc6\x0c\x02\xc0\x0c5\n\r\n\x05\x04.\x02\x04\ - \x06\x12\x04\xc6\x0c\x02\x1c\n\r\n\x05\x04.\x02\x04\x01\x12\x04\xc6\x0c\ - \x1d4\n\r\n\x05\x04.\x02\x04\x03\x12\x04\xc6\x0c78\nx\n\x04\x04.\x02\x05\ - \x12\x04\xca\x0c\x029\x1aj\x20Makes\x20the\x20operation\x20conditional\ - \x20on\x20whether\x20the\x20object's\x20current\n\x20metageneration\x20m\ - atches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04.\x02\x05\x04\x12\x06\ - \xca\x0c\x02\xc6\x0c9\n\r\n\x05\x04.\x02\x05\x06\x12\x04\xca\x0c\x02\x1c\ - \n\r\n\x05\x04.\x02\x05\x01\x12\x04\xca\x0c\x1d4\n\r\n\x05\x04.\x02\x05\ - \x03\x12\x04\xca\x0c78\n\x7f\n\x04\x04.\x02\x06\x12\x04\xce\x0c\x02=\x1a\ - q\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20the\ - \x20object's\x20current\n\x20metageneration\x20does\x20not\x20match\x20t\ - he\x20given\x20value.\n\n\x0f\n\x05\x04.\x02\x06\x04\x12\x06\xce\x0c\x02\ - \xca\x0c9\n\r\n\x05\x04.\x02\x06\x06\x12\x04\xce\x0c\x02\x1c\n\r\n\x05\ - \x04.\x02\x06\x01\x12\x04\xce\x0c\x1d8\n\r\n\x05\x04.\x02\x06\x03\x12\ - \x04\xce\x0c;<\nI\n\x04\x04.\x02\x07\x12\x04\xd1\x0c\x025\x1a;\x20Apply\ - \x20a\x20predefined\x20set\x20of\x20access\x20controls\x20to\x20this\x20\ - object.\n\n\x0f\n\x05\x04.\x02\x07\x04\x12\x06\xd1\x0c\x02\xce\x0c=\n\r\ - \n\x05\x04.\x02\x07\x06\x12\x04\xd1\x0c\x02!\n\r\n\x05\x04.\x02\x07\x01\ - \x12\x04\xd1\x0c\"0\n\r\n\x05\x04.\x02\x07\x03\x12\x04\xd1\x0c34\n@\n\ - \x04\x04.\x02\x08\x12\x04\xd4\x0c\x02(\x1a2\x20Set\x20of\x20properties\ - \x20to\x20return.\x20Defaults\x20to\x20`FULL`.\n\n\x0f\n\x05\x04.\x02\ - \x08\x04\x12\x06\xd4\x0c\x02\xd1\x0c5\n\r\n\x05\x04.\x02\x08\x06\x12\x04\ - \xd4\x0c\x02\x18\n\r\n\x05\x04.\x02\x08\x01\x12\x04\xd4\x0c\x19#\n\r\n\ - \x05\x04.\x02\x08\x03\x12\x04\xd4\x0c&'\n1\n\x04\x04.\x02\t\x12\x04\xd7\ - \x0c\x02\x17\x1a#\x20The\x20Object\x20metadata\x20for\x20updating.\n\n\ - \x0f\n\x05\x04.\x02\t\x04\x12\x06\xd7\x0c\x02\xd4\x0c(\n\r\n\x05\x04.\ - \x02\t\x06\x12\x04\xd7\x0c\x02\x08\n\r\n\x05\x04.\x02\t\x01\x12\x04\xd7\ - \x0c\t\x11\n\r\n\x05\x04.\x02\t\x03\x12\x04\xd7\x0c\x14\x16\n\xbd\x03\n\ - \x04\x04.\x02\n\x12\x04\xe3\x0c\x02-\x1a\xae\x03\x20List\x20of\x20fields\ - \x20to\x20be\x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equiv\ - alent\x20to\x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20spec\ - ify\x20a\x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20\ - not\x20recommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20\ - at\x20a\x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\ - \x20the\x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field'\ - s\x20value.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20err\ - or.\n\x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20\ - field\x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\ - \n\x05\x04.\x02\n\x04\x12\x06\xe3\x0c\x02\xd7\x0c\x17\n\r\n\x05\x04.\x02\ - \n\x06\x12\x04\xe3\x0c\x02\x1b\n\r\n\x05\x04.\x02\n\x01\x12\x04\xe3\x0c\ - \x1c'\n\r\n\x05\x04.\x02\n\x03\x12\x04\xe3\x0c*,\nX\n\x04\x04.\x02\x0b\ - \x12\x04\xe6\x0c\x02>\x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20\ - to\x20Storage\x20API\x20requests\x20concerning\x20an\x20object.\n\n\x0f\ - \n\x05\x04.\x02\x0b\x04\x12\x06\xe6\x0c\x02\xe3\x0c-\n\r\n\x05\x04.\x02\ - \x0b\x06\x12\x04\xe6\x0c\x02\x1b\n\r\n\x05\x04.\x02\x0b\x01\x12\x04\xe6\ - \x0c\x1c8\n\r\n\x05\x04.\x02\x0b\x03\x12\x04\xe6\x0c;=\nG\n\x04\x04.\x02\ - \x0c\x12\x04\xe9\x0c\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\ - \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04.\x02\x0c\ - \x04\x12\x06\xe9\x0c\x02\xe6\x0c>\n\r\n\x05\x04.\x02\x0c\x06\x12\x04\xe9\ - \x0c\x02\x15\n\r\n\x05\x04.\x02\x0c\x01\x12\x04\xe9\x0c\x16+\n\r\n\x05\ - \x04.\x02\x0c\x03\x12\x04\xe9\x0c.0\n1\n\x02\x04/\x12\x06\xed\x0c\0\x99\ - \r\x01\x1a#\x20Request\x20message\x20for\x20UpdateObject.\n\n\x0b\n\x03\ - \x04/\x01\x12\x04\xed\x0c\x08\x1b\nI\n\x04\x04/\x02\0\x12\x04\xef\x0c\ - \x02=\x1a;\x20Required.\x20Name\x20of\x20the\x20bucket\x20in\x20which\ - \x20the\x20object\x20resides.\n\n\x0f\n\x05\x04/\x02\0\x04\x12\x06\xef\ - \x0c\x02\xed\x0c\x1d\n\r\n\x05\x04/\x02\0\x05\x12\x04\xef\x0c\x02\x08\n\ - \r\n\x05\x04/\x02\0\x01\x12\x04\xef\x0c\t\x0f\n\r\n\x05\x04/\x02\0\x03\ - \x12\x04\xef\x0c\x12\x13\n\r\n\x05\x04/\x02\0\x08\x12\x04\xef\x0c\x14<\n\ - \x10\n\x08\x04/\x02\0\x08\x9c\x08\0\x12\x04\xef\x0c\x15;\n-\n\x04\x04/\ - \x02\x01\x12\x04\xf2\x0c\x02=\x1a\x1f\x20Required.\x20Name\x20of\x20the\ - \x20object.\n\n\x0f\n\x05\x04/\x02\x01\x04\x12\x06\xf2\x0c\x02\xef\x0c=\ - \n\r\n\x05\x04/\x02\x01\x05\x12\x04\xf2\x0c\x02\x08\n\r\n\x05\x04/\x02\ - \x01\x01\x12\x04\xf2\x0c\t\x0f\n\r\n\x05\x04/\x02\x01\x03\x12\x04\xf2\ - \x0c\x12\x13\n\r\n\x05\x04/\x02\x01\x08\x12\x04\xf2\x0c\x14<\n\x10\n\x08\ - \x04/\x02\x01\x08\x9c\x08\0\x12\x04\xf2\x0c\x15;\nx\n\x04\x04/\x02\x02\ - \x12\x04\xf6\x0c\x02\x17\x1aj\x20If\x20present,\x20selects\x20a\x20speci\ - fic\x20revision\x20of\x20this\x20object\x20(as\x20opposed\x20to\x20the\n\ - \x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\x04/\x02\x02\ - \x04\x12\x06\xf6\x0c\x02\xf2\x0c=\n\r\n\x05\x04/\x02\x02\x05\x12\x04\xf6\ - \x0c\x02\x07\n\r\n\x05\x04/\x02\x02\x01\x12\x04\xf6\x0c\x08\x12\n\r\n\ - \x05\x04/\x02\x02\x03\x12\x04\xf6\x0c\x15\x16\n\xd1\x01\n\x04\x04/\x02\ - \x03\x12\x04\xfb\x0c\x025\x1a\xc2\x01\x20Makes\x20the\x20operation\x20co\ - nditional\x20on\x20whether\x20the\x20object's\x20current\x20generation\n\ - \x20matches\x20the\x20given\x20value.\x20Setting\x20to\x200\x20makes\x20\ - the\x20operation\x20succeed\x20only\x20if\n\x20there\x20are\x20no\x20liv\ - e\x20versions\x20of\x20the\x20object.\n\n\x0f\n\x05\x04/\x02\x03\x04\x12\ - \x06\xfb\x0c\x02\xf6\x0c\x17\n\r\n\x05\x04/\x02\x03\x06\x12\x04\xfb\x0c\ - \x02\x1c\n\r\n\x05\x04/\x02\x03\x01\x12\x04\xfb\x0c\x1d0\n\r\n\x05\x04/\ - \x02\x03\x03\x12\x04\xfb\x0c34\n\x88\x02\n\x04\x04/\x02\x04\x12\x04\x81\ - \r\x029\x1a\xf9\x01\x20Makes\x20the\x20operation\x20conditional\x20on\ - \x20whether\x20the\x20object's\x20current\x20generation\n\x20does\x20not\ - \x20match\x20the\x20given\x20value.\x20If\x20no\x20live\x20object\x20exi\ - sts,\x20the\x20precondition\n\x20fails.\x20Setting\x20to\x200\x20makes\ - \x20the\x20operation\x20succeed\x20only\x20if\x20there\x20is\x20a\x20liv\ - e\n\x20version\x20of\x20the\x20object.\n\n\x0f\n\x05\x04/\x02\x04\x04\ - \x12\x06\x81\r\x02\xfb\x0c5\n\r\n\x05\x04/\x02\x04\x06\x12\x04\x81\r\x02\ - \x1c\n\r\n\x05\x04/\x02\x04\x01\x12\x04\x81\r\x1d4\n\r\n\x05\x04/\x02\ - \x04\x03\x12\x04\x81\r78\nx\n\x04\x04/\x02\x05\x12\x04\x85\r\x029\x1aj\ - \x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20\ - object's\x20current\n\x20metageneration\x20matches\x20the\x20given\x20va\ - lue.\n\n\x0f\n\x05\x04/\x02\x05\x04\x12\x06\x85\r\x02\x81\r9\n\r\n\x05\ - \x04/\x02\x05\x06\x12\x04\x85\r\x02\x1c\n\r\n\x05\x04/\x02\x05\x01\x12\ - \x04\x85\r\x1d4\n\r\n\x05\x04/\x02\x05\x03\x12\x04\x85\r78\n\x7f\n\x04\ - \x04/\x02\x06\x12\x04\x89\r\x02=\x1aq\x20Makes\x20the\x20operation\x20co\ - nditional\x20on\x20whether\x20the\x20object's\x20current\n\x20metagenera\ - tion\x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\ - /\x02\x06\x04\x12\x06\x89\r\x02\x85\r9\n\r\n\x05\x04/\x02\x06\x06\x12\ - \x04\x89\r\x02\x1c\n\r\n\x05\x04/\x02\x06\x01\x12\x04\x89\r\x1d8\n\r\n\ - \x05\x04/\x02\x06\x03\x12\x04\x89\r;<\nI\n\x04\x04/\x02\x07\x12\x04\x8c\ - \r\x025\x1a;\x20Apply\x20a\x20predefined\x20set\x20of\x20access\x20contr\ - ols\x20to\x20this\x20object.\n\n\x0f\n\x05\x04/\x02\x07\x04\x12\x06\x8c\ - \r\x02\x89\r=\n\r\n\x05\x04/\x02\x07\x06\x12\x04\x8c\r\x02!\n\r\n\x05\ - \x04/\x02\x07\x01\x12\x04\x8c\r\"0\n\r\n\x05\x04/\x02\x07\x03\x12\x04\ - \x8c\r34\n@\n\x04\x04/\x02\x08\x12\x04\x8f\r\x02(\x1a2\x20Set\x20of\x20p\ - roperties\x20to\x20return.\x20Defaults\x20to\x20`FULL`.\n\n\x0f\n\x05\ - \x04/\x02\x08\x04\x12\x06\x8f\r\x02\x8c\r5\n\r\n\x05\x04/\x02\x08\x06\ - \x12\x04\x8f\r\x02\x18\n\r\n\x05\x04/\x02\x08\x01\x12\x04\x8f\r\x19#\n\r\ - \n\x05\x04/\x02\x08\x03\x12\x04\x8f\r&'\n1\n\x04\x04/\x02\t\x12\x04\x92\ - \r\x02\x17\x1a#\x20The\x20Object\x20metadata\x20for\x20updating.\n\n\x0f\ - \n\x05\x04/\x02\t\x04\x12\x06\x92\r\x02\x8f\r(\n\r\n\x05\x04/\x02\t\x06\ - \x12\x04\x92\r\x02\x08\n\r\n\x05\x04/\x02\t\x01\x12\x04\x92\r\t\x11\n\r\ - \n\x05\x04/\x02\t\x03\x12\x04\x92\r\x14\x16\nX\n\x04\x04/\x02\n\x12\x04\ - \x95\r\x02>\x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20to\x20Stor\ - age\x20API\x20requests\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04/\ - \x02\n\x04\x12\x06\x95\r\x02\x92\r\x17\n\r\n\x05\x04/\x02\n\x06\x12\x04\ - \x95\r\x02\x1b\n\r\n\x05\x04/\x02\n\x01\x12\x04\x95\r\x1c8\n\r\n\x05\x04\ - /\x02\n\x03\x12\x04\x95\r;=\nG\n\x04\x04/\x02\x0b\x12\x04\x98\r\x021\x1a\ - 9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20A\ - PI\x20requests.\n\n\x0f\n\x05\x04/\x02\x0b\x04\x12\x06\x98\r\x02\x95\r>\ - \n\r\n\x05\x04/\x02\x0b\x06\x12\x04\x98\r\x02\x15\n\r\n\x05\x04/\x02\x0b\ - \x01\x12\x04\x98\r\x16+\n\r\n\x05\x04/\x02\x0b\x03\x12\x04\x98\r.0\n4\n\ - \x02\x040\x12\x06\x9c\r\0\xc8\r\x01\x1a&\x20Request\x20message\x20for\ - \x20WatchAllObjects.\n\n\x0b\n\x03\x040\x01\x12\x04\x9c\r\x08\x1e\n@\n\ - \x04\x040\x02\0\x12\x04\x9e\r\x02\x14\x1a2\x20Name\x20of\x20the\x20bucke\ - t\x20in\x20which\x20to\x20look\x20for\x20objects.\n\n\x0f\n\x05\x040\x02\ - \0\x04\x12\x06\x9e\r\x02\x9c\r\x20\n\r\n\x05\x040\x02\0\x05\x12\x04\x9e\ - \r\x02\x08\n\r\n\x05\x040\x02\0\x01\x12\x04\x9e\r\t\x0f\n\r\n\x05\x040\ - \x02\0\x03\x12\x04\x9e\r\x12\x13\n\xd3\x01\n\x04\x040\x02\x01\x12\x04\ - \xa4\r\x02\x14\x1a\xc4\x01\x20If\x20`true`,\x20lists\x20all\x20versions\ - \x20of\x20an\x20object\x20as\x20distinct\x20results.\n\x20The\x20default\ - \x20is\x20`false`.\x20For\x20more\x20information,\x20see\n\x20[Object\n\ - \x20Versioning](https://cloud.google.com/storage/docs/object-versioning)\ - .\n\n\x0f\n\x05\x040\x02\x01\x04\x12\x06\xa4\r\x02\x9e\r\x14\n\r\n\x05\ - \x040\x02\x01\x05\x12\x04\xa4\r\x02\x06\n\r\n\x05\x040\x02\x01\x01\x12\ - \x04\xa4\r\x07\x0f\n\r\n\x05\x040\x02\x01\x03\x12\x04\xa4\r\x12\x13\n\ - \xd6\x02\n\x04\x040\x02\x02\x12\x04\xac\r\x02\x17\x1a\xc7\x02\x20Returns\ - \x20results\x20in\x20a\x20directory-like\x20mode.\x20`items`\x20will\x20\ - contain\n\x20only\x20objects\x20whose\x20names,\x20aside\x20from\x20the\ - \x20`prefix`,\x20do\x20not\n\x20contain\x20`delimiter`.\x20Objects\x20wh\ - ose\x20names,\x20aside\x20from\x20the\n\x20`prefix`,\x20contain\x20`deli\ - miter`\x20will\x20have\x20their\x20name,\n\x20truncated\x20after\x20the\ - \x20`delimiter`,\x20returned\x20in\n\x20`prefixes`.\x20Duplicate\x20`pre\ - fixes`\x20are\x20omitted.\n\n\x0f\n\x05\x040\x02\x02\x04\x12\x06\xac\r\ - \x02\xa4\r\x14\n\r\n\x05\x040\x02\x02\x05\x12\x04\xac\r\x02\x08\n\r\n\ - \x05\x040\x02\x02\x01\x12\x04\xac\r\t\x12\n\r\n\x05\x040\x02\x02\x03\x12\ - \x04\xac\r\x15\x16\n\x89\x02\n\x04\x040\x02\x03\x12\x04\xb2\r\x02\x18\ - \x1a\xfa\x01\x20Maximum\x20number\x20of\x20`items`\x20plus\x20`prefixes`\ - \x20to\x20return\n\x20in\x20a\x20single\x20page\x20of\x20responses.\x20A\ - s\x20duplicate\x20`prefixes`\x20are\n\x20omitted,\x20fewer\x20total\x20r\ - esults\x20may\x20be\x20returned\x20than\x20requested.\x20The\x20service\ - \n\x20will\x20use\x20this\x20parameter\x20or\x201,000\x20items,\x20which\ - ever\x20is\x20smaller.\n\n\x0f\n\x05\x040\x02\x03\x04\x12\x06\xb2\r\x02\ - \xac\r\x17\n\r\n\x05\x040\x02\x03\x05\x12\x04\xb2\r\x02\x07\n\r\n\x05\ - \x040\x02\x03\x01\x12\x04\xb2\r\x08\x13\n\r\n\x05\x040\x02\x03\x03\x12\ - \x04\xb2\r\x16\x17\nM\n\x04\x040\x02\x04\x12\x04\xb5\r\x02\x14\x1a?\x20F\ - ilter\x20results\x20to\x20objects\x20whose\x20names\x20begin\x20with\x20\ - this\x20prefix.\n\n\x0f\n\x05\x040\x02\x04\x04\x12\x06\xb5\r\x02\xb2\r\ - \x18\n\r\n\x05\x040\x02\x04\x05\x12\x04\xb5\r\x02\x08\n\r\n\x05\x040\x02\ - \x04\x01\x12\x04\xb5\r\t\x0f\n\r\n\x05\x040\x02\x04\x03\x12\x04\xb5\r\ - \x12\x13\n\x9b\x01\n\x04\x040\x02\x05\x12\x04\xba\r\x02&\x1a\x8c\x01\x20\ - If\x20true,\x20objects\x20that\x20end\x20in\x20exactly\x20one\x20instanc\ - e\x20of\x20`delimiter`\n\x20will\x20have\x20their\x20metadata\x20include\ - d\x20in\x20`items`\x20in\x20addition\x20to\n\x20`prefixes`.\n\n\x0f\n\ - \x05\x040\x02\x05\x04\x12\x06\xba\r\x02\xb5\r\x14\n\r\n\x05\x040\x02\x05\ - \x05\x12\x04\xba\r\x02\x06\n\r\n\x05\x040\x02\x05\x01\x12\x04\xba\r\x07!\ - \n\r\n\x05\x040\x02\x05\x03\x12\x04\xba\r$%\ni\n\x04\x040\x02\x06\x12\ - \x04\xbe\r\x02\x18\x1a[\x20A\x20previously-returned\x20page\x20token\x20\ - representing\x20part\x20of\x20the\x20larger\x20set\x20of\n\x20results\ - \x20to\x20view.\n\n\x0f\n\x05\x040\x02\x06\x04\x12\x06\xbe\r\x02\xba\r&\ - \n\r\n\x05\x040\x02\x06\x05\x12\x04\xbe\r\x02\x08\n\r\n\x05\x040\x02\x06\ - \x01\x12\x04\xbe\r\t\x13\n\r\n\x05\x040\x02\x06\x03\x12\x04\xbe\r\x16\ - \x17\nB\n\x04\x040\x02\x07\x12\x04\xc1\r\x02(\x1a4\x20Set\x20of\x20prope\ - rties\x20to\x20return.\x20Defaults\x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x040\ - \x02\x07\x04\x12\x06\xc1\r\x02\xbe\r\x18\n\r\n\x05\x040\x02\x07\x06\x12\ - \x04\xc1\r\x02\x18\n\r\n\x05\x040\x02\x07\x01\x12\x04\xc1\r\x19#\n\r\n\ - \x05\x040\x02\x07\x03\x12\x04\xc1\r&'\n9\n\x04\x040\x02\x08\x12\x04\xc4\ - \r\x02\x17\x1a+\x20Properties\x20of\x20the\x20channel\x20to\x20be\x20ins\ - erted.\n\n\x0f\n\x05\x040\x02\x08\x04\x12\x06\xc4\r\x02\xc1\r(\n\r\n\x05\ - \x040\x02\x08\x06\x12\x04\xc4\r\x02\t\n\r\n\x05\x040\x02\x08\x01\x12\x04\ - \xc4\r\n\x11\n\r\n\x05\x040\x02\x08\x03\x12\x04\xc4\r\x14\x16\nG\n\x04\ - \x040\x02\t\x12\x04\xc7\r\x021\x1a9\x20A\x20set\x20of\x20parameters\x20c\ - ommon\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x040\x02\ - \t\x04\x12\x06\xc7\r\x02\xc4\r\x17\n\r\n\x05\x040\x02\t\x06\x12\x04\xc7\ - \r\x02\x15\n\r\n\x05\x040\x02\t\x01\x12\x04\xc7\r\x16+\n\r\n\x05\x040\ - \x02\t\x03\x12\x04\xc7\r.0\n=\n\x02\x041\x12\x06\xcb\r\0\xd1\r\x01\x1a/\ - \x20Request\x20message\x20for\x20GetProjectServiceAccount.\n\n\x0b\n\x03\ - \x041\x01\x12\x04\xcb\r\x08'\n%\n\x04\x041\x02\0\x12\x04\xcd\r\x02A\x1a\ - \x17\x20Required.\x20Project\x20ID.\n\n\x0f\n\x05\x041\x02\0\x04\x12\x06\ - \xcd\r\x02\xcb\r)\n\r\n\x05\x041\x02\0\x05\x12\x04\xcd\r\x02\x08\n\r\n\ - \x05\x041\x02\0\x01\x12\x04\xcd\r\t\x13\n\r\n\x05\x041\x02\0\x03\x12\x04\ - \xcd\r\x16\x17\n\r\n\x05\x041\x02\0\x08\x12\x04\xcd\r\x18@\n\x10\n\x08\ - \x041\x02\0\x08\x9c\x08\0\x12\x04\xcd\r\x19?\nG\n\x04\x041\x02\x01\x12\ - \x04\xd0\r\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20\ - all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x041\x02\x01\x04\x12\ - \x06\xd0\r\x02\xcd\rA\n\r\n\x05\x041\x02\x01\x06\x12\x04\xd0\r\x02\x15\n\ - \r\n\x05\x041\x02\x01\x01\x12\x04\xd0\r\x16+\n\r\n\x05\x041\x02\x01\x03\ - \x12\x04\xd0\r./\n\x0c\n\x02\x042\x12\x06\xd3\r\0\xdc\r\x01\n\x0b\n\x03\ - \x042\x01\x12\x04\xd3\r\x08\x1c\nT\n\x04\x042\x02\0\x12\x04\xd5\r\x02A\ - \x1aF\x20Required.\x20The\x20project\x20that\x20the\x20HMAC-owning\x20se\ - rvice\x20account\x20lives\x20in.\n\n\x0f\n\x05\x042\x02\0\x04\x12\x06\ - \xd5\r\x02\xd3\r\x1e\n\r\n\x05\x042\x02\0\x05\x12\x04\xd5\r\x02\x08\n\r\ - \n\x05\x042\x02\0\x01\x12\x04\xd5\r\t\x13\n\r\n\x05\x042\x02\0\x03\x12\ - \x04\xd5\r\x16\x17\n\r\n\x05\x042\x02\0\x08\x12\x04\xd5\r\x18@\n\x10\n\ - \x08\x042\x02\0\x08\x9c\x08\0\x12\x04\xd5\r\x19?\nE\n\x04\x042\x02\x01\ - \x12\x04\xd8\r\x02L\x1a7\x20Required.\x20The\x20service\x20account\x20to\ - \x20create\x20the\x20HMAC\x20for.\n\n\x0f\n\x05\x042\x02\x01\x04\x12\x06\ - \xd8\r\x02\xd5\rA\n\r\n\x05\x042\x02\x01\x05\x12\x04\xd8\r\x02\x08\n\r\n\ - \x05\x042\x02\x01\x01\x12\x04\xd8\r\t\x1e\n\r\n\x05\x042\x02\x01\x03\x12\ - \x04\xd8\r!\"\n\r\n\x05\x042\x02\x01\x08\x12\x04\xd8\r#K\n\x10\n\x08\x04\ - 2\x02\x01\x08\x9c\x08\0\x12\x04\xd8\r$J\nG\n\x04\x042\x02\x02\x12\x04\ - \xdb\r\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\ - \x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x042\x02\x02\x04\x12\x06\ - \xdb\r\x02\xd8\rL\n\r\n\x05\x042\x02\x02\x06\x12\x04\xdb\r\x02\x15\n\r\n\ - \x05\x042\x02\x02\x01\x12\x04\xdb\r\x16+\n\r\n\x05\x042\x02\x02\x03\x12\ - \x04\xdb\r./\n]\n\x02\x043\x12\x06\xdf\r\0\xe5\r\x01\x1aO\x20Create\x20h\ - mac\x20response.\x20\x20The\x20only\x20time\x20the\x20secret\x20for\x20a\ - n\x20HMAC\x20will\x20be\x20returned.\n\n\x0b\n\x03\x043\x01\x12\x04\xdf\ - \r\x08\x1d\n\x1d\n\x04\x043\x02\0\x12\x04\xe1\r\x02\x1f\x1a\x0f\x20Key\ - \x20metadata.\n\n\x0f\n\x05\x043\x02\0\x04\x12\x06\xe1\r\x02\xdf\r\x1f\n\ - \r\n\x05\x043\x02\0\x06\x12\x04\xe1\r\x02\x11\n\r\n\x05\x043\x02\0\x01\ - \x12\x04\xe1\r\x12\x1a\n\r\n\x05\x043\x02\0\x03\x12\x04\xe1\r\x1d\x1e\n)\ - \n\x04\x043\x02\x01\x12\x04\xe4\r\x02\x14\x1a\x1b\x20HMAC\x20key\x20secr\ - et\x20material.\n\n\x0f\n\x05\x043\x02\x01\x04\x12\x06\xe4\r\x02\xe1\r\ - \x1f\n\r\n\x05\x043\x02\x01\x05\x12\x04\xe4\r\x02\x08\n\r\n\x05\x043\x02\ - \x01\x01\x12\x04\xe4\r\t\x0f\n\r\n\x05\x043\x02\x01\x03\x12\x04\xe4\r\ - \x12\x13\n:\n\x02\x044\x12\x06\xe8\r\0\xf1\r\x01\x1a,\x20Request\x20obje\ - ct\x20to\x20delete\x20a\x20given\x20HMAC\x20key.\n\n\x0b\n\x03\x044\x01\ - \x12\x04\xe8\r\x08\x1c\nE\n\x04\x044\x02\0\x12\x04\xea\r\x02@\x1a7\x20Re\ - quired.\x20The\x20identifying\x20key\x20for\x20the\x20HMAC\x20to\x20dele\ - te.\n\n\x0f\n\x05\x044\x02\0\x04\x12\x06\xea\r\x02\xe8\r\x1e\n\r\n\x05\ - \x044\x02\0\x05\x12\x04\xea\r\x02\x08\n\r\n\x05\x044\x02\0\x01\x12\x04\ - \xea\r\t\x12\n\r\n\x05\x044\x02\0\x03\x12\x04\xea\r\x15\x16\n\r\n\x05\ - \x044\x02\0\x08\x12\x04\xea\r\x17?\n\x10\n\x08\x044\x02\0\x08\x9c\x08\0\ - \x12\x04\xea\r\x18>\n>\n\x04\x044\x02\x01\x12\x04\xed\r\x02A\x1a0\x20Req\ - uired.\x20The\x20project\x20id\x20the\x20HMAC\x20key\x20lies\x20in.\n\n\ - \x0f\n\x05\x044\x02\x01\x04\x12\x06\xed\r\x02\xea\r@\n\r\n\x05\x044\x02\ - \x01\x05\x12\x04\xed\r\x02\x08\n\r\n\x05\x044\x02\x01\x01\x12\x04\xed\r\ - \t\x13\n\r\n\x05\x044\x02\x01\x03\x12\x04\xed\r\x16\x17\n\r\n\x05\x044\ - \x02\x01\x08\x12\x04\xed\r\x18@\n\x10\n\x08\x044\x02\x01\x08\x9c\x08\0\ - \x12\x04\xed\r\x19?\nG\n\x04\x044\x02\x02\x12\x04\xf0\r\x020\x1a9\x20A\ - \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ - requests.\n\n\x0f\n\x05\x044\x02\x02\x04\x12\x06\xf0\r\x02\xed\rA\n\r\n\ - \x05\x044\x02\x02\x06\x12\x04\xf0\r\x02\x15\n\r\n\x05\x044\x02\x02\x01\ - \x12\x04\xf0\r\x16+\n\r\n\x05\x044\x02\x02\x03\x12\x04\xf0\r./\nC\n\x02\ - \x045\x12\x06\xf4\r\0\xfd\r\x01\x1a5\x20Request\x20object\x20to\x20get\ - \x20metadata\x20on\x20a\x20given\x20HMAC\x20key.\n\n\x0b\n\x03\x045\x01\ - \x12\x04\xf4\r\x08\x19\nE\n\x04\x045\x02\0\x12\x04\xf6\r\x02@\x1a7\x20Re\ - quired.\x20The\x20identifying\x20key\x20for\x20the\x20HMAC\x20to\x20dele\ - te.\n\n\x0f\n\x05\x045\x02\0\x04\x12\x06\xf6\r\x02\xf4\r\x1b\n\r\n\x05\ - \x045\x02\0\x05\x12\x04\xf6\r\x02\x08\n\r\n\x05\x045\x02\0\x01\x12\x04\ - \xf6\r\t\x12\n\r\n\x05\x045\x02\0\x03\x12\x04\xf6\r\x15\x16\n\r\n\x05\ - \x045\x02\0\x08\x12\x04\xf6\r\x17?\n\x10\n\x08\x045\x02\0\x08\x9c\x08\0\ - \x12\x04\xf6\r\x18>\n>\n\x04\x045\x02\x01\x12\x04\xf9\r\x02A\x1a0\x20Req\ - uired.\x20The\x20project\x20id\x20the\x20HMAC\x20key\x20lies\x20in.\n\n\ - \x0f\n\x05\x045\x02\x01\x04\x12\x06\xf9\r\x02\xf6\r@\n\r\n\x05\x045\x02\ - \x01\x05\x12\x04\xf9\r\x02\x08\n\r\n\x05\x045\x02\x01\x01\x12\x04\xf9\r\ - \t\x13\n\r\n\x05\x045\x02\x01\x03\x12\x04\xf9\r\x16\x17\n\r\n\x05\x045\ - \x02\x01\x08\x12\x04\xf9\r\x18@\n\x10\n\x08\x045\x02\x01\x08\x9c\x08\0\ - \x12\x04\xf9\r\x19?\nG\n\x04\x045\x02\x02\x12\x04\xfc\r\x020\x1a9\x20A\ - \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ - requests.\n\n\x0f\n\x05\x045\x02\x02\x04\x12\x06\xfc\r\x02\xf9\rA\n\r\n\ - \x05\x045\x02\x02\x06\x12\x04\xfc\r\x02\x15\n\r\n\x05\x045\x02\x02\x01\ - \x12\x04\xfc\r\x16+\n\r\n\x05\x045\x02\x02\x03\x12\x04\xfc\r./\nK\n\x02\ - \x046\x12\x06\x80\x0e\0\x92\x0e\x01\x1a=\x20Request\x20to\x20fetch\x20a\ - \x20list\x20of\x20HMAC\x20keys\x20under\x20a\x20given\x20project.\n\n\ - \x0b\n\x03\x046\x01\x12\x04\x80\x0e\x08\x1b\n?\n\x04\x046\x02\0\x12\x04\ - \x82\x0e\x02A\x1a1\x20Required.\x20The\x20project\x20id\x20to\x20list\ - \x20HMAC\x20keys\x20for.\n\n\x0f\n\x05\x046\x02\0\x04\x12\x06\x82\x0e\ - \x02\x80\x0e\x1d\n\r\n\x05\x046\x02\0\x05\x12\x04\x82\x0e\x02\x08\n\r\n\ - \x05\x046\x02\0\x01\x12\x04\x82\x0e\t\x13\n\r\n\x05\x046\x02\0\x03\x12\ - \x04\x82\x0e\x16\x17\n\r\n\x05\x046\x02\0\x08\x12\x04\x82\x0e\x18@\n\x10\ - \n\x08\x046\x02\0\x08\x9c\x08\0\x12\x04\x82\x0e\x19?\nT\n\x04\x046\x02\ - \x01\x12\x04\x85\x0e\x02#\x1aF\x20An\x20optional\x20filter\x20to\x20only\ - \x20return\x20HMAC\x20keys\x20for\x20one\x20service\x20account.\n\n\x0f\ - \n\x05\x046\x02\x01\x04\x12\x06\x85\x0e\x02\x82\x0eA\n\r\n\x05\x046\x02\ - \x01\x05\x12\x04\x85\x0e\x02\x08\n\r\n\x05\x046\x02\x01\x01\x12\x04\x85\ - \x0e\t\x1e\n\r\n\x05\x046\x02\x01\x03\x12\x04\x85\x0e!\"\nY\n\x04\x046\ - \x02\x02\x12\x04\x88\x0e\x02\x1d\x1aK\x20An\x20optional\x20bool\x20to\ - \x20return\x20deleted\x20keys\x20that\x20have\x20not\x20been\x20wiped\ - \x20out\x20yet.\n\n\x0f\n\x05\x046\x02\x02\x04\x12\x06\x88\x0e\x02\x85\ - \x0e#\n\r\n\x05\x046\x02\x02\x05\x12\x04\x88\x0e\x02\x06\n\r\n\x05\x046\ - \x02\x02\x01\x12\x04\x88\x0e\x07\x18\n\r\n\x05\x046\x02\x02\x03\x12\x04\ - \x88\x0e\x1b\x1c\n5\n\x04\x046\x02\x03\x12\x04\x8b\x0e\x02\x18\x1a'\x20T\ - he\x20maximum\x20number\x20of\x20keys\x20to\x20return.\n\n\x0f\n\x05\x04\ - 6\x02\x03\x04\x12\x06\x8b\x0e\x02\x88\x0e\x1d\n\r\n\x05\x046\x02\x03\x05\ - \x12\x04\x8b\x0e\x02\x07\n\r\n\x05\x046\x02\x03\x01\x12\x04\x8b\x0e\x08\ - \x13\n\r\n\x05\x046\x02\x03\x03\x12\x04\x8b\x0e\x16\x17\n[\n\x04\x046\ - \x02\x04\x12\x04\x8e\x0e\x02\x18\x1aM\x20A\x20previously\x20returned\x20\ - token\x20from\x20ListHmacKeysResponse\x20to\x20get\x20the\x20next\x20pag\ - e.\n\n\x0f\n\x05\x046\x02\x04\x04\x12\x06\x8e\x0e\x02\x8b\x0e\x18\n\r\n\ - \x05\x046\x02\x04\x05\x12\x04\x8e\x0e\x02\x08\n\r\n\x05\x046\x02\x04\x01\ - \x12\x04\x8e\x0e\t\x13\n\r\n\x05\x046\x02\x04\x03\x12\x04\x8e\x0e\x16\ - \x17\nG\n\x04\x046\x02\x05\x12\x04\x91\x0e\x020\x1a9\x20A\x20set\x20of\ - \x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\ - \x0f\n\x05\x046\x02\x05\x04\x12\x06\x91\x0e\x02\x8e\x0e\x18\n\r\n\x05\ - \x046\x02\x05\x06\x12\x04\x91\x0e\x02\x15\n\r\n\x05\x046\x02\x05\x01\x12\ - \x04\x91\x0e\x16+\n\r\n\x05\x046\x02\x05\x03\x12\x04\x91\x0e./\nB\n\x02\ - \x047\x12\x06\x95\x0e\0\x9c\x0e\x01\x1a4\x20Hmac\x20key\x20list\x20respo\ - nse\x20with\x20next\x20page\x20information.\n\n\x0b\n\x03\x047\x01\x12\ - \x04\x95\x0e\x08\x1c\n\xa0\x01\n\x04\x047\x02\0\x12\x04\x98\x0e\x02\x1d\ - \x1a\x91\x01\x20The\x20continuation\x20token,\x20used\x20to\x20page\x20t\ - hrough\x20large\x20result\x20sets.\x20Provide\n\x20this\x20value\x20in\ - \x20a\x20subsequent\x20request\x20to\x20return\x20the\x20next\x20page\ - \x20of\x20results.\n\n\x0f\n\x05\x047\x02\0\x04\x12\x06\x98\x0e\x02\x95\ - \x0e\x1e\n\r\n\x05\x047\x02\0\x05\x12\x04\x98\x0e\x02\x08\n\r\n\x05\x047\ - \x02\0\x01\x12\x04\x98\x0e\t\x18\n\r\n\x05\x047\x02\0\x03\x12\x04\x98\ - \x0e\x1b\x1c\n\"\n\x04\x047\x02\x01\x12\x04\x9b\x0e\x02%\x1a\x14\x20The\ - \x20list\x20of\x20items.\n\n\r\n\x05\x047\x02\x01\x04\x12\x04\x9b\x0e\ - \x02\n\n\r\n\x05\x047\x02\x01\x06\x12\x04\x9b\x0e\x0b\x1a\n\r\n\x05\x047\ - \x02\x01\x01\x12\x04\x9b\x0e\x1b\x20\n\r\n\x05\x047\x02\x01\x03\x12\x04\ - \x9b\x0e#$\n;\n\x02\x048\x12\x06\x9f\x0e\0\xab\x0e\x01\x1a-\x20Request\ - \x20object\x20to\x20update\x20an\x20HMAC\x20key\x20state.\n\n\x0b\n\x03\ - \x048\x01\x12\x04\x9f\x0e\x08\x1c\n1\n\x04\x048\x02\0\x12\x04\xa1\x0e\ - \x02@\x1a#\x20Required.\x20The\x20id\x20of\x20the\x20HMAC\x20key.\n\n\ - \x0f\n\x05\x048\x02\0\x04\x12\x06\xa1\x0e\x02\x9f\x0e\x1e\n\r\n\x05\x048\ - \x02\0\x05\x12\x04\xa1\x0e\x02\x08\n\r\n\x05\x048\x02\0\x01\x12\x04\xa1\ - \x0e\t\x12\n\r\n\x05\x048\x02\0\x03\x12\x04\xa1\x0e\x15\x16\n\r\n\x05\ - \x048\x02\0\x08\x12\x04\xa1\x0e\x17?\n\x10\n\x08\x048\x02\0\x08\x9c\x08\ - \0\x12\x04\xa1\x0e\x18>\nL\n\x04\x048\x02\x01\x12\x04\xa4\x0e\x02A\x1a>\ - \x20Required.\x20The\x20project\x20id\x20the\x20HMAC's\x20service\x20acc\ - ount\x20lies\x20in.\n\n\x0f\n\x05\x048\x02\x01\x04\x12\x06\xa4\x0e\x02\ - \xa1\x0e@\n\r\n\x05\x048\x02\x01\x05\x12\x04\xa4\x0e\x02\x08\n\r\n\x05\ - \x048\x02\x01\x01\x12\x04\xa4\x0e\t\x13\n\r\n\x05\x048\x02\x01\x03\x12\ - \x04\xa4\x0e\x16\x17\n\r\n\x05\x048\x02\x01\x08\x12\x04\xa4\x0e\x18@\n\ - \x10\n\x08\x048\x02\x01\x08\x9c\x08\0\x12\x04\xa4\x0e\x19?\nD\n\x04\x048\ - \x02\x02\x12\x04\xa7\x0e\x02H\x1a6\x20Required.\x20The\x20service\x20acc\ - ount\x20owner\x20of\x20the\x20HMAC\x20key.\n\n\x0f\n\x05\x048\x02\x02\ - \x04\x12\x06\xa7\x0e\x02\xa4\x0eA\n\r\n\x05\x048\x02\x02\x06\x12\x04\xa7\ - \x0e\x02\x11\n\r\n\x05\x048\x02\x02\x01\x12\x04\xa7\x0e\x12\x1a\n\r\n\ - \x05\x048\x02\x02\x03\x12\x04\xa7\x0e\x1d\x1e\n\r\n\x05\x048\x02\x02\x08\ - \x12\x04\xa7\x0e\x1fG\n\x10\n\x08\x048\x02\x02\x08\x9c\x08\0\x12\x04\xa7\ - \x0e\x20F\nG\n\x04\x048\x02\x03\x12\x04\xaa\x0e\x020\x1a9\x20A\x20set\ - \x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20request\ - s.\n\n\x0f\n\x05\x048\x02\x03\x04\x12\x06\xaa\x0e\x02\xa7\x0eH\n\r\n\x05\ - \x048\x02\x03\x06\x12\x04\xaa\x0e\x02\x15\n\r\n\x05\x048\x02\x03\x01\x12\ - \x04\xaa\x0e\x16+\n\r\n\x05\x048\x02\x03\x03\x12\x04\xaa\x0e./\nb\n\x02\ - \x049\x12\x06\xaf\x0e\0\xb5\x0e\x01\x1aT\x20A\x20wrapper\x20around\x20th\ - e\x20IAM\x20get\x20policy\x20request\x20to\x20support\x20our\n\x20common\ - _request_params.\n\n\x0b\n\x03\x049\x01\x12\x04\xaf\x0e\x08\x1b\n(\n\x04\ - \x049\x02\0\x12\x04\xb1\x0e\x024\x1a\x1a\x20The\x20request\x20sent\x20to\ - \x20IAM.\n\n\x0f\n\x05\x049\x02\0\x04\x12\x06\xb1\x0e\x02\xaf\x0e\x1d\n\ - \r\n\x05\x049\x02\0\x06\x12\x04\xb1\x0e\x02#\n\r\n\x05\x049\x02\0\x01\ - \x12\x04\xb1\x0e$/\n\r\n\x05\x049\x02\0\x03\x12\x04\xb1\x0e23\nG\n\x04\ - \x049\x02\x01\x12\x04\xb4\x0e\x020\x1a9\x20A\x20set\x20of\x20parameters\ - \x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\ - 9\x02\x01\x04\x12\x06\xb4\x0e\x02\xb1\x0e4\n\r\n\x05\x049\x02\x01\x06\ - \x12\x04\xb4\x0e\x02\x15\n\r\n\x05\x049\x02\x01\x01\x12\x04\xb4\x0e\x16+\ - \n\r\n\x05\x049\x02\x01\x03\x12\x04\xb4\x0e./\nb\n\x02\x04:\x12\x06\xb9\ - \x0e\0\xbf\x0e\x01\x1aT\x20A\x20wrapper\x20around\x20the\x20IAM\x20set\ - \x20policy\x20request\x20to\x20support\x20our\n\x20common_request_params\ - .\n\n\x0b\n\x03\x04:\x01\x12\x04\xb9\x0e\x08\x1b\n(\n\x04\x04:\x02\0\x12\ - \x04\xbb\x0e\x024\x1a\x1a\x20The\x20request\x20sent\x20to\x20IAM.\n\n\ - \x0f\n\x05\x04:\x02\0\x04\x12\x06\xbb\x0e\x02\xb9\x0e\x1d\n\r\n\x05\x04:\ - \x02\0\x06\x12\x04\xbb\x0e\x02#\n\r\n\x05\x04:\x02\0\x01\x12\x04\xbb\x0e\ - $/\n\r\n\x05\x04:\x02\0\x03\x12\x04\xbb\x0e23\nG\n\x04\x04:\x02\x01\x12\ - \x04\xbe\x0e\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ - \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04:\x02\x01\x04\ - \x12\x06\xbe\x0e\x02\xbb\x0e4\n\r\n\x05\x04:\x02\x01\x06\x12\x04\xbe\x0e\ - \x02\x15\n\r\n\x05\x04:\x02\x01\x01\x12\x04\xbe\x0e\x16+\n\r\n\x05\x04:\ - \x02\x01\x03\x12\x04\xbe\x0e./\nl\n\x02\x04;\x12\x06\xc3\x0e\0\xc9\x0e\ - \x01\x1a^\x20A\x20wrapper\x20around\x20the\x20IAM\x20test\x20iam\x20perm\ - issions\x20request\x20to\x20support\x20our\n\x20common_request_params.\n\ - \n\x0b\n\x03\x04;\x01\x12\x04\xc3\x0e\x08!\n(\n\x04\x04;\x02\0\x12\x04\ - \xc5\x0e\x02:\x1a\x1a\x20The\x20request\x20sent\x20to\x20IAM.\n\n\x0f\n\ - \x05\x04;\x02\0\x04\x12\x06\xc5\x0e\x02\xc3\x0e#\n\r\n\x05\x04;\x02\0\ - \x06\x12\x04\xc5\x0e\x02)\n\r\n\x05\x04;\x02\0\x01\x12\x04\xc5\x0e*5\n\r\ - \n\x05\x04;\x02\0\x03\x12\x04\xc5\x0e89\nG\n\x04\x04;\x02\x01\x12\x04\ - \xc8\x0e\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ - l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04;\x02\x01\x04\x12\x06\ - \xc8\x0e\x02\xc5\x0e:\n\r\n\x05\x04;\x02\x01\x06\x12\x04\xc8\x0e\x02\x15\ - \n\r\n\x05\x04;\x02\x01\x01\x12\x04\xc8\x0e\x16+\n\r\n\x05\x04;\x02\x01\ - \x03\x12\x04\xc8\x0e./\nD\n\x02\x04<\x12\x06\xcc\x0e\0\xd6\x0e\x01\x1a6\ - \x20Parameters\x20that\x20can\x20be\x20passed\x20to\x20any\x20object\x20\ - request.\n\n\x0b\n\x03\x04<\x01\x12\x04\xcc\x0e\x08!\nY\n\x04\x04<\x02\0\ - \x12\x04\xce\x0e\x02\"\x1aK\x20Encryption\x20algorithm\x20used\x20with\ - \x20Customer-Supplied\x20Encryption\x20Keys\x20feature.\n\n\x0f\n\x05\ - \x04<\x02\0\x04\x12\x06\xce\x0e\x02\xcc\x0e#\n\r\n\x05\x04<\x02\0\x05\ - \x12\x04\xce\x0e\x02\x08\n\r\n\x05\x04<\x02\0\x01\x12\x04\xce\x0e\t\x1d\ - \n\r\n\x05\x04<\x02\0\x03\x12\x04\xce\x0e\x20!\nS\n\x04\x04<\x02\x01\x12\ - \x04\xd1\x0e\x02\x1c\x1aE\x20Encryption\x20key\x20used\x20with\x20Custom\ - er-Supplied\x20Encryption\x20Keys\x20feature.\n\n\x0f\n\x05\x04<\x02\x01\ - \x04\x12\x06\xd1\x0e\x02\xce\x0e\"\n\r\n\x05\x04<\x02\x01\x05\x12\x04\ - \xd1\x0e\x02\x08\n\r\n\x05\x04<\x02\x01\x01\x12\x04\xd1\x0e\t\x17\n\r\n\ - \x05\x04<\x02\x01\x03\x12\x04\xd1\x0e\x1a\x1b\nc\n\x04\x04<\x02\x02\x12\ - \x04\xd5\x0e\x02#\x1aU\x20SHA256\x20hash\x20of\x20encryption\x20key\x20u\ - sed\x20with\x20Customer-Supplied\x20Encryption\x20Keys\n\x20feature.\n\n\ - \x0f\n\x05\x04<\x02\x02\x04\x12\x06\xd5\x0e\x02\xd1\x0e\x1c\n\r\n\x05\ - \x04<\x02\x02\x05\x12\x04\xd5\x0e\x02\x08\n\r\n\x05\x04<\x02\x02\x01\x12\ - \x04\xd5\x0e\t\x1e\n\r\n\x05\x04<\x02\x02\x03\x12\x04\xd5\x0e!\"\n=\n\ - \x02\x04=\x12\x06\xd9\x0e\0\xe7\x0e\x01\x1a/\x20Parameters\x20that\x20ca\ - n\x20be\x20passed\x20to\x20any\x20request.\n\n\x0b\n\x03\x04=\x01\x12\ - \x04\xd9\x0e\x08\x1b\nZ\n\x04\x04=\x02\0\x12\x04\xdb\x0e\x02C\x1aL\x20Re\ - quired.\x20Required\x20when\x20using\x20buckets\x20with\x20Requestor\x20\ - Pays\x20feature\x20enabled.\n\n\x0f\n\x05\x04=\x02\0\x04\x12\x06\xdb\x0e\ - \x02\xd9\x0e\x1d\n\r\n\x05\x04=\x02\0\x05\x12\x04\xdb\x0e\x02\x08\n\r\n\ - \x05\x04=\x02\0\x01\x12\x04\xdb\x0e\t\x15\n\r\n\x05\x04=\x02\0\x03\x12\ - \x04\xdb\x0e\x18\x19\n\r\n\x05\x04=\x02\0\x08\x12\x04\xdb\x0e\x1aB\n\x10\ - \n\x08\x04=\x02\0\x08\x9c\x08\0\x12\x04\xdb\x0e\x1bA\n\xff\x02\n\x04\x04\ - =\x02\x01\x12\x04\xe3\x0e\x02\x18\x1a\xf0\x02\x20Lets\x20you\x20enforce\ - \x20per-user\x20quotas\x20from\x20a\x20server-side\x20application\x20eve\ - n\x20in\n\x20cases\x20when\x20the\x20user's\x20IP\x20address\x20is\x20un\ - known.\x20This\x20can\x20occur,\x20for\x20example,\n\x20with\x20applicat\ - ions\x20that\x20run\x20cron\x20jobs\x20on\x20App\x20Engine\x20on\x20a\ - \x20user's\x20behalf.\n\x20You\x20can\x20choose\x20any\x20arbitrary\x20s\ - tring\x20that\x20uniquely\x20identifies\x20a\x20user,\x20but\x20it\n\x20\ - is\x20limited\x20to\x2040\x20characters.\n\x20Overrides\x20user_ip\x20if\ - \x20both\x20are\x20provided.\n\n\x0f\n\x05\x04=\x02\x01\x04\x12\x06\xe3\ - \x0e\x02\xdb\x0eC\n\r\n\x05\x04=\x02\x01\x05\x12\x04\xe3\x0e\x02\x08\n\r\ - \n\x05\x04=\x02\x01\x01\x12\x04\xe3\x0e\t\x13\n\r\n\x05\x04=\x02\x01\x03\ - \x12\x04\xe3\x0e\x16\x17\n<\n\x04\x04=\x02\x02\x12\x04\xe6\x0e\x02'\x1a.\ - \x20Subset\x20of\x20fields\x20to\x20include\x20in\x20the\x20response.\n\ - \n\x0f\n\x05\x04=\x02\x02\x04\x12\x06\xe6\x0e\x02\xe3\x0e\x18\n\r\n\x05\ - \x04=\x02\x02\x06\x12\x04\xe6\x0e\x02\x1b\n\r\n\x05\x04=\x02\x02\x01\x12\ - \x04\xe6\x0e\x1c\"\n\r\n\x05\x04=\x02\x02\x03\x12\x04\xe6\x0e%&\n!\n\x02\ - \x04>\x12\x06\xea\x0e\0\xbc\x0f\x01\x1a\x13\x20Shared\x20constants.\n\n\ - \x0b\n\x03\x04>\x01\x12\x04\xea\x0e\x08\x18\nP\n\x04\x04>\x04\0\x12\x06\ - \xec\x0e\x02\xb9\x0f\x03\x1a@\x20A\x20collection\x20of\x20constant\x20va\ - lues\x20meaningful\x20to\x20the\x20Storage\x20API.\n\n\r\n\x05\x04>\x04\ - \0\x01\x12\x04\xec\x0e\x07\r\n\r\n\x05\x04>\x04\0\x03\x12\x04\xed\x0e\ - \x04\x1e\n\x0e\n\x06\x04>\x04\0\x03\x02\x12\x04\xed\x0e\x04\x1e\n=\n\x06\ - \x04>\x04\0\x02\0\x12\x04\xf0\x0e\x04\x1b\x1a-\x20Unused.\x20Proto3\x20r\ - equires\x20first\x20enum\x20to\x20be\x200.\n\n\x0f\n\x07\x04>\x04\0\x02\ - \0\x01\x12\x04\xf0\x0e\x04\x16\n\x0f\n\x07\x04>\x04\0\x02\0\x02\x12\x04\ - \xf0\x0e\x19\x1a\nd\n\x06\x04>\x04\0\x02\x01\x12\x04\xf5\x0e\x04#\x1aT\ - \x20The\x20maximum\x20size\x20chunk\x20that\x20can\x20will\x20be\x20retu\ - rned\x20in\x20a\x20single\n\x20ReadRequest.\n\x202\x20MiB.\n\n\x0f\n\x07\ - \x04>\x04\0\x02\x01\x01\x12\x04\xf5\x0e\x04\x18\n\x0f\n\x07\x04>\x04\0\ - \x02\x01\x02\x12\x04\xf5\x0e\x1b\"\nb\n\x06\x04>\x04\0\x02\x02\x12\x04\ - \xf9\x0e\x04$\x1aR\x20The\x20maximum\x20size\x20chunk\x20that\x20can\x20\ - be\x20sent\x20in\x20a\x20single\x20InsertObjectRequest.\n\x202\x20MiB.\n\ - \n\x0f\n\x07\x04>\x04\0\x02\x02\x01\x12\x04\xf9\x0e\x04\x19\n\x0f\n\x07\ - \x04>\x04\0\x02\x02\x02\x12\x04\xf9\x0e\x1c#\n\x8c\x01\n\x06\x04>\x04\0\ - \x02\x03\x12\x04\xfe\x0e\x04!\x1a|\x20The\x20maximum\x20size\x20of\x20an\ - \x20object\x20in\x20MB\x20-\x20whether\x20written\x20in\x20a\x20single\ - \x20stream\n\x20or\x20composed\x20from\x20multiple\x20other\x20objects.\ - \n\x205\x20TiB.\n\n\x0f\n\x07\x04>\x04\0\x02\x03\x01\x12\x04\xfe\x0e\x04\ - \x16\n\x0f\n\x07\x04>\x04\0\x02\x03\x02\x12\x04\xfe\x0e\x19\x20\nl\n\x06\ - \x04>\x04\0\x02\x04\x12\x04\x83\x0f\x040\x1a\\\x20The\x20maximum\x20leng\ - th\x20field\x20name\x20that\x20can\x20be\x20sent\x20in\x20a\x20single\n\ - \x20custom\x20metadata\x20field.\n\x201\x20KiB.\n\n\x0f\n\x07\x04>\x04\0\ - \x02\x04\x01\x12\x04\x83\x0f\x04(\n\x0f\n\x07\x04>\x04\0\x02\x04\x02\x12\ - \x04\x83\x0f+/\nm\n\x06\x04>\x04\0\x02\x05\x12\x04\x88\x0f\x041\x1a]\x20\ - The\x20maximum\x20length\x20field\x20value\x20that\x20can\x20be\x20sent\ - \x20in\x20a\x20single\n\x20custom_metadata\x20field.\n\x204\x20KiB.\n\n\ - \x0f\n\x07\x04>\x04\0\x02\x05\x01\x12\x04\x88\x0f\x04)\n\x0f\n\x07\x04>\ - \x04\0\x02\x05\x02\x12\x04\x88\x0f,0\n\x8f\x01\n\x06\x04>\x04\0\x02\x06\ - \x12\x04\x8d\x0f\x040\x1a\x7f\x20The\x20maximum\x20total\x20bytes\x20tha\ - t\x20can\x20be\x20populated\x20into\x20all\x20field\x20names\x20and\n\ - \x20values\x20of\x20the\x20custom_metadata\x20for\x20one\x20object.\n\ - \x208\x20KiB.\n\n\x0f\n\x07\x04>\x04\0\x02\x06\x01\x12\x04\x8d\x0f\x04(\ - \n\x0f\n\x07\x04>\x04\0\x02\x06\x02\x12\x04\x8d\x0f+/\nj\n\x06\x04>\x04\ - \0\x02\x07\x12\x04\x92\x0f\x041\x1aZ\x20The\x20maximum\x20total\x20bytes\ - \x20that\x20can\x20be\x20populated\x20into\x20all\x20bucket\x20metadata\ - \n\x20fields.\n\x2020\x20KiB.\n\n\x0f\n\x07\x04>\x04\0\x02\x07\x01\x12\ - \x04\x92\x0f\x04(\n\x0f\n\x07\x04>\x04\0\x02\x07\x02\x12\x04\x92\x0f+0\n\ - n\n\x06\x04>\x04\0\x02\x08\x12\x04\x96\x0f\x04.\x1a^\x20The\x20maximum\ - \x20number\x20of\x20NotificationConfigurations\x20that\x20can\x20be\x20r\ - egistered\n\x20for\x20a\x20given\x20bucket.\n\n\x0f\n\x07\x04>\x04\0\x02\ - \x08\x01\x12\x04\x96\x0f\x04'\n\x0f\n\x07\x04>\x04\0\x02\x08\x02\x12\x04\ - \x96\x0f*-\nb\n\x06\x04>\x04\0\x02\t\x12\x04\x9a\x0f\x04)\x1aR\x20The\ - \x20maximum\x20number\x20of\x20LifecycleRules\x20that\x20can\x20be\x20re\ - gistered\x20for\x20a\x20given\n\x20bucket.\n\n\x0f\n\x07\x04>\x04\0\x02\ - \t\x01\x12\x04\x9a\x0f\x04\"\n\x0f\n\x07\x04>\x04\0\x02\t\x02\x12\x04\ - \x9a\x0f%(\nQ\n\x06\x04>\x04\0\x02\n\x12\x04\x9d\x0f\x04+\x1aA\x20The\ - \x20maximum\x20number\x20of\x20custom\x20attributes\x20per\x20Notificati\ - onConfig.\n\n\x0f\n\x07\x04>\x04\0\x02\n\x01\x12\x04\x9d\x0f\x04&\n\x0f\ - \n\x07\x04>\x04\0\x02\n\x02\x12\x04\x9d\x0f)*\n_\n\x06\x04>\x04\0\x02\ - \x0b\x12\x04\xa1\x0f\x047\x1aO\x20The\x20maximum\x20length\x20of\x20a\ - \x20custom\x20attribute\x20key\x20included\x20in\n\x20NotificationConfig\ - .\n\n\x0f\n\x07\x04>\x04\0\x02\x0b\x01\x12\x04\xa1\x0f\x040\n\x0f\n\x07\ - \x04>\x04\0\x02\x0b\x02\x12\x04\xa1\x0f36\nc\n\x06\x04>\x04\0\x02\x0c\ - \x12\x04\xa5\x0f\x04:\x1aS\x20The\x20maximum\x20length\x20of\x20a\x20cus\ - tom\x20attribute\x20value\x20included\x20in\x20a\n\x20NotificationConfig\ - .\n\n\x0f\n\x07\x04>\x04\0\x02\x0c\x01\x12\x04\xa5\x0f\x042\n\x0f\n\x07\ - \x04>\x04\0\x02\x0c\x02\x12\x04\xa5\x0f59\nK\n\x06\x04>\x04\0\x02\r\x12\ - \x04\xa8\x0f\x04\"\x1a;\x20The\x20maximum\x20number\x20of\x20key/value\ - \x20entries\x20per\x20bucket\x20label.\n\n\x0f\n\x07\x04>\x04\0\x02\r\ - \x01\x12\x04\xa8\x0f\x04\x1c\n\x0f\n\x07\x04>\x04\0\x02\r\x02\x12\x04\ - \xa8\x0f\x1f!\nZ\n\x06\x04>\x04\0\x02\x0e\x12\x04\xac\x0f\x04%\x1aJ\x20T\ - he\x20maximum\x20character\x20length\x20of\x20the\x20key\x20or\x20value\ - \x20in\x20a\x20bucket\n\x20label\x20map.\n\n\x0f\n\x07\x04>\x04\0\x02\ - \x0e\x01\x12\x04\xac\x0f\x04\x1f\n\x0f\n\x07\x04>\x04\0\x02\x0e\x02\x12\ - \x04\xac\x0f\"$\nS\n\x06\x04>\x04\0\x02\x0f\x12\x04\xb0\x0f\x04%\x1aC\ - \x20The\x20maximum\x20byte\x20size\x20of\x20the\x20key\x20or\x20value\ - \x20in\x20a\x20bucket\x20label\n\x20map.\n\n\x0f\n\x07\x04>\x04\0\x02\ - \x0f\x01\x12\x04\xb0\x0f\x04\x1e\n\x0f\n\x07\x04>\x04\0\x02\x0f\x02\x12\ - \x04\xb0\x0f!$\nc\n\x06\x04>\x04\0\x02\x10\x12\x04\xb4\x0f\x045\x1aS\x20\ - The\x20maximum\x20number\x20of\x20object\x20IDs\x20that\x20can\x20be\x20\ - included\x20in\x20a\n\x20DeleteObjectsRequest.\n\n\x0f\n\x07\x04>\x04\0\ - \x02\x10\x01\x12\x04\xb4\x0f\x04-\n\x0f\n\x07\x04>\x04\0\x02\x10\x02\x12\ - \x04\xb4\x0f04\nw\n\x06\x04>\x04\0\x02\x11\x12\x04\xb8\x0f\x04$\x1ag\x20\ - The\x20maximum\x20number\x20of\x20days\x20for\x20which\x20a\x20token\x20\ - returned\x20by\x20the\n\x20GetListObjectsSplitPoints\x20RPC\x20is\x20val\ - id.\n\n\x0f\n\x07\x04>\x04\0\x02\x11\x01\x12\x04\xb8\x0f\x04\x1e\n\x0f\n\ - \x07\x04>\x04\0\x02\x11\x02\x12\x04\xb8\x0f!#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/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_grpc.rs deleted file mode 100644 index eeed533d6d..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_grpc.rs +++ /dev/null @@ -1,1593 +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_STORAGE_DELETE_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/DeleteBucketAccessControl", - 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_STORAGE_GET_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetBucketAccessControl", - 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_STORAGE_INSERT_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/InsertBucketAccessControl", - 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_STORAGE_LIST_BUCKET_ACCESS_CONTROLS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ListBucketAccessControls", - 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_STORAGE_UPDATE_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/UpdateBucketAccessControl", - 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_STORAGE_PATCH_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/PatchBucketAccessControl", - 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_STORAGE_DELETE_BUCKET: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/DeleteBucket", - 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_STORAGE_GET_BUCKET: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetBucket", - 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_STORAGE_INSERT_BUCKET: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/InsertBucket", - 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_STORAGE_LIST_CHANNELS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ListChannels", - 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_STORAGE_LIST_BUCKETS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ListBuckets", - 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_STORAGE_LOCK_BUCKET_RETENTION_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/LockBucketRetentionPolicy", - 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_STORAGE_GET_BUCKET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetBucketIamPolicy", - 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_STORAGE_SET_BUCKET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/SetBucketIamPolicy", - 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_STORAGE_TEST_BUCKET_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/TestBucketIamPermissions", - 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_STORAGE_PATCH_BUCKET: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/PatchBucket", - 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_STORAGE_UPDATE_BUCKET: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/UpdateBucket", - 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_STORAGE_STOP_CHANNEL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/StopChannel", - 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_STORAGE_DELETE_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/DeleteDefaultObjectAccessControl", - 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_STORAGE_GET_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetDefaultObjectAccessControl", - 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_STORAGE_INSERT_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/InsertDefaultObjectAccessControl", - 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_STORAGE_LIST_DEFAULT_OBJECT_ACCESS_CONTROLS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ListDefaultObjectAccessControls", - 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_STORAGE_PATCH_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/PatchDefaultObjectAccessControl", - 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_STORAGE_UPDATE_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/UpdateDefaultObjectAccessControl", - 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_STORAGE_DELETE_NOTIFICATION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/DeleteNotification", - 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_STORAGE_GET_NOTIFICATION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetNotification", - 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_STORAGE_INSERT_NOTIFICATION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/InsertNotification", - 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_STORAGE_LIST_NOTIFICATIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ListNotifications", - 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_STORAGE_DELETE_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/DeleteObjectAccessControl", - 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_STORAGE_GET_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetObjectAccessControl", - 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_STORAGE_INSERT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/InsertObjectAccessControl", - 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_STORAGE_LIST_OBJECT_ACCESS_CONTROLS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ListObjectAccessControls", - 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_STORAGE_PATCH_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/PatchObjectAccessControl", - 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_STORAGE_UPDATE_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/UpdateObjectAccessControl", - 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_STORAGE_COMPOSE_OBJECT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ComposeObject", - 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_STORAGE_COPY_OBJECT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/CopyObject", - 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_STORAGE_DELETE_OBJECT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/DeleteObject", - 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_STORAGE_GET_OBJECT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetObject", - 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_STORAGE_GET_OBJECT_MEDIA: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.storage.v1.Storage/GetObjectMedia", - 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_STORAGE_INSERT_OBJECT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ClientStreaming, - name: "/google.storage.v1.Storage/InsertObject", - 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_STORAGE_LIST_OBJECTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ListObjects", - 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_STORAGE_REWRITE_OBJECT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/RewriteObject", - 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_STORAGE_START_RESUMABLE_WRITE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/StartResumableWrite", - 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_STORAGE_QUERY_WRITE_STATUS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/QueryWriteStatus", - 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_STORAGE_PATCH_OBJECT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/PatchObject", - 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_STORAGE_UPDATE_OBJECT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/UpdateObject", - 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_STORAGE_GET_OBJECT_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetObjectIamPolicy", - 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_STORAGE_SET_OBJECT_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/SetObjectIamPolicy", - 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_STORAGE_TEST_OBJECT_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/TestObjectIamPermissions", - 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_STORAGE_WATCH_ALL_OBJECTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/WatchAllObjects", - 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_STORAGE_GET_SERVICE_ACCOUNT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetServiceAccount", - 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_STORAGE_CREATE_HMAC_KEY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/CreateHmacKey", - 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_STORAGE_DELETE_HMAC_KEY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/DeleteHmacKey", - 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_STORAGE_GET_HMAC_KEY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/GetHmacKey", - 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_STORAGE_LIST_HMAC_KEYS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/ListHmacKeys", - 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_STORAGE_UPDATE_HMAC_KEY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.storage.v1.Storage/UpdateHmacKey", - 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 StorageClient { - client: ::grpcio::Client, -} - -impl StorageClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - StorageClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn delete_bucket_access_control_opt(&self, req: &super::storage::DeleteBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_DELETE_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn delete_bucket_access_control(&self, req: &super::storage::DeleteBucketAccessControlRequest) -> ::grpcio::Result { - self.delete_bucket_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_bucket_access_control_async_opt(&self, req: &super::storage::DeleteBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_DELETE_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn delete_bucket_access_control_async(&self, req: &super::storage::DeleteBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_bucket_access_control_opt(&self, req: &super::storage::GetBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn get_bucket_access_control(&self, req: &super::storage::GetBucketAccessControlRequest) -> ::grpcio::Result { - self.get_bucket_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_bucket_access_control_async_opt(&self, req: &super::storage::GetBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn get_bucket_access_control_async(&self, req: &super::storage::GetBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_bucket_access_control_opt(&self, req: &super::storage::InsertBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_INSERT_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn insert_bucket_access_control(&self, req: &super::storage::InsertBucketAccessControlRequest) -> ::grpcio::Result { - self.insert_bucket_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_bucket_access_control_async_opt(&self, req: &super::storage::InsertBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_INSERT_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn insert_bucket_access_control_async(&self, req: &super::storage::InsertBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.insert_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_bucket_access_controls_opt(&self, req: &super::storage::ListBucketAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LIST_BUCKET_ACCESS_CONTROLS, req, opt) - } - - pub fn list_bucket_access_controls(&self, req: &super::storage::ListBucketAccessControlsRequest) -> ::grpcio::Result { - self.list_bucket_access_controls_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_bucket_access_controls_async_opt(&self, req: &super::storage::ListBucketAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LIST_BUCKET_ACCESS_CONTROLS, req, opt) - } - - pub fn list_bucket_access_controls_async(&self, req: &super::storage::ListBucketAccessControlsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_bucket_access_controls_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_bucket_access_control_opt(&self, req: &super::storage::UpdateBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_UPDATE_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn update_bucket_access_control(&self, req: &super::storage::UpdateBucketAccessControlRequest) -> ::grpcio::Result { - self.update_bucket_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_bucket_access_control_async_opt(&self, req: &super::storage::UpdateBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_UPDATE_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn update_bucket_access_control_async(&self, req: &super::storage::UpdateBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_bucket_access_control_opt(&self, req: &super::storage::PatchBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_PATCH_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn patch_bucket_access_control(&self, req: &super::storage::PatchBucketAccessControlRequest) -> ::grpcio::Result { - self.patch_bucket_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_bucket_access_control_async_opt(&self, req: &super::storage::PatchBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_PATCH_BUCKET_ACCESS_CONTROL, req, opt) - } - - pub fn patch_bucket_access_control_async(&self, req: &super::storage::PatchBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.patch_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_bucket_opt(&self, req: &super::storage::DeleteBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_DELETE_BUCKET, req, opt) - } - - pub fn delete_bucket(&self, req: &super::storage::DeleteBucketRequest) -> ::grpcio::Result { - self.delete_bucket_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_bucket_async_opt(&self, req: &super::storage::DeleteBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_DELETE_BUCKET, req, opt) - } - - pub fn delete_bucket_async(&self, req: &super::storage::DeleteBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_bucket_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_bucket_opt(&self, req: &super::storage::GetBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_BUCKET, req, opt) - } - - pub fn get_bucket(&self, req: &super::storage::GetBucketRequest) -> ::grpcio::Result { - self.get_bucket_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_bucket_async_opt(&self, req: &super::storage::GetBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_BUCKET, req, opt) - } - - pub fn get_bucket_async(&self, req: &super::storage::GetBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_bucket_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_bucket_opt(&self, req: &super::storage::InsertBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_INSERT_BUCKET, req, opt) - } - - pub fn insert_bucket(&self, req: &super::storage::InsertBucketRequest) -> ::grpcio::Result { - self.insert_bucket_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_bucket_async_opt(&self, req: &super::storage::InsertBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_INSERT_BUCKET, req, opt) - } - - pub fn insert_bucket_async(&self, req: &super::storage::InsertBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.insert_bucket_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_channels_opt(&self, req: &super::storage::ListChannelsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LIST_CHANNELS, req, opt) - } - - pub fn list_channels(&self, req: &super::storage::ListChannelsRequest) -> ::grpcio::Result { - self.list_channels_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_channels_async_opt(&self, req: &super::storage::ListChannelsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LIST_CHANNELS, req, opt) - } - - pub fn list_channels_async(&self, req: &super::storage::ListChannelsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_channels_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_buckets_opt(&self, req: &super::storage::ListBucketsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LIST_BUCKETS, req, opt) - } - - pub fn list_buckets(&self, req: &super::storage::ListBucketsRequest) -> ::grpcio::Result { - self.list_buckets_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_buckets_async_opt(&self, req: &super::storage::ListBucketsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LIST_BUCKETS, req, opt) - } - - pub fn list_buckets_async(&self, req: &super::storage::ListBucketsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_buckets_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn lock_bucket_retention_policy_opt(&self, req: &super::storage::LockRetentionPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LOCK_BUCKET_RETENTION_POLICY, req, opt) - } - - pub fn lock_bucket_retention_policy(&self, req: &super::storage::LockRetentionPolicyRequest) -> ::grpcio::Result { - self.lock_bucket_retention_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn lock_bucket_retention_policy_async_opt(&self, req: &super::storage::LockRetentionPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LOCK_BUCKET_RETENTION_POLICY, req, opt) - } - - pub fn lock_bucket_retention_policy_async(&self, req: &super::storage::LockRetentionPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.lock_bucket_retention_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_bucket_iam_policy_opt(&self, req: &super::storage::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_BUCKET_IAM_POLICY, req, opt) - } - - pub fn get_bucket_iam_policy(&self, req: &super::storage::GetIamPolicyRequest) -> ::grpcio::Result { - self.get_bucket_iam_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_bucket_iam_policy_async_opt(&self, req: &super::storage::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_BUCKET_IAM_POLICY, req, opt) - } - - pub fn get_bucket_iam_policy_async(&self, req: &super::storage::GetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_bucket_iam_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn set_bucket_iam_policy_opt(&self, req: &super::storage::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_SET_BUCKET_IAM_POLICY, req, opt) - } - - pub fn set_bucket_iam_policy(&self, req: &super::storage::SetIamPolicyRequest) -> ::grpcio::Result { - self.set_bucket_iam_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn set_bucket_iam_policy_async_opt(&self, req: &super::storage::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_SET_BUCKET_IAM_POLICY, req, opt) - } - - pub fn set_bucket_iam_policy_async(&self, req: &super::storage::SetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.set_bucket_iam_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn test_bucket_iam_permissions_opt(&self, req: &super::storage::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_TEST_BUCKET_IAM_PERMISSIONS, req, opt) - } - - pub fn test_bucket_iam_permissions(&self, req: &super::storage::TestIamPermissionsRequest) -> ::grpcio::Result { - self.test_bucket_iam_permissions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn test_bucket_iam_permissions_async_opt(&self, req: &super::storage::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_TEST_BUCKET_IAM_PERMISSIONS, req, opt) - } - - pub fn test_bucket_iam_permissions_async(&self, req: &super::storage::TestIamPermissionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.test_bucket_iam_permissions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_bucket_opt(&self, req: &super::storage::PatchBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_PATCH_BUCKET, req, opt) - } - - pub fn patch_bucket(&self, req: &super::storage::PatchBucketRequest) -> ::grpcio::Result { - self.patch_bucket_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_bucket_async_opt(&self, req: &super::storage::PatchBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_PATCH_BUCKET, req, opt) - } - - pub fn patch_bucket_async(&self, req: &super::storage::PatchBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.patch_bucket_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_bucket_opt(&self, req: &super::storage::UpdateBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_UPDATE_BUCKET, req, opt) - } - - pub fn update_bucket(&self, req: &super::storage::UpdateBucketRequest) -> ::grpcio::Result { - self.update_bucket_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_bucket_async_opt(&self, req: &super::storage::UpdateBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_UPDATE_BUCKET, req, opt) - } - - pub fn update_bucket_async(&self, req: &super::storage::UpdateBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_bucket_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn stop_channel_opt(&self, req: &super::storage::StopChannelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_STOP_CHANNEL, req, opt) - } - - pub fn stop_channel(&self, req: &super::storage::StopChannelRequest) -> ::grpcio::Result { - self.stop_channel_opt(req, ::grpcio::CallOption::default()) - } - - pub fn stop_channel_async_opt(&self, req: &super::storage::StopChannelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_STOP_CHANNEL, req, opt) - } - - pub fn stop_channel_async(&self, req: &super::storage::StopChannelRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.stop_channel_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_default_object_access_control_opt(&self, req: &super::storage::DeleteDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_DELETE_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn delete_default_object_access_control(&self, req: &super::storage::DeleteDefaultObjectAccessControlRequest) -> ::grpcio::Result { - self.delete_default_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_default_object_access_control_async_opt(&self, req: &super::storage::DeleteDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_DELETE_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn delete_default_object_access_control_async(&self, req: &super::storage::DeleteDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_default_object_access_control_opt(&self, req: &super::storage::GetDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn get_default_object_access_control(&self, req: &super::storage::GetDefaultObjectAccessControlRequest) -> ::grpcio::Result { - self.get_default_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_default_object_access_control_async_opt(&self, req: &super::storage::GetDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn get_default_object_access_control_async(&self, req: &super::storage::GetDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_default_object_access_control_opt(&self, req: &super::storage::InsertDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_INSERT_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn insert_default_object_access_control(&self, req: &super::storage::InsertDefaultObjectAccessControlRequest) -> ::grpcio::Result { - self.insert_default_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_default_object_access_control_async_opt(&self, req: &super::storage::InsertDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_INSERT_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn insert_default_object_access_control_async(&self, req: &super::storage::InsertDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.insert_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_default_object_access_controls_opt(&self, req: &super::storage::ListDefaultObjectAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LIST_DEFAULT_OBJECT_ACCESS_CONTROLS, req, opt) - } - - pub fn list_default_object_access_controls(&self, req: &super::storage::ListDefaultObjectAccessControlsRequest) -> ::grpcio::Result { - self.list_default_object_access_controls_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_default_object_access_controls_async_opt(&self, req: &super::storage::ListDefaultObjectAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LIST_DEFAULT_OBJECT_ACCESS_CONTROLS, req, opt) - } - - pub fn list_default_object_access_controls_async(&self, req: &super::storage::ListDefaultObjectAccessControlsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_default_object_access_controls_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_default_object_access_control_opt(&self, req: &super::storage::PatchDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_PATCH_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn patch_default_object_access_control(&self, req: &super::storage::PatchDefaultObjectAccessControlRequest) -> ::grpcio::Result { - self.patch_default_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_default_object_access_control_async_opt(&self, req: &super::storage::PatchDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_PATCH_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn patch_default_object_access_control_async(&self, req: &super::storage::PatchDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.patch_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_default_object_access_control_opt(&self, req: &super::storage::UpdateDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_UPDATE_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn update_default_object_access_control(&self, req: &super::storage::UpdateDefaultObjectAccessControlRequest) -> ::grpcio::Result { - self.update_default_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_default_object_access_control_async_opt(&self, req: &super::storage::UpdateDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_UPDATE_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn update_default_object_access_control_async(&self, req: &super::storage::UpdateDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_notification_opt(&self, req: &super::storage::DeleteNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_DELETE_NOTIFICATION, req, opt) - } - - pub fn delete_notification(&self, req: &super::storage::DeleteNotificationRequest) -> ::grpcio::Result { - self.delete_notification_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_notification_async_opt(&self, req: &super::storage::DeleteNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_DELETE_NOTIFICATION, req, opt) - } - - pub fn delete_notification_async(&self, req: &super::storage::DeleteNotificationRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_notification_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_notification_opt(&self, req: &super::storage::GetNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_NOTIFICATION, req, opt) - } - - pub fn get_notification(&self, req: &super::storage::GetNotificationRequest) -> ::grpcio::Result { - self.get_notification_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_notification_async_opt(&self, req: &super::storage::GetNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_NOTIFICATION, req, opt) - } - - pub fn get_notification_async(&self, req: &super::storage::GetNotificationRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_notification_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_notification_opt(&self, req: &super::storage::InsertNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_INSERT_NOTIFICATION, req, opt) - } - - pub fn insert_notification(&self, req: &super::storage::InsertNotificationRequest) -> ::grpcio::Result { - self.insert_notification_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_notification_async_opt(&self, req: &super::storage::InsertNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_INSERT_NOTIFICATION, req, opt) - } - - pub fn insert_notification_async(&self, req: &super::storage::InsertNotificationRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.insert_notification_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_notifications_opt(&self, req: &super::storage::ListNotificationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LIST_NOTIFICATIONS, req, opt) - } - - pub fn list_notifications(&self, req: &super::storage::ListNotificationsRequest) -> ::grpcio::Result { - self.list_notifications_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_notifications_async_opt(&self, req: &super::storage::ListNotificationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LIST_NOTIFICATIONS, req, opt) - } - - pub fn list_notifications_async(&self, req: &super::storage::ListNotificationsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_notifications_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_object_access_control_opt(&self, req: &super::storage::DeleteObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_DELETE_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn delete_object_access_control(&self, req: &super::storage::DeleteObjectAccessControlRequest) -> ::grpcio::Result { - self.delete_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_object_access_control_async_opt(&self, req: &super::storage::DeleteObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_DELETE_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn delete_object_access_control_async(&self, req: &super::storage::DeleteObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_object_access_control_opt(&self, req: &super::storage::GetObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn get_object_access_control(&self, req: &super::storage::GetObjectAccessControlRequest) -> ::grpcio::Result { - self.get_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_object_access_control_async_opt(&self, req: &super::storage::GetObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn get_object_access_control_async(&self, req: &super::storage::GetObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_object_access_control_opt(&self, req: &super::storage::InsertObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_INSERT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn insert_object_access_control(&self, req: &super::storage::InsertObjectAccessControlRequest) -> ::grpcio::Result { - self.insert_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_object_access_control_async_opt(&self, req: &super::storage::InsertObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_INSERT_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn insert_object_access_control_async(&self, req: &super::storage::InsertObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.insert_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_object_access_controls_opt(&self, req: &super::storage::ListObjectAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LIST_OBJECT_ACCESS_CONTROLS, req, opt) - } - - pub fn list_object_access_controls(&self, req: &super::storage::ListObjectAccessControlsRequest) -> ::grpcio::Result { - self.list_object_access_controls_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_object_access_controls_async_opt(&self, req: &super::storage::ListObjectAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LIST_OBJECT_ACCESS_CONTROLS, req, opt) - } - - pub fn list_object_access_controls_async(&self, req: &super::storage::ListObjectAccessControlsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_object_access_controls_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_object_access_control_opt(&self, req: &super::storage::PatchObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_PATCH_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn patch_object_access_control(&self, req: &super::storage::PatchObjectAccessControlRequest) -> ::grpcio::Result { - self.patch_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_object_access_control_async_opt(&self, req: &super::storage::PatchObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_PATCH_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn patch_object_access_control_async(&self, req: &super::storage::PatchObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.patch_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_object_access_control_opt(&self, req: &super::storage::UpdateObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_UPDATE_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn update_object_access_control(&self, req: &super::storage::UpdateObjectAccessControlRequest) -> ::grpcio::Result { - self.update_object_access_control_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_object_access_control_async_opt(&self, req: &super::storage::UpdateObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_UPDATE_OBJECT_ACCESS_CONTROL, req, opt) - } - - pub fn update_object_access_control_async(&self, req: &super::storage::UpdateObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_object_access_control_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn compose_object_opt(&self, req: &super::storage::ComposeObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_COMPOSE_OBJECT, req, opt) - } - - pub fn compose_object(&self, req: &super::storage::ComposeObjectRequest) -> ::grpcio::Result { - self.compose_object_opt(req, ::grpcio::CallOption::default()) - } - - pub fn compose_object_async_opt(&self, req: &super::storage::ComposeObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_COMPOSE_OBJECT, req, opt) - } - - pub fn compose_object_async(&self, req: &super::storage::ComposeObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.compose_object_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn copy_object_opt(&self, req: &super::storage::CopyObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_COPY_OBJECT, req, opt) - } - - pub fn copy_object(&self, req: &super::storage::CopyObjectRequest) -> ::grpcio::Result { - self.copy_object_opt(req, ::grpcio::CallOption::default()) - } - - pub fn copy_object_async_opt(&self, req: &super::storage::CopyObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_COPY_OBJECT, req, opt) - } - - pub fn copy_object_async(&self, req: &super::storage::CopyObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.copy_object_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_object_opt(&self, req: &super::storage::DeleteObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_DELETE_OBJECT, req, opt) - } - - pub fn delete_object(&self, req: &super::storage::DeleteObjectRequest) -> ::grpcio::Result { - self.delete_object_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_object_async_opt(&self, req: &super::storage::DeleteObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_DELETE_OBJECT, req, opt) - } - - pub fn delete_object_async(&self, req: &super::storage::DeleteObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_object_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_object_opt(&self, req: &super::storage::GetObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_OBJECT, req, opt) - } - - pub fn get_object(&self, req: &super::storage::GetObjectRequest) -> ::grpcio::Result { - self.get_object_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_object_async_opt(&self, req: &super::storage::GetObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_OBJECT, req, opt) - } - - pub fn get_object_async(&self, req: &super::storage::GetObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_object_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_object_media_opt(&self, req: &super::storage::GetObjectMediaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_STORAGE_GET_OBJECT_MEDIA, req, opt) - } - - pub fn get_object_media(&self, req: &super::storage::GetObjectMediaRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.get_object_media_opt(req, ::grpcio::CallOption::default()) - } - - pub fn insert_object_opt(&self, opt: ::grpcio::CallOption) -> ::grpcio::Result<(::grpcio::ClientCStreamSender, ::grpcio::ClientCStreamReceiver)> { - self.client.client_streaming(&METHOD_STORAGE_INSERT_OBJECT, opt) - } - - pub fn insert_object(&self) -> ::grpcio::Result<(::grpcio::ClientCStreamSender, ::grpcio::ClientCStreamReceiver)> { - self.insert_object_opt(::grpcio::CallOption::default()) - } - - pub fn list_objects_opt(&self, req: &super::storage::ListObjectsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LIST_OBJECTS, req, opt) - } - - pub fn list_objects(&self, req: &super::storage::ListObjectsRequest) -> ::grpcio::Result { - self.list_objects_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_objects_async_opt(&self, req: &super::storage::ListObjectsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LIST_OBJECTS, req, opt) - } - - pub fn list_objects_async(&self, req: &super::storage::ListObjectsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_objects_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn rewrite_object_opt(&self, req: &super::storage::RewriteObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_REWRITE_OBJECT, req, opt) - } - - pub fn rewrite_object(&self, req: &super::storage::RewriteObjectRequest) -> ::grpcio::Result { - self.rewrite_object_opt(req, ::grpcio::CallOption::default()) - } - - pub fn rewrite_object_async_opt(&self, req: &super::storage::RewriteObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_REWRITE_OBJECT, req, opt) - } - - pub fn rewrite_object_async(&self, req: &super::storage::RewriteObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.rewrite_object_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn start_resumable_write_opt(&self, req: &super::storage::StartResumableWriteRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_START_RESUMABLE_WRITE, req, opt) - } - - pub fn start_resumable_write(&self, req: &super::storage::StartResumableWriteRequest) -> ::grpcio::Result { - self.start_resumable_write_opt(req, ::grpcio::CallOption::default()) - } - - pub fn start_resumable_write_async_opt(&self, req: &super::storage::StartResumableWriteRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_START_RESUMABLE_WRITE, req, opt) - } - - pub fn start_resumable_write_async(&self, req: &super::storage::StartResumableWriteRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.start_resumable_write_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn query_write_status_opt(&self, req: &super::storage::QueryWriteStatusRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_QUERY_WRITE_STATUS, req, opt) - } - - pub fn query_write_status(&self, req: &super::storage::QueryWriteStatusRequest) -> ::grpcio::Result { - self.query_write_status_opt(req, ::grpcio::CallOption::default()) - } - - pub fn query_write_status_async_opt(&self, req: &super::storage::QueryWriteStatusRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_QUERY_WRITE_STATUS, req, opt) - } - - pub fn query_write_status_async(&self, req: &super::storage::QueryWriteStatusRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.query_write_status_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_object_opt(&self, req: &super::storage::PatchObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_PATCH_OBJECT, req, opt) - } - - pub fn patch_object(&self, req: &super::storage::PatchObjectRequest) -> ::grpcio::Result { - self.patch_object_opt(req, ::grpcio::CallOption::default()) - } - - pub fn patch_object_async_opt(&self, req: &super::storage::PatchObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_PATCH_OBJECT, req, opt) - } - - pub fn patch_object_async(&self, req: &super::storage::PatchObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.patch_object_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_object_opt(&self, req: &super::storage::UpdateObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_UPDATE_OBJECT, req, opt) - } - - pub fn update_object(&self, req: &super::storage::UpdateObjectRequest) -> ::grpcio::Result { - self.update_object_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_object_async_opt(&self, req: &super::storage::UpdateObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_UPDATE_OBJECT, req, opt) - } - - pub fn update_object_async(&self, req: &super::storage::UpdateObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_object_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_object_iam_policy_opt(&self, req: &super::storage::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_OBJECT_IAM_POLICY, req, opt) - } - - pub fn get_object_iam_policy(&self, req: &super::storage::GetIamPolicyRequest) -> ::grpcio::Result { - self.get_object_iam_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_object_iam_policy_async_opt(&self, req: &super::storage::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_OBJECT_IAM_POLICY, req, opt) - } - - pub fn get_object_iam_policy_async(&self, req: &super::storage::GetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_object_iam_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn set_object_iam_policy_opt(&self, req: &super::storage::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_SET_OBJECT_IAM_POLICY, req, opt) - } - - pub fn set_object_iam_policy(&self, req: &super::storage::SetIamPolicyRequest) -> ::grpcio::Result { - self.set_object_iam_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn set_object_iam_policy_async_opt(&self, req: &super::storage::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_SET_OBJECT_IAM_POLICY, req, opt) - } - - pub fn set_object_iam_policy_async(&self, req: &super::storage::SetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.set_object_iam_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn test_object_iam_permissions_opt(&self, req: &super::storage::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_TEST_OBJECT_IAM_PERMISSIONS, req, opt) - } - - pub fn test_object_iam_permissions(&self, req: &super::storage::TestIamPermissionsRequest) -> ::grpcio::Result { - self.test_object_iam_permissions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn test_object_iam_permissions_async_opt(&self, req: &super::storage::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_TEST_OBJECT_IAM_PERMISSIONS, req, opt) - } - - pub fn test_object_iam_permissions_async(&self, req: &super::storage::TestIamPermissionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.test_object_iam_permissions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn watch_all_objects_opt(&self, req: &super::storage::WatchAllObjectsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_WATCH_ALL_OBJECTS, req, opt) - } - - pub fn watch_all_objects(&self, req: &super::storage::WatchAllObjectsRequest) -> ::grpcio::Result { - self.watch_all_objects_opt(req, ::grpcio::CallOption::default()) - } - - pub fn watch_all_objects_async_opt(&self, req: &super::storage::WatchAllObjectsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_WATCH_ALL_OBJECTS, req, opt) - } - - pub fn watch_all_objects_async(&self, req: &super::storage::WatchAllObjectsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.watch_all_objects_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_account_opt(&self, req: &super::storage::GetProjectServiceAccountRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_SERVICE_ACCOUNT, req, opt) - } - - pub fn get_service_account(&self, req: &super::storage::GetProjectServiceAccountRequest) -> ::grpcio::Result { - self.get_service_account_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_account_async_opt(&self, req: &super::storage::GetProjectServiceAccountRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_SERVICE_ACCOUNT, req, opt) - } - - pub fn get_service_account_async(&self, req: &super::storage::GetProjectServiceAccountRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_service_account_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_hmac_key_opt(&self, req: &super::storage::CreateHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_CREATE_HMAC_KEY, req, opt) - } - - pub fn create_hmac_key(&self, req: &super::storage::CreateHmacKeyRequest) -> ::grpcio::Result { - self.create_hmac_key_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_hmac_key_async_opt(&self, req: &super::storage::CreateHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_CREATE_HMAC_KEY, req, opt) - } - - pub fn create_hmac_key_async(&self, req: &super::storage::CreateHmacKeyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_hmac_key_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_hmac_key_opt(&self, req: &super::storage::DeleteHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_DELETE_HMAC_KEY, req, opt) - } - - pub fn delete_hmac_key(&self, req: &super::storage::DeleteHmacKeyRequest) -> ::grpcio::Result { - self.delete_hmac_key_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_hmac_key_async_opt(&self, req: &super::storage::DeleteHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_DELETE_HMAC_KEY, req, opt) - } - - pub fn delete_hmac_key_async(&self, req: &super::storage::DeleteHmacKeyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_hmac_key_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_hmac_key_opt(&self, req: &super::storage::GetHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_GET_HMAC_KEY, req, opt) - } - - pub fn get_hmac_key(&self, req: &super::storage::GetHmacKeyRequest) -> ::grpcio::Result { - self.get_hmac_key_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_hmac_key_async_opt(&self, req: &super::storage::GetHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_GET_HMAC_KEY, req, opt) - } - - pub fn get_hmac_key_async(&self, req: &super::storage::GetHmacKeyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_hmac_key_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_hmac_keys_opt(&self, req: &super::storage::ListHmacKeysRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_LIST_HMAC_KEYS, req, opt) - } - - pub fn list_hmac_keys(&self, req: &super::storage::ListHmacKeysRequest) -> ::grpcio::Result { - self.list_hmac_keys_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_hmac_keys_async_opt(&self, req: &super::storage::ListHmacKeysRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_LIST_HMAC_KEYS, req, opt) - } - - pub fn list_hmac_keys_async(&self, req: &super::storage::ListHmacKeysRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_hmac_keys_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_hmac_key_opt(&self, req: &super::storage::UpdateHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_STORAGE_UPDATE_HMAC_KEY, req, opt) - } - - pub fn update_hmac_key(&self, req: &super::storage::UpdateHmacKeyRequest) -> ::grpcio::Result { - self.update_hmac_key_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_hmac_key_async_opt(&self, req: &super::storage::UpdateHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_STORAGE_UPDATE_HMAC_KEY, req, opt) - } - - pub fn update_hmac_key_async(&self, req: &super::storage::UpdateHmacKeyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_hmac_key_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait Storage { - fn delete_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteBucketAccessControlRequest, sink: ::grpcio::UnarySink); - fn get_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetBucketAccessControlRequest, sink: ::grpcio::UnarySink); - fn insert_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertBucketAccessControlRequest, sink: ::grpcio::UnarySink); - fn list_bucket_access_controls(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListBucketAccessControlsRequest, sink: ::grpcio::UnarySink); - fn update_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateBucketAccessControlRequest, sink: ::grpcio::UnarySink); - fn patch_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchBucketAccessControlRequest, sink: ::grpcio::UnarySink); - fn delete_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteBucketRequest, sink: ::grpcio::UnarySink); - fn get_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetBucketRequest, sink: ::grpcio::UnarySink); - fn insert_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertBucketRequest, sink: ::grpcio::UnarySink); - fn list_channels(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListChannelsRequest, sink: ::grpcio::UnarySink); - fn list_buckets(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListBucketsRequest, sink: ::grpcio::UnarySink); - fn lock_bucket_retention_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::LockRetentionPolicyRequest, sink: ::grpcio::UnarySink); - fn get_bucket_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn set_bucket_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::SetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn test_bucket_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); - fn patch_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchBucketRequest, sink: ::grpcio::UnarySink); - fn update_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateBucketRequest, sink: ::grpcio::UnarySink); - fn stop_channel(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::StopChannelRequest, sink: ::grpcio::UnarySink); - fn delete_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn get_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn insert_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn list_default_object_access_controls(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListDefaultObjectAccessControlsRequest, sink: ::grpcio::UnarySink); - fn patch_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn update_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn delete_notification(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteNotificationRequest, sink: ::grpcio::UnarySink); - fn get_notification(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetNotificationRequest, sink: ::grpcio::UnarySink); - fn insert_notification(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertNotificationRequest, sink: ::grpcio::UnarySink); - fn list_notifications(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListNotificationsRequest, sink: ::grpcio::UnarySink); - fn delete_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn get_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn insert_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn list_object_access_controls(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListObjectAccessControlsRequest, sink: ::grpcio::UnarySink); - fn patch_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn update_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateObjectAccessControlRequest, sink: ::grpcio::UnarySink); - fn compose_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ComposeObjectRequest, sink: ::grpcio::UnarySink); - fn copy_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::CopyObjectRequest, sink: ::grpcio::UnarySink); - fn delete_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteObjectRequest, sink: ::grpcio::UnarySink); - fn get_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetObjectRequest, sink: ::grpcio::UnarySink); - fn get_object_media(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetObjectMediaRequest, sink: ::grpcio::ServerStreamingSink); - fn insert_object(&mut self, ctx: ::grpcio::RpcContext, stream: ::grpcio::RequestStream, sink: ::grpcio::ClientStreamingSink); - fn list_objects(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListObjectsRequest, sink: ::grpcio::UnarySink); - fn rewrite_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::RewriteObjectRequest, sink: ::grpcio::UnarySink); - fn start_resumable_write(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::StartResumableWriteRequest, sink: ::grpcio::UnarySink); - fn query_write_status(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::QueryWriteStatusRequest, sink: ::grpcio::UnarySink); - fn patch_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchObjectRequest, sink: ::grpcio::UnarySink); - fn update_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateObjectRequest, sink: ::grpcio::UnarySink); - fn get_object_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn set_object_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::SetIamPolicyRequest, sink: ::grpcio::UnarySink); - fn test_object_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); - fn watch_all_objects(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::WatchAllObjectsRequest, sink: ::grpcio::UnarySink); - fn get_service_account(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetProjectServiceAccountRequest, sink: ::grpcio::UnarySink); - fn create_hmac_key(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::CreateHmacKeyRequest, sink: ::grpcio::UnarySink); - fn delete_hmac_key(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteHmacKeyRequest, sink: ::grpcio::UnarySink); - fn get_hmac_key(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetHmacKeyRequest, sink: ::grpcio::UnarySink); - fn list_hmac_keys(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListHmacKeysRequest, sink: ::grpcio::UnarySink); - fn update_hmac_key(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateHmacKeyRequest, sink: ::grpcio::UnarySink); -} - -pub fn create_storage(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { - instance.delete_bucket_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { - instance.get_bucket_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { - instance.insert_bucket_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_BUCKET_ACCESS_CONTROLS, move |ctx, req, resp| { - instance.list_bucket_access_controls(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { - instance.update_bucket_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { - instance.patch_bucket_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_BUCKET, move |ctx, req, resp| { - instance.delete_bucket(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_BUCKET, move |ctx, req, resp| { - instance.get_bucket(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_BUCKET, move |ctx, req, resp| { - instance.insert_bucket(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_CHANNELS, move |ctx, req, resp| { - instance.list_channels(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_BUCKETS, move |ctx, req, resp| { - instance.list_buckets(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LOCK_BUCKET_RETENTION_POLICY, move |ctx, req, resp| { - instance.lock_bucket_retention_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_BUCKET_IAM_POLICY, move |ctx, req, resp| { - instance.get_bucket_iam_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_SET_BUCKET_IAM_POLICY, move |ctx, req, resp| { - instance.set_bucket_iam_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_TEST_BUCKET_IAM_PERMISSIONS, move |ctx, req, resp| { - instance.test_bucket_iam_permissions(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_BUCKET, move |ctx, req, resp| { - instance.patch_bucket(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_BUCKET, move |ctx, req, resp| { - instance.update_bucket(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_STOP_CHANNEL, move |ctx, req, resp| { - instance.stop_channel(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.delete_default_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.get_default_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.insert_default_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_DEFAULT_OBJECT_ACCESS_CONTROLS, move |ctx, req, resp| { - instance.list_default_object_access_controls(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.patch_default_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.update_default_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_NOTIFICATION, move |ctx, req, resp| { - instance.delete_notification(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_NOTIFICATION, move |ctx, req, resp| { - instance.get_notification(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_NOTIFICATION, move |ctx, req, resp| { - instance.insert_notification(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_NOTIFICATIONS, move |ctx, req, resp| { - instance.list_notifications(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.delete_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.get_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.insert_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_OBJECT_ACCESS_CONTROLS, move |ctx, req, resp| { - instance.list_object_access_controls(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.patch_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { - instance.update_object_access_control(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_COMPOSE_OBJECT, move |ctx, req, resp| { - instance.compose_object(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_COPY_OBJECT, move |ctx, req, resp| { - instance.copy_object(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_OBJECT, move |ctx, req, resp| { - instance.delete_object(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_OBJECT, move |ctx, req, resp| { - instance.get_object(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_server_streaming_handler(&METHOD_STORAGE_GET_OBJECT_MEDIA, move |ctx, req, resp| { - instance.get_object_media(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_client_streaming_handler(&METHOD_STORAGE_INSERT_OBJECT, move |ctx, req, resp| { - instance.insert_object(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_OBJECTS, move |ctx, req, resp| { - instance.list_objects(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_REWRITE_OBJECT, move |ctx, req, resp| { - instance.rewrite_object(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_START_RESUMABLE_WRITE, move |ctx, req, resp| { - instance.start_resumable_write(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_QUERY_WRITE_STATUS, move |ctx, req, resp| { - instance.query_write_status(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_OBJECT, move |ctx, req, resp| { - instance.patch_object(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_OBJECT, move |ctx, req, resp| { - instance.update_object(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_OBJECT_IAM_POLICY, move |ctx, req, resp| { - instance.get_object_iam_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_SET_OBJECT_IAM_POLICY, move |ctx, req, resp| { - instance.set_object_iam_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_TEST_OBJECT_IAM_PERMISSIONS, move |ctx, req, resp| { - instance.test_object_iam_permissions(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_WATCH_ALL_OBJECTS, move |ctx, req, resp| { - instance.watch_all_objects(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_SERVICE_ACCOUNT, move |ctx, req, resp| { - instance.get_service_account(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_CREATE_HMAC_KEY, move |ctx, req, resp| { - instance.create_hmac_key(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_HMAC_KEY, move |ctx, req, resp| { - instance.delete_hmac_key(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_GET_HMAC_KEY, move |ctx, req, resp| { - instance.get_hmac_key(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_HMAC_KEYS, move |ctx, req, resp| { - instance.list_hmac_keys(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_HMAC_KEY, move |ctx, req, resp| { - instance.update_hmac_key(ctx, req, resp) - }); - builder.build() -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_resources.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_resources.rs deleted file mode 100644 index 84a9aa9cb8..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_resources.rs +++ /dev/null @@ -1,12530 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/storage/v1/storage_resources.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket { - // message fields - pub acl: ::protobuf::RepeatedField, - pub default_object_acl: ::protobuf::RepeatedField, - pub lifecycle: ::protobuf::SingularPtrField, - pub time_created: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub id: ::std::string::String, - pub name: ::std::string::String, - pub project_number: i64, - pub metageneration: i64, - pub cors: ::protobuf::RepeatedField, - pub location: ::std::string::String, - pub storage_class: ::std::string::String, - pub etag: ::std::string::String, - pub updated: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub default_event_based_hold: bool, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub website: ::protobuf::SingularPtrField, - pub versioning: ::protobuf::SingularPtrField, - pub logging: ::protobuf::SingularPtrField, - pub owner: ::protobuf::SingularPtrField, - pub encryption: ::protobuf::SingularPtrField, - pub billing: ::protobuf::SingularPtrField, - pub retention_policy: ::protobuf::SingularPtrField, - pub location_type: ::std::string::String, - pub iam_configuration: ::protobuf::SingularPtrField, - pub zone_affinity: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket { - fn default() -> &'a Bucket { - ::default_instance() - } -} - -impl Bucket { - pub fn new() -> Bucket { - ::std::default::Default::default() - } - - // repeated .google.storage.v1.BucketAccessControl acl = 1; - - - pub fn get_acl(&self) -> &[BucketAccessControl] { - &self.acl - } - pub fn clear_acl(&mut self) { - self.acl.clear(); - } - - // Param is passed by value, moved - pub fn set_acl(&mut self, v: ::protobuf::RepeatedField) { - self.acl = v; - } - - // Mutable pointer to the field. - pub fn mut_acl(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.acl - } - - // Take field - pub fn take_acl(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.acl, ::protobuf::RepeatedField::new()) - } - - // repeated .google.storage.v1.ObjectAccessControl default_object_acl = 2; - - - pub fn get_default_object_acl(&self) -> &[ObjectAccessControl] { - &self.default_object_acl - } - pub fn clear_default_object_acl(&mut self) { - self.default_object_acl.clear(); - } - - // Param is passed by value, moved - pub fn set_default_object_acl(&mut self, v: ::protobuf::RepeatedField) { - self.default_object_acl = v; - } - - // Mutable pointer to the field. - pub fn mut_default_object_acl(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.default_object_acl - } - - // Take field - pub fn take_default_object_acl(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.default_object_acl, ::protobuf::RepeatedField::new()) - } - - // .google.storage.v1.Bucket.Lifecycle lifecycle = 3; - - - pub fn get_lifecycle(&self) -> &Bucket_Lifecycle { - self.lifecycle.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_lifecycle(&mut self) { - self.lifecycle.clear(); - } - - pub fn has_lifecycle(&self) -> bool { - self.lifecycle.is_some() - } - - // Param is passed by value, moved - pub fn set_lifecycle(&mut self, v: Bucket_Lifecycle) { - self.lifecycle = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_lifecycle(&mut self) -> &mut Bucket_Lifecycle { - if self.lifecycle.is_none() { - self.lifecycle.set_default(); - } - self.lifecycle.as_mut().unwrap() - } - - // Take field - pub fn take_lifecycle(&mut self) -> Bucket_Lifecycle { - self.lifecycle.take().unwrap_or_else(|| Bucket_Lifecycle::new()) - } - - // .google.protobuf.Timestamp time_created = 4; - - - pub fn get_time_created(&self) -> &::protobuf::well_known_types::Timestamp { - self.time_created.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_time_created(&mut self) { - self.time_created.clear(); - } - - pub fn has_time_created(&self) -> bool { - self.time_created.is_some() - } - - // Param is passed by value, moved - pub fn set_time_created(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.time_created = ::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_created(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.time_created.is_none() { - self.time_created.set_default(); - } - self.time_created.as_mut().unwrap() - } - - // Take field - pub fn take_time_created(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.time_created.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // 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()) - } - - // 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()) - } - - // int64 project_number = 7; - - - 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; - } - - // int64 metageneration = 8; - - - pub fn get_metageneration(&self) -> i64 { - self.metageneration - } - pub fn clear_metageneration(&mut self) { - self.metageneration = 0; - } - - // Param is passed by value, moved - pub fn set_metageneration(&mut self, v: i64) { - self.metageneration = v; - } - - // repeated .google.storage.v1.Bucket.Cors cors = 9; - - - pub fn get_cors(&self) -> &[Bucket_Cors] { - &self.cors - } - pub fn clear_cors(&mut self) { - self.cors.clear(); - } - - // Param is passed by value, moved - pub fn set_cors(&mut self, v: ::protobuf::RepeatedField) { - self.cors = v; - } - - // Mutable pointer to the field. - pub fn mut_cors(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.cors - } - - // Take field - pub fn take_cors(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.cors, ::protobuf::RepeatedField::new()) - } - - // string location = 10; - - - 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()) - } - - // string storage_class = 11; - - - pub fn get_storage_class(&self) -> &str { - &self.storage_class - } - pub fn clear_storage_class(&mut self) { - self.storage_class.clear(); - } - - // Param is passed by value, moved - pub fn set_storage_class(&mut self, v: ::std::string::String) { - self.storage_class = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_storage_class(&mut self) -> &mut ::std::string::String { - &mut self.storage_class - } - - // Take field - pub fn take_storage_class(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.storage_class, ::std::string::String::new()) - } - - // string etag = 12; - - - 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 updated = 13; - - - pub fn get_updated(&self) -> &::protobuf::well_known_types::Timestamp { - self.updated.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_updated(&mut self) { - self.updated.clear(); - } - - pub fn has_updated(&self) -> bool { - self.updated.is_some() - } - - // Param is passed by value, moved - pub fn set_updated(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.updated = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_updated(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.updated.is_none() { - self.updated.set_default(); - } - self.updated.as_mut().unwrap() - } - - // Take field - pub fn take_updated(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.updated.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // bool default_event_based_hold = 14; - - - pub fn get_default_event_based_hold(&self) -> bool { - self.default_event_based_hold - } - pub fn clear_default_event_based_hold(&mut self) { - self.default_event_based_hold = false; - } - - // Param is passed by value, moved - pub fn set_default_event_based_hold(&mut self, v: bool) { - self.default_event_based_hold = v; - } - - // repeated .google.storage.v1.Bucket.LabelsEntry labels = 15; - - - 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.storage.v1.Bucket.Website website = 16; - - - pub fn get_website(&self) -> &Bucket_Website { - self.website.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_website(&mut self) { - self.website.clear(); - } - - pub fn has_website(&self) -> bool { - self.website.is_some() - } - - // Param is passed by value, moved - pub fn set_website(&mut self, v: Bucket_Website) { - self.website = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_website(&mut self) -> &mut Bucket_Website { - if self.website.is_none() { - self.website.set_default(); - } - self.website.as_mut().unwrap() - } - - // Take field - pub fn take_website(&mut self) -> Bucket_Website { - self.website.take().unwrap_or_else(|| Bucket_Website::new()) - } - - // .google.storage.v1.Bucket.Versioning versioning = 17; - - - pub fn get_versioning(&self) -> &Bucket_Versioning { - self.versioning.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_versioning(&mut self) { - self.versioning.clear(); - } - - pub fn has_versioning(&self) -> bool { - self.versioning.is_some() - } - - // Param is passed by value, moved - pub fn set_versioning(&mut self, v: Bucket_Versioning) { - self.versioning = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_versioning(&mut self) -> &mut Bucket_Versioning { - if self.versioning.is_none() { - self.versioning.set_default(); - } - self.versioning.as_mut().unwrap() - } - - // Take field - pub fn take_versioning(&mut self) -> Bucket_Versioning { - self.versioning.take().unwrap_or_else(|| Bucket_Versioning::new()) - } - - // .google.storage.v1.Bucket.Logging logging = 18; - - - pub fn get_logging(&self) -> &Bucket_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: Bucket_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 Bucket_Logging { - if self.logging.is_none() { - self.logging.set_default(); - } - self.logging.as_mut().unwrap() - } - - // Take field - pub fn take_logging(&mut self) -> Bucket_Logging { - self.logging.take().unwrap_or_else(|| Bucket_Logging::new()) - } - - // .google.storage.v1.Owner owner = 19; - - - pub fn get_owner(&self) -> &Owner { - self.owner.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_owner(&mut self) { - self.owner.clear(); - } - - pub fn has_owner(&self) -> bool { - self.owner.is_some() - } - - // Param is passed by value, moved - pub fn set_owner(&mut self, v: Owner) { - self.owner = ::protobuf::SingularPtrField::some(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 Owner { - if self.owner.is_none() { - self.owner.set_default(); - } - self.owner.as_mut().unwrap() - } - - // Take field - pub fn take_owner(&mut self) -> Owner { - self.owner.take().unwrap_or_else(|| Owner::new()) - } - - // .google.storage.v1.Bucket.Encryption encryption = 20; - - - pub fn get_encryption(&self) -> &Bucket_Encryption { - self.encryption.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption(&mut self) { - self.encryption.clear(); - } - - pub fn has_encryption(&self) -> bool { - self.encryption.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption(&mut self, v: Bucket_Encryption) { - self.encryption = ::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(&mut self) -> &mut Bucket_Encryption { - if self.encryption.is_none() { - self.encryption.set_default(); - } - self.encryption.as_mut().unwrap() - } - - // Take field - pub fn take_encryption(&mut self) -> Bucket_Encryption { - self.encryption.take().unwrap_or_else(|| Bucket_Encryption::new()) - } - - // .google.storage.v1.Bucket.Billing billing = 21; - - - pub fn get_billing(&self) -> &Bucket_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: Bucket_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 Bucket_Billing { - if self.billing.is_none() { - self.billing.set_default(); - } - self.billing.as_mut().unwrap() - } - - // Take field - pub fn take_billing(&mut self) -> Bucket_Billing { - self.billing.take().unwrap_or_else(|| Bucket_Billing::new()) - } - - // .google.storage.v1.Bucket.RetentionPolicy retention_policy = 22; - - - pub fn get_retention_policy(&self) -> &Bucket_RetentionPolicy { - self.retention_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_retention_policy(&mut self) { - self.retention_policy.clear(); - } - - pub fn has_retention_policy(&self) -> bool { - self.retention_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_retention_policy(&mut self, v: Bucket_RetentionPolicy) { - self.retention_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_retention_policy(&mut self) -> &mut Bucket_RetentionPolicy { - if self.retention_policy.is_none() { - self.retention_policy.set_default(); - } - self.retention_policy.as_mut().unwrap() - } - - // Take field - pub fn take_retention_policy(&mut self) -> Bucket_RetentionPolicy { - self.retention_policy.take().unwrap_or_else(|| Bucket_RetentionPolicy::new()) - } - - // string location_type = 23; - - - pub fn get_location_type(&self) -> &str { - &self.location_type - } - pub fn clear_location_type(&mut self) { - self.location_type.clear(); - } - - // Param is passed by value, moved - pub fn set_location_type(&mut self, v: ::std::string::String) { - self.location_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_location_type(&mut self) -> &mut ::std::string::String { - &mut self.location_type - } - - // Take field - pub fn take_location_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.location_type, ::std::string::String::new()) - } - - // .google.storage.v1.Bucket.IamConfiguration iam_configuration = 24; - - - pub fn get_iam_configuration(&self) -> &Bucket_IamConfiguration { - self.iam_configuration.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_iam_configuration(&mut self) { - self.iam_configuration.clear(); - } - - pub fn has_iam_configuration(&self) -> bool { - self.iam_configuration.is_some() - } - - // Param is passed by value, moved - pub fn set_iam_configuration(&mut self, v: Bucket_IamConfiguration) { - self.iam_configuration = ::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_configuration(&mut self) -> &mut Bucket_IamConfiguration { - if self.iam_configuration.is_none() { - self.iam_configuration.set_default(); - } - self.iam_configuration.as_mut().unwrap() - } - - // Take field - pub fn take_iam_configuration(&mut self) -> Bucket_IamConfiguration { - self.iam_configuration.take().unwrap_or_else(|| Bucket_IamConfiguration::new()) - } - - // repeated string zone_affinity = 25; - - - pub fn get_zone_affinity(&self) -> &[::std::string::String] { - &self.zone_affinity - } - pub fn clear_zone_affinity(&mut self) { - self.zone_affinity.clear(); - } - - // Param is passed by value, moved - pub fn set_zone_affinity(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.zone_affinity = v; - } - - // Mutable pointer to the field. - pub fn mut_zone_affinity(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.zone_affinity - } - - // Take field - pub fn take_zone_affinity(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.zone_affinity, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Bucket { - fn is_initialized(&self) -> bool { - for v in &self.acl { - if !v.is_initialized() { - return false; - } - }; - for v in &self.default_object_acl { - if !v.is_initialized() { - return false; - } - }; - for v in &self.lifecycle { - if !v.is_initialized() { - return false; - } - }; - for v in &self.time_created { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cors { - if !v.is_initialized() { - return false; - } - }; - for v in &self.updated { - if !v.is_initialized() { - return false; - } - }; - for v in &self.website { - if !v.is_initialized() { - return false; - } - }; - for v in &self.versioning { - if !v.is_initialized() { - return false; - } - }; - for v in &self.logging { - if !v.is_initialized() { - return false; - } - }; - for v in &self.owner { - if !v.is_initialized() { - return false; - } - }; - for v in &self.encryption { - if !v.is_initialized() { - return false; - } - }; - for v in &self.billing { - if !v.is_initialized() { - return false; - } - }; - for v in &self.retention_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.iam_configuration { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &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.acl)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.default_object_acl)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.lifecycle)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_created)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 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.project_number = 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.metageneration = tmp; - }, - 9 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cors)?; - }, - 10 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location)?; - }, - 11 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.storage_class)?; - }, - 12 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 13 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.updated)?; - }, - 14 => { - 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_event_based_hold = tmp; - }, - 15 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 16 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.website)?; - }, - 17 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.versioning)?; - }, - 18 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.logging)?; - }, - 19 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.owner)?; - }, - 20 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption)?; - }, - 21 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.billing)?; - }, - 22 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.retention_policy)?; - }, - 23 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location_type)?; - }, - 24 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.iam_configuration)?; - }, - 25 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.zone_affinity)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.acl { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.default_object_acl { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.lifecycle.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_created.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.id); - } - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.name); - } - if self.project_number != 0 { - my_size += ::protobuf::rt::value_size(7, self.project_number, ::protobuf::wire_format::WireTypeVarint); - } - if self.metageneration != 0 { - my_size += ::protobuf::rt::value_size(8, self.metageneration, ::protobuf::wire_format::WireTypeVarint); - } - for value in &self.cors { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.location.is_empty() { - my_size += ::protobuf::rt::string_size(10, &self.location); - } - if !self.storage_class.is_empty() { - my_size += ::protobuf::rt::string_size(11, &self.storage_class); - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(12, &self.etag); - } - if let Some(ref v) = self.updated.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.default_event_based_hold != false { - my_size += 2; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(15, &self.labels); - if let Some(ref v) = self.website.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.versioning.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.owner.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.encryption.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_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.retention_policy.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.location_type.is_empty() { - my_size += ::protobuf::rt::string_size(23, &self.location_type); - } - if let Some(ref v) = self.iam_configuration.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.zone_affinity { - my_size += ::protobuf::rt::string_size(25, &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.acl { - 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.default_object_acl { - 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.lifecycle.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_created.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.id.is_empty() { - os.write_string(5, &self.id)?; - } - if !self.name.is_empty() { - os.write_string(6, &self.name)?; - } - if self.project_number != 0 { - os.write_int64(7, self.project_number)?; - } - if self.metageneration != 0 { - os.write_int64(8, self.metageneration)?; - } - for v in &self.cors { - 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.location.is_empty() { - os.write_string(10, &self.location)?; - } - if !self.storage_class.is_empty() { - os.write_string(11, &self.storage_class)?; - } - if !self.etag.is_empty() { - os.write_string(12, &self.etag)?; - } - if let Some(ref v) = self.updated.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.default_event_based_hold != false { - os.write_bool(14, self.default_event_based_hold)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(15, &self.labels, os)?; - if let Some(ref v) = self.website.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.versioning.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 let Some(ref v) = self.logging.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.owner.as_ref() { - os.write_tag(19, ::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.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)?; - } - if let Some(ref v) = self.billing.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.retention_policy.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.location_type.is_empty() { - os.write_string(23, &self.location_type)?; - } - if let Some(ref v) = self.iam_configuration.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)?; - } - for v in &self.zone_affinity { - os.write_string(25, &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() -> Bucket { - Bucket::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "acl", - |m: &Bucket| { &m.acl }, - |m: &mut Bucket| { &mut m.acl }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "default_object_acl", - |m: &Bucket| { &m.default_object_acl }, - |m: &mut Bucket| { &mut m.default_object_acl }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "lifecycle", - |m: &Bucket| { &m.lifecycle }, - |m: &mut Bucket| { &mut m.lifecycle }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "time_created", - |m: &Bucket| { &m.time_created }, - |m: &mut Bucket| { &mut m.time_created }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Bucket| { &m.id }, - |m: &mut Bucket| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Bucket| { &m.name }, - |m: &mut Bucket| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "project_number", - |m: &Bucket| { &m.project_number }, - |m: &mut Bucket| { &mut m.project_number }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "metageneration", - |m: &Bucket| { &m.metageneration }, - |m: &mut Bucket| { &mut m.metageneration }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cors", - |m: &Bucket| { &m.cors }, - |m: &mut Bucket| { &mut m.cors }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "location", - |m: &Bucket| { &m.location }, - |m: &mut Bucket| { &mut m.location }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "storage_class", - |m: &Bucket| { &m.storage_class }, - |m: &mut Bucket| { &mut m.storage_class }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &Bucket| { &m.etag }, - |m: &mut Bucket| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "updated", - |m: &Bucket| { &m.updated }, - |m: &mut Bucket| { &mut m.updated }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "default_event_based_hold", - |m: &Bucket| { &m.default_event_based_hold }, - |m: &mut Bucket| { &mut m.default_event_based_hold }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Bucket| { &m.labels }, - |m: &mut Bucket| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "website", - |m: &Bucket| { &m.website }, - |m: &mut Bucket| { &mut m.website }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "versioning", - |m: &Bucket| { &m.versioning }, - |m: &mut Bucket| { &mut m.versioning }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "logging", - |m: &Bucket| { &m.logging }, - |m: &mut Bucket| { &mut m.logging }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "owner", - |m: &Bucket| { &m.owner }, - |m: &mut Bucket| { &mut m.owner }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption", - |m: &Bucket| { &m.encryption }, - |m: &mut Bucket| { &mut m.encryption }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "billing", - |m: &Bucket| { &m.billing }, - |m: &mut Bucket| { &mut m.billing }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "retention_policy", - |m: &Bucket| { &m.retention_policy }, - |m: &mut Bucket| { &mut m.retention_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "location_type", - |m: &Bucket| { &m.location_type }, - |m: &mut Bucket| { &mut m.location_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "iam_configuration", - |m: &Bucket| { &m.iam_configuration }, - |m: &mut Bucket| { &mut m.iam_configuration }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "zone_affinity", - |m: &Bucket| { &m.zone_affinity }, - |m: &mut Bucket| { &mut m.zone_affinity }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket::new) - } -} - -impl ::protobuf::Clear for Bucket { - fn clear(&mut self) { - self.acl.clear(); - self.default_object_acl.clear(); - self.lifecycle.clear(); - self.time_created.clear(); - self.id.clear(); - self.name.clear(); - self.project_number = 0; - self.metageneration = 0; - self.cors.clear(); - self.location.clear(); - self.storage_class.clear(); - self.etag.clear(); - self.updated.clear(); - self.default_event_based_hold = false; - self.labels.clear(); - self.website.clear(); - self.versioning.clear(); - self.logging.clear(); - self.owner.clear(); - self.encryption.clear(); - self.billing.clear(); - self.retention_policy.clear(); - self.location_type.clear(); - self.iam_configuration.clear(); - self.zone_affinity.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Billing { - // message fields - pub requester_pays: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Billing { - fn default() -> &'a Bucket_Billing { - ::default_instance() - } -} - -impl Bucket_Billing { - pub fn new() -> Bucket_Billing { - ::std::default::Default::default() - } - - // bool requester_pays = 1; - - - pub fn get_requester_pays(&self) -> bool { - self.requester_pays - } - pub fn clear_requester_pays(&mut self) { - self.requester_pays = false; - } - - // Param is passed by value, moved - pub fn set_requester_pays(&mut self, v: bool) { - self.requester_pays = v; - } -} - -impl ::protobuf::Message for Bucket_Billing { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&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.requester_pays = 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.requester_pays != 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.requester_pays != false { - os.write_bool(1, self.requester_pays)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Bucket_Billing { - Bucket_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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "requester_pays", - |m: &Bucket_Billing| { &m.requester_pays }, - |m: &mut Bucket_Billing| { &mut m.requester_pays }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Billing", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Billing { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Billing::new) - } -} - -impl ::protobuf::Clear for Bucket_Billing { - fn clear(&mut self) { - self.requester_pays = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Billing { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Billing { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Cors { - // message fields - pub origin: ::protobuf::RepeatedField<::std::string::String>, - pub method: ::protobuf::RepeatedField<::std::string::String>, - pub response_header: ::protobuf::RepeatedField<::std::string::String>, - pub max_age_seconds: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Cors { - fn default() -> &'a Bucket_Cors { - ::default_instance() - } -} - -impl Bucket_Cors { - pub fn new() -> Bucket_Cors { - ::std::default::Default::default() - } - - // repeated string origin = 1; - - - pub fn get_origin(&self) -> &[::std::string::String] { - &self.origin - } - pub fn clear_origin(&mut self) { - self.origin.clear(); - } - - // Param is passed by value, moved - pub fn set_origin(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.origin = v; - } - - // Mutable pointer to the field. - pub fn mut_origin(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.origin - } - - // Take field - pub fn take_origin(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.origin, ::protobuf::RepeatedField::new()) - } - - // repeated string method = 2; - - - pub fn get_method(&self) -> &[::std::string::String] { - &self.method - } - pub fn clear_method(&mut self) { - self.method.clear(); - } - - // Param is passed by value, moved - pub fn set_method(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.method = v; - } - - // Mutable pointer to the field. - pub fn mut_method(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.method - } - - // Take field - pub fn take_method(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.method, ::protobuf::RepeatedField::new()) - } - - // repeated string response_header = 3; - - - pub fn get_response_header(&self) -> &[::std::string::String] { - &self.response_header - } - pub fn clear_response_header(&mut self) { - self.response_header.clear(); - } - - // Param is passed by value, moved - pub fn set_response_header(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.response_header = v; - } - - // Mutable pointer to the field. - pub fn mut_response_header(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.response_header - } - - // Take field - pub fn take_response_header(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.response_header, ::protobuf::RepeatedField::new()) - } - - // int32 max_age_seconds = 4; - - - pub fn get_max_age_seconds(&self) -> i32 { - self.max_age_seconds - } - pub fn clear_max_age_seconds(&mut self) { - self.max_age_seconds = 0; - } - - // Param is passed by value, moved - pub fn set_max_age_seconds(&mut self, v: i32) { - self.max_age_seconds = v; - } -} - -impl ::protobuf::Message for Bucket_Cors { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &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.origin)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.method)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.response_header)?; - }, - 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.max_age_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; - for value in &self.origin { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.method { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.response_header { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.max_age_seconds != 0 { - my_size += ::protobuf::rt::value_size(4, self.max_age_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<()> { - for v in &self.origin { - os.write_string(1, &v)?; - }; - for v in &self.method { - os.write_string(2, &v)?; - }; - for v in &self.response_header { - os.write_string(3, &v)?; - }; - if self.max_age_seconds != 0 { - os.write_int32(4, self.max_age_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() -> Bucket_Cors { - Bucket_Cors::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "origin", - |m: &Bucket_Cors| { &m.origin }, - |m: &mut Bucket_Cors| { &mut m.origin }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "method", - |m: &Bucket_Cors| { &m.method }, - |m: &mut Bucket_Cors| { &mut m.method }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "response_header", - |m: &Bucket_Cors| { &m.response_header }, - |m: &mut Bucket_Cors| { &mut m.response_header }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "max_age_seconds", - |m: &Bucket_Cors| { &m.max_age_seconds }, - |m: &mut Bucket_Cors| { &mut m.max_age_seconds }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Cors", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Cors { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Cors::new) - } -} - -impl ::protobuf::Clear for Bucket_Cors { - fn clear(&mut self) { - self.origin.clear(); - self.method.clear(); - self.response_header.clear(); - self.max_age_seconds = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Cors { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Cors { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Encryption { - // message fields - pub default_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 Bucket_Encryption { - fn default() -> &'a Bucket_Encryption { - ::default_instance() - } -} - -impl Bucket_Encryption { - pub fn new() -> Bucket_Encryption { - ::std::default::Default::default() - } - - // string default_kms_key_name = 1; - - - pub fn get_default_kms_key_name(&self) -> &str { - &self.default_kms_key_name - } - pub fn clear_default_kms_key_name(&mut self) { - self.default_kms_key_name.clear(); - } - - // Param is passed by value, moved - pub fn set_default_kms_key_name(&mut self, v: ::std::string::String) { - self.default_kms_key_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_default_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.default_kms_key_name - } - - // Take field - pub fn take_default_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.default_kms_key_name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Bucket_Encryption { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.default_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.default_kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.default_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.default_kms_key_name.is_empty() { - os.write_string(1, &self.default_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() -> Bucket_Encryption { - Bucket_Encryption::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "default_kms_key_name", - |m: &Bucket_Encryption| { &m.default_kms_key_name }, - |m: &mut Bucket_Encryption| { &mut m.default_kms_key_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Encryption", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Encryption { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Encryption::new) - } -} - -impl ::protobuf::Clear for Bucket_Encryption { - fn clear(&mut self) { - self.default_kms_key_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Encryption { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Encryption { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_IamConfiguration { - // message fields - pub uniform_bucket_level_access: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_IamConfiguration { - fn default() -> &'a Bucket_IamConfiguration { - ::default_instance() - } -} - -impl Bucket_IamConfiguration { - pub fn new() -> Bucket_IamConfiguration { - ::std::default::Default::default() - } - - // .google.storage.v1.Bucket.IamConfiguration.UniformBucketLevelAccess uniform_bucket_level_access = 1; - - - pub fn get_uniform_bucket_level_access(&self) -> &Bucket_IamConfiguration_UniformBucketLevelAccess { - self.uniform_bucket_level_access.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_uniform_bucket_level_access(&mut self) { - self.uniform_bucket_level_access.clear(); - } - - pub fn has_uniform_bucket_level_access(&self) -> bool { - self.uniform_bucket_level_access.is_some() - } - - // Param is passed by value, moved - pub fn set_uniform_bucket_level_access(&mut self, v: Bucket_IamConfiguration_UniformBucketLevelAccess) { - self.uniform_bucket_level_access = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uniform_bucket_level_access(&mut self) -> &mut Bucket_IamConfiguration_UniformBucketLevelAccess { - if self.uniform_bucket_level_access.is_none() { - self.uniform_bucket_level_access.set_default(); - } - self.uniform_bucket_level_access.as_mut().unwrap() - } - - // Take field - pub fn take_uniform_bucket_level_access(&mut self) -> Bucket_IamConfiguration_UniformBucketLevelAccess { - self.uniform_bucket_level_access.take().unwrap_or_else(|| Bucket_IamConfiguration_UniformBucketLevelAccess::new()) - } -} - -impl ::protobuf::Message for Bucket_IamConfiguration { - fn is_initialized(&self) -> bool { - for v in &self.uniform_bucket_level_access { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::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.uniform_bucket_level_access)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.uniform_bucket_level_access.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.uniform_bucket_level_access.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() -> Bucket_IamConfiguration { - Bucket_IamConfiguration::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "uniform_bucket_level_access", - |m: &Bucket_IamConfiguration| { &m.uniform_bucket_level_access }, - |m: &mut Bucket_IamConfiguration| { &mut m.uniform_bucket_level_access }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.IamConfiguration", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_IamConfiguration { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_IamConfiguration::new) - } -} - -impl ::protobuf::Clear for Bucket_IamConfiguration { - fn clear(&mut self) { - self.uniform_bucket_level_access.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_IamConfiguration { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_IamConfiguration { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_IamConfiguration_UniformBucketLevelAccess { - // message fields - pub enabled: bool, - pub locked_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 Bucket_IamConfiguration_UniformBucketLevelAccess { - fn default() -> &'a Bucket_IamConfiguration_UniformBucketLevelAccess { - ::default_instance() - } -} - -impl Bucket_IamConfiguration_UniformBucketLevelAccess { - pub fn new() -> Bucket_IamConfiguration_UniformBucketLevelAccess { - ::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; - } - - // .google.protobuf.Timestamp locked_time = 2; - - - pub fn get_locked_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.locked_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_locked_time(&mut self) { - self.locked_time.clear(); - } - - pub fn has_locked_time(&self) -> bool { - self.locked_time.is_some() - } - - // Param is passed by value, moved - pub fn set_locked_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.locked_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_locked_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.locked_time.is_none() { - self.locked_time.set_default(); - } - self.locked_time.as_mut().unwrap() - } - - // Take field - pub fn take_locked_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.locked_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Bucket_IamConfiguration_UniformBucketLevelAccess { - fn is_initialized(&self) -> bool { - for v in &self.locked_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_bool()?; - self.enabled = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.locked_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.enabled != false { - my_size += 2; - } - if let Some(ref v) = self.locked_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.enabled != false { - os.write_bool(1, self.enabled)?; - } - if let Some(ref v) = self.locked_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() -> Bucket_IamConfiguration_UniformBucketLevelAccess { - Bucket_IamConfiguration_UniformBucketLevelAccess::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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: &Bucket_IamConfiguration_UniformBucketLevelAccess| { &m.enabled }, - |m: &mut Bucket_IamConfiguration_UniformBucketLevelAccess| { &mut m.enabled }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "locked_time", - |m: &Bucket_IamConfiguration_UniformBucketLevelAccess| { &m.locked_time }, - |m: &mut Bucket_IamConfiguration_UniformBucketLevelAccess| { &mut m.locked_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.IamConfiguration.UniformBucketLevelAccess", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_IamConfiguration_UniformBucketLevelAccess { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_IamConfiguration_UniformBucketLevelAccess::new) - } -} - -impl ::protobuf::Clear for Bucket_IamConfiguration_UniformBucketLevelAccess { - fn clear(&mut self) { - self.enabled = false; - self.locked_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_IamConfiguration_UniformBucketLevelAccess { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_IamConfiguration_UniformBucketLevelAccess { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Lifecycle { - // message fields - pub rule: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Lifecycle { - fn default() -> &'a Bucket_Lifecycle { - ::default_instance() - } -} - -impl Bucket_Lifecycle { - pub fn new() -> Bucket_Lifecycle { - ::std::default::Default::default() - } - - // repeated .google.storage.v1.Bucket.Lifecycle.Rule rule = 1; - - - pub fn get_rule(&self) -> &[Bucket_Lifecycle_Rule] { - &self.rule - } - pub fn clear_rule(&mut self) { - self.rule.clear(); - } - - // Param is passed by value, moved - pub fn set_rule(&mut self, v: ::protobuf::RepeatedField) { - self.rule = v; - } - - // Mutable pointer to the field. - pub fn mut_rule(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rule - } - - // Take field - pub fn take_rule(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rule, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Bucket_Lifecycle { - fn is_initialized(&self) -> bool { - for v in &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 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.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; - for value in &self.rule { - 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.rule { - 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() -> Bucket_Lifecycle { - Bucket_Lifecycle::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "rule", - |m: &Bucket_Lifecycle| { &m.rule }, - |m: &mut Bucket_Lifecycle| { &mut m.rule }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Lifecycle", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Lifecycle { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Lifecycle::new) - } -} - -impl ::protobuf::Clear for Bucket_Lifecycle { - fn clear(&mut self) { - self.rule.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Lifecycle { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Lifecycle { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Lifecycle_Rule { - // message fields - pub action: ::protobuf::SingularPtrField, - pub condition: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Lifecycle_Rule { - fn default() -> &'a Bucket_Lifecycle_Rule { - ::default_instance() - } -} - -impl Bucket_Lifecycle_Rule { - pub fn new() -> Bucket_Lifecycle_Rule { - ::std::default::Default::default() - } - - // .google.storage.v1.Bucket.Lifecycle.Rule.Action action = 1; - - - pub fn get_action(&self) -> &Bucket_Lifecycle_Rule_Action { - self.action.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_action(&mut self) { - self.action.clear(); - } - - pub fn has_action(&self) -> bool { - self.action.is_some() - } - - // Param is passed by value, moved - pub fn set_action(&mut self, v: Bucket_Lifecycle_Rule_Action) { - self.action = ::protobuf::SingularPtrField::some(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 Bucket_Lifecycle_Rule_Action { - if self.action.is_none() { - self.action.set_default(); - } - self.action.as_mut().unwrap() - } - - // Take field - pub fn take_action(&mut self) -> Bucket_Lifecycle_Rule_Action { - self.action.take().unwrap_or_else(|| Bucket_Lifecycle_Rule_Action::new()) - } - - // .google.storage.v1.Bucket.Lifecycle.Rule.Condition condition = 2; - - - pub fn get_condition(&self) -> &Bucket_Lifecycle_Rule_Condition { - 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: Bucket_Lifecycle_Rule_Condition) { - 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 Bucket_Lifecycle_Rule_Condition { - if self.condition.is_none() { - self.condition.set_default(); - } - self.condition.as_mut().unwrap() - } - - // Take field - pub fn take_condition(&mut self) -> Bucket_Lifecycle_Rule_Condition { - self.condition.take().unwrap_or_else(|| Bucket_Lifecycle_Rule_Condition::new()) - } -} - -impl ::protobuf::Message for Bucket_Lifecycle_Rule { - fn is_initialized(&self) -> bool { - for v in &self.action { - 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_message_into(wire_type, is, &mut self.action)?; - }, - 2 => { - ::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.action.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; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_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.action.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.condition.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() -> Bucket_Lifecycle_Rule { - Bucket_Lifecycle_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_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "action", - |m: &Bucket_Lifecycle_Rule| { &m.action }, - |m: &mut Bucket_Lifecycle_Rule| { &mut m.action }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "condition", - |m: &Bucket_Lifecycle_Rule| { &m.condition }, - |m: &mut Bucket_Lifecycle_Rule| { &mut m.condition }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Lifecycle.Rule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Lifecycle_Rule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Lifecycle_Rule::new) - } -} - -impl ::protobuf::Clear for Bucket_Lifecycle_Rule { - fn clear(&mut self) { - self.action.clear(); - self.condition.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Lifecycle_Rule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Lifecycle_Rule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Lifecycle_Rule_Action { - // message fields - pub field_type: ::std::string::String, - pub storage_class: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Lifecycle_Rule_Action { - fn default() -> &'a Bucket_Lifecycle_Rule_Action { - ::default_instance() - } -} - -impl Bucket_Lifecycle_Rule_Action { - pub fn new() -> Bucket_Lifecycle_Rule_Action { - ::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 storage_class = 2; - - - pub fn get_storage_class(&self) -> &str { - &self.storage_class - } - pub fn clear_storage_class(&mut self) { - self.storage_class.clear(); - } - - // Param is passed by value, moved - pub fn set_storage_class(&mut self, v: ::std::string::String) { - self.storage_class = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_storage_class(&mut self) -> &mut ::std::string::String { - &mut self.storage_class - } - - // Take field - pub fn take_storage_class(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.storage_class, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Bucket_Lifecycle_Rule_Action { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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.storage_class)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - if !self.storage_class.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.storage_class); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.storage_class.is_empty() { - os.write_string(2, &self.storage_class)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Bucket_Lifecycle_Rule_Action { - Bucket_Lifecycle_Rule_Action::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &Bucket_Lifecycle_Rule_Action| { &m.field_type }, - |m: &mut Bucket_Lifecycle_Rule_Action| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "storage_class", - |m: &Bucket_Lifecycle_Rule_Action| { &m.storage_class }, - |m: &mut Bucket_Lifecycle_Rule_Action| { &mut m.storage_class }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Lifecycle.Rule.Action", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Lifecycle_Rule_Action { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Lifecycle_Rule_Action::new) - } -} - -impl ::protobuf::Clear for Bucket_Lifecycle_Rule_Action { - fn clear(&mut self) { - self.field_type.clear(); - self.storage_class.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Lifecycle_Rule_Action { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Lifecycle_Rule_Action { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Lifecycle_Rule_Condition { - // message fields - pub age: i32, - pub created_before: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub is_live: ::protobuf::SingularPtrField<::protobuf::well_known_types::BoolValue>, - pub num_newer_versions: i32, - pub matches_storage_class: ::protobuf::RepeatedField<::std::string::String>, - pub matches_pattern: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Lifecycle_Rule_Condition { - fn default() -> &'a Bucket_Lifecycle_Rule_Condition { - ::default_instance() - } -} - -impl Bucket_Lifecycle_Rule_Condition { - pub fn new() -> Bucket_Lifecycle_Rule_Condition { - ::std::default::Default::default() - } - - // int32 age = 1; - - - pub fn get_age(&self) -> i32 { - self.age - } - pub fn clear_age(&mut self) { - self.age = 0; - } - - // Param is passed by value, moved - pub fn set_age(&mut self, v: i32) { - self.age = v; - } - - // .google.protobuf.Timestamp created_before = 2; - - - pub fn get_created_before(&self) -> &::protobuf::well_known_types::Timestamp { - self.created_before.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_created_before(&mut self) { - self.created_before.clear(); - } - - pub fn has_created_before(&self) -> bool { - self.created_before.is_some() - } - - // Param is passed by value, moved - pub fn set_created_before(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.created_before = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_created_before(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.created_before.is_none() { - self.created_before.set_default(); - } - self.created_before.as_mut().unwrap() - } - - // Take field - pub fn take_created_before(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.created_before.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.BoolValue is_live = 3; - - - pub fn get_is_live(&self) -> &::protobuf::well_known_types::BoolValue { - self.is_live.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::BoolValue as ::protobuf::Message>::default_instance()) - } - pub fn clear_is_live(&mut self) { - self.is_live.clear(); - } - - pub fn has_is_live(&self) -> bool { - self.is_live.is_some() - } - - // Param is passed by value, moved - pub fn set_is_live(&mut self, v: ::protobuf::well_known_types::BoolValue) { - self.is_live = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_is_live(&mut self) -> &mut ::protobuf::well_known_types::BoolValue { - if self.is_live.is_none() { - self.is_live.set_default(); - } - self.is_live.as_mut().unwrap() - } - - // Take field - pub fn take_is_live(&mut self) -> ::protobuf::well_known_types::BoolValue { - self.is_live.take().unwrap_or_else(|| ::protobuf::well_known_types::BoolValue::new()) - } - - // int32 num_newer_versions = 4; - - - pub fn get_num_newer_versions(&self) -> i32 { - self.num_newer_versions - } - pub fn clear_num_newer_versions(&mut self) { - self.num_newer_versions = 0; - } - - // Param is passed by value, moved - pub fn set_num_newer_versions(&mut self, v: i32) { - self.num_newer_versions = v; - } - - // repeated string matches_storage_class = 5; - - - pub fn get_matches_storage_class(&self) -> &[::std::string::String] { - &self.matches_storage_class - } - pub fn clear_matches_storage_class(&mut self) { - self.matches_storage_class.clear(); - } - - // Param is passed by value, moved - pub fn set_matches_storage_class(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.matches_storage_class = v; - } - - // Mutable pointer to the field. - pub fn mut_matches_storage_class(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.matches_storage_class - } - - // Take field - pub fn take_matches_storage_class(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.matches_storage_class, ::protobuf::RepeatedField::new()) - } - - // string matches_pattern = 6; - - - pub fn get_matches_pattern(&self) -> &str { - &self.matches_pattern - } - pub fn clear_matches_pattern(&mut self) { - self.matches_pattern.clear(); - } - - // Param is passed by value, moved - pub fn set_matches_pattern(&mut self, v: ::std::string::String) { - self.matches_pattern = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_matches_pattern(&mut self) -> &mut ::std::string::String { - &mut self.matches_pattern - } - - // Take field - pub fn take_matches_pattern(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.matches_pattern, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Bucket_Lifecycle_Rule_Condition { - fn is_initialized(&self) -> bool { - for v in &self.created_before { - if !v.is_initialized() { - return false; - } - }; - for v in &self.is_live { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&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.age = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.created_before)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.is_live)?; - }, - 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.num_newer_versions = tmp; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.matches_storage_class)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.matches_pattern)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.age != 0 { - my_size += ::protobuf::rt::value_size(1, self.age, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.created_before.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.is_live.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.num_newer_versions != 0 { - my_size += ::protobuf::rt::value_size(4, self.num_newer_versions, ::protobuf::wire_format::WireTypeVarint); - } - for value in &self.matches_storage_class { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if !self.matches_pattern.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.matches_pattern); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.age != 0 { - os.write_int32(1, self.age)?; - } - if let Some(ref v) = self.created_before.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.is_live.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.num_newer_versions != 0 { - os.write_int32(4, self.num_newer_versions)?; - } - for v in &self.matches_storage_class { - os.write_string(5, &v)?; - }; - if !self.matches_pattern.is_empty() { - os.write_string(6, &self.matches_pattern)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Bucket_Lifecycle_Rule_Condition { - Bucket_Lifecycle_Rule_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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "age", - |m: &Bucket_Lifecycle_Rule_Condition| { &m.age }, - |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.age }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "created_before", - |m: &Bucket_Lifecycle_Rule_Condition| { &m.created_before }, - |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.created_before }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::BoolValue>>( - "is_live", - |m: &Bucket_Lifecycle_Rule_Condition| { &m.is_live }, - |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.is_live }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "num_newer_versions", - |m: &Bucket_Lifecycle_Rule_Condition| { &m.num_newer_versions }, - |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.num_newer_versions }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "matches_storage_class", - |m: &Bucket_Lifecycle_Rule_Condition| { &m.matches_storage_class }, - |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.matches_storage_class }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "matches_pattern", - |m: &Bucket_Lifecycle_Rule_Condition| { &m.matches_pattern }, - |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.matches_pattern }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Lifecycle.Rule.Condition", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Lifecycle_Rule_Condition { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Lifecycle_Rule_Condition::new) - } -} - -impl ::protobuf::Clear for Bucket_Lifecycle_Rule_Condition { - fn clear(&mut self) { - self.age = 0; - self.created_before.clear(); - self.is_live.clear(); - self.num_newer_versions = 0; - self.matches_storage_class.clear(); - self.matches_pattern.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Lifecycle_Rule_Condition { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Lifecycle_Rule_Condition { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Logging { - // message fields - pub log_bucket: ::std::string::String, - pub log_object_prefix: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Logging { - fn default() -> &'a Bucket_Logging { - ::default_instance() - } -} - -impl Bucket_Logging { - pub fn new() -> Bucket_Logging { - ::std::default::Default::default() - } - - // string log_bucket = 1; - - - pub fn get_log_bucket(&self) -> &str { - &self.log_bucket - } - pub fn clear_log_bucket(&mut self) { - self.log_bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_log_bucket(&mut self, v: ::std::string::String) { - self.log_bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_log_bucket(&mut self) -> &mut ::std::string::String { - &mut self.log_bucket - } - - // Take field - pub fn take_log_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.log_bucket, ::std::string::String::new()) - } - - // string log_object_prefix = 2; - - - pub fn get_log_object_prefix(&self) -> &str { - &self.log_object_prefix - } - pub fn clear_log_object_prefix(&mut self) { - self.log_object_prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_log_object_prefix(&mut self, v: ::std::string::String) { - self.log_object_prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_log_object_prefix(&mut self) -> &mut ::std::string::String { - &mut self.log_object_prefix - } - - // Take field - pub fn take_log_object_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.log_object_prefix, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Bucket_Logging { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log_bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log_object_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.log_bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.log_bucket); - } - if !self.log_object_prefix.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.log_object_prefix); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.log_bucket.is_empty() { - os.write_string(1, &self.log_bucket)?; - } - if !self.log_object_prefix.is_empty() { - os.write_string(2, &self.log_object_prefix)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Bucket_Logging { - Bucket_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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "log_bucket", - |m: &Bucket_Logging| { &m.log_bucket }, - |m: &mut Bucket_Logging| { &mut m.log_bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "log_object_prefix", - |m: &Bucket_Logging| { &m.log_object_prefix }, - |m: &mut Bucket_Logging| { &mut m.log_object_prefix }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Logging", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Logging { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Logging::new) - } -} - -impl ::protobuf::Clear for Bucket_Logging { - fn clear(&mut self) { - self.log_bucket.clear(); - self.log_object_prefix.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Logging { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Logging { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_RetentionPolicy { - // message fields - pub effective_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub is_locked: bool, - pub retention_period: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_RetentionPolicy { - fn default() -> &'a Bucket_RetentionPolicy { - ::default_instance() - } -} - -impl Bucket_RetentionPolicy { - pub fn new() -> Bucket_RetentionPolicy { - ::std::default::Default::default() - } - - // .google.protobuf.Timestamp effective_time = 1; - - - pub fn get_effective_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.effective_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_effective_time(&mut self) { - self.effective_time.clear(); - } - - pub fn has_effective_time(&self) -> bool { - self.effective_time.is_some() - } - - // Param is passed by value, moved - pub fn set_effective_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.effective_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_effective_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.effective_time.is_none() { - self.effective_time.set_default(); - } - self.effective_time.as_mut().unwrap() - } - - // Take field - pub fn take_effective_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.effective_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // bool is_locked = 2; - - - pub fn get_is_locked(&self) -> bool { - self.is_locked - } - pub fn clear_is_locked(&mut self) { - self.is_locked = false; - } - - // Param is passed by value, moved - pub fn set_is_locked(&mut self, v: bool) { - self.is_locked = v; - } - - // int64 retention_period = 3; - - - pub fn get_retention_period(&self) -> i64 { - self.retention_period - } - pub fn clear_retention_period(&mut self) { - self.retention_period = 0; - } - - // Param is passed by value, moved - pub fn set_retention_period(&mut self, v: i64) { - self.retention_period = v; - } -} - -impl ::protobuf::Message for Bucket_RetentionPolicy { - fn is_initialized(&self) -> bool { - for v in &self.effective_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.effective_time)?; - }, - 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.is_locked = 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.retention_period = 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.effective_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.is_locked != false { - my_size += 2; - } - if self.retention_period != 0 { - my_size += ::protobuf::rt::value_size(3, self.retention_period, ::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 Some(ref v) = self.effective_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 self.is_locked != false { - os.write_bool(2, self.is_locked)?; - } - if self.retention_period != 0 { - os.write_int64(3, self.retention_period)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Bucket_RetentionPolicy { - Bucket_RetentionPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>>( - "effective_time", - |m: &Bucket_RetentionPolicy| { &m.effective_time }, - |m: &mut Bucket_RetentionPolicy| { &mut m.effective_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "is_locked", - |m: &Bucket_RetentionPolicy| { &m.is_locked }, - |m: &mut Bucket_RetentionPolicy| { &mut m.is_locked }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "retention_period", - |m: &Bucket_RetentionPolicy| { &m.retention_period }, - |m: &mut Bucket_RetentionPolicy| { &mut m.retention_period }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.RetentionPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_RetentionPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_RetentionPolicy::new) - } -} - -impl ::protobuf::Clear for Bucket_RetentionPolicy { - fn clear(&mut self) { - self.effective_time.clear(); - self.is_locked = false; - self.retention_period = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_RetentionPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_RetentionPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Versioning { - // message fields - pub enabled: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Versioning { - fn default() -> &'a Bucket_Versioning { - ::default_instance() - } -} - -impl Bucket_Versioning { - pub fn new() -> Bucket_Versioning { - ::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 Bucket_Versioning { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&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() -> Bucket_Versioning { - Bucket_Versioning::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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: &Bucket_Versioning| { &m.enabled }, - |m: &mut Bucket_Versioning| { &mut m.enabled }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Versioning", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Versioning { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Versioning::new) - } -} - -impl ::protobuf::Clear for Bucket_Versioning { - fn clear(&mut self) { - self.enabled = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Versioning { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Versioning { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Bucket_Website { - // message fields - pub main_page_suffix: ::std::string::String, - pub not_found_page: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Bucket_Website { - fn default() -> &'a Bucket_Website { - ::default_instance() - } -} - -impl Bucket_Website { - pub fn new() -> Bucket_Website { - ::std::default::Default::default() - } - - // string main_page_suffix = 1; - - - pub fn get_main_page_suffix(&self) -> &str { - &self.main_page_suffix - } - pub fn clear_main_page_suffix(&mut self) { - self.main_page_suffix.clear(); - } - - // Param is passed by value, moved - pub fn set_main_page_suffix(&mut self, v: ::std::string::String) { - self.main_page_suffix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_main_page_suffix(&mut self) -> &mut ::std::string::String { - &mut self.main_page_suffix - } - - // Take field - pub fn take_main_page_suffix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.main_page_suffix, ::std::string::String::new()) - } - - // string not_found_page = 2; - - - pub fn get_not_found_page(&self) -> &str { - &self.not_found_page - } - pub fn clear_not_found_page(&mut self) { - self.not_found_page.clear(); - } - - // Param is passed by value, moved - pub fn set_not_found_page(&mut self, v: ::std::string::String) { - self.not_found_page = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_not_found_page(&mut self) -> &mut ::std::string::String { - &mut self.not_found_page - } - - // Take field - pub fn take_not_found_page(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.not_found_page, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Bucket_Website { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.main_page_suffix)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.not_found_page)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.main_page_suffix.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.main_page_suffix); - } - if !self.not_found_page.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.not_found_page); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.main_page_suffix.is_empty() { - os.write_string(1, &self.main_page_suffix)?; - } - if !self.not_found_page.is_empty() { - os.write_string(2, &self.not_found_page)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Bucket_Website { - Bucket_Website::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "main_page_suffix", - |m: &Bucket_Website| { &m.main_page_suffix }, - |m: &mut Bucket_Website| { &mut m.main_page_suffix }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "not_found_page", - |m: &Bucket_Website| { &m.not_found_page }, - |m: &mut Bucket_Website| { &mut m.not_found_page }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Bucket.Website", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Bucket_Website { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Bucket_Website::new) - } -} - -impl ::protobuf::Clear for Bucket_Website { - fn clear(&mut self) { - self.main_page_suffix.clear(); - self.not_found_page.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Bucket_Website { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Bucket_Website { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BucketAccessControl { - // message fields - pub role: ::std::string::String, - pub etag: ::std::string::String, - pub id: ::std::string::String, - pub bucket: ::std::string::String, - pub entity: ::std::string::String, - pub entity_id: ::std::string::String, - pub email: ::std::string::String, - pub domain: ::std::string::String, - pub project_team: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BucketAccessControl { - fn default() -> &'a BucketAccessControl { - ::default_instance() - } -} - -impl BucketAccessControl { - pub fn new() -> BucketAccessControl { - ::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()) - } - - // 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 id = 3; - - - 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 bucket = 4; - - - 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 entity = 6; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // string entity_id = 7; - - - pub fn get_entity_id(&self) -> &str { - &self.entity_id - } - pub fn clear_entity_id(&mut self) { - self.entity_id.clear(); - } - - // Param is passed by value, moved - pub fn set_entity_id(&mut self, v: ::std::string::String) { - self.entity_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity_id(&mut self) -> &mut ::std::string::String { - &mut self.entity_id - } - - // Take field - pub fn take_entity_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity_id, ::std::string::String::new()) - } - - // string email = 8; - - - pub fn get_email(&self) -> &str { - &self.email - } - pub fn clear_email(&mut self) { - self.email.clear(); - } - - // Param is passed by value, moved - pub fn set_email(&mut self, v: ::std::string::String) { - self.email = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_email(&mut self) -> &mut ::std::string::String { - &mut self.email - } - - // Take field - pub fn take_email(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.email, ::std::string::String::new()) - } - - // string domain = 9; - - - 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()) - } - - // .google.storage.v1.ProjectTeam project_team = 10; - - - pub fn get_project_team(&self) -> &ProjectTeam { - self.project_team.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_project_team(&mut self) { - self.project_team.clear(); - } - - pub fn has_project_team(&self) -> bool { - self.project_team.is_some() - } - - // Param is passed by value, moved - pub fn set_project_team(&mut self, v: ProjectTeam) { - self.project_team = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_team(&mut self) -> &mut ProjectTeam { - if self.project_team.is_none() { - self.project_team.set_default(); - } - self.project_team.as_mut().unwrap() - } - - // Take field - pub fn take_project_team(&mut self) -> ProjectTeam { - self.project_team.take().unwrap_or_else(|| ProjectTeam::new()) - } -} - -impl ::protobuf::Message for BucketAccessControl { - fn is_initialized(&self) -> bool { - for v in &self.project_team { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)?; - }, - 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.id)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity_id)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.email)?; - }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.domain)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.project_team)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.role.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.role); - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.etag); - } - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.id); - } - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.bucket); - } - if !self.entity.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.entity); - } - if !self.entity_id.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.entity_id); - } - if !self.email.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.email); - } - if !self.domain.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.domain); - } - if let Some(ref v) = self.project_team.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)?; - } - if !self.etag.is_empty() { - os.write_string(2, &self.etag)?; - } - if !self.id.is_empty() { - os.write_string(3, &self.id)?; - } - if !self.bucket.is_empty() { - os.write_string(4, &self.bucket)?; - } - if !self.entity.is_empty() { - os.write_string(6, &self.entity)?; - } - if !self.entity_id.is_empty() { - os.write_string(7, &self.entity_id)?; - } - if !self.email.is_empty() { - os.write_string(8, &self.email)?; - } - if !self.domain.is_empty() { - os.write_string(9, &self.domain)?; - } - if let Some(ref v) = self.project_team.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() -> BucketAccessControl { - BucketAccessControl::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &BucketAccessControl| { &m.role }, - |m: &mut BucketAccessControl| { &mut m.role }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &BucketAccessControl| { &m.etag }, - |m: &mut BucketAccessControl| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &BucketAccessControl| { &m.id }, - |m: &mut BucketAccessControl| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &BucketAccessControl| { &m.bucket }, - |m: &mut BucketAccessControl| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &BucketAccessControl| { &m.entity }, - |m: &mut BucketAccessControl| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity_id", - |m: &BucketAccessControl| { &m.entity_id }, - |m: &mut BucketAccessControl| { &mut m.entity_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "email", - |m: &BucketAccessControl| { &m.email }, - |m: &mut BucketAccessControl| { &mut m.email }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "domain", - |m: &BucketAccessControl| { &m.domain }, - |m: &mut BucketAccessControl| { &mut m.domain }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "project_team", - |m: &BucketAccessControl| { &m.project_team }, - |m: &mut BucketAccessControl| { &mut m.project_team }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BucketAccessControl", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BucketAccessControl { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BucketAccessControl::new) - } -} - -impl ::protobuf::Clear for BucketAccessControl { - fn clear(&mut self) { - self.role.clear(); - self.etag.clear(); - self.id.clear(); - self.bucket.clear(); - self.entity.clear(); - self.entity_id.clear(); - self.email.clear(); - self.domain.clear(); - self.project_team.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BucketAccessControl { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BucketAccessControl { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBucketAccessControlsResponse { - // message fields - pub items: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListBucketAccessControlsResponse { - fn default() -> &'a ListBucketAccessControlsResponse { - ::default_instance() - } -} - -impl ListBucketAccessControlsResponse { - pub fn new() -> ListBucketAccessControlsResponse { - ::std::default::Default::default() - } - - // repeated .google.storage.v1.BucketAccessControl items = 1; - - - pub fn get_items(&self) -> &[BucketAccessControl] { - &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 ListBucketAccessControlsResponse { - fn is_initialized(&self) -> bool { - 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_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; - 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<()> { - for v in &self.items { - 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() -> ListBucketAccessControlsResponse { - ListBucketAccessControlsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "items", - |m: &ListBucketAccessControlsResponse| { &m.items }, - |m: &mut ListBucketAccessControlsResponse| { &mut m.items }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBucketAccessControlsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListBucketAccessControlsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBucketAccessControlsResponse::new) - } -} - -impl ::protobuf::Clear for ListBucketAccessControlsResponse { - fn clear(&mut self) { - self.items.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListBucketAccessControlsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListBucketAccessControlsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBucketsResponse { - // message fields - pub items: ::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 ListBucketsResponse { - fn default() -> &'a ListBucketsResponse { - ::default_instance() - } -} - -impl ListBucketsResponse { - pub fn new() -> ListBucketsResponse { - ::std::default::Default::default() - } - - // repeated .google.storage.v1.Bucket items = 1; - - - pub fn get_items(&self) -> &[Bucket] { - &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()) - } - - // 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 ListBucketsResponse { - fn is_initialized(&self) -> bool { - 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_repeated_message_into(wire_type, is, &mut self.items)?; - }, - 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.items { - 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.items { - 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() -> ListBucketsResponse { - ListBucketsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "items", - |m: &ListBucketsResponse| { &m.items }, - |m: &mut ListBucketsResponse| { &mut m.items }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListBucketsResponse| { &m.next_page_token }, - |m: &mut ListBucketsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBucketsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListBucketsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBucketsResponse::new) - } -} - -impl ::protobuf::Clear for ListBucketsResponse { - fn clear(&mut self) { - self.items.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListBucketsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListBucketsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Channel { - // message fields - pub id: ::std::string::String, - pub resource_id: ::std::string::String, - pub resource_uri: ::std::string::String, - pub token: ::std::string::String, - pub expiration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub field_type: ::std::string::String, - pub address: ::std::string::String, - pub params: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub payload: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Channel { - fn default() -> &'a Channel { - ::default_instance() - } -} - -impl Channel { - pub fn new() -> Channel { - ::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 resource_id = 2; - - - pub fn get_resource_id(&self) -> &str { - &self.resource_id - } - pub fn clear_resource_id(&mut self) { - self.resource_id.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_id(&mut self, v: ::std::string::String) { - self.resource_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_id(&mut self) -> &mut ::std::string::String { - &mut self.resource_id - } - - // Take field - pub fn take_resource_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource_id, ::std::string::String::new()) - } - - // string resource_uri = 3; - - - pub fn get_resource_uri(&self) -> &str { - &self.resource_uri - } - pub fn clear_resource_uri(&mut self) { - self.resource_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_uri(&mut self, v: ::std::string::String) { - self.resource_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_uri(&mut self) -> &mut ::std::string::String { - &mut self.resource_uri - } - - // Take field - pub fn take_resource_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource_uri, ::std::string::String::new()) - } - - // string token = 4; - - - 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 expiration = 5; - - - pub fn get_expiration(&self) -> &::protobuf::well_known_types::Timestamp { - self.expiration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_expiration(&mut self) { - self.expiration.clear(); - } - - pub fn has_expiration(&self) -> bool { - self.expiration.is_some() - } - - // Param is passed by value, moved - pub fn set_expiration(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.expiration = ::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(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.expiration.is_none() { - self.expiration.set_default(); - } - self.expiration.as_mut().unwrap() - } - - // Take field - pub fn take_expiration(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.expiration.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string type = 6; - - - 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 address = 7; - - - 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()) - } - - // repeated .google.storage.v1.Channel.ParamsEntry params = 8; - - - pub fn get_params(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.params - } - pub fn clear_params(&mut self) { - self.params.clear(); - } - - // Param is passed by value, moved - pub fn set_params(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.params = v; - } - - // Mutable pointer to the field. - pub fn mut_params(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.params - } - - // Take field - pub fn take_params(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.params, ::std::collections::HashMap::new()) - } - - // bool payload = 9; - - - pub fn get_payload(&self) -> bool { - self.payload - } - pub fn clear_payload(&mut self) { - self.payload = false; - } - - // Param is passed by value, moved - pub fn set_payload(&mut self, v: bool) { - self.payload = v; - } -} - -impl ::protobuf::Message for Channel { - fn is_initialized(&self) -> bool { - for v in &self.expiration { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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.resource_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_uri)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.token)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expiration)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.address)?; - }, - 8 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.params)?; - }, - 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.payload = 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.resource_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.resource_id); - } - if !self.resource_uri.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.resource_uri); - } - if !self.token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.token); - } - if let Some(ref v) = self.expiration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.field_type); - } - if !self.address.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.address); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(8, &self.params); - if self.payload != 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.resource_id.is_empty() { - os.write_string(2, &self.resource_id)?; - } - if !self.resource_uri.is_empty() { - os.write_string(3, &self.resource_uri)?; - } - if !self.token.is_empty() { - os.write_string(4, &self.token)?; - } - if let Some(ref v) = self.expiration.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.field_type.is_empty() { - os.write_string(6, &self.field_type)?; - } - if !self.address.is_empty() { - os.write_string(7, &self.address)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(8, &self.params, os)?; - if self.payload != false { - os.write_bool(9, self.payload)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Channel { - Channel::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &Channel| { &m.id }, - |m: &mut Channel| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_id", - |m: &Channel| { &m.resource_id }, - |m: &mut Channel| { &mut m.resource_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_uri", - |m: &Channel| { &m.resource_uri }, - |m: &mut Channel| { &mut m.resource_uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "token", - |m: &Channel| { &m.token }, - |m: &mut Channel| { &mut m.token }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "expiration", - |m: &Channel| { &m.expiration }, - |m: &mut Channel| { &mut m.expiration }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &Channel| { &m.field_type }, - |m: &mut Channel| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "address", - |m: &Channel| { &m.address }, - |m: &mut Channel| { &mut m.address }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "params", - |m: &Channel| { &m.params }, - |m: &mut Channel| { &mut m.params }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "payload", - |m: &Channel| { &m.payload }, - |m: &mut Channel| { &mut m.payload }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Channel", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Channel { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Channel::new) - } -} - -impl ::protobuf::Clear for Channel { - fn clear(&mut self) { - self.id.clear(); - self.resource_id.clear(); - self.resource_uri.clear(); - self.token.clear(); - self.expiration.clear(); - self.field_type.clear(); - self.address.clear(); - self.params.clear(); - self.payload = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Channel { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Channel { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListChannelsResponse { - // message fields - pub items: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListChannelsResponse { - fn default() -> &'a ListChannelsResponse { - ::default_instance() - } -} - -impl ListChannelsResponse { - pub fn new() -> ListChannelsResponse { - ::std::default::Default::default() - } - - // repeated .google.storage.v1.ListChannelsResponse.Items items = 1; - - - pub fn get_items(&self) -> &[ListChannelsResponse_Items] { - &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 ListChannelsResponse { - fn is_initialized(&self) -> bool { - 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_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; - 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<()> { - for v in &self.items { - 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() -> ListChannelsResponse { - ListChannelsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "items", - |m: &ListChannelsResponse| { &m.items }, - |m: &mut ListChannelsResponse| { &mut m.items }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListChannelsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListChannelsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListChannelsResponse::new) - } -} - -impl ::protobuf::Clear for ListChannelsResponse { - fn clear(&mut self) { - self.items.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListChannelsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListChannelsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListChannelsResponse_Items { - // message fields - pub channel_id: ::std::string::String, - pub resource_id: ::std::string::String, - pub push_url: ::std::string::String, - pub subscriber_email: ::std::string::String, - pub creation_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 ListChannelsResponse_Items { - fn default() -> &'a ListChannelsResponse_Items { - ::default_instance() - } -} - -impl ListChannelsResponse_Items { - pub fn new() -> ListChannelsResponse_Items { - ::std::default::Default::default() - } - - // string channel_id = 1; - - - pub fn get_channel_id(&self) -> &str { - &self.channel_id - } - pub fn clear_channel_id(&mut self) { - self.channel_id.clear(); - } - - // Param is passed by value, moved - pub fn set_channel_id(&mut self, v: ::std::string::String) { - self.channel_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_channel_id(&mut self) -> &mut ::std::string::String { - &mut self.channel_id - } - - // Take field - pub fn take_channel_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.channel_id, ::std::string::String::new()) - } - - // string resource_id = 2; - - - pub fn get_resource_id(&self) -> &str { - &self.resource_id - } - pub fn clear_resource_id(&mut self) { - self.resource_id.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_id(&mut self, v: ::std::string::String) { - self.resource_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_id(&mut self) -> &mut ::std::string::String { - &mut self.resource_id - } - - // Take field - pub fn take_resource_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource_id, ::std::string::String::new()) - } - - // string push_url = 3; - - - pub fn get_push_url(&self) -> &str { - &self.push_url - } - pub fn clear_push_url(&mut self) { - self.push_url.clear(); - } - - // Param is passed by value, moved - pub fn set_push_url(&mut self, v: ::std::string::String) { - self.push_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_push_url(&mut self) -> &mut ::std::string::String { - &mut self.push_url - } - - // Take field - pub fn take_push_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.push_url, ::std::string::String::new()) - } - - // string subscriber_email = 4; - - - pub fn get_subscriber_email(&self) -> &str { - &self.subscriber_email - } - pub fn clear_subscriber_email(&mut self) { - self.subscriber_email.clear(); - } - - // Param is passed by value, moved - pub fn set_subscriber_email(&mut self, v: ::std::string::String) { - self.subscriber_email = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscriber_email(&mut self) -> &mut ::std::string::String { - &mut self.subscriber_email - } - - // Take field - pub fn take_subscriber_email(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscriber_email, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp creation_time = 5; - - - pub fn get_creation_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.creation_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_creation_time(&mut self) { - self.creation_time.clear(); - } - - pub fn has_creation_time(&self) -> bool { - self.creation_time.is_some() - } - - // Param is passed by value, moved - pub fn set_creation_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.creation_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_creation_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.creation_time.is_none() { - self.creation_time.set_default(); - } - self.creation_time.as_mut().unwrap() - } - - // Take field - pub fn take_creation_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.creation_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for ListChannelsResponse_Items { - fn is_initialized(&self) -> bool { - for v in &self.creation_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.channel_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.push_url)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscriber_email)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.creation_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.channel_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.channel_id); - } - if !self.resource_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.resource_id); - } - if !self.push_url.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.push_url); - } - if !self.subscriber_email.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.subscriber_email); - } - if let Some(ref v) = self.creation_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.channel_id.is_empty() { - os.write_string(1, &self.channel_id)?; - } - if !self.resource_id.is_empty() { - os.write_string(2, &self.resource_id)?; - } - if !self.push_url.is_empty() { - os.write_string(3, &self.push_url)?; - } - if !self.subscriber_email.is_empty() { - os.write_string(4, &self.subscriber_email)?; - } - if let Some(ref v) = self.creation_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() -> ListChannelsResponse_Items { - ListChannelsResponse_Items::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "channel_id", - |m: &ListChannelsResponse_Items| { &m.channel_id }, - |m: &mut ListChannelsResponse_Items| { &mut m.channel_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_id", - |m: &ListChannelsResponse_Items| { &m.resource_id }, - |m: &mut ListChannelsResponse_Items| { &mut m.resource_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "push_url", - |m: &ListChannelsResponse_Items| { &m.push_url }, - |m: &mut ListChannelsResponse_Items| { &mut m.push_url }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscriber_email", - |m: &ListChannelsResponse_Items| { &m.subscriber_email }, - |m: &mut ListChannelsResponse_Items| { &mut m.subscriber_email }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "creation_time", - |m: &ListChannelsResponse_Items| { &m.creation_time }, - |m: &mut ListChannelsResponse_Items| { &mut m.creation_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListChannelsResponse.Items", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListChannelsResponse_Items { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListChannelsResponse_Items::new) - } -} - -impl ::protobuf::Clear for ListChannelsResponse_Items { - fn clear(&mut self) { - self.channel_id.clear(); - self.resource_id.clear(); - self.push_url.clear(); - self.subscriber_email.clear(); - self.creation_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListChannelsResponse_Items { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListChannelsResponse_Items { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ChecksummedData { - // message fields - pub content: ::std::vec::Vec, - pub crc32c: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ChecksummedData { - fn default() -> &'a ChecksummedData { - ::default_instance() - } -} - -impl ChecksummedData { - pub fn new() -> ChecksummedData { - ::std::default::Default::default() - } - - // bytes content = 1; - - - pub fn get_content(&self) -> &[u8] { - &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::vec::Vec) { - 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::vec::Vec { - &mut self.content - } - - // Take field - pub fn take_content(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.content, ::std::vec::Vec::new()) - } - - // .google.protobuf.UInt32Value crc32c = 2; - - - pub fn get_crc32c(&self) -> &::protobuf::well_known_types::UInt32Value { - self.crc32c.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::UInt32Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_crc32c(&mut self) { - self.crc32c.clear(); - } - - pub fn has_crc32c(&self) -> bool { - self.crc32c.is_some() - } - - // Param is passed by value, moved - pub fn set_crc32c(&mut self, v: ::protobuf::well_known_types::UInt32Value) { - self.crc32c = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_crc32c(&mut self) -> &mut ::protobuf::well_known_types::UInt32Value { - if self.crc32c.is_none() { - self.crc32c.set_default(); - } - self.crc32c.as_mut().unwrap() - } - - // Take field - pub fn take_crc32c(&mut self) -> ::protobuf::well_known_types::UInt32Value { - self.crc32c.take().unwrap_or_else(|| ::protobuf::well_known_types::UInt32Value::new()) - } -} - -impl ::protobuf::Message for ChecksummedData { - fn is_initialized(&self) -> bool { - for v in &self.crc32c { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::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.content)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crc32c)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.content.is_empty() { - my_size += ::protobuf::rt::bytes_size(1, &self.content); - } - if let Some(ref v) = self.crc32c.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.content.is_empty() { - os.write_bytes(1, &self.content)?; - } - if let Some(ref v) = self.crc32c.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() -> ChecksummedData { - ChecksummedData::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( - "content", - |m: &ChecksummedData| { &m.content }, - |m: &mut ChecksummedData| { &mut m.content }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::UInt32Value>>( - "crc32c", - |m: &ChecksummedData| { &m.crc32c }, - |m: &mut ChecksummedData| { &mut m.crc32c }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ChecksummedData", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ChecksummedData { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ChecksummedData::new) - } -} - -impl ::protobuf::Clear for ChecksummedData { - fn clear(&mut self) { - self.content.clear(); - self.crc32c.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ChecksummedData { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ChecksummedData { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ObjectChecksums { - // message fields - pub crc32c: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, - pub md5_hash: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ObjectChecksums { - fn default() -> &'a ObjectChecksums { - ::default_instance() - } -} - -impl ObjectChecksums { - pub fn new() -> ObjectChecksums { - ::std::default::Default::default() - } - - // .google.protobuf.UInt32Value crc32c = 1; - - - pub fn get_crc32c(&self) -> &::protobuf::well_known_types::UInt32Value { - self.crc32c.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::UInt32Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_crc32c(&mut self) { - self.crc32c.clear(); - } - - pub fn has_crc32c(&self) -> bool { - self.crc32c.is_some() - } - - // Param is passed by value, moved - pub fn set_crc32c(&mut self, v: ::protobuf::well_known_types::UInt32Value) { - self.crc32c = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_crc32c(&mut self) -> &mut ::protobuf::well_known_types::UInt32Value { - if self.crc32c.is_none() { - self.crc32c.set_default(); - } - self.crc32c.as_mut().unwrap() - } - - // Take field - pub fn take_crc32c(&mut self) -> ::protobuf::well_known_types::UInt32Value { - self.crc32c.take().unwrap_or_else(|| ::protobuf::well_known_types::UInt32Value::new()) - } - - // string md5_hash = 2; - - - pub fn get_md5_hash(&self) -> &str { - &self.md5_hash - } - pub fn clear_md5_hash(&mut self) { - self.md5_hash.clear(); - } - - // Param is passed by value, moved - pub fn set_md5_hash(&mut self, v: ::std::string::String) { - self.md5_hash = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_md5_hash(&mut self) -> &mut ::std::string::String { - &mut self.md5_hash - } - - // Take field - pub fn take_md5_hash(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.md5_hash, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ObjectChecksums { - fn is_initialized(&self) -> bool { - for v in &self.crc32c { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::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.crc32c)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.md5_hash)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.crc32c.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.md5_hash.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.md5_hash); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_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.crc32c.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.md5_hash.is_empty() { - os.write_string(2, &self.md5_hash)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ObjectChecksums { - ObjectChecksums::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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::UInt32Value>>( - "crc32c", - |m: &ObjectChecksums| { &m.crc32c }, - |m: &mut ObjectChecksums| { &mut m.crc32c }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "md5_hash", - |m: &ObjectChecksums| { &m.md5_hash }, - |m: &mut ObjectChecksums| { &mut m.md5_hash }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ObjectChecksums", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ObjectChecksums { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ObjectChecksums::new) - } -} - -impl ::protobuf::Clear for ObjectChecksums { - fn clear(&mut self) { - self.crc32c.clear(); - self.md5_hash.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ObjectChecksums { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ObjectChecksums { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CommonEnums { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CommonEnums { - fn default() -> &'a CommonEnums { - ::default_instance() - } -} - -impl CommonEnums { - pub fn new() -> CommonEnums { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for CommonEnums { - fn is_initialized(&self) -> bool { - true - } - - fn merge_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() -> CommonEnums { - CommonEnums::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::( - "CommonEnums", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommonEnums { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommonEnums::new) - } -} - -impl ::protobuf::Clear for CommonEnums { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommonEnums { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommonEnums { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CommonEnums_Projection { - PROJECTION_UNSPECIFIED = 0, - NO_ACL = 1, - FULL = 2, -} - -impl ::protobuf::ProtobufEnum for CommonEnums_Projection { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CommonEnums_Projection::PROJECTION_UNSPECIFIED), - 1 => ::std::option::Option::Some(CommonEnums_Projection::NO_ACL), - 2 => ::std::option::Option::Some(CommonEnums_Projection::FULL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CommonEnums_Projection] = &[ - CommonEnums_Projection::PROJECTION_UNSPECIFIED, - CommonEnums_Projection::NO_ACL, - CommonEnums_Projection::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::("CommonEnums.Projection", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CommonEnums_Projection { -} - -impl ::std::default::Default for CommonEnums_Projection { - fn default() -> Self { - CommonEnums_Projection::PROJECTION_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CommonEnums_Projection { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CommonEnums_PredefinedBucketAcl { - PREDEFINED_BUCKET_ACL_UNSPECIFIED = 0, - BUCKET_ACL_AUTHENTICATED_READ = 1, - BUCKET_ACL_PRIVATE = 2, - BUCKET_ACL_PROJECT_PRIVATE = 3, - BUCKET_ACL_PUBLIC_READ = 4, - BUCKET_ACL_PUBLIC_READ_WRITE = 5, -} - -impl ::protobuf::ProtobufEnum for CommonEnums_PredefinedBucketAcl { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED), - 1 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_AUTHENTICATED_READ), - 2 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PRIVATE), - 3 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PROJECT_PRIVATE), - 4 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PUBLIC_READ), - 5 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PUBLIC_READ_WRITE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CommonEnums_PredefinedBucketAcl] = &[ - CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED, - CommonEnums_PredefinedBucketAcl::BUCKET_ACL_AUTHENTICATED_READ, - CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PRIVATE, - CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PROJECT_PRIVATE, - CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PUBLIC_READ, - CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PUBLIC_READ_WRITE, - ]; - 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::("CommonEnums.PredefinedBucketAcl", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CommonEnums_PredefinedBucketAcl { -} - -impl ::std::default::Default for CommonEnums_PredefinedBucketAcl { - fn default() -> Self { - CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CommonEnums_PredefinedBucketAcl { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CommonEnums_PredefinedObjectAcl { - PREDEFINED_OBJECT_ACL_UNSPECIFIED = 0, - OBJECT_ACL_AUTHENTICATED_READ = 1, - OBJECT_ACL_BUCKET_OWNER_FULL_CONTROL = 2, - OBJECT_ACL_BUCKET_OWNER_READ = 3, - OBJECT_ACL_PRIVATE = 4, - OBJECT_ACL_PROJECT_PRIVATE = 5, - OBJECT_ACL_PUBLIC_READ = 6, -} - -impl ::protobuf::ProtobufEnum for CommonEnums_PredefinedObjectAcl { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED), - 1 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_AUTHENTICATED_READ), - 2 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_BUCKET_OWNER_FULL_CONTROL), - 3 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_BUCKET_OWNER_READ), - 4 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PRIVATE), - 5 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PROJECT_PRIVATE), - 6 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PUBLIC_READ), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CommonEnums_PredefinedObjectAcl] = &[ - CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED, - CommonEnums_PredefinedObjectAcl::OBJECT_ACL_AUTHENTICATED_READ, - CommonEnums_PredefinedObjectAcl::OBJECT_ACL_BUCKET_OWNER_FULL_CONTROL, - CommonEnums_PredefinedObjectAcl::OBJECT_ACL_BUCKET_OWNER_READ, - CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PRIVATE, - CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PROJECT_PRIVATE, - CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PUBLIC_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::("CommonEnums.PredefinedObjectAcl", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CommonEnums_PredefinedObjectAcl { -} - -impl ::std::default::Default for CommonEnums_PredefinedObjectAcl { - fn default() -> Self { - CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CommonEnums_PredefinedObjectAcl { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ContentRange { - // message fields - pub start: i64, - pub end: i64, - pub complete_length: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ContentRange { - fn default() -> &'a ContentRange { - ::default_instance() - } -} - -impl ContentRange { - pub fn new() -> ContentRange { - ::std::default::Default::default() - } - - // int64 start = 1; - - - pub fn get_start(&self) -> i64 { - self.start - } - pub fn clear_start(&mut self) { - self.start = 0; - } - - // Param is passed by value, moved - pub fn set_start(&mut self, v: i64) { - self.start = v; - } - - // int64 end = 2; - - - pub fn get_end(&self) -> i64 { - self.end - } - pub fn clear_end(&mut self) { - self.end = 0; - } - - // Param is passed by value, moved - pub fn set_end(&mut self, v: i64) { - self.end = v; - } - - // int64 complete_length = 3; - - - pub fn get_complete_length(&self) -> i64 { - self.complete_length - } - pub fn clear_complete_length(&mut self) { - self.complete_length = 0; - } - - // Param is passed by value, moved - pub fn set_complete_length(&mut self, v: i64) { - self.complete_length = v; - } -} - -impl ::protobuf::Message for ContentRange { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&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 = 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.end = 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.complete_length = 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.start != 0 { - my_size += ::protobuf::rt::value_size(1, self.start, ::protobuf::wire_format::WireTypeVarint); - } - if self.end != 0 { - my_size += ::protobuf::rt::value_size(2, self.end, ::protobuf::wire_format::WireTypeVarint); - } - if self.complete_length != 0 { - my_size += ::protobuf::rt::value_size(3, self.complete_length, ::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.start != 0 { - os.write_int64(1, self.start)?; - } - if self.end != 0 { - os.write_int64(2, self.end)?; - } - if self.complete_length != 0 { - os.write_int64(3, self.complete_length)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ContentRange { - ContentRange::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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", - |m: &ContentRange| { &m.start }, - |m: &mut ContentRange| { &mut m.start }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "end", - |m: &ContentRange| { &m.end }, - |m: &mut ContentRange| { &mut m.end }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "complete_length", - |m: &ContentRange| { &m.complete_length }, - |m: &mut ContentRange| { &mut m.complete_length }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ContentRange", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ContentRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ContentRange::new) - } -} - -impl ::protobuf::Clear for ContentRange { - fn clear(&mut self) { - self.start = 0; - self.end = 0; - self.complete_length = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ContentRange { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ContentRange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct HmacKeyMetadata { - // message fields - pub id: ::std::string::String, - pub access_id: ::std::string::String, - pub project_id: ::std::string::String, - pub service_account_email: ::std::string::String, - pub state: ::std::string::String, - pub time_created: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub updated: ::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 HmacKeyMetadata { - fn default() -> &'a HmacKeyMetadata { - ::default_instance() - } -} - -impl HmacKeyMetadata { - pub fn new() -> HmacKeyMetadata { - ::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 access_id = 2; - - - pub fn get_access_id(&self) -> &str { - &self.access_id - } - pub fn clear_access_id(&mut self) { - self.access_id.clear(); - } - - // Param is passed by value, moved - pub fn set_access_id(&mut self, v: ::std::string::String) { - self.access_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_access_id(&mut self) -> &mut ::std::string::String { - &mut self.access_id - } - - // Take field - pub fn take_access_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.access_id, ::std::string::String::new()) - } - - // string project_id = 3; - - - pub fn get_project_id(&self) -> &str { - &self.project_id - } - pub fn clear_project_id(&mut self) { - self.project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_project_id(&mut self, v: ::std::string::String) { - self.project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_id(&mut self) -> &mut ::std::string::String { - &mut self.project_id - } - - // Take field - pub fn take_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) - } - - // string service_account_email = 4; - - - 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 state = 5; - - - 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.Timestamp time_created = 6; - - - pub fn get_time_created(&self) -> &::protobuf::well_known_types::Timestamp { - self.time_created.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_time_created(&mut self) { - self.time_created.clear(); - } - - pub fn has_time_created(&self) -> bool { - self.time_created.is_some() - } - - // Param is passed by value, moved - pub fn set_time_created(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.time_created = ::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_created(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.time_created.is_none() { - self.time_created.set_default(); - } - self.time_created.as_mut().unwrap() - } - - // Take field - pub fn take_time_created(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.time_created.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp updated = 7; - - - pub fn get_updated(&self) -> &::protobuf::well_known_types::Timestamp { - self.updated.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_updated(&mut self) { - self.updated.clear(); - } - - pub fn has_updated(&self) -> bool { - self.updated.is_some() - } - - // Param is passed by value, moved - pub fn set_updated(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.updated = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_updated(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.updated.is_none() { - self.updated.set_default(); - } - self.updated.as_mut().unwrap() - } - - // Take field - pub fn take_updated(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.updated.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()) - } -} - -impl ::protobuf::Message for HmacKeyMetadata { - fn is_initialized(&self) -> bool { - for v in &self.time_created { - if !v.is_initialized() { - return false; - } - }; - for v in &self.updated { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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.access_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project_id)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_account_email)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_created)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.updated)?; - }, - 8 => { - ::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.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.access_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.access_id); - } - if !self.project_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.project_id); - } - if !self.service_account_email.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.service_account_email); - } - if !self.state.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.state); - } - if let Some(ref v) = self.time_created.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.updated.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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.access_id.is_empty() { - os.write_string(2, &self.access_id)?; - } - if !self.project_id.is_empty() { - os.write_string(3, &self.project_id)?; - } - if !self.service_account_email.is_empty() { - os.write_string(4, &self.service_account_email)?; - } - if !self.state.is_empty() { - os.write_string(5, &self.state)?; - } - if let Some(ref v) = self.time_created.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.updated.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> HmacKeyMetadata { - HmacKeyMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &HmacKeyMetadata| { &m.id }, - |m: &mut HmacKeyMetadata| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "access_id", - |m: &HmacKeyMetadata| { &m.access_id }, - |m: &mut HmacKeyMetadata| { &mut m.access_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project_id", - |m: &HmacKeyMetadata| { &m.project_id }, - |m: &mut HmacKeyMetadata| { &mut m.project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_account_email", - |m: &HmacKeyMetadata| { &m.service_account_email }, - |m: &mut HmacKeyMetadata| { &mut m.service_account_email }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "state", - |m: &HmacKeyMetadata| { &m.state }, - |m: &mut HmacKeyMetadata| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "time_created", - |m: &HmacKeyMetadata| { &m.time_created }, - |m: &mut HmacKeyMetadata| { &mut m.time_created }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "updated", - |m: &HmacKeyMetadata| { &m.updated }, - |m: &mut HmacKeyMetadata| { &mut m.updated }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &HmacKeyMetadata| { &m.etag }, - |m: &mut HmacKeyMetadata| { &mut m.etag }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HmacKeyMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static HmacKeyMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HmacKeyMetadata::new) - } -} - -impl ::protobuf::Clear for HmacKeyMetadata { - fn clear(&mut self) { - self.id.clear(); - self.access_id.clear(); - self.project_id.clear(); - self.service_account_email.clear(); - self.state.clear(); - self.time_created.clear(); - self.updated.clear(); - self.etag.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for HmacKeyMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for HmacKeyMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Notification { - // message fields - pub topic: ::std::string::String, - pub event_types: ::protobuf::RepeatedField<::std::string::String>, - pub custom_attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub etag: ::std::string::String, - pub object_name_prefix: ::std::string::String, - pub payload_format: ::std::string::String, - pub id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Notification { - fn default() -> &'a Notification { - ::default_instance() - } -} - -impl Notification { - pub fn new() -> Notification { - ::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 string event_types = 2; - - - pub fn get_event_types(&self) -> &[::std::string::String] { - &self.event_types - } - pub fn clear_event_types(&mut self) { - self.event_types.clear(); - } - - // Param is passed by value, moved - pub fn set_event_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.event_types = v; - } - - // Mutable pointer to the field. - pub fn mut_event_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.event_types - } - - // Take field - pub fn take_event_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.event_types, ::protobuf::RepeatedField::new()) - } - - // repeated .google.storage.v1.Notification.CustomAttributesEntry custom_attributes = 3; - - - pub fn get_custom_attributes(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.custom_attributes - } - pub fn clear_custom_attributes(&mut self) { - self.custom_attributes.clear(); - } - - // Param is passed by value, moved - pub fn set_custom_attributes(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.custom_attributes = v; - } - - // Mutable pointer to the field. - pub fn mut_custom_attributes(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.custom_attributes - } - - // Take field - pub fn take_custom_attributes(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.custom_attributes, ::std::collections::HashMap::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()) - } - - // string object_name_prefix = 5; - - - pub fn get_object_name_prefix(&self) -> &str { - &self.object_name_prefix - } - pub fn clear_object_name_prefix(&mut self) { - self.object_name_prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_object_name_prefix(&mut self, v: ::std::string::String) { - self.object_name_prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object_name_prefix(&mut self) -> &mut ::std::string::String { - &mut self.object_name_prefix - } - - // Take field - pub fn take_object_name_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.object_name_prefix, ::std::string::String::new()) - } - - // string payload_format = 6; - - - pub fn get_payload_format(&self) -> &str { - &self.payload_format - } - pub fn clear_payload_format(&mut self) { - self.payload_format.clear(); - } - - // Param is passed by value, moved - pub fn set_payload_format(&mut self, v: ::std::string::String) { - self.payload_format = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_payload_format(&mut self) -> &mut ::std::string::String { - &mut self.payload_format - } - - // Take field - pub fn take_payload_format(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.payload_format, ::std::string::String::new()) - } - - // string id = 7; - - - 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()) - } -} - -impl ::protobuf::Message for Notification { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.event_types)?; - }, - 3 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.custom_attributes)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object_name_prefix)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.payload_format)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.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.topic.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.topic); - } - for value in &self.event_types { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.custom_attributes); - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.etag); - } - if !self.object_name_prefix.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.object_name_prefix); - } - if !self.payload_format.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.payload_format); - } - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.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.topic.is_empty() { - os.write_string(1, &self.topic)?; - } - for v in &self.event_types { - os.write_string(2, &v)?; - }; - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.custom_attributes, os)?; - if !self.etag.is_empty() { - os.write_string(4, &self.etag)?; - } - if !self.object_name_prefix.is_empty() { - os.write_string(5, &self.object_name_prefix)?; - } - if !self.payload_format.is_empty() { - os.write_string(6, &self.payload_format)?; - } - if !self.id.is_empty() { - os.write_string(7, &self.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() -> Notification { - Notification::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &Notification| { &m.topic }, - |m: &mut Notification| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "event_types", - |m: &Notification| { &m.event_types }, - |m: &mut Notification| { &mut m.event_types }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "custom_attributes", - |m: &Notification| { &m.custom_attributes }, - |m: &mut Notification| { &mut m.custom_attributes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &Notification| { &m.etag }, - |m: &mut Notification| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object_name_prefix", - |m: &Notification| { &m.object_name_prefix }, - |m: &mut Notification| { &mut m.object_name_prefix }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "payload_format", - |m: &Notification| { &m.payload_format }, - |m: &mut Notification| { &mut m.payload_format }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Notification| { &m.id }, - |m: &mut Notification| { &mut m.id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Notification", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Notification { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Notification::new) - } -} - -impl ::protobuf::Clear for Notification { - fn clear(&mut self) { - self.topic.clear(); - self.event_types.clear(); - self.custom_attributes.clear(); - self.etag.clear(); - self.object_name_prefix.clear(); - self.payload_format.clear(); - self.id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Notification { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Notification { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListNotificationsResponse { - // message fields - pub items: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListNotificationsResponse { - fn default() -> &'a ListNotificationsResponse { - ::default_instance() - } -} - -impl ListNotificationsResponse { - pub fn new() -> ListNotificationsResponse { - ::std::default::Default::default() - } - - // repeated .google.storage.v1.Notification items = 1; - - - pub fn get_items(&self) -> &[Notification] { - &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 ListNotificationsResponse { - fn is_initialized(&self) -> bool { - 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_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; - 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<()> { - for v in &self.items { - 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() -> ListNotificationsResponse { - ListNotificationsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "items", - |m: &ListNotificationsResponse| { &m.items }, - |m: &mut ListNotificationsResponse| { &mut m.items }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListNotificationsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListNotificationsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListNotificationsResponse::new) - } -} - -impl ::protobuf::Clear for ListNotificationsResponse { - fn clear(&mut self) { - self.items.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListNotificationsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListNotificationsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Object { - // message fields - pub content_encoding: ::std::string::String, - pub content_disposition: ::std::string::String, - pub cache_control: ::std::string::String, - pub acl: ::protobuf::RepeatedField, - pub content_language: ::std::string::String, - pub metageneration: i64, - pub time_deleted: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub content_type: ::std::string::String, - pub size: i64, - pub time_created: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub crc32c: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, - pub component_count: i32, - pub md5_hash: ::std::string::String, - pub etag: ::std::string::String, - pub updated: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub storage_class: ::std::string::String, - pub kms_key_name: ::std::string::String, - pub time_storage_class_updated: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub temporary_hold: bool, - pub retention_expiration_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub metadata: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub event_based_hold: ::protobuf::SingularPtrField<::protobuf::well_known_types::BoolValue>, - pub name: ::std::string::String, - pub id: ::std::string::String, - pub bucket: ::std::string::String, - pub generation: i64, - pub owner: ::protobuf::SingularPtrField, - pub customer_encryption: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Object { - fn default() -> &'a Object { - ::default_instance() - } -} - -impl Object { - pub fn new() -> Object { - ::std::default::Default::default() - } - - // string content_encoding = 1; - - - pub fn get_content_encoding(&self) -> &str { - &self.content_encoding - } - pub fn clear_content_encoding(&mut self) { - self.content_encoding.clear(); - } - - // Param is passed by value, moved - pub fn set_content_encoding(&mut self, v: ::std::string::String) { - self.content_encoding = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_content_encoding(&mut self) -> &mut ::std::string::String { - &mut self.content_encoding - } - - // Take field - pub fn take_content_encoding(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.content_encoding, ::std::string::String::new()) - } - - // string content_disposition = 2; - - - pub fn get_content_disposition(&self) -> &str { - &self.content_disposition - } - pub fn clear_content_disposition(&mut self) { - self.content_disposition.clear(); - } - - // Param is passed by value, moved - pub fn set_content_disposition(&mut self, v: ::std::string::String) { - self.content_disposition = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_content_disposition(&mut self) -> &mut ::std::string::String { - &mut self.content_disposition - } - - // Take field - pub fn take_content_disposition(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.content_disposition, ::std::string::String::new()) - } - - // string cache_control = 3; - - - pub fn get_cache_control(&self) -> &str { - &self.cache_control - } - pub fn clear_cache_control(&mut self) { - self.cache_control.clear(); - } - - // Param is passed by value, moved - pub fn set_cache_control(&mut self, v: ::std::string::String) { - self.cache_control = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cache_control(&mut self) -> &mut ::std::string::String { - &mut self.cache_control - } - - // Take field - pub fn take_cache_control(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.cache_control, ::std::string::String::new()) - } - - // repeated .google.storage.v1.ObjectAccessControl acl = 4; - - - pub fn get_acl(&self) -> &[ObjectAccessControl] { - &self.acl - } - pub fn clear_acl(&mut self) { - self.acl.clear(); - } - - // Param is passed by value, moved - pub fn set_acl(&mut self, v: ::protobuf::RepeatedField) { - self.acl = v; - } - - // Mutable pointer to the field. - pub fn mut_acl(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.acl - } - - // Take field - pub fn take_acl(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.acl, ::protobuf::RepeatedField::new()) - } - - // string content_language = 5; - - - pub fn get_content_language(&self) -> &str { - &self.content_language - } - pub fn clear_content_language(&mut self) { - self.content_language.clear(); - } - - // Param is passed by value, moved - pub fn set_content_language(&mut self, v: ::std::string::String) { - self.content_language = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_content_language(&mut self) -> &mut ::std::string::String { - &mut self.content_language - } - - // Take field - pub fn take_content_language(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.content_language, ::std::string::String::new()) - } - - // int64 metageneration = 6; - - - pub fn get_metageneration(&self) -> i64 { - self.metageneration - } - pub fn clear_metageneration(&mut self) { - self.metageneration = 0; - } - - // Param is passed by value, moved - pub fn set_metageneration(&mut self, v: i64) { - self.metageneration = v; - } - - // .google.protobuf.Timestamp time_deleted = 7; - - - pub fn get_time_deleted(&self) -> &::protobuf::well_known_types::Timestamp { - self.time_deleted.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_time_deleted(&mut self) { - self.time_deleted.clear(); - } - - pub fn has_time_deleted(&self) -> bool { - self.time_deleted.is_some() - } - - // Param is passed by value, moved - pub fn set_time_deleted(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.time_deleted = ::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_deleted(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.time_deleted.is_none() { - self.time_deleted.set_default(); - } - self.time_deleted.as_mut().unwrap() - } - - // Take field - pub fn take_time_deleted(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.time_deleted.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string content_type = 8; - - - 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()) - } - - // int64 size = 9; - - - pub fn get_size(&self) -> i64 { - self.size - } - pub fn clear_size(&mut self) { - self.size = 0; - } - - // Param is passed by value, moved - pub fn set_size(&mut self, v: i64) { - self.size = v; - } - - // .google.protobuf.Timestamp time_created = 10; - - - pub fn get_time_created(&self) -> &::protobuf::well_known_types::Timestamp { - self.time_created.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_time_created(&mut self) { - self.time_created.clear(); - } - - pub fn has_time_created(&self) -> bool { - self.time_created.is_some() - } - - // Param is passed by value, moved - pub fn set_time_created(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.time_created = ::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_created(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.time_created.is_none() { - self.time_created.set_default(); - } - self.time_created.as_mut().unwrap() - } - - // Take field - pub fn take_time_created(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.time_created.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.UInt32Value crc32c = 11; - - - pub fn get_crc32c(&self) -> &::protobuf::well_known_types::UInt32Value { - self.crc32c.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::UInt32Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_crc32c(&mut self) { - self.crc32c.clear(); - } - - pub fn has_crc32c(&self) -> bool { - self.crc32c.is_some() - } - - // Param is passed by value, moved - pub fn set_crc32c(&mut self, v: ::protobuf::well_known_types::UInt32Value) { - self.crc32c = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_crc32c(&mut self) -> &mut ::protobuf::well_known_types::UInt32Value { - if self.crc32c.is_none() { - self.crc32c.set_default(); - } - self.crc32c.as_mut().unwrap() - } - - // Take field - pub fn take_crc32c(&mut self) -> ::protobuf::well_known_types::UInt32Value { - self.crc32c.take().unwrap_or_else(|| ::protobuf::well_known_types::UInt32Value::new()) - } - - // int32 component_count = 12; - - - pub fn get_component_count(&self) -> i32 { - self.component_count - } - pub fn clear_component_count(&mut self) { - self.component_count = 0; - } - - // Param is passed by value, moved - pub fn set_component_count(&mut self, v: i32) { - self.component_count = v; - } - - // string md5_hash = 13; - - - pub fn get_md5_hash(&self) -> &str { - &self.md5_hash - } - pub fn clear_md5_hash(&mut self) { - self.md5_hash.clear(); - } - - // Param is passed by value, moved - pub fn set_md5_hash(&mut self, v: ::std::string::String) { - self.md5_hash = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_md5_hash(&mut self) -> &mut ::std::string::String { - &mut self.md5_hash - } - - // Take field - pub fn take_md5_hash(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.md5_hash, ::std::string::String::new()) - } - - // string etag = 14; - - - 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 updated = 15; - - - pub fn get_updated(&self) -> &::protobuf::well_known_types::Timestamp { - self.updated.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_updated(&mut self) { - self.updated.clear(); - } - - pub fn has_updated(&self) -> bool { - self.updated.is_some() - } - - // Param is passed by value, moved - pub fn set_updated(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.updated = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_updated(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.updated.is_none() { - self.updated.set_default(); - } - self.updated.as_mut().unwrap() - } - - // Take field - pub fn take_updated(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.updated.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string storage_class = 16; - - - pub fn get_storage_class(&self) -> &str { - &self.storage_class - } - pub fn clear_storage_class(&mut self) { - self.storage_class.clear(); - } - - // Param is passed by value, moved - pub fn set_storage_class(&mut self, v: ::std::string::String) { - self.storage_class = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_storage_class(&mut self) -> &mut ::std::string::String { - &mut self.storage_class - } - - // Take field - pub fn take_storage_class(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.storage_class, ::std::string::String::new()) - } - - // string kms_key_name = 17; - - - 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()) - } - - // .google.protobuf.Timestamp time_storage_class_updated = 18; - - - pub fn get_time_storage_class_updated(&self) -> &::protobuf::well_known_types::Timestamp { - self.time_storage_class_updated.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_time_storage_class_updated(&mut self) { - self.time_storage_class_updated.clear(); - } - - pub fn has_time_storage_class_updated(&self) -> bool { - self.time_storage_class_updated.is_some() - } - - // Param is passed by value, moved - pub fn set_time_storage_class_updated(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.time_storage_class_updated = ::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_storage_class_updated(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.time_storage_class_updated.is_none() { - self.time_storage_class_updated.set_default(); - } - self.time_storage_class_updated.as_mut().unwrap() - } - - // Take field - pub fn take_time_storage_class_updated(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.time_storage_class_updated.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // bool temporary_hold = 19; - - - pub fn get_temporary_hold(&self) -> bool { - self.temporary_hold - } - pub fn clear_temporary_hold(&mut self) { - self.temporary_hold = false; - } - - // Param is passed by value, moved - pub fn set_temporary_hold(&mut self, v: bool) { - self.temporary_hold = v; - } - - // .google.protobuf.Timestamp retention_expiration_time = 20; - - - pub fn get_retention_expiration_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.retention_expiration_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_retention_expiration_time(&mut self) { - self.retention_expiration_time.clear(); - } - - pub fn has_retention_expiration_time(&self) -> bool { - self.retention_expiration_time.is_some() - } - - // Param is passed by value, moved - pub fn set_retention_expiration_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.retention_expiration_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_retention_expiration_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.retention_expiration_time.is_none() { - self.retention_expiration_time.set_default(); - } - self.retention_expiration_time.as_mut().unwrap() - } - - // Take field - pub fn take_retention_expiration_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.retention_expiration_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated .google.storage.v1.Object.MetadataEntry metadata = 21; - - - 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()) - } - - // .google.protobuf.BoolValue event_based_hold = 29; - - - pub fn get_event_based_hold(&self) -> &::protobuf::well_known_types::BoolValue { - self.event_based_hold.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::BoolValue as ::protobuf::Message>::default_instance()) - } - pub fn clear_event_based_hold(&mut self) { - self.event_based_hold.clear(); - } - - pub fn has_event_based_hold(&self) -> bool { - self.event_based_hold.is_some() - } - - // Param is passed by value, moved - pub fn set_event_based_hold(&mut self, v: ::protobuf::well_known_types::BoolValue) { - self.event_based_hold = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_event_based_hold(&mut self) -> &mut ::protobuf::well_known_types::BoolValue { - if self.event_based_hold.is_none() { - self.event_based_hold.set_default(); - } - self.event_based_hold.as_mut().unwrap() - } - - // Take field - pub fn take_event_based_hold(&mut self) -> ::protobuf::well_known_types::BoolValue { - self.event_based_hold.take().unwrap_or_else(|| ::protobuf::well_known_types::BoolValue::new()) - } - - // string name = 23; - - - 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 id = 24; - - - 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 bucket = 25; - - - 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()) - } - - // int64 generation = 26; - - - 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; - } - - // .google.storage.v1.Owner owner = 27; - - - pub fn get_owner(&self) -> &Owner { - self.owner.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_owner(&mut self) { - self.owner.clear(); - } - - pub fn has_owner(&self) -> bool { - self.owner.is_some() - } - - // Param is passed by value, moved - pub fn set_owner(&mut self, v: Owner) { - self.owner = ::protobuf::SingularPtrField::some(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 Owner { - if self.owner.is_none() { - self.owner.set_default(); - } - self.owner.as_mut().unwrap() - } - - // Take field - pub fn take_owner(&mut self) -> Owner { - self.owner.take().unwrap_or_else(|| Owner::new()) - } - - // .google.storage.v1.Object.CustomerEncryption customer_encryption = 28; - - - pub fn get_customer_encryption(&self) -> &Object_CustomerEncryption { - self.customer_encryption.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_customer_encryption(&mut self) { - self.customer_encryption.clear(); - } - - pub fn has_customer_encryption(&self) -> bool { - self.customer_encryption.is_some() - } - - // Param is passed by value, moved - pub fn set_customer_encryption(&mut self, v: Object_CustomerEncryption) { - self.customer_encryption = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_customer_encryption(&mut self) -> &mut Object_CustomerEncryption { - if self.customer_encryption.is_none() { - self.customer_encryption.set_default(); - } - self.customer_encryption.as_mut().unwrap() - } - - // Take field - pub fn take_customer_encryption(&mut self) -> Object_CustomerEncryption { - self.customer_encryption.take().unwrap_or_else(|| Object_CustomerEncryption::new()) - } -} - -impl ::protobuf::Message for Object { - fn is_initialized(&self) -> bool { - for v in &self.acl { - if !v.is_initialized() { - return false; - } - }; - for v in &self.time_deleted { - if !v.is_initialized() { - return false; - } - }; - for v in &self.time_created { - if !v.is_initialized() { - return false; - } - }; - for v in &self.crc32c { - if !v.is_initialized() { - return false; - } - }; - for v in &self.updated { - if !v.is_initialized() { - return false; - } - }; - for v in &self.time_storage_class_updated { - if !v.is_initialized() { - return false; - } - }; - for v in &self.retention_expiration_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.event_based_hold { - if !v.is_initialized() { - return false; - } - }; - for v in &self.owner { - if !v.is_initialized() { - return false; - } - }; - for v in &self.customer_encryption { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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_encoding)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content_disposition)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cache_control)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.acl)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content_language)?; - }, - 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.metageneration = tmp; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_deleted)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content_type)?; - }, - 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.size = tmp; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_created)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crc32c)?; - }, - 12 => { - 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.component_count = tmp; - }, - 13 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.md5_hash)?; - }, - 14 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 15 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.updated)?; - }, - 16 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.storage_class)?; - }, - 17 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; - }, - 18 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_storage_class_updated)?; - }, - 19 => { - 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.temporary_hold = tmp; - }, - 20 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.retention_expiration_time)?; - }, - 21 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.metadata)?; - }, - 29 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.event_based_hold)?; - }, - 23 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 24 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 25 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 26 => { - 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; - }, - 27 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.owner)?; - }, - 28 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.customer_encryption)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.content_encoding.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.content_encoding); - } - if !self.content_disposition.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.content_disposition); - } - if !self.cache_control.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.cache_control); - } - for value in &self.acl { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.content_language.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.content_language); - } - if self.metageneration != 0 { - my_size += ::protobuf::rt::value_size(6, self.metageneration, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.time_deleted.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.content_type.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.content_type); - } - if self.size != 0 { - my_size += ::protobuf::rt::value_size(9, self.size, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.time_created.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.crc32c.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.component_count != 0 { - my_size += ::protobuf::rt::value_size(12, self.component_count, ::protobuf::wire_format::WireTypeVarint); - } - if !self.md5_hash.is_empty() { - my_size += ::protobuf::rt::string_size(13, &self.md5_hash); - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(14, &self.etag); - } - if let Some(ref v) = self.updated.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.storage_class.is_empty() { - my_size += ::protobuf::rt::string_size(16, &self.storage_class); - } - if !self.kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(17, &self.kms_key_name); - } - if let Some(ref v) = self.time_storage_class_updated.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.temporary_hold != false { - my_size += 3; - } - if let Some(ref v) = self.retention_expiration_time.as_ref() { - let len = v.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::ProtobufTypeString>(21, &self.metadata); - if let Some(ref v) = self.event_based_hold.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(23, &self.name); - } - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(24, &self.id); - } - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(25, &self.bucket); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(26, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.owner.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.customer_encryption.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.content_encoding.is_empty() { - os.write_string(1, &self.content_encoding)?; - } - if !self.content_disposition.is_empty() { - os.write_string(2, &self.content_disposition)?; - } - if !self.cache_control.is_empty() { - os.write_string(3, &self.cache_control)?; - } - for v in &self.acl { - 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.content_language.is_empty() { - os.write_string(5, &self.content_language)?; - } - if self.metageneration != 0 { - os.write_int64(6, self.metageneration)?; - } - if let Some(ref v) = self.time_deleted.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.content_type.is_empty() { - os.write_string(8, &self.content_type)?; - } - if self.size != 0 { - os.write_int64(9, self.size)?; - } - if let Some(ref v) = self.time_created.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.crc32c.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.component_count != 0 { - os.write_int32(12, self.component_count)?; - } - if !self.md5_hash.is_empty() { - os.write_string(13, &self.md5_hash)?; - } - if !self.etag.is_empty() { - os.write_string(14, &self.etag)?; - } - if let Some(ref v) = self.updated.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.storage_class.is_empty() { - os.write_string(16, &self.storage_class)?; - } - if !self.kms_key_name.is_empty() { - os.write_string(17, &self.kms_key_name)?; - } - if let Some(ref v) = self.time_storage_class_updated.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 self.temporary_hold != false { - os.write_bool(19, self.temporary_hold)?; - } - if let Some(ref v) = self.retention_expiration_time.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)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(21, &self.metadata, os)?; - if let Some(ref v) = self.event_based_hold.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 !self.name.is_empty() { - os.write_string(23, &self.name)?; - } - if !self.id.is_empty() { - os.write_string(24, &self.id)?; - } - if !self.bucket.is_empty() { - os.write_string(25, &self.bucket)?; - } - if self.generation != 0 { - os.write_int64(26, self.generation)?; - } - if let Some(ref v) = self.owner.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.customer_encryption.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() -> Object { - Object::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_encoding", - |m: &Object| { &m.content_encoding }, - |m: &mut Object| { &mut m.content_encoding }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "content_disposition", - |m: &Object| { &m.content_disposition }, - |m: &mut Object| { &mut m.content_disposition }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "cache_control", - |m: &Object| { &m.cache_control }, - |m: &mut Object| { &mut m.cache_control }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "acl", - |m: &Object| { &m.acl }, - |m: &mut Object| { &mut m.acl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "content_language", - |m: &Object| { &m.content_language }, - |m: &mut Object| { &mut m.content_language }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "metageneration", - |m: &Object| { &m.metageneration }, - |m: &mut Object| { &mut m.metageneration }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "time_deleted", - |m: &Object| { &m.time_deleted }, - |m: &mut Object| { &mut m.time_deleted }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "content_type", - |m: &Object| { &m.content_type }, - |m: &mut Object| { &mut m.content_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "size", - |m: &Object| { &m.size }, - |m: &mut Object| { &mut m.size }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "time_created", - |m: &Object| { &m.time_created }, - |m: &mut Object| { &mut m.time_created }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::UInt32Value>>( - "crc32c", - |m: &Object| { &m.crc32c }, - |m: &mut Object| { &mut m.crc32c }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "component_count", - |m: &Object| { &m.component_count }, - |m: &mut Object| { &mut m.component_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "md5_hash", - |m: &Object| { &m.md5_hash }, - |m: &mut Object| { &mut m.md5_hash }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &Object| { &m.etag }, - |m: &mut Object| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "updated", - |m: &Object| { &m.updated }, - |m: &mut Object| { &mut m.updated }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "storage_class", - |m: &Object| { &m.storage_class }, - |m: &mut Object| { &mut m.storage_class }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_name", - |m: &Object| { &m.kms_key_name }, - |m: &mut Object| { &mut m.kms_key_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "time_storage_class_updated", - |m: &Object| { &m.time_storage_class_updated }, - |m: &mut Object| { &mut m.time_storage_class_updated }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "temporary_hold", - |m: &Object| { &m.temporary_hold }, - |m: &mut Object| { &mut m.temporary_hold }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "retention_expiration_time", - |m: &Object| { &m.retention_expiration_time }, - |m: &mut Object| { &mut m.retention_expiration_time }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "metadata", - |m: &Object| { &m.metadata }, - |m: &mut Object| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::BoolValue>>( - "event_based_hold", - |m: &Object| { &m.event_based_hold }, - |m: &mut Object| { &mut m.event_based_hold }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Object| { &m.name }, - |m: &mut Object| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Object| { &m.id }, - |m: &mut Object| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &Object| { &m.bucket }, - |m: &mut Object| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &Object| { &m.generation }, - |m: &mut Object| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "owner", - |m: &Object| { &m.owner }, - |m: &mut Object| { &mut m.owner }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "customer_encryption", - |m: &Object| { &m.customer_encryption }, - |m: &mut Object| { &mut m.customer_encryption }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Object", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Object { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Object::new) - } -} - -impl ::protobuf::Clear for Object { - fn clear(&mut self) { - self.content_encoding.clear(); - self.content_disposition.clear(); - self.cache_control.clear(); - self.acl.clear(); - self.content_language.clear(); - self.metageneration = 0; - self.time_deleted.clear(); - self.content_type.clear(); - self.size = 0; - self.time_created.clear(); - self.crc32c.clear(); - self.component_count = 0; - self.md5_hash.clear(); - self.etag.clear(); - self.updated.clear(); - self.storage_class.clear(); - self.kms_key_name.clear(); - self.time_storage_class_updated.clear(); - self.temporary_hold = false; - self.retention_expiration_time.clear(); - self.metadata.clear(); - self.event_based_hold.clear(); - self.name.clear(); - self.id.clear(); - self.bucket.clear(); - self.generation = 0; - self.owner.clear(); - self.customer_encryption.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Object { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Object { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Object_CustomerEncryption { - // message fields - pub encryption_algorithm: ::std::string::String, - pub key_sha256: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Object_CustomerEncryption { - fn default() -> &'a Object_CustomerEncryption { - ::default_instance() - } -} - -impl Object_CustomerEncryption { - pub fn new() -> Object_CustomerEncryption { - ::std::default::Default::default() - } - - // string encryption_algorithm = 1; - - - pub fn get_encryption_algorithm(&self) -> &str { - &self.encryption_algorithm - } - pub fn clear_encryption_algorithm(&mut self) { - self.encryption_algorithm.clear(); - } - - // Param is passed by value, moved - pub fn set_encryption_algorithm(&mut self, v: ::std::string::String) { - self.encryption_algorithm = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_algorithm(&mut self) -> &mut ::std::string::String { - &mut self.encryption_algorithm - } - - // Take field - pub fn take_encryption_algorithm(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.encryption_algorithm, ::std::string::String::new()) - } - - // string key_sha256 = 2; - - - pub fn get_key_sha256(&self) -> &str { - &self.key_sha256 - } - pub fn clear_key_sha256(&mut self) { - self.key_sha256.clear(); - } - - // Param is passed by value, moved - pub fn set_key_sha256(&mut self, v: ::std::string::String) { - self.key_sha256 = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_key_sha256(&mut self) -> &mut ::std::string::String { - &mut self.key_sha256 - } - - // Take field - pub fn take_key_sha256(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.key_sha256, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Object_CustomerEncryption { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.encryption_algorithm)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.key_sha256)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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_algorithm.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.encryption_algorithm); - } - if !self.key_sha256.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.key_sha256); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_algorithm.is_empty() { - os.write_string(1, &self.encryption_algorithm)?; - } - if !self.key_sha256.is_empty() { - os.write_string(2, &self.key_sha256)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Object_CustomerEncryption { - Object_CustomerEncryption::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "encryption_algorithm", - |m: &Object_CustomerEncryption| { &m.encryption_algorithm }, - |m: &mut Object_CustomerEncryption| { &mut m.encryption_algorithm }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "key_sha256", - |m: &Object_CustomerEncryption| { &m.key_sha256 }, - |m: &mut Object_CustomerEncryption| { &mut m.key_sha256 }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Object.CustomerEncryption", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Object_CustomerEncryption { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Object_CustomerEncryption::new) - } -} - -impl ::protobuf::Clear for Object_CustomerEncryption { - fn clear(&mut self) { - self.encryption_algorithm.clear(); - self.key_sha256.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Object_CustomerEncryption { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Object_CustomerEncryption { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ObjectAccessControl { - // message fields - pub role: ::std::string::String, - pub etag: ::std::string::String, - pub id: ::std::string::String, - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - pub entity: ::std::string::String, - pub entity_id: ::std::string::String, - pub email: ::std::string::String, - pub domain: ::std::string::String, - pub project_team: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ObjectAccessControl { - fn default() -> &'a ObjectAccessControl { - ::default_instance() - } -} - -impl ObjectAccessControl { - pub fn new() -> ObjectAccessControl { - ::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()) - } - - // 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 id = 3; - - - 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 bucket = 4; - - - 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 = 5; - - - 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 = 6; - - - 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; - } - - // string entity = 7; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // string entity_id = 8; - - - pub fn get_entity_id(&self) -> &str { - &self.entity_id - } - pub fn clear_entity_id(&mut self) { - self.entity_id.clear(); - } - - // Param is passed by value, moved - pub fn set_entity_id(&mut self, v: ::std::string::String) { - self.entity_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity_id(&mut self) -> &mut ::std::string::String { - &mut self.entity_id - } - - // Take field - pub fn take_entity_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity_id, ::std::string::String::new()) - } - - // string email = 9; - - - pub fn get_email(&self) -> &str { - &self.email - } - pub fn clear_email(&mut self) { - self.email.clear(); - } - - // Param is passed by value, moved - pub fn set_email(&mut self, v: ::std::string::String) { - self.email = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_email(&mut self) -> &mut ::std::string::String { - &mut self.email - } - - // Take field - pub fn take_email(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.email, ::std::string::String::new()) - } - - // string domain = 10; - - - 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()) - } - - // .google.storage.v1.ProjectTeam project_team = 11; - - - pub fn get_project_team(&self) -> &ProjectTeam { - self.project_team.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_project_team(&mut self) { - self.project_team.clear(); - } - - pub fn has_project_team(&self) -> bool { - self.project_team.is_some() - } - - // Param is passed by value, moved - pub fn set_project_team(&mut self, v: ProjectTeam) { - self.project_team = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_team(&mut self) -> &mut ProjectTeam { - if self.project_team.is_none() { - self.project_team.set_default(); - } - self.project_team.as_mut().unwrap() - } - - // Take field - pub fn take_project_team(&mut self) -> ProjectTeam { - self.project_team.take().unwrap_or_else(|| ProjectTeam::new()) - } -} - -impl ::protobuf::Message for ObjectAccessControl { - fn is_initialized(&self) -> bool { - for v in &self.project_team { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)?; - }, - 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.id)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 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.generation = tmp; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity_id)?; - }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.email)?; - }, - 10 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.domain)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.project_team)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.role.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.role); - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.etag); - } - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.id); - } - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.bucket); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.object); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(6, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - if !self.entity.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.entity); - } - if !self.entity_id.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.entity_id); - } - if !self.email.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.email); - } - if !self.domain.is_empty() { - my_size += ::protobuf::rt::string_size(10, &self.domain); - } - if let Some(ref v) = self.project_team.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)?; - } - if !self.etag.is_empty() { - os.write_string(2, &self.etag)?; - } - if !self.id.is_empty() { - os.write_string(3, &self.id)?; - } - if !self.bucket.is_empty() { - os.write_string(4, &self.bucket)?; - } - if !self.object.is_empty() { - os.write_string(5, &self.object)?; - } - if self.generation != 0 { - os.write_int64(6, self.generation)?; - } - if !self.entity.is_empty() { - os.write_string(7, &self.entity)?; - } - if !self.entity_id.is_empty() { - os.write_string(8, &self.entity_id)?; - } - if !self.email.is_empty() { - os.write_string(9, &self.email)?; - } - if !self.domain.is_empty() { - os.write_string(10, &self.domain)?; - } - if let Some(ref v) = self.project_team.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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ObjectAccessControl { - ObjectAccessControl::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ObjectAccessControl| { &m.role }, - |m: &mut ObjectAccessControl| { &mut m.role }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &ObjectAccessControl| { &m.etag }, - |m: &mut ObjectAccessControl| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &ObjectAccessControl| { &m.id }, - |m: &mut ObjectAccessControl| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &ObjectAccessControl| { &m.bucket }, - |m: &mut ObjectAccessControl| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &ObjectAccessControl| { &m.object }, - |m: &mut ObjectAccessControl| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &ObjectAccessControl| { &m.generation }, - |m: &mut ObjectAccessControl| { &mut m.generation }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &ObjectAccessControl| { &m.entity }, - |m: &mut ObjectAccessControl| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity_id", - |m: &ObjectAccessControl| { &m.entity_id }, - |m: &mut ObjectAccessControl| { &mut m.entity_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "email", - |m: &ObjectAccessControl| { &m.email }, - |m: &mut ObjectAccessControl| { &mut m.email }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "domain", - |m: &ObjectAccessControl| { &m.domain }, - |m: &mut ObjectAccessControl| { &mut m.domain }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "project_team", - |m: &ObjectAccessControl| { &m.project_team }, - |m: &mut ObjectAccessControl| { &mut m.project_team }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ObjectAccessControl", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ObjectAccessControl { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ObjectAccessControl::new) - } -} - -impl ::protobuf::Clear for ObjectAccessControl { - fn clear(&mut self) { - self.role.clear(); - self.etag.clear(); - self.id.clear(); - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.entity.clear(); - self.entity_id.clear(); - self.email.clear(); - self.domain.clear(); - self.project_team.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ObjectAccessControl { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ObjectAccessControl { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListObjectAccessControlsResponse { - // message fields - pub items: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListObjectAccessControlsResponse { - fn default() -> &'a ListObjectAccessControlsResponse { - ::default_instance() - } -} - -impl ListObjectAccessControlsResponse { - pub fn new() -> ListObjectAccessControlsResponse { - ::std::default::Default::default() - } - - // repeated .google.storage.v1.ObjectAccessControl items = 1; - - - pub fn get_items(&self) -> &[ObjectAccessControl] { - &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 ListObjectAccessControlsResponse { - fn is_initialized(&self) -> bool { - 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_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; - 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<()> { - for v in &self.items { - 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() -> ListObjectAccessControlsResponse { - ListObjectAccessControlsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "items", - |m: &ListObjectAccessControlsResponse| { &m.items }, - |m: &mut ListObjectAccessControlsResponse| { &mut m.items }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListObjectAccessControlsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListObjectAccessControlsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListObjectAccessControlsResponse::new) - } -} - -impl ::protobuf::Clear for ListObjectAccessControlsResponse { - fn clear(&mut self) { - self.items.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListObjectAccessControlsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListObjectAccessControlsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListObjectsResponse { - // message fields - pub prefixes: ::protobuf::RepeatedField<::std::string::String>, - pub items: ::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 ListObjectsResponse { - fn default() -> &'a ListObjectsResponse { - ::default_instance() - } -} - -impl ListObjectsResponse { - pub fn new() -> ListObjectsResponse { - ::std::default::Default::default() - } - - // repeated string prefixes = 1; - - - pub fn get_prefixes(&self) -> &[::std::string::String] { - &self.prefixes - } - pub fn clear_prefixes(&mut self) { - self.prefixes.clear(); - } - - // Param is passed by value, moved - pub fn set_prefixes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.prefixes = v; - } - - // Mutable pointer to the field. - pub fn mut_prefixes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.prefixes - } - - // Take field - pub fn take_prefixes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.prefixes, ::protobuf::RepeatedField::new()) - } - - // repeated .google.storage.v1.Object items = 2; - - - pub fn get_items(&self) -> &[Object] { - &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()) - } - - // 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 ListObjectsResponse { - fn is_initialized(&self) -> bool { - 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_repeated_string_into(wire_type, is, &mut self.prefixes)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?; - }, - 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.prefixes { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.items { - 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<()> { - for v in &self.prefixes { - os.write_string(1, &v)?; - }; - for v in &self.items { - 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() -> ListObjectsResponse { - ListObjectsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::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>( - "prefixes", - |m: &ListObjectsResponse| { &m.prefixes }, - |m: &mut ListObjectsResponse| { &mut m.prefixes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "items", - |m: &ListObjectsResponse| { &m.items }, - |m: &mut ListObjectsResponse| { &mut m.items }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListObjectsResponse| { &m.next_page_token }, - |m: &mut ListObjectsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListObjectsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListObjectsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListObjectsResponse::new) - } -} - -impl ::protobuf::Clear for ListObjectsResponse { - fn clear(&mut self) { - self.prefixes.clear(); - self.items.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListObjectsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListObjectsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ProjectTeam { - // message fields - pub project_number: ::std::string::String, - pub team: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ProjectTeam { - fn default() -> &'a ProjectTeam { - ::default_instance() - } -} - -impl ProjectTeam { - pub fn new() -> ProjectTeam { - ::std::default::Default::default() - } - - // string project_number = 1; - - - pub fn get_project_number(&self) -> &str { - &self.project_number - } - pub fn clear_project_number(&mut self) { - self.project_number.clear(); - } - - // Param is passed by value, moved - pub fn set_project_number(&mut self, v: ::std::string::String) { - self.project_number = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project_number(&mut self) -> &mut ::std::string::String { - &mut self.project_number - } - - // Take field - pub fn take_project_number(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project_number, ::std::string::String::new()) - } - - // string team = 2; - - - pub fn get_team(&self) -> &str { - &self.team - } - pub fn clear_team(&mut self) { - self.team.clear(); - } - - // Param is passed by value, moved - pub fn set_team(&mut self, v: ::std::string::String) { - self.team = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_team(&mut self) -> &mut ::std::string::String { - &mut self.team - } - - // Take field - pub fn take_team(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.team, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ProjectTeam { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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_number)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.team)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.project_number); - } - if !self.team.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.team); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.is_empty() { - os.write_string(1, &self.project_number)?; - } - if !self.team.is_empty() { - os.write_string(2, &self.team)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ProjectTeam { - ProjectTeam::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_number", - |m: &ProjectTeam| { &m.project_number }, - |m: &mut ProjectTeam| { &mut m.project_number }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "team", - |m: &ProjectTeam| { &m.team }, - |m: &mut ProjectTeam| { &mut m.team }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ProjectTeam", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ProjectTeam { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ProjectTeam::new) - } -} - -impl ::protobuf::Clear for ProjectTeam { - fn clear(&mut self) { - self.project_number.clear(); - self.team.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ProjectTeam { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ProjectTeam { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServiceAccount { - // message fields - pub email_address: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServiceAccount { - fn default() -> &'a ServiceAccount { - ::default_instance() - } -} - -impl ServiceAccount { - pub fn new() -> ServiceAccount { - ::std::default::Default::default() - } - - // string email_address = 1; - - - pub fn get_email_address(&self) -> &str { - &self.email_address - } - pub fn clear_email_address(&mut self) { - self.email_address.clear(); - } - - // Param is passed by value, moved - pub fn set_email_address(&mut self, v: ::std::string::String) { - self.email_address = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_email_address(&mut self) -> &mut ::std::string::String { - &mut self.email_address - } - - // Take field - pub fn take_email_address(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.email_address, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ServiceAccount { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.email_address)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.email_address.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.email_address); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.email_address.is_empty() { - os.write_string(1, &self.email_address)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServiceAccount { - ServiceAccount::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "email_address", - |m: &ServiceAccount| { &m.email_address }, - |m: &mut ServiceAccount| { &mut m.email_address }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServiceAccount", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServiceAccount { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServiceAccount::new) - } -} - -impl ::protobuf::Clear for ServiceAccount { - fn clear(&mut self) { - self.email_address.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServiceAccount { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServiceAccount { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Owner { - // message fields - pub entity: ::std::string::String, - pub entity_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Owner { - fn default() -> &'a Owner { - ::default_instance() - } -} - -impl Owner { - pub fn new() -> Owner { - ::std::default::Default::default() - } - - // string entity = 1; - - - pub fn get_entity(&self) -> &str { - &self.entity - } - pub fn clear_entity(&mut self) { - self.entity.clear(); - } - - // Param is passed by value, moved - pub fn set_entity(&mut self, v: ::std::string::String) { - self.entity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity(&mut self) -> &mut ::std::string::String { - &mut self.entity - } - - // Take field - pub fn take_entity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity, ::std::string::String::new()) - } - - // string entity_id = 2; - - - pub fn get_entity_id(&self) -> &str { - &self.entity_id - } - pub fn clear_entity_id(&mut self) { - self.entity_id.clear(); - } - - // Param is passed by value, moved - pub fn set_entity_id(&mut self, v: ::std::string::String) { - self.entity_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity_id(&mut self) -> &mut ::std::string::String { - &mut self.entity_id - } - - // Take field - pub fn take_entity_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Owner { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity_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.entity.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.entity); - } - if !self.entity_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity_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.entity.is_empty() { - os.write_string(1, &self.entity)?; - } - if !self.entity_id.is_empty() { - os.write_string(2, &self.entity_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() -> Owner { - Owner::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity", - |m: &Owner| { &m.entity }, - |m: &mut Owner| { &mut m.entity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity_id", - |m: &Owner| { &m.entity_id }, - |m: &mut Owner| { &mut m.entity_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Owner", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Owner { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Owner::new) - } -} - -impl ::protobuf::Clear for Owner { - fn clear(&mut self) { - self.entity.clear(); - self.entity_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Owner { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Owner { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n)google/storage/v1/storage_resources.proto\x12\x11google.storage.v1\ - \x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.\ - proto\"\xc1\x16\n\x06Bucket\x128\n\x03acl\x18\x01\x20\x03(\x0b2&.google.\ - storage.v1.BucketAccessControlR\x03acl\x12T\n\x12default_object_acl\x18\ - \x02\x20\x03(\x0b2&.google.storage.v1.ObjectAccessControlR\x10defaultObj\ - ectAcl\x12A\n\tlifecycle\x18\x03\x20\x01(\x0b2#.google.storage.v1.Bucket\ - .LifecycleR\tlifecycle\x12=\n\x0ctime_created\x18\x04\x20\x01(\x0b2\x1a.\ - google.protobuf.TimestampR\x0btimeCreated\x12\x0e\n\x02id\x18\x05\x20\ - \x01(\tR\x02id\x12\x12\n\x04name\x18\x06\x20\x01(\tR\x04name\x12%\n\x0ep\ - roject_number\x18\x07\x20\x01(\x03R\rprojectNumber\x12&\n\x0emetagenerat\ - ion\x18\x08\x20\x01(\x03R\x0emetageneration\x122\n\x04cors\x18\t\x20\x03\ - (\x0b2\x1e.google.storage.v1.Bucket.CorsR\x04cors\x12\x1a\n\x08location\ - \x18\n\x20\x01(\tR\x08location\x12#\n\rstorage_class\x18\x0b\x20\x01(\tR\ - \x0cstorageClass\x12\x12\n\x04etag\x18\x0c\x20\x01(\tR\x04etag\x124\n\ - \x07updated\x18\r\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07update\ - d\x127\n\x18default_event_based_hold\x18\x0e\x20\x01(\x08R\x15defaultEve\ - ntBasedHold\x12=\n\x06labels\x18\x0f\x20\x03(\x0b2%.google.storage.v1.Bu\ - cket.LabelsEntryR\x06labels\x12;\n\x07website\x18\x10\x20\x01(\x0b2!.goo\ - gle.storage.v1.Bucket.WebsiteR\x07website\x12D\n\nversioning\x18\x11\x20\ - \x01(\x0b2$.google.storage.v1.Bucket.VersioningR\nversioning\x12;\n\x07l\ - ogging\x18\x12\x20\x01(\x0b2!.google.storage.v1.Bucket.LoggingR\x07loggi\ - ng\x12.\n\x05owner\x18\x13\x20\x01(\x0b2\x18.google.storage.v1.OwnerR\ - \x05owner\x12D\n\nencryption\x18\x14\x20\x01(\x0b2$.google.storage.v1.Bu\ - cket.EncryptionR\nencryption\x12;\n\x07billing\x18\x15\x20\x01(\x0b2!.go\ - ogle.storage.v1.Bucket.BillingR\x07billing\x12T\n\x10retention_policy\ - \x18\x16\x20\x01(\x0b2).google.storage.v1.Bucket.RetentionPolicyR\x0fret\ - entionPolicy\x12#\n\rlocation_type\x18\x17\x20\x01(\tR\x0clocationType\ - \x12W\n\x11iam_configuration\x18\x18\x20\x01(\x0b2*.google.storage.v1.Bu\ - cket.IamConfigurationR\x10iamConfiguration\x12#\n\rzone_affinity\x18\x19\ - \x20\x03(\tR\x0czoneAffinity\x1a0\n\x07Billing\x12%\n\x0erequester_pays\ - \x18\x01\x20\x01(\x08R\rrequesterPays\x1a\x87\x01\n\x04Cors\x12\x16\n\ - \x06origin\x18\x01\x20\x03(\tR\x06origin\x12\x16\n\x06method\x18\x02\x20\ - \x03(\tR\x06method\x12'\n\x0fresponse_header\x18\x03\x20\x03(\tR\x0eresp\ - onseHeader\x12&\n\x0fmax_age_seconds\x18\x04\x20\x01(\x05R\rmaxAgeSecond\ - s\x1a=\n\nEncryption\x12/\n\x14default_kms_key_name\x18\x01\x20\x01(\tR\ - \x11defaultKmsKeyName\x1a\x8a\x02\n\x10IamConfiguration\x12\x82\x01\n\ - \x1buniform_bucket_level_access\x18\x01\x20\x01(\x0b2C.google.storage.v1\ - .Bucket.IamConfiguration.UniformBucketLevelAccessR\x18uniformBucketLevel\ - Access\x1aq\n\x18UniformBucketLevelAccess\x12\x18\n\x07enabled\x18\x01\ - \x20\x01(\x08R\x07enabled\x12;\n\x0blocked_time\x18\x02\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampR\nlockedTime\x1a\xd3\x04\n\tLifecycle\x12\ - <\n\x04rule\x18\x01\x20\x03(\x0b2(.google.storage.v1.Bucket.Lifecycle.Ru\ - leR\x04rule\x1a\x87\x04\n\x04Rule\x12G\n\x06action\x18\x01\x20\x01(\x0b2\ - /.google.storage.v1.Bucket.Lifecycle.Rule.ActionR\x06action\x12P\n\tcond\ - ition\x18\x02\x20\x01(\x0b22.google.storage.v1.Bucket.Lifecycle.Rule.Con\ - ditionR\tcondition\x1aA\n\x06Action\x12\x12\n\x04type\x18\x01\x20\x01(\t\ - R\x04type\x12#\n\rstorage_class\x18\x02\x20\x01(\tR\x0cstorageClass\x1a\ - \xa0\x02\n\tCondition\x12\x10\n\x03age\x18\x01\x20\x01(\x05R\x03age\x12A\ - \n\x0ecreated_before\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.Timestamp\ - R\rcreatedBefore\x123\n\x07is_live\x18\x03\x20\x01(\x0b2\x1a.google.prot\ - obuf.BoolValueR\x06isLive\x12,\n\x12num_newer_versions\x18\x04\x20\x01(\ - \x05R\x10numNewerVersions\x122\n\x15matches_storage_class\x18\x05\x20\ - \x03(\tR\x13matchesStorageClass\x12'\n\x0fmatches_pattern\x18\x06\x20\ - \x01(\tR\x0ematchesPattern\x1aT\n\x07Logging\x12\x1d\n\nlog_bucket\x18\ - \x01\x20\x01(\tR\tlogBucket\x12*\n\x11log_object_prefix\x18\x02\x20\x01(\ - \tR\x0flogObjectPrefix\x1a\x9c\x01\n\x0fRetentionPolicy\x12A\n\x0eeffect\ - ive_time\x18\x01\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\reffective\ - Time\x12\x1b\n\tis_locked\x18\x02\x20\x01(\x08R\x08isLocked\x12)\n\x10re\ - tention_period\x18\x03\x20\x01(\x03R\x0fretentionPeriod\x1a&\n\nVersioni\ - ng\x12\x18\n\x07enabled\x18\x01\x20\x01(\x08R\x07enabled\x1aY\n\x07Websi\ - te\x12(\n\x10main_page_suffix\x18\x01\x20\x01(\tR\x0emainPageSuffix\x12$\ - \n\x0enot_found_page\x18\x02\x20\x01(\tR\x0cnotFoundPage\x1a9\n\x0bLabel\ - sEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\ - \x18\x02\x20\x01(\tR\x05value:\x028\x01\"\x8b\x02\n\x13BucketAccessContr\ - ol\x12\x12\n\x04role\x18\x01\x20\x01(\tR\x04role\x12\x12\n\x04etag\x18\ - \x02\x20\x01(\tR\x04etag\x12\x0e\n\x02id\x18\x03\x20\x01(\tR\x02id\x12\ - \x16\n\x06bucket\x18\x04\x20\x01(\tR\x06bucket\x12\x16\n\x06entity\x18\ - \x06\x20\x01(\tR\x06entity\x12\x1b\n\tentity_id\x18\x07\x20\x01(\tR\x08e\ - ntityId\x12\x14\n\x05email\x18\x08\x20\x01(\tR\x05email\x12\x16\n\x06dom\ - ain\x18\t\x20\x01(\tR\x06domain\x12A\n\x0cproject_team\x18\n\x20\x01(\ - \x0b2\x1e.google.storage.v1.ProjectTeamR\x0bprojectTeam\"`\n\x20ListBuck\ - etAccessControlsResponse\x12<\n\x05items\x18\x01\x20\x03(\x0b2&.google.s\ - torage.v1.BucketAccessControlR\x05items\"n\n\x13ListBucketsResponse\x12/\ - \n\x05items\x18\x01\x20\x03(\x0b2\x19.google.storage.v1.BucketR\x05items\ - \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\xf2\x02\ - \n\x07Channel\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x1f\n\x0bres\ - ource_id\x18\x02\x20\x01(\tR\nresourceId\x12!\n\x0cresource_uri\x18\x03\ - \x20\x01(\tR\x0bresourceUri\x12\x14\n\x05token\x18\x04\x20\x01(\tR\x05to\ - ken\x12:\n\nexpiration\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.Timesta\ - mpR\nexpiration\x12\x12\n\x04type\x18\x06\x20\x01(\tR\x04type\x12\x18\n\ - \x07address\x18\x07\x20\x01(\tR\x07address\x12>\n\x06params\x18\x08\x20\ - \x03(\x0b2&.google.storage.v1.Channel.ParamsEntryR\x06params\x12\x18\n\ - \x07payload\x18\t\x20\x01(\x08R\x07payload\x1a9\n\x0bParamsEntry\x12\x10\ - \n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\ - \tR\x05value:\x028\x01\"\xac\x02\n\x14ListChannelsResponse\x12C\n\x05ite\ - ms\x18\x01\x20\x03(\x0b2-.google.storage.v1.ListChannelsResponse.ItemsR\ - \x05items\x1a\xce\x01\n\x05Items\x12\x1d\n\nchannel_id\x18\x01\x20\x01(\ - \tR\tchannelId\x12\x1f\n\x0bresource_id\x18\x02\x20\x01(\tR\nresourceId\ - \x12\x19\n\x08push_url\x18\x03\x20\x01(\tR\x07pushUrl\x12)\n\x10subscrib\ - er_email\x18\x04\x20\x01(\tR\x0fsubscriberEmail\x12?\n\rcreation_time\ - \x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0ccreationTime\"a\ - \n\x0fChecksummedData\x12\x18\n\x07content\x18\x01\x20\x01(\x0cR\x07cont\ - ent\x124\n\x06crc32c\x18\x02\x20\x01(\x0b2\x1c.google.protobuf.UInt32Val\ - ueR\x06crc32c\"b\n\x0fObjectChecksums\x124\n\x06crc32c\x18\x01\x20\x01(\ - \x0b2\x1c.google.protobuf.UInt32ValueR\x06crc32c\x12\x19\n\x08md5_hash\ - \x18\x02\x20\x01(\tR\x07md5Hash\"\xa7\x04\n\x0bCommonEnums\">\n\nProject\ - ion\x12\x1a\n\x16PROJECTION_UNSPECIFIED\x10\0\x12\n\n\x06NO_ACL\x10\x01\ - \x12\x08\n\x04FULL\x10\x02\"\xd5\x01\n\x13PredefinedBucketAcl\x12%\n!PRE\ - DEFINED_BUCKET_ACL_UNSPECIFIED\x10\0\x12!\n\x1dBUCKET_ACL_AUTHENTICATED_\ - READ\x10\x01\x12\x16\n\x12BUCKET_ACL_PRIVATE\x10\x02\x12\x1e\n\x1aBUCKET\ - _ACL_PROJECT_PRIVATE\x10\x03\x12\x1a\n\x16BUCKET_ACL_PUBLIC_READ\x10\x04\ - \x12\x20\n\x1cBUCKET_ACL_PUBLIC_READ_WRITE\x10\x05\"\xff\x01\n\x13Predef\ - inedObjectAcl\x12%\n!PREDEFINED_OBJECT_ACL_UNSPECIFIED\x10\0\x12!\n\x1dO\ - BJECT_ACL_AUTHENTICATED_READ\x10\x01\x12(\n$OBJECT_ACL_BUCKET_OWNER_FULL\ - _CONTROL\x10\x02\x12\x20\n\x1cOBJECT_ACL_BUCKET_OWNER_READ\x10\x03\x12\ - \x16\n\x12OBJECT_ACL_PRIVATE\x10\x04\x12\x1e\n\x1aOBJECT_ACL_PROJECT_PRI\ - VATE\x10\x05\x12\x1a\n\x16OBJECT_ACL_PUBLIC_READ\x10\x06\"_\n\x0cContent\ - Range\x12\x14\n\x05start\x18\x01\x20\x01(\x03R\x05start\x12\x10\n\x03end\ - \x18\x02\x20\x01(\x03R\x03end\x12'\n\x0fcomplete_length\x18\x03\x20\x01(\ - \x03R\x0ecompleteLength\"\xb0\x02\n\x0fHmacKeyMetadata\x12\x0e\n\x02id\ - \x18\x01\x20\x01(\tR\x02id\x12\x1b\n\taccess_id\x18\x02\x20\x01(\tR\x08a\ - ccessId\x12\x1d\n\nproject_id\x18\x03\x20\x01(\tR\tprojectId\x122\n\x15s\ - ervice_account_email\x18\x04\x20\x01(\tR\x13serviceAccountEmail\x12\x14\ - \n\x05state\x18\x05\x20\x01(\tR\x05state\x12=\n\x0ctime_created\x18\x06\ - \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0btimeCreated\x124\n\x07u\ - pdated\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07updated\ - \x12\x12\n\x04etag\x18\x08\x20\x01(\tR\x04etag\"\xe7\x02\n\x0cNotificati\ - on\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05topic\x12\x1f\n\x0bevent_ty\ - pes\x18\x02\x20\x03(\tR\neventTypes\x12b\n\x11custom_attributes\x18\x03\ - \x20\x03(\x0b25.google.storage.v1.Notification.CustomAttributesEntryR\ - \x10customAttributes\x12\x12\n\x04etag\x18\x04\x20\x01(\tR\x04etag\x12,\ - \n\x12object_name_prefix\x18\x05\x20\x01(\tR\x10objectNamePrefix\x12%\n\ - \x0epayload_format\x18\x06\x20\x01(\tR\rpayloadFormat\x12\x0e\n\x02id\ - \x18\x07\x20\x01(\tR\x02id\x1aC\n\x15CustomAttributesEntry\x12\x10\n\x03\ - key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\ - \x05value:\x028\x01\"R\n\x19ListNotificationsResponse\x125\n\x05items\ - \x18\x01\x20\x03(\x0b2\x1f.google.storage.v1.NotificationR\x05items\"\ - \xc9\x0b\n\x06Object\x12)\n\x10content_encoding\x18\x01\x20\x01(\tR\x0fc\ - ontentEncoding\x12/\n\x13content_disposition\x18\x02\x20\x01(\tR\x12cont\ - entDisposition\x12#\n\rcache_control\x18\x03\x20\x01(\tR\x0ccacheControl\ - \x128\n\x03acl\x18\x04\x20\x03(\x0b2&.google.storage.v1.ObjectAccessCont\ - rolR\x03acl\x12)\n\x10content_language\x18\x05\x20\x01(\tR\x0fcontentLan\ - guage\x12&\n\x0emetageneration\x18\x06\x20\x01(\x03R\x0emetageneration\ - \x12=\n\x0ctime_deleted\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.Timest\ - ampR\x0btimeDeleted\x12!\n\x0ccontent_type\x18\x08\x20\x01(\tR\x0bconten\ - tType\x12\x12\n\x04size\x18\t\x20\x01(\x03R\x04size\x12=\n\x0ctime_creat\ - ed\x18\n\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0btimeCreated\x12\ - 4\n\x06crc32c\x18\x0b\x20\x01(\x0b2\x1c.google.protobuf.UInt32ValueR\x06\ - crc32c\x12'\n\x0fcomponent_count\x18\x0c\x20\x01(\x05R\x0ecomponentCount\ - \x12\x19\n\x08md5_hash\x18\r\x20\x01(\tR\x07md5Hash\x12\x12\n\x04etag\ - \x18\x0e\x20\x01(\tR\x04etag\x124\n\x07updated\x18\x0f\x20\x01(\x0b2\x1a\ - .google.protobuf.TimestampR\x07updated\x12#\n\rstorage_class\x18\x10\x20\ - \x01(\tR\x0cstorageClass\x12\x20\n\x0ckms_key_name\x18\x11\x20\x01(\tR\n\ - kmsKeyName\x12W\n\x1atime_storage_class_updated\x18\x12\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampR\x17timeStorageClassUpdated\x12%\n\x0etem\ - porary_hold\x18\x13\x20\x01(\x08R\rtemporaryHold\x12V\n\x19retention_exp\ - iration_time\x18\x14\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x17ret\ - entionExpirationTime\x12C\n\x08metadata\x18\x15\x20\x03(\x0b2'.google.st\ - orage.v1.Object.MetadataEntryR\x08metadata\x12D\n\x10event_based_hold\ - \x18\x1d\x20\x01(\x0b2\x1a.google.protobuf.BoolValueR\x0eeventBasedHold\ - \x12\x12\n\x04name\x18\x17\x20\x01(\tR\x04name\x12\x0e\n\x02id\x18\x18\ - \x20\x01(\tR\x02id\x12\x16\n\x06bucket\x18\x19\x20\x01(\tR\x06bucket\x12\ - \x1e\n\ngeneration\x18\x1a\x20\x01(\x03R\ngeneration\x12.\n\x05owner\x18\ - \x1b\x20\x01(\x0b2\x18.google.storage.v1.OwnerR\x05owner\x12]\n\x13custo\ - mer_encryption\x18\x1c\x20\x01(\x0b2,.google.storage.v1.Object.CustomerE\ - ncryptionR\x12customerEncryption\x1af\n\x12CustomerEncryption\x121\n\x14\ - encryption_algorithm\x18\x01\x20\x01(\tR\x13encryptionAlgorithm\x12\x1d\ - \n\nkey_sha256\x18\x02\x20\x01(\tR\tkeySha256\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\"\xc3\x02\n\x13ObjectAccessControl\x12\x12\n\ - \x04role\x18\x01\x20\x01(\tR\x04role\x12\x12\n\x04etag\x18\x02\x20\x01(\ - \tR\x04etag\x12\x0e\n\x02id\x18\x03\x20\x01(\tR\x02id\x12\x16\n\x06bucke\ - t\x18\x04\x20\x01(\tR\x06bucket\x12\x16\n\x06object\x18\x05\x20\x01(\tR\ - \x06object\x12\x1e\n\ngeneration\x18\x06\x20\x01(\x03R\ngeneration\x12\ - \x16\n\x06entity\x18\x07\x20\x01(\tR\x06entity\x12\x1b\n\tentity_id\x18\ - \x08\x20\x01(\tR\x08entityId\x12\x14\n\x05email\x18\t\x20\x01(\tR\x05ema\ - il\x12\x16\n\x06domain\x18\n\x20\x01(\tR\x06domain\x12A\n\x0cproject_tea\ - m\x18\x0b\x20\x01(\x0b2\x1e.google.storage.v1.ProjectTeamR\x0bprojectTea\ - m\"`\n\x20ListObjectAccessControlsResponse\x12<\n\x05items\x18\x01\x20\ - \x03(\x0b2&.google.storage.v1.ObjectAccessControlR\x05items\"\x8a\x01\n\ - \x13ListObjectsResponse\x12\x1a\n\x08prefixes\x18\x01\x20\x03(\tR\x08pre\ - fixes\x12/\n\x05items\x18\x02\x20\x03(\x0b2\x19.google.storage.v1.Object\ - R\x05items\x12&\n\x0fnext_page_token\x18\x03\x20\x01(\tR\rnextPageToken\ - \"H\n\x0bProjectTeam\x12%\n\x0eproject_number\x18\x01\x20\x01(\tR\rproje\ - ctNumber\x12\x12\n\x04team\x18\x02\x20\x01(\tR\x04team\"5\n\x0eServiceAc\ - count\x12#\n\remail_address\x18\x01\x20\x01(\tR\x0cemailAddress\"<\n\x05\ - Owner\x12\x16\n\x06entity\x18\x01\x20\x01(\tR\x06entity\x12\x1b\n\tentit\ - y_id\x18\x02\x20\x01(\tR\x08entityIdBo\n\x15com.google.storage.v1B\x1aCl\ - oudStorageResourcesProtoP\x01Z8google.golang.org/genproto/googleapis/sto\ - rage/v1;storageJ\xcb\xa7\x02\n\x07\x12\x05\x0e\0\xe7\x06\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\ - \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\0.\n\t\n\x02\x08\x01\ - \x12\x03\x18\0.\n\x18\n\x02\x04\0\x12\x05\x1b\0\xc7\x02\x01\x1a\x0b\x20A\ - \x20bucket.\n\n\n\n\x03\x04\0\x01\x12\x03\x1b\x08\x0e\n/\n\x04\x04\0\x03\ - \0\x12\x04\x1d\x02\x20\x03\x1a!\x20Billing\x20properties\x20of\x20a\x20b\ - ucket.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03\x1d\n\x11\nM\n\x06\x04\0\ - \x03\0\x02\0\x12\x03\x1f\x04\x1c\x1a>\x20When\x20set\x20to\x20true,\x20R\ - equester\x20Pays\x20is\x20enabled\x20for\x20this\x20bucket.\n\n\x0f\n\ - \x07\x04\0\x03\0\x02\0\x04\x12\x04\x1f\x04\x1d\x13\n\x0e\n\x07\x04\0\x03\ - \0\x02\0\x05\x12\x03\x1f\x04\x08\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\ - \x03\x1f\t\x17\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03\x1f\x1a\x1b\n\ - \xe9\x01\n\x04\x04\0\x03\x01\x12\x04&\x02:\x03\x1a\xda\x01\x20Cross-Orig\ - in\x20Response\x20sharing\x20(CORS)\x20properties\x20for\x20a\x20bucket.\ - \n\x20For\x20more\x20on\x20GCS\x20and\x20CORS,\x20see\n\x20https://cloud\ - .google.com/storage/docs/cross-origin.\n\x20For\x20more\x20on\x20CORS\ - \x20in\x20general,\x20see\x20https://tools.ietf.org/html/rfc6454.\n\n\ - \x0c\n\x05\x04\0\x03\x01\x01\x12\x03&\n\x0e\n\xe2\x01\n\x06\x04\0\x03\ - \x01\x02\0\x12\x03*\x04\x1f\x1a\xd2\x01\x20The\x20list\x20of\x20Origins\ - \x20eligible\x20to\x20receive\x20CORS\x20response\x20headers.\x20See\n\ - \x20[https://tools.ietf.org/html/rfc6454][RFC\x206454]\x20for\x20more\ - \x20on\x20origins.\n\x20Note:\x20\"*\"\x20is\x20permitted\x20in\x20the\ - \x20list\x20of\x20origins,\x20and\x20means\x20\"any\x20Origin\".\n\n\x0e\ - \n\x07\x04\0\x03\x01\x02\0\x04\x12\x03*\x04\x0c\n\x0e\n\x07\x04\0\x03\ - \x01\x02\0\x05\x12\x03*\r\x13\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\ - \x03*\x14\x1a\n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x03*\x1d\x1e\n\xbe\ - \x01\n\x06\x04\0\x03\x01\x02\x01\x12\x03/\x04\x1f\x1a\xae\x01\x20The\x20\ - list\x20of\x20HTTP\x20methods\x20on\x20which\x20to\x20include\x20CORS\ - \x20response\x20headers,\n\x20(`GET`,\x20`OPTIONS`,\x20`POST`,\x20etc)\ - \x20Note:\x20\"*\"\x20is\x20permitted\x20in\x20the\x20list\x20of\n\x20me\ - thods,\x20and\x20means\x20\"any\x20method\".\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\x1a\n\x0e\ - \n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03/\x1d\x1e\n\xc8\x01\n\x06\x04\0\ - \x03\x01\x02\x02\x12\x034\x04(\x1a\xb8\x01\x20The\x20list\x20of\x20HTTP\ - \x20headers\x20other\x20than\x20the\n\x20[https://www.w3.org/TR/cors/#si\ - mple-response-header][simple\x20response\n\x20headers]\x20to\x20give\x20\ - permission\x20for\x20the\x20user-agent\x20to\x20share\x20across\x20domai\ - ns.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x04\x12\x034\x04\x0c\n\x0e\n\x07\ - \x04\0\x03\x01\x02\x02\x05\x12\x034\r\x13\n\x0e\n\x07\x04\0\x03\x01\x02\ - \x02\x01\x12\x034\x14#\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\x12\x034&'\ - \n\xbc\x01\n\x06\x04\0\x03\x01\x02\x03\x12\x039\x04\x1e\x1a\xac\x01\x20T\ - he\x20value,\x20in\x20seconds,\x20to\x20return\x20in\x20the\n\x20[https:\ - //www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Con\ - trol-Max-Age\n\x20header]\x20used\x20in\x20preflight\x20responses.\n\n\ - \x0f\n\x07\x04\0\x03\x01\x02\x03\x04\x12\x049\x044(\n\x0e\n\x07\x04\0\ - \x03\x01\x02\x03\x05\x12\x039\x04\t\n\x0e\n\x07\x04\0\x03\x01\x02\x03\ - \x01\x12\x039\n\x19\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x03\x12\x039\x1c\ - \x1d\n2\n\x04\x04\0\x03\x02\x12\x04=\x02A\x03\x1a$\x20Encryption\x20prop\ - erties\x20of\x20a\x20bucket.\n\n\x0c\n\x05\x04\0\x03\x02\x01\x12\x03=\n\ - \x14\n\x87\x01\n\x06\x04\0\x03\x02\x02\0\x12\x03@\x04$\x1ax\x20A\x20Clou\ - d\x20KMS\x20key\x20that\x20will\x20be\x20used\x20to\x20encrypt\x20object\ - s\x20inserted\x20into\x20this\n\x20bucket,\x20if\x20no\x20encryption\x20\ - method\x20is\x20specified.\n\n\x0f\n\x07\x04\0\x03\x02\x02\0\x04\x12\x04\ - @\x04=\x16\n\x0e\n\x07\x04\0\x03\x02\x02\0\x05\x12\x03@\x04\n\n\x0e\n\ - \x07\x04\0\x03\x02\x02\0\x01\x12\x03@\x0b\x1f\n\x0e\n\x07\x04\0\x03\x02\ - \x02\0\x03\x12\x03@\"#\nL\n\x04\x04\0\x03\x03\x12\x04D\x02Q\x03\x1a>\x20\ - Bucket\x20restriction\x20options\x20currently\x20enforced\x20on\x20the\ - \x20bucket.\n\n\x0c\n\x05\x04\0\x03\x03\x01\x12\x03D\n\x1a\n\x0e\n\x06\ - \x04\0\x03\x03\x03\0\x12\x04E\x04N\x05\n\x0e\n\x07\x04\0\x03\x03\x03\0\ - \x01\x12\x03E\x0c$\nU\n\x08\x04\0\x03\x03\x03\0\x02\0\x12\x03G\x06\x17\ - \x1aD\x20If\x20set,\x20access\x20checks\x20only\x20use\x20bucket-level\ - \x20IAM\x20policies\x20or\x20above.\n\n\x11\n\t\x04\0\x03\x03\x03\0\x02\ - \0\x04\x12\x04G\x06E&\n\x10\n\t\x04\0\x03\x03\x03\0\x02\0\x05\x12\x03G\ - \x06\n\n\x10\n\t\x04\0\x03\x03\x03\0\x02\0\x01\x12\x03G\x0b\x12\n\x10\n\ - \t\x04\0\x03\x03\x03\0\x02\0\x03\x12\x03G\x15\x16\n\xf0\x01\n\x08\x04\0\ - \x03\x03\x03\0\x02\x01\x12\x03M\x060\x1a\xde\x01\x20The\x20deadline\x20t\ - ime\x20for\x20changing\n\x20iamConfiguration.uniformBucketLevelAcc\ - ess.enabled\x20from\n\x20true\x20to\x20false\x20in\x20[https://to\ - ols.ietf.org/html/rfc3339][RFC\x203339].\x20After\n\x20the\x20deadline\ - \x20is\x20passed\x20the\x20field\x20is\x20immutable.\n\n\x11\n\t\x04\0\ - \x03\x03\x03\0\x02\x01\x04\x12\x04M\x06G\x17\n\x10\n\t\x04\0\x03\x03\x03\ - \0\x02\x01\x06\x12\x03M\x06\x1f\n\x10\n\t\x04\0\x03\x03\x03\0\x02\x01\ - \x01\x12\x03M\x20+\n\x10\n\t\x04\0\x03\x03\x03\0\x02\x01\x03\x12\x03M./\ - \n\r\n\x06\x04\0\x03\x03\x02\0\x12\x03P\x04=\n\x0f\n\x07\x04\0\x03\x03\ - \x02\0\x04\x12\x04P\x04N\x05\n\x0e\n\x07\x04\0\x03\x03\x02\0\x06\x12\x03\ - P\x04\x1c\n\x0e\n\x07\x04\0\x03\x03\x02\0\x01\x12\x03P\x1d8\n\x0e\n\x07\ - \x04\0\x03\x03\x02\0\x03\x12\x03P;<\n~\n\x04\x04\0\x03\x04\x12\x05U\x02\ - \x93\x01\x03\x1ao\x20Lifecycle\x20properties\x20of\x20a\x20bucket.\n\x20\ - For\x20more\x20information,\x20see\x20https://cloud.google.com/storage/d\ - ocs/lifecycle.\n\n\x0c\n\x05\x04\0\x03\x04\x01\x12\x03U\n\x13\n~\n\x06\ - \x04\0\x03\x04\x03\0\x12\x05X\x04\x8e\x01\x05\x1am\x20A\x20lifecycle\x20\ - Rule,\x20combining\x20an\x20action\x20to\x20take\x20on\x20an\x20object\ - \x20and\x20a\n\x20condition\x20which\x20will\x20trigger\x20that\x20actio\ - n.\n\n\x0e\n\x07\x04\0\x03\x04\x03\0\x01\x12\x03X\x0c\x10\n3\n\x08\x04\0\ - \x03\x04\x03\0\x03\0\x12\x04Z\x06b\x07\x1a!\x20An\x20action\x20to\x20tak\ - e\x20on\x20an\x20object.\n\n\x10\n\t\x04\0\x03\x04\x03\0\x03\0\x01\x12\ - \x03Z\x0e\x14\ng\n\n\x04\0\x03\x04\x03\0\x03\0\x02\0\x12\x03]\x08\x18\ - \x1aT\x20Type\x20of\x20the\x20action.\x20Currently,\x20only\x20`Delete`\ - \x20and\n\x20`SetStorageClass`\x20are\x20supported.\n\n\x13\n\x0b\x04\0\ - \x03\x04\x03\0\x03\0\x02\0\x04\x12\x04]\x08Z\x16\n\x12\n\x0b\x04\0\x03\ - \x04\x03\0\x03\0\x02\0\x05\x12\x03]\x08\x0e\n\x12\n\x0b\x04\0\x03\x04\ - \x03\0\x03\0\x02\0\x01\x12\x03]\x0f\x13\n\x12\n\x0b\x04\0\x03\x04\x03\0\ - \x03\0\x02\0\x03\x12\x03]\x16\x17\nc\n\n\x04\0\x03\x04\x03\0\x03\0\x02\ - \x01\x12\x03a\x08!\x1aP\x20Target\x20storage\x20class.\x20Required\x20if\ - f\x20the\x20type\x20of\x20the\x20action\x20is\n\x20SetStorageClass.\n\n\ - \x13\n\x0b\x04\0\x03\x04\x03\0\x03\0\x02\x01\x04\x12\x04a\x08]\x18\n\x12\ - \n\x0b\x04\0\x03\x04\x03\0\x03\0\x02\x01\x05\x12\x03a\x08\x0e\n\x12\n\ - \x0b\x04\0\x03\x04\x03\0\x03\0\x02\x01\x01\x12\x03a\x0f\x1c\n\x12\n\x0b\ - \x04\0\x03\x04\x03\0\x03\0\x02\x01\x03\x12\x03a\x1f\x20\nI\n\x08\x04\0\ - \x03\x04\x03\0\x03\x01\x12\x05e\x06\x87\x01\x07\x1a6\x20A\x20condition\ - \x20of\x20an\x20object\x20which\x20triggers\x20some\x20action.\n\n\x10\n\ - \t\x04\0\x03\x04\x03\0\x03\x01\x01\x12\x03e\x0e\x17\nw\n\n\x04\0\x03\x04\ - \x03\0\x03\x01\x02\0\x12\x03h\x08\x16\x1ad\x20Age\x20of\x20an\x20object\ - \x20(in\x20days).\x20This\x20condition\x20is\x20satisfied\x20when\x20an\ - \n\x20object\x20reaches\x20the\x20specified\x20age.\n\n\x13\n\x0b\x04\0\ - \x03\x04\x03\0\x03\x01\x02\0\x04\x12\x04h\x08e\x19\n\x12\n\x0b\x04\0\x03\ - \x04\x03\0\x03\x01\x02\0\x05\x12\x03h\x08\r\n\x12\n\x0b\x04\0\x03\x04\ - \x03\0\x03\x01\x02\0\x01\x12\x03h\x0e\x11\n\x12\n\x0b\x04\0\x03\x04\x03\ - \0\x03\x01\x02\0\x03\x12\x03h\x14\x15\n\xfa\x01\n\n\x04\0\x03\x04\x03\0\ - \x03\x01\x02\x01\x12\x03n\x085\x1a\xe6\x01\x20A\x20date\x20in\x20[RFC\ - \x203339][1]\x20format\x20with\x20only\x20the\x20date\x20part\x20(for\n\ - \x20instance,\x20\"2013-01-15\").\x20This\x20condition\x20is\x20satisfie\ - d\x20when\x20an\n\x20object\x20is\x20created\x20before\x20midnight\x20of\ - \x20the\x20specified\x20date\x20in\x20UTC.\n\x20[1]:\x20https://tools.ie\ - tf.org/html/rfc3339\n\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x01\ - \x04\x12\x04n\x08h\x16\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x01\ - \x06\x12\x03n\x08!\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x01\x01\ - \x12\x03n\"0\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x01\x03\x12\x03\ - n34\n\xaf\x01\n\n\x04\0\x03\x04\x03\0\x03\x01\x02\x02\x12\x03s\x08.\x1a\ - \x9b\x01\x20Relevant\x20only\x20for\x20versioned\x20objects.\x20If\x20th\ - e\x20value\x20is\n\x20`true`,\x20this\x20condition\x20matches\x20live\ - \x20objects;\x20if\x20the\x20value\n\x20is\x20`false`,\x20it\x20matches\ - \x20archived\x20objects.\n\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\ - \x02\x04\x12\x04s\x08n5\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x02\ - \x06\x12\x03s\x08!\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x02\x01\ - \x12\x03s\")\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x02\x03\x12\x03\ - s,-\n\xd2\x01\n\n\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x12\x03x\x08%\x1a\ - \xbe\x01\x20Relevant\x20only\x20for\x20versioned\x20objects.\x20If\x20th\ - e\x20value\x20is\x20N,\x20this\n\x20condition\x20is\x20satisfied\x20when\ - \x20there\x20are\x20at\x20least\x20N\x20versions\x20(including\n\x20the\ - \x20live\x20version)\x20newer\x20than\x20this\x20version\x20of\x20the\ - \x20object.\n\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x04\x12\ - \x04x\x08s.\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x05\x12\x03x\ - \x08\r\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x01\x12\x03x\x0e\ - \x20\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x03\x12\x03x#$\n\ - \xe4\x01\n\n\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x12\x03~\x082\x1a\xd0\ - \x01\x20Objects\x20having\x20any\x20of\x20the\x20storage\x20classes\x20s\ - pecified\x20by\x20this\x20condition\n\x20will\x20be\x20matched.\x20Value\ - s\x20include\x20`MULTI_REGIONAL`,\x20`REGIONAL`,\n\x20`NEARLINE`,\x20`CO\ - LDLINE`,\x20`STANDARD`,\x20and\n\x20`DURABLE_REDUCED_AVAILABILITY`.\n\n\ - \x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x04\x12\x03~\x08\x10\n\ - \x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x05\x12\x03~\x11\x17\n\ - \x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x01\x12\x03~\x18-\n\x12\n\ - \x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x03\x12\x03~01\n\x91\x03\n\n\ - \x04\0\x03\x04\x03\0\x03\x01\x02\x05\x12\x04\x86\x01\x08#\x1a\xfc\x02\ - \x20A\x20regular\x20expression\x20that\x20satisfies\x20the\x20RE2\x20syn\ - tax.\x20This\x20condition\x20is\n\x20satisfied\x20when\x20the\x20name\ - \x20of\x20the\x20object\x20matches\x20the\x20RE2\x20pattern.\x20\x20Note\ - :\n\x20This\x20feature\x20is\x20currently\x20in\x20the\x20\"Early\x20Acc\ - ess\"\x20launch\x20stage\x20and\x20is\n\x20only\x20available\x20to\x20a\ - \x20whitelisted\x20set\x20of\x20users;\x20that\x20means\x20that\x20this\ - \n\x20feature\x20may\x20be\x20changed\x20in\x20backward-incompatible\x20\ - ways\x20and\x20that\x20it\x20is\n\x20not\x20guaranteed\x20to\x20be\x20re\ - leased.\n\n\x14\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x05\x04\x12\x05\ - \x86\x01\x08~2\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x05\x05\x12\ - \x04\x86\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x05\x01\ - \x12\x04\x86\x01\x0f\x1e\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x05\ - \x03\x12\x04\x86\x01!\"\n'\n\x08\x04\0\x03\x04\x03\0\x02\0\x12\x04\x8a\ - \x01\x06\x18\x1a\x15\x20The\x20action\x20to\x20take.\n\n\x13\n\t\x04\0\ - \x03\x04\x03\0\x02\0\x04\x12\x06\x8a\x01\x06\x87\x01\x07\n\x11\n\t\x04\0\ - \x03\x04\x03\0\x02\0\x06\x12\x04\x8a\x01\x06\x0c\n\x11\n\t\x04\0\x03\x04\ - \x03\0\x02\0\x01\x12\x04\x8a\x01\r\x13\n\x11\n\t\x04\0\x03\x04\x03\0\x02\ - \0\x03\x12\x04\x8a\x01\x16\x17\nJ\n\x08\x04\0\x03\x04\x03\0\x02\x01\x12\ - \x04\x8d\x01\x06\x1e\x1a8\x20The\x20condition(s)\x20under\x20which\x20th\ - e\x20action\x20will\x20be\x20taken.\n\n\x13\n\t\x04\0\x03\x04\x03\0\x02\ - \x01\x04\x12\x06\x8d\x01\x06\x8a\x01\x18\n\x11\n\t\x04\0\x03\x04\x03\0\ - \x02\x01\x06\x12\x04\x8d\x01\x06\x0f\n\x11\n\t\x04\0\x03\x04\x03\0\x02\ - \x01\x01\x12\x04\x8d\x01\x10\x19\n\x11\n\t\x04\0\x03\x04\x03\0\x02\x01\ - \x03\x12\x04\x8d\x01\x1c\x1d\n\x8d\x01\n\x06\x04\0\x03\x04\x02\0\x12\x04\ - \x92\x01\x04\x1b\x1a}\x20A\x20lifecycle\x20management\x20rule,\x20which\ - \x20is\x20made\x20of\x20an\x20action\x20to\x20take\x20and\x20the\n\x20co\ - ndition(s)\x20under\x20which\x20the\x20action\x20will\x20be\x20taken.\n\ - \n\x0f\n\x07\x04\0\x03\x04\x02\0\x04\x12\x04\x92\x01\x04\x0c\n\x0f\n\x07\ - \x04\0\x03\x04\x02\0\x06\x12\x04\x92\x01\r\x11\n\x0f\n\x07\x04\0\x03\x04\ - \x02\0\x01\x12\x04\x92\x01\x12\x16\n\x0f\n\x07\x04\0\x03\x04\x02\0\x03\ - \x12\x04\x92\x01\x19\x1a\n9\n\x04\x04\0\x03\x05\x12\x06\x96\x01\x02\x9c\ - \x01\x03\x1a)\x20Logging-related\x20properties\x20of\x20a\x20bucket.\n\n\ - \r\n\x05\x04\0\x03\x05\x01\x12\x04\x96\x01\n\x11\nZ\n\x06\x04\0\x03\x05\ - \x02\0\x12\x04\x98\x01\x04\x1a\x1aJ\x20The\x20destination\x20bucket\x20w\ - here\x20the\x20current\x20bucket's\x20logs\x20should\x20be\x20placed.\n\ - \n\x11\n\x07\x04\0\x03\x05\x02\0\x04\x12\x06\x98\x01\x04\x96\x01\x13\n\ - \x0f\n\x07\x04\0\x03\x05\x02\0\x05\x12\x04\x98\x01\x04\n\n\x0f\n\x07\x04\ - \0\x03\x05\x02\0\x01\x12\x04\x98\x01\x0b\x15\n\x0f\n\x07\x04\0\x03\x05\ - \x02\0\x03\x12\x04\x98\x01\x18\x19\n0\n\x06\x04\0\x03\x05\x02\x01\x12\ - \x04\x9b\x01\x04!\x1a\x20\x20A\x20prefix\x20for\x20log\x20object\x20name\ - s.\n\n\x11\n\x07\x04\0\x03\x05\x02\x01\x04\x12\x06\x9b\x01\x04\x98\x01\ - \x1a\n\x0f\n\x07\x04\0\x03\x05\x02\x01\x05\x12\x04\x9b\x01\x04\n\n\x0f\n\ - \x07\x04\0\x03\x05\x02\x01\x01\x12\x04\x9b\x01\x0b\x1c\n\x0f\n\x07\x04\0\ - \x03\x05\x02\x01\x03\x12\x04\x9b\x01\x1f\x20\n:\n\x04\x04\0\x03\x06\x12\ - \x06\x9f\x01\x02\xad\x01\x03\x1a*\x20Retention\x20policy\x20properties\ - \x20of\x20a\x20bucket.\n\n\r\n\x05\x04\0\x03\x06\x01\x12\x04\x9f\x01\n\ - \x19\n\xbb\x01\n\x06\x04\0\x03\x06\x02\0\x12\x04\xa3\x01\x041\x1a\xaa\ - \x01\x20Server-determined\x20value\x20that\x20indicates\x20the\x20time\ - \x20from\x20which\x20policy\x20was\n\x20enforced\x20and\x20effective.\ - \x20This\x20value\x20is\x20in\n\x20[https://tools.ietf.org/html/rfc3339]\ - [RFC\x203339]\x20format.\n\n\x11\n\x07\x04\0\x03\x06\x02\0\x04\x12\x06\ - \xa3\x01\x04\x9f\x01\x1b\n\x0f\n\x07\x04\0\x03\x06\x02\0\x06\x12\x04\xa3\ - \x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x06\x02\0\x01\x12\x04\xa3\x01\x1e,\n\ - \x0f\n\x07\x04\0\x03\x06\x02\0\x03\x12\x04\xa3\x01/0\nM\n\x06\x04\0\x03\ - \x06\x02\x01\x12\x04\xa6\x01\x04\x17\x1a=\x20Once\x20locked,\x20an\x20ob\ - ject\x20retention\x20policy\x20cannot\x20be\x20modified.\n\n\x11\n\x07\ - \x04\0\x03\x06\x02\x01\x04\x12\x06\xa6\x01\x04\xa3\x011\n\x0f\n\x07\x04\ - \0\x03\x06\x02\x01\x05\x12\x04\xa6\x01\x04\x08\n\x0f\n\x07\x04\0\x03\x06\ - \x02\x01\x01\x12\x04\xa6\x01\t\x12\n\x0f\n\x07\x04\0\x03\x06\x02\x01\x03\ - \x12\x04\xa6\x01\x15\x16\n\x9a\x02\n\x06\x04\0\x03\x06\x02\x02\x12\x04\ - \xac\x01\x04\x1f\x1a\x89\x02\x20The\x20duration\x20in\x20seconds\x20that\ - \x20objects\x20need\x20to\x20be\x20retained.\x20Retention\n\x20duration\ - \x20must\x20be\x20greater\x20than\x20zero\x20and\x20less\x20than\x20100\ - \x20years.\x20Note\x20that\n\x20enforcement\x20of\x20retention\x20period\ - s\x20less\x20than\x20a\x20day\x20is\x20not\x20guaranteed.\x20Such\n\x20p\ - eriods\x20should\x20only\x20be\x20used\x20for\x20testing\x20purposes.\n\ - \n\x11\n\x07\x04\0\x03\x06\x02\x02\x04\x12\x06\xac\x01\x04\xa6\x01\x17\n\ - \x0f\n\x07\x04\0\x03\x06\x02\x02\x05\x12\x04\xac\x01\x04\t\n\x0f\n\x07\ - \x04\0\x03\x06\x02\x02\x01\x12\x04\xac\x01\n\x1a\n\x0f\n\x07\x04\0\x03\ - \x06\x02\x02\x03\x12\x04\xac\x01\x1d\x1e\n\x9b\x01\n\x04\x04\0\x03\x07\ - \x12\x06\xb2\x01\x02\xb5\x01\x03\x1a\x8a\x01\x20Properties\x20of\x20a\ - \x20bucket\x20related\x20to\x20versioning.\n\x20For\x20more\x20on\x20GCS\ - \x20versioning,\x20see\n\x20https://cloud.google.com/storage/docs/object\ - -versioning.\n\n\r\n\x05\x04\0\x03\x07\x01\x12\x04\xb2\x01\n\x14\nQ\n\ - \x06\x04\0\x03\x07\x02\0\x12\x04\xb4\x01\x04\x15\x1aA\x20While\x20set\ - \x20to\x20true,\x20versioning\x20is\x20fully\x20enabled\x20for\x20this\ - \x20bucket.\n\n\x11\n\x07\x04\0\x03\x07\x02\0\x04\x12\x06\xb4\x01\x04\ - \xb2\x01\x16\n\x0f\n\x07\x04\0\x03\x07\x02\0\x05\x12\x04\xb4\x01\x04\x08\ - \n\x0f\n\x07\x04\0\x03\x07\x02\0\x01\x12\x04\xb4\x01\t\x10\n\x0f\n\x07\ - \x04\0\x03\x07\x02\0\x03\x12\x04\xb4\x01\x13\x14\n\xd2\x01\n\x04\x04\0\ - \x03\x08\x12\x06\xba\x01\x02\xc7\x01\x03\x1a\xc1\x01\x20Properties\x20of\ - \x20a\x20bucket\x20related\x20to\x20accessing\x20the\x20contents\x20as\ - \x20a\x20static\n\x20website.\x20For\x20more\x20on\x20hosting\x20a\x20st\ - atic\x20website\x20via\x20GCS,\x20see\n\x20https://cloud.google.com/stor\ - age/docs/hosting-static-website.\n\n\r\n\x05\x04\0\x03\x08\x01\x12\x04\ - \xba\x01\n\x11\n\x84\x02\n\x06\x04\0\x03\x08\x02\0\x12\x04\xbf\x01\x04\ - \x20\x1a\xf3\x01\x20If\x20the\x20requested\x20object\x20path\x20is\x20mi\ - ssing,\x20the\x20service\x20will\x20ensure\x20the\x20path\n\x20has\x20a\ - \x20trailing\x20'/',\x20append\x20this\x20suffix,\x20and\x20attempt\x20t\ - o\x20retrieve\x20the\n\x20resulting\x20object.\x20This\x20allows\x20the\ - \x20creation\x20of\x20`index.html`\n\x20objects\x20to\x20represent\x20di\ - rectory\x20pages.\n\n\x11\n\x07\x04\0\x03\x08\x02\0\x04\x12\x06\xbf\x01\ - \x04\xba\x01\x13\n\x0f\n\x07\x04\0\x03\x08\x02\0\x05\x12\x04\xbf\x01\x04\ - \n\n\x0f\n\x07\x04\0\x03\x08\x02\0\x01\x12\x04\xbf\x01\x0b\x1b\n\x0f\n\ - \x07\x04\0\x03\x08\x02\0\x03\x12\x04\xbf\x01\x1e\x1f\n\x94\x02\n\x06\x04\ - \0\x03\x08\x02\x01\x12\x04\xc6\x01\x04\x1e\x1a\x83\x02\x20If\x20the\x20r\ - equested\x20object\x20path\x20is\x20missing,\x20and\x20any\n\x20`mainPag\ - eSuffix`\x20object\x20is\x20missing,\x20if\x20applicable,\x20the\x20serv\ - ice\n\x20will\x20return\x20the\x20named\x20object\x20from\x20this\x20buc\ - ket\x20as\x20the\x20content\x20for\x20a\n\x20[https://tools.ietf.org/htm\ - l/rfc7231#section-6.5.4][404\x20Not\x20Found]\n\x20result.\n\n\x11\n\x07\ - \x04\0\x03\x08\x02\x01\x04\x12\x06\xc6\x01\x04\xbf\x01\x20\n\x0f\n\x07\ - \x04\0\x03\x08\x02\x01\x05\x12\x04\xc6\x01\x04\n\n\x0f\n\x07\x04\0\x03\ - \x08\x02\x01\x01\x12\x04\xc6\x01\x0b\x19\n\x0f\n\x07\x04\0\x03\x08\x02\ - \x01\x03\x12\x04\xc6\x01\x1c\x1d\n.\n\x04\x04\0\x02\0\x12\x04\xca\x01\ - \x02'\x1a\x20\x20Access\x20controls\x20on\x20the\x20bucket.\n\n\r\n\x05\ - \x04\0\x02\0\x04\x12\x04\xca\x01\x02\n\n\r\n\x05\x04\0\x02\0\x06\x12\x04\ - \xca\x01\x0b\x1e\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xca\x01\x1f\"\n\r\n\ - \x05\x04\0\x02\0\x03\x12\x04\xca\x01%&\nX\n\x04\x04\0\x02\x01\x12\x04\ - \xcd\x01\x026\x1aJ\x20Default\x20access\x20controls\x20to\x20apply\x20to\ - \x20new\x20objects\x20when\x20no\x20ACL\x20is\x20provided.\n\n\r\n\x05\ - \x04\0\x02\x01\x04\x12\x04\xcd\x01\x02\n\n\r\n\x05\x04\0\x02\x01\x06\x12\ - \x04\xcd\x01\x0b\x1e\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xcd\x01\x1f1\n\ - \r\n\x05\x04\0\x02\x01\x03\x12\x04\xcd\x0145\n\x9e\x01\n\x04\x04\0\x02\ - \x02\x12\x04\xd2\x01\x02\x1a\x1a\x8f\x01\x20The\x20bucket's\x20lifecycle\ - \x20configuration.\x20See\n\x20[https://developers.google.com/storage/do\ - cs/lifecycle]Lifecycle\x20Management]\n\x20for\x20more\x20information.\n\ - \n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\xd2\x01\x02\xcd\x016\n\r\n\x05\ - \x04\0\x02\x02\x06\x12\x04\xd2\x01\x02\x0b\n\r\n\x05\x04\0\x02\x02\x01\ - \x12\x04\xd2\x01\x0c\x15\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xd2\x01\x18\ - \x19\n\xa3\x01\n\x04\x04\0\x02\x03\x12\x04\xd7\x01\x02-\x1a\x94\x01\x20T\ - he\x20creation\x20time\x20of\x20the\x20bucket\x20in\n\x20[https://tools.\ - ietf.org/html/rfc3339][RFC\x203339]\x20format.\n\x20Attempting\x20to\x20\ - set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\ - \x05\x04\0\x02\x03\x04\x12\x06\xd7\x01\x02\xd2\x01\x1a\n\r\n\x05\x04\0\ - \x02\x03\x06\x12\x04\xd7\x01\x02\x1b\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\ - \xd7\x01\x1c(\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xd7\x01+,\n\xb8\x01\n\ - \x04\x04\0\x02\x04\x12\x04\xdd\x01\x02\x10\x1a\xa9\x01\x20The\x20ID\x20o\ - f\x20the\x20bucket.\x20For\x20buckets,\x20the\x20`id`\x20and\x20`name`\ - \x20properties\x20are\x20the\n\x20same.\n\x20Attempting\x20to\x20update\ - \x20this\x20field\x20after\x20the\x20bucket\x20is\x20created\x20will\x20\ - result\x20in\n\x20an\x20error.\n\n\x0f\n\x05\x04\0\x02\x04\x04\x12\x06\ - \xdd\x01\x02\xd7\x01-\n\r\n\x05\x04\0\x02\x04\x05\x12\x04\xdd\x01\x02\ - \x08\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\xdd\x01\t\x0b\n\r\n\x05\x04\0\ - \x02\x04\x03\x12\x04\xdd\x01\x0e\x0f\n~\n\x04\x04\0\x02\x05\x12\x04\xe2\ - \x01\x02\x12\x1ap\x20The\x20name\x20of\x20the\x20bucket.\n\x20Attempting\ - \x20to\x20update\x20this\x20field\x20after\x20the\x20bucket\x20is\x20cre\ - ated\x20will\x20result\x20in\n\x20an\x20error.\n\n\x0f\n\x05\x04\0\x02\ - \x05\x04\x12\x06\xe2\x01\x02\xdd\x01\x10\n\r\n\x05\x04\0\x02\x05\x05\x12\ - \x04\xe2\x01\x02\x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xe2\x01\t\r\n\r\ - \n\x05\x04\0\x02\x05\x03\x12\x04\xe2\x01\x10\x11\n\x7f\n\x04\x04\0\x02\ - \x06\x12\x04\xe6\x01\x02\x1b\x1aq\x20The\x20project\x20number\x20of\x20t\ - he\x20project\x20the\x20bucket\x20belongs\x20to.\n\x20Attempting\x20to\ - \x20set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\ - \n\x05\x04\0\x02\x06\x04\x12\x06\xe6\x01\x02\xe2\x01\x12\n\r\n\x05\x04\0\ - \x02\x06\x05\x12\x04\xe6\x01\x02\x07\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\ - \xe6\x01\x08\x16\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\xe6\x01\x19\x1a\nn\ - \n\x04\x04\0\x02\x07\x12\x04\xea\x01\x02\x1b\x1a`\x20The\x20metadata\x20\ - generation\x20of\x20this\x20bucket.\n\x20Attempting\x20to\x20set\x20this\ - \x20field\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\0\ - \x02\x07\x04\x12\x06\xea\x01\x02\xe6\x01\x1b\n\r\n\x05\x04\0\x02\x07\x05\ - \x12\x04\xea\x01\x02\x07\n\r\n\x05\x04\0\x02\x07\x01\x12\x04\xea\x01\x08\ - \x16\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\xea\x01\x19\x1a\np\n\x04\x04\0\ - \x02\x08\x12\x04\xee\x01\x02\x19\x1ab\x20The\x20bucket's\x20[https://www\ - .w3.org/TR/cors/][Cross-Origin\x20Resource\x20Sharing]\n\x20(CORS)\x20co\ - nfiguration.\n\n\r\n\x05\x04\0\x02\x08\x04\x12\x04\xee\x01\x02\n\n\r\n\ - \x05\x04\0\x02\x08\x06\x12\x04\xee\x01\x0b\x0f\n\r\n\x05\x04\0\x02\x08\ - \x01\x12\x04\xee\x01\x10\x14\n\r\n\x05\x04\0\x02\x08\x03\x12\x04\xee\x01\ - \x17\x18\n\xfb\x02\n\x04\x04\0\x02\t\x12\x04\xf5\x01\x02\x17\x1a\xec\x02\ - \x20The\x20location\x20of\x20the\x20bucket.\x20Object\x20data\x20for\x20\ - objects\x20in\x20the\x20bucket\x20resides\n\x20in\x20physical\x20storage\ - \x20within\x20this\x20region.\x20\x20Defaults\x20to\x20`US`.\x20See\x20t\ - he\n\x20[https://developers.google.com/storage/docs/concepts-techniques#\ - specifyinglocations\"][developer's\n\x20guide]\x20for\x20the\x20authorit\ - ative\x20list.\x20Attempting\x20to\x20update\x20this\x20field\x20after\n\ - \x20the\x20bucket\x20is\x20created\x20will\x20result\x20in\x20an\x20erro\ - r.\n\n\x0f\n\x05\x04\0\x02\t\x04\x12\x06\xf5\x01\x02\xee\x01\x19\n\r\n\ - \x05\x04\0\x02\t\x05\x12\x04\xf5\x01\x02\x08\n\r\n\x05\x04\0\x02\t\x01\ - \x12\x04\xf5\x01\t\x11\n\r\n\x05\x04\0\x02\t\x03\x12\x04\xf5\x01\x14\x16\ - \n\x92\x03\n\x04\x04\0\x02\n\x12\x04\xfd\x01\x02\x1c\x1a\x83\x03\x20The\ - \x20bucket's\x20default\x20storage\x20class,\x20used\x20whenever\x20no\ - \x20storageClass\x20is\n\x20specified\x20for\x20a\x20newly-created\x20ob\ - ject.\x20This\x20defines\x20how\x20objects\x20in\x20the\n\x20bucket\x20a\ - re\x20stored\x20and\x20determines\x20the\x20SLA\x20and\x20the\x20cost\ - \x20of\x20storage.\n\x20If\x20this\x20value\x20is\x20not\x20specified\ - \x20when\x20the\x20bucket\x20is\x20created,\x20it\x20will\x20default\n\ - \x20to\x20`STANDARD`.\x20For\x20more\x20information,\x20see\n\x20https:/\ - /developers.google.com/storage/docs/storage-classes.\n\n\x0f\n\x05\x04\0\ - \x02\n\x04\x12\x06\xfd\x01\x02\xf5\x01\x17\n\r\n\x05\x04\0\x02\n\x05\x12\ - \x04\xfd\x01\x02\x08\n\r\n\x05\x04\0\x02\n\x01\x12\x04\xfd\x01\t\x16\n\r\ - \n\x05\x04\0\x02\n\x03\x12\x04\xfd\x01\x19\x1b\n\x9f\x01\n\x04\x04\0\x02\ - \x0b\x12\x04\x82\x02\x02\x13\x1a\x90\x01\x20HTTP\x201.1\x20[https://tool\ - s.ietf.org/html/rfc7232#section-2.3\"]Entity\x20tag]\n\x20for\x20the\x20\ - bucket.\n\x20Attempting\x20to\x20set\x20this\x20field\x20will\x20result\ - \x20in\x20an\x20error.\n\n\x0f\n\x05\x04\0\x02\x0b\x04\x12\x06\x82\x02\ - \x02\xfd\x01\x1c\n\r\n\x05\x04\0\x02\x0b\x05\x12\x04\x82\x02\x02\x08\n\r\ - \n\x05\x04\0\x02\x0b\x01\x12\x04\x82\x02\t\r\n\r\n\x05\x04\0\x02\x0b\x03\ - \x12\x04\x82\x02\x10\x12\nk\n\x04\x04\0\x02\x0c\x12\x04\x86\x02\x02)\x1a\ - ]\x20The\x20modification\x20time\x20of\x20the\x20bucket.\n\x20Attempting\ - \x20to\x20set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\ - \n\x0f\n\x05\x04\0\x02\x0c\x04\x12\x06\x86\x02\x02\x82\x02\x13\n\r\n\x05\ - \x04\0\x02\x0c\x06\x12\x04\x86\x02\x02\x1b\n\r\n\x05\x04\0\x02\x0c\x01\ - \x12\x04\x86\x02\x1c#\n\r\n\x05\x04\0\x02\x0c\x03\x12\x04\x86\x02&(\n\ - \x91\x07\n\x04\x04\0\x02\r\x12\x04\x95\x02\x02%\x1a\x82\x07\x20The\x20de\ - fault\x20value\x20for\x20event-based\x20hold\x20on\x20newly\x20created\ - \x20objects\x20in\x20this\n\x20bucket.\x20\x20Event-based\x20hold\x20is\ - \x20a\x20way\x20to\x20retain\x20objects\x20indefinitely\x20until\x20an\n\ - \x20event\x20occurs,\x20signified\x20by\x20the\n\x20hold's\x20release.\ - \x20After\x20being\x20released,\x20such\x20objects\x20will\x20be\x20subj\ - ect\x20to\n\x20bucket-level\x20retention\x20(if\x20any).\x20\x20One\x20s\ - ample\x20use\x20case\x20of\x20this\x20flag\x20is\x20for\n\x20banks\x20to\ - \x20hold\x20loan\x20documents\x20for\x20at\x20least\x203\x20years\x20aft\ - er\x20loan\x20is\x20paid\x20in\n\x20full.\x20Here,\x20bucket-level\x20re\ - tention\x20is\x203\x20years\x20and\x20the\x20event\x20is\x20loan\x20bein\ - g\n\x20paid\x20in\x20full.\x20In\x20this\x20example,\x20these\x20objects\ - \x20will\x20be\x20held\x20intact\x20for\x20any\n\x20number\x20of\x20year\ - s\x20until\x20the\x20event\x20has\x20occurred\x20(event-based\x20hold\ - \x20on\x20the\n\x20object\x20is\x20released)\x20and\x20then\x203\x20more\ - \x20years\x20after\x20that.\x20That\x20means\x20retention\n\x20duration\ - \x20of\x20the\x20objects\x20begins\x20from\x20the\x20moment\x20event-bas\ - ed\x20hold\n\x20transitioned\x20from\x20true\x20to\x20false.\x20\x20Obje\ - cts\x20under\x20event-based\x20hold\x20cannot\x20be\n\x20deleted,\x20ove\ - rwritten\x20or\x20archived\x20until\x20the\x20hold\x20is\x20removed.\n\n\ - \x0f\n\x05\x04\0\x02\r\x04\x12\x06\x95\x02\x02\x86\x02)\n\r\n\x05\x04\0\ - \x02\r\x05\x12\x04\x95\x02\x02\x06\n\r\n\x05\x04\0\x02\r\x01\x12\x04\x95\ - \x02\x07\x1f\n\r\n\x05\x04\0\x02\r\x03\x12\x04\x95\x02\"$\n9\n\x04\x04\0\ - \x02\x0e\x12\x04\x98\x02\x02\"\x1a+\x20User-provided\x20labels,\x20in\ - \x20key/value\x20pairs.\n\n\x0f\n\x05\x04\0\x02\x0e\x04\x12\x06\x98\x02\ - \x02\x95\x02%\n\r\n\x05\x04\0\x02\x0e\x06\x12\x04\x98\x02\x02\x15\n\r\n\ - \x05\x04\0\x02\x0e\x01\x12\x04\x98\x02\x16\x1c\n\r\n\x05\x04\0\x02\x0e\ - \x03\x12\x04\x98\x02\x1f!\n\xf7\x01\n\x04\x04\0\x02\x0f\x12\x04\x9e\x02\ - \x02\x17\x1a\xe8\x01\x20The\x20bucket's\x20website\x20configuration,\x20\ - controlling\x20how\x20the\x20service\x20behaves\n\x20when\x20accessing\ - \x20bucket\x20contents\x20as\x20a\x20web\x20site.\x20See\x20the\n\x20[ht\ - tps://cloud.google.com/storage/docs/static-website][Static\x20Website\n\ - \x20Examples]\x20for\x20more\x20information.\n\n\x0f\n\x05\x04\0\x02\x0f\ - \x04\x12\x06\x9e\x02\x02\x98\x02\"\n\r\n\x05\x04\0\x02\x0f\x06\x12\x04\ - \x9e\x02\x02\t\n\r\n\x05\x04\0\x02\x0f\x01\x12\x04\x9e\x02\n\x11\n\r\n\ - \x05\x04\0\x02\x0f\x03\x12\x04\x9e\x02\x14\x16\n6\n\x04\x04\0\x02\x10\ - \x12\x04\xa1\x02\x02\x1d\x1a(\x20The\x20bucket's\x20versioning\x20config\ - uration.\n\n\x0f\n\x05\x04\0\x02\x10\x04\x12\x06\xa1\x02\x02\x9e\x02\x17\ - \n\r\n\x05\x04\0\x02\x10\x06\x12\x04\xa1\x02\x02\x0c\n\r\n\x05\x04\0\x02\ - \x10\x01\x12\x04\xa1\x02\r\x17\n\r\n\x05\x04\0\x02\x10\x03\x12\x04\xa1\ - \x02\x1a\x1c\n\x92\x01\n\x04\x04\0\x02\x11\x12\x04\xa5\x02\x02\x17\x1a\ - \x83\x01\x20The\x20bucket's\x20logging\x20configuration,\x20which\x20def\ - ines\x20the\x20destination\x20bucket\n\x20and\x20optional\x20name\x20pre\ - fix\x20for\x20the\x20current\x20bucket's\x20logs.\n\n\x0f\n\x05\x04\0\ - \x02\x11\x04\x12\x06\xa5\x02\x02\xa1\x02\x1d\n\r\n\x05\x04\0\x02\x11\x06\ - \x12\x04\xa5\x02\x02\t\n\r\n\x05\x04\0\x02\x11\x01\x12\x04\xa5\x02\n\x11\ - \n\r\n\x05\x04\0\x02\x11\x03\x12\x04\xa5\x02\x14\x16\nW\n\x04\x04\0\x02\ - \x12\x12\x04\xa8\x02\x02\x13\x1aI\x20The\x20owner\x20of\x20the\x20bucket\ - .\x20This\x20is\x20always\x20the\x20project\x20team's\x20owner\x20group.\ - \n\n\x0f\n\x05\x04\0\x02\x12\x04\x12\x06\xa8\x02\x02\xa5\x02\x17\n\r\n\ - \x05\x04\0\x02\x12\x06\x12\x04\xa8\x02\x02\x07\n\r\n\x05\x04\0\x02\x12\ - \x01\x12\x04\xa8\x02\x08\r\n\r\n\x05\x04\0\x02\x12\x03\x12\x04\xa8\x02\ - \x10\x12\n6\n\x04\x04\0\x02\x13\x12\x04\xab\x02\x02\x1d\x1a(\x20Encrypti\ - on\x20configuration\x20for\x20a\x20bucket.\n\n\x0f\n\x05\x04\0\x02\x13\ - \x04\x12\x06\xab\x02\x02\xa8\x02\x13\n\r\n\x05\x04\0\x02\x13\x06\x12\x04\ - \xab\x02\x02\x0c\n\r\n\x05\x04\0\x02\x13\x01\x12\x04\xab\x02\r\x17\n\r\n\ - \x05\x04\0\x02\x13\x03\x12\x04\xab\x02\x1a\x1c\n3\n\x04\x04\0\x02\x14\ - \x12\x04\xae\x02\x02\x17\x1a%\x20The\x20bucket's\x20billing\x20configura\ - tion.\n\n\x0f\n\x05\x04\0\x02\x14\x04\x12\x06\xae\x02\x02\xab\x02\x1d\n\ - \r\n\x05\x04\0\x02\x14\x06\x12\x04\xae\x02\x02\t\n\r\n\x05\x04\0\x02\x14\ - \x01\x12\x04\xae\x02\n\x11\n\r\n\x05\x04\0\x02\x14\x03\x12\x04\xae\x02\ - \x14\x16\n\xf1\x04\n\x04\x04\0\x02\x15\x12\x04\xb9\x02\x02(\x1a\xe2\x04\ - \x20The\x20bucket's\x20retention\x20policy.\x20The\x20retention\x20polic\ - y\x20enforces\x20a\x20minimum\n\x20retention\x20time\x20for\x20all\x20ob\ - jects\x20contained\x20in\x20the\x20bucket,\x20based\x20on\x20their\n\x20\ - creation\x20time.\x20Any\x20attempt\x20to\x20overwrite\x20or\x20delete\ - \x20objects\x20younger\x20than\x20the\n\x20retention\x20period\x20will\ - \x20result\x20in\x20a\x20PERMISSION_DENIED\x20error.\x20\x20An\x20unlock\ - ed\n\x20retention\x20policy\x20can\x20be\x20modified\x20or\x20removed\ - \x20from\x20the\x20bucket\x20via\x20a\n\x20storage.buckets.update\x20ope\ - ration.\x20A\x20locked\x20retention\x20policy\x20cannot\x20be\n\x20remov\ - ed\x20or\x20shortened\x20in\x20duration\x20for\x20the\x20lifetime\x20of\ - \x20the\x20bucket.\n\x20Attempting\x20to\x20remove\x20or\x20decrease\x20\ - period\x20of\x20a\x20locked\x20retention\x20policy\x20will\n\x20result\ - \x20in\x20a\x20PERMISSION_DENIED\x20error.\n\n\x0f\n\x05\x04\0\x02\x15\ - \x04\x12\x06\xb9\x02\x02\xae\x02\x17\n\r\n\x05\x04\0\x02\x15\x06\x12\x04\ - \xb9\x02\x02\x11\n\r\n\x05\x04\0\x02\x15\x01\x12\x04\xb9\x02\x12\"\n\r\n\ - \x05\x04\0\x02\x15\x03\x12\x04\xb9\x02%'\nY\n\x04\x04\0\x02\x16\x12\x04\ - \xbc\x02\x02\x1c\x1aK\x20The\x20location\x20type\x20of\x20the\x20bucket\ - \x20(region,\x20dual-region,\x20multi-region,\x20etc).\n\n\x0f\n\x05\x04\ - \0\x02\x16\x04\x12\x06\xbc\x02\x02\xb9\x02(\n\r\n\x05\x04\0\x02\x16\x05\ - \x12\x04\xbc\x02\x02\x08\n\r\n\x05\x04\0\x02\x16\x01\x12\x04\xbc\x02\t\ - \x16\n\r\n\x05\x04\0\x02\x16\x03\x12\x04\xbc\x02\x19\x1b\n/\n\x04\x04\0\ - \x02\x17\x12\x04\xbf\x02\x02*\x1a!\x20The\x20bucket's\x20IAM\x20configur\ - ation.\n\n\x0f\n\x05\x04\0\x02\x17\x04\x12\x06\xbf\x02\x02\xbc\x02\x1c\n\ - \r\n\x05\x04\0\x02\x17\x06\x12\x04\xbf\x02\x02\x12\n\r\n\x05\x04\0\x02\ - \x17\x01\x12\x04\xbf\x02\x13$\n\r\n\x05\x04\0\x02\x17\x03\x12\x04\xbf\ - \x02')\n\xc0\x02\n\x04\x04\0\x02\x18\x12\x04\xc6\x02\x02%\x1a\xb1\x02\ - \x20The\x20zone\x20or\x20zones\x20from\x20which\x20the\x20bucket\x20is\ - \x20intended\x20to\x20use\x20zonal\x20quota.\n\x20Requests\x20for\x20dat\ - a\x20from\x20outside\x20the\x20specified\x20affinities\x20are\x20still\ - \x20allowed\n\x20but\x20won\xe2\x80\x99t\x20be\x20able\x20to\x20use\x20z\ - onal\x20quota.\x20The\x20values\x20are\x20case-insensitive.\n\x20Attempt\ - ing\x20to\x20update\x20this\x20field\x20after\x20bucket\x20is\x20created\ - \x20will\x20result\x20in\x20an\n\x20error.\n\n\r\n\x05\x04\0\x02\x18\x04\ - \x12\x04\xc6\x02\x02\n\n\r\n\x05\x04\0\x02\x18\x05\x12\x04\xc6\x02\x0b\ - \x11\n\r\n\x05\x04\0\x02\x18\x01\x12\x04\xc6\x02\x12\x1f\n\r\n\x05\x04\0\ - \x02\x18\x03\x12\x04\xc6\x02\"$\n(\n\x02\x04\x01\x12\x06\xca\x02\0\xf4\ - \x02\x01\x1a\x1a\x20An\x20access-control\x20entry.\n\n\x0b\n\x03\x04\x01\ - \x01\x12\x04\xca\x02\x08\x1b\n5\n\x04\x04\x01\x02\0\x12\x04\xcc\x02\x02\ - \x12\x1a'\x20The\x20access\x20permission\x20for\x20the\x20entity.\n\n\ - \x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xcc\x02\x02\xca\x02\x1d\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\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xcc\x02\x10\x11\ - \nv\n\x04\x04\x01\x02\x01\x12\x04\xd0\x02\x02\x12\x1ah\x20HTTP\x201.1\ - \x20[\"https://tools.ietf.org/html/rfc7232#section-2.3][Entity\x20tag]\n\ - \x20for\x20the\x20access-control\x20entry.\n\n\x0f\n\x05\x04\x01\x02\x01\ - \x04\x12\x06\xd0\x02\x02\xcc\x02\x12\n\r\n\x05\x04\x01\x02\x01\x05\x12\ - \x04\xd0\x02\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xd0\x02\t\r\n\ - \r\n\x05\x04\x01\x02\x01\x03\x12\x04\xd0\x02\x10\x11\n3\n\x04\x04\x01\ - \x02\x02\x12\x04\xd3\x02\x02\x10\x1a%\x20The\x20ID\x20of\x20the\x20acces\ - s-control\x20entry.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\xd3\x02\ - \x02\xd0\x02\x12\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xd3\x02\x02\x08\n\ - \r\n\x05\x04\x01\x02\x02\x01\x12\x04\xd3\x02\t\x0b\n\r\n\x05\x04\x01\x02\ - \x02\x03\x12\x04\xd3\x02\x0e\x0f\n'\n\x04\x04\x01\x02\x03\x12\x04\xd6\ - \x02\x02\x14\x1a\x19\x20The\x20name\x20of\x20the\x20bucket.\n\n\x0f\n\ - \x05\x04\x01\x02\x03\x04\x12\x06\xd6\x02\x02\xd3\x02\x10\n\r\n\x05\x04\ - \x01\x02\x03\x05\x12\x04\xd6\x02\x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\ - \x12\x04\xd6\x02\t\x0f\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xd6\x02\x12\ - \x13\n\xfb\x03\n\x04\x04\x01\x02\x04\x12\x04\xe7\x02\x02\x14\x1a\xec\x03\ - \x20The\x20entity\x20holding\x20the\x20permission,\x20in\x20one\x20of\ - \x20the\x20following\x20forms:\n\x20*\x20`user-{userid}`\n\x20*\x20`user\ - -{email}`\n\x20*\x20`group-{groupid}`\n\x20*\x20`group-{email}`\n\x20*\ - \x20`domain-{domain}`\n\x20*\x20`project-{team-projectid}`\n\x20*\x20`al\ - lUsers`\n\x20*\x20`allAuthenticatedUsers`\n\x20Examples:\n\x20*\x20The\ - \x20user\x20`liz@example.com`\x20would\x20be\x20`user-liz@example.com`.\ - \n\x20*\x20The\x20group\x20`example@googlegroups.com`\x20would\x20be\n\ - \x20`group-example@googlegroups.com`\n\x20*\x20All\x20members\x20of\x20t\ - he\x20Google\x20Apps\x20for\x20Business\x20domain\x20`example.com`\x20wo\ - uld\x20be\n\x20`domain-example.com`\n\n\x0f\n\x05\x04\x01\x02\x04\x04\ - \x12\x06\xe7\x02\x02\xd6\x02\x14\n\r\n\x05\x04\x01\x02\x04\x05\x12\x04\ - \xe7\x02\x02\x08\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\xe7\x02\t\x0f\n\r\ - \n\x05\x04\x01\x02\x04\x03\x12\x04\xe7\x02\x12\x13\n.\n\x04\x04\x01\x02\ - \x05\x12\x04\xea\x02\x02\x17\x1a\x20\x20The\x20ID\x20for\x20the\x20entit\ - y,\x20if\x20any.\n\n\x0f\n\x05\x04\x01\x02\x05\x04\x12\x06\xea\x02\x02\ - \xe7\x02\x14\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\xea\x02\x02\x08\n\r\n\ - \x05\x04\x01\x02\x05\x01\x12\x04\xea\x02\t\x12\n\r\n\x05\x04\x01\x02\x05\ - \x03\x12\x04\xea\x02\x15\x16\nE\n\x04\x04\x01\x02\x06\x12\x04\xed\x02\ - \x02\x13\x1a7\x20The\x20email\x20address\x20associated\x20with\x20the\ - \x20entity,\x20if\x20any.\n\n\x0f\n\x05\x04\x01\x02\x06\x04\x12\x06\xed\ - \x02\x02\xea\x02\x17\n\r\n\x05\x04\x01\x02\x06\x05\x12\x04\xed\x02\x02\ - \x08\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\xed\x02\t\x0e\n\r\n\x05\x04\ - \x01\x02\x06\x03\x12\x04\xed\x02\x11\x12\n>\n\x04\x04\x01\x02\x07\x12\ - \x04\xf0\x02\x02\x14\x1a0\x20The\x20domain\x20associated\x20with\x20the\ - \x20entity,\x20if\x20any.\n\n\x0f\n\x05\x04\x01\x02\x07\x04\x12\x06\xf0\ - \x02\x02\xed\x02\x13\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\xf0\x02\x02\ - \x08\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\xf0\x02\t\x0f\n\r\n\x05\x04\ - \x01\x02\x07\x03\x12\x04\xf0\x02\x12\x13\nD\n\x04\x04\x01\x02\x08\x12\ - \x04\xf3\x02\x02\x20\x1a6\x20The\x20project\x20team\x20associated\x20wit\ - h\x20the\x20entity,\x20if\x20any.\n\n\x0f\n\x05\x04\x01\x02\x08\x04\x12\ - \x06\xf3\x02\x02\xf0\x02\x14\n\r\n\x05\x04\x01\x02\x08\x06\x12\x04\xf3\ - \x02\x02\r\n\r\n\x05\x04\x01\x02\x08\x01\x12\x04\xf3\x02\x0e\x1a\n\r\n\ - \x05\x04\x01\x02\x08\x03\x12\x04\xf3\x02\x1d\x1f\nX\n\x02\x04\x02\x12\ - \x06\xf7\x02\0\xfa\x02\x01\x1aJ\x20The\x20response\x20to\x20a\x20call\ - \x20to\x20BucketAccessControls.ListBucketAccessControls.\n\n\x0b\n\x03\ - \x04\x02\x01\x12\x04\xf7\x02\x08(\n\"\n\x04\x04\x02\x02\0\x12\x04\xf9\ - \x02\x02)\x1a\x14\x20The\x20list\x20of\x20items.\n\n\r\n\x05\x04\x02\x02\ - \0\x04\x12\x04\xf9\x02\x02\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xf9\x02\ - \x0b\x1e\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xf9\x02\x1f$\n\r\n\x05\x04\ - \x02\x02\0\x03\x12\x04\xf9\x02'(\n;\n\x02\x04\x03\x12\x06\xfd\x02\0\x84\ - \x03\x01\x1a-\x20The\x20result\x20of\x20a\x20call\x20to\x20Buckets.ListB\ - uckets\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xfd\x02\x08\x1b\n\"\n\x04\x04\ - \x03\x02\0\x12\x04\xff\x02\x02\x1c\x1a\x14\x20The\x20list\x20of\x20items\ - .\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\xff\x02\x02\n\n\r\n\x05\x04\x03\ - \x02\0\x06\x12\x04\xff\x02\x0b\x11\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\ - \xff\x02\x12\x17\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xff\x02\x1a\x1b\n\ - \xa0\x01\n\x04\x04\x03\x02\x01\x12\x04\x83\x03\x02\x1d\x1a\x91\x01\x20Th\ - e\x20continuation\x20token,\x20used\x20to\x20page\x20through\x20large\ - \x20result\x20sets.\x20Provide\n\x20this\x20value\x20in\x20a\x20subseque\ - nt\x20request\x20to\x20return\x20the\x20next\x20page\x20of\x20results.\n\ - \n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\x83\x03\x02\xff\x02\x1c\n\r\n\ - \x05\x04\x03\x02\x01\x05\x12\x04\x83\x03\x02\x08\n\r\n\x05\x04\x03\x02\ - \x01\x01\x12\x04\x83\x03\t\x18\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x83\ - \x03\x1b\x1c\nK\n\x02\x04\x04\x12\x06\x87\x03\0\xa4\x03\x01\x1a=\x20An\ - \x20notification\x20channel\x20used\x20to\x20watch\x20for\x20resource\ - \x20changes.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x87\x03\x08\x0f\nM\n\x04\ - \x04\x04\x02\0\x12\x04\x89\x03\x02\x10\x1a?\x20A\x20UUID\x20or\x20simila\ - r\x20unique\x20string\x20that\x20identifies\x20this\x20channel.\n\n\x0f\ - \n\x05\x04\x04\x02\0\x04\x12\x06\x89\x03\x02\x87\x03\x11\n\r\n\x05\x04\ - \x04\x02\0\x05\x12\x04\x89\x03\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\ - \x04\x89\x03\t\x0b\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x89\x03\x0e\x0f\n\ - \x7f\n\x04\x04\x04\x02\x01\x12\x04\x8d\x03\x02\x19\x1aq\x20An\x20opaque\ - \x20ID\x20that\x20identifies\x20the\x20resource\x20being\x20watched\x20o\ - n\x20this\x20channel.\n\x20Stable\x20across\x20different\x20API\x20versi\ - ons.\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\x8d\x03\x02\x89\x03\x10\n\ - \r\n\x05\x04\x04\x02\x01\x05\x12\x04\x8d\x03\x02\x08\n\r\n\x05\x04\x04\ - \x02\x01\x01\x12\x04\x8d\x03\t\x14\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\ - \x8d\x03\x17\x18\nG\n\x04\x04\x04\x02\x02\x12\x04\x90\x03\x02\x1a\x1a9\ - \x20A\x20version-specific\x20identifier\x20for\x20the\x20watched\x20reso\ - urce.\n\n\x0f\n\x05\x04\x04\x02\x02\x04\x12\x06\x90\x03\x02\x8d\x03\x19\ - \n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\x90\x03\x02\x08\n\r\n\x05\x04\x04\ - \x02\x02\x01\x12\x04\x90\x03\t\x15\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\ - \x90\x03\x18\x19\n\x82\x01\n\x04\x04\x04\x02\x03\x12\x04\x94\x03\x02\x13\ - \x1at\x20An\x20arbitrary\x20string\x20delivered\x20to\x20the\x20target\ - \x20address\x20with\x20each\x20notification\n\x20delivered\x20over\x20th\ - is\x20channel.\x20Optional.\n\n\x0f\n\x05\x04\x04\x02\x03\x04\x12\x06\ - \x94\x03\x02\x90\x03\x1a\n\r\n\x05\x04\x04\x02\x03\x05\x12\x04\x94\x03\ - \x02\x08\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\x94\x03\t\x0e\n\r\n\x05\ - \x04\x04\x02\x03\x03\x12\x04\x94\x03\x11\x12\nK\n\x04\x04\x04\x02\x04\ - \x12\x04\x97\x03\x02+\x1a=\x20Date\x20and\x20time\x20of\x20notification\ - \x20channel\x20expiration.\x20Optional.\n\n\x0f\n\x05\x04\x04\x02\x04\ - \x04\x12\x06\x97\x03\x02\x94\x03\x13\n\r\n\x05\x04\x04\x02\x04\x06\x12\ - \x04\x97\x03\x02\x1b\n\r\n\x05\x04\x04\x02\x04\x01\x12\x04\x97\x03\x1c&\ - \n\r\n\x05\x04\x04\x02\x04\x03\x12\x04\x97\x03)*\nE\n\x04\x04\x04\x02\ - \x05\x12\x04\x9a\x03\x02\x12\x1a7\x20The\x20type\x20of\x20delivery\x20me\ - chanism\x20used\x20for\x20this\x20channel.\n\n\x0f\n\x05\x04\x04\x02\x05\ - \x04\x12\x06\x9a\x03\x02\x97\x03+\n\r\n\x05\x04\x04\x02\x05\x05\x12\x04\ - \x9a\x03\x02\x08\n\r\n\x05\x04\x04\x02\x05\x01\x12\x04\x9a\x03\t\r\n\r\n\ - \x05\x04\x04\x02\x05\x03\x12\x04\x9a\x03\x10\x11\nO\n\x04\x04\x04\x02\ - \x06\x12\x04\x9d\x03\x02\x15\x1aA\x20The\x20address\x20where\x20notifica\ - tions\x20are\x20delivered\x20for\x20this\x20channel.\n\n\x0f\n\x05\x04\ - \x04\x02\x06\x04\x12\x06\x9d\x03\x02\x9a\x03\x12\n\r\n\x05\x04\x04\x02\ - \x06\x05\x12\x04\x9d\x03\x02\x08\n\r\n\x05\x04\x04\x02\x06\x01\x12\x04\ - \x9d\x03\t\x10\n\r\n\x05\x04\x04\x02\x06\x03\x12\x04\x9d\x03\x13\x14\nV\ - \n\x04\x04\x04\x02\x07\x12\x04\xa0\x03\x02!\x1aH\x20Additional\x20parame\ - ters\x20controlling\x20delivery\x20channel\x20behavior.\x20Optional.\n\n\ - \x0f\n\x05\x04\x04\x02\x07\x04\x12\x06\xa0\x03\x02\x9d\x03\x15\n\r\n\x05\ - \x04\x04\x02\x07\x06\x12\x04\xa0\x03\x02\x15\n\r\n\x05\x04\x04\x02\x07\ - \x01\x12\x04\xa0\x03\x16\x1c\n\r\n\x05\x04\x04\x02\x07\x03\x12\x04\xa0\ - \x03\x1f\x20\nP\n\x04\x04\x04\x02\x08\x12\x04\xa3\x03\x02\x13\x1aB\x20A\ - \x20Boolean\x20value\x20to\x20indicate\x20whether\x20payload\x20is\x20wa\ - nted.\x20Optional.\n\n\x0f\n\x05\x04\x04\x02\x08\x04\x12\x06\xa3\x03\x02\ - \xa0\x03!\n\r\n\x05\x04\x04\x02\x08\x05\x12\x04\xa3\x03\x02\x06\n\r\n\ - \x05\x04\x04\x02\x08\x01\x12\x04\xa3\x03\x07\x0e\n\r\n\x05\x04\x04\x02\ - \x08\x03\x12\x04\xa3\x03\x11\x12\n=\n\x02\x04\x05\x12\x06\xa7\x03\0\xbc\ - \x03\x01\x1a/\x20The\x20result\x20of\x20a\x20call\x20to\x20Channels.List\ - Channels\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xa7\x03\x08\x1c\n\x0e\n\x04\ - \x04\x05\x03\0\x12\x06\xa8\x03\x02\xb8\x03\x03\n\r\n\x05\x04\x05\x03\0\ - \x01\x12\x04\xa8\x03\n\x0f\nK\n\x06\x04\x05\x03\0\x02\0\x12\x04\xaa\x03\ - \x04\x1a\x1a;\x20User-specified\x20name\x20for\x20a\x20channel.\x20Neede\ - d\x20to\x20unsubscribe.\n\n\x11\n\x07\x04\x05\x03\0\x02\0\x04\x12\x06\ - \xaa\x03\x04\xa8\x03\x11\n\x0f\n\x07\x04\x05\x03\0\x02\0\x05\x12\x04\xaa\ - \x03\x04\n\n\x0f\n\x07\x04\x05\x03\0\x02\0\x01\x12\x04\xaa\x03\x0b\x15\n\ - \x0f\n\x07\x04\x05\x03\0\x02\0\x03\x12\x04\xaa\x03\x18\x19\n^\n\x06\x04\ - \x05\x03\0\x02\x01\x12\x04\xae\x03\x04\x1b\x1aN\x20Opaque\x20value\x20ge\ - nerated\x20by\x20GCS\x20representing\x20a\x20bucket.\x20Needed\x20to\n\ - \x20unsubscribe.\n\n\x11\n\x07\x04\x05\x03\0\x02\x01\x04\x12\x06\xae\x03\ - \x04\xaa\x03\x1a\n\x0f\n\x07\x04\x05\x03\0\x02\x01\x05\x12\x04\xae\x03\ - \x04\n\n\x0f\n\x07\x04\x05\x03\0\x02\x01\x01\x12\x04\xae\x03\x0b\x16\n\ - \x0f\n\x07\x04\x05\x03\0\x02\x01\x03\x12\x04\xae\x03\x19\x1a\nG\n\x06\ - \x04\x05\x03\0\x02\x02\x12\x04\xb1\x03\x04\x18\x1a7\x20Url\x20used\x20to\ - \x20identify\x20where\x20notifications\x20are\x20sent\x20to.\n\n\x11\n\ - \x07\x04\x05\x03\0\x02\x02\x04\x12\x06\xb1\x03\x04\xae\x03\x1b\n\x0f\n\ - \x07\x04\x05\x03\0\x02\x02\x05\x12\x04\xb1\x03\x04\n\n\x0f\n\x07\x04\x05\ - \x03\0\x02\x02\x01\x12\x04\xb1\x03\x0b\x13\n\x0f\n\x07\x04\x05\x03\0\x02\ - \x02\x03\x12\x04\xb1\x03\x16\x17\n2\n\x06\x04\x05\x03\0\x02\x03\x12\x04\ - \xb4\x03\x04\x20\x1a\"\x20Email\x20address\x20of\x20the\x20subscriber.\n\ - \n\x11\n\x07\x04\x05\x03\0\x02\x03\x04\x12\x06\xb4\x03\x04\xb1\x03\x18\n\ - \x0f\n\x07\x04\x05\x03\0\x02\x03\x05\x12\x04\xb4\x03\x04\n\n\x0f\n\x07\ - \x04\x05\x03\0\x02\x03\x01\x12\x04\xb4\x03\x0b\x1b\n\x0f\n\x07\x04\x05\ - \x03\0\x02\x03\x03\x12\x04\xb4\x03\x1e\x1f\n4\n\x06\x04\x05\x03\0\x02\ - \x04\x12\x04\xb7\x03\x040\x1a$\x20Time\x20when\x20the\x20channel\x20was\ - \x20created.\n\n\x11\n\x07\x04\x05\x03\0\x02\x04\x04\x12\x06\xb7\x03\x04\ - \xb4\x03\x20\n\x0f\n\x07\x04\x05\x03\0\x02\x04\x06\x12\x04\xb7\x03\x04\ - \x1d\n\x0f\n\x07\x04\x05\x03\0\x02\x04\x01\x12\x04\xb7\x03\x1e+\n\x0f\n\ - \x07\x04\x05\x03\0\x02\x04\x03\x12\x04\xb7\x03./\n?\n\x04\x04\x05\x02\0\ - \x12\x04\xbb\x03\x02\x1b\x1a1\x20The\x20list\x20of\x20notification\x20ch\ - annels\x20for\x20a\x20bucket.\n\n\r\n\x05\x04\x05\x02\0\x04\x12\x04\xbb\ - \x03\x02\n\n\r\n\x05\x04\x05\x02\0\x06\x12\x04\xbb\x03\x0b\x10\n\r\n\x05\ - \x04\x05\x02\0\x01\x12\x04\xbb\x03\x11\x16\n\r\n\x05\x04\x05\x02\0\x03\ - \x12\x04\xbb\x03\x19\x1a\n_\n\x02\x04\x06\x12\x06\xc0\x03\0\xc6\x03\x01\ - \x1aQ\x20Message\x20used\x20to\x20convey\x20content\x20being\x20read\x20\ - or\x20written,\x20along\x20with\x20its\n\x20checksum.\n\n\x0b\n\x03\x04\ - \x06\x01\x12\x04\xc0\x03\x08\x17\n\x19\n\x04\x04\x06\x02\0\x12\x04\xc2\ - \x03\x02\x14\x1a\x0b\x20The\x20data.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\ - \x06\xc2\x03\x02\xc0\x03\x19\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xc2\x03\ - \x02\x07\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xc2\x03\x08\x0f\n\r\n\x05\ - \x04\x06\x02\0\x03\x12\x04\xc2\x03\x12\x13\n.\n\x04\x04\x06\x02\x01\x12\ - \x04\xc5\x03\x02)\x1a\x20\x20CRC32C\x20digest\x20of\x20the\x20contents.\ - \n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xc5\x03\x02\xc2\x03\x14\n\r\n\ - \x05\x04\x06\x02\x01\x06\x12\x04\xc5\x03\x02\x1d\n\r\n\x05\x04\x06\x02\ - \x01\x01\x12\x04\xc5\x03\x1e$\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xc5\ - \x03'(\nN\n\x02\x04\x07\x12\x06\xc9\x03\0\xd2\x03\x01\x1a@\x20Message\ - \x20used\x20for\x20storing\x20full\x20(not\x20subrange)\x20object\x20che\ - cksums.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xc9\x03\x08\x17\n\xcf\x01\n\ - \x04\x04\x07\x02\0\x12\x04\xcd\x03\x02)\x1a\xc0\x01\x20CRC32C\x20digest\ - \x20of\x20the\x20object\x20data.\x20Computed\x20by\x20the\x20GCS\x20serv\ - ice\x20for\n\x20all\x20written\x20objects,\x20and\x20validated\x20by\x20\ - the\x20GCS\x20service\x20against\n\x20client-supplied\x20values\x20if\ - \x20present\x20in\x20an\x20InsertObjectRequest.\n\n\x0f\n\x05\x04\x07\ - \x02\0\x04\x12\x06\xcd\x03\x02\xc9\x03\x19\n\r\n\x05\x04\x07\x02\0\x06\ - \x12\x04\xcd\x03\x02\x1d\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xcd\x03\x1e\ - $\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xcd\x03'(\n\x90\x01\n\x04\x04\x07\ - \x02\x01\x12\x04\xd1\x03\x02\x16\x1a\x81\x01\x20Hex-encoded\x20MD5\x20ha\ - sh\x20of\x20the\x20object\x20data\x20(hexdigest).\x20Whether/how\x20this\ - \n\x20checksum\x20is\x20provided\x20and\x20validated\x20is\x20service-de\ - pendent.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xd1\x03\x02\xcd\x03)\ - \n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xd1\x03\x02\x08\n\r\n\x05\x04\x07\ - \x02\x01\x01\x12\x04\xd1\x03\t\x11\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\ - \xd1\x03\x14\x15\nQ\n\x02\x04\x08\x12\x06\xd5\x03\0\x98\x04\x01\x1aC\x20\ - A\x20collection\x20of\x20enums\x20used\x20in\x20multiple\x20places\x20th\ - roughout\x20the\x20API.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xd5\x03\x08\ - \x13\n>\n\x04\x04\x08\x04\0\x12\x06\xd7\x03\x02\xe0\x03\x03\x1a.\x20A\ - \x20set\x20of\x20properties\x20to\x20return\x20in\x20a\x20response.\n\n\ - \r\n\x05\x04\x08\x04\0\x01\x12\x04\xd7\x03\x07\x11\n*\n\x06\x04\x08\x04\ - \0\x02\0\x12\x04\xd9\x03\x04\x1f\x1a\x1a\x20No\x20specified\x20projectio\ - n.\n\n\x0f\n\x07\x04\x08\x04\0\x02\0\x01\x12\x04\xd9\x03\x04\x1a\n\x0f\n\ - \x07\x04\x08\x04\0\x02\0\x02\x12\x04\xd9\x03\x1d\x1e\nI\n\x06\x04\x08\ - \x04\0\x02\x01\x12\x04\xdc\x03\x04\x0f\x1a9\x20Omit\x20`owner`,\x20`acl`\ - ,\x20and\x20`defaultObjectAcl`\x20properties.\n\n\x0f\n\x07\x04\x08\x04\ - \0\x02\x01\x01\x12\x04\xdc\x03\x04\n\n\x0f\n\x07\x04\x08\x04\0\x02\x01\ - \x02\x12\x04\xdc\x03\r\x0e\n)\n\x06\x04\x08\x04\0\x02\x02\x12\x04\xdf\ - \x03\x04\r\x1a\x19\x20Include\x20all\x20properties.\n\n\x0f\n\x07\x04\ - \x08\x04\0\x02\x02\x01\x12\x04\xdf\x03\x04\x08\n\x0f\n\x07\x04\x08\x04\0\ - \x02\x02\x02\x12\x04\xdf\x03\x0b\x0c\nY\n\x04\x04\x08\x04\x01\x12\x06\ - \xe3\x03\x02\xf8\x03\x03\x1aI\x20Predefined\x20or\x20\"canned\"\x20alias\ - es\x20for\x20sets\x20of\x20specific\x20bucket\x20ACL\x20entries.\n\n\r\n\ - \x05\x04\x08\x04\x01\x01\x12\x04\xe3\x03\x07\x1a\n$\n\x06\x04\x08\x04\ - \x01\x02\0\x12\x04\xe5\x03\x04*\x1a\x14\x20No\x20predefined\x20ACL.\n\n\ - \x0f\n\x07\x04\x08\x04\x01\x02\0\x01\x12\x04\xe5\x03\x04%\n\x0f\n\x07\ - \x04\x08\x04\x01\x02\0\x02\x12\x04\xe5\x03()\nk\n\x06\x04\x08\x04\x01\ - \x02\x01\x12\x04\xe9\x03\x04&\x1a[\x20Project\x20team\x20owners\x20get\ - \x20`OWNER`\x20access,\x20and\n\x20`allAuthenticatedUsers`\x20get\x20`RE\ - ADER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x01\x02\x01\x01\x12\x04\xe9\ - \x03\x04!\n\x0f\n\x07\x04\x08\x04\x01\x02\x01\x02\x12\x04\xe9\x03$%\n9\n\ - \x06\x04\x08\x04\x01\x02\x02\x12\x04\xec\x03\x04\x1b\x1a)\x20Project\x20\ - team\x20owners\x20get\x20`OWNER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\ - \x01\x02\x02\x01\x12\x04\xec\x03\x04\x16\n\x0f\n\x07\x04\x08\x04\x01\x02\ - \x02\x02\x12\x04\xec\x03\x19\x1a\nK\n\x06\x04\x08\x04\x01\x02\x03\x12\ - \x04\xef\x03\x04#\x1a;\x20Project\x20team\x20members\x20get\x20access\ - \x20according\x20to\x20their\x20roles.\n\n\x0f\n\x07\x04\x08\x04\x01\x02\ - \x03\x01\x12\x04\xef\x03\x04\x1e\n\x0f\n\x07\x04\x08\x04\x01\x02\x03\x02\ - \x12\x04\xef\x03!\"\n^\n\x06\x04\x08\x04\x01\x02\x04\x12\x04\xf3\x03\x04\ - \x1f\x1aN\x20Project\x20team\x20owners\x20get\x20`OWNER`\x20access,\x20a\ - nd\n\x20`allUsers`\x20get\x20`READER`\x20access.\n\n\x0f\n\x07\x04\x08\ - \x04\x01\x02\x04\x01\x12\x04\xf3\x03\x04\x1a\n\x0f\n\x07\x04\x08\x04\x01\ - \x02\x04\x02\x12\x04\xf3\x03\x1d\x1e\n^\n\x06\x04\x08\x04\x01\x02\x05\ - \x12\x04\xf7\x03\x04%\x1aN\x20Project\x20team\x20owners\x20get\x20`OWNER\ - `\x20access,\x20and\n\x20`allUsers`\x20get\x20`WRITER`\x20access.\n\n\ - \x0f\n\x07\x04\x08\x04\x01\x02\x05\x01\x12\x04\xf7\x03\x04\x20\n\x0f\n\ - \x07\x04\x08\x04\x01\x02\x05\x02\x12\x04\xf7\x03#$\nY\n\x04\x04\x08\x04\ - \x02\x12\x06\xfb\x03\x02\x95\x04\x03\x1aI\x20Predefined\x20or\x20\"canne\ - d\"\x20aliases\x20for\x20sets\x20of\x20specific\x20object\x20ACL\x20entr\ - ies.\n\n\r\n\x05\x04\x08\x04\x02\x01\x12\x04\xfb\x03\x07\x1a\n$\n\x06\ - \x04\x08\x04\x02\x02\0\x12\x04\xfd\x03\x04*\x1a\x14\x20No\x20predefined\ - \x20ACL.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\0\x01\x12\x04\xfd\x03\x04%\n\ - \x0f\n\x07\x04\x08\x04\x02\x02\0\x02\x12\x04\xfd\x03()\ne\n\x06\x04\x08\ - \x04\x02\x02\x01\x12\x04\x81\x04\x04&\x1aU\x20Object\x20owner\x20gets\ - \x20`OWNER`\x20access,\x20and\n\x20`allAuthenticatedUsers`\x20get\x20`RE\ - ADER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\x01\x01\x12\x04\x81\ - \x04\x04!\n\x0f\n\x07\x04\x08\x04\x02\x02\x01\x02\x12\x04\x81\x04$%\n`\n\ - \x06\x04\x08\x04\x02\x02\x02\x12\x04\x85\x04\x04-\x1aP\x20Object\x20owne\ - r\x20gets\x20`OWNER`\x20access,\x20and\x20project\x20team\x20owners\x20g\ - et\n\x20`OWNER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\x02\x01\x12\ - \x04\x85\x04\x04(\n\x0f\n\x07\x04\x08\x04\x02\x02\x02\x02\x12\x04\x85\ - \x04+,\na\n\x06\x04\x08\x04\x02\x02\x03\x12\x04\x89\x04\x04%\x1aQ\x20Obj\ - ect\x20owner\x20gets\x20`OWNER`\x20access,\x20and\x20project\x20team\x20\ - owners\x20get\n\x20`READER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\ - \x03\x01\x12\x04\x89\x04\x04\x20\n\x0f\n\x07\x04\x08\x04\x02\x02\x03\x02\ - \x12\x04\x89\x04#$\n3\n\x06\x04\x08\x04\x02\x02\x04\x12\x04\x8c\x04\x04\ - \x1b\x1a#\x20Object\x20owner\x20gets\x20`OWNER`\x20access.\n\n\x0f\n\x07\ - \x04\x08\x04\x02\x02\x04\x01\x12\x04\x8c\x04\x04\x16\n\x0f\n\x07\x04\x08\ - \x04\x02\x02\x04\x02\x12\x04\x8c\x04\x19\x1a\nr\n\x06\x04\x08\x04\x02\ - \x02\x05\x12\x04\x90\x04\x04#\x1ab\x20Object\x20owner\x20gets\x20`OWNER`\ - \x20access,\x20and\x20project\x20team\x20members\x20get\n\x20access\x20a\ - ccording\x20to\x20their\x20roles.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\x05\ - \x01\x12\x04\x90\x04\x04\x1e\n\x0f\n\x07\x04\x08\x04\x02\x02\x05\x02\x12\ - \x04\x90\x04!\"\nX\n\x06\x04\x08\x04\x02\x02\x06\x12\x04\x94\x04\x04\x1f\ - \x1aH\x20Object\x20owner\x20gets\x20`OWNER`\x20access,\x20and\x20`allUse\ - rs`\n\x20get\x20`READER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\ - \x06\x01\x12\x04\x94\x04\x04\x1a\n\x0f\n\x07\x04\x08\x04\x02\x02\x06\x02\ - \x12\x04\x94\x04\x1d\x1e\nA\n\x02\x04\t\x12\x06\x9b\x04\0\xa4\x04\x01\ - \x1a3\x20Specifies\x20a\x20requested\x20range\x20of\x20bytes\x20to\x20do\ - wnload.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x9b\x04\x08\x14\n7\n\x04\x04\t\ - \x02\0\x12\x04\x9d\x04\x02\x12\x1a)\x20The\x20starting\x20offset\x20of\ - \x20the\x20object\x20data.\n\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\x9d\x04\ - \x02\x9b\x04\x16\n\r\n\x05\x04\t\x02\0\x05\x12\x04\x9d\x04\x02\x07\n\r\n\ - \x05\x04\t\x02\0\x01\x12\x04\x9d\x04\x08\r\n\r\n\x05\x04\t\x02\0\x03\x12\ - \x04\x9d\x04\x10\x11\n5\n\x04\x04\t\x02\x01\x12\x04\xa0\x04\x02\x10\x1a'\ - \x20The\x20ending\x20offset\x20of\x20the\x20object\x20data.\n\n\x0f\n\ - \x05\x04\t\x02\x01\x04\x12\x06\xa0\x04\x02\x9d\x04\x12\n\r\n\x05\x04\t\ - \x02\x01\x05\x12\x04\xa0\x04\x02\x07\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\ - \xa0\x04\x08\x0b\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xa0\x04\x0e\x0f\n7\ - \n\x04\x04\t\x02\x02\x12\x04\xa3\x04\x02\x1c\x1a)\x20The\x20complete\x20\ - length\x20of\x20the\x20object\x20data.\n\n\x0f\n\x05\x04\t\x02\x02\x04\ - \x12\x06\xa3\x04\x02\xa0\x04\x10\n\r\n\x05\x04\t\x02\x02\x05\x12\x04\xa3\ - \x04\x02\x07\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xa3\x04\x08\x17\n\r\n\ - \x05\x04\t\x02\x02\x03\x12\x04\xa3\x04\x1a\x1b\nX\n\x02\x04\n\x12\x06\ - \xa7\x04\0\xbf\x04\x01\x1aJ\x20Hmac\x20Key\x20Metadata,\x20which\x20incl\ - udes\x20all\x20information\x20other\x20than\x20the\x20secret.\n\n\x0b\n\ - \x03\x04\n\x01\x12\x04\xa7\x04\x08\x17\nQ\n\x04\x04\n\x02\0\x12\x04\xa9\ - \x04\x02\x10\x1aC\x20Resource\x20name\x20ID\x20of\x20the\x20key\x20in\ - \x20the\x20format\x20/.\n\n\x0f\n\x05\x04\n\x02\0\ - \x04\x12\x06\xa9\x04\x02\xa7\x04\x19\n\r\n\x05\x04\n\x02\0\x05\x12\x04\ - \xa9\x04\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xa9\x04\t\x0b\n\r\n\ - \x05\x04\n\x02\0\x03\x12\x04\xa9\x04\x0e\x0f\n,\n\x04\x04\n\x02\x01\x12\ - \x04\xac\x04\x02\x17\x1a\x1e\x20Globally\x20unique\x20id\x20for\x20keys.\ - \n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\xac\x04\x02\xa9\x04\x10\n\r\n\ - \x05\x04\n\x02\x01\x05\x12\x04\xac\x04\x02\x08\n\r\n\x05\x04\n\x02\x01\ - \x01\x12\x04\xac\x04\t\x12\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xac\x04\ - \x15\x16\nA\n\x04\x04\n\x02\x02\x12\x04\xaf\x04\x02\x18\x1a3\x20The\x20p\ - roject\x20ID\x20that\x20the\x20hmac\x20key\x20is\x20contained\x20in.\n\n\ - \x0f\n\x05\x04\n\x02\x02\x04\x12\x06\xaf\x04\x02\xac\x04\x17\n\r\n\x05\ - \x04\n\x02\x02\x05\x12\x04\xaf\x04\x02\x08\n\r\n\x05\x04\n\x02\x02\x01\ - \x12\x04\xaf\x04\t\x13\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xaf\x04\x16\ - \x17\nF\n\x04\x04\n\x02\x03\x12\x04\xb2\x04\x02#\x1a8\x20Email\x20of\x20\ - the\x20service\x20account\x20the\x20key\x20authenticates\x20as.\n\n\x0f\ - \n\x05\x04\n\x02\x03\x04\x12\x06\xb2\x04\x02\xaf\x04\x18\n\r\n\x05\x04\n\ - \x02\x03\x05\x12\x04\xb2\x04\x02\x08\n\r\n\x05\x04\n\x02\x03\x01\x12\x04\ - \xb2\x04\t\x1e\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\xb2\x04!\"\nF\n\x04\ - \x04\n\x02\x04\x12\x04\xb5\x04\x02\x13\x1a8\x20State\x20of\x20the\x20key\ - .\x20One\x20of\x20ACTIVE,\x20INACTIVE,\x20or\x20DELETED.\n\n\x0f\n\x05\ - \x04\n\x02\x04\x04\x12\x06\xb5\x04\x02\xb2\x04#\n\r\n\x05\x04\n\x02\x04\ - \x05\x12\x04\xb5\x04\x02\x08\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\xb5\x04\ - \t\x0e\n\r\n\x05\x04\n\x02\x04\x03\x12\x04\xb5\x04\x11\x12\nE\n\x04\x04\ - \n\x02\x05\x12\x04\xb8\x04\x02-\x1a7\x20The\x20creation\x20time\x20of\ - \x20the\x20HMAC\x20key\x20in\x20RFC\x203339\x20format.\n\n\x0f\n\x05\x04\ - \n\x02\x05\x04\x12\x06\xb8\x04\x02\xb5\x04\x13\n\r\n\x05\x04\n\x02\x05\ - \x06\x12\x04\xb8\x04\x02\x1b\n\r\n\x05\x04\n\x02\x05\x01\x12\x04\xb8\x04\ - \x1c(\n\r\n\x05\x04\n\x02\x05\x03\x12\x04\xb8\x04+,\nW\n\x04\x04\n\x02\ - \x06\x12\x04\xbb\x04\x02(\x1aI\x20The\x20last\x20modification\x20time\ - \x20of\x20the\x20HMAC\x20key\x20metadata\x20in\x20RFC\x203339\x20format.\ - \n\n\x0f\n\x05\x04\n\x02\x06\x04\x12\x06\xbb\x04\x02\xb8\x04-\n\r\n\x05\ - \x04\n\x02\x06\x06\x12\x04\xbb\x04\x02\x1b\n\r\n\x05\x04\n\x02\x06\x01\ - \x12\x04\xbb\x04\x1c#\n\r\n\x05\x04\n\x02\x06\x03\x12\x04\xbb\x04&'\n1\n\ - \x04\x04\n\x02\x07\x12\x04\xbe\x04\x02\x12\x1a#\x20Tag\x20updated\x20wit\ - h\x20each\x20key\x20update.\n\n\x0f\n\x05\x04\n\x02\x07\x04\x12\x06\xbe\ - \x04\x02\xbb\x04(\n\r\n\x05\x04\n\x02\x07\x05\x12\x04\xbe\x04\x02\x08\n\ - \r\n\x05\x04\n\x02\x07\x01\x12\x04\xbe\x04\t\r\n\r\n\x05\x04\n\x02\x07\ - \x03\x12\x04\xbe\x04\x10\x11\nF\n\x02\x04\x0b\x12\x06\xc2\x04\0\xdc\x04\ - \x01\x1a8\x20A\x20subscription\x20to\x20receive\x20Google\x20PubSub\x20n\ - otifications.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xc2\x04\x08\x14\n\xa6\ - \x01\n\x04\x04\x0b\x02\0\x12\x04\xc5\x04\x02\x13\x1a\x97\x01\x20The\x20C\ - loud\x20PubSub\x20topic\x20to\x20which\x20this\x20subscription\x20publis\ - hes.\x20Formatted\x20as:\n\x20'//pubsub.googleapis.com/projects/{project\ - -identifier}/topics/{my-topic}'\n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\ - \xc5\x04\x02\xc2\x04\x16\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xc5\x04\x02\ - \x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xc5\x04\t\x0e\n\r\n\x05\x04\x0b\ - \x02\0\x03\x12\x04\xc5\x04\x11\x12\n\x80\x01\n\x04\x04\x0b\x02\x01\x12\ - \x04\xc9\x04\x02\"\x1ar\x20If\x20present,\x20only\x20send\x20notificatio\ - ns\x20about\x20listed\x20event\x20types.\x20If\x20empty,\n\x20sent\x20no\ - tifications\x20for\x20all\x20event\x20types.\n\n\r\n\x05\x04\x0b\x02\x01\ - \x04\x12\x04\xc9\x04\x02\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xc9\x04\ - \x0b\x11\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xc9\x04\x12\x1d\n\r\n\x05\ - \x04\x0b\x02\x01\x03\x12\x04\xc9\x04\x20!\n\x90\x01\n\x04\x04\x0b\x02\ - \x02\x12\x04\xcd\x04\x02,\x1a\x81\x01\x20An\x20optional\x20list\x20of\ - \x20additional\x20attributes\x20to\x20attach\x20to\x20each\x20Cloud\x20P\ - ubSub\n\x20message\x20published\x20for\x20this\x20notification\x20subscr\ - iption.\n\n\x0f\n\x05\x04\x0b\x02\x02\x04\x12\x06\xcd\x04\x02\xc9\x04\"\ - \n\r\n\x05\x04\x0b\x02\x02\x06\x12\x04\xcd\x04\x02\x15\n\r\n\x05\x04\x0b\ - \x02\x02\x01\x12\x04\xcd\x04\x16'\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\ - \xcd\x04*+\n{\n\x04\x04\x0b\x02\x03\x12\x04\xd1\x04\x02\x12\x1am\x20HTTP\ - \x201.1\x20[https://tools.ietf.org/html/rfc7232#section-2.3][Entity\x20t\ - ag]\n\x20for\x20this\x20subscription\x20notification.\n\n\x0f\n\x05\x04\ - \x0b\x02\x03\x04\x12\x06\xd1\x04\x02\xcd\x04,\n\r\n\x05\x04\x0b\x02\x03\ - \x05\x12\x04\xd1\x04\x02\x08\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\xd1\ - \x04\t\r\n\r\n\x05\x04\x0b\x02\x03\x03\x12\x04\xd1\x04\x10\x11\nt\n\x04\ - \x04\x0b\x02\x04\x12\x04\xd5\x04\x02\x20\x1af\x20If\x20present,\x20only\ - \x20apply\x20this\x20notification\x20configuration\x20to\x20object\x20na\ - mes\x20that\n\x20begin\x20with\x20this\x20prefix.\n\n\x0f\n\x05\x04\x0b\ - \x02\x04\x04\x12\x06\xd5\x04\x02\xd1\x04\x12\n\r\n\x05\x04\x0b\x02\x04\ - \x05\x12\x04\xd5\x04\x02\x08\n\r\n\x05\x04\x0b\x02\x04\x01\x12\x04\xd5\ - \x04\t\x1b\n\r\n\x05\x04\x0b\x02\x04\x03\x12\x04\xd5\x04\x1e\x1f\n3\n\ - \x04\x04\x0b\x02\x05\x12\x04\xd8\x04\x02\x1c\x1a%\x20The\x20desired\x20c\ - ontent\x20of\x20the\x20Payload.\n\n\x0f\n\x05\x04\x0b\x02\x05\x04\x12\ - \x06\xd8\x04\x02\xd5\x04\x20\n\r\n\x05\x04\x0b\x02\x05\x05\x12\x04\xd8\ - \x04\x02\x08\n\r\n\x05\x04\x0b\x02\x05\x01\x12\x04\xd8\x04\t\x17\n\r\n\ - \x05\x04\x0b\x02\x05\x03\x12\x04\xd8\x04\x1a\x1b\n+\n\x04\x04\x0b\x02\ - \x06\x12\x04\xdb\x04\x02\x10\x1a\x1d\x20The\x20ID\x20of\x20the\x20notifi\ - cation.\n\n\x0f\n\x05\x04\x0b\x02\x06\x04\x12\x06\xdb\x04\x02\xd8\x04\ - \x1c\n\r\n\x05\x04\x0b\x02\x06\x05\x12\x04\xdb\x04\x02\x08\n\r\n\x05\x04\ - \x0b\x02\x06\x01\x12\x04\xdb\x04\t\x0b\n\r\n\x05\x04\x0b\x02\x06\x03\x12\ - \x04\xdb\x04\x0e\x0f\nG\n\x02\x04\x0c\x12\x06\xdf\x04\0\xe2\x04\x01\x1a9\ - \x20The\x20result\x20of\x20a\x20call\x20to\x20Notifications.ListNotifica\ - tions\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xdf\x04\x08!\n\"\n\x04\x04\x0c\ - \x02\0\x12\x04\xe1\x04\x02\"\x1a\x14\x20The\x20list\x20of\x20items.\n\n\ - \r\n\x05\x04\x0c\x02\0\x04\x12\x04\xe1\x04\x02\n\n\r\n\x05\x04\x0c\x02\0\ - \x06\x12\x04\xe1\x04\x0b\x17\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xe1\x04\ - \x18\x1d\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xe1\x04\x20!\n\x1a\n\x02\ - \x04\r\x12\x06\xe5\x04\0\x88\x06\x01\x1a\x0c\x20An\x20object.\n\n\x0b\n\ - \x03\x04\r\x01\x12\x04\xe5\x04\x08\x0e\n\\\n\x04\x04\r\x03\0\x12\x06\xe7\ - \x04\x02\xed\x04\x03\x1aL\x20Describes\x20the\x20customer-specified\x20m\ - echanism\x20used\x20to\x20store\x20the\x20data\x20at\x20rest.\n\n\r\n\ - \x05\x04\r\x03\0\x01\x12\x04\xe7\x04\n\x1c\n+\n\x06\x04\r\x03\0\x02\0\ - \x12\x04\xe9\x04\x04$\x1a\x1b\x20The\x20encryption\x20algorithm.\n\n\x11\ - \n\x07\x04\r\x03\0\x02\0\x04\x12\x06\xe9\x04\x04\xe7\x04\x1e\n\x0f\n\x07\ - \x04\r\x03\0\x02\0\x05\x12\x04\xe9\x04\x04\n\n\x0f\n\x07\x04\r\x03\0\x02\ - \0\x01\x12\x04\xe9\x04\x0b\x1f\n\x0f\n\x07\x04\r\x03\0\x02\0\x03\x12\x04\ - \xe9\x04\"#\n:\n\x06\x04\r\x03\0\x02\x01\x12\x04\xec\x04\x04\x1a\x1a*\ - \x20SHA256\x20hash\x20value\x20of\x20the\x20encryption\x20key.\n\n\x11\n\ - \x07\x04\r\x03\0\x02\x01\x04\x12\x06\xec\x04\x04\xe9\x04$\n\x0f\n\x07\ - \x04\r\x03\0\x02\x01\x05\x12\x04\xec\x04\x04\n\n\x0f\n\x07\x04\r\x03\0\ - \x02\x01\x01\x12\x04\xec\x04\x0b\x15\n\x0f\n\x07\x04\r\x03\0\x02\x01\x03\ - \x12\x04\xec\x04\x18\x19\n\x88\x01\n\x04\x04\r\x02\0\x12\x04\xf1\x04\x02\ - \x1e\x1az\x20Content-Encoding\x20of\x20the\x20object\x20data,\x20matchin\ - g\n\x20[https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC\x207231\ - \x20\xc2\xa73.1.2.2]\n\n\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xf1\x04\x02\ - \xed\x04\x03\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xf1\x04\x02\x08\n\r\n\x05\ - \x04\r\x02\0\x01\x12\x04\xf1\x04\t\x19\n\r\n\x05\x04\r\x02\0\x03\x12\x04\ - \xf1\x04\x1c\x1d\nr\n\x04\x04\r\x02\x01\x12\x04\xf5\x04\x02!\x1ad\x20Con\ - tent-Disposition\x20of\x20the\x20object\x20data,\x20matching\n\x20[https\ - ://tools.ietf.org/html/rfc6266][RFC\x206266].\n\n\x0f\n\x05\x04\r\x02\ - \x01\x04\x12\x06\xf5\x04\x02\xf1\x04\x1e\n\r\n\x05\x04\r\x02\x01\x05\x12\ - \x04\xf5\x04\x02\x08\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xf5\x04\t\x1c\n\ - \r\n\x05\x04\r\x02\x01\x03\x12\x04\xf5\x04\x1f\x20\n\xfa\x01\n\x04\x04\r\ - \x02\x02\x12\x04\xfb\x04\x02\x1b\x1a\xeb\x01\x20Cache-Control\x20directi\ - ve\x20for\x20the\x20object\x20data,\x20matching\n\x20[https://tools.ietf\ - .org/html/rfc7234#section-5.2\"][RFC\x207234\x20\xc2\xa75.2].\n\x20If\ - \x20omitted,\x20and\x20the\x20object\x20is\x20accessible\x20to\x20all\ - \x20anonymous\x20users,\x20the\n\x20default\x20will\x20be\x20`public,\ - \x20max-age=3600`.\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xfb\x04\x02\ - \xf5\x04!\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xfb\x04\x02\x08\n\r\n\x05\ - \x04\r\x02\x02\x01\x12\x04\xfb\x04\t\x16\n\r\n\x05\x04\r\x02\x02\x03\x12\ - \x04\xfb\x04\x19\x1a\n.\n\x04\x04\r\x02\x03\x12\x04\xfe\x04\x02'\x1a\x20\ - \x20Access\x20controls\x20on\x20the\x20object.\n\n\r\n\x05\x04\r\x02\x03\ - \x04\x12\x04\xfe\x04\x02\n\n\r\n\x05\x04\r\x02\x03\x06\x12\x04\xfe\x04\ - \x0b\x1e\n\r\n\x05\x04\r\x02\x03\x01\x12\x04\xfe\x04\x1f\"\n\r\n\x05\x04\ - \r\x02\x03\x03\x12\x04\xfe\x04%&\n\x89\x01\n\x04\x04\r\x02\x04\x12\x04\ - \x82\x05\x02\x1e\x1a{\x20Content-Language\x20of\x20the\x20object\x20data\ - ,\x20matching\n\x20[https://tools.ietf.org/html/rfc7231#section-3.1.3.2]\ - [RFC\x207231\x20\xc2\xa73.1.3.2].\n\n\x0f\n\x05\x04\r\x02\x04\x04\x12\ - \x06\x82\x05\x02\xfe\x04'\n\r\n\x05\x04\r\x02\x04\x05\x12\x04\x82\x05\ - \x02\x08\n\r\n\x05\x04\r\x02\x04\x01\x12\x04\x82\x05\t\x19\n\r\n\x05\x04\ - \r\x02\x04\x03\x12\x04\x82\x05\x1c\x1d\n\xb5\x02\n\x04\x04\r\x02\x05\x12\ - \x04\x89\x05\x02\x1b\x1a\xa6\x02\x20The\x20version\x20of\x20the\x20metad\ - ata\x20for\x20this\x20object\x20at\x20this\x20generation.\x20Used\x20for\ - \n\x20preconditions\x20and\x20for\x20detecting\x20changes\x20in\x20metad\ - ata.\x20A\x20metageneration\n\x20number\x20is\x20only\x20meaningful\x20i\ - n\x20the\x20context\x20of\x20a\x20particular\x20generation\x20of\x20a\n\ - \x20particular\x20object.\n\x20Attempting\x20to\x20set\x20this\x20field\ - \x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x05\x04\ - \x12\x06\x89\x05\x02\x82\x05\x1e\n\r\n\x05\x04\r\x02\x05\x05\x12\x04\x89\ - \x05\x02\x07\n\r\n\x05\x04\r\x02\x05\x01\x12\x04\x89\x05\x08\x16\n\r\n\ - \x05\x04\r\x02\x05\x03\x12\x04\x89\x05\x19\x1a\n\xb6\x01\n\x04\x04\r\x02\ - \x06\x12\x04\x8e\x05\x02-\x1a\xa7\x01\x20The\x20deletion\x20time\x20of\ - \x20the\x20object.\x20Will\x20be\x20returned\x20if\x20and\x20only\x20if\ - \x20this\n\x20version\x20of\x20the\x20object\x20has\x20been\x20deleted.\ - \n\x20Attempting\x20to\x20set\x20this\x20field\x20will\x20result\x20in\ - \x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x06\x04\x12\x06\x8e\x05\x02\x89\ - \x05\x1b\n\r\n\x05\x04\r\x02\x06\x06\x12\x04\x8e\x05\x02\x1b\n\r\n\x05\ - \x04\r\x02\x06\x01\x12\x04\x8e\x05\x1c(\n\r\n\x05\x04\r\x02\x06\x03\x12\ - \x04\x8e\x05+,\n\xe3\x01\n\x04\x04\r\x02\x07\x12\x04\x94\x05\x02\x1a\x1a\ - \xd4\x01\x20Content-Type\x20of\x20the\x20object\x20data,\x20matching\n\ - \x20[https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC\x207231\ - \x20\xc2\xa73.1.1.5].\n\x20If\x20an\x20object\x20is\x20stored\x20without\ - \x20a\x20Content-Type,\x20it\x20is\x20served\x20as\n\x20`application/oct\ - et-stream`.\n\n\x0f\n\x05\x04\r\x02\x07\x04\x12\x06\x94\x05\x02\x8e\x05-\ - \n\r\n\x05\x04\r\x02\x07\x05\x12\x04\x94\x05\x02\x08\n\r\n\x05\x04\r\x02\ - \x07\x01\x12\x04\x94\x05\t\x15\n\r\n\x05\x04\r\x02\x07\x03\x12\x04\x94\ - \x05\x18\x19\n\xc4\x01\n\x04\x04\r\x02\x08\x12\x04\x99\x05\x02\x11\x1a\ - \xb5\x01\x20Content-Length\x20of\x20the\x20object\x20data\x20in\x20bytes\ - ,\x20matching\n\x20[https://tools.ietf.org/html/rfc7230#section-3.3.2][R\ - FC\x207230\x20\xc2\xa73.3.2].\n\x20Attempting\x20to\x20set\x20this\x20fi\ - eld\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x08\ - \x04\x12\x06\x99\x05\x02\x94\x05\x1a\n\r\n\x05\x04\r\x02\x08\x05\x12\x04\ - \x99\x05\x02\x07\n\r\n\x05\x04\r\x02\x08\x01\x12\x04\x99\x05\x08\x0c\n\r\ - \n\x05\x04\r\x02\x08\x03\x12\x04\x99\x05\x0f\x10\ng\n\x04\x04\r\x02\t\ - \x12\x04\x9d\x05\x02.\x1aY\x20The\x20creation\x20time\x20of\x20the\x20ob\ - ject.\n\x20Attempting\x20to\x20set\x20this\x20field\x20will\x20result\ - \x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\t\x04\x12\x06\x9d\x05\x02\ - \x99\x05\x11\n\r\n\x05\x04\r\x02\t\x06\x12\x04\x9d\x05\x02\x1b\n\r\n\x05\ - \x04\r\x02\t\x01\x12\x04\x9d\x05\x1c(\n\r\n\x05\x04\r\x02\t\x03\x12\x04\ - \x9d\x05+-\n\xb7\x03\n\x04\x04\r\x02\n\x12\x04\xa6\x05\x02*\x1a\xa8\x03\ - \x20CRC32c\x20checksum.\x20For\x20more\x20information\x20about\x20using\ - \x20the\x20CRC32c\n\x20checksum,\x20see\n\x20[https://cloud.google.com/s\ - torage/docs/hashes-etags#_JSONAPI][Hashes\x20and\n\x20ETags:\x20Best\x20\ - Practices].\x20This\x20is\x20a\x20server\x20determined\x20value\x20and\ - \x20should\x20not\x20be\n\x20supplied\x20by\x20the\x20user\x20when\x20se\ - nding\x20an\x20Object.\x20The\x20server\x20will\x20ignore\x20any\n\x20va\ - lue\x20provided.\x20Users\x20should\x20instead\x20use\x20the\x20object_c\ - hecksums\x20field\x20on\x20the\n\x20InsertObjectRequest\x20when\x20uploa\ - ding\x20an\x20object.\n\n\x0f\n\x05\x04\r\x02\n\x04\x12\x06\xa6\x05\x02\ - \x9d\x05.\n\r\n\x05\x04\r\x02\n\x06\x12\x04\xa6\x05\x02\x1d\n\r\n\x05\ - \x04\r\x02\n\x01\x12\x04\xa6\x05\x1e$\n\r\n\x05\x04\r\x02\n\x03\x12\x04\ - \xa6\x05')\n\xb4\x01\n\x04\x04\r\x02\x0b\x12\x04\xab\x05\x02\x1d\x1a\xa5\ - \x01\x20Number\x20of\x20underlying\x20components\x20that\x20make\x20up\ - \x20this\x20object.\x20Components\x20are\n\x20accumulated\x20by\x20compo\ - se\x20operations.\n\x20Attempting\x20to\x20set\x20this\x20field\x20will\ - \x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x0b\x04\x12\x06\ - \xab\x05\x02\xa6\x05*\n\r\n\x05\x04\r\x02\x0b\x05\x12\x04\xab\x05\x02\ - \x07\n\r\n\x05\x04\r\x02\x0b\x01\x12\x04\xab\x05\x08\x17\n\r\n\x05\x04\r\ - \x02\x0b\x03\x12\x04\xab\x05\x1a\x1c\n\x91\x04\n\x04\x04\r\x02\x0c\x12\ - \x04\xb5\x05\x02\x17\x1a\x82\x04\x20MD5\x20hash\x20of\x20the\x20data;\ - \x20encoded\x20using\x20base64\x20as\x20per\n\x20[https://tools.ietf.org\ - /html/rfc4648#section-4][RFC\x204648\x20\xc2\xa74].\x20For\x20more\n\x20\ - information\x20about\x20using\x20the\x20MD5\x20hash,\x20see\n\x20[https:\ - //cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes\x20and\n\ - \x20ETags:\x20Best\x20Practices].\x20This\x20is\x20a\x20server\x20determ\ - ined\x20value\x20and\x20should\x20not\x20be\n\x20supplied\x20by\x20the\ - \x20user\x20when\x20sending\x20an\x20Object.\x20The\x20server\x20will\ - \x20ignore\x20any\n\x20value\x20provided.\x20Users\x20should\x20instead\ - \x20use\x20the\x20object_checksums\x20field\x20on\x20the\n\x20InsertObje\ - ctRequest\x20when\x20uploading\x20an\x20object.\n\n\x0f\n\x05\x04\r\x02\ - \x0c\x04\x12\x06\xb5\x05\x02\xab\x05\x1d\n\r\n\x05\x04\r\x02\x0c\x05\x12\ - \x04\xb5\x05\x02\x08\n\r\n\x05\x04\r\x02\x0c\x01\x12\x04\xb5\x05\t\x11\n\ - \r\n\x05\x04\r\x02\x0c\x03\x12\x04\xb5\x05\x14\x16\n\xb3\x01\n\x04\x04\r\ - \x02\r\x12\x04\xba\x05\x02\x13\x1a\xa4\x01\x20HTTP\x201.1\x20Entity\x20t\ - ag\x20for\x20the\x20object.\x20See\n\x20[https://tools.ietf.org/html/rfc\ - 7232#section-2.3][RFC\x207232\x20\xc2\xa72.3].\n\x20Attempting\x20to\x20\ - set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\ - \x05\x04\r\x02\r\x04\x12\x06\xba\x05\x02\xb5\x05\x17\n\r\n\x05\x04\r\x02\ - \r\x05\x12\x04\xba\x05\x02\x08\n\r\n\x05\x04\r\x02\r\x01\x12\x04\xba\x05\ - \t\r\n\r\n\x05\x04\r\x02\r\x03\x12\x04\xba\x05\x10\x12\nt\n\x04\x04\r\ - \x02\x0e\x12\x04\xbe\x05\x02)\x1af\x20The\x20modification\x20time\x20of\ - \x20the\x20object\x20metadata.\n\x20Attempting\x20to\x20set\x20this\x20f\ - ield\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x0e\ - \x04\x12\x06\xbe\x05\x02\xba\x05\x13\n\r\n\x05\x04\r\x02\x0e\x06\x12\x04\ - \xbe\x05\x02\x1b\n\r\n\x05\x04\r\x02\x0e\x01\x12\x04\xbe\x05\x1c#\n\r\n\ - \x05\x04\r\x02\x0e\x03\x12\x04\xbe\x05&(\n,\n\x04\x04\r\x02\x0f\x12\x04\ - \xc1\x05\x02\x1c\x1a\x1e\x20Storage\x20class\x20of\x20the\x20object.\n\n\ - \x0f\n\x05\x04\r\x02\x0f\x04\x12\x06\xc1\x05\x02\xbe\x05)\n\r\n\x05\x04\ - \r\x02\x0f\x05\x12\x04\xc1\x05\x02\x08\n\r\n\x05\x04\r\x02\x0f\x01\x12\ - \x04\xc1\x05\t\x16\n\r\n\x05\x04\r\x02\x0f\x03\x12\x04\xc1\x05\x19\x1b\n\ - e\n\x04\x04\r\x02\x10\x12\x04\xc5\x05\x02\x1b\x1aW\x20Cloud\x20KMS\x20Ke\ - y\x20used\x20to\x20encrypt\x20this\x20object,\x20if\x20the\x20object\x20\ - is\x20encrypted\x20by\n\x20such\x20a\x20key.\n\n\x0f\n\x05\x04\r\x02\x10\ - \x04\x12\x06\xc5\x05\x02\xc1\x05\x1c\n\r\n\x05\x04\r\x02\x10\x05\x12\x04\ - \xc5\x05\x02\x08\n\r\n\x05\x04\r\x02\x10\x01\x12\x04\xc5\x05\t\x15\n\r\n\ - \x05\x04\r\x02\x10\x03\x12\x04\xc5\x05\x18\x1a\n\xcd\x01\n\x04\x04\r\x02\ - \x11\x12\x04\xca\x05\x02<\x1a\xbe\x01\x20The\x20time\x20at\x20which\x20t\ - he\x20object's\x20storage\x20class\x20was\x20last\x20changed.\x20When\ - \x20the\n\x20object\x20is\x20initially\x20created,\x20it\x20will\x20be\ - \x20set\x20to\x20time_created.\n\x20Attempting\x20to\x20set\x20this\x20f\ - ield\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x11\ - \x04\x12\x06\xca\x05\x02\xc5\x05\x1b\n\r\n\x05\x04\r\x02\x11\x06\x12\x04\ - \xca\x05\x02\x1b\n\r\n\x05\x04\r\x02\x11\x01\x12\x04\xca\x05\x1c6\n\r\n\ - \x05\x04\r\x02\x11\x03\x12\x04\xca\x059;\n\x85\x03\n\x04\x04\r\x02\x12\ - \x12\x04\xd1\x05\x02\x1b\x1a\xf6\x02\x20Whether\x20an\x20object\x20is\ - \x20under\x20temporary\x20hold.\x20While\x20this\x20flag\x20is\x20set\ - \x20to\x20true,\n\x20the\x20object\x20is\x20protected\x20against\x20dele\ - tion\x20and\x20overwrites.\x20\x20A\x20common\x20use\x20case\n\x20of\x20\ - this\x20flag\x20is\x20regulatory\x20investigations\x20where\x20objects\ - \x20need\x20to\x20be\x20retained\n\x20while\x20the\x20investigation\x20i\ - s\x20ongoing.\x20Note\x20that\x20unlike\x20event-based\x20hold,\n\x20tem\ - porary\x20hold\x20does\x20not\x20impact\x20retention\x20expiration\x20ti\ - me\x20of\x20an\x20object.\n\n\x0f\n\x05\x04\r\x02\x12\x04\x12\x06\xd1\ - \x05\x02\xca\x05<\n\r\n\x05\x04\r\x02\x12\x05\x12\x04\xd1\x05\x02\x06\n\ - \r\n\x05\x04\r\x02\x12\x01\x12\x04\xd1\x05\x07\x15\n\r\n\x05\x04\r\x02\ - \x12\x03\x12\x04\xd1\x05\x18\x1a\n\xf8\x03\n\x04\x04\r\x02\x13\x12\x04\ - \xdb\x05\x02;\x1a\xe9\x03\x20A\x20server-determined\x20value\x20that\x20\ - specifies\x20the\x20earliest\x20time\x20that\x20the\n\x20object's\x20ret\ - ention\x20period\x20expires.\x20This\x20value\x20is\x20in\n\x20[https://\ - tools.ietf.org/html/rfc3339][RFC\x203339]\x20format.\n\x20Note\x201:\x20\ - This\x20field\x20is\x20not\x20provided\x20for\x20objects\x20with\x20an\ - \x20active\x20event-based\n\x20hold,\x20since\x20retention\x20expiration\ - \x20is\x20unknown\x20until\x20the\x20hold\x20is\x20removed.\n\x20Note\ - \x202:\x20This\x20value\x20can\x20be\x20provided\x20even\x20when\x20temp\ - orary\x20hold\x20is\x20set\x20(so\x20that\n\x20the\x20user\x20can\x20rea\ - son\x20about\x20policy\x20without\x20having\x20to\x20first\x20unset\x20t\ - he\n\x20temporary\x20hold).\n\n\x0f\n\x05\x04\r\x02\x13\x04\x12\x06\xdb\ - \x05\x02\xd1\x05\x1b\n\r\n\x05\x04\r\x02\x13\x06\x12\x04\xdb\x05\x02\x1b\ - \n\r\n\x05\x04\r\x02\x13\x01\x12\x04\xdb\x05\x1c5\n\r\n\x05\x04\r\x02\ - \x13\x03\x12\x04\xdb\x058:\n;\n\x04\x04\r\x02\x14\x12\x04\xde\x05\x02$\ - \x1a-\x20User-provided\x20metadata,\x20in\x20key/value\x20pairs.\n\n\x0f\ - \n\x05\x04\r\x02\x14\x04\x12\x06\xde\x05\x02\xdb\x05;\n\r\n\x05\x04\r\ - \x02\x14\x06\x12\x04\xde\x05\x02\x15\n\r\n\x05\x04\r\x02\x14\x01\x12\x04\ - \xde\x05\x16\x1e\n\r\n\x05\x04\r\x02\x14\x03\x12\x04\xde\x05!#\n\xb5\x06\ - \n\x04\x04\r\x02\x15\x12\x04\xeb\x05\x022\x1a\xa6\x06\x20Whether\x20an\ - \x20object\x20is\x20under\x20event-based\x20hold.\x20Event-based\x20hold\ - \x20is\x20a\x20way\x20to\n\x20retain\x20objects\x20until\x20an\x20event\ - \x20occurs,\x20which\x20is\x20signified\x20by\x20the\n\x20hold's\x20rele\ - ase\x20(i.e.\x20this\x20value\x20is\x20set\x20to\x20false).\x20After\x20\ - being\x20released\x20(set\n\x20to\x20false),\x20such\x20objects\x20will\ - \x20be\x20subject\x20to\x20bucket-level\x20retention\x20(if\x20any).\n\ - \x20One\x20sample\x20use\x20case\x20of\x20this\x20flag\x20is\x20for\x20b\ - anks\x20to\x20hold\x20loan\x20documents\x20for\x20at\n\x20least\x203\x20\ - years\x20after\x20loan\x20is\x20paid\x20in\x20full.\x20Here,\x20bucket-l\ - evel\x20retention\x20is\x203\n\x20years\x20and\x20the\x20event\x20is\x20\ - the\x20loan\x20being\x20paid\x20in\x20full.\x20In\x20this\x20example,\ - \x20these\n\x20objects\x20will\x20be\x20held\x20intact\x20for\x20any\x20\ - number\x20of\x20years\x20until\x20the\x20event\x20has\n\x20occurred\x20(\ - event-based\x20hold\x20on\x20the\x20object\x20is\x20released)\x20and\x20\ - then\x203\x20more\x20years\n\x20after\x20that.\x20That\x20means\x20reten\ - tion\x20duration\x20of\x20the\x20objects\x20begins\x20from\x20the\n\x20m\ - oment\x20event-based\x20hold\x20transitioned\x20from\x20true\x20to\x20fa\ - lse.\n\n\x0f\n\x05\x04\r\x02\x15\x04\x12\x06\xeb\x05\x02\xde\x05$\n\r\n\ - \x05\x04\r\x02\x15\x06\x12\x04\xeb\x05\x02\x1b\n\r\n\x05\x04\r\x02\x15\ - \x01\x12\x04\xeb\x05\x1c,\n\r\n\x05\x04\r\x02\x15\x03\x12\x04\xeb\x05/1\ - \n~\n\x04\x04\r\x02\x16\x12\x04\xf0\x05\x02\x13\x1ap\x20The\x20name\x20o\ - f\x20the\x20object.\n\x20Attempting\x20to\x20update\x20this\x20field\x20\ - after\x20the\x20object\x20is\x20created\x20will\x20result\x20in\n\x20an\ - \x20error.\n\n\x0f\n\x05\x04\r\x02\x16\x04\x12\x06\xf0\x05\x02\xeb\x052\ - \n\r\n\x05\x04\r\x02\x16\x05\x12\x04\xf0\x05\x02\x08\n\r\n\x05\x04\r\x02\ - \x16\x01\x12\x04\xf0\x05\t\r\n\r\n\x05\x04\r\x02\x16\x03\x12\x04\xf0\x05\ - \x10\x12\n\xbd\x01\n\x04\x04\r\x02\x17\x12\x04\xf6\x05\x02\x11\x1a\xae\ - \x01\x20The\x20ID\x20of\x20the\x20object,\x20including\x20the\x20bucket\ - \x20name,\x20object\x20name,\x20and\n\x20generation\x20number.\n\x20Atte\ - mpting\x20to\x20update\x20this\x20field\x20after\x20the\x20object\x20is\ - \x20created\x20will\x20result\x20in\n\x20an\x20error.\n\n\x0f\n\x05\x04\ - \r\x02\x17\x04\x12\x06\xf6\x05\x02\xf0\x05\x13\n\r\n\x05\x04\r\x02\x17\ - \x05\x12\x04\xf6\x05\x02\x08\n\r\n\x05\x04\r\x02\x17\x01\x12\x04\xf6\x05\ - \t\x0b\n\r\n\x05\x04\r\x02\x17\x03\x12\x04\xf6\x05\x0e\x10\n\x96\x01\n\ - \x04\x04\r\x02\x18\x12\x04\xfb\x05\x02\x15\x1a\x87\x01\x20The\x20name\ - \x20of\x20the\x20bucket\x20containing\x20this\x20object.\n\x20Attempting\ - \x20to\x20update\x20this\x20field\x20after\x20the\x20object\x20is\x20cre\ - ated\x20will\x20result\x20in\n\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\ - \x18\x04\x12\x06\xfb\x05\x02\xf6\x05\x11\n\r\n\x05\x04\r\x02\x18\x05\x12\ - \x04\xfb\x05\x02\x08\n\r\n\x05\x04\r\x02\x18\x01\x12\x04\xfb\x05\t\x0f\n\ - \r\n\x05\x04\r\x02\x18\x03\x12\x04\xfb\x05\x12\x14\n\x89\x01\n\x04\x04\r\ - \x02\x19\x12\x04\xff\x05\x02\x18\x1a{\x20The\x20content\x20generation\ - \x20of\x20this\x20object.\x20Used\x20for\x20object\x20versioning.\n\x20A\ - ttempting\x20to\x20set\x20this\x20field\x20will\x20result\x20in\x20an\ - \x20error.\n\n\x0f\n\x05\x04\r\x02\x19\x04\x12\x06\xff\x05\x02\xfb\x05\ - \x15\n\r\n\x05\x04\r\x02\x19\x05\x12\x04\xff\x05\x02\x07\n\r\n\x05\x04\r\ - \x02\x19\x01\x12\x04\xff\x05\x08\x12\n\r\n\x05\x04\r\x02\x19\x03\x12\x04\ - \xff\x05\x15\x17\n\x90\x01\n\x04\x04\r\x02\x1a\x12\x04\x83\x06\x02\x13\ - \x1a\x81\x01\x20The\x20owner\x20of\x20the\x20object.\x20This\x20will\x20\ - always\x20be\x20the\x20uploader\x20of\x20the\x20object.\n\x20Attempting\ - \x20to\x20set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\ - \n\x0f\n\x05\x04\r\x02\x1a\x04\x12\x06\x83\x06\x02\xff\x05\x18\n\r\n\x05\ - \x04\r\x02\x1a\x06\x12\x04\x83\x06\x02\x07\n\r\n\x05\x04\r\x02\x1a\x01\ - \x12\x04\x83\x06\x08\r\n\r\n\x05\x04\r\x02\x1a\x03\x12\x04\x83\x06\x10\ - \x12\nh\n\x04\x04\r\x02\x1b\x12\x04\x87\x06\x02.\x1aZ\x20Metadata\x20of\ - \x20customer-supplied\x20encryption\x20key,\x20if\x20the\x20object\x20is\ - \x20encrypted\x20by\n\x20such\x20a\x20key.\n\n\x0f\n\x05\x04\r\x02\x1b\ - \x04\x12\x06\x87\x06\x02\x83\x06\x13\n\r\n\x05\x04\r\x02\x1b\x06\x12\x04\ - \x87\x06\x02\x14\n\r\n\x05\x04\r\x02\x1b\x01\x12\x04\x87\x06\x15(\n\r\n\ - \x05\x04\r\x02\x1b\x03\x12\x04\x87\x06+-\n(\n\x02\x04\x0e\x12\x06\x8b\ - \x06\0\xbb\x06\x01\x1a\x1a\x20An\x20access-control\x20entry.\n\n\x0b\n\ - \x03\x04\x0e\x01\x12\x04\x8b\x06\x08\x1b\n5\n\x04\x04\x0e\x02\0\x12\x04\ - \x8d\x06\x02\x12\x1a'\x20The\x20access\x20permission\x20for\x20the\x20en\ - tity.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\x8d\x06\x02\x8b\x06\x1d\n\ - \r\n\x05\x04\x0e\x02\0\x05\x12\x04\x8d\x06\x02\x08\n\r\n\x05\x04\x0e\x02\ - \0\x01\x12\x04\x8d\x06\t\r\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x8d\x06\ - \x10\x11\n\x89\x01\n\x04\x04\x0e\x02\x01\x12\x04\x91\x06\x02\x12\x1a{\ - \x20HTTP\x201.1\x20Entity\x20tag\x20for\x20the\x20access-control\x20entr\ - y.\n\x20See\x20[https://tools.ietf.org/html/rfc7232#section-2.3][RFC\x20\ - 7232\x20\xc2\xa72.3].\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\x12\x06\x91\x06\ - \x02\x8d\x06\x12\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\x91\x06\x02\x08\n\ - \r\n\x05\x04\x0e\x02\x01\x01\x12\x04\x91\x06\t\r\n\r\n\x05\x04\x0e\x02\ - \x01\x03\x12\x04\x91\x06\x10\x11\n3\n\x04\x04\x0e\x02\x02\x12\x04\x94\ - \x06\x02\x10\x1a%\x20The\x20ID\x20of\x20the\x20access-control\x20entry.\ - \n\n\x0f\n\x05\x04\x0e\x02\x02\x04\x12\x06\x94\x06\x02\x91\x06\x12\n\r\n\ - \x05\x04\x0e\x02\x02\x05\x12\x04\x94\x06\x02\x08\n\r\n\x05\x04\x0e\x02\ - \x02\x01\x12\x04\x94\x06\t\x0b\n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\x94\ - \x06\x0e\x0f\n'\n\x04\x04\x0e\x02\x03\x12\x04\x97\x06\x02\x14\x1a\x19\ - \x20The\x20name\x20of\x20the\x20bucket.\n\n\x0f\n\x05\x04\x0e\x02\x03\ - \x04\x12\x06\x97\x06\x02\x94\x06\x10\n\r\n\x05\x04\x0e\x02\x03\x05\x12\ - \x04\x97\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\x97\x06\t\x0f\ - \n\r\n\x05\x04\x0e\x02\x03\x03\x12\x04\x97\x06\x12\x13\n@\n\x04\x04\x0e\ - \x02\x04\x12\x04\x9a\x06\x02\x14\x1a2\x20The\x20name\x20of\x20the\x20obj\ - ect,\x20if\x20applied\x20to\x20an\x20object.\n\n\x0f\n\x05\x04\x0e\x02\ - \x04\x04\x12\x06\x9a\x06\x02\x97\x06\x14\n\r\n\x05\x04\x0e\x02\x04\x05\ - \x12\x04\x9a\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x04\x01\x12\x04\x9a\x06\t\ - \x0f\n\r\n\x05\x04\x0e\x02\x04\x03\x12\x04\x9a\x06\x12\x13\nN\n\x04\x04\ - \x0e\x02\x05\x12\x04\x9d\x06\x02\x17\x1a@\x20The\x20content\x20generatio\ - n\x20of\x20the\x20object,\x20if\x20applied\x20to\x20an\x20object.\n\n\ - \x0f\n\x05\x04\x0e\x02\x05\x04\x12\x06\x9d\x06\x02\x9a\x06\x14\n\r\n\x05\ - \x04\x0e\x02\x05\x05\x12\x04\x9d\x06\x02\x07\n\r\n\x05\x04\x0e\x02\x05\ - \x01\x12\x04\x9d\x06\x08\x12\n\r\n\x05\x04\x0e\x02\x05\x03\x12\x04\x9d\ - \x06\x15\x16\n\xfd\x03\n\x04\x04\x0e\x02\x06\x12\x04\xae\x06\x02\x14\x1a\ - \xee\x03\x20The\x20entity\x20holding\x20the\x20permission,\x20in\x20one\ - \x20of\x20the\x20following\x20forms:\n\x20*\x20`user-{userid}`\n\x20*\ - \x20`user-{email}`\n\x20*\x20`group-{groupid}`\n\x20*\x20`group-{email}`\ - \n\x20*\x20`domain-{domain}`\n\x20*\x20`project-{team-projectid}`\n\x20*\ - \x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\x20Examples:\n\x20*\ - \x20The\x20user\x20`liz@example.com`\x20would\x20be\x20`user-liz@example\ - .com`.\n\x20*\x20The\x20group\x20`example@googlegroups.com`\x20would\x20\ - be\n\x20`group-example@googlegroups.com`.\n\x20*\x20All\x20members\x20of\ - \x20the\x20Google\x20Apps\x20for\x20Business\x20domain\x20`example.com`\ - \x20would\x20be\n\x20`domain-example.com`.\n\n\x0f\n\x05\x04\x0e\x02\x06\ - \x04\x12\x06\xae\x06\x02\x9d\x06\x17\n\r\n\x05\x04\x0e\x02\x06\x05\x12\ - \x04\xae\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x06\x01\x12\x04\xae\x06\t\x0f\ - \n\r\n\x05\x04\x0e\x02\x06\x03\x12\x04\xae\x06\x12\x13\n.\n\x04\x04\x0e\ - \x02\x07\x12\x04\xb1\x06\x02\x17\x1a\x20\x20The\x20ID\x20for\x20the\x20e\ - ntity,\x20if\x20any.\n\n\x0f\n\x05\x04\x0e\x02\x07\x04\x12\x06\xb1\x06\ - \x02\xae\x06\x14\n\r\n\x05\x04\x0e\x02\x07\x05\x12\x04\xb1\x06\x02\x08\n\ - \r\n\x05\x04\x0e\x02\x07\x01\x12\x04\xb1\x06\t\x12\n\r\n\x05\x04\x0e\x02\ - \x07\x03\x12\x04\xb1\x06\x15\x16\nE\n\x04\x04\x0e\x02\x08\x12\x04\xb4\ - \x06\x02\x13\x1a7\x20The\x20email\x20address\x20associated\x20with\x20th\ - e\x20entity,\x20if\x20any.\n\n\x0f\n\x05\x04\x0e\x02\x08\x04\x12\x06\xb4\ - \x06\x02\xb1\x06\x17\n\r\n\x05\x04\x0e\x02\x08\x05\x12\x04\xb4\x06\x02\ - \x08\n\r\n\x05\x04\x0e\x02\x08\x01\x12\x04\xb4\x06\t\x0e\n\r\n\x05\x04\ - \x0e\x02\x08\x03\x12\x04\xb4\x06\x11\x12\n>\n\x04\x04\x0e\x02\t\x12\x04\ - \xb7\x06\x02\x15\x1a0\x20The\x20domain\x20associated\x20with\x20the\x20e\ - ntity,\x20if\x20any.\n\n\x0f\n\x05\x04\x0e\x02\t\x04\x12\x06\xb7\x06\x02\ - \xb4\x06\x13\n\r\n\x05\x04\x0e\x02\t\x05\x12\x04\xb7\x06\x02\x08\n\r\n\ - \x05\x04\x0e\x02\t\x01\x12\x04\xb7\x06\t\x0f\n\r\n\x05\x04\x0e\x02\t\x03\ - \x12\x04\xb7\x06\x12\x14\nD\n\x04\x04\x0e\x02\n\x12\x04\xba\x06\x02\x20\ - \x1a6\x20The\x20project\x20team\x20associated\x20with\x20the\x20entity,\ - \x20if\x20any.\n\n\x0f\n\x05\x04\x0e\x02\n\x04\x12\x06\xba\x06\x02\xb7\ - \x06\x15\n\r\n\x05\x04\x0e\x02\n\x06\x12\x04\xba\x06\x02\r\n\r\n\x05\x04\ - \x0e\x02\n\x01\x12\x04\xba\x06\x0e\x1a\n\r\n\x05\x04\x0e\x02\n\x03\x12\ - \x04\xba\x06\x1d\x1f\nV\n\x02\x04\x0f\x12\x06\xbe\x06\0\xc1\x06\x01\x1aH\ - \x20The\x20result\x20of\x20a\x20call\x20to\x20ObjectAccessControls.ListO\ - bjectAccessControls.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xbe\x06\x08(\n\"\ - \n\x04\x04\x0f\x02\0\x12\x04\xc0\x06\x02)\x1a\x14\x20The\x20list\x20of\ - \x20items.\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\xc0\x06\x02\n\n\r\n\x05\ - \x04\x0f\x02\0\x06\x12\x04\xc0\x06\x0b\x1e\n\r\n\x05\x04\x0f\x02\0\x01\ - \x12\x04\xc0\x06\x1f$\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xc0\x06'(\n;\n\ - \x02\x04\x10\x12\x06\xc4\x06\0\xcf\x06\x01\x1a-\x20The\x20result\x20of\ - \x20a\x20call\x20to\x20Objects.ListObjects\n\n\x0b\n\x03\x04\x10\x01\x12\ - \x04\xc4\x06\x08\x1b\nu\n\x04\x04\x10\x02\0\x12\x04\xc7\x06\x02\x1f\x1ag\ - \x20The\x20list\x20of\x20prefixes\x20of\x20objects\x20matching-but-not-l\ - isted\x20up\x20to\x20and\x20including\n\x20the\x20requested\x20delimiter\ - .\n\n\r\n\x05\x04\x10\x02\0\x04\x12\x04\xc7\x06\x02\n\n\r\n\x05\x04\x10\ - \x02\0\x05\x12\x04\xc7\x06\x0b\x11\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\ - \xc7\x06\x12\x1a\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xc7\x06\x1d\x1e\n\"\ - \n\x04\x04\x10\x02\x01\x12\x04\xca\x06\x02\x1c\x1a\x14\x20The\x20list\ - \x20of\x20items.\n\n\r\n\x05\x04\x10\x02\x01\x04\x12\x04\xca\x06\x02\n\n\ - \r\n\x05\x04\x10\x02\x01\x06\x12\x04\xca\x06\x0b\x11\n\r\n\x05\x04\x10\ - \x02\x01\x01\x12\x04\xca\x06\x12\x17\n\r\n\x05\x04\x10\x02\x01\x03\x12\ - \x04\xca\x06\x1a\x1b\n\xa0\x01\n\x04\x04\x10\x02\x02\x12\x04\xce\x06\x02\ - \x1d\x1a\x91\x01\x20The\x20continuation\x20token,\x20used\x20to\x20page\ - \x20through\x20large\x20result\x20sets.\x20Provide\n\x20this\x20value\ - \x20in\x20a\x20subsequent\x20request\x20to\x20return\x20the\x20next\x20p\ - age\x20of\x20results.\n\n\x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\xce\x06\ - \x02\xca\x06\x1c\n\r\n\x05\x04\x10\x02\x02\x05\x12\x04\xce\x06\x02\x08\n\ - \r\n\x05\x04\x10\x02\x02\x01\x12\x04\xce\x06\t\x18\n\r\n\x05\x04\x10\x02\ - \x02\x03\x12\x04\xce\x06\x1b\x1c\nN\n\x02\x04\x11\x12\x06\xd2\x06\0\xd8\ - \x06\x01\x1a@\x20Represents\x20the\x20Viewers,\x20Editors,\x20or\x20Owne\ - rs\x20of\x20a\x20given\x20project.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xd2\ - \x06\x08\x13\n#\n\x04\x04\x11\x02\0\x12\x04\xd4\x06\x02\x1c\x1a\x15\x20T\ - he\x20project\x20number.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\xd4\x06\ - \x02\xd2\x06\x15\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xd4\x06\x02\x08\n\r\ - \n\x05\x04\x11\x02\0\x01\x12\x04\xd4\x06\t\x17\n\r\n\x05\x04\x11\x02\0\ - \x03\x12\x04\xd4\x06\x1a\x1b\n\x19\n\x04\x04\x11\x02\x01\x12\x04\xd7\x06\ - \x02\x12\x1a\x0b\x20The\x20team.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\ - \x06\xd7\x06\x02\xd4\x06\x1c\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xd7\ - \x06\x02\x08\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xd7\x06\t\r\n\r\n\x05\ - \x04\x11\x02\x01\x03\x12\x04\xd7\x06\x10\x11\nF\n\x02\x04\x12\x12\x06\ - \xdb\x06\0\xde\x06\x01\x1a8\x20A\x20subscription\x20to\x20receive\x20Goo\ - gle\x20PubSub\x20notifications.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xdb\ - \x06\x08\x16\n+\n\x04\x04\x12\x02\0\x12\x04\xdd\x06\x02\x1b\x1a\x1d\x20T\ - he\x20ID\x20of\x20the\x20notification.\n\n\x0f\n\x05\x04\x12\x02\0\x04\ - \x12\x06\xdd\x06\x02\xdb\x06\x18\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xdd\ - \x06\x02\x08\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xdd\x06\t\x16\n\r\n\x05\ - \x04\x12\x02\0\x03\x12\x04\xdd\x06\x19\x1a\n1\n\x02\x04\x13\x12\x06\xe1\ - \x06\0\xe7\x06\x01\x1a#\x20The\x20owner\x20of\x20a\x20specific\x20resour\ - ce.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xe1\x06\x08\r\n8\n\x04\x04\x13\x02\ - \0\x12\x04\xe3\x06\x02\x14\x1a*\x20The\x20entity,\x20in\x20the\x20form\ - \x20`user-`*userId*.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xe3\x06\x02\ - \xe1\x06\x0f\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xe3\x06\x02\x08\n\r\n\ - \x05\x04\x13\x02\0\x01\x12\x04\xe3\x06\t\x0f\n\r\n\x05\x04\x13\x02\0\x03\ - \x12\x04\xe3\x06\x12\x13\n&\n\x04\x04\x13\x02\x01\x12\x04\xe6\x06\x02\ - \x17\x1a\x18\x20The\x20ID\x20for\x20the\x20entity.\n\n\x0f\n\x05\x04\x13\ - \x02\x01\x04\x12\x06\xe6\x06\x02\xe3\x06\x14\n\r\n\x05\x04\x13\x02\x01\ - \x05\x12\x04\xe6\x06\x02\x08\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xe6\ - \x06\t\x12\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xe6\x06\x15\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/calendar_period.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/calendar_period.rs deleted file mode 100644 index 3872f227c7..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/calendar_period.rs +++ /dev/null @@ -1,163 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/calendar_period.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CalendarPeriod { - CALENDAR_PERIOD_UNSPECIFIED = 0, - DAY = 1, - WEEK = 2, - FORTNIGHT = 3, - MONTH = 4, - QUARTER = 5, - HALF = 6, - YEAR = 7, -} - -impl ::protobuf::ProtobufEnum for CalendarPeriod { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CalendarPeriod::CALENDAR_PERIOD_UNSPECIFIED), - 1 => ::std::option::Option::Some(CalendarPeriod::DAY), - 2 => ::std::option::Option::Some(CalendarPeriod::WEEK), - 3 => ::std::option::Option::Some(CalendarPeriod::FORTNIGHT), - 4 => ::std::option::Option::Some(CalendarPeriod::MONTH), - 5 => ::std::option::Option::Some(CalendarPeriod::QUARTER), - 6 => ::std::option::Option::Some(CalendarPeriod::HALF), - 7 => ::std::option::Option::Some(CalendarPeriod::YEAR), - _ => ::std::option::Option::None - } - } - - 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 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()) - }) - } -} - -impl ::std::marker::Copy for CalendarPeriod { -} - -impl ::std::default::Default for CalendarPeriod { - fn default() -> Self { - CalendarPeriod::CALENDAR_PERIOD_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CalendarPeriod { - 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/type/calendar_period.proto\x12\x0bgoogle.type*\x7f\n\x0eCalend\ - arPeriod\x12\x1f\n\x1bCALENDAR_PERIOD_UNSPECIFIED\x10\0\x12\x07\n\x03DAY\ - \x10\x01\x12\x08\n\x04WEEK\x10\x02\x12\r\n\tFORTNIGHT\x10\x03\x12\t\n\ - \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\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\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\ - 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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/color.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/color.rs deleted file mode 100644 index 5e465149de..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/color.rs +++ /dev/null @@ -1,490 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/color.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Color { - // message fields - pub red: f32, - pub green: f32, - pub blue: f32, - pub alpha: ::protobuf::SingularPtrField<::protobuf::well_known_types::FloatValue>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Color { - fn default() -> &'a Color { - ::default_instance() - } -} - -impl Color { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - 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; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.alpha)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.red != 0. { - my_size += 5; - } - if self.green != 0. { - my_size += 5; - } - if self.blue != 0. { - my_size += 5; - } - if let Some(ref v) = self.alpha.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.red != 0. { - os.write_float(1, self.red)?; - } - if self.green != 0. { - os.write_float(2, self.green)?; - } - 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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Color { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Color::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x17google/type/color.proto\x12\x0bgoogle.type\x1a\x1egoogle/protobuf/\ - wrappers.proto\"v\n\x05Color\x12\x10\n\x03red\x18\x01\x20\x01(\x02R\x03r\ - ed\x12\x14\n\x05green\x18\x02\x20\x01(\x02R\x05green\x12\x12\n\x04blue\ - \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\xee/\n\x07\x12\x05\x0e\0\xac\x01\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\x8b!\n\x02\x04\0\x12\x06\ - \x96\x01\0\xac\x01\x01\x1a\xfc\x20\x20Represents\x20a\x20color\x20in\x20\ - the\x20RGBA\x20color\x20space.\x20This\x20representation\x20is\x20design\ - ed\n\x20for\x20simplicity\x20of\x20conversion\x20to/from\x20color\x20rep\ - resentations\x20in\x20various\n\x20languages\x20over\x20compactness;\x20\ - for\x20example,\x20the\x20fields\x20of\x20this\x20representation\n\x20ca\ - n\x20be\x20trivially\x20provided\x20to\x20the\x20constructor\x20of\x20\"\ - java.awt.Color\"\x20in\x20Java;\x20it\n\x20can\x20also\x20be\x20triviall\ - y\x20provided\x20to\x20UIColor's\x20\"+colorWithRed:green:blue:alpha\"\n\ - \x20method\x20in\x20iOS;\x20and,\x20with\x20just\x20a\x20little\x20work,\ - \x20it\x20can\x20be\x20easily\x20formatted\x20into\n\x20a\x20CSS\x20\"rg\ - ba()\"\x20string\x20in\x20JavaScript,\x20as\x20well.\n\n\x20Note:\x20thi\ - s\x20proto\x20does\x20not\x20carry\x20information\x20about\x20the\x20abs\ - olute\x20color\x20space\n\x20that\x20should\x20be\x20used\x20to\x20inter\ - pret\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\x20Note:\x20when\x20c\ - olor\x20equality\x20needs\x20to\x20be\x20decided,\x20implementations,\ - \x20unless\n\x20documented\x20otherwise,\x20will\x20treat\x20two\x20colo\ - rs\x20to\x20be\x20equal\x20if\x20all\x20their\x20red,\n\x20green,\x20blu\ - e\x20and\x20alpha\x20values\x20each\x20differ\x20by\x20at\x20most\x201e-\ - 5.\n\n\x20Example\x20(Java):\n\n\x20\x20\x20\x20\x20\x20import\x20com.go\ - ogle.type.Color;\n\n\x20\x20\x20\x20\x20\x20//\x20...\n\x20\x20\x20\x20\ - \x20\x20public\x20static\x20java.awt.Color\x20fromProto(Color\x20protoco\ - lor)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20float\x20alpha\x20=\x20protoc\ - olor.hasAlpha()\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20?\x20pr\ - otocolor.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\x20ja\ - va.awt.Color(\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocolo\ - r.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)\x20co\ - lor.getBlue();\n\x20\x20\x20\x20\x20\x20\x20\x20float\x20denominator\x20\ - =\x20255.0;\n\x20\x20\x20\x20\x20\x20\x20\x20Color.Builder\x20resultBuil\ - der\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.setR\ - ed(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/\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\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.bui\ - ld());\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\ - \x20return\x20resultBuilder.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\x20UIC\ - olor*\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\x20blu\ - e];\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\x20flo\ - at\x20alpha\x20=\x201.0;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(alp\ - ha_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*\x20toP\ - roto(UIColor*\x20color)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CG\ - Float\x20red,\x20green,\x20blue,\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\x20allo\ - c]\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\x20setAlp\ - ha:floatWrapperWithValue(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(Java\ - Script):\n\n\x20\x20\x20\x20\x20//\x20...\n\n\x20\x20\x20\x20\x20var\x20\ - protoToCssColor\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_co\ - lor.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\x20va\ - r\x20green\x20=\x20Math.floor(greenFrac\x20*\x20255);\n\x20\x20\x20\x20\ - \x20\x20\x20\x20var\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\x20rgbToCssCol\ - or_(red,\x20green,\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.val\ - ue\x20||\x200.0;\n\x20\x20\x20\x20\x20\x20\x20\x20var\x20rgbParams\x20=\ - \x20[red,\x20green,\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\x20rgbToCssColo\ - r_\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=\x20rgbNumber.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(var\x20i\x20=\x200;\x20i\x20<\x20missingZeros;\ - \x20i++)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resultBuilder.pus\ - h('0');\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20resu\ - ltBuilder.push(hexString);\n\x20\x20\x20\x20\x20\x20\x20return\x20result\ - Builder.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\x96\x01\x08\r\nQ\n\x04\x04\0\x02\0\ - \x12\x04\x98\x01\x02\x10\x1aC\x20The\x20amount\x20of\x20red\x20in\x20the\ - \x20color\x20as\x20a\x20value\x20in\x20the\x20interval\x20[0,\x201].\n\n\ - \x0f\n\x05\x04\0\x02\0\x04\x12\x06\x98\x01\x02\x96\x01\x0f\n\r\n\x05\x04\ - \0\x02\0\x05\x12\x04\x98\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\ - \x98\x01\x08\x0b\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x98\x01\x0e\x0f\nS\n\ - \x04\x04\0\x02\x01\x12\x04\x9b\x01\x02\x12\x1aE\x20The\x20amount\x20of\ - \x20green\x20in\x20the\x20color\x20as\x20a\x20value\x20in\x20the\x20inte\ - rval\x20[0,\x201].\n\n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\x9b\x01\x02\ - \x98\x01\x10\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x9b\x01\x02\x07\n\r\n\ - \x05\x04\0\x02\x01\x01\x12\x04\x9b\x01\x08\r\n\r\n\x05\x04\0\x02\x01\x03\ - \x12\x04\x9b\x01\x10\x11\nR\n\x04\x04\0\x02\x02\x12\x04\x9e\x01\x02\x11\ - \x1aD\x20The\x20amount\x20of\x20blue\x20in\x20the\x20color\x20as\x20a\ - \x20value\x20in\x20the\x20interval\x20[0,\x201].\n\n\x0f\n\x05\x04\0\x02\ - \x02\x04\x12\x06\x9e\x01\x02\x9b\x01\x12\n\r\n\x05\x04\0\x02\x02\x05\x12\ - \x04\x9e\x01\x02\x07\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x9e\x01\x08\x0c\ - \n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x9e\x01\x0f\x10\n\x81\x05\n\x04\x04\ - \0\x02\x03\x12\x04\xab\x01\x02'\x1a\xf2\x04\x20The\x20fraction\x20of\x20\ - this\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\x20pixel\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\x20corresp\ - onds\x20to\x20a\x20solid\x20color,\x20whereas\n\x20a\x20value\x20of\x200\ - .0\x20corresponds\x20to\x20a\x20completely\x20transparent\x20color.\x20T\ - his\n\x20uses\x20a\x20wrapper\x20message\x20rather\x20than\x20a\x20simpl\ - e\x20float\x20scalar\x20so\x20that\x20it\x20is\n\x20possible\x20to\x20di\ - stinguish\x20between\x20a\x20default\x20value\x20and\x20the\x20value\x20\ - being\x20unset.\n\x20If\x20omitted,\x20this\x20color\x20object\x20is\x20\ - to\x20be\x20rendered\x20as\x20a\x20solid\x20color\n\x20(as\x20if\x20the\ - \x20alpha\x20value\x20had\x20been\x20explicitly\x20given\x20with\x20a\ - \x20value\x20of\x201.0).\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\xab\x01\ - \x02\x9e\x01\x11\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xab\x01\x02\x1c\n\r\ - \n\x05\x04\0\x02\x03\x01\x12\x04\xab\x01\x1d\"\n\r\n\x05\x04\0\x02\x03\ - \x03\x12\x04\xab\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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/date.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/date.rs deleted file mode 100644 index 26c7570724..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/date.rs +++ /dev/null @@ -1,317 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/date.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Date { - // message fields - pub year: i32, - pub month: i32, - pub day: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Date { - fn default() -> &'a Date { - ::default_instance() - } -} - -impl Date { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::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); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Date { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Date::new) - } -} - -impl ::protobuf::Clear for Date { - fn clear(&mut self) { - self.year = 0; - self.month = 0; - self.day = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x16google/type/date.proto\x12\x0bgoogle.type\"B\n\x04Date\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\x03dayB]\n\ - \x0fcom.google.typeB\tDateProtoP\x01Z4google.golang.org/genproto/googlea\ - pis/type/date;date\xf8\x01\x01\xa2\x02\x03GTPJ\xec\x0e\n\x06\x12\x04\x0e\ - \02\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202\ - 020\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\xe8\x04\n\x02\x04\0\x12\x04%\02\x01\x1a\xdb\ - \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\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\x20\ - 9999,\x20or\x200\x20to\x20specify\x20a\x20date\x20without\n\x20a\x20year\ - .\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04(\x02%\x0e\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\x20year.\x20Must\x20be\x20from\x201\ - \x20to\x2012,\x20or\x200\x20to\x20specify\x20a\x20year\x20without\x20a\n\ - \x20month\x20and\x20day.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04,\x02(\x11\ - \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\x031\x02\x10\x1a\xa0\x01\x20Day\x20of\ - \x20a\x20month.\x20Must\x20be\x20from\x201\x20to\x2031\x20and\x20valid\ - \x20for\x20the\x20year\x20and\x20month,\x20or\x200\n\x20to\x20specify\ - \x20a\x20year\x20by\x20itself\x20or\x20a\x20year\x20and\x20month\x20wher\ - e\x20the\x20day\x20isn't\n\x20significant.\n\n\r\n\x05\x04\0\x02\x02\x04\ - \x12\x041\x02,\x12\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x031\x02\x07\n\x0c\ - \n\x05\x04\0\x02\x02\x01\x12\x031\x08\x0b\n\x0c\n\x05\x04\0\x02\x02\x03\ - \x12\x031\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/datetime.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/datetime.rs deleted file mode 100644 index 8f5c503dfa..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/datetime.rs +++ /dev/null @@ -1,893 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/dayofweek.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/dayofweek.rs deleted file mode 100644 index 345ea2ca1d..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/dayofweek.rs +++ /dev/null @@ -1,152 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/dayofweek.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum DayOfWeek { - DAY_OF_WEEK_UNSPECIFIED = 0, - MONDAY = 1, - TUESDAY = 2, - WEDNESDAY = 3, - THURSDAY = 4, - FRIDAY = 5, - SATURDAY = 6, - SUNDAY = 7, -} - -impl ::protobuf::ProtobufEnum for DayOfWeek { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(DayOfWeek::DAY_OF_WEEK_UNSPECIFIED), - 1 => ::std::option::Option::Some(DayOfWeek::MONDAY), - 2 => ::std::option::Option::Some(DayOfWeek::TUESDAY), - 3 => ::std::option::Option::Some(DayOfWeek::WEDNESDAY), - 4 => ::std::option::Option::Some(DayOfWeek::THURSDAY), - 5 => ::std::option::Option::Some(DayOfWeek::FRIDAY), - 6 => ::std::option::Option::Some(DayOfWeek::SATURDAY), - 7 => ::std::option::Option::Some(DayOfWeek::SUNDAY), - _ => ::std::option::Option::None - } - } - - 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 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()) - }) - } -} - -impl ::std::marker::Copy for DayOfWeek { -} - -impl ::std::default::Default for DayOfWeek { - fn default() -> Self { - DayOfWeek::DAY_OF_WEEK_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for DayOfWeek { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1bgoogle/type/dayofweek.proto\x12\x0bgoogle.type*\x84\x01\n\tDayOfWe\ - ek\x12\x1b\n\x17DAY_OF_WEEK_UNSPECIFIED\x10\0\x12\n\n\x06MONDAY\x10\x01\ - \x12\x0b\n\x07TUESDAY\x10\x02\x12\r\n\tWEDNESDAY\x10\x03\x12\x0c\n\x08TH\ - 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\x202020\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\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/expr.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/expr.rs deleted file mode 100644 index c1ab930880..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/expr.rs +++ /dev/null @@ -1,398 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/expr.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Expr { - // message fields - pub expression: ::std::string::String, - pub title: ::std::string::String, - pub description: ::std::string::String, - pub location: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Expr { - fn default() -> &'a Expr { - ::default_instance() - } -} - -impl Expr { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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)?; - }, - 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_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.expression.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.expression); - } - 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 !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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.expression.is_empty() { - os.write_string(1, &self.expression)?; - } - if !self.title.is_empty() { - os.write_string(2, &self.title)?; - } - if !self.description.is_empty() { - os.write_string(3, &self.description)?; - } - if !self.location.is_empty() { - os.write_string(4, &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() -> 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 default_instance() -> &'static Expr { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Expr::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x16google/type/expr.proto\x12\x0bgoogle.type\"z\n\x04Expr\x12\x1e\n\n\ - expression\x18\x01\x20\x01(\tR\nexpression\x12\x14\n\x05title\x18\x02\ - \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\xf5\x14\n\x06\x12\x04\x0e\0H\x01\n\xbc\x04\ - \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\r\n\x05\x04\0\x02\0\x04\x12\x04:\ - \x027\x0e\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\x20enter\x20the\n\x20expression.\n\ - \n\r\n\x05\x04\0\x02\x01\x04\x12\x04?\x02:\x18\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.\x20This\x20is\x20a\x20longer\x20text\x20which\n\x20descr\ - ibes\x20the\x20expression,\x20e.g.\x20when\x20hovered\x20over\x20it\x20i\ - n\x20a\x20UI.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04C\x02?\x13\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\x20\ - indicating\x20the\x20location\x20of\x20the\x20expression\x20for\x20error\ - \n\x20reporting,\x20e.g.\x20a\x20file\x20name\x20and\x20a\x20position\ - \x20in\x20the\x20file.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04G\x02C\x19\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\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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/fraction.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/fraction.rs deleted file mode 100644 index a54bc2773c..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/fraction.rs +++ /dev/null @@ -1,261 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/fraction.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Fraction { - // message fields - pub numerator: i64, - pub denominator: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Fraction { - fn default() -> &'a Fraction { - ::default_instance() - } -} - -impl Fraction { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.numerator != 0 { - my_size += ::protobuf::rt::value_size(1, self.numerator, ::protobuf::wire_format::WireTypeVarint); - } - if self.denominator != 0 { - my_size += ::protobuf::rt::value_size(2, self.denominator, ::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.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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Fraction { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Fraction::new) - } -} - -impl ::protobuf::Clear for Fraction { - fn clear(&mut self) { - self.numerator = 0; - self.denominator = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1agoogle/type/fraction.proto\x12\x0bgoogle.type\"J\n\x08Fraction\x12\ - \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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/interval.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/interval.rs deleted file mode 100644 index 688171ea9e..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/interval.rs +++ /dev/null @@ -1,315 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/latlng.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/latlng.rs deleted file mode 100644 index 7c081ae8aa..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/latlng.rs +++ /dev/null @@ -1,267 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/latlng.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct LatLng { - // message fields - pub latitude: f64, - pub longitude: f64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LatLng { - fn default() -> &'a LatLng { - ::default_instance() - } -} - -impl LatLng { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.latitude != 0. { - my_size += 9; - } - if self.longitude != 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.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())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static LatLng { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LatLng::new) - } -} - -impl ::protobuf::Clear for LatLng { - fn clear(&mut self) { - self.latitude = 0.; - self.longitude = 0.; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x18google/type/latlng.proto\x12\x0bgoogle.type\"B\n\x06LatLng\x12\x1a\ - \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\xcb\n\n\x06\x12\x04\x0e\0$\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\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\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\r\n\x05\x04\0\ - \x02\0\x04\x12\x04\x20\x02\x1e\x10\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.\x20It\x20must\x20be\x20i\ - n\x20the\x20range\x20[-180.0,\x20+180.0].\n\n\r\n\x05\x04\0\x02\x01\x04\ - \x12\x04#\x02\x20\x16\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/localized_text.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/localized_text.rs deleted file mode 100644 index e7fe23f470..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/localized_text.rs +++ /dev/null @@ -1,277 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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\x99\t\n\x06\x12\x04\x0e\0\ - #\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x20202\ - 0\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\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\r\n\x05\x04\0\x02\0\ - \x04\x12\x04\x1c\x02\x1a\x17\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\x20language\x20code,\x20such\x20\ - as\x20\"en-US\"\x20or\x20\"sr-Latn\".\n\n\x20For\x20more\x20information,\ - \x20see\n\x20http://www.unicode.org/reports/tr35/#Unicode_locale_identif\ - ier.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\"\x02\x1c\x12\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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/money.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/money.rs deleted file mode 100644 index 25cb1a6955..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/money.rs +++ /dev/null @@ -1,316 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/money.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Money { - // message fields - pub currency_code: ::std::string::String, - pub units: i64, - pub nanos: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Money { - fn default() -> &'a Money { - ::default_instance() - } -} - -impl Money { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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)?; - }, - 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - 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); - } - if self.nanos != 0 { - my_size += ::protobuf::rt::value_size(3, self.nanos, ::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.currency_code.is_empty() { - os.write_string(1, &self.currency_code)?; - } - if self.units != 0 { - os.write_int64(2, self.units)?; - } - if self.nanos != 0 { - os.write_int32(3, self.nanos)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Money { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Money::new) - } -} - -impl ::protobuf::Clear for Money { - fn clear(&mut self) { - self.currency_code.clear(); - self.units = 0; - self.nanos = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x17google/type/money.proto\x12\x0bgoogle.type\"X\n\x05Money\x12#\n\rc\ - 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\x8b\x0c\n\x06\ - \x12\x04\x0e\0)\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202020\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\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\r\n\x05\x04\0\x02\0\x04\ - \x12\x04\x1c\x02\x1a\x0f\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\r\n\x05\x04\0\x02\x01\x04\x12\x04\x20\x02\ - \x1c\x1b\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\x20between\x20-999,999,999\x20and\x20+9\ - 99,999,999\x20inclusive.\n\x20If\x20`units`\x20is\x20positive,\x20`nanos\ - `\x20must\x20be\x20positive\x20or\x20zero.\n\x20If\x20`units`\x20is\x20z\ - ero,\x20`nanos`\x20can\x20be\x20positive,\x20zero,\x20or\x20negative.\n\ - \x20If\x20`units`\x20is\x20negative,\x20`nanos`\x20must\x20be\x20negativ\ - e\x20or\x20zero.\n\x20For\x20example\x20$-1.75\x20is\x20represented\x20a\ - s\x20`units`=-1\x20and\x20`nanos`=-750,000,000.\n\n\r\n\x05\x04\0\x02\ - \x02\x04\x12\x04(\x02\x20\x12\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/month.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/month.rs deleted file mode 100644 index 3b70046be7..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/month.rs +++ /dev/null @@ -1,182 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/month.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Month { - MONTH_UNSPECIFIED = 0, - JANUARY = 1, - FEBRUARY = 2, - MARCH = 3, - APRIL = 4, - MAY = 5, - JUNE = 6, - JULY = 7, - AUGUST = 8, - SEPTEMBER = 9, - OCTOBER = 10, - NOVEMBER = 11, - DECEMBER = 12, -} - -impl ::protobuf::ProtobufEnum for Month { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Month::MONTH_UNSPECIFIED), - 1 => ::std::option::Option::Some(Month::JANUARY), - 2 => ::std::option::Option::Some(Month::FEBRUARY), - 3 => ::std::option::Option::Some(Month::MARCH), - 4 => ::std::option::Option::Some(Month::APRIL), - 5 => ::std::option::Option::Some(Month::MAY), - 6 => ::std::option::Option::Some(Month::JUNE), - 7 => ::std::option::Option::Some(Month::JULY), - 8 => ::std::option::Option::Some(Month::AUGUST), - 9 => ::std::option::Option::Some(Month::SEPTEMBER), - 10 => ::std::option::Option::Some(Month::OCTOBER), - 11 => ::std::option::Option::Some(Month::NOVEMBER), - 12 => ::std::option::Option::Some(Month::DECEMBER), - _ => ::std::option::Option::None - } - } - - 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 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()) - }) - } -} - -impl ::std::marker::Copy for Month { -} - -impl ::std::default::Default for Month { - fn default() -> Self { - Month::MONTH_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Month { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x17google/type/month.proto\x12\x0bgoogle.type*\xb0\x01\n\x05Month\x12\ - \x15\n\x11MONTH_UNSPECIFIED\x10\0\x12\x0b\n\x07JANUARY\x10\x01\x12\x0c\n\ - \x08FEBRUARY\x10\x02\x12\t\n\x05MARCH\x10\x03\x12\t\n\x05APRIL\x10\x04\ - \x12\x07\n\x03MAY\x10\x05\x12\x08\n\x04JUNE\x10\x06\x12\x08\n\x04JULY\ - \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\xd3\x0c\n\x06\x12\x04\ - \x0e\0@\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ - \x202020\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\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\x17\x20The\x20unspecifed\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-\ - \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\ - \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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/phone_number.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/phone_number.rs deleted file mode 100644 index b30331d792..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/phone_number.rs +++ /dev/null @@ -1,674 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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_22_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\ - \x92#\n\x06\x12\x04\x0e\0p\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\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\ - \x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04C\x04=\x15\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\x20c\ - ode\x20digits,\x20without\x20a\x20leading\x20plus\x20('+')\x20or\x20coun\ - try\n\x20calling\x20code,\x20e.g.\x20\"611\".\n\n\x0f\n\x07\x04\0\x03\0\ - \x02\x01\x04\x12\x04G\x04C\x1b\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\x20regu\ - lar\x20number,\x20or\x20a\x20short\x20code.\x20\x20New\x20fields\x20may\ - \x20be\n\x20added\x20to\x20the\x20oneof\x20below\x20in\x20the\x20future,\ - \x20so\x20clients\x20should\x20ignore\x20phone\n\x20numbers\x20for\x20wh\ - ich\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,\x20\ - represented\x20as\x20a\x20leading\x20plus\x20sign\x20('+'),\x20followed\ - \x20by\x20a\n\x20phone\x20number\x20that\x20uses\x20a\x20relaxed\x20ITU\ - \x20E.164\x20format\x20consisting\x20of\x20the\n\x20country\x20calling\ - \x20code\x20(1\x20to\x203\x20digits)\x20and\x20the\x20subscriber\x20numb\ - er,\x20with\x20no\n\x20additional\x20spaces\x20or\x20formatting,\x20e.g.\ - :\n\x20\x20-\x20correct:\x20\"+15552220123\"\n\x20\x20-\x20incorrect:\ - \x20\"+1\x20(555)\x20222-01234\x20x123\".\n\n\x20The\x20ITU\x20E.164\x20\ - format\x20limits\x20the\x20latter\x20to\x2012\x20digits,\x20but\x20in\ - \x20practice\x20not\n\x20all\x20countries\x20respect\x20that,\x20so\x20w\ - e\x20relax\x20that\x20restriction\x20here.\n\x20National-only\x20numbers\ - \x20are\x20not\x20allowed.\n\n\x20References:\n\x20\x20-\x20https://www.\ - itu.int/rec/T-REC-E.164-201011-I\n\x20\x20-\x20https://en.wikipedia.org/\ - wiki/E.164.\n\x20\x20-\x20https://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\x20c\ - ode.\n\n\x20Reference(s):\n\x20\x20-\x20https://en.wikipedia.org/wiki/Sh\ - ort_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\x20T\ - he\x20phone\x20number's\x20extension.\x20The\x20extension\x20is\x20not\ - \x20standardized\x20in\x20ITU\n\x20recommendations,\x20except\x20for\x20\ - being\x20defined\x20as\x20a\x20series\x20of\x20numbers\x20with\x20a\n\ - \x20maximum\x20length\x20of\x2040\x20digits.\x20Other\x20than\x20digits,\ - \x20some\x20other\x20dialing\n\x20characters\x20such\x20as\x20','\x20(in\ - dicating\x20a\x20wait)\x20or\x20'#'\x20may\x20be\x20stored\x20here.\n\n\ - \x20Note\x20that\x20no\x20regions\x20currently\x20use\x20extensions\x20w\ - ith\x20short\x20codes,\x20so\x20this\n\x20field\x20is\x20normally\x20onl\ - y\x20set\x20in\x20conjunction\x20with\x20an\x20E.164\x20number.\x20It\ - \x20is\x20held\n\x20separately\x20from\x20the\x20E.164\x20number\x20to\ - \x20allow\x20for\x20short\x20code\x20extensions\x20in\x20the\n\x20future\ - .\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04o\x02d\x03\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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/postal_address.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/postal_address.rs deleted file mode 100644 index 4a5b733e85..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/postal_address.rs +++ /dev/null @@ -1,776 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/postal_address.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct PostalAddress { - // message fields - pub revision: i32, - pub region_code: ::std::string::String, - pub language_code: ::std::string::String, - pub postal_code: ::std::string::String, - pub sorting_code: ::std::string::String, - pub administrative_area: ::std::string::String, - pub locality: ::std::string::String, - pub sublocality: ::std::string::String, - pub address_lines: ::protobuf::RepeatedField<::std::string::String>, - pub recipients: ::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 PostalAddress { - fn default() -> &'a PostalAddress { - ::default_instance() - } -} - -impl PostalAddress { - pub fn new() -> 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()) - } -} - -impl ::protobuf::Message for 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; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.region_code)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.language_code)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.postal_code)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sorting_code)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.administrative_area)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.locality)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sublocality)?; - }, - 9 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.address_lines)?; - }, - 10 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.recipients)?; - }, - 11 => { - ::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())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.revision != 0 { - my_size += ::protobuf::rt::value_size(1, self.revision, ::protobuf::wire_format::WireTypeVarint); - } - if !self.region_code.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.region_code); - } - if !self.language_code.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.language_code); - } - if !self.postal_code.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.postal_code); - } - if !self.sorting_code.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.sorting_code); - } - if !self.administrative_area.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.administrative_area); - } - if !self.locality.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.locality); - } - if !self.sublocality.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.sublocality); - } - for value in &self.address_lines { - my_size += ::protobuf::rt::string_size(9, &value); - }; - for value in &self.recipients { - my_size += ::protobuf::rt::string_size(10, &value); - }; - 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 - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.revision != 0 { - os.write_int32(1, self.revision)?; - } - if !self.region_code.is_empty() { - os.write_string(2, &self.region_code)?; - } - if !self.language_code.is_empty() { - os.write_string(3, &self.language_code)?; - } - if !self.postal_code.is_empty() { - os.write_string(4, &self.postal_code)?; - } - if !self.sorting_code.is_empty() { - os.write_string(5, &self.sorting_code)?; - } - if !self.administrative_area.is_empty() { - os.write_string(6, &self.administrative_area)?; - } - if !self.locality.is_empty() { - os.write_string(7, &self.locality)?; - } - if !self.sublocality.is_empty() { - os.write_string(8, &self.sublocality)?; - } - for v in &self.address_lines { - os.write_string(9, &v)?; - }; - for v in &self.recipients { - os.write_string(10, &v)?; - }; - if !self.organization.is_empty() { - os.write_string(11, &self.organization)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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(); - self.language_code.clear(); - self.postal_code.clear(); - self.sorting_code.clear(); - self.administrative_area.clear(); - self.locality.clear(); - self.sublocality.clear(); - self.address_lines.clear(); - self.recipients.clear(); - self.organization.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x20google/type/postal_address.proto\x12\x0bgoogle.type\"\x8d\x03\n\rP\ - ostalAddress\x12\x1a\n\x08revision\x18\x01\x20\x01(\x05R\x08revision\x12\ - \x1f\n\x0bregion_code\x18\x02\x20\x01(\tR\nregionCode\x12#\n\rlanguage_c\ - ode\x18\x03\x20\x01(\tR\x0clanguageCode\x12\x1f\n\x0bpostal_code\x18\x04\ - \x20\x01(\tR\npostalCode\x12!\n\x0csorting_code\x18\x05\x20\x01(\tR\x0bs\ - ortingCode\x12/\n\x13administrative_area\x18\x06\x20\x01(\tR\x12administ\ - rativeArea\x12\x1a\n\x08locality\x18\x07\x20\x01(\tR\x08locality\x12\x20\ - \n\x0bsublocality\x18\x08\x20\x01(\tR\x0bsublocality\x12#\n\raddress_lin\ - es\x18\t\x20\x03(\tR\x0caddressLines\x12\x1e\n\nrecipients\x18\n\x20\x03\ - (\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\xd20\n\x07\x12\x05\x0e\0\x85\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\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\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\ - \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,\ - \x20P.O.\n\x20Box\x20or\x20similar.\n\x20It\x20is\x20not\x20intended\x20\ - to\x20model\x20geographical\x20locations\x20(roads,\x20towns,\n\x20mount\ - ains).\n\n\x20In\x20typical\x20usage\x20an\x20address\x20would\x20be\x20\ - created\x20via\x20user\x20input\x20or\x20from\x20importing\n\x20existing\ - \x20data,\x20depending\x20on\x20the\x20type\x20of\x20process.\n\n\x20Adv\ - ice\x20on\x20address\x20input\x20/\x20editing:\n\x20\x20-\x20Use\x20an\ - \x20i18n-ready\x20address\x20widget\x20such\x20as\n\x20\x20\x20\x20https\ - ://github.com/google/libaddressinput)\n\x20-\x20Users\x20should\x20not\ - \x20be\x20presented\x20with\x20UI\x20elements\x20for\x20input\x20or\x20e\ - 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\ - 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\r\n\x05\x04\0\x02\0\x04\x12\x04/\x02*\ - \x17\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\x1a\xb1\x02\x20Required.\ - \x20CLDR\x20region\x20code\x20of\x20the\x20country/region\x20of\x20the\ - \x20address.\x20This\n\x20is\x20never\x20inferred\x20and\x20it\x20is\x20\ - up\x20to\x20the\x20user\x20to\x20ensure\x20the\x20value\x20is\n\x20corre\ - ct.\x20See\x20http://cldr.unicode.org/\x20and\n\x20http://www.unicode.or\ - g/cldr/charts/30/supplemental/territory_information.html\n\x20for\x20det\ - ails.\x20Example:\x20\"CH\"\x20for\x20Switzerland.\n\n\r\n\x05\x04\0\x02\ - \x01\x04\x12\x046\x02/\x15\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\x20Optional.\x20BCP-47\x20language\x20code\x20of\x20the\x20\ - contents\x20of\x20this\x20address\x20(if\n\x20known).\x20This\x20is\x20o\ - ften\x20the\x20UI\x20language\x20of\x20the\x20input\x20form\x20or\x20is\ - \x20expected\n\x20to\x20match\x20one\x20of\x20the\x20languages\x20used\ - \x20in\x20the\x20address'\x20country/region,\x20or\x20their\n\x20transli\ - terated\x20equivalents.\n\x20This\x20can\x20affect\x20formatting\x20in\ - \x20certain\x20countries,\x20but\x20is\x20not\x20critical\n\x20to\x20the\ - \x20correctness\x20of\x20the\x20data\x20and\x20will\x20never\x20affect\ - \x20any\x20validation\x20or\n\x20other\x20non-formatting\x20related\x20o\ - perations.\n\n\x20If\x20this\x20value\x20is\x20not\x20known,\x20it\x20sh\ - ould\x20be\x20omitted\x20(rather\x20than\x20specifying\x20a\n\x20possibl\ - y\x20incorrect\x20default).\n\n\x20Examples:\x20\"zh-Hant\",\x20\"ja\",\ - \x20\"ja-Latn\",\x20\"en\".\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04D\x026\ - \x19\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\ - 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\r\ - \n\x05\x04\0\x02\x03\x04\x12\x04J\x02D\x1b\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.\x20Additional,\x20country-spe\ - cific,\x20sorting\x20code.\x20This\x20is\x20not\x20used\n\x20in\x20most\ - \x20regions.\x20Where\x20it\x20is\x20used,\x20the\x20value\x20is\x20eith\ - er\x20a\x20string\x20like\n\x20\"CEDEX\",\x20optionally\x20followed\x20b\ - y\x20a\x20number\x20(e.g.\x20\"CEDEX\x207\"),\x20or\x20just\x20a\x20numb\ - er\n\x20alone,\x20representing\x20the\x20\"sector\x20code\"\x20(Jamaica)\ - ,\x20\"delivery\x20area\x20indicator\"\n\x20(Malawi)\x20or\x20\"post\x20\ - office\x20indicator\"\x20(e.g.\x20C\xc3\xb4te\x20d'Ivoire).\n\n\r\n\x05\ - \x04\0\x02\x04\x04\x12\x04Q\x02J\x19\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\x20Optional.\x20Highest\x20administrative\x20subd\ - ivision\x20which\x20is\x20used\x20for\x20postal\n\x20addresses\x20of\x20\ - a\x20country\x20or\x20region.\n\x20For\x20example,\x20this\x20can\x20be\ - \x20a\x20state,\x20a\x20province,\x20an\x20oblast,\x20or\x20a\x20prefect\ - ure.\n\x20Specifically,\x20for\x20Spain\x20this\x20is\x20the\x20province\ - \x20and\x20not\x20the\x20autonomous\n\x20community\x20(e.g.\x20\"Barcelo\ - na\"\x20and\x20not\x20\"Catalonia\").\n\x20Many\x20countries\x20don't\ - \x20use\x20an\x20administrative\x20area\x20in\x20postal\x20addresses.\ - \x20E.g.\n\x20in\x20Switzerland\x20this\x20should\x20be\x20left\x20unpop\ - ulated.\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04Z\x02Q\x1a\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.\x20Generally\x20ref\ - ers\x20to\x20the\x20city/town\x20portion\x20of\x20the\x20address.\n\x20E\ - xamples:\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\x20struc\ - ture\x20well,\x20leave\x20locality\x20empty\x20and\x20use\x20address_lin\ - es.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04`\x02Z!\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.\x20Sublocality\x20of\x20the\x20address.\ - \n\x20For\x20example,\x20this\x20can\x20be\x20neighborhoods,\x20boroughs\ - ,\x20districts.\n\n\r\n\x05\x04\0\x02\x07\x04\x12\x04d\x02`\x16\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\ - \x20lines\x20describing\x20the\x20lower\x20levels\x20of\x20an\x20address\ - .\n\n\x20Because\x20values\x20in\x20address_lines\x20do\x20not\x20have\ - \x20type\x20information\x20and\x20may\n\x20sometimes\x20contain\x20multi\ - ple\x20values\x20in\x20a\x20single\x20field\x20(e.g.\n\x20\"Austin,\x20T\ - X\"),\x20it\x20is\x20important\x20that\x20the\x20line\x20order\x20is\x20\ - clear.\x20The\x20order\x20of\n\x20address\x20lines\x20should\x20be\x20\"\ - envelope\x20order\"\x20for\x20the\x20country/region\x20of\x20the\n\x20ad\ - dress.\x20In\x20places\x20where\x20this\x20can\x20vary\x20(e.g.\x20Japan\ - ),\x20address_language\x20is\n\x20used\x20to\x20make\x20it\x20explicit\ - \x20(e.g.\x20\"ja\"\x20for\x20large-to-small\x20ordering\x20and\n\x20\"j\ - a-Latn\"\x20or\x20\"en\"\x20for\x20small-to-large).\x20This\x20way,\x20t\ - he\x20most\x20specific\x20line\x20of\n\x20an\x20address\x20can\x20be\x20\ - selected\x20based\x20on\x20the\x20language.\n\n\x20The\x20minimum\x20per\ - mitted\x20structural\x20representation\x20of\x20an\x20address\x20consist\ - s\n\x20of\x20a\x20region_code\x20with\x20all\x20remaining\x20information\ - \x20placed\x20in\x20the\n\x20address_lines.\x20It\x20would\x20be\x20poss\ - ible\x20to\x20format\x20such\x20an\x20address\x20very\n\x20approximately\ - \x20without\x20geocoding,\x20but\x20no\x20semantic\x20reasoning\x20could\ - \x20be\n\x20made\x20about\x20any\x20of\x20the\x20address\x20components\ - \x20until\x20it\x20was\x20at\x20least\n\x20partially\x20resolved.\n\n\ - \x20Creating\x20an\x20address\x20only\x20containing\x20a\x20region_code\ - \x20and\x20address_lines,\x20and\n\x20then\x20geocoding\x20is\x20the\x20\ - 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\ - 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\ - \x20the\x20organization\x20at\x20the\x20address.\n\n\x0f\n\x05\x04\0\x02\ - \n\x04\x12\x06\x84\x01\x02\x81\x01\"\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\ -"; - -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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/quaternion.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/quaternion.rs deleted file mode 100644 index 432faf020a..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/quaternion.rs +++ /dev/null @@ -1,392 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/quaternion.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Quaternion { - // message fields - pub x: f64, - pub y: f64, - pub z: f64, - pub w: f64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Quaternion { - fn default() -> &'a Quaternion { - ::default_instance() - } -} - -impl Quaternion { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.x != 0. { - my_size += 9; - } - if self.y != 0. { - my_size += 9; - } - if self.z != 0. { - my_size += 9; - } - if self.w != 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.x != 0. { - os.write_double(1, self.x)?; - } - if self.y != 0. { - os.write_double(2, self.y)?; - } - if self.z != 0. { - os.write_double(3, self.z)?; - } - if self.w != 0. { - os.write_double(4, self.w)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static Quaternion { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Quaternion::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1cgoogle/type/quaternion.proto\x12\x0bgoogle.type\"D\n\nQuaternion\ - \x12\x0c\n\x01x\x18\x01\x20\x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02\x20\ - \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\xf2\x1c\n\x06\x12\x04\x0e\0]\x01\n\xbc\x04\ - \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\ - \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\ - e-dimensional\n\x20rotations\x20(https://en.wikipedia.org/wiki/Quaternio\ - ns_and_spatial_rotation),\n\x20as\x20they\x20provide\x20greater\x20mathe\ - matical\x20robustness\x20by\x20avoiding\x20the\x20gimbal\x20lock\n\x20pr\ - oblems\x20that\x20can\x20be\x20encountered\x20when\x20using\x20Euler\x20\ - angles\n\x20(https://en.wikipedia.org/wiki/Gimbal_lock).\n\n\x20Quaterni\ - ons\x20are\x20generally\x20represented\x20in\x20this\x20form:\n\n\x20\ - \x20\x20\x20\x20w\x20+\x20xi\x20+\x20yj\x20+\x20zk\n\n\x20where\x20x,\ - \x20y,\x20z,\x20and\x20w\x20are\x20real\x20numbers,\x20and\x20i,\x20j,\ - \x20and\x20k\x20are\x20three\x20imaginary\n\x20numbers.\n\n\x20Our\x20na\ - ming\x20choice\x20`(x,\x20y,\x20z,\x20w)`\x20comes\x20from\x20the\x20des\ - ire\x20to\x20avoid\x20confusion\x20for\n\x20those\x20interested\x20in\ - \x20the\x20geometric\x20properties\x20of\x20the\x20quaternion\x20in\x20t\ - he\x203D\n\x20Cartesian\x20space.\x20Other\x20texts\x20often\x20use\x20a\ - lternative\x20names\x20or\x20subscripts,\x20such\n\x20as\x20`(a,\x20b,\ - \x20c,\x20d)`,\x20`(1,\x20i,\x20j,\x20k)`,\x20or\x20`(0,\x201,\x202,\x20\ - 3)`,\x20which\x20are\x20perhaps\n\x20better\x20suited\x20for\x20mathemat\ - ical\x20interpretations.\n\n\x20To\x20avoid\x20any\x20confusion,\x20as\ - \x20well\x20as\x20to\x20maintain\x20compatibility\x20with\x20a\x20large\ - \n\x20number\x20of\x20software\x20libraries,\x20the\x20quaternions\x20re\ - presented\x20using\x20the\x20protocol\n\x20buffer\x20below\x20*must*\x20\ - follow\x20the\x20Hamilton\x20convention,\x20which\x20defines\x20`ij\x20=\ - \x20k`\n\x20(i.e.\x20a\x20right-handed\x20algebra),\x20and\x20therefore:\ - \n\n\x20\x20\x20\x20\x20i^2\x20=\x20j^2\x20=\x20k^2\x20=\x20ijk\x20=\x20\ - \xe2\x88\x921\n\x20\x20\x20\x20\x20ij\x20=\x20\xe2\x88\x92ji\x20=\x20k\n\ - \x20\x20\x20\x20\x20jk\x20=\x20\xe2\x88\x92kj\x20=\x20i\n\x20\x20\x20\ - \x20\x20ki\x20=\x20\xe2\x88\x92ik\x20=\x20j\n\n\x20Please\x20DO\x20NOT\ - \x20use\x20this\x20to\x20represent\x20quaternions\x20that\x20follow\x20t\ - he\x20JPL\n\x20convention,\x20or\x20any\x20of\x20the\x20other\x20quatern\ - ion\x20flavors\x20out\x20there.\n\n\x20Definitions:\n\n\x20\x20\x20-\x20\ - Quaternion\x20norm\x20(or\x20magnitude):\x20`sqrt(x^2\x20+\x20y^2\x20+\ - \x20z^2\x20+\x20w^2)`.\n\x20\x20\x20-\x20Unit\x20(or\x20normalized)\x20q\ - uaternion:\x20a\x20quaternion\x20whose\x20norm\x20is\x201.\n\x20\x20\x20\ - -\x20Pure\x20quaternion:\x20a\x20quaternion\x20whose\x20scalar\x20compon\ - ent\x20(`w`)\x20is\x200.\n\x20\x20\x20-\x20Rotation\x20quaternion:\x20a\ - \x20unit\x20quaternion\x20used\x20to\x20represent\x20rotation.\n\x20\x20\ - \x20-\x20Orientation\x20quaternion:\x20a\x20unit\x20quaternion\x20used\ - \x20to\x20represent\x20orientation.\n\n\x20A\x20quaternion\x20can\x20be\ - \x20normalized\x20by\x20dividing\x20it\x20by\x20its\x20norm.\x20The\x20r\ - esulting\n\x20quaternion\x20maintains\x20the\x20same\x20direction,\x20bu\ - t\x20has\x20a\x20norm\x20of\x201,\x20i.e.\x20it\x20moves\n\x20on\x20the\ - \x20unit\x20sphere.\x20This\x20is\x20generally\x20necessary\x20for\x20ro\ - tation\x20and\x20orientation\n\x20quaternions,\x20to\x20avoid\x20roundin\ - g\x20errors:\n\x20https://en.wikipedia.org/wiki/Rotation_formalisms_in_t\ - hree_dimensions\n\n\x20Note\x20that\x20`(x,\x20y,\x20z,\x20w)`\x20and\ - \x20`(-x,\x20-y,\x20-z,\x20-w)`\x20represent\x20the\x20same\x20rotation,\ - \n\x20but\x20normalization\x20would\x20be\x20even\x20more\x20useful,\x20\ - e.g.\x20for\x20comparison\x20purposes,\x20if\n\x20it\x20would\x20produce\ - \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\r\n\x05\ - \x04\0\x02\0\x04\x12\x04S\x02Q\x14\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\r\n\x05\x04\0\x02\x01\x04\x12\x04V\x02S\ - \x0f\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\x20compone\ - nt.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04Y\x02V\x0f\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\r\n\x05\x04\0\ - \x02\x03\x04\x12\x04\\\x02Y\x0f\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() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/timeofday.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/timeofday.rs deleted file mode 100644 index b0901a23f0..0000000000 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/timeofday.rs +++ /dev/null @@ -1,350 +0,0 @@ -// This file is generated by rust-protobuf 2.22.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![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/timeofday.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; - -#[derive(PartialEq,Clone,Default)] -pub struct TimeOfDay { - // message fields - pub hours: i32, - pub minutes: i32, - pub seconds: i32, - pub nanos: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TimeOfDay { - fn default() -> &'a TimeOfDay { - ::default_instance() - } -} - -impl TimeOfDay { - pub fn new() -> 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; - } -} - -impl ::protobuf::Message for 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; - }, - 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; - }, - 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; - }, - 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; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.hours != 0 { - my_size += ::protobuf::rt::value_size(1, self.hours, ::protobuf::wire_format::WireTypeVarint); - } - if self.minutes != 0 { - my_size += ::protobuf::rt::value_size(2, self.minutes, ::protobuf::wire_format::WireTypeVarint); - } - if self.seconds != 0 { - my_size += ::protobuf::rt::value_size(3, self.seconds, ::protobuf::wire_format::WireTypeVarint); - } - if self.nanos != 0 { - my_size += ::protobuf::rt::value_size(4, self.nanos, ::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.hours != 0 { - os.write_int32(1, self.hours)?; - } - if self.minutes != 0 { - os.write_int32(2, self.minutes)?; - } - if self.seconds != 0 { - os.write_int32(3, self.seconds)?; - } - if self.nanos != 0 { - os.write_int32(4, self.nanos)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - 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 default_instance() -> &'static TimeOfDay { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TimeOfDay::new) - } -} - -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 ::std::fmt::Debug 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) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1bgoogle/type/timeofday.proto\x12\x0bgoogle.type\"k\n\tTimeOfDay\x12\ - \x14\n\x05hours\x18\x01\x20\x01(\x05R\x05hours\x12\x18\n\x07minutes\x18\ - \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\xfc\x0c\n\x06\ - \x12\x04\x0e\0*\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202020\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\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\xf9\x01\n\x02\x04\0\x12\ - \x04\x1c\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\x20`google.protobuf.Timestamp`.\ - \n\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\x11\n\xa2\x01\n\x04\x04\0\x02\0\ - \x12\x03\x1f\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\ - \x20scenarios\x20like\x20business\x20closing\x20time.\n\n\r\n\x05\x04\0\ - \x02\0\x04\x12\x04\x1f\x02\x1c\x13\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\ - \x1f\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1f\x08\r\n\x0c\n\x05\ - \x04\0\x02\0\x03\x12\x03\x1f\x10\x11\n<\n\x04\x04\0\x02\x01\x12\x03\"\ - \x02\x14\x1a/\x20Minutes\x20of\x20hour\x20of\x20day.\x20Must\x20be\x20fr\ - om\x200\x20to\x2059.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\"\x02\x1f\x12\ - \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\x0f\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\"\x12\ - \x13\n\x87\x01\n\x04\x04\0\x02\x02\x12\x03&\x02\x14\x1az\x20Seconds\x20o\ - f\x20minutes\x20of\x20the\x20time.\x20Must\x20normally\x20be\x20from\x20\ - 0\x20to\x2059.\x20An\x20API\x20may\n\x20allow\x20the\x20value\x2060\x20i\ - f\x20it\x20allows\x20leap-seconds.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04\ - &\x02\"\x14\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\x0f\n\x0c\n\x05\x04\0\x02\x02\x03\x12\ - \x03&\x12\x13\nR\n\x04\x04\0\x02\x03\x12\x03)\x02\x12\x1aE\x20Fractions\ - \x20of\x20seconds\x20in\x20nanoseconds.\x20Must\x20be\x20from\x200\x20to\ - \x20999,999,999.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04)\x02&\x14\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\r\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03)\x10\x11b\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/vendor/mozilla-rust-sdk/googleapis/Cargo.toml b/vendor/mozilla-rust-sdk/googleapis/Cargo.toml index c798e6df2e..353b9264bf 100644 --- a/vendor/mozilla-rust-sdk/googleapis/Cargo.toml +++ b/vendor/mozilla-rust-sdk/googleapis/Cargo.toml @@ -20,7 +20,7 @@ edition = "2018" [dependencies] futures = "0.3.5" -grpcio = "0.8.0" +grpcio = "0.9.0" [dependencies.googleapis-raw] version = "0.1.0" diff --git a/vendor/mozilla-rust-sdk/googleapis/src/spanner.rs b/vendor/mozilla-rust-sdk/googleapis/src/spanner.rs index a75cfa2d5f..d66b3bedbf 100644 --- a/vendor/mozilla-rust-sdk/googleapis/src/spanner.rs +++ b/vendor/mozilla-rust-sdk/googleapis/src/spanner.rs @@ -36,7 +36,7 @@ impl Client { let creds = ChannelCredentials::google_default_credentials()?; // Create a Spanner client. - let chan = ChannelBuilder::new(env) + let chan = ChannelBuilder::new(Arc::clone(&env)) .max_send_message_len(100 << 20) .max_receive_message_len(100 << 20) .secure_connect(&endpoint, creds); From aefdb5d3cf150bafa18c768d9aa2307711f3fcb8 Mon Sep 17 00:00:00 2001 From: jrconlin Date: Sat, 5 Jun 2021 12:58:44 -0700 Subject: [PATCH 2/4] Revert "f ignore" This reverts commit 8ea987adfc31ba8bbe3e4a93bc46167b0bf4f89b. --- Cargo.lock | 55 +- .../googleapis-raw/Cargo.toml | 4 +- .../googleapis-raw/src/api/annotations.rs | 74 + .../googleapis-raw/src/api/auth.rs | 1850 ++ .../googleapis-raw/src/api/backend.rs | 952 + .../googleapis-raw/src/api/billing.rs | 486 + .../googleapis-raw/src/api/client.rs | 130 + .../googleapis-raw/src/api/config_change.rs | 675 + .../googleapis-raw/src/api/consumer.rs | 583 + .../googleapis-raw/src/api/context.rs | 617 + .../googleapis-raw/src/api/control.rs | 231 + .../googleapis-raw/src/api/distribution.rs | 2146 ++ .../googleapis-raw/src/api/documentation.rs | 1096 + .../googleapis-raw/src/api/endpoint.rs | 391 + .../googleapis-raw/src/api/error_reason.rs | 436 + .../googleapis-raw/src/api/field_behavior.rs | 199 + .../googleapis-raw/src/api/http.rs | 1542 + .../googleapis-raw/src/api/httpbody.rs | 360 + .../googleapis-raw/src/api/label.rs | 375 + .../googleapis-raw/src/api/launch_stage.rs | 189 + .../googleapis-raw/src/api/log.rs | 391 + .../googleapis-raw/src/api/logging.rs | 541 + .../googleapis-raw/src/api/metric.rs | 1502 + .../src/api/monitored_resource.rs | 966 + .../googleapis-raw/src/api/monitoring.rs | 568 + .../googleapis-raw/src/api/quota.rs | 1175 + .../googleapis-raw/src/api/resource.rs | 1056 + .../googleapis-raw/src/api/service.rs | 1694 + .../src/api/servicecontrol/v1/check_error.rs | 584 + .../src/api/servicecontrol/v1/distribution.rs | 1420 + .../src/api/servicecontrol/v1/http_request.rs | 879 + .../src/api/servicecontrol/v1/log_entry.rs | 1491 + .../src/api/servicecontrol/v1/metric_value.rs | 904 + .../src/api/servicecontrol/v1/operation.rs | 813 + .../api/servicecontrol/v1/quota_controller.rs | 1614 + .../v1/quota_controller_grpc.rs | 69 + .../servicecontrol/v1/service_controller.rs | 2174 ++ .../v1/service_controller_grpc.rs | 97 + .../src/api/servicemanagement/v1/resources.rs | 3116 ++ .../servicemanagement/v1/servicemanager.rs | 5524 ++++ .../v1/servicemanager_grpc.rs | 461 + .../googleapis-raw/src/api/source_info.rs | 235 + .../src/api/system_parameter.rs | 756 + .../googleapis-raw/src/api/usage.rs | 619 + .../admin/cluster/v1/bigtable_cluster_data.rs | 817 + .../cluster/v1/bigtable_cluster_service.rs | 206 + .../v1/bigtable_cluster_service_grpc.rs | 237 + .../v1/bigtable_cluster_service_messages.rs | 2637 ++ .../admin/table/v1/bigtable_table_data.rs | 1526 + .../admin/table/v1/bigtable_table_service.rs | 148 + .../table/v1/bigtable_table_service_grpc.rs | 293 + .../v1/bigtable_table_service_messages.rs | 2039 ++ .../admin/v2/bigtable_instance_admin.rs | 5783 ++++ .../admin/v2/bigtable_instance_admin_grpc.rs | 573 + .../bigtable/admin/v2/bigtable_table_admin.rs | 8598 +++++ .../admin/v2/bigtable_table_admin_grpc.rs | 657 + .../src/bigtable/admin/v2/common.rs | 416 + .../src/bigtable/admin/v2/instance.rs | 2062 ++ .../src/bigtable/admin/v2/table.rs | 4158 +++ .../src/bigtable/v1/bigtable_data.rs | 6599 ++++ .../src/bigtable/v1/bigtable_service.rs | 134 + .../src/bigtable/v1/bigtable_service_grpc.rs | 193 + .../bigtable/v1/bigtable_service_messages.rs | 3319 ++ .../src/bigtable/v2/bigtable.rs | 4381 +++ .../src/bigtable/v2/bigtable_grpc.rs | 185 + .../googleapis-raw/src/bigtable/v2/data.rs | 6840 ++++ .../googleapis-raw/src/empty.rs | 6 +- .../googleapis-raw/src/iam/v1/iam_policy.rs | 6 +- .../src/iam/v1/iam_policy_grpc.rs | 12 +- .../googleapis-raw/src/iam/v1/options.rs | 6 +- .../googleapis-raw/src/iam/v1/policy.rs | 6 +- .../googleapis-raw/src/lib.rs | 2 +- .../src/longrunning/operations.rs | 607 +- .../src/longrunning/operations_grpc.rs | 20 +- .../googleapis-raw/src/pubsub/v1/pubsub.rs | 12023 +++++++ .../src/pubsub/v1/pubsub_grpc.rs | 757 + .../googleapis-raw/src/pubsub/v1/schema.rs | 2685 ++ .../src/pubsub/v1/schema_grpc.rs | 209 + .../src/pubsub/v1beta2/pubsub.rs | 5057 +++ .../src/pubsub/v1beta2/pubsub_grpc.rs | 457 + .../googleapis-raw/src/rpc/code.rs | 38 +- .../googleapis-raw/src/rpc/error_details.rs | 762 +- .../googleapis-raw/src/rpc/status.rs | 149 +- .../src/spanner/admin/database/v1/backup.rs | 3925 +++ .../src/spanner/admin/database/v1/common.rs | 882 + .../database/v1/spanner_database_admin.rs | 5570 +++- .../v1/spanner_database_admin_grpc.rs | 252 +- .../instance/v1/spanner_instance_admin.rs | 1341 +- .../v1/spanner_instance_admin_grpc.rs | 40 +- .../googleapis-raw/src/spanner/v1/keys.rs | 297 +- .../googleapis-raw/src/spanner/v1/mutation.rs | 244 +- .../src/spanner/v1/query_plan.rs | 307 +- .../src/spanner/v1/result_set.rs | 343 +- .../googleapis-raw/src/spanner/v1/spanner.rs | 2789 +- .../src/spanner/v1/spanner_grpc.rs | 60 +- .../src/spanner/v1/transaction.rs | 448 +- .../googleapis-raw/src/spanner/v1/type_pb.rs | 292 +- .../googleapis-raw/src/storage/v1/storage.rs | 27040 ++++++++++++++++ .../src/storage/v1/storage_grpc.rs | 1593 + .../src/storage/v1/storage_resources.rs | 12530 +++++++ .../src/type/calendar_period.rs | 163 + .../googleapis-raw/src/type/color.rs | 490 + .../googleapis-raw/src/type/date.rs | 317 + .../googleapis-raw/src/type/datetime.rs | 893 + .../googleapis-raw/src/type/dayofweek.rs | 152 + .../googleapis-raw/src/type/expr.rs | 398 + .../googleapis-raw/src/type/fraction.rs | 261 + .../googleapis-raw/src/type/interval.rs | 315 + .../googleapis-raw/src/type/latlng.rs | 267 + .../googleapis-raw/src/type/localized_text.rs | 277 + .../googleapis-raw/src/type/money.rs | 316 + .../googleapis-raw/src/type/month.rs | 182 + .../googleapis-raw/src/type/phone_number.rs | 674 + .../googleapis-raw/src/type/postal_address.rs | 776 + .../googleapis-raw/src/type/quaternion.rs | 392 + .../googleapis-raw/src/type/timeofday.rs | 350 + vendor/mozilla-rust-sdk/googleapis/Cargo.toml | 2 +- .../googleapis/src/spanner.rs | 2 +- 118 files changed, 174979 insertions(+), 4844 deletions(-) create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/annotations.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/auth.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/backend.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/billing.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/client.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/config_change.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/consumer.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/context.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/control.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/distribution.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/documentation.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/endpoint.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/error_reason.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/field_behavior.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/http.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/httpbody.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/label.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/launch_stage.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/log.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/logging.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/metric.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitored_resource.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitoring.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/quota.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/resource.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/service.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/check_error.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/distribution.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/http_request.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/operation.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/resources.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/source_info.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/system_parameter.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/api/usage.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_data.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_data.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_messages.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/common.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/instance.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/table.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_data.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_messages.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/data.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/backup.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/common.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_grpc.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_resources.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/calendar_period.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/color.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/date.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/datetime.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/dayofweek.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/expr.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/fraction.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/interval.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/latlng.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/localized_text.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/money.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/month.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/phone_number.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/postal_address.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/quaternion.rs create mode 100644 vendor/mozilla-rust-sdk/googleapis-raw/src/type/timeofday.rs diff --git a/Cargo.lock b/Cargo.lock index 28f241ebe1..641b4cb9da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -477,15 +477,6 @@ dependencies = [ "cmake", ] -[[package]] -name = "boringssl-src" -version = "0.3.0+688fc5c" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f901accdf830d2ea2f4e27f923a5e1125cd8b1a39ab578b9db1a42d578a6922b" -dependencies = [ - "cmake", -] - [[package]] name = "brotli-sys" version = "0.3.2" @@ -1196,7 +1187,7 @@ name = "googleapis-raw" version = "0.1.0" dependencies = [ "futures 0.3.13", - "grpcio 0.9.0", + "grpcio", "protobuf", ] @@ -1207,21 +1198,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "397c5a9f569ba6beabec1e5b0b622d5e182913de45480666ae76849dd7ac01c9" dependencies = [ "futures 0.3.13", - "grpcio-sys 0.8.1", - "libc", - "log", - "parking_lot", - "protobuf", -] - -[[package]] -name = "grpcio" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a1b8dd4e79b81ccfd5b9282dfc6d3d4e97568291c383c1bc98756a0f21e39d9" -dependencies = [ - "futures 0.3.13", - "grpcio-sys 0.9.0+1.38.0", + "grpcio-sys", "libc", "log", "parking_lot", @@ -1235,23 +1212,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f89a56d830be4dddc939c377c95e3b77e30c86a8df99c20095c34cf9038447b" dependencies = [ "bindgen", - "boringssl-src 0.2.0", - "cc", - "cmake", - "libc", - "libz-sys", - "pkg-config", - "walkdir", -] - -[[package]] -name = "grpcio-sys" -version = "0.9.0+1.38.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cdbbb3010823156c3153b75db391c0f47beeec57353a33dfa38126b265cc1d5" -dependencies = [ - "bindgen", - "boringssl-src 0.3.0+688fc5c", + "boringssl-src", "cc", "cmake", "libc", @@ -1653,9 +1614,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.3" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66" +checksum = "602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655" dependencies = [ "cc", "libc", @@ -2159,9 +2120,9 @@ dependencies = [ [[package]] name = "protobuf" -version = "2.23.0" +version = "2.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45604fc7a88158e7d514d8e22e14ac746081e7a70d7690074dd0029ee37458d6" +checksum = "73f72884896d22e0da0e5b266cb9a780b791f6c3b2f5beab6368d6cd4f0dbb86" [[package]] name = "pyo3" @@ -2991,7 +2952,7 @@ dependencies = [ "failure", "futures 0.3.13", "googleapis-raw", - "grpcio 0.8.2", + "grpcio", "hawk", "hex", "hkdf", diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/Cargo.toml b/vendor/mozilla-rust-sdk/googleapis-raw/Cargo.toml index c31992222e..565f32ee18 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/Cargo.toml +++ b/vendor/mozilla-rust-sdk/googleapis-raw/Cargo.toml @@ -20,8 +20,8 @@ edition = "2018" [dependencies] futures = "0.3.5" -grpcio = "0.9.0" -protobuf = "2.23.0" +grpcio = "0.8.0" +protobuf = "2.16.2" [dev-dependencies] slog = "2.5" diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/annotations.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/annotations.rs new file mode 100644 index 0000000000..96ccbd12f5 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/annotations.rs @@ -0,0 +1,74 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/annotations.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_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 }; +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/htt\ + p.proto\x1a\x20google/protobuf/descriptor.proto:K\n\x04http\x18\xb0\xca\ + \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\xbc\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\x0b\n\x03\x07\0\x04\x12\x04\x1d\x02\x1b&\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/auth.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/auth.rs new file mode 100644 index 0000000000..5077646b17 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/auth.rs @@ -0,0 +1,1850 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/auth.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Authentication { + // message fields + pub rules: ::protobuf::RepeatedField, + pub providers: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Authentication { + fn default() -> &'a Authentication { + ::default_instance() + } +} + +impl Authentication { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 4 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.providers)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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; + }; + for value in &self.providers { + 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(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; + os.write_raw_varint32(v.get_cached_size())?; + v.write_to_with_cached_sizes(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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Authentication { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Authentication::new) + } +} + +impl ::protobuf::Clear for Authentication { + fn clear(&mut self) { + self.rules.clear(); + self.providers.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct AuthenticationRule { + // message fields + pub selector: ::std::string::String, + pub oauth: ::protobuf::SingularPtrField, + pub allow_without_credential: bool, + pub requirements: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a AuthenticationRule { + fn default() -> &'a AuthenticationRule { + ::default_instance() + } +} + +impl AuthenticationRule { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, 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; + }, + 7 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.requirements)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.oauth.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.allow_without_credential != false { + my_size += 2; + } + for value in &self.requirements { + 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(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 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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), +} + +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 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()?)); + }, + 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); + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_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) + } +} + +impl ::protobuf::Clear for JwtLocation { + fn clear(&mut self) { + self.field_in = ::std::option::Option::None; + self.field_in = ::std::option::Option::None; + self.value_prefix.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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 { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct AuthProvider { + // message fields + pub id: ::std::string::String, + pub issuer: ::std::string::String, + pub jwks_uri: ::std::string::String, + pub audiences: ::std::string::String, + pub authorization_url: ::std::string::String, + pub jwt_locations: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a AuthProvider { + fn default() -> &'a AuthProvider { + ::default_instance() + } +} + +impl AuthProvider { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.issuer)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.jwks_uri)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.audiences)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.authorization_url)?; + }, + 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())?; + }, + }; + } + ::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.issuer.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.issuer); + } + if !self.jwks_uri.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.jwks_uri); + } + if !self.audiences.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.audiences); + } + 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 + } + + 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.issuer.is_empty() { + os.write_string(2, &self.issuer)?; + } + if !self.jwks_uri.is_empty() { + os.write_string(3, &self.jwks_uri)?; + } + if !self.audiences.is_empty() { + os.write_string(4, &self.audiences)?; + } + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct OAuthRequirements { + // message fields + pub canonical_scopes: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a OAuthRequirements { + fn default() -> &'a OAuthRequirements { + ::default_instance() + } +} + +impl OAuthRequirements { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.canonical_scopes.is_empty() { + os.write_string(1, &self.canonical_scopes)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static OAuthRequirements { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(OAuthRequirements::new) + } +} + +impl ::protobuf::Clear for OAuthRequirements { + fn clear(&mut self) { + self.canonical_scopes.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct AuthRequirement { + // message fields + pub provider_id: ::std::string::String, + pub audiences: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a AuthRequirement { + fn default() -> &'a AuthRequirement { + ::default_instance() + } +} + +impl AuthRequirement { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.audiences)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.provider_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.provider_id); + } + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static AuthRequirement { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(AuthRequirement::new) + } +} + +impl ::protobuf::Clear for AuthRequirement { + fn clear(&mut self) { + self.provider_id.clear(); + self.audiences.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x15google/api/auth.proto\x12\ngoogle.api\"~\n\x0eAuthentication\x124\ + \n\x05rules\x18\x03\x20\x03(\x0b2\x1e.google.api.AuthenticationRuleR\x05\ + rules\x126\n\tproviders\x18\x04\x20\x03(\x0b2\x18.google.api.AuthProvide\ + rR\tproviders\"\xe0\x01\n\x12AuthenticationRule\x12\x1a\n\x08selector\ + \x18\x01\x20\x01(\tR\x08selector\x123\n\x05oauth\x18\x02\x20\x01(\x0b2\ + \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\"h\n\x0bJwtLocation\x12\x18\n\x06header\x18\x01\x20\x01(\tH\0R\x06he\ + ader\x12\x16\n\x05query\x18\x02\x20\x01(\tH\0R\x05query\x12!\n\x0cvalue_\ + prefix\x18\x03\x20\x01(\tR\x0bvaluePrefixB\x04\n\x02in\"\xda\x01\n\x0cAu\ + thProvider\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\ + \x07jwksUri\x12\x1c\n\taudiences\x18\x04\x20\x01(\tR\taudiences\x12+\n\ + \x11authorization_url\x18\x05\x20\x01(\tR\x10authorizationUrl\x12<\n\rjw\ + t_locations\x18\x06\x20\x03(\x0b2\x17.google.api.JwtLocationR\x0cjwtLoca\ + tions\">\n\x11OAuthRequirements\x12)\n\x10canonical_scopes\x18\x01\x20\ + \x01(\tR\x0fcanonicalScopes\"P\n\x0fAuthRequirement\x12\x1f\n\x0bprovide\ + r_id\x18\x01\x20\x01(\tR\nproviderId\x12\x1c\n\taudiences\x18\x02\x20\ + \x01(\tR\taudiencesBk\n\x0ecom.google.apiB\tAuthProtoP\x01ZEgoogle.golan\ + g.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAP\ + IJ\xa7F\n\x07\x12\x05\x0e\0\xe3\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\"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\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\ + \xc8\x03\n\x02\x04\0\x12\x04&\0.\x01\x1a\xbb\x03\x20`Authentication`\x20\ + defines\x20the\x20authentication\x20configuration\x20for\x20an\x20API.\n\ + \n\x20Example\x20for\x20an\x20API\x20targeted\x20for\x20external\x20use:\ + \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/oauth2/v\ + 1/certs\n\x20\x20\x20\x20\x20\x20\x20\x20\x20issuer:\x20https://secureto\ + ken.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\x20req\ + uirements:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20provider_id:\x20\ + google_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\x20authent\ + ication\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\x03-\x02&\x1aD\x20Defines\x20a\x20set\x20of\x20au\ + thentication\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\x049\0H\x01\ + \x1a\xe0\x02\x20Authentication\x20rules\x20for\x20the\x20service.\n\n\ + \x20By\x20default,\x20if\x20a\x20method\x20has\x20any\x20authentication\ + \x20requirements,\x20every\x20request\n\x20must\x20include\x20a\x20valid\ + \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\x039\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\r\n\x05\x04\x01\x02\0\x04\x12\x04=\x029\x1c\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\x03@\x02\x1e\x1a)\x20The\x20requirements\x20for\ + \x20OAuth\x20credentials.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04@\x02=\ + \x16\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03@\x02\x13\n\x0c\n\x05\x04\ + \x01\x02\x01\x01\x12\x03@\x14\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\ + \x03@\x1c\x1d\n\x85\x01\n\x04\x04\x01\x02\x02\x12\x03D\x02$\x1ax\x20If\ + \x20true,\x20the\x20service\x20accepts\x20API\x20keys\x20without\x20any\ + \x20other\x20credential.\n\x20This\x20flag\x20only\x20applies\x20to\x20H\ + TTP\x20and\x20gRPC\x20requests.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04D\ + \x02@\x1e\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\x20additional\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*+\nF\n\x02\x04\x02\x12\x04K\0]\x01\x1a:\x20Spe\ + cifies\x20a\x20location\x20to\x20extract\x20JWT\x20from\x20an\x20API\x20\ + request.\n\n\n\n\x03\x04\x02\x01\x12\x03K\x08\x13\n\x0c\n\x04\x04\x02\ + \x08\0\x12\x04L\x02R\x03\n\x0c\n\x05\x04\x02\x08\0\x01\x12\x03L\x08\n\n?\ + \n\x04\x04\x02\x02\0\x12\x03N\x04\x16\x1a2\x20Specifies\x20HTTP\x20heade\ + r\x20name\x20to\x20extract\x20JWT\x20token.\n\n\x0c\n\x05\x04\x02\x02\0\ + \x05\x12\x03N\x04\n\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03N\x0b\x11\n\x0c\ + \n\x05\x04\x02\x02\0\x03\x12\x03N\x14\x15\nG\n\x04\x04\x02\x02\x01\x12\ + \x03Q\x04\x15\x1a:\x20Specifies\x20URL\x20query\x20parameter\x20name\x20\ + to\x20extract\x20JWT\x20token.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03\ + Q\x04\n\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03Q\x0b\x10\n\x0c\n\x05\x04\ + \x02\x02\x01\x03\x12\x03Q\x13\x14\n\xab\x03\n\x04\x04\x02\x02\x02\x12\ + \x03\\\x02\x1a\x1a\x9d\x03\x20The\x20value\x20prefix.\x20The\x20value\ + \x20format\x20is\x20\"value_prefix{token}\"\n\x20Only\x20applies\x20to\ + \x20\"in\"\x20header\x20type.\x20Must\x20be\x20empty\x20for\x20\"in\"\ + \x20query\x20type.\n\x20If\x20not\x20empty,\x20the\x20header\x20value\ + \x20has\x20to\x20match\x20(case\x20sensitive)\x20this\x20prefix.\n\x20If\ + \x20not\x20matched,\x20JWT\x20will\x20not\x20be\x20extracted.\x20If\x20m\ + atched,\x20JWT\x20will\x20be\n\x20extracted\x20after\x20the\x20prefix\ + \x20is\x20removed.\n\n\x20For\x20example,\x20for\x20\"Authorization:\x20\ + Bearer\x20{JWT}\",\n\x20value_prefix=\"Bearer\x20\"\x20with\x20a\x20spac\ + e\x20at\x20the\x20end.\n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04\\\x02R\ + \x03\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\x15\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\ + \\\x18\x19\n\xad\x01\n\x02\x04\x03\x12\x05b\0\xa8\x01\x01\x1a\x9f\x01\ + \x20Configuration\x20for\x20an\x20authentication\x20provider,\x20includi\ + ng\x20support\x20for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)](https://tool\ + s.ietf.org/html/draft-ietf-oauth-json-web-token-32).\n\n\n\n\x03\x04\x03\ + \x01\x12\x03b\x08\x14\n\x92\x01\n\x04\x04\x03\x02\0\x12\x03g\x02\x10\x1a\ + \x84\x01\x20The\x20unique\x20identifier\x20of\x20the\x20auth\x20provider\ + .\x20It\x20will\x20be\x20referred\x20to\x20by\n\x20`AuthRequirement.prov\ + ider_id`.\n\n\x20Example:\x20\"bookstore_auth\".\n\n\r\n\x05\x04\x03\x02\ + \0\x04\x12\x04g\x02b\x16\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03g\x02\x08\ + \n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03g\t\x0b\n\x0c\n\x05\x04\x03\x02\0\ + \x03\x12\x03g\x0e\x0f\n\x95\x02\n\x04\x04\x03\x02\x01\x12\x03o\x02\x14\ + \x1a\x87\x02\x20Identifies\x20the\x20principal\x20that\x20issued\x20the\ + \x20JWT.\x20See\n\x20https://tools.ietf.org/html/draft-ietf-oauth-json-w\ + eb-token-32#section-4.1.1\n\x20Usually\x20a\x20URL\x20or\x20an\x20email\ + \x20address.\n\n\x20Example:\x20https://securetoken.google.com\n\x20Exam\ + ple:\x201234567-compute@developer.gserviceaccount.com\n\n\r\n\x05\x04\ + \x03\x02\x01\x04\x12\x04o\x02g\x10\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\x0f\n\x0c\n\x05\ + \x04\x03\x02\x01\x03\x12\x03o\x12\x13\n\xf5\x03\n\x04\x04\x03\x02\x02\ + \x12\x03}\x02\x16\x1a\xe7\x03\x20URL\x20of\x20the\x20provider's\x20publi\ + c\x20key\x20set\x20to\x20validate\x20signature\x20of\x20the\x20JWT.\x20S\ + ee\n\x20[OpenID\n\x20Discovery](https://openid.net/specs/openid-connect-\ + discovery-1_0.html#ProviderMetadata).\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\x20inferred\x20from\x20the\x20email\x20domain\ + \x20of\x20the\x20issuer\x20(e.g.\x20a\x20Google\n\x20\x20service\x20acco\ + unt).\n\n\x20Example:\x20https://www.googleapis.com/oauth2/v1/certs\n\n\ + \r\n\x05\x04\x03\x02\x02\x04\x12\x04}\x02o\x14\n\x0c\n\x05\x04\x03\x02\ + \x02\x05\x12\x03}\x02\x08\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\x03}\t\x11\ + \n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03}\x14\x15\n\xee\x05\n\x04\x04\ + \x03\x02\x03\x12\x04\x90\x01\x02\x17\x1a\xdf\x05\x20The\x20list\x20of\ + \x20JWT\n\x20[audiences](https://tools.ietf.org/html/draft-ietf-oauth-js\ + on-web-token-32#section-4.1.3).\n\x20that\x20are\x20allowed\x20to\x20acc\ + ess.\x20A\x20JWT\x20containing\x20any\x20of\x20these\x20audiences\x20wil\ + l\n\x20be\x20accepted.\x20When\x20this\x20setting\x20is\x20absent,\x20JW\ + Ts\x20with\x20audiences:\n\x20\x20\x20-\x20\"https://[service.name]/[goo\ + gle.protobuf.Api.name]\"\n\x20\x20\x20-\x20\"https://[service.name]/\"\n\ + \x20will\x20be\x20accepted.\n\x20For\x20example,\x20if\x20no\x20audience\ + s\x20are\x20in\x20the\x20setting,\x20LibraryService\x20API\x20will\n\x20\ + accept\x20JWTs\x20with\x20the\x20following\x20audiences:\n\x20\x20\x20-\ + \n\x20\x20\x20https://library-example.googleapis.com/google.example.libr\ + ary.v1.LibraryService\n\x20\x20\x20-\x20https://library-example.googleap\ + is.com/\n\n\x20Example:\n\n\x20\x20\x20\x20\x20audiences:\x20bookstore_a\ + ndroid.apps.googleusercontent.com,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20bookstore_web.apps.googleusercontent.com\n\n\ + \x0e\n\x05\x04\x03\x02\x03\x04\x12\x05\x90\x01\x02}\x16\n\r\n\x05\x04\ + \x03\x02\x03\x05\x12\x04\x90\x01\x02\x08\n\r\n\x05\x04\x03\x02\x03\x01\ + \x12\x04\x90\x01\t\x12\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\x90\x01\x15\ + \x16\n\x99\x01\n\x04\x04\x03\x02\x04\x12\x04\x94\x01\x02\x1f\x1a\x8a\x01\ + \x20Redirect\x20URL\x20if\x20JWT\x20token\x20is\x20required\x20but\x20no\ + t\x20present\x20or\x20is\x20expired.\n\x20Implement\x20authorizationUrl\ + \x20of\x20securityDefinitions\x20in\x20OpenAPI\x20spec.\n\n\x0f\n\x05\ + \x04\x03\x02\x04\x04\x12\x06\x94\x01\x02\x90\x01\x17\n\r\n\x05\x04\x03\ + \x02\x04\x05\x12\x04\x94\x01\x02\x08\n\r\n\x05\x04\x03\x02\x04\x01\x12\ + \x04\x94\x01\t\x1a\n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\x94\x01\x1d\x1e\ + \n\xd8\x04\n\x04\x04\x03\x02\x05\x12\x04\xa7\x01\x02)\x1a\xc9\x04\x20Def\ + ines\x20the\x20locations\x20to\x20extract\x20the\x20JWT.\n\n\x20JWT\x20l\ + ocations\x20can\x20be\x20either\x20from\x20HTTP\x20headers\x20or\x20URL\ + \x20query\x20parameters.\n\x20The\x20rule\x20is\x20that\x20the\x20first\ + \x20match\x20wins.\x20The\x20checking\x20order\x20is:\x20checking\n\x20a\ + ll\x20headers\x20first,\x20then\x20URL\x20query\x20parameters.\n\n\x20If\ + \x20not\x20specified,\x20\x20default\x20to\x20use\x20following\x203\x20l\ + ocations:\n\x20\x20\x20\x201)\x20Authorization:\x20Bearer\n\x20\x20\x20\ + \x202)\x20x-goog-iap-jwt-assertion\n\x20\x20\x20\x203)\x20access_token\ + \x20query\x20parameter\n\n\x20Default\x20locations\x20can\x20be\x20speci\ + fied\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-asser\ + tion\n\x20\x20\x20\x20-\x20query:\x20access_token\n\n\r\n\x05\x04\x03\ + \x02\x05\x04\x12\x04\xa7\x01\x02\n\n\r\n\x05\x04\x03\x02\x05\x06\x12\x04\ + \xa7\x01\x0b\x16\n\r\n\x05\x04\x03\x02\x05\x01\x12\x04\xa7\x01\x17$\n\r\ + \n\x05\x04\x03\x02\x05\x03\x12\x04\xa7\x01'(\n\xe7\x07\n\x02\x04\x04\x12\ + \x06\xbc\x01\0\xc5\x01\x01\x1a\xd8\x07\x20OAuth\x20scopes\x20are\x20a\ + \x20way\x20to\x20define\x20data\x20and\x20permissions\x20on\x20data.\x20\ + For\x20example,\n\x20there\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\x20application,\n\x20giving\x20it\x20permission\x20to\x20a\ + ccess\x20that\x20data\x20on\x20their\x20behalf.\n\n\x20OAuth\x20scope\ + \x20specifications\x20should\x20be\x20fairly\x20coarse\x20grained;\x20a\ + \x20user\x20will\x20need\n\x20to\x20see\x20and\x20understand\x20the\x20t\ + ext\x20description\x20of\x20what\x20your\x20scope\x20means.\n\n\x20In\ + \x20most\x20cases:\x20use\x20one\x20or\x20at\x20most\x20two\x20OAuth\x20\ + scopes\x20for\x20an\x20entire\x20family\x20of\n\x20products.\x20If\x20yo\ + ur\x20product\x20has\x20multiple\x20APIs,\x20you\x20should\x20probably\ + \x20be\x20sharing\n\x20the\x20OAuth\x20scope\x20across\x20all\x20of\x20t\ + hose\x20APIs.\n\n\x20When\x20you\x20need\x20finer\x20grained\x20OAuth\ + \x20consent\x20screens:\x20talk\x20with\x20your\x20product\n\x20manageme\ + nt\x20about\x20how\x20developers\x20will\x20use\x20them\x20in\x20practic\ + e.\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\x20req\ + uest\x20can\x20still\x20fail\n\x20due\x20to\x20the\x20backend\x20requiri\ + ng\x20additional\x20scopes\x20or\x20permissions.\n\n\x0b\n\x03\x04\x04\ + \x01\x12\x04\xbc\x01\x08\x19\n\xab\x02\n\x04\x04\x04\x02\0\x12\x04\xc4\ + \x01\x02\x1e\x1a\x9c\x02\x20The\x20list\x20of\x20publicly\x20documented\ + \x20OAuth\x20scopes\x20that\x20are\x20allowed\x20access.\x20An\n\x20OAut\ + h\x20token\x20containing\x20any\x20of\x20these\x20scopes\x20will\x20be\ + \x20accepted.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20\x20canonical_scope\ + s:\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\x0f\n\x05\x04\x04\ + \x02\0\x04\x12\x06\xc4\x01\x02\xbc\x01\x1b\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\ + \x19\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xc4\x01\x1c\x1d\n\xaa\x01\n\x02\ + \x04\x05\x12\x06\xca\x01\0\xe3\x01\x01\x1a\x9b\x01\x20User-defined\x20au\ + thentication\x20requirements,\x20including\x20support\x20for\n\x20[JSON\ + \x20Web\x20Token\n\x20(JWT)](https://tools.ietf.org/html/draft-ietf-oaut\ + h-json-web-token-32).\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xca\x01\x08\x17\ + \n{\n\x04\x04\x05\x02\0\x12\x04\xd0\x01\x02\x19\x1am\x20[id][google.api.\ + AuthProvider.id]\x20from\x20authentication\x20provider.\n\n\x20Example:\ + \n\n\x20\x20\x20\x20\x20provider_id:\x20bookstore_auth\n\n\x0f\n\x05\x04\ + \x05\x02\0\x04\x12\x06\xd0\x01\x02\xca\x01\x19\n\r\n\x05\x04\x05\x02\0\ + \x05\x12\x04\xd0\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xd0\x01\ + \t\x14\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xd0\x01\x17\x18\n\xc0\x06\n\ + \x04\x04\x05\x02\x01\x12\x04\xe2\x01\x02\x17\x1a\xb1\x06\x20NOTE:\x20Thi\ + s\x20will\x20be\x20deprecated\x20soon,\x20once\x20AuthProvider.audiences\ + \x20is\n\x20implemented\x20and\x20accepted\x20in\x20all\x20the\x20runtim\ + e\x20components.\n\n\x20The\x20list\x20of\x20JWT\n\x20[audiences](https:\ + //tools.ietf.org/html/draft-ietf-oauth-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,\x20only\x20JWTs\x20with\x20audience\ + \n\x20\"https://[Service_name][google.api.Service.name]/[API_name][googl\ + e.protobuf.Api.name]\"\n\x20will\x20be\x20accepted.\x20For\x20example,\ + \x20if\x20no\x20audiences\x20are\x20in\x20the\x20setting,\n\x20LibrarySe\ + rvice\x20API\x20will\x20only\x20accept\x20JWTs\x20with\x20the\x20followi\ + ng\x20audience\n\x20\"https://library-example.googleapis.com/google.exam\ + ple.library.v1.LibraryService\".\n\n\x20Example:\n\n\x20\x20\x20\x20\x20\ + audiences:\x20bookstore_android.apps.googleusercontent.com,\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bookstore_web.ap\ + ps.googleusercontent.com\n\n\x0f\n\x05\x04\x05\x02\x01\x04\x12\x06\xe2\ + \x01\x02\xd0\x01\x19\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\xe2\x01\x02\ + \x08\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xe2\x01\t\x12\n\r\n\x05\x04\ + \x05\x02\x01\x03\x12\x04\xe2\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/backend.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/backend.rs new file mode 100644 index 0000000000..2e0729dde9 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/backend.rs @@ -0,0 +1,952 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/backend.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Backend { + // 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 Backend { + fn default() -> &'a Backend { + ::default_instance() + } +} + +impl Backend { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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() -> 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 default_instance() -> &'static Backend { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Backend::new) + } +} + +impl ::protobuf::Clear for Backend { + fn clear(&mut self) { + self.rules.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct BackendRule { + // message fields + pub selector: ::std::string::String, + pub address: ::std::string::String, + pub deadline: f64, + pub min_deadline: f64, + pub operation_deadline: f64, + pub path_translation: BackendRule_PathTranslation, + pub protocol: ::std::string::String, + // message oneof groups + pub authentication: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a BackendRule { + fn default() -> &'a BackendRule { + ::default_instance() + } +} + +#[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 { + match self.authentication { + ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(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, + _ => 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)) + } + + // 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 { + } else { + self.authentication = ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(::std::string::String::new())); + } + match self.authentication { + ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // 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()) + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + 6 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.path_translation, 6, &mut self.unknown_fields)? + }, + 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()?)); + }, + 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()?)); + }, + 9 => { + ::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.selector.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.selector); + } + if !self.address.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.address); + } + if self.deadline != 0. { + my_size += 9; + } + if self.min_deadline != 0. { + my_size += 9; + } + 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); + } + if !self.protocol.is_empty() { + my_size += ::protobuf::rt::string_size(9, &self.protocol); + } + if let ::std::option::Option::Some(ref v) = self.authentication { + match v { + &BackendRule_oneof_authentication::jwt_audience(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 + } + + 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.address.is_empty() { + os.write_string(2, &self.address)?; + } + if self.deadline != 0. { + os.write_double(3, self.deadline)?; + } + if self.min_deadline != 0. { + os.write_double(4, self.min_deadline)?; + } + 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 let ::std::option::Option::Some(ref v) = self.authentication { + match v { + &BackendRule_oneof_authentication::jwt_audience(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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 }, + )); + ::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.authentication = ::std::option::Option::None; + self.authentication = ::std::option::Option::None; + self.protocol.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum BackendRule_PathTranslation { + PATH_TRANSLATION_UNSPECIFIED = 0, + CONSTANT_ADDRESS = 1, + APPEND_PATH_TO_ADDRESS = 2, +} + +impl ::protobuf::ProtobufEnum for BackendRule_PathTranslation { + fn value(&self) -> i32 { + *self as i32 + } + + 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 + } + } + + 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 + } + + 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()) + }) + } +} + +impl ::std::marker::Copy for BackendRule_PathTranslation { +} + +impl ::std::default::Default for BackendRule_PathTranslation { + fn default() -> Self { + BackendRule_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)) + } +} + +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\"\ + \xe4\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\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\x12#\ + \n\x0cdisable_auth\x18\x08\x20\x01(\x08H\0R\x0bdisableAuth\x12\x1a\n\x08\ + protocol\x18\t\x20\x01(\tR\x08protocol\"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\x0eauthenticatio\ + nBn\n\x0ecom.google.apiB\x0cBackendProtoP\x01ZEgoogle.golang.org/genprot\ + o/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xa04\n\x07\ + \x12\x05\x0e\0\xb5\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ + \x04\x20Copyright\x202020\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\"\nH\n\x02\x04\0\ + \x12\x04\x19\0\x1e\x01\x1a<\x20`Backend`\x20defines\x20the\x20backend\ + \x20configuration\x20for\x20a\x20service.\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\x20rules\x20that\x20apply\x20to\ + \x20individual\x20API\x20methods.\n\n\x20**NOTE:**\x20All\x20service\x20\ + configuration\x20rules\x20follow\x20\"last\x20one\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\xb5\x01\x01\x1aF\x20A\x20backend\x20rule\x20provides\x20configur\ + ation\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)\x02Y\x03\ + \x1a\xbe\x02\x20Path\x20Translation\x20specifies\x20how\x20to\x20combine\ + \x20the\x20backend\x20address\x20with\x20the\n\x20request\x20path\x20in\ + \x20order\x20to\x20produce\x20the\x20appropriate\x20forwarding\x20URL\ + \x20for\x20the\n\x20request.\n\n\x20Path\x20Translation\x20is\x20applica\ + ble\x20only\x20to\x20HTTP-based\x20backends.\x20Backends\x20which\n\x20d\ + o\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\x20address\x20as-is,\x20with\ + \x20no\x20modification\x20to\x20the\x20path.\x20If\x20the\n\x20URL\x20pa\ + ttern\x20contains\x20variables,\x20the\x20variable\x20names\x20and\x20va\ + lues\x20will\x20be\n\x20appended\x20to\x20the\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\x20query\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/ap\ + i/company/{cid}/user/{uid}\n\x20\x20\x20\x20\x20Backend\x20address:\x20\ + \x20\x20\x20https://example.cloudfunctions.net/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/user/johndoe\n\x20\x20\ + \x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://example.cloudfuncti\ + ons.net/getUser?cid=widgetworks&uid=johndoe\n\n\x20\x20\x20\x20\x20Reque\ + st\x20path:\x20/api/company/widgetworks/user/johndoe?timezone=EST\n\x20\ + \x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://example.cloudfu\ + nctions.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\x20path\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/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?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\x03X\x04\x1a\n\ + \x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03X\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\r\n\x05\x04\x01\x02\0\x04\x12\x04^\x02Y\x03\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\x03t\x02\x15\x1a\x8b\x05\x20The\x20address\x20of\x20the\x20\ + API\x20backend.\n\n\x20The\x20scheme\x20is\x20used\x20to\x20determine\ + \x20the\x20backend\x20protocol\x20and\x20security.\n\x20The\x20following\ + \x20schemes\x20are\x20accepted:\n\n\x20\x20\x20\x20SCHEME\x20\x20\x20\ + \x20\x20\x20\x20\x20PROTOCOL\x20\x20\x20\x20SECURITY\n\x20\x20\x20\x20ht\ + tp://\x20\x20\x20\x20\x20\x20\x20HTTP\x20\x20\x20\x20\x20\x20\x20\x20Non\ + e\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\x20\ + gRPC\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.\x20\ + Leaving\x20out\x20the\x20scheme\n\x20may\x20cause\x20constrasting\x20beh\ + aviors\x20across\x20platforms.\n\n\x20If\x20the\x20port\x20is\x20unspeci\ + fied,\x20the\x20default\x20is:\n\x20-\x2080\x20for\x20schemes\x20without\ + \x20TLS\n\x20-\x20443\x20for\x20schemes\x20with\x20TLS\n\n\x20For\x20HTT\ + P\x20backends,\x20use\x20[protocol][google.api.BackendRule.protocol]\n\ + \x20to\x20specify\x20the\x20protocol\x20version.\n\n\r\n\x05\x04\x01\x02\ + \x01\x04\x12\x04t\x02^\x16\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03t\x02\ + \x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03t\t\x10\n\x0c\n\x05\x04\x01\ + \x02\x01\x03\x12\x03t\x13\x14\n\x9a\x01\n\x04\x04\x01\x02\x02\x12\x03x\ + \x02\x16\x1a\x8c\x01\x20The\x20number\x20of\x20seconds\x20to\x20wait\x20\ + for\x20a\x20response\x20from\x20a\x20request.\x20The\x20default\n\x20var\ + ies\x20based\x20on\x20the\x20request\x20protocol\x20and\x20deployment\ + \x20environment.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04x\x02t\x15\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\x11\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03x\x14\x15\n\ + \x81\x01\n\x04\x04\x01\x02\x03\x12\x03|\x02\x1a\x1at\x20Minimum\x20deadl\ + ine\x20in\x20seconds\x20needed\x20for\x20this\x20method.\x20Calls\x20hav\ + ing\x20deadline\n\x20value\x20lower\x20than\x20this\x20will\x20be\x20rej\ + ected.\n\n\r\n\x05\x04\x01\x02\x03\x04\x12\x04|\x02x\x16\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\nz\n\x04\ + \x04\x01\x02\x04\x12\x04\x80\x01\x02\x20\x1al\x20The\x20number\x20of\x20\ + seconds\x20to\x20wait\x20for\x20the\x20completion\x20of\x20a\x20long\x20\ + running\n\x20operation.\x20The\x20default\x20is\x20no\x20deadline.\n\n\ + \x0e\n\x05\x04\x01\x02\x04\x04\x12\x05\x80\x01\x02|\x1a\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\x0f\n\x05\x04\ + \x01\x02\x05\x04\x12\x06\x82\x01\x02\x80\x01\x20\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\x20Auth\ + entication\x20settings\x20used\x20by\x20the\x20backend.\n\n\x20These\x20\ + are\x20typically\x20used\x20to\x20provide\x20service\x20management\x20fu\ + nctionality\x20to\n\x20a\x20backend\x20served\x20on\x20a\x20publicly-rou\ + table\x20URL.\x20The\x20`authentication`\n\x20details\x20should\x20match\ + \x20the\x20authentication\x20behavior\x20used\x20by\x20the\x20backend.\n\ + \n\x20For\x20example,\x20specifying\x20`jwt_audience`\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`disable_auth`\x20set\x20to\ + \x20`true`.\n\n\x20Refer\x20to\x20https://developers.google.com/identity\ + /protocols/OpenIDConnect\x20for\n\x20JWT\x20ID\x20token.\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\x20\ + used\x20when\x20generating\x20a\x20JWT\x20ID\x20token\x20for\x20the\x20b\ + ackend.\n\x20This\x20ID\x20token\x20will\x20be\x20added\x20in\x20the\x20\ + HTTP\x20\"authorization\"\x20header,\x20and\x20sent\n\x20to\x20the\x20ba\ + ckend.\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\x20is\x20true,\x20a\x20\ + JWT\x20ID\x20token\x20won't\x20be\x20generated\x20and\x20the\n\x20origin\ + al\x20\"Authorization\"\x20HTTP\x20header\x20will\x20be\x20preserved.\ + \x20If\x20the\x20header\x20is\n\x20used\x20to\x20carry\x20the\x20origina\ + l\x20token\x20and\x20is\x20expected\x20by\x20the\x20backend,\x20this\n\ + \x20field\x20must\x20be\x20set\x20to\x20true\x20to\x20preserve\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\x20sendin\ + g\x20a\x20request\x20to\x20the\x20backend.\n\x20The\x20supported\x20valu\ + es\x20are\x20\"http/1.1\"\x20and\x20\"h2\".\n\n\x20The\x20default\x20val\ + ue\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\x20perfo\ + rmance.\n\n\x20Configuring\x20this\x20field\x20to\x20non-default\x20valu\ + es\x20is\x20only\x20supported\x20for\x20secure\n\x20HTTP\x20backends.\ + \x20This\x20field\x20will\x20be\x20ignored\x20for\x20all\x20other\x20bac\ + kends.\n\n\x20See\n\x20https://www.iana.org/assignments/tls-extensiontyp\ + e-values/tls-extensiontype-values.xhtml#alpn-protocol-ids\n\x20for\x20mo\ + re\x20details\x20on\x20the\x20supported\x20values.\n\n\x0f\n\x05\x04\x01\ + \x02\x08\x04\x12\x06\xb4\x01\x02\x9d\x01\x03\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\x15b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/billing.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/billing.rs new file mode 100644 index 0000000000..a5b24b2651 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/billing.rs @@ -0,0 +1,486 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/billing.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Billing { + // message fields + pub consumer_destinations: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Billing { + fn default() -> &'a Billing { + ::default_instance() + } +} + +impl Billing { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.consumer_destinations { + 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.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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Billing { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Billing::new) + } +} + +impl ::protobuf::Clear for Billing { + fn clear(&mut self) { + self.consumer_destinations.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[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()) + } + + // repeated string metrics = 2; + + + pub fn get_metrics(&self) -> &[::std::string::String] { + &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<::std::string::String>) { + self.metrics = v; + } + + // 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()) + } +} + +impl ::protobuf::Message for Billing_BillingDestination { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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())?; + }, + }; + } + ::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); + } + 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)?; + } + 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 new() -> Billing_BillingDestination { + Billing_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 default_instance() -> &'static Billing_BillingDestination { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Billing_BillingDestination::new) + } +} + +impl ::protobuf::Clear for Billing_BillingDestination { + fn clear(&mut self) { + self.monitored_resource.clear(); + self.metrics.clear(); + self.unknown_fields.clear(); + } +} + +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 ::protobuf::reflect::ProtobufValue for Billing_BillingDestination { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +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\ + \xc2\x16\n\x06\x12\x04\x0e\0L\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\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\xe7\t\n\x02\x04\0\x12\x04:\0L\x01\x1a\xda\t\x20B\ + illing\x20related\x20configuration\x20of\x20the\x20service.\n\n\x20The\ + \x20following\x20example\x20shows\x20how\x20to\x20configure\x20monitored\ + \x20resources\x20and\x20metrics\n\x20for\x20billing,\x20`consumer_destin\ + ations`\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\x20locati\ + on\x20of\x20the\x20billing\n\x20usage,\x20using\x20different\x20monitore\ + d\x20resources\x20between\x20monitoring\x20and\x20billing\x20is\n\x20rec\ + ommended\x20so\x20they\x20can\x20be\x20evolved\x20independently:\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\x20l\ + abels:\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20cloud.googleapis.com/lo\ + cation\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\x20description:\x20|\ + \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Custom\x20label\x20to\x20d\ + efine\x20the\x20city\x20where\x20the\x20library\x20branch\x20is\x20locat\ + ed\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\x20descr\ + iption:\x20Custom\x20label\x20to\x20define\x20the\x20name\x20of\x20the\ + \x20library\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\x20v\ + alue_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\x20consumer_destinati\ + ons:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource:\x20library.go\ + ogleapis.com/billing_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/\ + borrowed_count\n\n\n\n\x03\x04\0\x01\x12\x03:\x08\x0f\nx\n\x04\x04\0\x03\ + \0\x12\x04=\x02E\x03\x1aj\x20Configuration\x20of\x20a\x20specific\x20bil\ + ling\x20destination\x20(Currently\x20only\x20support\n\x20bill\x20agains\ + t\x20consumer\x20project).\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03=\n\x1c\ + \n\x9a\x01\n\x06\x04\0\x03\0\x02\0\x12\x03@\x04\"\x1a\x8a\x01\x20The\x20\ + monitored\x20resource\x20type.\x20The\x20type\x20must\x20be\x20defined\ + \x20in\n\x20[Service.monitored_resources][google.api.Service.monitored_r\ + esources]\x20section.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04@\x04=\ + \x1e\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\xa2\x01\n\x06\x04\0\x03\0\x02\x01\x12\x03D\x04\x20\x1a\x92\ + \x01\x20Names\x20of\x20the\x20metrics\x20to\x20report\x20to\x20this\x20b\ + illing\x20destination.\n\x20Each\x20name\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\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\x20configuration\ + s\x20for\x20sending\x20metrics\x20to\x20the\x20consumer\x20project.\n\ + \x20There\x20can\x20be\x20multiple\x20consumer\x20destinations\x20per\ + \x20service,\x20each\x20one\x20must\x20have\n\x20a\x20different\x20monit\ + ored\x20resource\x20type.\x20A\x20metric\x20can\x20be\x20used\x20in\x20a\ + t\x20most\n\x20one\x20consumer\x20destination.\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\x03K6\ + 7b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/client.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/client.rs new file mode 100644 index 0000000000..421152d645 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/client.rs @@ -0,0 +1,130 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/client.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_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 default_host: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::protobuf::types::ProtobufTypeString> = ::protobuf::ext::ExtFieldOptional { field_number: 1049, phantom: ::std::marker::PhantomData }; + + pub const oauth_scopes: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::protobuf::types::ProtobufTypeString> = ::protobuf::ext::ExtFieldOptional { field_number: 1050, phantom: ::std::marker::PhantomData }; +} + +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\xac\x17\n\x06\x12\x04\x0e\0b\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\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\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\x1a\ + \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\x04A\0b\x01\n\xca\x01\n\x02\x07\x01\x12\x03K\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\x03A\ + \x07%\n\x0b\n\x03\x07\x01\x04\x12\x04K\x02A'\n\n\n\x03\x07\x01\x05\x12\ + \x03K\x02\x08\n\n\n\x03\x07\x01\x01\x12\x03K\t\x15\n\n\n\x03\x07\x01\x03\ + \x12\x03K\x18\x1c\n\xc3\x03\n\x02\x07\x02\x12\x03a\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\x20more\x20than\x20one\x20scope,\x20u\ + se\x20a\x20comma-separated\x20string:\n\n\x20Example:\n\n\x20\x20\x20ser\ + vice\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/a\ + uth/cloud-platform,\"\n\x20\x20\x20\x20\x20\x20\x20\"https://www.googlea\ + pis.com/auth/monitoring\";\n\x20\x20\x20\x20\x20...\n\x20\x20\x20}\n\n\n\ + \n\x03\x07\x02\x02\x12\x03A\x07%\n\x0b\n\x03\x07\x02\x04\x12\x04a\x02K\ + \x1d\n\n\n\x03\x07\x02\x05\x12\x03a\x02\x08\n\n\n\x03\x07\x02\x01\x12\ + \x03a\t\x15\n\n\n\x03\x07\x02\x03\x12\x03a\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/config_change.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/config_change.rs new file mode 100644 index 0000000000..8a7ea2fcde --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/config_change.rs @@ -0,0 +1,675 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/config_change.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct ConfigChange { + // message fields + pub element: ::std::string::String, + pub old_value: ::std::string::String, + pub new_value: ::std::string::String, + pub change_type: ChangeType, + pub advices: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ConfigChange { + fn default() -> &'a ConfigChange { + ::default_instance() + } +} + +impl ConfigChange { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.old_value)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.new_value)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.change_type, 4, &mut self.unknown_fields)? + }, + 5 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.advices)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.element.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.element); + } + if !self.old_value.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.old_value); + } + 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); + } + for value in &self.advices { + 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.element.is_empty() { + os.write_string(1, &self.element)?; + } + if !self.old_value.is_empty() { + os.write_string(2, &self.old_value)?; + } + 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))?; + } + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static ConfigChange { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ConfigChange::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Advice { + // message fields + pub description: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Advice { + fn default() -> &'a Advice { + ::default_instance() + } +} + +impl Advice { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Advice { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Advice::new) + } +} + +impl ::protobuf::Clear for Advice { + fn clear(&mut self) { + self.description.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum ChangeType { + CHANGE_TYPE_UNSPECIFIED = 0, + ADDED = 1, + REMOVED = 2, + MODIFIED = 3, +} + +impl ::protobuf::ProtobufEnum for ChangeType { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ChangeType::CHANGE_TYPE_UNSPECIFIED), + 1 => ::std::option::Option::Some(ChangeType::ADDED), + 2 => ::std::option::Option::Some(ChangeType::REMOVED), + 3 => ::std::option::Option::Some(ChangeType::MODIFIED), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [ChangeType] = &[ + ChangeType::CHANGE_TYPE_UNSPECIFIED, + ChangeType::ADDED, + ChangeType::REMOVED, + ChangeType::MODIFIED, + ]; + 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::("ChangeType", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for ChangeType { +} + +impl ::std::default::Default for ChangeType { + fn default() -> Self { + ChangeType::CHANGE_TYPE_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for ChangeType { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1egoogle/api/config_change.proto\x12\ngoogle.api\"\xc9\x01\n\x0cConf\ + igChange\x12\x18\n\x07element\x18\x01\x20\x01(\tR\x07element\x12\x1b\n\t\ + old_value\x18\x02\x20\x01(\tR\x08oldValue\x12\x1b\n\tnew_value\x18\x03\ + \x20\x01(\tR\x08newValue\x127\n\x0bchange_type\x18\x04\x20\x01(\x0e2\x16\ + .google.api.ChangeTypeR\nchangeType\x12,\n\x07advices\x18\x05\x20\x03(\ + \x0b2\x12.google.api.AdviceR\x07advices\"*\n\x06Advice\x12\x20\n\x0bdesc\ + ription\x18\x02\x20\x01(\tR\x0bdescription*O\n\nChangeType\x12\x1b\n\x17\ + 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\xb0\x19\n\x06\x12\x04\x0e\0S\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\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\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\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\ + \x20selector,\x20name,\x20or\x20id).\x20For\x20maps,\x20the\x20term\n\ + \x20'key'\x20is\x20used.\x20If\x20the\x20field\x20has\x20no\x20unique\ + \x20identifier,\x20the\x20numeric\x20index\n\x20is\x20used.\n\x20Example\ + 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\r\n\x05\x04\0\x02\0\x04\x12\x04(\x02\x1e\x16\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\x20the\x20changed\x20object\ + \x20in\x20the\x20old\x20Service\x20configuration,\n\x20in\x20JSON\x20for\ + mat.\x20This\x20field\x20will\x20not\x20be\x20populated\x20if\x20ChangeT\ + ype\x20==\x20ADDED.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04,\x02(\x15\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\x20\ + the\x20changed\x20object\x20in\x20the\x20new\x20Service\x20configuration\ + ,\n\x20in\x20JSON\x20format.\x20This\x20field\x20will\x20not\x20be\x20po\ + pulated\x20if\x20ChangeType\x20==\x20REMOVED.\n\n\r\n\x05\x04\0\x02\x02\ + \x04\x12\x040\x02,\x17\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\r\n\x05\x04\0\x02\x03\x04\x12\x043\x020\x17\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\x20pr\ + ovided\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\x20change,\x20used\x20f\ + or\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?\x02\x19\x1a\ + u\x20Useful\x20description\x20for\x20why\x20this\x20advice\x20was\x20app\ + lied\x20and\x20what\x20actions\x20should\n\x20be\x20taken\x20to\x20mitig\ + ate\x20any\x20implied\x20risks.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04?\ + \x02<\x10\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\x01\x1aV\x20Classifies\x20set\x20of\x20p\ + ossible\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\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\x20exists\x20in\x20the\x20'new'\x20service\x20conf\ + iguration,\x20but\x20not\n\x20in\x20the\x20'old'\x20service\x20configura\ + tion.\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\x20object\x20exists\x20in\x20the\x20'old'\x20service\ + \x20configuration,\x20but\x20not\n\x20in\x20the\x20'new'\x20service\x20c\ + onfiguration.\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\x20changed\x20object\x20exists\x20in\x20both\x20service\ + \x20configurations,\x20but\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/consumer.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/consumer.rs new file mode 100644 index 0000000000..edba332e55 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/consumer.rs @@ -0,0 +1,583 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/consumer.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct ProjectProperties { + // message fields + pub properties: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ProjectProperties { + fn default() -> &'a ProjectProperties { + ::default_instance() + } +} + +impl ProjectProperties { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.properties { + 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.properties { + 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() -> 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 default_instance() -> &'static ProjectProperties { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ProjectProperties::new) + } +} + +impl ::protobuf::Clear for ProjectProperties { + fn clear(&mut self) { + self.properties.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Property { + // message fields + pub name: ::std::string::String, + pub field_type: Property_PropertyType, + pub description: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Property { + fn default() -> &'a Property { + ::default_instance() + } +} + +impl Property { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.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.field_type != Property_PropertyType::UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(2, self.field_type); + } + 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.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.description.is_empty() { + os.write_string(3, &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() -> 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 default_instance() -> &'static Property { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Property::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum Property_PropertyType { + UNSPECIFIED = 0, + INT64 = 1, + BOOL = 2, + STRING = 3, + DOUBLE = 4, +} + +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(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 values() -> &'static [Self] { + static values: &'static [Property_PropertyType] = &[ + Property_PropertyType::UNSPECIFIED, + Property_PropertyType::INT64, + Property_PropertyType::BOOL, + Property_PropertyType::STRING, + Property_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 ::std::marker::Copy for Property_PropertyType { +} + +impl ::std::default::Default for Property_PropertyType { + fn default() -> Self { + Property_PropertyType::UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for Property_PropertyType { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x19google/api/consumer.proto\x12\ngoogle.api\"I\n\x11ProjectPropertie\ + s\x124\n\nproperties\x18\x01\x20\x03(\x0b2\x14.google.api.PropertyR\npro\ + perties\"\xc5\x01\n\x08Property\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ + \x04name\x125\n\x04type\x18\x02\x20\x01(\x0e2!.google.api.Property.Prope\ + rtyTypeR\x04type\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescrip\ + 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\xe9\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\ + \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\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\xbf\x05\ + \n\x02\x04\0\x12\x04'\0*\x01\x1a\xb2\x05\x20A\x20descriptor\x20for\x20de\ + fining\x20project\x20properties\x20for\x20a\x20service.\x20One\x20servic\ + e\x20may\n\x20have\x20many\x20consumer\x20projects,\x20and\x20the\x20ser\ + vice\x20may\x20want\x20to\x20behave\x20differently\n\x20depending\x20on\ + \x20some\x20properties\x20on\x20the\x20project.\x20For\x20example,\x20a\ + \x20project\x20may\x20be\n\x20associated\x20with\x20a\x20school,\x20or\ + \x20a\x20business,\x20or\x20a\x20government\x20agency,\x20a\x20business\ + \n\x20type\x20property\x20on\x20the\x20project\x20may\x20affect\x20how\ + \x20a\x20service\x20responds\x20to\x20the\x20client.\n\x20This\x20descri\ + ptor\x20defines\x20which\x20properties\x20are\x20allowed\x20to\x20be\x20\ + set\x20on\x20a\x20project.\n\n\x20Example:\n\n\x20\x20\x20\x20project_pr\ + operties:\n\x20\x20\x20\x20\x20\x20properties:\n\x20\x20\x20\x20\x20\x20\ + -\x20name:\x20NO_WATERMARK\n\x20\x20\x20\x20\x20\x20\x20\x20type:\x20BOO\ + L\n\x20\x20\x20\x20\x20\x20\x20\x20description:\x20Allows\x20usage\x20of\ + \x20the\x20API\x20without\x20watermarks.\n\x20\x20\x20\x20\x20\x20-\x20n\ + ame:\x20EXTENDED_TILE_CACHE_PERIOD\n\x20\x20\x20\x20\x20\x20\x20\x20type\ + :\x20INT64\n\n\n\n\x03\x04\0\x01\x12\x03'\x08\x19\n@\n\x04\x04\0\x02\0\ + \x12\x03)\x02#\x1a3\x20List\x20of\x20per\x20consumer\x20project-specific\ + \x20properties.\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\x1e\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03)!\"\n\xe1\x03\n\x02\x04\x01\ + \x12\x046\0Q\x01\x1a\xd4\x03\x20Defines\x20project\x20properties.\n\n\ + \x20API\x20services\x20can\x20define\x20properties\x20that\x20can\x20be\ + \x20assigned\x20to\x20consumer\x20projects\n\x20so\x20that\x20backends\ + \x20can\x20perform\x20response\x20customization\x20without\x20having\x20\ + to\x20make\n\x20additional\x20calls\x20or\x20maintain\x20additional\x20s\ + torage.\x20For\x20example,\x20Maps\x20API\n\x20defines\x20properties\x20\ + that\x20controls\x20map\x20tile\x20cache\x20period,\x20or\x20whether\x20\ + to\x20embed\x20a\n\x20watermark\x20in\x20a\x20result.\n\n\x20These\x20va\ + lues\x20can\x20be\x20set\x20via\x20API\x20producer\x20console.\x20Only\ + \x20API\x20providers\x20can\n\x20define\x20and\x20set\x20these\x20proper\ + ties.\n\n\n\n\x03\x04\x01\x01\x12\x036\x08\x10\n:\n\x04\x04\x01\x04\0\ + \x12\x048\x02G\x03\x1a,\x20Supported\x20data\x20type\x20of\x20the\x20pro\ + perty\x20values\n\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x038\x07\x13\nF\n\ + \x06\x04\x01\x04\0\x02\0\x12\x03:\x04\x14\x1a7\x20The\x20type\x20is\x20u\ + nspecified,\x20and\x20will\x20result\x20in\x20an\x20error.\n\n\x0e\n\x07\ + \x04\x01\x04\0\x02\0\x01\x12\x03:\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\ + \0\x02\x12\x03:\x12\x13\n%\n\x06\x04\x01\x04\0\x02\x01\x12\x03=\x04\x0e\ + \x1a\x16\x20The\x20type\x20is\x20`int64`.\n\n\x0e\n\x07\x04\x01\x04\0\ + \x02\x01\x01\x12\x03=\x04\t\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\ + \x03=\x0c\r\n$\n\x06\x04\x01\x04\0\x02\x02\x12\x03@\x04\r\x1a\x15\x20The\ + \x20type\x20is\x20`bool`.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\ + \x03@\x04\x08\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03@\x0b\x0c\n&\ + \n\x06\x04\x01\x04\0\x02\x03\x12\x03C\x04\x0f\x1a\x17\x20The\x20type\x20\ + is\x20`string`.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x03C\x04\n\n\ + \x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03C\r\x0e\n&\n\x06\x04\x01\x04\ + \0\x02\x04\x12\x03F\x04\x0f\x1a\x17\x20The\x20type\x20is\x20'double'.\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\n4\n\x04\x04\x01\x02\0\x12\x03J\ + \x02\x12\x1a'\x20The\x20name\x20of\x20the\x20property\x20(a.k.a\x20key).\ + \n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04J\x02G\x03\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\r\n\x0c\ + \n\x05\x04\x01\x02\0\x03\x12\x03J\x10\x11\n)\n\x04\x04\x01\x02\x01\x12\ + \x03M\x02\x18\x1a\x1c\x20The\x20type\x20of\x20this\x20property.\n\n\r\n\ + \x05\x04\x01\x02\x01\x04\x12\x04M\x02J\x12\n\x0c\n\x05\x04\x01\x02\x01\ + \x06\x12\x03M\x02\x0e\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03M\x0f\x13\n\ + \x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M\x16\x17\n.\n\x04\x04\x01\x02\x02\ + \x12\x03P\x02\x19\x1a!\x20The\x20description\x20of\x20the\x20property\n\ + \n\r\n\x05\x04\x01\x02\x02\x04\x12\x04P\x02M\x18\n\x0c\n\x05\x04\x01\x02\ + \x02\x05\x12\x03P\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/context.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/context.rs new file mode 100644 index 0000000000..4610b057a2 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/context.rs @@ -0,0 +1,617 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/context.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Context { + // 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 Context { + fn default() -> &'a Context { + ::default_instance() + } +} + +impl Context { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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() -> 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 default_instance() -> &'static Context { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Context::new) + } +} + +impl ::protobuf::Clear for Context { + fn clear(&mut self) { + self.rules.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ContextRule { + // message fields + 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>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ContextRule { + fn default() -> &'a ContextRule { + ::default_instance() + } +} + +impl ContextRule { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.requested)?; + }, + 3 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.provided)?; + }, + 4 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_request_extensions)?; + }, + 5 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_response_extensions)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + for value in &self.requested { + my_size += ::protobuf::rt::string_size(2, &value); + }; + for value in &self.provided { + my_size += ::protobuf::rt::string_size(3, &value); + }; + for value in &self.allowed_request_extensions { + my_size += ::protobuf::rt::string_size(4, &value); + }; + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.selector.is_empty() { + os.write_string(1, &self.selector)?; + } + for v in &self.requested { + os.write_string(2, &v)?; + }; + for v in &self.provided { + os.write_string(3, &v)?; + }; + for v in &self.allowed_request_extensions { + os.write_string(4, &v)?; + }; + for v in &self.allowed_response_extensions { + 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() -> 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(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x18google/api/context.proto\x12\ngoogle.api\"8\n\x07Context\x12-\n\ + \x05rules\x18\x01\x20\x03(\x0b2\x17.google.api.ContextRuleR\x05rules\"\ + \xe1\x01\n\x0bContextRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08s\ + elector\x12\x1c\n\trequested\x18\x02\x20\x03(\tR\trequested\x12\x1a\n\ + \x08provided\x18\x03\x20\x03(\tR\x08provided\x12<\n\x1aallowed_request_e\ + 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\x9a\x17\n\ + \x06\x12\x04\x0e\0X\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\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\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\ + uested:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20google.rpc.context.Pro\ + jectContext\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20google.rpc.context\ + .OriginContext\n\n\x20The\x20above\x20specifies\x20that\x20all\x20method\ + 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\ + 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\ + spb\xe2\x80\x9d\x20format.\x20For\x20example,\x20list\x20any\x20service\ + \n\x20specific\x20protobuf\x20types\x20that\x20can\x20appear\x20in\x20gr\ + pc\x20metadata\x20as\x20follows\x20in\x20your\n\x20yaml\x20file:\n\n\x20\ + Example:\n\n\x20\x20\x20\x20\x20context:\n\x20\x20\x20\x20\x20\x20\x20ru\ + les:\n\x20\x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"google.example\ + .library.v1.LibraryService.CreateBook\"\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20allowed_request_extensions:\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20-\x20google.foo.v1.NewExtension\n\x20\x20\x20\x20\x20\x20\ + \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\ + 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\0X\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\x90\x01\n\x04\x04\x01\x02\0\x12\x03I\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\r\n\x05\x04\x01\x02\0\x04\x12\x04I\x02E\x15\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\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03I\x14\x15\n?\n\ + \x04\x04\x01\x02\x01\x12\x03L\x02\x20\x1a2\x20A\x20list\x20of\x20full\ + \x20type\x20names\x20of\x20requested\x20contexts.\n\n\x0c\n\x05\x04\x01\ + \x02\x01\x04\x12\x03L\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03L\x0b\ + \x11\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03L\x12\x1b\n\x0c\n\x05\x04\ + \x01\x02\x01\x03\x12\x03L\x1e\x1f\n>\n\x04\x04\x01\x02\x02\x12\x03O\x02\ + \x1f\x1a1\x20A\x20list\x20of\x20full\x20type\x20names\x20of\x20provided\ + \x20contexts.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03O\x02\n\n\x0c\n\ + \x05\x04\x01\x02\x02\x05\x12\x03O\x0b\x11\n\x0c\n\x05\x04\x01\x02\x02\ + \x01\x12\x03O\x12\x1a\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03O\x1d\x1e\n\ + }\n\x04\x04\x01\x02\x03\x12\x03S\x021\x1ap\x20A\x20list\x20of\x20full\ + \x20type\x20names\x20or\x20extension\x20IDs\x20of\x20extensions\x20allow\ + ed\x20in\x20grpc\n\x20side\x20channel\x20from\x20client\x20to\x20backend\ + .\n\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03S\x02\n\n\x0c\n\x05\x04\x01\ + \x02\x03\x05\x12\x03S\x0b\x11\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03S\ + \x12,\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03S/0\n}\n\x04\x04\x01\x02\ + \x04\x12\x03W\x022\x1ap\x20A\x20list\x20of\x20full\x20type\x20names\x20o\ + r\x20extension\x20IDs\x20of\x20extensions\x20allowed\x20in\x20grpc\n\x20\ + side\x20channel\x20from\x20backend\x20to\x20client.\n\n\x0c\n\x05\x04\ + \x01\x02\x04\x04\x12\x03W\x02\n\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03W\ + \x0b\x11\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03W\x12-\n\x0c\n\x05\x04\ + \x01\x02\x04\x03\x12\x03W01b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/control.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/control.rs new file mode 100644 index 0000000000..7ef4f065bd --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/control.rs @@ -0,0 +1,231 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/control.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Control { + // message fields + pub environment: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Control { + fn default() -> &'a Control { + ::default_instance() + } +} + +impl Control { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for Control { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.environment.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.environment); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.environment.is_empty() { + os.write_string(1, &self.environment)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Control", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Control { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Control::new) + } +} + +impl ::protobuf::Clear for Control { + fn clear(&mut self) { + self.environment.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +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\xbb\x08\n\x06\x12\x04\x0e\0\x1f\ + \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\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\xb2\x01\n\x02\x04\0\x12\x04\x1b\0\x1f\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\x1b\x08\ + \x0f\n\x84\x01\n\x04\x04\0\x02\0\x12\x03\x1e\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.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04\x1e\x02\x1b\x11\n\ + \x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1e\x02\x08\n\x0c\n\x05\x04\0\x02\0\ + \x01\x12\x03\x1e\t\x14\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1e\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/distribution.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/distribution.rs new file mode 100644 index 0000000000..ce0c1dc19b --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/distribution.rs @@ -0,0 +1,2146 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/distribution.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Distribution { + // message fields + pub count: i64, + pub mean: f64, + pub sum_of_squared_deviation: f64, + pub range: ::protobuf::SingularPtrField, + pub bucket_options: ::protobuf::SingularPtrField, + pub bucket_counts: ::std::vec::Vec, + pub exemplars: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Distribution { + fn default() -> &'a Distribution { + ::default_instance() + } +} + +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 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()) + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + 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; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.range)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_options)?; + }, + 7 => { + ::protobuf::rt::read_repeated_int64_into(wire_type, is, &mut self.bucket_counts)?; + }, + 10 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.exemplars)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.count != 0 { + my_size += ::protobuf::rt::value_size(1, self.count, ::protobuf::wire_format::WireTypeVarint); + } + if self.mean != 0. { + my_size += 9; + } + if self.sum_of_squared_deviation != 0. { + my_size += 9; + } + if let Some(ref v) = self.range.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.bucket_options.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + for value in &self.bucket_counts { + my_size += ::protobuf::rt::value_size(7, *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::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if self.count != 0 { + os.write_int64(1, self.count)?; + } + if self.mean != 0. { + os.write_double(2, self.mean)?; + } + 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(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)?; + } + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 { + 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.; + self.sum_of_squared_deviation = 0.; + self.range.clear(); + self.bucket_options.clear(); + self.bucket_counts.clear(); + self.exemplars.clear(); + self.unknown_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) + } +} + +impl ::protobuf::reflect::ProtobufValue for Distribution { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 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::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; + } + 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)?; + } + 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>( + "min", + |m: &Distribution_Range| { &m.min }, + |m: &mut Distribution_Range| { &mut m.min }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + "max", + |m: &Distribution_Range| { &m.max }, + |m: &mut Distribution_Range| { &mut m.max }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Distribution.Range", + fields, + file_descriptor_proto() + ) + }) + } + + 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::reflect::ProtobufValue for Distribution_Range { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a Distribution_BucketOptions { + fn default() -> &'a Distribution_BucketOptions { + ::default_instance() + } +} + +#[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), +} + +impl Distribution_BucketOptions { + pub fn new() -> Distribution_BucketOptions { + ::std::default::Default::default() + } + + // .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + + + 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(), + } + } + 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, + } + } + + // 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)) + } + + // 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!(), + } + } + + // 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() + } + } + + // .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + + + 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 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, + } + } + + // 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())); + } + match self.options { + ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(ref mut v)) => v, + _ => panic!(), + } + } + + // 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, + _ => panic!(), + } + } else { + Distribution_BucketOptions_Exponential::new() + } + } + + // .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + + + 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 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, + } + } + + // 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())); + } + match self.options { + ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(ref mut v)) => v, + _ => panic!(), + } + } + + // 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, + _ => 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; + } + } + 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; + } + } + true + } + + fn merge_from(&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())?; + }, + }; + } + ::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; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 { + Distribution_BucketOptions::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "linear_buckets", + Distribution_BucketOptions::has_linear_buckets, + Distribution_BucketOptions::get_linear_buckets, + )); + fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_BucketOptions_Exponential>( + "exponential_buckets", + Distribution_BucketOptions::has_exponential_buckets, + Distribution_BucketOptions::get_exponential_buckets, + )); + fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_BucketOptions_Explicit>( + "explicit_buckets", + Distribution_BucketOptions::has_explicit_buckets, + Distribution_BucketOptions::get_explicit_buckets, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "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() + ) + }) + } + + 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); + } + if self.growth_factor != 0. { + my_size += 9; + } + 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)?; + } + 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() + } + + fn new() -> Distribution_BucketOptions_Exponential { + Distribution_BucketOptions_Exponential::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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() + ) + }) + } + + fn default_instance() -> &'static Distribution_BucketOptions_Exponential { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Distribution_BucketOptions_Exponential::new) + } +} + +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 ::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::reflect::ProtobufValue for Distribution_BucketOptions_Exponential { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 Distribution_BucketOptions_Explicit { + fn default() -> &'a Distribution_BucketOptions_Explicit { + ::default_instance() + } +} + +impl Distribution_BucketOptions_Explicit { + pub fn new() -> Distribution_BucketOptions_Explicit { + ::std::default::Default::default() + } + + // repeated double bounds = 1; + + + pub fn get_bounds(&self) -> &[f64] { + &self.bounds + } + pub fn clear_bounds(&mut self) { + self.bounds.clear(); + } + + // Param is passed by value, moved + pub fn set_bounds(&mut self, v: ::std::vec::Vec) { + self.bounds = v; + } + + // Mutable pointer to the field. + pub fn mut_bounds(&mut self) -> &mut ::std::vec::Vec { + &mut self.bounds + } + + // Take field + pub fn take_bounds(&mut self) -> ::std::vec::Vec { + ::std::mem::replace(&mut self.bounds, ::std::vec::Vec::new()) + } +} + +impl ::protobuf::Message for Distribution_BucketOptions_Explicit { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &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(()) + } + + // 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 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 get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_Explicit { + Distribution_BucketOptions_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_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() + ) + }) + } + + fn default_instance() -> &'static Distribution_BucketOptions_Explicit { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Distribution_BucketOptions_Explicit::new) + } +} + +impl ::protobuf::Clear for Distribution_BucketOptions_Explicit { + fn clear(&mut self) { + self.bounds.clear(); + self.unknown_fields.clear(); + } +} + +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) + } +} + +impl ::protobuf::reflect::ProtobufValue for Distribution_BucketOptions_Explicit { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a Distribution_Exemplar { + fn default() -> &'a Distribution_Exemplar { + ::default_instance() + } +} + +impl Distribution_Exemplar { + pub fn new() -> Distribution_Exemplar { + ::std::default::Default::default() + } + + // double value = 1; + + + pub fn get_value(&self) -> f64 { + self.value + } + pub fn clear_value(&mut self) { + self.value = 0.; + } + + // Param is passed by value, moved + pub fn set_value(&mut self, v: f64) { + self.value = v; + } + + // .google.protobuf.Timestamp timestamp = 2; + + + 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()) + } + + // repeated .google.protobuf.Any attachments = 3; + + + pub fn get_attachments(&self) -> &[::protobuf::well_known_types::Any] { + &self.attachments + } + pub fn clear_attachments(&mut self) { + self.attachments.clear(); + } + + // Param is passed by value, moved + pub fn set_attachments(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>) { + self.attachments = v; + } + + // Mutable pointer to the field. + pub fn mut_attachments(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { + &mut self.attachments + } + + // Take field + pub fn take_attachments(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { + ::std::mem::replace(&mut self.attachments, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for Distribution_Exemplar { + fn is_initialized(&self) -> bool { + for v in &self.timestamp { + if !v.is_initialized() { + return false; + } + }; + for v in &self.attachments { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&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())?; + }, + }; + } + ::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; + } + 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)?; + } + 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 + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Distribution_Exemplar { + Distribution_Exemplar::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( + "value", + |m: &Distribution_Exemplar| { &m.value }, + |m: &mut Distribution_Exemplar| { &mut m.value }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "timestamp", + |m: &Distribution_Exemplar| { &m.timestamp }, + |m: &mut Distribution_Exemplar| { &mut m.timestamp }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( + "attachments", + |m: &Distribution_Exemplar| { &m.attachments }, + |m: &mut Distribution_Exemplar| { &mut m.attachments }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Distribution.Exemplar", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Distribution_Exemplar { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Distribution_Exemplar::new) + } +} + +impl ::protobuf::Clear for Distribution_Exemplar { + fn clear(&mut self) { + self.value = 0.; + self.timestamp.clear(); + self.attachments.clear(); + self.unknown_fields.clear(); + } +} + +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 ::protobuf::reflect::ProtobufValue for Distribution_Exemplar { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1dgoogle/api/distribution.proto\x12\ngoogle.api\x1a\x19google/protob\ + uf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x08\n\x0cDistr\ + ibution\x12\x14\n\x05count\x18\x01\x20\x01(\x03R\x05count\x12\x12\n\x04m\ + ean\x18\x02\x20\x01(\x01R\x04mean\x127\n\x18sum_of_squared_deviation\x18\ + \x03\x20\x01(\x01R\x15sumOfSquaredDeviation\x124\n\x05range\x18\x04\x20\ + \x01(\x0b2\x1e.google.api.Distribution.RangeR\x05range\x12M\n\x0ebucket_\ + options\x18\x06\x20\x01(\x0b2&.google.api.Distribution.BucketOptionsR\rb\ + ucketOptions\x12#\n\rbucket_counts\x18\x07\x20\x03(\x03R\x0cbucketCounts\ + \x12?\n\texemplars\x18\n\x20\x03(\x0b2!.google.api.Distribution.Exemplar\ + R\texemplars\x1a+\n\x05Range\x12\x10\n\x03min\x18\x01\x20\x01(\x01R\x03m\ + in\x12\x10\n\x03max\x18\x02\x20\x01(\x01R\x03max\x1a\xb9\x04\n\rBucketOp\ + tions\x12V\n\x0elinear_buckets\x18\x01\x20\x01(\x0b2-.google.api.Distrib\ + ution.BucketOptions.LinearH\0R\rlinearBuckets\x12e\n\x13exponential_buck\ + ets\x18\x02\x20\x01(\x0b22.google.api.Distribution.BucketOptions.Exponen\ + tialH\0R\x12exponentialBuckets\x12\\\n\x10explicit_buckets\x18\x03\x20\ + \x01(\x0b2/.google.api.Distribution.BucketOptions.ExplicitH\0R\x0fexplic\ + itBuckets\x1ad\n\x06Linear\x12,\n\x12num_finite_buckets\x18\x01\x20\x01(\ + \x05R\x10numFiniteBuckets\x12\x14\n\x05width\x18\x02\x20\x01(\x01R\x05wi\ + dth\x12\x16\n\x06offset\x18\x03\x20\x01(\x01R\x06offset\x1av\n\x0bExpone\ + ntial\x12,\n\x12num_finite_buckets\x18\x01\x20\x01(\x05R\x10numFiniteBuc\ + kets\x12#\n\rgrowth_factor\x18\x02\x20\x01(\x01R\x0cgrowthFactor\x12\x14\ + \n\x05scale\x18\x03\x20\x01(\x01R\x05scale\x1a\"\n\x08Explicit\x12\x16\n\ + \x06bounds\x18\x01\x20\x03(\x01R\x06boundsB\t\n\x07options\x1a\x92\x01\n\ + \x08Exemplar\x12\x14\n\x05value\x18\x01\x20\x01(\x01R\x05value\x128\n\tt\ + imestamp\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ttimestamp\ + \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\x8eF\n\x07\x12\x05\x0e\0\xd2\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\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\xd2\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\ + \x20set\x20of\x20buckets.\n\n\x20The\x20summary\x20statistics\x20are\x20\ + the\x20count,\x20mean,\x20sum\x20of\x20the\x20squared\x20deviation\x20fr\ + om\n\x20the\x20mean,\x20the\x20minimum,\x20and\x20the\x20maximum\x20of\ + \x20the\x20set\x20of\x20population\x20of\x20values.\n\x20The\x20histogra\ + m\x20is\x20based\x20on\x20a\x20sequence\x20of\x20buckets\x20and\x20gives\ + \x20a\x20count\x20of\x20values\n\x20that\x20fall\x20into\x20each\x20buck\ + et.\x20The\x20boundaries\x20of\x20the\x20buckets\x20are\x20given\x20eith\ + er\n\x20explicitly\x20or\x20by\x20formulas\x20for\x20buckets\x20of\x20fi\ + xed\x20or\x20exponentially\x20increasing\n\x20widths.\n\n\x20Although\ + \x20it\x20is\x20not\x20forbidden,\x20it\x20is\x20generally\x20a\x20bad\ + \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\ + the\x20population\x20values.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04\ + -\x04+\x11\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\x20values.\n\n\x0f\n\x07\ + \x04\0\x03\0\x02\x01\x04\x12\x040\x04-\x13\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\x86\x01\x03\x1a\xe3\x07\x20`BucketOption\ + s`\x20describes\x20the\x20bucket\x20boundaries\x20used\x20to\x20create\ + \x20a\x20histogram\n\x20for\x20the\x20distribution.\x20The\x20buckets\ + \x20can\x20be\x20in\x20a\x20linear\x20sequence,\x20an\n\x20exponential\ + \x20sequence,\x20or\x20each\x20bucket\x20can\x20be\x20specified\x20expli\ + citly.\n\x20`BucketOptions`\x20does\x20not\x20include\x20the\x20number\ + \x20of\x20values\x20in\x20each\x20bucket.\n\n\x20A\x20bucket\x20has\x20a\ + n\x20inclusive\x20lower\x20bound\x20and\x20exclusive\x20upper\x20bound\ + \x20for\x20the\n\x20values\x20that\x20are\x20counted\x20for\x20that\x20b\ + ucket.\x20The\x20upper\x20bound\x20of\x20a\x20bucket\x20must\n\x20be\x20\ + strictly\x20greater\x20than\x20the\x20lower\x20bound.\x20The\x20sequence\ + \x20of\x20N\x20buckets\x20for\x20a\n\x20distribution\x20consists\x20of\ + \x20an\x20underflow\x20bucket\x20(number\x200),\x20zero\x20or\x20more\n\ + \x20finite\x20buckets\x20(number\x201\x20through\x20N\x20-\x202)\x20and\ + \x20an\x20overflow\x20bucket\x20(number\x20N\x20-\n\x201).\x20The\x20buc\ + kets\x20are\x20contiguous:\x20the\x20lower\x20bound\x20of\x20bucket\x20i\ + \x20(i\x20>\x200)\x20is\x20the\n\x20same\x20as\x20the\x20upper\x20bound\ + \x20of\x20bucket\x20i\x20-\x201.\x20The\x20buckets\x20span\x20the\x20who\ + le\x20range\n\x20of\x20finite\x20values:\x20lower\x20bound\x20of\x20the\ + \x20underflow\x20bucket\x20is\x20-infinity\x20and\x20the\n\x20upper\x20b\ + ound\x20of\x20the\x20overflow\x20bucket\x20is\x20+infinity.\x20The\x20fi\ + nite\x20buckets\x20are\n\x20so-called\x20because\x20both\x20bounds\x20ar\ + e\x20finite.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03B\n\x17\n\xae\x03\n\ + \x06\x04\0\x03\x01\x03\0\x12\x04L\x04U\x05\x1a\x9d\x03\x20Specifies\x20a\ + \x20linear\x20sequence\x20of\x20buckets\x20that\x20all\x20have\x20the\ + \x20same\x20width\n\x20(except\x20overflow\x20and\x20underflow).\x20Each\ + \x20bucket\x20represents\x20a\x20constant\n\x20absolute\x20uncertainty\ + \x20on\x20the\x20specific\x20value\x20in\x20the\x20bucket.\n\n\x20There\ + \x20are\x20`num_finite_buckets\x20+\x202`\x20(=\x20N)\x20buckets.\x20Buc\ + ket\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\x20off\ + set\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\x03L\x0c\ + \x12\n*\n\x08\x04\0\x03\x01\x03\0\x02\0\x12\x03N\x06#\x1a\x19\x20Must\ + \x20be\x20greater\x20than\x200.\n\n\x11\n\t\x04\0\x03\x01\x03\0\x02\0\ + \x04\x12\x04N\x06L\x14\n\x10\n\t\x04\0\x03\x01\x03\0\x02\0\x05\x12\x03N\ + \x06\x0b\n\x10\n\t\x04\0\x03\x01\x03\0\x02\0\x01\x12\x03N\x0c\x1e\n\x10\ + \n\t\x04\0\x03\x01\x03\0\x02\0\x03\x12\x03N!\"\n*\n\x08\x04\0\x03\x01\ + \x03\0\x02\x01\x12\x03Q\x06\x17\x1a\x19\x20Must\x20be\x20greater\x20than\ + \x200.\n\n\x11\n\t\x04\0\x03\x01\x03\0\x02\x01\x04\x12\x04Q\x06N#\n\x10\ + \n\t\x04\0\x03\x01\x03\0\x02\x01\x05\x12\x03Q\x06\x0c\n\x10\n\t\x04\0\ + \x03\x01\x03\0\x02\x01\x01\x12\x03Q\r\x12\n\x10\n\t\x04\0\x03\x01\x03\0\ + \x02\x01\x03\x12\x03Q\x15\x16\n3\n\x08\x04\0\x03\x01\x03\0\x02\x02\x12\ + \x03T\x06\x18\x1a\"\x20Lower\x20bound\x20of\x20the\x20first\x20bucket.\n\ + \n\x11\n\t\x04\0\x03\x01\x03\0\x02\x02\x04\x12\x04T\x06Q\x17\n\x10\n\t\ + \x04\0\x03\x01\x03\0\x02\x02\x05\x12\x03T\x06\x0c\n\x10\n\t\x04\0\x03\ + \x01\x03\0\x02\x02\x01\x12\x03T\r\x13\n\x10\n\t\x04\0\x03\x01\x03\0\x02\ + \x02\x03\x12\x03T\x16\x17\n\xca\x03\n\x06\x04\0\x03\x01\x03\x01\x12\x04`\ + \x04i\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\ + a\x20specific\x20value\x20in\x20the\x20bucket.\n\n\x20There\x20are\x20`n\ + 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\ + \x03`\x0c\x17\n*\n\x08\x04\0\x03\x01\x03\x01\x02\0\x12\x03b\x06#\x1a\x19\ + \x20Must\x20be\x20greater\x20than\x200.\n\n\x11\n\t\x04\0\x03\x01\x03\ + \x01\x02\0\x04\x12\x04b\x06`\x19\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\ + \x05\x12\x03b\x06\x0b\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\x01\x12\x03b\ + \x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\x03\x12\x03b!\"\n*\n\x08\ + \x04\0\x03\x01\x03\x01\x02\x01\x12\x03e\x06\x1f\x1a\x19\x20Must\x20be\ + \x20greater\x20than\x201.\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x01\x04\ + \x12\x04e\x06b#\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x05\x12\x03e\x06\ + \x0c\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x01\x12\x03e\r\x1a\n\x10\n\ + \t\x04\0\x03\x01\x03\x01\x02\x01\x03\x12\x03e\x1d\x1e\n*\n\x08\x04\0\x03\ + \x01\x03\x01\x02\x02\x12\x03h\x06\x17\x1a\x19\x20Must\x20be\x20greater\ + \x20than\x200.\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x02\x04\x12\x04h\ + \x06e\x1f\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\x05\x12\x03h\x06\x0c\n\ + \x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\x01\x12\x03h\r\x12\n\x10\n\t\x04\ + \0\x03\x01\x03\x01\x02\x02\x03\x12\x03h\x15\x16\n\xd1\x03\n\x06\x04\0\ + \x03\x01\x03\x02\x12\x04v\x04y\x05\x1a\xc0\x03\x20Specifies\x20a\x20set\ + \x20of\x20buckets\x20with\x20arbitrary\x20widths.\n\n\x20There\x20are\ + \x20`size(bounds)\x20+\x201`\x20(=\x20N)\x20buckets.\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\x20m\ + ust\x20contain\x20at\x20least\x20one\x20element.\x20If\x20`bounds`\x20ha\ + s\n\x20only\x20one\x20element,\x20then\x20there\x20are\x20no\x20finite\ + \x20buckets,\x20and\x20that\x20single\n\x20element\x20is\x20the\x20commo\ + n\x20boundary\x20of\x20the\x20overflow\x20and\x20underflow\x20buckets.\n\ + \n\x0e\n\x07\x04\0\x03\x01\x03\x02\x01\x12\x03v\x0c\x14\n?\n\x08\x04\0\ + \x03\x01\x03\x02\x02\0\x12\x03x\x06!\x1a.\x20The\x20values\x20must\x20be\ + \x20monotonically\x20increasing.\n\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\0\ + \x04\x12\x03x\x06\x0e\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\0\x05\x12\x03x\ + \x0f\x15\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\0\x01\x12\x03x\x16\x1c\n\ + \x10\n\t\x04\0\x03\x01\x03\x02\x02\0\x03\x12\x03x\x1f\x20\nA\n\x06\x04\0\ + \x03\x01\x08\0\x12\x05|\x04\x85\x01\x05\x1a0\x20Exactly\x20one\x20of\x20\ + these\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~\x06\ + \x20\x1a\x14\x20The\x20linear\x20bucket.\n\n\x0e\n\x07\x04\0\x03\x01\x02\ + \0\x06\x12\x03~\x06\x0c\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03~\r\ + \x1b\n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x03~\x1e\x1f\n*\n\x06\x04\0\ + \x03\x01\x02\x01\x12\x04\x81\x01\x06*\x1a\x1a\x20The\x20exponential\x20b\ + uckets.\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x04\x81\x01\x06\x11\ + \n\x0f\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x04\x81\x01\x12%\n\x0f\n\x07\ + \x04\0\x03\x01\x02\x01\x03\x12\x04\x81\x01()\n'\n\x06\x04\0\x03\x01\x02\ + \x02\x12\x04\x84\x01\x06$\x1a\x17\x20The\x20explicit\x20buckets.\n\n\x0f\ + \n\x07\x04\0\x03\x01\x02\x02\x06\x12\x04\x84\x01\x06\x0e\n\x0f\n\x07\x04\ + \0\x03\x01\x02\x02\x01\x12\x04\x84\x01\x0f\x1f\n\x0f\n\x07\x04\0\x03\x01\ + \x02\x02\x03\x12\x04\x84\x01\"#\n\xe9\x02\n\x04\x04\0\x03\x02\x12\x06\ + \x8d\x01\x02\xa1\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\x8d\x01\n\x12\nk\n\x06\x04\0\x03\x02\x02\0\x12\x04\ + \x90\x01\x04\x15\x1a[\x20Value\x20of\x20the\x20exemplar\x20point.\x20Thi\ + s\x20value\x20determines\x20to\x20which\x20bucket\x20the\n\x20exemplar\ + \x20belongs.\n\n\x11\n\x07\x04\0\x03\x02\x02\0\x04\x12\x06\x90\x01\x04\ + \x8d\x01\x14\n\x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\x90\x01\x04\n\n\ + \x0f\n\x07\x04\0\x03\x02\x02\0\x01\x12\x04\x90\x01\x0b\x10\n\x0f\n\x07\ + \x04\0\x03\x02\x02\0\x03\x12\x04\x90\x01\x13\x14\nE\n\x06\x04\0\x03\x02\ + \x02\x01\x12\x04\x93\x01\x04,\x1a5\x20The\x20observation\x20(sampling)\ + \x20time\x20of\x20the\x20above\x20value.\n\n\x11\n\x07\x04\0\x03\x02\x02\ + \x01\x04\x12\x06\x93\x01\x04\x90\x01\x15\n\x0f\n\x07\x04\0\x03\x02\x02\ + \x01\x06\x12\x04\x93\x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\ + \x12\x04\x93\x01\x1e'\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\x93\ + \x01*+\n\xb4\x03\n\x06\x04\0\x03\x02\x02\x02\x12\x04\xa0\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\xa0\ + \x01\x04\x0c\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x06\x12\x04\xa0\x01\r\x20\ + \n\x0f\n\x07\x04\0\x03\x02\x02\x02\x01\x12\x04\xa0\x01!,\n\x0f\n\x07\x04\ + \0\x03\x02\x02\x02\x03\x12\x04\xa0\x01/0\n\xab\x01\n\x04\x04\0\x02\0\x12\ + \x04\xa6\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\x0f\n\x05\x04\0\ + \x02\0\x04\x12\x06\xa6\x01\x02\xa1\x01\x03\n\r\n\x05\x04\0\x02\0\x05\x12\ + \x04\xa6\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa6\x01\x08\r\n\r\ + \n\x05\x04\0\x02\0\x03\x12\x04\xa6\x01\x10\x11\nv\n\x04\x04\0\x02\x01\ + \x12\x04\xaa\x01\x02\x12\x1ah\x20The\x20arithmetic\x20mean\x20of\x20the\ + \x20values\x20in\x20the\x20population.\x20If\x20`count`\x20is\x20zero\n\ + \x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\x0f\n\x05\x04\0\x02\ + \x01\x04\x12\x06\xaa\x01\x02\xa6\x01\x12\n\r\n\x05\x04\0\x02\x01\x05\x12\ + \x04\xaa\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xaa\x01\t\r\n\r\ + \n\x05\x04\0\x02\x01\x03\x12\x04\xaa\x01\x10\x11\n\xd8\x02\n\x04\x04\0\ + \x02\x02\x12\x04\xb5\x01\x02&\x1a\xc9\x02\x20The\x20sum\x20of\x20squared\ + \x20deviations\x20from\x20the\x20mean\x20of\x20the\x20values\x20in\x20th\ + e\n\x20population.\x20For\x20values\x20x_i\x20this\x20is:\n\n\x20\x20\ + \x20\x20\x20Sum[i=1..n]((x_i\x20-\x20mean)^2)\n\n\x20Knuth,\x20\"The\x20\ + Art\x20of\x20Computer\x20Programming\",\x20Vol.\x202,\x20page\x20232,\ + \x203rd\x20edition\n\x20describes\x20Welford's\x20method\x20for\x20accum\ + ulating\x20this\x20sum\x20in\x20one\x20pass.\n\n\x20If\x20`count`\x20is\ + \x20zero\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\x0f\n\x05\ + \x04\0\x02\x02\x04\x12\x06\xb5\x01\x02\xaa\x01\x12\n\r\n\x05\x04\0\x02\ + \x02\x05\x12\x04\xb5\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xb5\ + \x01\t!\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xb5\x01$%\n\x81\x01\n\x04\ + \x04\0\x02\x03\x12\x04\xb9\x01\x02\x12\x1as\x20If\x20specified,\x20conta\ + ins\x20the\x20range\x20of\x20the\x20population\x20values.\x20The\x20fiel\ + d\n\x20must\x20not\x20be\x20present\x20if\x20the\x20`count`\x20is\x20zer\ + o.\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\xb9\x01\x02\xb5\x01&\n\r\n\ + \x05\x04\0\x02\x03\x06\x12\x04\xb9\x01\x02\x07\n\r\n\x05\x04\0\x02\x03\ + \x01\x12\x04\xb9\x01\x08\r\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xb9\x01\ + \x10\x11\n\x81\x01\n\x04\x04\0\x02\x04\x12\x04\xbd\x01\x02#\x1as\x20Defi\ + nes\x20the\x20histogram\x20bucket\x20boundaries.\x20If\x20the\x20distrib\ + ution\x20does\x20not\n\x20contain\x20a\x20histogram,\x20then\x20omit\x20\ + this\x20field.\n\n\x0f\n\x05\x04\0\x02\x04\x04\x12\x06\xbd\x01\x02\xb9\ + \x01\x12\n\r\n\x05\x04\0\x02\x04\x06\x12\x04\xbd\x01\x02\x0f\n\r\n\x05\ + \x04\0\x02\x04\x01\x12\x04\xbd\x01\x10\x1e\n\r\n\x05\x04\0\x02\x04\x03\ + \x12\x04\xbd\x01!\"\n\xe7\x06\n\x04\x04\0\x02\x05\x12\x04\xce\x01\x02#\ + \x1a\xd8\x06\x20The\x20number\x20of\x20values\x20in\x20each\x20bucket\ + \x20of\x20the\x20histogram,\x20as\x20described\x20in\n\x20`bucket_option\ + s`.\x20If\x20the\x20distribution\x20does\x20not\x20have\x20a\x20histogra\ + m,\x20then\x20omit\n\x20this\x20field.\x20If\x20there\x20is\x20a\x20hist\ + ogram,\x20then\x20the\x20sum\x20of\x20the\x20values\x20in\n\x20`bucket_c\ + ounts`\x20must\x20equal\x20the\x20value\x20in\x20the\x20`count`\x20field\ + \x20of\x20the\n\x20distribution.\n\n\x20If\x20present,\x20`bucket_counts\ + `\x20should\x20contain\x20N\x20values,\x20where\x20N\x20is\x20the\x20num\ + ber\n\x20of\x20buckets\x20specified\x20in\x20`bucket_options`.\x20If\x20\ + you\x20supply\x20fewer\x20than\x20N\n\x20values,\x20the\x20remaining\x20\ + values\x20are\x20assumed\x20to\x20be\x200.\n\n\x20The\x20order\x20of\x20\ + the\x20values\x20in\x20`bucket_counts`\x20follows\x20the\x20bucket\x20nu\ + mbering\n\x20schemes\x20described\x20for\x20the\x20three\x20bucket\x20ty\ + pes.\x20The\x20first\x20value\x20must\x20be\x20the\n\x20count\x20for\x20\ + the\x20underflow\x20bucket\x20(number\x200).\x20The\x20next\x20N-2\x20va\ + lues\x20are\x20the\n\x20counts\x20for\x20the\x20finite\x20buckets\x20(nu\ + mber\x201\x20through\x20N-2).\x20The\x20N'th\x20value\x20in\n\x20`bucket\ + _counts`\x20is\x20the\x20count\x20for\x20the\x20overflow\x20bucket\x20(n\ + umber\x20N-1).\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04\xce\x01\x02\n\n\r\n\ + \x05\x04\0\x02\x05\x05\x12\x04\xce\x01\x0b\x10\n\r\n\x05\x04\0\x02\x05\ + \x01\x12\x04\xce\x01\x11\x1e\n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xce\x01\ + !\"\n=\n\x04\x04\0\x02\x06\x12\x04\xd1\x01\x02#\x1a/\x20Must\x20be\x20in\ + \x20increasing\x20order\x20of\x20`value`\x20field.\n\n\r\n\x05\x04\0\x02\ + \x06\x04\x12\x04\xd1\x01\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\xd1\ + \x01\x0b\x13\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\xd1\x01\x14\x1d\n\r\n\ + \x05\x04\0\x02\x06\x03\x12\x04\xd1\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/documentation.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/documentation.rs new file mode 100644 index 0000000000..a87e9abc4f --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/documentation.rs @@ -0,0 +1,1096 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/documentation.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Documentation { + // message fields + pub summary: ::std::string::String, + pub pages: ::protobuf::RepeatedField, + pub rules: ::protobuf::RepeatedField, + pub documentation_root_url: ::std::string::String, + pub service_root_url: ::std::string::String, + pub overview: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Documentation { + fn default() -> &'a Documentation { + ::default_instance() + } +} + +impl Documentation { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 5 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.pages)?; + }, + 3 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.documentation_root_url)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_root_url)?; + }, + 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())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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; + }; + for value in &self.rules { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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)?; + }; + 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.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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DocumentationRule { + // message fields + pub selector: ::std::string::String, + pub description: ::std::string::String, + pub deprecation_description: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DocumentationRule { + fn default() -> &'a DocumentationRule { + ::default_instance() + } +} + +impl DocumentationRule { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.deprecation_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.selector.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.selector); + } + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.description); + } + 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 + } + + 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.description.is_empty() { + os.write_string(2, &self.description)?; + } + if !self.deprecation_description.is_empty() { + os.write_string(3, &self.deprecation_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() -> 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 default_instance() -> &'static DocumentationRule { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DocumentationRule::new) + } +} + +impl ::protobuf::Clear for DocumentationRule { + fn clear(&mut self) { + self.selector.clear(); + self.description.clear(); + self.deprecation_description.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Page { + // message fields + pub name: ::std::string::String, + pub content: ::std::string::String, + pub subpages: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Page { + fn default() -> &'a Page { + ::default_instance() + } +} + +impl Page { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content)?; + }, + 3 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.subpages)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.content.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.content); + } + for value in &self.subpages { + 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)?; + } + if !self.content.is_empty() { + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Page { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Page::new) + } +} + +impl ::protobuf::Clear for Page { + fn clear(&mut self) { + self.name.clear(); + self.content.clear(); + self.subpages.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \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(\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\xf22\n\x07\x12\x05\x0e\0\xa1\x01\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\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\0s\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\ + ation\x20text.\n\n\x20In\x20order\x20to\x20reference\x20a\x20proto\x20el\ + ement,\x20the\x20following\n\x20notation\x20can\x20be\x20used:\n\x20[fully.qualified.proto.name][]\n\x20To\x20ov\ + erride\x20the\x20display\x20text\x20used\x20for\x20the\x20link,\x20this\ + \x20can\x20be\x20used:\n\x20
[display\x20text][fully.q\
+    ualified.proto.name]
\n\x20Text\x20can\x20be\x20excluded\x20\ + from\x20doc\x20using\x20the\x20following\x20notation:\n\x20
&#\
+    40;--\x20internal\x20comment\x20--)
\n\n\x20A\x20few\x20\ + directives\x20are\x20available\x20in\x20documentation.\x20Note\x20that\n\ + \x20directives\x20must\x20appear\x20on\x20a\x20single\x20line\x20to\x20b\ + e\x20properly\n\x20identified.\x20The\x20`include`\x20directive\x20inclu\ + des\x20a\x20markdown\x20file\x20from\n\x20an\x20external\x20source:\n\ + \x20
(==\x20include\x20path/to/file\x20==)\n\x20The\x20`resource_for`\x20directive\x20marks\x20a\x20message\x20to\
+    \x20be\x20the\x20resource\x20of\n\x20a\x20collection\x20in\x20REST\x20vi\
+    ew.\x20If\x20it\x20is\x20not\x20specified,\x20tools\x20attempt\n\x20to\
+    \x20infer\x20the\x20resource\x20from\x20the\x20operations\x20in\x20a\x20\
+    collection:\n\x20
(==\x20resource_for\x20v1.shelves.books\
+    \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]\n\x04\x04\0\x02\0\x12\x03R\x02\x15\ + \x1aP\x20A\x20short\x20summary\x20of\x20what\x20the\x20service\x20does.\ + \x20Can\x20only\x20be\x20provided\x20by\n\x20plain\x20text.\n\n\r\n\x05\ + \x04\0\x02\0\x04\x12\x04R\x02O\x17\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03R\ + \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03R\t\x10\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03R\x13\x14\n=\n\x04\x04\0\x02\x01\x12\x03U\x02\x1a\x1a0\ + \x20The\x20top\x20level\x20pages\x20for\x20the\x20documentation\x20set.\ + \n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03U\x02\n\n\x0c\n\x05\x04\0\x02\ + \x01\x06\x12\x03U\x0b\x0f\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03U\x10\x15\ + \n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03U\x18\x19\n\x9e\x01\n\x04\x04\0\ + \x02\x02\x12\x03Z\x02'\x1a\x90\x01\x20A\x20list\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\ + \x03Z\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03Z\x0b\x1c\n\x0c\n\x05\ + \x04\0\x02\x02\x01\x12\x03Z\x1d\"\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03Z\ + %&\n4\n\x04\x04\0\x02\x03\x12\x03]\x02$\x1a'\x20The\x20URL\x20to\x20the\ + \x20root\x20of\x20documentation.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04]\ + \x02Z'\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\x03c\x02\x1e\x1a\xe8\x01\x20Specifies\ + \x20the\x20service\x20root\x20url\x20if\x20the\x20default\x20one\x20(the\ + \x20service\x20name\n\x20from\x20the\x20yaml\x20file)\x20is\x20not\x20su\ + itable.\x20This\x20can\x20be\x20seen\x20in\x20any\x20fully\n\x20specifie\ + d\x20service\x20urls\x20as\x20well\x20as\x20sections\x20that\x20show\x20\ + a\x20base\x20that\x20other\n\x20urls\x20are\x20relative\x20to.\n\n\r\n\ + \x05\x04\0\x02\x04\x04\x12\x04c\x02]$\n\x0c\n\x05\x04\0\x02\x04\x05\x12\ + \x03c\x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03c\t\x19\n\x0c\n\x05\ + \x04\0\x02\x04\x03\x12\x03c\x1c\x1d\n\xbc\x03\n\x04\x04\0\x02\x05\x12\ + \x03r\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\x20overview.md\x20\
+    ==)\n\x20
\n\x20This\x20is\x20a\x20shortcut\x20for\x20th\ + e\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\x20content:\x20(\
+    ;==\x20include\x20overview.md\x20==)\n\x20
\n\x20Note:\ + \x20you\x20cannot\x20specify\x20both\x20`overview`\x20field\x20and\x20`p\ + ages`\x20field.\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04r\x02c\x1e\n\x0c\n\ + \x05\x04\0\x02\x05\x05\x12\x03r\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\ + \x12\x03r\t\x11\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03r\x14\x15\nW\n\x02\ + \x04\x01\x12\x05v\0\x85\x01\x01\x1aJ\x20A\x20documentation\x20rule\x20pr\ + ovides\x20information\x20about\x20individual\x20API\x20elements.\n\n\n\n\ + \x03\x04\x01\x01\x12\x03v\x08\x19\n\xb0\x03\n\x04\x04\x01\x02\0\x12\x03}\ + \x02\x16\x1a\xa2\x03\x20The\x20selector\x20is\x20a\x20comma-separated\ + \x20list\x20of\x20patterns.\x20Each\x20pattern\x20is\x20a\n\x20qualified\ + \x20name\x20of\x20the\x20element\x20which\x20may\x20end\x20in\x20\"*\",\ + \x20indicating\x20a\x20wildcard.\n\x20Wildcards\x20are\x20only\x20allowe\ + d\x20at\x20the\x20end\x20and\x20for\x20a\x20whole\x20component\x20of\x20\ + the\n\x20qualified\x20name,\x20i.e.\x20\"foo.*\"\x20is\x20ok,\x20but\x20\ + not\x20\"foo.b*\"\x20or\x20\"foo.*.bar\".\x20A\n\x20wildcard\x20will\x20\ + match\x20one\x20or\x20more\x20components.\x20To\x20specify\x20a\x20defau\ + lt\x20for\x20all\n\x20applicable\x20elements,\x20the\x20whole\x20pattern\ + \x20\"*\"\x20is\x20used.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04}\x02v\x1b\ + \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\n3\ + \n\x04\x04\x01\x02\x01\x12\x04\x80\x01\x02\x19\x1a%\x20Description\x20of\ + \x20the\x20selected\x20API(s).\n\n\x0e\n\x05\x04\x01\x02\x01\x04\x12\x05\ + \x80\x01\x02}\x16\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x80\x01\x02\x08\ + \n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x80\x01\t\x14\n\r\n\x05\x04\x01\ + \x02\x01\x03\x12\x04\x80\x01\x17\x18\n\x80\x01\n\x04\x04\x01\x02\x02\x12\ + \x04\x84\x01\x02%\x1ar\x20Deprecation\x20description\x20of\x20the\x20sel\ + ected\x20element(s).\x20It\x20can\x20be\x20provided\x20if\n\x20an\x20ele\ + ment\x20is\x20marked\x20as\x20`deprecated`.\n\n\x0f\n\x05\x04\x01\x02\ + \x02\x04\x12\x06\x84\x01\x02\x80\x01\x19\n\r\n\x05\x04\x01\x02\x02\x05\ + \x12\x04\x84\x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x84\x01\t\ + \x20\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x84\x01#$\n~\n\x02\x04\x02\ + \x12\x06\x89\x01\0\xa1\x01\x01\x1ap\x20Represents\x20a\x20documentation\ + \x20page.\x20A\x20page\x20can\x20contain\x20subpages\x20to\x20represent\ + \n\x20nested\x20documentation\x20set\x20structure.\n\n\x0b\n\x03\x04\x02\ + \x01\x12\x04\x89\x01\x08\x0c\n\xda\x04\n\x04\x04\x02\x02\0\x12\x04\x98\ + \x01\x02\x12\x1a\xcb\x04\x20The\x20name\x20of\x20the\x20page.\x20It\x20w\ + ill\x20be\x20used\x20as\x20an\x20identity\x20of\x20the\x20page\x20to\n\ + \x20generate\x20URI\x20of\x20the\x20page,\x20text\x20of\x20the\x20link\ + \x20to\x20this\x20page\x20in\x20navigation,\n\x20etc.\x20The\x20full\x20\ + page\x20name\x20(start\x20from\x20the\x20root\x20page\x20name\x20to\x20t\ + his\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\ + \x0f\n\x05\x04\x02\x02\0\x04\x12\x06\x98\x01\x02\x89\x01\x0e\n\r\n\x05\ + \x04\x02\x02\0\x05\x12\x04\x98\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\ + \x12\x04\x98\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x98\x01\x10\x11\ + \n\x94\x01\n\x04\x04\x02\x02\x01\x12\x04\x9c\x01\x02\x15\x1a\x85\x01\x20\ + The\x20Markdown\x20content\x20of\x20the\x20page.\x20You\x20can\x20use\ + \x20(==\x20include\x20{path}\n\x20==)\x20to\x20incl\ + ude\x20content\x20from\x20a\x20Markdown\x20file.\n\n\x0f\n\x05\x04\x02\ + \x02\x01\x04\x12\x06\x9c\x01\x02\x98\x01\x12\n\r\n\x05\x04\x02\x02\x01\ + \x05\x12\x04\x9c\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x9c\ + \x01\t\x10\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x9c\x01\x13\x14\nu\n\ + \x04\x04\x02\x02\x02\x12\x04\xa0\x01\x02\x1d\x1ag\x20Subpages\x20of\x20t\ + his\x20page.\x20The\x20order\x20of\x20subpages\x20specified\x20here\x20w\ + ill\x20be\n\x20honored\x20in\x20the\x20generated\x20docset.\n\n\r\n\x05\ + \x04\x02\x02\x02\x04\x12\x04\xa0\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\x06\ + \x12\x04\xa0\x01\x0b\x0f\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xa0\x01\ + \x10\x18\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xa0\x01\x1b\x1cb\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/endpoint.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/endpoint.rs new file mode 100644 index 0000000000..06db0bb660 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/endpoint.rs @@ -0,0 +1,391 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/endpoint.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Endpoint { + // message fields + pub name: ::std::string::String, + pub aliases: ::protobuf::RepeatedField<::std::string::String>, + pub target: ::std::string::String, + pub allow_cors: bool, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Endpoint { + fn default() -> &'a Endpoint { + ::default_instance() + } +} + +impl Endpoint { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.aliases)?; + }, + 101 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.target)?; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.aliases { + my_size += ::protobuf::rt::string_size(2, &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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.aliases { + os.write_string(2, &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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Endpoint { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Endpoint::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +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\x93\x15\n\x06\ + \x12\x04\x0e\0A\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ + pyright\x202020\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\x87\x06\n\x02\x04\0\ + \x12\x04(\0A\x01\x1a\xfa\x05\x20`Endpoint`\x20describes\x20a\x20network\ + \x20endpoint\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\x20service\x20configura\ + tion:\n\n\x20\x20\x20\x20\x20name:\x20library-example.googleapis.com\n\ + \x20\x20\x20\x20\x20endpoints:\n\x20\x20\x20\x20\x20\x20\x20#\x20Below\ + \x20entry\x20makes\x20'google.example.library.v1.Library'\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\x20\ + to\x20the\x20backend,\x20for\n\x20\x20\x20\x20\x20\x20\x20#\x20it\x20to\ + \x20decide\x20whether\x20the\x20subsequent\x20cross-origin\x20request\ + \x20is\n\x20\x20\x20\x20\x20\x20\x20#\x20allowed\x20to\x20proceed.\n\x20\ + \x20\x20\x20\x20-\x20name:\x20library-example.googleapis.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\r\n\x05\x04\0\x02\0\x04\x12\x04*\ + \x02(\x12\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\x031\x022\x1a\xea\x01\x20DEPRECATED:\ + \x20This\x20field\x20is\x20no\x20longer\x20supported.\x20Instead\x20of\ + \x20using\x20aliases,\n\x20please\x20specify\x20multiple\x20[google.api.\ + Endpoint][google.api.Endpoint]\x20for\x20each\x20of\x20the\x20intended\n\ + \x20aliases.\n\n\x20Additional\x20names\x20that\x20this\x20endpoint\x20w\ + ill\x20be\x20hosted\x20on.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x031\x02\ + \n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x031\x0b\x11\n\x0c\n\x05\x04\0\x02\ + \x01\x01\x12\x031\x12\x19\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x031\x1c\x1d\ + \n\x0c\n\x05\x04\0\x02\x01\x08\x12\x031\x1e1\n\r\n\x06\x04\0\x02\x01\x08\ + \x03\x12\x031\x1f0\n\xb4\x02\n\x04\x04\0\x02\x02\x12\x038\x02\x16\x1a\ + \xa6\x02\x20The\x20specification\x20of\x20an\x20Internet\x20routable\x20\ + address\x20of\x20API\x20frontend\x20that\x20will\n\x20handle\x20requests\ + \x20to\x20this\x20[API\n\x20Endpoint](https://cloud.google.com/apis/desi\ + gn/glossary).\x20It\x20should\x20be\n\x20either\x20a\x20valid\x20IPv4\ + \x20address\x20or\x20a\x20fully-qualified\x20domain\x20name.\x20For\x20e\ + xample,\n\x20\"8.8.8.8\"\x20or\x20\"myservice.appspot.com\".\n\n\r\n\x05\ + \x04\0\x02\x02\x04\x12\x048\x0212\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x038\ + \x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x038\t\x0f\n\x0c\n\x05\x04\0\ + \x02\x02\x03\x12\x038\x12\x15\n\xd9\x02\n\x04\x04\0\x02\x03\x12\x03@\x02\ + \x16\x1a\xcb\x02\x20Allowing\n\x20[CORS](https://en.wikipedia.org/wiki/C\ + ross-origin_resource_sharing),\x20aka\n\x20cross-domain\x20traffic,\x20w\ + ould\x20allow\x20the\x20backends\x20served\x20from\x20this\x20endpoint\ + \x20to\n\x20receive\x20and\x20respond\x20to\x20HTTP\x20OPTIONS\x20reques\ + ts.\x20The\x20response\x20will\x20be\x20used\x20by\n\x20the\x20browser\ + \x20to\x20determine\x20whether\x20the\x20subsequent\x20cross-origin\x20r\ + equest\x20is\n\x20allowed\x20to\x20proceed.\n\n\r\n\x05\x04\0\x02\x03\ + \x04\x12\x04@\x028\x16\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03@\x02\x06\n\ + \x0c\n\x05\x04\0\x02\x03\x01\x12\x03@\x07\x11\n\x0c\n\x05\x04\0\x02\x03\ + \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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/error_reason.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/error_reason.rs new file mode 100644 index 0000000000..62c3a9f9ec --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/error_reason.rs @@ -0,0 +1,436 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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, +} + +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), + _ => ::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, + ]; + 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*\xe1\x03\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\x10Bp\n\x0ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgo\ + ogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xa2\ + \x02\x04GAPIJ\xef[\n\x07\x12\x05\x0e\0\xca\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\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\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\xca\x02\x01\x1a\xb1\x05\x20Defines\ + \x20the\x20supported\x20values\x20for\x20`google.rpc.ErrorInfo.reason`\ + \x20for\x20the\n\x20`googleapis.com`\x20error\x20domain.\x20This\x20erro\ + r\x20domain\x20is\x20reserved\x20for\x20[Service\n\x20Infrastructure](ht\ + tps://cloud.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\x20an\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\x20project\x20that\x20owns\x20the\x20client\x20application\ + \x20or\x20the\x20server\x20resource,\n\x20such\x20as\x20\"projects/123\"\ + .\x20Other\x20metadata\x20keys\x20are\x20specific\x20to\x20each\x20error\ + \n\x20reason.\x20For\x20more\x20information,\x20see\x20the\x20definition\ + \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\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\xdc\ + \x03\n\x04\x05\0\x02\x01\x12\x035\x02\x17\x1a\xce\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\"googl\ + eapis.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\xeb\ + \x03\n\x04\x05\0\x02\x02\x12\x03E\x02\x17\x1a\xdd\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\x20of\x20the\x20billing\x20account\x20is\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\"co\ + nsumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"se\ + rvice\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\ + \x20\x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\x20the\x20bil\ + ling\x20account\x20associated\x20has\x20been\x20disabled.\n\n\x0c\n\x05\ + \x05\0\x02\x02\x01\x12\x03E\x02\x12\n\x0c\n\x05\x05\0\x02\x02\x02\x12\ + \x03E\x15\x16\n\xd8\x03\n\x04\x05\0\x02\x03\x12\x03T\x02\x16\x1a\xca\x03\ + \x20The\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\ + \x03T\x02\x11\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03T\x14\x15\n\xec\x03\n\ + \x04\x05\0\x02\x04\x12\x03c\x02\x1e\x1a\xde\x03\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\ + \x20request\x20is\x20contacting\x20the\x20service\n\x20\"storage.googlea\ + pis.com\"\x20that\x20is\x20restricted\x20in\x20the\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\x03c\ + \x02\x19\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03c\x1c\x1d\n\xd8\x03\n\x04\ + \x05\0\x02\x05\x12\x03r\x02$\x1a\xca\x03\x20The\x20request\x20is\x20deni\ + ed\x20because\x20it\x20violates\x20[API\x20key\x20HTTP\n\x20restrictions\ + ](https://cloud.google.com/docs/authentication/api-keys#adding_http_rest\ + rictions).\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20htt\ + p\x20referrer\x20of\x20the\x20request\x20violates\x20API\n\x20key\x20HTT\ + P\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\"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/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\x05\x01\x12\x03r\x02\x1f\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03r\"\ + #\n\xe5\x03\n\x04\x05\0\x02\x06\x12\x04\x81\x01\x02!\x1a\xd6\x03\x20The\ + \x20request\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20key\ + \x20IP\x20address\n\x20restrictions](https://cloud.google.com/docs/authe\ + ntication/api-keys#adding_application_restrictions).\n\n\x20Example\x20o\ + f\x20an\x20ErrorInfo\x20when\x20the\x20caller\x20IP\x20of\x20the\x20requ\ + est\x20violates\x20API\n\x20key\x20IP\x20address\x20restrictions:\n\n\ + \x20\x20\x20\x20\x20{\x20\"reason\":\x20\"API_KEY_IP_ADDRESS_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\x06\x01\x12\x04\ + \x81\x01\x02\x1c\n\r\n\x05\x05\0\x02\x06\x02\x12\x04\x81\x01\x1f\x20\n\ + \x80\x04\n\x04\x05\0\x02\x07\x12\x04\x90\x01\x02\"\x1a\xf1\x03\x20The\ + \x20request\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20key\ + \x20Android\x20application\n\x20restrictions](https://cloud.google.com/d\ + ocs/authentication/api-keys#adding_application_restrictions).\n\n\x20Exa\ + mple\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20from\x20the\ + \x20Android\x20apps\x20violates\x20the\n\x20API\x20key\x20Android\x20app\ + lication\x20restrictions:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"A\ + PI_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\x90\x01\x02\x1d\n\r\n\x05\x05\0\x02\x07\x02\ + \x12\x04\x90\x01\x20!\n\xf0\x03\n\x04\x05\0\x02\x08\x12\x04\x9f\x01\x02\ + \x1f\x1a\xe1\x03\x20The\x20request\x20is\x20denied\x20because\x20it\x20v\ + iolates\x20[API\x20key\x20iOS\x20application\n\x20restrictions](https://\ + cloud.google.com/docs/authentication/api-keys#adding_application_restric\ + tions).\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20reques\ + t\x20from\x20the\x20iOS\x20apps\x20violates\x20the\x20API\n\x20key\x20iO\ + S\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\"consumer\":\x20\"projects/123\",\ + \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleap\ + is.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\x9f\x01\x02\x19\n\r\n\x05\x05\0\x02\x08\ + \x02\x12\x04\x9f\x01\x1c\x1e\n\xfc\t\n\x04\x05\0\x02\t\x12\x04\xc2\x01\ + \x02\x1a\x1a\xed\t\x20The\x20request\x20is\x20denied\x20because\x20there\ + \x20is\x20not\x20enough\x20rate\x20quota\x20for\x20the\n\x20consumer.\n\ + \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"p\ + rojects/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\x20\ + limit\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\"metadat\ + a\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projec\ + ts/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\"ReadsPerMinutePerProject\"\n\x20\x20\ + \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20Example\x20of\x20an\ + \x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\x20checks\ + \x20quota\x20on\n\x20the\x20service\x20\"dataflow.googleapis.com\"\x20an\ + d\x20hits\x20the\x20organization\x20quota\n\x20limit\x20\"DefaultRequest\ + sPerMinutePerOrganization\"\x20on\x20the\x20metric\n\x20\"dataflow.googl\ + eapis.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.co\ + m\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"quota_metric\":\x20\"dataflo\ + w.googleapis.com/default_requests\",\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\"quota_limit\":\x20\"DefaultRequestsPerMinutePerOrganization\"\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\xc2\x01\x02\x15\n\r\n\x05\x05\0\x02\t\x02\x12\x04\xc2\ + \x01\x18\x19\n\xbc\t\n\x04\x05\0\x02\n\x12\x04\xe4\x01\x02\x1e\x1a\xad\t\ + \x20The\x20request\x20is\x20denied\x20because\x20there\x20is\x20not\x20e\ + nough\x20resource\x20quota\x20for\x20the\n\x20consumer.\n\n\x20Example\ + \x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\ + \x20fails\x20to\x20contact\n\x20\"compute.googleapis.com\"\x20service\ + \x20because\x20consumer's\x20resource\x20quota\x20usage\n\x20has\x20reac\ + hed\x20the\x20maximum\x20value\x20set\x20for\x20the\x20quota\x20limit\ + \x20\"VMsPerProject\"\n\x20on\x20the\x20quota\x20metric\x20\"compute.goo\ + gleapis.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\"googleap\ + is.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\"quota_metric\":\x20\"compute.googl\ + eapis.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\x20ErrorInfo\x20when\x20the\x20consumer\ + \x20\"projects/123\"\x20checks\x20resource\n\x20quota\x20on\x20the\x20se\ + rvice\x20\"dataflow.googleapis.com\"\x20and\x20hits\x20the\x20organizati\ + on\n\x20quota\x20limit\x20\"jobs-per-organization\"\x20on\x20the\x20metr\ + ic\n\x20\"dataflow.googleapis.com/job_count\".\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\"met\ + adata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"pr\ + ojects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"dat\ + aflow.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"quota_met\ + ric\":\x20\"dataflow.googleapis.com/job_count\",\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\"quota_limit\":\x20\"jobs-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\xe4\x01\x02\x19\n\r\n\x05\x05\0\x02\n\x02\x12\x04\xe4\x01\x1c\ + \x1d\n\xdb\x05\n\x04\x05\0\x02\x0b\x12\x04\xf9\x01\x02$\x1a\xcc\x05\x20T\ + he\x20request\x20whose\x20associated\x20billing\x20account\x20address\ + \x20is\x20in\x20a\x20tax\x20restricted\n\x20location,\x20violates\x20the\ + \x20local\x20tax\x20restrictions\x20when\x20creating\x20resources\x20in\ + \n\x20the\x20restricted\x20region.\n\n\x20Example\x20of\x20an\x20ErrorIn\ + fo\x20when\x20creating\x20the\x20Cloud\x20Storage\x20Bucket\x20in\x20the\ + \n\x20container\x20\"projects/123\"\x20under\x20a\x20tax\x20restricted\ + \x20region\n\x20\"locations/asia-northeast3\":\n\n\x20\x20\x20\x20\x20{\ + \x20\"reason\":\x20\"LOCATION_TAX_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/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\"l\ + ocation\":\x20\"locations/asia-northeast3\"\n\x20\x20\x20\x20\x20\x20\ + \x20}\n\x20\x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\x20cre\ + ating\x20the\x20Cloud\x20Storage\x20Bucket\x20in\n\x20\"locations/asia-n\ + ortheast3\"\x20violates\x20the\x20location\x20tax\x20restriction.\n\n\r\ + \n\x05\x05\0\x02\x0b\x01\x12\x04\xf9\x01\x02\x1e\n\r\n\x05\x05\0\x02\x0b\ + \x02\x12\x04\xf9\x01!#\n\xb7\x04\n\x04\x05\0\x02\x0c\x12\x04\x8a\x02\x02\ + \x1b\x1a\xa8\x04\x20The\x20request\x20is\x20denied\x20because\x20the\x20\ + caller\x20does\x20not\x20have\x20required\x20permission\n\x20on\x20the\ + \x20user\x20project\x20or\x20the\x20user\x20project\x20is\x20invalid.\ + \x20For\x20more\x20information,\n\x20see\x20[System\n\x20Parameters](htt\ + ps://cloud.google.com/apis/docs/system-parameters).\n\n\x20Example\x20of\ + \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\"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/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\x8a\x02\x02\x15\n\r\n\x05\x05\0\x02\x0c\x02\x12\x04\ + \x8a\x02\x18\x1a\n\xa8\x04\n\x04\x05\0\x02\r\x12\x04\x9b\x02\x02\x1a\x1a\ + \x99\x04\x20The\x20request\x20is\x20denied\x20because\x20the\x20consumer\ + \x20is\x20suspended\x20due\x20to\x20Terms\x20of\n\x20Service(Tos)\x20vio\ + lations.\x20Check\x20[Project\x20suspension\n\x20guidelines](https://clo\ + ud.google.com/resource-manager/docs/project-suspension-guidelines)\n\x20\ + for\x20more\x20information.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20w\ + hen\x20calling\x20Cloud\x20Storage\x20service\x20with\x20the\n\x20suspen\ + ded\x20consumer\x20\"projects/123\":\n\n\x20\x20\x20\x20\x20{\x20\"reaso\ + n\":\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\x9b\x02\x02\x14\n\r\n\x05\x05\0\x02\r\x02\x12\ + \x04\x9b\x02\x17\x19\n\xbb\x03\n\x04\x05\0\x02\x0e\x12\x04\xaa\x02\x02\ + \x18\x1a\xac\x03\x20The\x20request\x20is\x20denied\x20because\x20the\x20\ + associated\x20consumer\x20is\x20invalid.\x20It\x20may\x20be\n\x20in\x20a\ + \x20bad\x20format,\x20cannot\x20be\x20found,\x20or\x20have\x20been\x20de\ + leted.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20calling\x20Clo\ + ud\x20Storage\x20service\x20with\x20the\n\x20invalid\x20consumer\x20\"pr\ + ojects/123\":\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"CONSUMER_INVA\ + LID\"\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\x0e\x01\x12\ + \x04\xaa\x02\x02\x12\n\r\n\x05\x05\0\x02\x0e\x02\x12\x04\xaa\x02\x15\x17\ + \n\x92\x06\n\x04\x05\0\x02\x0f\x12\x04\xbe\x02\x02\x20\x1a\x83\x06\x20Th\ + e\x20request\x20is\x20denied\x20because\x20it\x20violates\x20[VPC\x20Ser\ + vice\n\x20Controls](https://cloud.google.com/vpc-service-controls/docs/o\ + verview).\n\x20The\x20'uid'\x20field\x20is\x20a\x20random\x20generated\ + \x20identifier\x20that\x20customer\x20can\x20use\x20it\n\x20to\x20search\ + \x20the\x20audit\x20log\x20for\x20a\x20request\x20rejected\x20by\x20VPC\ + \x20Service\x20Controls.\x20For\n\x20more\x20information,\x20please\x20r\ + efer\x20[VPC\x20Service\x20Controls\n\x20Troubleshooting](https://cloud.\ + google.com/vpc-service-controls/docs/troubleshooting#unique-id)\n\n\x20E\ + xample\x20of\x20an\x20ErrorInfo\x20for\x20a\x20request\x20calling\x20Clo\ + ud\x20Storage\x20service\x20is\n\x20rejected\x20by\x20VPC\x20Service\x20\ + Controls.\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"SECURITY_POLICY_V\ + IOLATED\"\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\xbe\x02\x02\x1a\n\r\n\x05\x05\0\x02\x0f\x02\x12\x04\xbe\x02\x1d\ + \x1f\n\x9e\x02\n\x04\x05\0\x02\x10\x12\x04\xc9\x02\x02\x1c\x1a\x8f\x02\ + \x20The\x20request\x20is\x20denied\x20because\x20the\x20provided\x20acce\ + ss\x20token\x20has\x20expired.\n\n\x20Example\x20of\x20an\x20ErrorInfo\ + \x20when\x20the\x20request\x20is\x20calling\x20Google\x20APIs\x20with\ + \x20an\n\x20expired\x20access\x20token:\n\n\x20\x20\x20\x20\x20{\x20\"re\ + ason\":\x20\"ACCESS_TOKEN_EXPIRED\"\n\x20\x20\x20\x20\x20\x20\x20\"domai\ + n\":\x20\"googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\ + \x20{}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x10\x01\x12\x04\xc9\ + \x02\x02\x16\n\r\n\x05\x05\0\x02\x10\x02\x12\x04\xc9\x02\x19\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/field_behavior.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/field_behavior.rs new file mode 100644 index 0000000000..d9f55c43aa --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/field_behavior.rs @@ -0,0 +1,199 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/field_behavior.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, +} + +impl ::protobuf::ProtobufEnum for FieldBehavior { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED), + 1 => ::std::option::Option::Some(FieldBehavior::OPTIONAL), + 2 => ::std::option::Option::Some(FieldBehavior::REQUIRED), + 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), + _ => ::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, + ]; + 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::("FieldBehavior", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for FieldBehavior { +} + +impl ::std::default::Default for FieldBehavior { + fn default() -> Self { + FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for FieldBehavior { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +/// 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 }; +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a\x20google/prot\ + obuf/descriptor.proto*\x8f\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:`\n\x0ef\ + ield_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\xab\x18\n\x06\x12\x04\x0e\0S\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\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\0S\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\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/http.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/http.rs new file mode 100644 index 0000000000..44609c64b2 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/http.rs @@ -0,0 +1,1542 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/http.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Http { + // message fields + pub rules: ::protobuf::RepeatedField, + pub fully_decode_reserved_expansion: bool, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Http { + fn default() -> &'a Http { + ::default_instance() + } +} + +impl Http { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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; + }; + if self.fully_decode_reserved_expansion != 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.rules { + 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.fully_decode_reserved_expansion != false { + os.write_bool(2, self.fully_decode_reserved_expansion)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Http { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Http::new) + } +} + +impl ::protobuf::Clear for Http { + fn clear(&mut self) { + self.rules.clear(); + self.fully_decode_reserved_expansion = false; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct HttpRule { + // message fields + pub selector: ::std::string::String, + pub body: ::std::string::String, + pub response_body: ::std::string::String, + pub additional_bindings: ::protobuf::RepeatedField, + // message oneof groups + pub pattern: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a HttpRule { + fn default() -> &'a HttpRule { + ::default_instance() + } +} + +#[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 { + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::get(::std::string::String::new())); + } + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_pattern::get(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // string put = 3; + + + pub fn get_put(&self) -> &str { + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::put(::std::string::String::new())); + } + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_pattern::put(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // string post = 4; + + + pub fn get_post(&self) -> &str { + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::post(::std::string::String::new())); + } + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_pattern::post(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // string delete = 5; + + + pub fn get_delete(&self) -> &str { + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::delete(::std::string::String::new())); + } + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_pattern::delete(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // string patch = 6; + + + pub fn get_patch(&self) -> &str { + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::patch(::std::string::String::new())); + } + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_pattern::patch(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // .google.api.CustomHttpPattern custom = 8; + + + pub fn get_custom(&self) -> &CustomHttpPattern { + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::custom(CustomHttpPattern::new())); + } + match self.pattern { + ::std::option::Option::Some(HttpRule_oneof_pattern::custom(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + CustomHttpPattern::new() + } + } + + // 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.body)?; + }, + 12 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.response_body)?; + }, + 11 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.additional_bindings)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.body.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.body); + } + if !self.response_body.is_empty() { + my_size += ::protobuf::rt::string_size(12, &self.response_body); + } + for value in &self.additional_bindings { + 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.pattern { + match v { + &HttpRule_oneof_pattern::get(ref v) => { + my_size += ::protobuf::rt::string_size(2, &v); + }, + &HttpRule_oneof_pattern::put(ref v) => { + my_size += ::protobuf::rt::string_size(3, &v); + }, + &HttpRule_oneof_pattern::post(ref v) => { + my_size += ::protobuf::rt::string_size(4, &v); + }, + &HttpRule_oneof_pattern::delete(ref v) => { + my_size += ::protobuf::rt::string_size(5, &v); + }, + &HttpRule_oneof_pattern::patch(ref v) => { + my_size += ::protobuf::rt::string_size(6, &v); + }, + &HttpRule_oneof_pattern::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.selector.is_empty() { + os.write_string(1, &self.selector)?; + } + if !self.body.is_empty() { + os.write_string(7, &self.body)?; + } + if !self.response_body.is_empty() { + 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)?; + }; + if let ::std::option::Option::Some(ref v) = self.pattern { + match v { + &HttpRule_oneof_pattern::get(ref v) => { + os.write_string(2, v)?; + }, + &HttpRule_oneof_pattern::put(ref v) => { + os.write_string(3, v)?; + }, + &HttpRule_oneof_pattern::post(ref v) => { + os.write_string(4, v)?; + }, + &HttpRule_oneof_pattern::delete(ref v) => { + os.write_string(5, v)?; + }, + &HttpRule_oneof_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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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; + self.pattern = ::std::option::Option::None; + self.pattern = ::std::option::Option::None; + self.pattern = ::std::option::Option::None; + self.pattern = ::std::option::Option::None; + self.pattern = ::std::option::Option::None; + self.body.clear(); + self.response_body.clear(); + self.additional_bindings.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CustomHttpPattern { + // message fields + pub kind: ::std::string::String, + pub path: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CustomHttpPattern { + fn default() -> &'a CustomHttpPattern { + ::default_instance() + } +} + +impl CustomHttpPattern { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.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; + if !self.kind.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.kind); + } + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static CustomHttpPattern { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CustomHttpPattern::new) + } +} + +impl ::protobuf::Clear for CustomHttpPattern { + fn clear(&mut self) { + self.kind.clear(); + self.path.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x15google/api/http.proto\x12\ngoogle.api\"y\n\x04Http\x12*\n\x05rules\ + \x18\x01\x20\x03(\x0b2\x14.google.api.HttpRuleR\x05rules\x12E\n\x1ffully\ + _decode_reserved_expansion\x18\x02\x20\x01(\x08R\x1cfullyDecodeReservedE\ + xpansion\"\xda\x02\n\x08HttpRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\ + \tR\x08selector\x12\x12\n\x03get\x18\x02\x20\x01(\tH\0R\x03get\x12\x12\n\ + \x03put\x18\x03\x20\x01(\tH\0R\x03put\x12\x14\n\x04post\x18\x04\x20\x01(\ + \tH\0R\x04post\x12\x18\n\x06delete\x18\x05\x20\x01(\tH\0R\x06delete\x12\ + \x16\n\x05patch\x18\x06\x20\x01(\tH\0R\x05patch\x127\n\x06custom\x18\x08\ + \x20\x01(\x0b2\x1d.google.api.CustomHttpPatternH\0R\x06custom\x12\x12\n\ + \x04body\x18\x07\x20\x01(\tR\x04body\x12#\n\rresponse_body\x18\x0c\x20\ + \x01(\tR\x0cresponseBody\x12E\n\x13additional_bindings\x18\x0b\x20\x03(\ + \x0b2\x14.google.api.HttpRuleR\x12additionalBindingsB\t\n\x07pattern\";\ + \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\x8ct\n\x07\x12\x05\x0e\0\xf6\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\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\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\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\r\n\x05\x04\0\x02\x01\x04\ + \x12\x04(\x02\x20\x1e\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\xb8\x02\0\xed\x02\x01\x1a\xa4S\ + \x20#\x20gRPC\x20Transcoding\n\n\x20gRPC\x20Transcoding\x20is\x20a\x20fe\ + ature\x20for\x20mapping\x20between\x20a\x20gRPC\x20method\x20and\x20one\ + \x20or\n\x20more\x20HTTP\x20REST\x20endpoints.\x20It\x20allows\x20develo\ + pers\x20to\x20build\x20a\x20single\x20API\x20service\n\x20that\x20suppor\ + ts\x20both\x20gRPC\x20APIs\x20and\x20REST\x20APIs.\x20Many\x20systems,\ + \x20including\x20[Google\n\x20APIs](https://github.com/googleapis/google\ + apis),\n\x20[Cloud\x20Endpoints](https://cloud.google.com/endpoints),\ + \x20[gRPC\n\x20Gateway](https://github.com/grpc-ecosystem/grpc-gateway),\ + \n\x20and\x20[Envoy](https://github.com/envoyproxy/envoy)\x20proxy\x20su\ + pport\x20this\x20feature\n\x20and\x20use\x20it\x20for\x20large\x20scale\ + \x20production\x20services.\n\n\x20`HttpRule`\x20defines\x20the\x20schem\ + a\x20of\x20the\x20gRPC/REST\x20mapping.\x20The\x20mapping\x20specifies\n\ + \x20how\x20different\x20portions\x20of\x20the\x20gRPC\x20request\x20mess\ + age\x20are\x20mapped\x20to\x20the\x20URL\n\x20path,\x20URL\x20query\x20p\ + arameters,\x20and\x20HTTP\x20request\x20body.\x20It\x20also\x20controls\ + \x20how\x20the\n\x20gRPC\x20response\x20message\x20is\x20mapped\x20to\ + \x20the\x20HTTP\x20response\x20body.\x20`HttpRule`\x20is\n\x20typically\ + \x20specified\x20as\x20an\x20`google.api.http`\x20annotation\x20on\x20th\ + e\x20gRPC\x20method.\n\n\x20Each\x20mapping\x20specifies\x20a\x20URL\x20\ + path\x20template\x20and\x20an\x20HTTP\x20method.\x20The\x20path\n\x20tem\ + plate\x20may\x20refer\x20to\x20one\x20or\x20more\x20fields\x20in\x20the\ + \x20gRPC\x20request\x20message,\x20as\x20long\n\x20as\x20each\x20field\ + \x20is\x20a\x20non-repeated\x20field\x20with\x20a\x20primitive\x20(non-m\ + essage)\x20type.\n\x20The\x20path\x20template\x20controls\x20how\x20fiel\ + ds\x20of\x20the\x20request\x20message\x20are\x20mapped\x20to\n\x20the\ + \x20URL\x20path.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20service\x20Messa\ + ging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMessageReque\ + st)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20op\ + tion\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\x20U\ + RL\x20path.\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20Messa\ + ge\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20text\x20=\x201;\x20//\x20\ + The\x20resource\x20content.\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enable\ + s\x20an\x20HTTP\x20REST\x20to\x20gRPC\x20mapping\x20as\x20below:\n\n\x20\ + HTTP\x20|\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456`\x20\ + \x20|\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\x20HTTP\x20|\x20gRP\ + C\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456?revision=2&sub.subfi\ + eld=foo`\x20|\n\x20`GetMessage(message_id:\x20\"123456\"\x20revision:\ + \x202\x20sub:\x20SubMessage(subfield:\n\x20\"foo\"))`\n\n\x20Note\x20tha\ + t\x20fields\x20which\x20are\x20mapped\x20to\x20URL\x20query\x20parameter\ + s\x20must\x20have\x20a\n\x20primitive\x20type\x20or\x20a\x20repeated\x20\ + primitive\x20type\x20or\x20a\x20non-repeated\x20message\x20type.\n\x20In\ + \x20the\x20case\x20of\x20a\x20repeated\x20type,\x20the\x20parameter\x20c\ + an\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\x20par\ + ameter,\x20such\x20as\n\x20`...?foo.a=A&foo.b=B&foo.c=C`.\n\n\x20For\x20\ + HTTP\x20methods\x20that\x20allow\x20a\x20request\x20body,\x20the\x20`bod\ + y`\x20field\n\x20specifies\x20the\x20mapping.\x20Consider\x20a\x20REST\ + \x20update\x20method\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(Messag\ + e)\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\x20bod\ + y:\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\x20mes\ + sage_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\x20\ + representation\x20of\x20the\x20JSON\x20in\x20the\x20request\x20body\x20i\ + s\x20determined\x20by\n\x20protos\x20JSON\x20encoding:\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\ + \"\x20message\x20{\x20text:\x20\"Hi!\"\x20})`\n\n\x20The\x20special\x20n\ + ame\x20`*`\x20can\x20be\x20used\x20in\x20the\x20body\x20mapping\x20to\ + \x20define\x20that\n\x20every\x20field\x20not\x20bound\x20by\x20the\x20p\ + ath\x20template\x20should\x20be\x20mapped\x20to\x20the\n\x20request\x20b\ + ody.\x20\x20This\x20enables\x20the\x20following\x20alternative\x20defini\ + tion\x20of\n\x20the\x20update\x20method:\n\n\x20\x20\x20\x20\x20service\ + \x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateMessage(Mes\ + sage)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + option\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\x20str\ + ing\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\x20\ + JSON\x20to\x20RPC\x20mapping\x20is\x20enabled:\n\n\x20HTTP\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\"\x20\ + text:\x20\"Hi!\")`\n\n\x20Note\x20that\x20when\x20using\x20`*`\x20in\x20\ + the\x20body\x20mapping,\x20it\x20is\x20not\x20possible\x20to\n\x20have\ + \x20HTTP\x20parameters,\x20as\x20all\x20fields\x20not\x20bound\x20by\x20\ + the\x20path\x20end\x20in\n\x20the\x20body.\x20This\x20makes\x20this\x20o\ + ption\x20more\x20rarely\x20used\x20in\x20practice\x20when\n\x20defining\ + \x20REST\x20APIs.\x20The\x20common\x20usage\x20of\x20`*`\x20is\x20in\x20\ + custom\x20methods\n\x20which\x20don't\x20use\x20the\x20URL\x20at\x20all\ + \x20for\x20transferring\x20data.\n\n\x20It\x20is\x20possible\x20to\x20de\ + fine\x20multiple\x20HTTP\x20methods\x20for\x20one\x20RPC\x20by\x20using\ + \n\x20the\x20`additional_bindings`\x20option.\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(google.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\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\xb8\x02\x08\x10\n\x8d\x01\n\x04\x04\x01\ + \x02\0\x12\x04\xbc\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\ + \x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xbc\x02\x02\xb8\x02\x12\n\r\n\x05\ + \x04\x01\x02\0\x05\x12\x04\xbc\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\ + \x12\x04\xbc\x02\t\x11\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xbc\x02\x14\ + \x15\n\xd0\x01\n\x04\x04\x01\x08\0\x12\x06\xc1\x02\x02\xd7\x02\x03\x1a\ + \xbf\x01\x20Determines\x20the\x20URL\x20pattern\x20is\x20matched\x20by\ + \x20this\x20rules.\x20This\x20pattern\x20can\x20be\n\x20used\x20with\x20\ + any\x20of\x20the\x20{get|put|post|delete|patch}\x20methods.\x20A\x20cust\ + om\x20method\n\x20can\x20be\x20defined\x20using\x20the\x20'custom'\x20fi\ + eld.\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\xc1\x02\x08\x0f\n\\\n\x04\x04\ + \x01\x02\x01\x12\x04\xc4\x02\x04\x13\x1aN\x20Maps\x20to\x20HTTP\x20GET.\ + \x20Used\x20for\x20listing\x20and\x20getting\x20information\x20about\n\ + \x20resources.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xc4\x02\x04\n\n\r\ + \n\x05\x04\x01\x02\x01\x01\x12\x04\xc4\x02\x0b\x0e\n\r\n\x05\x04\x01\x02\ + \x01\x03\x12\x04\xc4\x02\x11\x12\n@\n\x04\x04\x01\x02\x02\x12\x04\xc7\ + \x02\x04\x13\x1a2\x20Maps\x20to\x20HTTP\x20PUT.\x20Used\x20for\x20replac\ + ing\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xc7\x02\ + \x04\n\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xc7\x02\x0b\x0e\n\r\n\x05\ + \x04\x01\x02\x02\x03\x12\x04\xc7\x02\x11\x12\nX\n\x04\x04\x01\x02\x03\ + \x12\x04\xca\x02\x04\x14\x1aJ\x20Maps\x20to\x20HTTP\x20POST.\x20Used\x20\ + for\x20creating\x20a\x20resource\x20or\x20performing\x20an\x20action.\n\ + \n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\xca\x02\x04\n\n\r\n\x05\x04\x01\ + \x02\x03\x01\x12\x04\xca\x02\x0b\x0f\n\r\n\x05\x04\x01\x02\x03\x03\x12\ + \x04\xca\x02\x12\x13\nB\n\x04\x04\x01\x02\x04\x12\x04\xcd\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\xcd\x02\x04\n\n\r\ + \n\x05\x04\x01\x02\x04\x01\x12\x04\xcd\x02\x0b\x11\n\r\n\x05\x04\x01\x02\ + \x04\x03\x12\x04\xcd\x02\x14\x15\nA\n\x04\x04\x01\x02\x05\x12\x04\xd0\ + \x02\x04\x15\x1a3\x20Maps\x20to\x20HTTP\x20PATCH.\x20Used\x20for\x20upda\ + ting\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\xd0\x02\ + \x04\n\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\xd0\x02\x0b\x10\n\r\n\x05\ + \x04\x01\x02\x05\x03\x12\x04\xd0\x02\x13\x14\n\x98\x02\n\x04\x04\x01\x02\ + \x06\x12\x04\xd6\x02\x04!\x1a\x89\x02\x20The\x20custom\x20pattern\x20is\ + \x20used\x20for\x20specifying\x20an\x20HTTP\x20method\x20that\x20is\x20n\ + ot\n\x20included\x20in\x20the\x20`pattern`\x20field,\x20such\x20as\x20HE\ + AD,\x20or\x20\"*\"\x20to\x20leave\x20the\n\x20HTTP\x20method\x20unspecif\ + ied\x20for\x20this\x20rule.\x20The\x20wild-card\x20rule\x20is\x20useful\ + \n\x20for\x20services\x20that\x20provide\x20content\x20to\x20Web\x20(HTM\ + L)\x20clients.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\xd6\x02\x04\x15\n\ + \r\n\x05\x04\x01\x02\x06\x01\x12\x04\xd6\x02\x16\x1c\n\r\n\x05\x04\x01\ + \x02\x06\x03\x12\x04\xd6\x02\x1f\x20\n\xc4\x02\n\x04\x04\x01\x02\x07\x12\ + \x04\xdf\x02\x02\x12\x1a\xb5\x02\x20The\x20name\x20of\x20the\x20request\ + \x20field\x20whose\x20value\x20is\x20mapped\x20to\x20the\x20HTTP\x20requ\ + est\n\x20body,\x20or\x20`*`\x20for\x20mapping\x20all\x20request\x20field\ + s\x20not\x20captured\x20by\x20the\x20path\n\x20pattern\x20to\x20the\x20H\ + TTP\x20body,\x20or\x20omitted\x20for\x20not\x20having\x20any\x20HTTP\x20\ + request\x20body.\n\n\x20NOTE:\x20the\x20referred\x20field\x20must\x20be\ + \x20present\x20at\x20the\x20top-level\x20of\x20the\x20request\n\x20messa\ + ge\x20type.\n\n\x0f\n\x05\x04\x01\x02\x07\x04\x12\x06\xdf\x02\x02\xd7\ + \x02\x03\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\xdf\x02\x02\x08\n\r\n\x05\ + \x04\x01\x02\x07\x01\x12\x04\xdf\x02\t\r\n\r\n\x05\x04\x01\x02\x07\x03\ + \x12\x04\xdf\x02\x10\x11\n\x99\x02\n\x04\x04\x01\x02\x08\x12\x04\xe7\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\ + \x0f\n\x05\x04\x01\x02\x08\x04\x12\x06\xe7\x02\x02\xdf\x02\x12\n\r\n\x05\ + \x04\x01\x02\x08\x05\x12\x04\xe7\x02\x02\x08\n\r\n\x05\x04\x01\x02\x08\ + \x01\x12\x04\xe7\x02\t\x16\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\xe7\x02\ + \x19\x1b\n\xbb\x01\n\x04\x04\x01\x02\t\x12\x04\xec\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\x20may\x20on\ + ly\x20be\x20one\x20level\x20deep).\n\n\r\n\x05\x04\x01\x02\t\x04\x12\x04\ + \xec\x02\x02\n\n\r\n\x05\x04\x01\x02\t\x06\x12\x04\xec\x02\x0b\x13\n\r\n\ + \x05\x04\x01\x02\t\x01\x12\x04\xec\x02\x14'\n\r\n\x05\x04\x01\x02\t\x03\ + \x12\x04\xec\x02*,\nG\n\x02\x04\x02\x12\x06\xf0\x02\0\xf6\x02\x01\x1a9\ + \x20A\x20custom\x20pattern\x20is\x20used\x20for\x20defining\x20custom\ + \x20HTTP\x20verb.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xf0\x02\x08\x19\n2\n\ + \x04\x04\x02\x02\0\x12\x04\xf2\x02\x02\x12\x1a$\x20The\x20name\x20of\x20\ + this\x20custom\x20HTTP\x20verb.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\ + \xf2\x02\x02\xf0\x02\x1b\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xf2\x02\x02\ + \x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xf2\x02\t\r\n\r\n\x05\x04\x02\ + \x02\0\x03\x12\x04\xf2\x02\x10\x11\n5\n\x04\x04\x02\x02\x01\x12\x04\xf5\ + \x02\x02\x12\x1a'\x20The\x20path\x20matched\x20by\x20this\x20custom\x20v\ + erb.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xf5\x02\x02\xf2\x02\x12\n\ + \r\n\x05\x04\x02\x02\x01\x05\x12\x04\xf5\x02\x02\x08\n\r\n\x05\x04\x02\ + \x02\x01\x01\x12\x04\xf5\x02\t\r\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ + \xf5\x02\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/httpbody.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/httpbody.rs new file mode 100644 index 0000000000..740ea5f5e3 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/httpbody.rs @@ -0,0 +1,360 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/httpbody.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct HttpBody { + // message fields + pub content_type: ::std::string::String, + pub data: ::std::vec::Vec, + pub extensions: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a HttpBody { + fn default() -> &'a HttpBody { + ::default_instance() + } +} + +impl HttpBody { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; + }, + 3 => { + ::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())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.content_type.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.content_type); + } + if !self.data.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.data); + } + for value in &self.extensions { + 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.content_type.is_empty() { + os.write_string(1, &self.content_type)?; + } + if !self.data.is_empty() { + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static HttpBody { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(HttpBody::new) + } +} + +impl ::protobuf::Clear for HttpBody { + fn clear(&mut self) { + self.content_type.clear(); + self.data.clear(); + self.extensions.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x19google/api/httpbody.proto\x12\ngoogle.api\x1a\x19google/protobuf/a\ + ny.proto\"w\n\x08HttpBody\x12!\n\x0ccontent_type\x18\x01\x20\x01(\tR\x0b\ + 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\xc0\x13\n\x06\ + \x12\x04\x0e\0L\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ + pyright\x202020\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\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\xa4\n\n\x02\x04\0\x12\x04B\0L\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\ + \x20HTML\x20page.\n\n\n\x20This\x20message\x20can\x20be\x20used\x20both\ + \x20in\x20streaming\x20and\x20non-streaming\x20API\x20methods\x20in\n\ + \x20the\x20request\x20as\x20well\x20as\x20the\x20response.\n\n\x20It\x20\ + can\x20be\x20used\x20as\x20a\x20top-level\x20request\x20field,\x20which\ + \x20is\x20convenient\x20if\x20one\n\x20wants\x20to\x20extract\x20paramet\ + ers\x20from\x20either\x20the\x20URL\x20or\x20HTTP\x20template\x20into\ + \x20the\n\x20request\x20fields\x20and\x20also\x20want\x20access\x20to\ + \x20the\x20raw\x20HTTP\x20body.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20m\ + essage\x20GetResourceRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20A\ + \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}\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\x03B\x08\x10\nZ\n\x04\x04\0\x02\0\x12\x03D\x02\x1a\x1aM\x20The\x20H\ + TTP\x20Content-Type\x20header\x20value\x20specifying\x20the\x20content\ + \x20type\x20of\x20the\x20body.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04D\x02B\ + \x12\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\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03D\x18\x19\n<\n\ + \x04\x04\0\x02\x01\x12\x03G\x02\x11\x1a/\x20The\x20HTTP\x20request/respo\ + nse\x20body\x20as\x20raw\x20binary.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\ + \x04G\x02D\x1a\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03G\x02\x07\n\x0c\n\ + \x05\x04\0\x02\x01\x01\x12\x03G\x08\x0c\n\x0c\n\x05\x04\0\x02\x01\x03\ + \x12\x03G\x0f\x10\nm\n\x04\x04\0\x02\x02\x12\x03K\x02.\x1a`\x20Applicati\ + on\x20specific\x20response\x20metadata.\x20Must\x20be\x20set\x20in\x20th\ + e\x20first\x20response\n\x20for\x20streaming\x20APIs.\n\n\x0c\n\x05\x04\ + \0\x02\x02\x04\x12\x03K\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03K\x0b\ + \x1e\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03K\x1f)\n\x0c\n\x05\x04\0\x02\ + \x02\x03\x12\x03K,-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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/label.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/label.rs new file mode 100644 index 0000000000..653937c9c3 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/label.rs @@ -0,0 +1,375 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/label.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct LabelDescriptor { + // message fields + pub key: ::std::string::String, + pub value_type: LabelDescriptor_ValueType, + pub description: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a LabelDescriptor { + fn default() -> &'a LabelDescriptor { + ::default_instance() + } +} + +impl LabelDescriptor { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.value_type, 2, &mut self.unknown_fields)? + }, + 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())?; + }, + }; + } + ::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_type != LabelDescriptor_ValueType::STRING { + my_size += ::protobuf::rt::enum_size(2, self.value_type); + } + 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.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.description.is_empty() { + os.write_string(3, &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() -> 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 default_instance() -> &'static LabelDescriptor { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(LabelDescriptor::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum LabelDescriptor_ValueType { + STRING = 0, + BOOL = 1, + INT64 = 2, +} + +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(LabelDescriptor_ValueType::STRING), + 1 => ::std::option::Option::Some(LabelDescriptor_ValueType::BOOL), + 2 => ::std::option::Option::Some(LabelDescriptor_ValueType::INT64), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [LabelDescriptor_ValueType] = &[ + LabelDescriptor_ValueType::STRING, + LabelDescriptor_ValueType::BOOL, + LabelDescriptor_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 ::std::marker::Copy for LabelDescriptor_ValueType { +} + +impl ::std::default::Default for LabelDescriptor_ValueType { + fn default() -> Self { + LabelDescriptor_ValueType::STRING + } +} + +impl ::protobuf::reflect::ProtobufValue for LabelDescriptor_ValueType { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x16google/api/label.proto\x12\ngoogle.api\"\xb9\x01\n\x0fLabelDescrip\ + tor\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12D\n\nvalue_type\x18\ + \x02\x20\x01(\x0e2%.google.api.LabelDescriptor.ValueTypeR\tvalueType\x12\ + \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\x91\x0b\n\x06\ + \x12\x04\x0e\0/\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ + pyright\x202020\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\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\x20v\ + alues.\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\x20is\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\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\r\n\x05\x04\0\x02\0\x04\x12\x04\ + (\x02%\x03\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\x20da\ + ta\x20that\x20can\x20be\x20assigned\x20to\x20the\x20label.\n\n\r\n\x05\ + \x04\0\x02\x01\x04\x12\x04+\x02(\x11\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\r\n\x05\x04\0\x02\x02\x04\x12\x04.\x02+\x1b\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/launch_stage.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/launch_stage.rs new file mode 100644 index 0000000000..d49d553482 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/launch_stage.rs @@ -0,0 +1,189 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/launch_stage.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum LaunchStage { + LAUNCH_STAGE_UNSPECIFIED = 0, + UNIMPLEMENTED = 6, + PRELAUNCH = 7, + EARLY_ACCESS = 1, + ALPHA = 2, + BETA = 3, + GA = 4, + DEPRECATED = 5, +} + +impl ::protobuf::ProtobufEnum for LaunchStage { + fn value(&self) -> i32 { + *self as i32 + } + + 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), + 4 => ::std::option::Option::Some(LaunchStage::GA), + 5 => ::std::option::Option::Some(LaunchStage::DEPRECATED), + _ => ::std::option::Option::None + } + } + + 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 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()) + }) + } +} + +impl ::std::marker::Copy for LaunchStage { +} + +impl ::std::default::Default for LaunchStage { + fn default() -> Self { + LaunchStage::LAUNCH_STAGE_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for LaunchStage { + 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/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\xc7\x17\n\x06\x12\x04\x0e\0G\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb1\x04\x20Copyright\x202020\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\x81\x01\n\x02\ + \x05\0\x12\x04\x1a\0G\x01\x1au\x20The\x20launch\x20stage\x20as\x20define\ + d\x20by\x20[Google\x20Cloud\x20Platform\n\x20Launch\x20Stages](http://cl\ + oud.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\xed\x04\n\x04\x05\0\x02\x04\x12\x034\x02\x0c\ + \x1a\xdf\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\xe2\ + \x80\x99t\x20have\x20to\x20be\x20feature\x20complete,\n\x20no\x20SLAs\ + \x20are\x20provided,\x20and\x20there\x20are\x20no\x20technical\x20suppor\ + t\x20obligations,\x20but\n\x20they\x20will\x20be\x20far\x20enough\x20alo\ + ng\x20that\x20customers\x20can\x20actually\x20use\x20them\x20in\n\x20tes\ + t\x20environments\x20or\x20for\x20limited-use\x20tests\x20--\x20just\x20\ + like\x20they\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\x20open\x20a\x20release\x20for\x20any\n\x20customer\x20to\x20use.\ + \x20There\x20are\x20no\x20SLA\x20or\x20technical\x20support\x20obligatio\ + ns\x20in\x20a\n\x20Beta\x20release.\x20Products\x20will\x20be\x20complet\ + e\x20from\x20a\x20feature\x20perspective,\x20but\n\x20may\x20have\x20som\ + e\x20open\x20outstanding\x20issues.\x20Beta\x20releases\x20are\x20suitab\ + le\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\x20stabl\ + e\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\xc9\x02\n\x04\x05\0\x02\x07\x12\x03F\x02\x11\x1a\xbb\ + \x02\x20Deprecated\x20features\x20are\x20scheduled\x20to\x20be\x20shut\ + \x20down\x20and\x20removed.\x20For\x20more\n\x20information,\x20see\x20t\ + he\x20\xe2\x80\x9cDeprecation\x20Policy\xe2\x80\x9d\x20section\x20of\x20\ + our\x20[Terms\x20of\n\x20Service](https://cloud.google.com/terms/)\n\x20\ + and\x20the\x20[Google\x20Cloud\x20Platform\x20Subject\x20to\x20the\x20De\ + precation\n\x20Policy](https://cloud.google.com/terms/deprecation)\x20do\ + cumentation.\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/log.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/log.rs new file mode 100644 index 0000000000..06cc294513 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/log.rs @@ -0,0 +1,391 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/log.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct LogDescriptor { + // message fields + pub name: ::std::string::String, + pub labels: ::protobuf::RepeatedField, + pub description: ::std::string::String, + pub display_name: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a LogDescriptor { + fn default() -> &'a LogDescriptor { + ::default_instance() + } +} + +impl LogDescriptor { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_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); + } + for value in &self.labels { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.description); + } + 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 + } + + 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.labels { + 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.description.is_empty() { + os.write_string(3, &self.description)?; + } + if !self.display_name.is_empty() { + os.write_string(4, &self.display_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() -> 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 default_instance() -> &'static LogDescriptor { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(LogDescriptor::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x14google/api/log.proto\x12\ngoogle.api\x1a\x16google/api/label.proto\ + \"\x9d\x01\n\rLogDescriptor\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04nam\ + e\x123\n\x06labels\x18\x02\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\ + \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\xab\x0f\n\x06\x12\x04\x0e\05\ + \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\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\ + g\x20and\x20returning\x20library\x20items.\n\x20\x20\x20\x20\x20\x20\x20\ + 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\ + 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\r\n\x05\x04\0\x02\0\x04\x12\x04'\x02\"\x17\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\x20contain\x20labels\x20not\ + \x20specified\x20here\x20are\n\x20considered\x20invalid.\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\x20this\x20log.\x20Thi\ + s\x20information\x20appears\x20in\n\x20the\x20documentation\x20and\x20ca\ + n\x20contain\x20details.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x040\x02,&\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\x034\x02\x1a\x1an\x20The\x20human-readable\x20nam\ + e\x20for\x20this\x20log.\x20This\x20information\x20appears\x20on\n\x20th\ + e\x20user\x20interface\x20and\x20should\x20be\x20concise.\n\n\r\n\x05\ + \x04\0\x02\x03\x04\x12\x044\x020\x19\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/logging.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/logging.rs new file mode 100644 index 0000000000..fa10d20764 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/logging.rs @@ -0,0 +1,541 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/logging.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Logging { + // message fields + pub producer_destinations: ::protobuf::RepeatedField, + pub consumer_destinations: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Logging { + fn default() -> &'a Logging { + ::default_instance() + } +} + +impl Logging { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.consumer_destinations)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.producer_destinations { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 += ::protobuf::rt::unknown_fields_size(self.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.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)?; + }; + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Logging { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Logging::new) + } +} + +impl ::protobuf::Clear for Logging { + fn clear(&mut self) { + self.producer_destinations.clear(); + self.consumer_destinations.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[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()) + } + + // repeated string logs = 1; + + + pub fn get_logs(&self) -> &[::std::string::String] { + &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<::std::string::String>) { + self.logs = v; + } + + // Mutable pointer to the field. + pub fn mut_logs(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.logs + } + + // Take field + pub fn take_logs(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.logs, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for Logging_LoggingDestination { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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())?; + }, + }; + } + ::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); + } + 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)?; + } + 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 new() -> Logging_LoggingDestination { + Logging_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 default_instance() -> &'static Logging_LoggingDestination { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Logging_LoggingDestination::new) + } +} + +impl ::protobuf::Clear for Logging_LoggingDestination { + fn clear(&mut self) { + self.monitored_resource.clear(); + self.logs.clear(); + self.unknown_fields.clear(); + } +} + +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 ::protobuf::reflect::ProtobufValue for Logging_LoggingDestination { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x18google/api/logging.proto\x12\ngoogle.api\"\x9c\x02\n\x07Logging\ + \x12[\n\x15producer_destinations\x18\x01\x20\x03(\x0b2&.google.api.Loggi\ + ng.LoggingDestinationR\x14producerDestinations\x12[\n\x15consumer_destin\ + ations\x18\x02\x20\x03(\x0b2&.google.api.Logging.LoggingDestinationR\x14\ + consumerDestinations\x1aW\n\x12LoggingDestination\x12-\n\x12monitored_re\ + 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\xaa\x17\n\x06\x12\x04\x0e\0O\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\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\0O\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\ + \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\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\x20is\x20located\x20in.\n\x20\x20\x20\x20\ + \x20\x20\x20-\x20key:\x20/name\n\x20\x20\x20\x20\x20\x20\x20\x20\x20desc\ + ription:\x20The\x20name\x20of\x20the\x20branch.\n\x20\x20\x20\x20\x20log\ + s:\n\x20\x20\x20\x20\x20-\x20name:\x20activity_history\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-\x20name:\x20purchase_history\n\x20\x20\x20\x20\ + \x20logging:\n\x20\x20\x20\x20\x20\x20\x20producer_destinations:\n\x20\ + \x20\x20\x20\x20\x20\x20-\x20monitored_resource:\x20library.googleapis.c\ + om/branch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20logs:\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20-\x20activity_history\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20-\x20purchase_history\n\x20\x20\x20\x20\x20\x20\x20consumer_dest\ + 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\x02B\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\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]\x20section.\n\ + \n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04;\x048\x1e\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\x03A\x04\x1d\x1a\xfe\x01\x20Names\x20of\ + \x20the\x20logs\x20to\x20be\x20sent\x20to\x20this\x20destination.\x20Eac\ + h\x20name\x20must\n\x20be\x20defined\x20in\x20the\x20[Service.logs][goog\ + le.api.Service.logs]\x20section.\x20If\x20the\x20log\x20name\x20is\n\x20\ + not\x20a\x20domain\x20scoped\x20name,\x20it\x20will\x20be\x20automatical\ + ly\x20prefixed\x20with\n\x20the\x20service\x20name\x20followed\x20by\x20\ + \"/\".\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03A\x04\x0c\n\x0e\n\ + \x07\x04\0\x03\0\x02\x01\x05\x12\x03A\r\x13\n\x0e\n\x07\x04\0\x03\0\x02\ + \x01\x01\x12\x03A\x14\x18\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03A\ + \x1b\x1c\n\xef\x01\n\x04\x04\0\x02\0\x12\x03H\x028\x1a\xe1\x01\x20Loggin\ + g\x20configurations\x20for\x20sending\x20logs\x20to\x20the\x20producer\ + \x20project.\n\x20There\x20can\x20be\x20multiple\x20producer\x20destinat\ + ions,\x20each\x20one\x20must\x20have\x20a\n\x20different\x20monitored\ + \x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\x20in\x20at\x20mo\ + st\n\x20one\x20producer\x20destination.\n\n\x0c\n\x05\x04\0\x02\0\x04\ + \x12\x03H\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03H\x0b\x1d\n\x0c\n\x05\ + \x04\0\x02\0\x01\x12\x03H\x1e3\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03H67\n\ + \xef\x01\n\x04\x04\0\x02\x01\x12\x03N\x028\x1a\xe1\x01\x20Logging\x20con\ + figurations\x20for\x20sending\x20logs\x20to\x20the\x20consumer\x20projec\ + t.\n\x20There\x20can\x20be\x20multiple\x20consumer\x20destinations,\x20e\ + ach\x20one\x20must\x20have\x20a\n\x20different\x20monitored\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\x03N\ + \x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03N\x0b\x1d\n\x0c\n\x05\x04\0\ + \x02\x01\x01\x12\x03N\x1e3\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03N67b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/metric.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/metric.rs new file mode 100644 index 0000000000..9196bbe119 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/metric.rs @@ -0,0 +1,1502 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/metric.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct MetricDescriptor { + // message fields + 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, + pub unit: ::std::string::String, + pub description: ::std::string::String, + 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>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MetricDescriptor { + fn default() -> &'a MetricDescriptor { + ::default_instance() + } +} + +impl MetricDescriptor { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; + }, + 3 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.metric_kind, 3, &mut self.unknown_fields)? + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.value_type, 4, &mut self.unknown_fields)? + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.unit)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + }, + 12 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 12, &mut self.unknown_fields)? + }, + 13 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.monitored_resource_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); + } + if !self.field_type.is_empty() { + my_size += ::protobuf::rt::string_size(8, &self.field_type); + } + for value in &self.labels { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if self.metric_kind != MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(3, self.metric_kind); + } + if self.value_type != MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(4, self.value_type); + } + if !self.unit.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.unit); + } + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.description); + } + 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() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(12, self.launch_stage); + } + 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 + } + + 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.is_empty() { + os.write_string(8, &self.field_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)?; + }; + if self.metric_kind != MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED { + os.write_enum(3, ::protobuf::ProtobufEnum::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.unit.is_empty() { + os.write_string(5, &self.unit)?; + } + if !self.description.is_empty() { + os.write_string(6, &self.description)?; + } + 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 self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { + os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.launch_stage))?; + } + for v in &self.monitored_resource_types { + os.write_string(13, &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() -> 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.labels.clear(); + self.metric_kind = MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED; + self.value_type = MetricDescriptor_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(); + } +} + +impl ::std::fmt::Debug for MetricDescriptor { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for MetricDescriptor { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 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); + } + + // 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(); + } + 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(); + } + + pub fn has_ingest_delay(&self) -> bool { + self.ingest_delay.is_some() + } + + // 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); + } + + // 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(); + } + 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()) + } +} + +impl ::protobuf::Message for MetricDescriptor_MetricDescriptorMetadata { + fn is_initialized(&self) -> bool { + for v in &self.sample_period { + if !v.is_initialized() { + return false; + } + }; + for v in &self.ingest_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_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())?; + }, + }; + } + ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + 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 as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> MetricDescriptor_MetricDescriptorMetadata { + MetricDescriptor_MetricDescriptorMetadata::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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() + ) + }) + } + + fn default_instance() -> &'static MetricDescriptor_MetricDescriptorMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MetricDescriptor_MetricDescriptorMetadata::new) + } +} + +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 ::std::fmt::Debug for MetricDescriptor_MetricDescriptorMetadata { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for MetricDescriptor_MetricDescriptorMetadata { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum MetricDescriptor_MetricKind { + METRIC_KIND_UNSPECIFIED = 0, + GAUGE = 1, + DELTA = 2, + CUMULATIVE = 3, +} + +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(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 values() -> &'static [Self] { + static values: &'static [MetricDescriptor_MetricKind] = &[ + MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED, + MetricDescriptor_MetricKind::GAUGE, + MetricDescriptor_MetricKind::DELTA, + MetricDescriptor_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 ::std::marker::Copy for MetricDescriptor_MetricKind { +} + +impl ::std::default::Default for MetricDescriptor_MetricKind { + fn default() -> Self { + MetricDescriptor_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)) + } +} + +#[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, +} + +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(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 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, + ]; + 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 ::std::marker::Copy for MetricDescriptor_ValueType { +} + +impl ::std::default::Default for MetricDescriptor_ValueType { + fn default() -> Self { + MetricDescriptor_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)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Metric { + // message fields + pub field_type: ::std::string::String, + 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 Metric { + fn default() -> &'a Metric { + ::default_instance() + } +} + +impl Metric { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::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; + if !self.field_type.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.field_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); + 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)?; + } + ::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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Metric { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + 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 ::std::fmt::Debug 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) + } +} + +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\ + (\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\ + ricKindR\nmetricKind\x12E\n\nvalue_type\x18\x04\x20\x01(\x0e2&.google.ap\ + i.MetricDescriptor.ValueTypeR\tvalueType\x12\x12\n\x04unit\x18\x05\x20\ + \x01(\tR\x04unit\x12\x20\n\x0bdescription\x18\x06\x20\x01(\tR\x0bdescrip\ + 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\xaeS\n\x07\ + \x12\x05\x0e\0\x87\x02\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ + \x04\x20Copyright\x202020\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\xfb\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\nW\n\x04\x04\0\x03\0\x12\x04\"\x020\x03\x1aI\x20Add\ + itional\x20annotations\x20that\x20can\x20be\x20used\x20to\x20guide\x20th\ + e\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\x1am\x20Deprecated.\x20Mus\ + t\x20use\x20the\x20[MetricDescriptor.launch_stage][google.api.MetricDesc\ + riptor.launch_stage]\x20instead.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\ + \x04$\x04\"$\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.\x20For\x20metrics\x20which\x20are\ + \x20written\n\x20periodically,\x20consecutive\x20data\x20points\x20are\ + \x20stored\x20at\x20this\x20time\x20interval,\n\x20excluding\x20data\x20\ + loss\x20due\x20to\x20errors.\x20Metrics\x20with\x20a\x20higher\x20granul\ + arity\x20have\n\x20a\x20smaller\x20sampling\x20period.\n\n\x0f\n\x07\x04\ + \0\x03\0\x02\x01\x04\x12\x04*\x04$5\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\x20po\ + ints\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\x0f\n\x07\x04\0\x03\0\x02\x02\x04\x12\x04/\x04*/\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\xd9\x01\n\x04\x04\0\x04\0\x12\x045\x02E\x03\x1a\xca\x01\x20The\ + \x20kind\x20of\x20measurement.\x20It\x20describes\x20how\x20the\x20data\ + \x20is\x20reported.\n\x20For\x20information\x20on\x20setting\x20the\x20s\ + tart\x20time\x20and\x20end\x20time\x20based\x20on\n\x20the\x20MetricKind\ + ,\x20see\x20[TimeInterval][google.monitoring.v3.TimeInterval].\n\n\x0c\n\ + \x05\x04\0\x04\0\x01\x12\x035\x07\x11\n/\n\x06\x04\0\x04\0\x02\0\x12\x03\ + 7\x04\x20\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\ + \x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x037\x04\x1b\n\x0e\n\x07\x04\0\x04\ + \0\x02\0\x02\x12\x037\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\x03D\x04\x13\x1a\xfa\x01\x20A\x20value\x20accumulated\x20\ + over\x20a\x20time\x20interval.\x20\x20Cumulative\n\x20measurements\x20in\ + \x20a\x20time\x20series\x20should\x20have\x20the\x20same\x20start\x20tim\ + e\n\x20and\x20increasing\x20end\x20times,\x20until\x20an\x20event\x20res\ + ets\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\x03D\x04\x0e\n\x0e\n\x07\x04\0\x04\0\ + \x02\x03\x02\x12\x03D\x11\x12\n+\n\x04\x04\0\x04\x01\x12\x04H\x02_\x03\ + \x1a\x1d\x20The\x20value\x20type\x20of\x20a\x20metric.\n\n\x0c\n\x05\x04\ + \0\x04\x01\x01\x12\x03H\x07\x10\n/\n\x06\x04\0\x04\x01\x02\0\x12\x03J\ + \x04\x1f\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\ + \x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x03J\x04\x1a\n\x0e\n\x07\x04\0\ + \x04\x01\x02\0\x02\x12\x03J\x1d\x1e\ni\n\x06\x04\0\x04\x01\x02\x01\x12\ + \x03N\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\x03N\x04\ + \x08\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x03N\x0b\x0c\n6\n\x06\x04\ + \0\x04\x01\x02\x02\x12\x03Q\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\ + \x03Q\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03Q\x0c\r\nG\n\ + \x06\x04\0\x04\x01\x02\x03\x12\x03T\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\x03T\x04\n\n\x0e\n\x07\x04\0\x04\x01\ + \x02\x03\x02\x12\x03T\r\x0e\nm\n\x06\x04\0\x04\x01\x02\x04\x12\x03X\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\x03X\x04\ + \n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x02\x12\x03X\r\x0e\nJ\n\x06\x04\0\ + \x04\x01\x02\x05\x12\x03[\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\x03[\x04\x10\n\x0e\n\x07\x04\0\x04\x01\x02\x05\x02\x12\x03[\ + \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\x03b\x02\x12\x1a-\x20The\x20resource\x20name\x20of\ + \x20the\x20metric\x20descriptor.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04b\ + \x02_\x03\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\ + \xa9\x03\n\x04\x04\0\x02\x01\x12\x03l\x02\x12\x1a\x9b\x03\x20The\x20metr\ + ic\x20type,\x20including\x20its\x20DNS\x20name\x20prefix.\x20The\x20type\ + \x20is\x20not\n\x20URL-encoded.\x20All\x20user-defined\x20metric\x20type\ + s\x20have\x20the\x20DNS\x20name\n\x20`custom.googleapis.com`\x20or\x20`e\ + xternal.googleapis.com`.\x20Metric\x20types\x20should\n\x20use\x20a\x20n\ + atural\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\"app\ + engine.googleapis.com/http/server/response_latencies\"\n\n\r\n\x05\x04\0\ + \x02\x01\x04\x12\x04l\x02b\x12\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\r\n\x0c\n\x05\x04\0\ + \x02\x01\x03\x12\x03l\x10\x11\n\xd5\x02\n\x04\x04\0\x02\x02\x12\x03t\x02\ + &\x1a\xc7\x02\x20The\x20set\x20of\x20labels\x20that\x20can\x20be\x20used\ + \x20to\x20describe\x20a\x20specific\n\x20instance\x20of\x20this\x20metri\ + c\x20type.\x20For\x20example,\x20the\n\x20`appengine.googleapis.com/http\ + /server/response_latencies`\x20metric\n\x20type\x20has\x20a\x20label\x20\ + for\x20the\x20HTTP\x20response\x20code,\x20`response_code`,\x20so\n\x20y\ + ou\x20can\x20look\x20at\x20latencies\x20for\x20successful\x20responses\ + \x20or\x20just\n\x20for\x20responses\x20that\x20failed.\n\n\x0c\n\x05\ + \x04\0\x02\x02\x04\x12\x03t\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03t\ + \x0b\x1a\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03t\x1b!\n\x0c\n\x05\x04\0\ + \x02\x02\x03\x12\x03t$%\n\xa6\x01\n\x04\x04\0\x02\x03\x12\x03x\x02\x1d\ + \x1a\x98\x01\x20Whether\x20the\x20metric\x20records\x20instantaneous\x20\ + values,\x20changes\x20to\x20a\x20value,\x20etc.\n\x20Some\x20combination\ + s\x20of\x20`metric_kind`\x20and\x20`value_type`\x20might\x20not\x20be\ + \x20supported.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04x\x02t&\n\x0c\n\x05\ + \x04\0\x02\x03\x06\x12\x03x\x02\x0c\n\x0c\n\x05\x04\0\x02\x03\x01\x12\ + \x03x\r\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03x\x1b\x1c\n\xa1\x01\n\ + \x04\x04\0\x02\x04\x12\x03|\x02\x1b\x1a\x93\x01\x20Whether\x20the\x20mea\ + surement\x20is\x20an\x20integer,\x20a\x20floating-point\x20number,\x20et\ + c.\n\x20Some\x20combinations\x20of\x20`metric_kind`\x20and\x20`value_typ\ + e`\x20might\x20not\x20be\x20supported.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\ + \x04|\x02x\x1d\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\xe4\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`DISTRIBUTION`.\x20\ + The\x20`unit`\n\x20defines\x20the\x20representation\x20of\x20the\x20stor\ + ed\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`2\ + 0By`,\x20and\x20a\x20value\x20of\n\x20`3523kBy`\x20_might_\x20be\x20disp\ + layed\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\x20mi\ + ght\x20be\x20displayed.\n\n\x20If\x20you\x20want\x20a\x20custom\x20metri\ + c\x20to\x20record\x20the\x20exact\x20number\x20of\x20CPU-seconds\x20used\ + \n\x20by\x20a\x20job,\x20you\x20can\x20create\x20an\x20`INT64\x20CUMULAT\ + IVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`s{CPU}`\x20(or\x20equivale\ + ntly\x20`1s{CPU}`\x20or\x20just\x20`s`).\x20If\x20the\x20job\x20uses\x20\ + 12,005\n\x20CPU-seconds,\x20then\x20the\x20value\x20is\x20written\x20as\ + \x20`12005`.\n\n\x20Alternatively,\x20if\x20you\x20want\x20a\x20custom\ + \x20metric\x20to\x20record\x20data\x20in\x20a\x20more\n\x20granular\x20w\ + ay,\x20you\x20can\x20create\x20a\x20`DOUBLE\x20CUMULATIVE`\x20metric\x20\ + whose\x20`unit`\x20is\n\x20`ks{CPU}`,\x20and\x20then\x20write\x20the\x20\ + value\x20`12.005`\x20(which\x20is\x20`12005/1000`),\n\x20or\x20use\x20`K\ + is{CPU}`\x20and\x20write\x20`11.723`\x20(which\x20is\x20`12005/1024`).\n\ + \n\x20The\x20supported\x20units\x20are\x20a\x20subset\x20of\x20[The\x20U\ + nified\x20Code\x20for\x20Units\x20of\n\x20Measure](https://unitsofmeasur\ + e.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\x20da\ + y\n\x20*\x20`1`\x20\x20\x20\x20\x20dimensionless\n\n\x20**Prefixes\x20(P\ + REFIX)**\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\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\x20pet\ + a\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(1\ + 0^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^-1\ + 8)\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\x20meb\ + i\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\x20connectors:\n\n\ + \x20*\x20`/`\x20\x20\x20\x20division\x20or\x20ratio\x20(as\x20an\x20infi\ + x\x20operator).\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\x20\ + computed\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\x20infix\x20operator).\x20For\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20examples,\x20`GBy.d`\x20or\x20`k{watt}.h`.\n\n\x20The\x20grammar\ + \x20for\x20a\x20unit\x20is\x20as\x20follows:\n\n\x20\x20\x20\x20\x20Expr\ + ession\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\x20No\ + tes:\n\n\x20*\x20`Annotation`\x20is\x20just\x20a\x20comment\x20if\x20it\ + \x20follows\x20a\x20`UNIT`.\x20If\x20the\x20annotation\n\x20\x20\x20\x20\ + is\x20used\x20alone,\x20then\x20the\x20unit\x20is\x20equivalent\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\x20s\ + equence\x20of\x20non-blank\x20printable\x20ASCII\x20characters\x20not\n\ + \x20\x20\x20\x20containing\x20`{`\x20or\x20`}`.\n\x20*\x20`1`\x20represe\ + nts\x20a\x20unitary\x20[dimensionless\n\x20\x20\x20\x20unit](https://en.\ + wikipedia.org/wiki/Dimensionless_quantity)\x20of\x201,\x20such\n\x20\x20\ + \x20\x20as\x20in\x20`1/s`.\x20It\x20is\x20typically\x20used\x20when\x20n\ + one\x20of\x20the\x20basic\x20units\x20are\n\x20\x20\x20\x20appropriate.\ + \x20For\x20example,\x20\"new\x20users\x20per\x20day\"\x20can\x20be\x20re\ + presented\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\ + \x20per\x20day\"\x20would\x20be\n\x20\x20\x20\x20represented\x20as\x20`1\ + 000/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\x20pag\ + e\x20views\x20per\x20day\").\n\x20*\x20`%`\x20represents\x20dimensionles\ + s\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\n\x0e\n\x05\x04\0\x02\x05\x04\x12\x05\xe4\x01\ + \x02|\x1b\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\xe4\x01\x02\x08\n\r\n\x05\ + \x04\0\x02\x05\x01\x12\x04\xe4\x01\t\r\n\r\n\x05\x04\0\x02\x05\x03\x12\ + \x04\xe4\x01\x10\x11\nY\n\x04\x04\0\x02\x06\x12\x04\xe7\x01\x02\x19\x1aK\ + \x20A\x20detailed\x20description\x20of\x20the\x20metric,\x20which\x20can\ + \x20be\x20used\x20in\x20documentation.\n\n\x0f\n\x05\x04\0\x02\x06\x04\ + \x12\x06\xe7\x01\x02\xe4\x01\x12\n\r\n\x05\x04\0\x02\x06\x05\x12\x04\xe7\ + \x01\x02\x08\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\xe7\x01\t\x14\n\r\n\x05\ + \x04\0\x02\x06\x03\x12\x04\xe7\x01\x17\x18\n\xa3\x02\n\x04\x04\0\x02\x07\ + \x12\x04\xed\x01\x02\x1a\x1a\x94\x02\x20A\x20concise\x20name\x20for\x20t\ + he\x20metric,\x20which\x20can\x20be\x20displayed\x20in\x20user\x20interf\ + aces.\n\x20Use\x20sentence\x20case\x20without\x20an\x20ending\x20period,\ + \x20for\x20example\x20\"Request\x20count\".\n\x20This\x20field\x20is\x20\ + optional\x20but\x20it\x20is\x20recommended\x20to\x20be\x20set\x20for\x20\ + any\x20metrics\n\x20associated\x20with\x20user-visible\x20concepts,\x20s\ + uch\x20as\x20Quota.\n\n\x0f\n\x05\x04\0\x02\x07\x04\x12\x06\xed\x01\x02\ + \xe7\x01\x19\n\r\n\x05\x04\0\x02\x07\x05\x12\x04\xed\x01\x02\x08\n\r\n\ + \x05\x04\0\x02\x07\x01\x12\x04\xed\x01\t\x15\n\r\n\x05\x04\0\x02\x07\x03\ + \x12\x04\xed\x01\x18\x19\nR\n\x04\x04\0\x02\x08\x12\x04\xf0\x01\x02)\x1a\ + D\x20Optional.\x20Metadata\x20which\x20can\x20be\x20used\x20to\x20guide\ + \x20usage\x20of\x20the\x20metric.\n\n\x0f\n\x05\x04\0\x02\x08\x04\x12\ + \x06\xf0\x01\x02\xed\x01\x1a\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\xf0\x01\ + \x02\x1a\n\r\n\x05\x04\0\x02\x08\x01\x12\x04\xf0\x01\x1b#\n\r\n\x05\x04\ + \0\x02\x08\x03\x12\x04\xf0\x01&(\nD\n\x04\x04\0\x02\t\x12\x04\xf3\x01\ + \x02\x20\x1a6\x20Optional.\x20The\x20launch\x20stage\x20of\x20the\x20met\ + ric\x20definition.\n\n\x0f\n\x05\x04\0\x02\t\x04\x12\x06\xf3\x01\x02\xf0\ + \x01)\n\r\n\x05\x04\0\x02\t\x06\x12\x04\xf3\x01\x02\r\n\r\n\x05\x04\0\ + \x02\t\x01\x12\x04\xf3\x01\x0e\x1a\n\r\n\x05\x04\0\x02\t\x03\x12\x04\xf3\ + \x01\x1d\x1f\n\xd4\x02\n\x04\x04\0\x02\n\x12\x04\xfa\x01\x020\x1a\xc5\ + \x02\x20Read-only.\x20If\x20present,\x20then\x20a\x20[time\n\x20series][\ + google.monitoring.v3.TimeSeries],\x20which\x20is\x20identified\x20partia\ + lly\x20by\n\x20a\x20metric\x20type\x20and\x20a\x20[MonitoredResourceDesc\ + riptor][google.api.MonitoredResourceDescriptor],\x20that\x20is\x20associ\ + ated\n\x20with\x20this\x20metric\x20type\x20can\x20only\x20be\x20associa\ + ted\x20with\x20one\x20of\x20the\x20monitored\n\x20resource\x20types\x20l\ + isted\x20here.\n\n\r\n\x05\x04\0\x02\n\x04\x12\x04\xfa\x01\x02\n\n\r\n\ + \x05\x04\0\x02\n\x05\x12\x04\xfa\x01\x0b\x11\n\r\n\x05\x04\0\x02\n\x01\ + \x12\x04\xfa\x01\x12*\n\r\n\x05\x04\0\x02\n\x03\x12\x04\xfa\x01-/\n\x92\ + \x01\n\x02\x04\x01\x12\x06\xff\x01\0\x87\x02\x01\x1a\x83\x01\x20A\x20spe\ + cific\x20metric,\x20identified\x20by\x20specifying\x20values\x20for\x20a\ + ll\x20of\x20the\n\x20labels\x20of\x20a\x20[`MetricDescriptor`][google.ap\ + i.MetricDescriptor].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xff\x01\x08\x0e\n\ + \xa4\x01\n\x04\x04\x01\x02\0\x12\x04\x82\x02\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\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\x82\ + \x02\x02\xff\x01\x10\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x82\x02\x02\x08\ + \n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x82\x02\t\r\n\r\n\x05\x04\x01\x02\0\ + \x03\x12\x04\x82\x02\x10\x11\n\x92\x01\n\x04\x04\x01\x02\x01\x12\x04\x86\ + \x02\x02!\x1a\x83\x01\x20The\x20set\x20of\x20label\x20values\x20that\x20\ + uniquely\x20identify\x20this\x20metric.\x20All\n\x20labels\x20listed\x20\ + in\x20the\x20`MetricDescriptor`\x20must\x20be\x20assigned\x20values.\n\n\ + \x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\x86\x02\x02\x82\x02\x12\n\r\n\x05\ + \x04\x01\x02\x01\x06\x12\x04\x86\x02\x02\x15\n\r\n\x05\x04\x01\x02\x01\ + \x01\x12\x04\x86\x02\x16\x1c\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x86\ + \x02\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitored_resource.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitored_resource.rs new file mode 100644 index 0000000000..cc04291f0b --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitored_resource.rs @@ -0,0 +1,966 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/monitored_resource.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct MonitoredResourceDescriptor { + // message fields + pub name: ::std::string::String, + pub field_type: ::std::string::String, + pub display_name: ::std::string::String, + pub description: ::std::string::String, + pub labels: ::protobuf::RepeatedField, + pub launch_stage: super::launch_stage::LaunchStage, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MonitoredResourceDescriptor { + fn default() -> &'a MonitoredResourceDescriptor { + ::default_instance() + } +} + +impl MonitoredResourceDescriptor { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.display_name)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + }, + 4 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; + }, + 7 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 7, &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(5, &self.name); + } + if !self.field_type.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.field_type); + } + 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); + } + for value in &self.labels { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(7, self.launch_stage); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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(5, &self.name)?; + } + if !self.field_type.is_empty() { + os.write_string(1, &self.field_type)?; + } + if !self.display_name.is_empty() { + os.write_string(2, &self.display_name)?; + } + if !self.description.is_empty() { + 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)?; + }; + if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { + os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.launch_stage))?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static MonitoredResourceDescriptor { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MonitoredResourceDescriptor::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MonitoredResource { + // message fields + pub field_type: ::std::string::String, + 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 MonitoredResource { + fn default() -> &'a MonitoredResource { + ::default_instance() + } +} + +impl MonitoredResource { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::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; + if !self.field_type.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.field_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); + 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)?; + } + ::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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static MonitoredResource { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + 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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MonitoredResourceMetadata { + // message fields + pub system_labels: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, + pub user_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 MonitoredResourceMetadata { + fn default() -> &'a MonitoredResourceMetadata { + ::default_instance() + } +} + +impl MonitoredResourceMetadata { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.user_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 let Some(ref v) = self.system_labels.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.user_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<()> { + 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)?; + } + ::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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static MonitoredResourceMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + 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 ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n#google/api/monitored_resource.proto\x12\ngoogle.api\x1a\x16google/api\ + /label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x1cgoogle/protobuf\ + /struct.proto\"\xfb\x01\n\x1bMonitoredResourceDescriptor\x12\x12\n\x04na\ + me\x18\x05\x20\x01(\tR\x04name\x12\x12\n\x04type\x18\x01\x20\x01(\tR\x04\ + type\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12\x20\n\ + \x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\x123\n\x06labels\x18\ + \x04\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\x06labels\x12:\n\x0cl\ + aunch_stage\x18\x07\x20\x01(\x0e2\x17.google.api.LaunchStageR\x0blaunchS\ + tage\"\xa5\x01\n\x11MonitoredResource\x12\x12\n\x04type\x18\x01\x20\x01(\ + \tR\x04type\x12A\n\x06labels\x18\x02\x20\x03(\x0b2).google.api.Monitored\ + Resource.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\x01\"\xf0\x01\n\x19MonitoredResourceMetadata\x12<\n\rsystem_la\ + bels\x18\x01\x20\x01(\x0b2\x17.google.protobuf.StructR\x0csystemLabels\ + \x12V\n\x0buser_labels\x18\x02\x20\x03(\x0b25.google.api.MonitoredResour\ + ceMetadata.UserLabelsEntryR\nuserLabels\x1a=\n\x0fUserLabelsEntry\x12\ + \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\x93*\n\x06\x12\x04\x0e\0u\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\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\xa3\x04\n\x02\x04\0\ + \x12\x04'\0E\x01\x1a\x96\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\ + 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\ + \x20this\x20object\x20and\n\x20{project_id}\x20is\x20a\x20project\x20ID\ + \x20that\x20provides\x20API-specific\x20context\x20for\n\x20accessing\ + \x20the\x20type.\x20\x20APIs\x20that\x20do\x20not\x20use\x20project\x20i\ + nformation\x20can\x20use\x20the\n\x20resource\x20name\x20format\x20`\"mo\ + nitoredResourceDescriptors/{type}\"`.\n\n\r\n\x05\x04\0\x02\0\x04\x12\ + \x04.\x02'%\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\ + \x8c\x01\n\x04\x04\0\x02\x01\x12\x032\x02\x12\x1a\x7f\x20Required.\x20Th\ + e\x20monitored\x20resource\x20type.\x20For\x20example,\x20the\x20type\n\ + \x20`\"cloudsql_database\"`\x20represents\x20databases\x20in\x20Google\ + \x20Cloud\x20SQL.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x042\x02.\x12\n\x0c\ + \n\x05\x04\0\x02\x01\x05\x12\x032\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\ + \x12\x032\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x032\x10\x11\n\xf5\x01\n\ + \x04\x04\0\x02\x02\x12\x038\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\r\n\x05\x04\0\x02\x02\x04\x12\x048\ + \x022\x12\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x038\x02\x08\n\x0c\n\x05\x04\ + \0\x02\x02\x01\x12\x038\t\x15\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x038\x18\ + \x19\nt\n\x04\x04\0\x02\x03\x12\x03<\x02\x19\x1ag\x20Optional.\x20A\x20d\ + etailed\x20description\x20of\x20the\x20monitored\x20resource\x20type\x20\ + that\x20might\n\x20be\x20used\x20in\x20documentation.\n\n\r\n\x05\x04\0\ + \x02\x03\x04\x12\x04<\x028\x1a\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\x03A\x02\ + &\x1a\xd3\x01\x20Required.\x20A\x20set\x20of\x20labels\x20used\x20to\x20\ + describe\x20instances\x20of\x20this\x20monitored\n\x20resource\x20type.\ + \x20For\x20example,\x20an\x20individual\x20Google\x20Cloud\x20SQL\x20dat\ + abase\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\x03A\x02\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03A\x0b\x1a\n\x0c\n\ + \x05\x04\0\x02\x04\x01\x12\x03A\x1b!\n\x0c\n\x05\x04\0\x02\x04\x03\x12\ + \x03A$%\nO\n\x04\x04\0\x02\x05\x12\x03D\x02\x1f\x1aB\x20Optional.\x20The\ + \x20launch\x20stage\x20of\x20the\x20monitored\x20resource\x20definition.\ + \n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04D\x02A&\n\x0c\n\x05\x04\0\x02\x05\ + \x06\x12\x03D\x02\r\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03D\x0e\x1a\n\x0c\ + \n\x05\x04\0\x02\x05\x03\x12\x03D\x1d\x1e\n\xcb\x06\n\x02\x04\x01\x12\ + \x04T\0^\x01\x1a\xbe\x06\x20An\x20object\x20representing\x20a\x20resourc\ + e\x20that\x20can\x20be\x20used\x20for\x20monitoring,\x20logging,\n\x20bi\ + lling,\x20or\x20other\x20purposes.\x20Examples\x20include\x20virtual\x20\ + machine\x20instances,\n\x20databases,\x20and\x20storage\x20devices\x20su\ + ch\x20as\x20disks.\x20The\x20`type`\x20field\x20identifies\x20a\n\x20[Mo\ + nitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]\x20ob\ + ject\x20that\x20describes\x20the\x20resource's\n\x20schema.\x20Informati\ + on\x20in\x20the\x20`labels`\x20field\x20identifies\x20the\x20actual\x20r\ + esource\x20and\n\x20its\x20attributes\x20according\x20to\x20the\x20schem\ + a.\x20For\x20example,\x20a\x20particular\x20Compute\n\x20Engine\x20VM\ + \x20instance\x20could\x20be\x20represented\x20by\x20the\x20following\x20\ + object,\x20because\x20the\n\x20[MonitoredResourceDescriptor][google.api.\ + MonitoredResourceDescriptor]\x20for\x20`\"gce_instance\"`\x20has\x20labe\ + ls\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\x03T\x08\x19\n\ + \xfb\x01\n\x04\x04\x01\x02\0\x12\x03X\x02\x12\x1a\xed\x01\x20Required.\ + \x20The\x20monitored\x20resource\x20type.\x20This\x20field\x20must\x20ma\ + tch\n\x20the\x20`type`\x20field\x20of\x20a\x20[MonitoredResourceDescript\ + or][google.api.MonitoredResourceDescriptor]\x20object.\x20For\n\x20examp\ + le,\x20the\x20type\x20of\x20a\x20Compute\x20Engine\x20VM\x20instance\x20\ + is\x20`gce_instance`.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04X\x02T\x1b\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\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03X\x10\x11\n\xd7\ + \x01\n\x04\x04\x01\x02\x01\x12\x03]\x02!\x1a\xc9\x01\x20Required.\x20Val\ + ues\x20for\x20all\x20of\x20the\x20labels\x20listed\x20in\x20the\x20assoc\ + iated\x20monitored\n\x20resource\x20descriptor.\x20For\x20example,\x20Co\ + mpute\x20Engine\x20VM\x20instances\x20use\x20the\n\x20labels\x20`\"proje\ + ct_id\"`,\x20`\"instance_id\"`,\x20and\x20`\"zone\"`.\n\n\r\n\x05\x04\ + \x01\x02\x01\x04\x12\x04]\x02X\x12\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\ + \x04f\0u\x01\x1a\xac\x03\x20Auxiliary\x20metadata\x20for\x20a\x20[Monito\ + redResource][google.api.MonitoredResource]\x20object.\n\x20[MonitoredRes\ + ource][google.api.MonitoredResource]\x20objects\x20contain\x20the\x20min\ + imum\x20set\x20of\x20information\x20to\n\x20uniquely\x20identify\x20a\ + \x20monitored\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\x20metadata\x20in\x20this\x20message.\n\n\n\n\x03\x04\x02\x01\ + \x12\x03f\x08!\n\xa1\x03\n\x04\x04\x02\x02\0\x12\x03q\x02+\x1a\x93\x03\ + \x20Output\x20only.\x20Values\x20for\x20predefined\x20system\x20metadata\ + \x20labels.\n\x20System\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\x20label\x20values\x20can\x20be\x20only\x20strings,\x20Bool\ + ean\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\r\ + \n\x05\x04\x02\x02\0\x04\x12\x04q\x02f#\n\x0c\n\x05\x04\x02\x02\0\x06\ + \x12\x03q\x02\x18\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03q\x19&\n\x0c\n\ + \x05\x04\x02\x02\0\x03\x12\x03q)*\nB\n\x04\x04\x02\x02\x01\x12\x03t\x02&\ + \x1a5\x20Output\x20only.\x20A\x20map\x20of\x20user-defined\x20metadata\ + \x20labels.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04t\x02q+\n\x0c\n\x05\ + \x04\x02\x02\x01\x06\x12\x03t\x02\x15\n\x0c\n\x05\x04\x02\x02\x01\x01\ + \x12\x03t\x16!\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03t$%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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitoring.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitoring.rs new file mode 100644 index 0000000000..57b355d429 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/monitoring.rs @@ -0,0 +1,568 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/monitoring.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Monitoring { + // message fields + pub producer_destinations: ::protobuf::RepeatedField, + pub consumer_destinations: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Monitoring { + fn default() -> &'a Monitoring { + ::default_instance() + } +} + +impl Monitoring { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.consumer_destinations)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.producer_destinations { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 += ::protobuf::rt::unknown_fields_size(self.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.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)?; + }; + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Monitoring { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Monitoring::new) + } +} + +impl ::protobuf::Clear for Monitoring { + fn clear(&mut self) { + self.producer_destinations.clear(); + self.consumer_destinations.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[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()) + } + + // repeated string metrics = 2; + + + pub fn get_metrics(&self) -> &[::std::string::String] { + &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<::std::string::String>) { + self.metrics = v; + } + + // 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()) + } +} + +impl ::protobuf::Message for Monitoring_MonitoringDestination { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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())?; + }, + }; + } + ::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); + } + 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)?; + } + 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 new() -> Monitoring_MonitoringDestination { + Monitoring_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 default_instance() -> &'static Monitoring_MonitoringDestination { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Monitoring_MonitoringDestination::new) + } +} + +impl ::protobuf::Clear for Monitoring_MonitoringDestination { + fn clear(&mut self) { + self.monitored_resource.clear(); + self.metrics.clear(); + self.unknown_fields.clear(); + } +} + +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 ::protobuf::reflect::ProtobufValue for Monitoring_MonitoringDestination { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1bgoogle/api/monitoring.proto\x12\ngoogle.api\"\xb4\x02\n\nMonitorin\ + g\x12a\n\x15producer_destinations\x18\x01\x20\x03(\x0b2,.google.api.Moni\ + toring.MonitoringDestinationR\x14producerDestinations\x12a\n\x15consumer\ + _destinations\x18\x02\x20\x03(\x0b2,.google.api.Monitoring.MonitoringDes\ + tinationR\x14consumerDestinations\x1a`\n\x15MonitoringDestination\x12-\n\ + \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\xe2\x20\n\x06\x12\x04\x0e\0h\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\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\0h\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/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\x02W\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\x9a\ + \x01\n\x06\x04\0\x03\0\x02\0\x12\x03R\x04\"\x1a\x8a\x01\x20The\x20monito\ + red\x20resource\x20type.\x20The\x20type\x20must\x20be\x20defined\x20in\n\ + \x20[Service.monitored_resources][google.api.Service.monitored_resources\ + ]\x20section.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04R\x04O!\n\x0e\n\ + \x07\x04\0\x03\0\x02\0\x05\x12\x03R\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\ + \x01\x12\x03R\x0b\x1d\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03R\x20!\n\ + \xa5\x01\n\x06\x04\0\x03\0\x02\x01\x12\x03V\x04\x20\x1a\x95\x01\x20Types\ + \x20of\x20the\x20metrics\x20to\x20report\x20to\x20this\x20monitoring\x20\ + destination.\n\x20Each\x20type\x20must\x20be\x20defined\x20in\x20[Servic\ + e.metrics][google.api.Service.metrics]\x20section.\n\n\x0e\n\x07\x04\0\ + \x03\0\x02\x01\x04\x12\x03V\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\ + \x12\x03V\r\x13\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x03V\x14\x1b\n\ + \x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03V\x1e\x1f\n\x9e\x03\n\x04\x04\ + \0\x02\0\x12\x03_\x02;\x1a\x90\x03\x20Monitoring\x20configurations\x20fo\ + r\x20sending\x20metrics\x20to\x20the\x20producer\x20project.\n\x20There\ + \x20can\x20be\x20multiple\x20producer\x20destinations.\x20A\x20monitored\ + \x20resource\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\0\x04\ + \x12\x03_\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03_\x0b\x20\n\x0c\n\x05\ + \x04\0\x02\0\x01\x12\x03_!6\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03_9:\n\x9e\ + \x03\n\x04\x04\0\x02\x01\x12\x03g\x02;\x1a\x90\x03\x20Monitoring\x20conf\ + igurations\x20for\x20sending\x20metrics\x20to\x20the\x20consumer\x20proj\ + ect.\n\x20There\x20can\x20be\x20multiple\x20consumer\x20destinations.\ + \x20A\x20monitored\x20resource\x20type\x20may\n\x20appear\x20in\x20multi\ + ple\x20monitoring\x20destinations\x20if\x20different\x20aggregations\x20\ + are\n\x20needed\x20for\x20different\x20sets\x20of\x20metrics\x20associat\ + ed\x20with\x20that\x20monitored\n\x20resource\x20type.\x20A\x20monitored\ + \x20resource\x20and\x20metric\x20pair\x20may\x20only\x20be\x20used\x20on\ + ce\n\x20in\x20the\x20Monitoring\x20configuration.\n\n\x0c\n\x05\x04\0\ + \x02\x01\x04\x12\x03g\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03g\x0b\ + \x20\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03g!6\n\x0c\n\x05\x04\0\x02\x01\ + \x03\x12\x03g9: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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/quota.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/quota.rs new file mode 100644 index 0000000000..802c871a0a --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/quota.rs @@ -0,0 +1,1175 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/quota.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Quota { + // message fields + pub limits: ::protobuf::RepeatedField, + pub metric_rules: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Quota { + fn default() -> &'a Quota { + ::default_instance() + } +} + +impl Quota { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 4 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_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.limits { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 += ::protobuf::rt::unknown_fields_size(self.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.limits { + 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.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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Quota { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Quota::new) + } +} + +impl ::protobuf::Clear for Quota { + fn clear(&mut self) { + self.limits.clear(); + self.metric_rules.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MetricRule { + // message fields + pub selector: ::std::string::String, + pub metric_costs: ::std::collections::HashMap<::std::string::String, i64>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MetricRule { + fn default() -> &'a MetricRule { + ::default_instance() + } +} + +impl MetricRule { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(wire_type, is, &mut self.metric_costs)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + 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); + 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)?; + } + ::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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static MetricRule { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + 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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct QuotaLimit { + // message fields + pub name: ::std::string::String, + pub description: ::std::string::String, + pub default_limit: i64, + pub max_limit: i64, + pub free_tier: i64, + pub duration: ::std::string::String, + pub metric: ::std::string::String, + pub unit: ::std::string::String, + pub values: ::std::collections::HashMap<::std::string::String, i64>, + pub display_name: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a QuotaLimit { + fn default() -> &'a QuotaLimit { + ::default_instance() + } +} + +impl QuotaLimit { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + }, + 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; + }, + 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; + }, + 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; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.duration)?; + }, + 8 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.metric)?; + }, + 9 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.unit)?; + }, + 10 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(wire_type, is, &mut self.values)?; + }, + 12 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_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(6, &self.name); + } + if !self.description.is_empty() { + 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); + } + if self.max_limit != 0 { + my_size += ::protobuf::rt::value_size(4, self.max_limit, ::protobuf::wire_format::WireTypeVarint); + } + if self.free_tier != 0 { + my_size += ::protobuf::rt::value_size(7, self.free_tier, ::protobuf::wire_format::WireTypeVarint); + } + if !self.duration.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.duration); + } + if !self.metric.is_empty() { + my_size += ::protobuf::rt::string_size(8, &self.metric); + } + 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); + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.name.is_empty() { + os.write_string(6, &self.name)?; + } + if !self.description.is_empty() { + os.write_string(2, &self.description)?; + } + if self.default_limit != 0 { + os.write_int64(3, self.default_limit)?; + } + if self.max_limit != 0 { + os.write_int64(4, self.max_limit)?; + } + if self.free_tier != 0 { + os.write_int64(7, self.free_tier)?; + } + if !self.duration.is_empty() { + os.write_string(5, &self.duration)?; + } + if !self.metric.is_empty() { + os.write_string(8, &self.metric)?; + } + 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)?; + if !self.display_name.is_empty() { + os.write_string(12, &self.display_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() -> 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(); + self.default_limit = 0; + self.max_limit = 0; + self.free_tier = 0; + self.duration.clear(); + self.metric.clear(); + self.unit.clear(); + self.values.clear(); + self.display_name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x16google/api/quota.proto\x12\ngoogle.api\"r\n\x05Quota\x12.\n\x06lim\ + its\x18\x03\x20\x03(\x0b2\x16.google.api.QuotaLimitR\x06limits\x129\n\ + \x0cmetric_rules\x18\x04\x20\x03(\x0b2\x16.google.api.MetricRuleR\x0bmet\ + ricRules\"\xb4\x01\n\nMetricRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\ + \tR\x08selector\x12J\n\x0cmetric_costs\x18\x02\x20\x03(\x0b2'.google.api\ + .MetricRule.MetricCostsEntryR\x0bmetricCosts\x1a>\n\x10MetricCostsEntry\ + \x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\ + \x20\x01(\x03R\x05value:\x028\x01\"\x83\x03\n\nQuotaLimit\x12\x12\n\x04n\ + ame\x18\x06\x20\x01(\tR\x04name\x12\x20\n\x0bdescription\x18\x02\x20\x01\ + (\tR\x0bdescription\x12#\n\rdefault_limit\x18\x03\x20\x01(\x03R\x0cdefau\ + ltLimit\x12\x1b\n\tmax_limit\x18\x04\x20\x01(\x03R\x08maxLimit\x12\x1b\n\ + \tfree_tier\x18\x07\x20\x01(\x03R\x08freeTier\x12\x1a\n\x08duration\x18\ + \x05\x20\x01(\tR\x08duration\x12\x16\n\x06metric\x18\x08\x20\x01(\tR\x06\ + metric\x12\x12\n\x04unit\x18\t\x20\x01(\tR\x04unit\x12:\n\x06values\x18\ + \n\x20\x03(\x0b2\".google.api.QuotaLimit.ValuesEntryR\x06values\x12!\n\ + \x0cdisplay_name\x18\x0c\x20\x01(\tR\x0bdisplayName\x1a9\n\x0bValuesEntr\ + 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\xea8\n\x07\x12\x05\x0e\0\xb6\x01\x01\n\xbc\x04\n\ + \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\x87\r\n\x02\x04\0\x12\x04K\0R\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\ + vice\x20configuration\x20defines\x20a\x20set\x20of\x20metrics.\n\x20-\ + \x20For\x20API\x20calls,\x20the\x20quota.metric_rules\x20maps\x20methods\ + \x20to\x20metrics\x20with\n\x20\x20\x20corresponding\x20costs.\n\x20-\ + \x20The\x20quota.limits\x20defines\x20limits\x20on\x20the\x20metrics,\ + \x20which\x20will\x20be\x20used\x20for\n\x20\x20\x20quota\x20checks\x20a\ + t\x20runtime.\n\n\x20An\x20example\x20quota\x20configuration\x20in\x20ya\ + ml\x20format:\n\n\x20\x20\x20\x20quota:\n\x20\x20\x20\x20\x20\x20limits:\ + \n\n\x20\x20\x20\x20\x20\x20-\x20name:\x20apiWriteQpsPerProject\n\x20\ + \x20\x20\x20\x20\x20\x20\x20metric:\x20library.googleapis.com/write_call\ + 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\x03K\x08\r\n@\n\x04\ + \x04\0\x02\0\x12\x03M\x02!\x1a3\x20List\x20of\x20`QuotaLimit`\x20definit\ + ions\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\ + \nl\n\x04\x04\0\x02\x01\x12\x03Q\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\0c\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\x90\x01\n\x04\x04\x01\x02\0\x12\x03Z\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\x20details.\n\n\r\n\x05\x04\x01\x02\0\x04\ + \x12\x04Z\x02V\x14\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03Z\x02\x08\n\x0c\ + \n\x05\x04\x01\x02\0\x01\x12\x03Z\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\ + \x12\x03Z\x14\x15\n\xa6\x02\n\x04\x04\x01\x02\x01\x12\x03b\x02&\x1a\x98\ + \x02\x20Metrics\x20to\x20update\x20when\x20the\x20selected\x20methods\ + \x20are\x20called,\x20and\x20the\x20associated\n\x20cost\x20applied\x20t\ + o\x20each\x20metric.\n\n\x20The\x20key\x20of\x20the\x20map\x20is\x20the\ + \x20metric\x20name,\x20and\x20the\x20values\x20are\x20the\x20amount\n\ + \x20increased\x20for\x20the\x20metric\x20against\x20which\x20the\x20quot\ + a\x20limits\x20are\x20defined.\n\x20The\x20value\x20must\x20not\x20be\ + \x20negative.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04b\x02Z\x16\n\x0c\n\ + \x05\x04\x01\x02\x01\x06\x12\x03b\x02\x14\n\x0c\n\x05\x04\x01\x02\x01\ + \x01\x12\x03b\x15!\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03b$%\n\xd8\x01\ + \n\x02\x04\x02\x12\x05h\0\xb6\x01\x01\x1a\xca\x01\x20`QuotaLimit`\x20def\ + ines\x20a\x20specific\x20limit\x20that\x20applies\x20over\x20a\x20specif\ + ied\x20duration\n\x20for\x20a\x20limit\x20type.\x20There\x20can\x20be\ + \x20at\x20most\x20one\x20limit\x20for\x20a\x20duration\x20and\x20limit\n\ + \x20type\x20combination\x20defined\x20within\x20a\x20`QuotaGroup`.\n\n\n\ + \n\x03\x04\x02\x01\x12\x03h\x08\x12\n\xeb\x01\n\x04\x04\x02\x02\0\x12\ + \x03o\x02\x12\x1a\xdd\x01\x20Name\x20of\x20the\x20quota\x20limit.\n\n\ + \x20The\x20name\x20must\x20be\x20provided,\x20and\x20it\x20must\x20be\ + \x20unique\x20within\x20the\x20service.\x20The\n\x20name\x20can\x20only\ + \x20include\x20alphanumeric\x20characters\x20as\x20well\x20as\x20'-'.\n\ + \n\x20The\x20maximum\x20length\x20of\x20the\x20limit\x20name\x20is\x2064\ + \x20characters.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04o\x02h\x14\n\x0c\n\ + \x05\x04\x02\x02\0\x05\x12\x03o\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\ + \x12\x03o\t\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03o\x10\x11\n\xde\x01\n\ + \x04\x04\x02\x02\x01\x12\x03t\x02\x19\x1a\xd0\x01\x20Optional.\x20User-v\ + isible,\x20extended\x20description\x20for\x20this\x20quota\x20limit.\n\ + \x20Should\x20be\x20used\x20only\x20when\x20more\x20context\x20is\x20nee\ + ded\x20to\x20understand\x20this\x20limit\n\x20than\x20provided\x20by\x20\ + the\x20limit's\x20display\x20name\x20(see:\x20`display_name`).\n\n\r\n\ + \x05\x04\x02\x02\x01\x04\x12\x04t\x02o\x12\n\x0c\n\x05\x04\x02\x02\x01\ + \x05\x12\x03t\x02\x08\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03t\t\x14\n\ + \x0c\n\x05\x04\x02\x02\x01\x03\x12\x03t\x17\x18\n\xe8\x03\n\x04\x04\x02\ + \x02\x02\x12\x04\x80\x01\x02\x1a\x1a\xd9\x03\x20Default\x20number\x20of\ + \x20tokens\x20that\x20can\x20be\x20consumed\x20during\x20the\x20specifie\ + d\n\x20duration.\x20This\x20is\x20the\x20number\x20of\x20tokens\x20assig\ + ned\x20when\x20a\x20client\n\x20application\x20developer\x20activates\ + \x20the\x20service\x20for\x20his/her\x20project.\n\n\x20Specifying\x20a\ + \x20value\x20of\x200\x20will\x20block\x20all\x20requests.\x20This\x20can\ + \x20be\x20used\x20if\x20you\n\x20are\x20provisioning\x20quota\x20to\x20s\ + elected\x20consumers\x20and\x20blocking\x20others.\n\x20Similarly,\x20a\ + \x20value\x20of\x20-1\x20will\x20indicate\x20an\x20unlimited\x20quota.\ + \x20No\x20other\n\x20negative\x20values\x20are\x20allowed.\n\n\x20Used\ + \x20by\x20group-based\x20quotas\x20only.\n\n\x0e\n\x05\x04\x02\x02\x02\ + \x04\x12\x05\x80\x01\x02t\x19\n\r\n\x05\x04\x02\x02\x02\x05\x12\x04\x80\ + \x01\x02\x07\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x80\x01\x08\x15\n\r\n\ + \x05\x04\x02\x02\x02\x03\x12\x04\x80\x01\x18\x19\n\xc5\x03\n\x04\x04\x02\ + \x02\x03\x12\x04\x8b\x01\x02\x16\x1a\xb6\x03\x20Maximum\x20number\x20of\ + \x20tokens\x20that\x20can\x20be\x20consumed\x20during\x20the\x20specifie\ + d\n\x20duration.\x20Client\x20application\x20developers\x20can\x20overri\ + de\x20the\x20default\x20limit\x20up\n\x20to\x20this\x20maximum.\x20If\ + \x20specified,\x20this\x20value\x20cannot\x20be\x20set\x20to\x20a\x20val\ + ue\x20less\n\x20than\x20the\x20default\x20limit.\x20If\x20not\x20specifi\ + ed,\x20it\x20is\x20set\x20to\x20the\x20default\x20limit.\n\n\x20To\x20al\ + low\x20clients\x20to\x20apply\x20overrides\x20with\x20no\x20upper\x20bou\ + nd,\x20set\x20this\x20to\x20-1,\n\x20indicating\x20unlimited\x20maximum\ + \x20quota.\n\n\x20Used\x20by\x20group-based\x20quotas\x20only.\n\n\x0f\n\ + \x05\x04\x02\x02\x03\x04\x12\x06\x8b\x01\x02\x80\x01\x1a\n\r\n\x05\x04\ + \x02\x02\x03\x05\x12\x04\x8b\x01\x02\x07\n\r\n\x05\x04\x02\x02\x03\x01\ + \x12\x04\x8b\x01\x08\x11\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\x8b\x01\ + \x14\x15\n\xbf\x03\n\x04\x04\x02\x02\x04\x12\x04\x95\x01\x02\x16\x1a\xb0\ + \x03\x20Free\x20tier\x20value\x20displayed\x20in\x20the\x20Developers\ + \x20Console\x20for\x20this\x20limit.\n\x20The\x20free\x20tier\x20is\x20t\ + he\x20number\x20of\x20tokens\x20that\x20will\x20be\x20subtracted\x20from\ + \x20the\n\x20billed\x20amount\x20when\x20billing\x20is\x20enabled.\n\x20\ + This\x20field\x20can\x20only\x20be\x20set\x20on\x20a\x20limit\x20with\ + \x20duration\x20\"1d\",\x20in\x20a\x20billable\n\x20group;\x20it\x20is\ + \x20invalid\x20on\x20any\x20other\x20limit.\x20If\x20this\x20field\x20is\ + \x20not\x20set,\x20it\n\x20defaults\x20to\x200,\x20indicating\x20that\ + \x20there\x20is\x20no\x20free\x20tier\x20for\x20this\x20service.\n\n\x20\ + Used\x20by\x20group-based\x20quotas\x20only.\n\n\x0f\n\x05\x04\x02\x02\ + \x04\x04\x12\x06\x95\x01\x02\x8b\x01\x16\n\r\n\x05\x04\x02\x02\x04\x05\ + \x12\x04\x95\x01\x02\x07\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\x95\x01\ + \x08\x11\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\x95\x01\x14\x15\nv\n\x04\ + \x04\x02\x02\x05\x12\x04\x9a\x01\x02\x16\x1ah\x20Duration\x20of\x20this\ + \x20limit\x20in\x20textual\x20notation.\x20Must\x20be\x20\"100s\"\x20or\ + \x20\"1d\".\n\n\x20Used\x20by\x20group-based\x20quotas\x20only.\n\n\x0f\ + \n\x05\x04\x02\x02\x05\x04\x12\x06\x9a\x01\x02\x95\x01\x16\n\r\n\x05\x04\ + \x02\x02\x05\x05\x12\x04\x9a\x01\x02\x08\n\r\n\x05\x04\x02\x02\x05\x01\ + \x12\x04\x9a\x01\t\x11\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\x9a\x01\x14\ + \x15\n\xcb\x01\n\x04\x04\x02\x02\x06\x12\x04\x9f\x01\x02\x14\x1a\xbc\x01\ + \x20The\x20name\x20of\x20the\x20metric\x20this\x20quota\x20limit\x20appl\ + ies\x20to.\x20The\x20quota\x20limits\x20with\n\x20the\x20same\x20metric\ + \x20will\x20be\x20checked\x20together\x20during\x20runtime.\x20The\x20me\ + tric\x20must\x20be\n\x20defined\x20within\x20the\x20service\x20config.\n\ + \n\x0f\n\x05\x04\x02\x02\x06\x04\x12\x06\x9f\x01\x02\x9a\x01\x16\n\r\n\ + \x05\x04\x02\x02\x06\x05\x12\x04\x9f\x01\x02\x08\n\r\n\x05\x04\x02\x02\ + \x06\x01\x12\x04\x9f\x01\t\x0f\n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\x9f\ + \x01\x12\x13\n\xf8\x02\n\x04\x04\x02\x02\x07\x12\x04\xaa\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\x0f\n\x05\x04\ + \x02\x02\x07\x04\x12\x06\xaa\x01\x02\x9f\x01\x14\n\r\n\x05\x04\x02\x02\ + \x07\x05\x12\x04\xaa\x01\x02\x08\n\r\n\x05\x04\x02\x02\x07\x01\x12\x04\ + \xaa\x01\t\r\n\r\n\x05\x04\x02\x02\x07\x03\x12\x04\xaa\x01\x10\x11\n\xd5\ + \x01\n\x04\x04\x02\x02\x08\x12\x04\xaf\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\x20sp\ + ecified\x20unit.\x20Currently\x20only\x20STANDARD\x20is\x20supported.\n\ + \n\x0f\n\x05\x04\x02\x02\x08\x04\x12\x06\xaf\x01\x02\xaa\x01\x12\n\r\n\ + \x05\x04\x02\x02\x08\x06\x12\x04\xaf\x01\x02\x14\n\r\n\x05\x04\x02\x02\ + \x08\x01\x12\x04\xaf\x01\x15\x1b\n\r\n\x05\x04\x02\x02\x08\x03\x12\x04\ + \xaf\x01\x1e\x20\n\xfe\x01\n\x04\x04\x02\x02\t\x12\x04\xb5\x01\x02\x1b\ + \x1a\xef\x01\x20User-visible\x20display\x20name\x20for\x20this\x20limit.\ + \n\x20Optional.\x20If\x20not\x20set,\x20the\x20UI\x20will\x20provide\x20\ + a\x20default\x20display\x20name\x20based\x20on\n\x20the\x20quota\x20conf\ + iguration.\x20This\x20field\x20can\x20be\x20used\x20to\x20override\x20th\ + e\x20default\n\x20display\x20name\x20generated\x20from\x20the\x20configu\ + ration.\n\n\x0f\n\x05\x04\x02\x02\t\x04\x12\x06\xb5\x01\x02\xaf\x01!\n\r\ + \n\x05\x04\x02\x02\t\x05\x12\x04\xb5\x01\x02\x08\n\r\n\x05\x04\x02\x02\t\ + \x01\x12\x04\xb5\x01\t\x15\n\r\n\x05\x04\x02\x02\t\x03\x12\x04\xb5\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/resource.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/resource.rs new file mode 100644 index 0000000000..5d334dea61 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/resource.rs @@ -0,0 +1,1056 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/resource.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct ResourceDescriptor { + // message fields + pub field_type: ::std::string::String, + pub pattern: ::protobuf::RepeatedField<::std::string::String>, + pub name_field: ::std::string::String, + pub history: ResourceDescriptor_History, + pub plural: ::std::string::String, + pub singular: ::std::string::String, + pub style: ::std::vec::Vec, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ResourceDescriptor { + fn default() -> &'a ResourceDescriptor { + ::default_instance() + } +} + +impl ResourceDescriptor { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name_field)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.history, 4, &mut self.unknown_fields)? + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.plural)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.singular)?; + }, + 10 => { + ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.style, 10, &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.field_type.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.field_type); + } + for value in &self.pattern { + my_size += ::protobuf::rt::string_size(2, &value); + }; + 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.plural.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.plural); + } + 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 + } + + 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)?; + } + for v in &self.pattern { + os.write_string(2, &v)?; + }; + 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.plural.is_empty() { + os.write_string(5, &self.plural)?; + } + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static ResourceDescriptor { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ResourceDescriptor::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum ResourceDescriptor_History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2, +} + +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(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 values() -> &'static [Self] { + static values: &'static [ResourceDescriptor_History] = &[ + ResourceDescriptor_History::HISTORY_UNSPECIFIED, + ResourceDescriptor_History::ORIGINALLY_SINGLE_PATTERN, + ResourceDescriptor_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 + } + } + + 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()) + }) + } +} + +impl ::std::marker::Copy for ResourceDescriptor_Style { +} + +impl ::std::default::Default for ResourceDescriptor_Style { + fn default() -> Self { + ResourceDescriptor_Style::STYLE_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for ResourceDescriptor_Style { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ResourceReference { + // message fields + pub field_type: ::std::string::String, + pub child_type: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ResourceReference { + fn default() -> &'a ResourceReference { + ::default_instance() + } +} + +impl ResourceReference { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.child_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.field_type.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.field_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 + } + + 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.child_type.is_empty() { + os.write_string(2, &self.child_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() -> 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 default_instance() -> &'static ResourceReference { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ResourceReference::new) + } +} + +impl ::protobuf::Clear for ResourceReference { + fn clear(&mut self) { + self.field_type.clear(); + self.child_type.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +/// 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_definition: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::FileOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldRepeated { field_number: 1053, phantom: ::std::marker::PhantomData }; + + pub const resource: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 1053, phantom: ::std::marker::PhantomData }; +} + +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\ + \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\xf3U\n\x07\x12\x05\x0e\0\xaa\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\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\ + \x0b\n\x03\x07\0\x04\x12\x04\x1e\x02\x1b%\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\x20describes\x20a\x20resource\x20\ + definition\x20without\x20a\x20corresponding\n\x20message;\x20see\x20[Res\ + ourceDescriptor][].\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[Resou\ + rceDescriptor][].\n\n\n\n\x03\x07\x02\x02\x12\x03'\x07%\n\x0b\n\x03\x07\ + \x02\x04\x12\x04*\x02''\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\x92\x20\n\ + \x02\x04\0\x12\x06\x99\x01\0\x83\x02\x01\x1a\x83\x20\x20A\x20simple\x20d\ + escriptor\x20of\x20a\x20resource\x20type.\n\n\x20ResourceDescriptor\x20a\ + nnotates\x20a\x20resource\x20message\x20(either\x20by\x20means\x20of\x20\ + a\n\x20protobuf\x20annotation\x20or\x20use\x20in\x20the\x20service\x20co\ + nfig),\x20and\x20associates\x20the\n\x20resource's\x20schema,\x20the\x20\ + resource\x20type,\x20and\x20the\x20pattern\x20of\x20the\x20resource\x20n\ + ame.\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}/{k\ + ind}.\n\x20\x20\x20\x20\x20\x20\x20//\x20For\x20Kubernetes\x20resources,\ + \x20the\x20format\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\x20name_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20pattern:\x20\"projects/{project}/topics/{topic}\"\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresou\ + rcemanager.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\x20ResourceDescriptor\x20Yaml\x20config\x20will\ + \x20look\x20like:\n\n\x20\x20\x20\x20\x20resources:\n\x20\x20\x20\x20\ + \x20-\x20type:\x20\"pubsub.googleapis.com/Topic\"\n\x20\x20\x20\x20\x20\ + \x20\x20name_descriptor:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20patte\ + rn:\x20\"projects/{project}/topics/{topic}\"\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googleapis.co\ + m/Project\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name_ext\ + ractor:\x20\"projects/{project}\"\n\n\x20Sometimes,\x20resources\x20have\ + \x20multiple\x20patterns,\x20typically\x20because\x20they\x20can\n\x20li\ + ve\x20under\x20multiple\x20parents.\n\n\x20Example:\n\n\x20\x20\x20\x20\ + \x20message\x20LogEntry\x20{\n\x20\x20\x20\x20\x20\x20\x20option\x20(goo\ + gle.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.googleapi\ + s.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\x20\x20name_descriptor:\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"folders/{folder}/l\ + ogs/{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}\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20name_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\ + attern:\x20\"organizations/{organization}/logs/{log}\"\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googl\ + eapis.com/Organization\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pa\ + rent_name_extractor:\x20\"organizations/{organization}\"\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20name_desc\ + riptor:\x20{\n\x20\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/BillingAcco\ + unt\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name_extractor\ + :\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\x20\ + The\x20ResourceDescriptor\x20Yaml\x20config\x20will\x20look\x20like:\n\n\ + \x20\x20\x20\x20\x20resources:\n\x20\x20\x20\x20\x20-\x20type:\x20'loggi\ + ng.googleapis.com/LogEntry'\n\x20\x20\x20\x20\x20\x20\x20name_descriptor\ + :\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\x20\"projects/{proj\ + ect}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_ty\ + pe:\x20\"cloudresourcemanager.googleapis.com/Project\"\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20parent_name_extractor:\x20\"projects/{projec\ + t}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\x20\"folders/{fo\ + lder}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_t\ + ype:\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-\x20pattern:\x20\"organizations\ + /{organization}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20parent_type:\x20\"cloudresourcemanager.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-\ + \x20pattern:\x20\"billingAccounts/{billing_account}/logs/{log}\"\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"billing.google\ + apis.com/BillingAccount\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\ + arent_name_extractor:\x20\"billingAccounts/{billing_account}\"\n\n\x20Fo\ + r\x20flexible\x20resources,\x20the\x20resource\x20name\x20doesn't\x20con\ + tain\x20parent\x20names,\x20but\n\x20the\x20resource\x20itself\x20has\ + \x20parents\x20for\x20policy\x20evaluation.\n\n\x20Example:\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.googleapis.com/Pr\ + oject\"\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.googleapis.com/Fo\ + lder\"\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\x20like:\n\n\x20\x20\x20\x20\x20resources:\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.googleapis.co\ + m/Project\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\x20\"shel\ + ves/{shelf}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_type:\ + \x20\"cloudresourcemanager.googleapis.com/Folder\"\n\n\x0b\n\x03\x04\0\ + \x01\x12\x04\x99\x01\x08\x1a\nc\n\x04\x04\0\x04\0\x12\x06\x9c\x01\x02\ + \xa8\x01\x03\x1aS\x20A\x20description\x20of\x20the\x20historical\x20or\ + \x20future-looking\x20state\x20of\x20the\n\x20resource\x20pattern.\n\n\r\ + \n\x05\x04\0\x04\0\x01\x12\x04\x9c\x01\x07\x0e\n$\n\x06\x04\0\x04\0\x02\ + \0\x12\x04\x9e\x01\x04\x1c\x1a\x14\x20The\x20\"unset\"\x20value.\n\n\x0f\ + \n\x07\x04\0\x04\0\x02\0\x01\x12\x04\x9e\x01\x04\x17\n\x0f\n\x07\x04\0\ + \x04\0\x02\0\x02\x12\x04\x9e\x01\x1a\x1b\nz\n\x06\x04\0\x04\0\x02\x01\ + \x12\x04\xa2\x01\x04\"\x1aj\x20The\x20resource\x20originally\x20had\x20o\ + ne\x20pattern\x20and\x20launched\x20as\x20such,\x20and\n\x20additional\ + \x20patterns\x20were\x20added\x20later.\n\n\x0f\n\x07\x04\0\x04\0\x02\ + \x01\x01\x12\x04\xa2\x01\x04\x1d\n\x0f\n\x07\x04\0\x04\0\x02\x01\x02\x12\ + \x04\xa2\x01\x20!\n\xdc\x01\n\x06\x04\0\x04\0\x02\x02\x12\x04\xa7\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\xa7\x01\x04\x18\n\x0f\n\x07\x04\0\x04\0\x02\x02\x02\x12\x04\xa7\ + \x01\x1b\x1c\n\\\n\x04\x04\0\x04\x01\x12\x06\xab\x01\x02\xb8\x01\x03\x1a\ + L\x20A\x20flag\x20representing\x20a\x20specific\x20style\x20that\x20a\ + \x20resource\x20claims\x20to\x20conform\x20to.\n\n\r\n\x05\x04\0\x04\x01\ + \x01\x12\x04\xab\x01\x07\x0c\n4\n\x06\x04\0\x04\x01\x02\0\x12\x04\xad\ + \x01\x04\x1a\x1a$\x20The\x20unspecified\x20value.\x20Do\x20not\x20use.\n\ + \n\x0f\n\x07\x04\0\x04\x01\x02\0\x01\x12\x04\xad\x01\x04\x15\n\x0f\n\x07\ + \x04\0\x04\x01\x02\0\x02\x12\x04\xad\x01\x18\x19\n\xdb\x02\n\x06\x04\0\ + \x04\x01\x02\x01\x12\x04\xb7\x01\x04\x1d\x1a\xca\x02\x20This\x20resource\ + \x20is\x20intended\x20to\x20be\x20\"declarative-friendly\".\n\n\x20Decla\ + rative-friendly\x20resources\x20must\x20be\x20more\x20strictly\x20consis\ + tent,\x20and\n\x20setting\x20this\x20to\x20true\x20communicates\x20to\ + \x20tools\x20that\x20this\x20resource\x20should\n\x20adhere\x20to\x20dec\ + larative-friendly\x20expectations.\n\n\x20Note:\x20This\x20is\x20used\ + \x20by\x20the\x20API\x20linter\x20(linter.aip.dev)\x20to\x20enable\n\x20\ + additional\x20checks.\n\n\x0f\n\x07\x04\0\x04\x01\x02\x01\x01\x12\x04\ + \xb7\x01\x04\x18\n\x0f\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x04\xb7\x01\ + \x1b\x1c\n\xec\x03\n\x04\x04\0\x02\0\x12\x04\xc4\x01\x02\x12\x1a\xdd\x03\ + \x20The\x20resource\x20type.\x20It\x20must\x20be\x20in\x20the\x20format\ + \x20of\n\x20{service_name}/{resource_type_kind}.\x20The\x20`resource_typ\ + e_kind`\x20must\x20be\n\x20singular\x20and\x20must\x20not\x20include\x20\ + version\x20numbers.\n\n\x20Example:\x20`storage.googleapis.com/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\x20s\ + hould\x20start\x20with\x20an\x20upper\x20case\x20character\x20and\n\x20s\ + hould\x20use\x20PascalCase\x20(UpperCamelCase).\x20The\x20maximum\x20num\ + ber\x20of\n\x20characters\x20allowed\x20for\x20the\x20`resource_type_kin\ + d`\x20is\x20100.\n\n\x0f\n\x05\x04\0\x02\0\x04\x12\x06\xc4\x01\x02\xb8\ + \x01\x03\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xc4\x01\x02\x08\n\r\n\x05\x04\ + \0\x02\0\x01\x12\x04\xc4\x01\t\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xc4\ + \x01\x10\x11\n\xc5\x05\n\x04\x04\0\x02\x01\x12\x04\xd9\x01\x02\x1e\x1a\ + \xb6\x05\x20Optional.\x20The\x20relative\x20resource\x20name\x20pattern\ + \x20associated\x20with\x20this\x20resource\n\x20type.\x20The\x20DNS\x20p\ + refix\x20of\x20the\x20full\x20resource\x20name\x20shouldn't\x20be\x20spe\ + cified\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\"projects/{project}/knowledg\ + eBases/{knowledge_base}\"\n\n\x20The\x20components\x20in\x20braces\x20co\ + rrespond\x20to\x20the\x20IDs\x20for\x20each\x20resource\x20in\x20the\n\ + \x20hierarchy.\x20It\x20is\x20expected\x20that,\x20if\x20multiple\x20pat\ + terns\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\xd9\x01\x02\n\ + \n\r\n\x05\x04\0\x02\x01\x05\x12\x04\xd9\x01\x0b\x11\n\r\n\x05\x04\0\x02\ + \x01\x01\x12\x04\xd9\x01\x12\x19\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xd9\ + \x01\x1c\x1d\n\x87\x01\n\x04\x04\0\x02\x02\x12\x04\xdd\x01\x02\x18\x1ay\ + \x20Optional.\x20The\x20field\x20on\x20the\x20resource\x20that\x20design\ + ates\x20the\x20resource\x20name\n\x20field.\x20If\x20omitted,\x20this\ + \x20is\x20assumed\x20to\x20be\x20\"name\".\n\n\x0f\n\x05\x04\0\x02\x02\ + \x04\x12\x06\xdd\x01\x02\xd9\x01\x1e\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\ + \xdd\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xdd\x01\t\x13\n\r\n\ + \x05\x04\0\x02\x02\x03\x12\x04\xdd\x01\x16\x17\n\xcc\x04\n\x04\x04\0\x02\ + \x03\x12\x04\xee\x01\x02\x16\x1a\xbd\x04\x20Optional.\x20The\x20historic\ + al\x20or\x20future-looking\x20state\x20of\x20the\x20resource\x20pattern.\ + \n\n\x20Example:\n\n\x20\x20\x20\x20\x20//\x20The\x20InspectTemplate\x20\ + message\x20originally\x20only\x20supported\x20resource\n\x20\x20\x20\x20\ + \x20//\x20names\x20with\x20organization,\x20and\x20project\x20was\x20add\ + ed\x20later.\n\x20\x20\x20\x20\x20message\x20InspectTemplate\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\"dlp.googleapis.com/InspectTem\ + plate\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\"organizations/{organization}/inspectTemplates/{ins\ + pect_template}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"proj\ + ects/{project}/inspectTemplates/{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\x0f\n\x05\x04\0\x02\x03\ + \x04\x12\x06\xee\x01\x02\xdd\x01\x18\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\ + \xee\x01\x02\t\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xee\x01\n\x11\n\r\n\ + \x05\x04\0\x02\x03\x03\x12\x04\xee\x01\x14\x15\n\xe1\x03\n\x04\x04\0\x02\ + \x04\x12\x04\xf8\x01\x02\x14\x1a\xd2\x03\x20The\x20plural\x20name\x20use\ + d\x20in\x20the\x20resource\x20name\x20and\x20permission\x20names,\x20suc\ + h\x20as\n\x20'projects'\x20for\x20the\x20resource\x20name\x20of\x20'proj\ + ects/{project}'\x20and\x20the\x20permission\n\x20name\x20of\x20'cloudres\ + ourcemanager.googleapis.com/projects.get'.\x20It\x20is\x20the\x20same\n\ + \x20concept\x20of\x20the\x20`plural`\x20field\x20in\x20k8s\x20CRD\x20spe\ + c\n\x20https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-res\ + ources/custom-resource-definitions/\n\n\x20Note:\x20The\x20plural\x20for\ + m\x20is\x20required\x20even\x20for\x20singleton\x20resources.\x20See\n\ + \x20https://aip.dev/156\n\n\x0f\n\x05\x04\0\x02\x04\x04\x12\x06\xf8\x01\ + \x02\xee\x01\x16\n\r\n\x05\x04\0\x02\x04\x05\x12\x04\xf8\x01\x02\x08\n\r\ + \n\x05\x04\0\x02\x04\x01\x12\x04\xf8\x01\t\x0f\n\r\n\x05\x04\0\x02\x04\ + \x03\x12\x04\xf8\x01\x12\x13\n\xf9\x01\n\x04\x04\0\x02\x05\x12\x04\xfd\ + \x01\x02\x16\x1a\xea\x01\x20The\x20same\x20concept\x20of\x20the\x20`sing\ + ular`\x20field\x20in\x20k8s\x20CRD\x20spec\n\x20https://kubernetes.io/do\ + cs/tasks/access-kubernetes-api/custom-resources/custom-resource-definiti\ + ons/\n\x20Such\x20as\x20\"project\"\x20for\x20the\x20`resourcemanager.go\ + ogleapis.com/Project`\x20type.\n\n\x0f\n\x05\x04\0\x02\x05\x04\x12\x06\ + \xfd\x01\x02\xf8\x01\x14\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\xfd\x01\x02\ + \x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xfd\x01\t\x11\n\r\n\x05\x04\0\ + \x02\x05\x03\x12\x04\xfd\x01\x14\x15\n\xb4\x01\n\x04\x04\0\x02\x06\x12\ + \x04\x82\x02\x02\x1c\x1a\xa5\x01\x20Style\x20flag(s)\x20for\x20this\x20r\ + esource.\n\x20These\x20indicate\x20that\x20a\x20resource\x20is\x20expect\ + ed\x20to\x20conform\x20to\x20a\x20given\n\x20style.\x20See\x20the\x20spe\ + cific\x20style\x20flags\x20for\x20additional\x20information.\n\n\r\n\x05\ + \x04\0\x02\x06\x04\x12\x04\x82\x02\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\ + \x04\x82\x02\x0b\x10\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\x82\x02\x11\x16\ + \n\r\n\x05\x04\0\x02\x06\x03\x12\x04\x82\x02\x19\x1b\ni\n\x02\x04\x01\ + \x12\x06\x87\x02\0\xaa\x02\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\x87\x02\ + \x08\x19\n\x85\x04\n\x04\x04\x01\x02\0\x12\x04\x9c\x02\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\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\x9c\x02\ + \x02\x87\x02\x1b\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x9c\x02\x02\x08\n\r\ + \n\x05\x04\x01\x02\0\x01\x12\x04\x9c\x02\t\r\n\r\n\x05\x04\x01\x02\0\x03\ + \x12\x04\x9c\x02\x10\x11\n\xf0\x02\n\x04\x04\x01\x02\x01\x12\x04\xa9\x02\ + \x02\x18\x1a\xe1\x02\x20The\x20resource\x20type\x20of\x20a\x20child\x20c\ + ollection\x20that\x20the\x20annotated\x20field\n\x20references.\x20This\ + \x20is\x20useful\x20for\x20annotating\x20the\x20`parent`\x20field\x20tha\ + t\n\x20doesn't\x20have\x20a\x20fixed\x20resource\x20type.\n\n\x20Example\ + :\n\n\x20\x20\x20\x20\x20message\x20ListLogEntriesRequest\x20{\n\x20\x20\ + \x20\x20\x20\x20\x20string\x20parent\x20=\x201\x20[(google.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\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xa9\ + \x02\x02\x9c\x02\x12\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xa9\x02\x02\ + \x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xa9\x02\t\x13\n\r\n\x05\x04\ + \x01\x02\x01\x03\x12\x04\xa9\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/service.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/service.rs new file mode 100644 index 0000000000..c315e296d7 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/service.rs @@ -0,0 +1,1694 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/service.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Service { + // message fields + pub name: ::std::string::String, + pub title: ::std::string::String, + 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 config_version: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Service { + fn default() -> &'a Service { + ::default_instance() + } +} + +impl Service { + pub fn new() -> 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.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()) + } +} + +impl ::protobuf::Message for 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.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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; + }, + 22 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_project_id)?; + }, + 33 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; + }, + 3 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.apis)?; + }, + 4 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.types)?; + }, + 5 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.enums)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.documentation)?; + }, + 8 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.backend)?; + }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.http)?; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.quota)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authentication)?; + }, + 12 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.context)?; + }, + 15 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.usage)?; + }, + 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)?; + }, + 23 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.logs)?; + }, + 24 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metrics)?; + }, + 25 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.monitored_resources)?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.billing)?; + }, + 27 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.logging)?; + }, + 28 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.monitoring)?; + }, + 29 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.system_parameters)?; + }, + 37 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_info)?; + }, + 20 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.config_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.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.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; + }; + for value in &self.types { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + for value in &self.enums { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if let Some(ref v) = self.documentation.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.backend.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.http.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.quota.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.authentication.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.context.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.usage.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + for value in &self.endpoints { + let len = value.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if let Some(ref v) = self.control.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + for value in &self.logs { + let len = value.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + for value in &self.metrics { + let len = value.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_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; + }; + 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() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.system_parameters.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_info.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.config_version.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.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)?; + }; + 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)?; + }; + 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)?; + }; + 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(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(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(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(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(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(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)?; + } + 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)?; + }; + 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)?; + } + 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)?; + }; + 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)?; + }; + 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)?; + }; + 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(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(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(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(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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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<::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.name.clear(); + self.title.clear(); + self.producer_project_id.clear(); + self.id.clear(); + self.apis.clear(); + self.types.clear(); + self.enums.clear(); + self.documentation.clear(); + self.backend.clear(); + self.http.clear(); + self.quota.clear(); + self.authentication.clear(); + self.context.clear(); + self.usage.clear(); + self.endpoints.clear(); + self.control.clear(); + self.logs.clear(); + self.metrics.clear(); + self.monitored_resources.clear(); + self.billing.clear(); + self.logging.clear(); + self.monitoring.clear(); + self.system_parameters.clear(); + self.source_info.clear(); + self.config_version.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +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\ + \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\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ + \x04name\x12\x14\n\x05title\x18\x02\x20\x01(\tR\x05title\x12.\n\x13produ\ + cer_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.p\ + rotobuf.TypeR\x05types\x12+\n\x05enums\x18\x05\x20\x03(\x0b2\x15.google.\ + protobuf.EnumR\x05enums\x12?\n\rdocumentation\x18\x06\x20\x01(\x0b2\x19.\ + google.api.DocumentationR\rdocumentation\x12-\n\x07backend\x18\x08\x20\ + \x01(\x0b2\x13.google.api.BackendR\x07backend\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.api.ContextR\x07context\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\tendpoints\ + \x12-\n\x07control\x18\x15\x20\x01(\x0b2\x13.google.api.ControlR\x07cont\ + rol\x12-\n\x04logs\x18\x17\x20\x03(\x0b2\x19.google.api.LogDescriptorR\ + \x04logs\x126\n\x07metrics\x18\x18\x20\x03(\x0b2\x1c.google.api.MetricDe\ + scriptorR\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\x07logging\ + \x126\n\nmonitoring\x18\x1c\x20\x01(\x0b2\x16.google.api.MonitoringR\nmo\ + nitoring\x12I\n\x11system_parameters\x18\x1d\x20\x01(\x0b2\x1c.google.ap\ + i.SystemParametersR\x10systemParameters\x127\n\x0bsource_info\x18%\x20\ + \x01(\x0b2\x16.google.api.SourceInfoR\nsourceInfo\x12C\n\x0econfig_versi\ + on\x18\x14\x20\x01(\x0b2\x1c.google.protobuf.UInt32ValueR\rconfigVersion\ + Bn\n\x0ecom.google.apiB\x0cServiceProtoP\x01ZEgoogle.golang.org/genproto\ + /googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xe70\n\x07\ + \x12\x05\x0e\0\xac\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ + \x04\x20Copyright\x202020\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\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\ + \x1f\n\t\n\x02\x03\x08\x12\x03\x1a\0\x20\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+\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\x05G\0\xac\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\x03G\x08\x0f\n\xf6\x01\n\x04\x04\0\ + \x02\0\x12\x03L\x02\x12\x1a\xe8\x01\x20The\x20service\x20name,\x20which\ + \x20is\x20a\x20DNS-like\x20logical\x20identifier\x20for\x20the\n\x20serv\ + ice,\x20such\x20as\x20`calendar.googleapis.com`.\x20The\x20service\x20na\ + me\n\x20typically\x20goes\x20through\x20DNS\x20verification\x20to\x20mak\ + e\x20sure\x20the\x20owner\n\x20of\x20the\x20service\x20also\x20owns\x20t\ + he\x20DNS\x20name.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04L\x02G\x11\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\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03L\x10\x11\n2\n\x04\x04\0\ + \x02\x01\x12\x03O\x02\x13\x1a%\x20The\x20product\x20title\x20for\x20this\ + \x20service.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04O\x02L\x12\n\x0c\n\x05\ + \x04\0\x02\x01\x05\x12\x03O\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ + \x03O\t\x0e\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03O\x11\x12\n9\n\x04\x04\ + \0\x02\x02\x12\x03R\x02\"\x1a,\x20The\x20Google\x20project\x20that\x20ow\ + ns\x20this\x20service.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04R\x02O\x13\n\ + \x0c\n\x05\x04\0\x02\x02\x05\x12\x03R\x02\x08\n\x0c\n\x05\x04\0\x02\x02\ + \x01\x12\x03R\t\x1c\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03R\x1f!\n\x9f\ + \x02\n\x04\x04\0\x02\x03\x12\x03X\x02\x11\x1a\x91\x02\x20A\x20unique\x20\ + ID\x20for\x20a\x20specific\x20instance\x20of\x20this\x20message,\x20typi\ + cally\x20assigned\n\x20by\x20the\x20client\x20for\x20tracking\x20purpose\ + .\x20Must\x20be\x20no\x20longer\x20than\x2063\x20characters\n\x20and\x20\ + only\x20lower\x20case\x20letters,\x20digits,\x20'.',\x20'_'\x20and\x20'-\ + '\x20are\x20allowed.\x20If\n\x20empty,\x20the\x20server\x20may\x20choose\ + \x20to\x20generate\x20one\x20instead.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\ + \x04X\x02R\"\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03X\x02\x08\n\x0c\n\x05\ + \x04\0\x02\x03\x01\x12\x03X\t\x0b\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03X\ + \x0e\x10\n\x82\x03\n\x04\x04\0\x02\x04\x12\x03_\x02(\x1a\xf4\x02\x20A\ + \x20list\x20of\x20API\x20interfaces\x20exported\x20by\x20this\x20service\ + .\x20Only\x20the\x20`name`\x20field\n\x20of\x20the\x20[google.protobuf.A\ + pi][google.protobuf.Api]\x20needs\x20to\x20be\x20provided\x20by\x20the\ + \x20configuration\n\x20author,\x20as\x20the\x20remaining\x20fields\x20wi\ + ll\x20be\x20derived\x20from\x20the\x20IDL\x20during\x20the\n\x20normaliz\ + ation\x20process.\x20It\x20is\x20an\x20error\x20to\x20specify\x20an\x20A\ + PI\x20interface\x20here\n\x20which\x20cannot\x20be\x20resolved\x20agains\ + t\x20the\x20associated\x20IDL\x20files.\n\n\x0c\n\x05\x04\0\x02\x04\x04\ + \x12\x03_\x02\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03_\x0b\x1e\n\x0c\n\ + \x05\x04\0\x02\x04\x01\x12\x03_\x1f#\n\x0c\n\x05\x04\0\x02\x04\x03\x12\ + \x03_&'\n\xed\x02\n\x04\x04\0\x02\x05\x12\x03i\x02*\x1a\xdf\x02\x20A\x20\ + list\x20of\x20all\x20proto\x20message\x20types\x20included\x20in\x20this\ + \x20API\x20service.\n\x20Types\x20referenced\x20directly\x20or\x20indire\ + ctly\x20by\x20the\x20`apis`\x20are\n\x20automatically\x20included.\x20\ + \x20Messages\x20which\x20are\x20not\x20referenced\x20but\n\x20shall\x20b\ + e\x20included,\x20such\x20as\x20types\x20used\x20by\x20the\x20`google.pr\ + otobuf.Any`\x20type,\n\x20should\x20be\x20listed\x20here\x20by\x20name.\ + \x20Example:\n\n\x20\x20\x20\x20\x20types:\n\x20\x20\x20\x20\x20-\x20nam\ + e:\x20google.protobuf.Int32\n\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03i\x02\ + \n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03i\x0b\x1f\n\x0c\n\x05\x04\0\x02\ + \x05\x01\x12\x03i\x20%\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03i()\n\xaf\ + \x02\n\x04\x04\0\x02\x06\x12\x03r\x02*\x1a\xa1\x02\x20A\x20list\x20of\ + \x20all\x20enum\x20types\x20included\x20in\x20this\x20API\x20service.\ + \x20\x20Enums\n\x20referenced\x20directly\x20or\x20indirectly\x20by\x20t\ + he\x20`apis`\x20are\x20automatically\n\x20included.\x20\x20Enums\x20whic\ + h\x20are\x20not\x20referenced\x20but\x20shall\x20be\x20included\n\x20sho\ + uld\x20be\x20listed\x20here\x20by\x20name.\x20Example:\n\n\x20\x20\x20\ + \x20\x20enums:\n\x20\x20\x20\x20\x20-\x20name:\x20google.someapi.v1.Some\ + Enum\n\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03r\x02\n\n\x0c\n\x05\x04\0\ + \x02\x06\x06\x12\x03r\x0b\x1f\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03r\x20\ + %\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03r()\n,\n\x04\x04\0\x02\x07\x12\ + \x03u\x02\"\x1a\x1f\x20Additional\x20API\x20documentation.\n\n\r\n\x05\ + \x04\0\x02\x07\x04\x12\x04u\x02r*\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03u\ + \x02\x0f\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03u\x10\x1d\n\x0c\n\x05\x04\ + \0\x02\x07\x03\x12\x03u\x20!\n)\n\x04\x04\0\x02\x08\x12\x03x\x02\x16\x1a\ + \x1c\x20API\x20backend\x20configuration.\n\n\r\n\x05\x04\0\x02\x08\x04\ + \x12\x04x\x02u\"\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03x\x02\t\n\x0c\n\ + \x05\x04\0\x02\x08\x01\x12\x03x\n\x11\n\x0c\n\x05\x04\0\x02\x08\x03\x12\ + \x03x\x14\x15\n\"\n\x04\x04\0\x02\t\x12\x03{\x02\x10\x1a\x15\x20HTTP\x20\ + configuration.\n\n\r\n\x05\x04\0\x02\t\x04\x12\x04{\x02x\x16\n\x0c\n\x05\ + \x04\0\x02\t\x06\x12\x03{\x02\x06\n\x0c\n\x05\x04\0\x02\t\x01\x12\x03{\ + \x07\x0b\n\x0c\n\x05\x04\0\x02\t\x03\x12\x03{\x0e\x0f\n#\n\x04\x04\0\x02\ + \n\x12\x03~\x02\x13\x1a\x16\x20Quota\x20configuration.\n\n\r\n\x05\x04\0\ + \x02\n\x04\x12\x04~\x02{\x10\n\x0c\n\x05\x04\0\x02\n\x06\x12\x03~\x02\ + \x07\n\x0c\n\x05\x04\0\x02\n\x01\x12\x03~\x08\r\n\x0c\n\x05\x04\0\x02\n\ + \x03\x12\x03~\x10\x12\n#\n\x04\x04\0\x02\x0b\x12\x04\x81\x01\x02%\x1a\ + \x15\x20Auth\x20configuration.\n\n\x0e\n\x05\x04\0\x02\x0b\x04\x12\x05\ + \x81\x01\x02~\x13\n\r\n\x05\x04\0\x02\x0b\x06\x12\x04\x81\x01\x02\x10\n\ + \r\n\x05\x04\0\x02\x0b\x01\x12\x04\x81\x01\x11\x1f\n\r\n\x05\x04\0\x02\ + \x0b\x03\x12\x04\x81\x01\"$\n&\n\x04\x04\0\x02\x0c\x12\x04\x84\x01\x02\ + \x17\x1a\x18\x20Context\x20configuration.\n\n\x0f\n\x05\x04\0\x02\x0c\ + \x04\x12\x06\x84\x01\x02\x81\x01%\n\r\n\x05\x04\0\x02\x0c\x06\x12\x04\ + \x84\x01\x02\t\n\r\n\x05\x04\0\x02\x0c\x01\x12\x04\x84\x01\n\x11\n\r\n\ + \x05\x04\0\x02\x0c\x03\x12\x04\x84\x01\x14\x16\n@\n\x04\x04\0\x02\r\x12\ + \x04\x87\x01\x02\x13\x1a2\x20Configuration\x20controlling\x20usage\x20of\ + \x20this\x20service.\n\n\x0f\n\x05\x04\0\x02\r\x04\x12\x06\x87\x01\x02\ + \x84\x01\x17\n\r\n\x05\x04\0\x02\r\x06\x12\x04\x87\x01\x02\x07\n\r\n\x05\ + \x04\0\x02\r\x01\x12\x04\x87\x01\x08\r\n\r\n\x05\x04\0\x02\r\x03\x12\x04\ + \x87\x01\x10\x12\n\xb5\x01\n\x04\x04\0\x02\x0e\x12\x04\x8c\x01\x02#\x1a\ + \xa6\x01\x20Configuration\x20for\x20network\x20endpoints.\x20\x20If\x20t\ + his\x20is\x20empty,\x20then\x20an\x20endpoint\n\x20with\x20the\x20same\ + \x20name\x20as\x20the\x20service\x20is\x20automatically\x20generated\x20\ + to\x20service\x20all\n\x20defined\x20APIs.\n\n\r\n\x05\x04\0\x02\x0e\x04\ + \x12\x04\x8c\x01\x02\n\n\r\n\x05\x04\0\x02\x0e\x06\x12\x04\x8c\x01\x0b\ + \x13\n\r\n\x05\x04\0\x02\x0e\x01\x12\x04\x8c\x01\x14\x1d\n\r\n\x05\x04\0\ + \x02\x0e\x03\x12\x04\x8c\x01\x20\"\n<\n\x04\x04\0\x02\x0f\x12\x04\x8f\ + \x01\x02\x17\x1a.\x20Configuration\x20for\x20the\x20service\x20control\ + \x20plane.\n\n\x0f\n\x05\x04\0\x02\x0f\x04\x12\x06\x8f\x01\x02\x8c\x01#\ + \n\r\n\x05\x04\0\x02\x0f\x06\x12\x04\x8f\x01\x02\t\n\r\n\x05\x04\0\x02\ + \x0f\x01\x12\x04\x8f\x01\n\x11\n\r\n\x05\x04\0\x02\x0f\x03\x12\x04\x8f\ + \x01\x14\x16\n6\n\x04\x04\0\x02\x10\x12\x04\x92\x01\x02#\x1a(\x20Defines\ + \x20the\x20logs\x20used\x20by\x20this\x20service.\n\n\r\n\x05\x04\0\x02\ + \x10\x04\x12\x04\x92\x01\x02\n\n\r\n\x05\x04\0\x02\x10\x06\x12\x04\x92\ + \x01\x0b\x18\n\r\n\x05\x04\0\x02\x10\x01\x12\x04\x92\x01\x19\x1d\n\r\n\ + \x05\x04\0\x02\x10\x03\x12\x04\x92\x01\x20\"\n9\n\x04\x04\0\x02\x11\x12\ + \x04\x95\x01\x02)\x1a+\x20Defines\x20the\x20metrics\x20used\x20by\x20thi\ + s\x20service.\n\n\r\n\x05\x04\0\x02\x11\x04\x12\x04\x95\x01\x02\n\n\r\n\ + \x05\x04\0\x02\x11\x06\x12\x04\x95\x01\x0b\x1b\n\r\n\x05\x04\0\x02\x11\ + \x01\x12\x04\x95\x01\x1c#\n\r\n\x05\x04\0\x02\x11\x03\x12\x04\x95\x01&(\ + \n\xd5\x01\n\x04\x04\0\x02\x12\x12\x04\x99\x01\x02@\x1a\xc6\x01\x20Defin\ + es\x20the\x20monitored\x20resources\x20used\x20by\x20this\x20service.\ + \x20This\x20is\x20required\n\x20by\x20the\x20[Service.monitoring][google\ + .api.Service.monitoring]\x20and\x20[Service.logging][google.api.Service.\ + logging]\x20configurations.\n\n\r\n\x05\x04\0\x02\x12\x04\x12\x04\x99\ + \x01\x02\n\n\r\n\x05\x04\0\x02\x12\x06\x12\x04\x99\x01\x0b&\n\r\n\x05\ + \x04\0\x02\x12\x01\x12\x04\x99\x01':\n\r\n\x05\x04\0\x02\x12\x03\x12\x04\ + \x99\x01=?\n&\n\x04\x04\0\x02\x13\x12\x04\x9c\x01\x02\x17\x1a\x18\x20Bil\ + ling\x20configuration.\n\n\x0f\n\x05\x04\0\x02\x13\x04\x12\x06\x9c\x01\ + \x02\x99\x01@\n\r\n\x05\x04\0\x02\x13\x06\x12\x04\x9c\x01\x02\t\n\r\n\ + \x05\x04\0\x02\x13\x01\x12\x04\x9c\x01\n\x11\n\r\n\x05\x04\0\x02\x13\x03\ + \x12\x04\x9c\x01\x14\x16\n&\n\x04\x04\0\x02\x14\x12\x04\x9f\x01\x02\x17\ + \x1a\x18\x20Logging\x20configuration.\n\n\x0f\n\x05\x04\0\x02\x14\x04\ + \x12\x06\x9f\x01\x02\x9c\x01\x17\n\r\n\x05\x04\0\x02\x14\x06\x12\x04\x9f\ + \x01\x02\t\n\r\n\x05\x04\0\x02\x14\x01\x12\x04\x9f\x01\n\x11\n\r\n\x05\ + \x04\0\x02\x14\x03\x12\x04\x9f\x01\x14\x16\n)\n\x04\x04\0\x02\x15\x12\ + \x04\xa2\x01\x02\x1d\x1a\x1b\x20Monitoring\x20configuration.\n\n\x0f\n\ + \x05\x04\0\x02\x15\x04\x12\x06\xa2\x01\x02\x9f\x01\x17\n\r\n\x05\x04\0\ + \x02\x15\x06\x12\x04\xa2\x01\x02\x0c\n\r\n\x05\x04\0\x02\x15\x01\x12\x04\ + \xa2\x01\r\x17\n\r\n\x05\x04\0\x02\x15\x03\x12\x04\xa2\x01\x1a\x1c\n/\n\ + \x04\x04\0\x02\x16\x12\x04\xa5\x01\x02*\x1a!\x20System\x20parameter\x20c\ + onfiguration.\n\n\x0f\n\x05\x04\0\x02\x16\x04\x12\x06\xa5\x01\x02\xa2\ + \x01\x1d\n\r\n\x05\x04\0\x02\x16\x06\x12\x04\xa5\x01\x02\x12\n\r\n\x05\ + \x04\0\x02\x16\x01\x12\x04\xa5\x01\x13$\n\r\n\x05\x04\0\x02\x16\x03\x12\ + \x04\xa5\x01')\nX\n\x04\x04\0\x02\x17\x12\x04\xa8\x01\x02\x1e\x1aJ\x20Ou\ + tput\x20only.\x20The\x20source\x20information\x20for\x20this\x20configur\ + ation\x20if\x20available.\n\n\x0f\n\x05\x04\0\x02\x17\x04\x12\x06\xa8\ + \x01\x02\xa5\x01*\n\r\n\x05\x04\0\x02\x17\x06\x12\x04\xa8\x01\x02\x0c\n\ + \r\n\x05\x04\0\x02\x17\x01\x12\x04\xa8\x01\r\x18\n\r\n\x05\x04\0\x02\x17\ + \x03\x12\x04\xa8\x01\x1b\x1d\nV\n\x04\x04\0\x02\x18\x12\x04\xab\x01\x022\ + \x1aH\x20Deprecated.\x20The\x20service\x20config\x20compiler\x20always\ + \x20sets\x20this\x20field\x20to\x20`3`.\n\n\x0f\n\x05\x04\0\x02\x18\x04\ + \x12\x06\xab\x01\x02\xa8\x01\x1e\n\r\n\x05\x04\0\x02\x18\x06\x12\x04\xab\ + \x01\x02\x1d\n\r\n\x05\x04\0\x02\x18\x01\x12\x04\xab\x01\x1e,\n\r\n\x05\ + \x04\0\x02\x18\x03\x12\x04\xab\x01/1b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/check_error.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/check_error.rs new file mode 100644 index 0000000000..5151bb61b5 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/check_error.rs @@ -0,0 +1,584 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/check_error.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct CheckError { + // message fields + pub code: CheckError_Code, + pub subject: ::std::string::String, + pub detail: ::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 CheckError { + fn default() -> &'a CheckError { + ::default_instance() + } +} + +impl CheckError { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 3 => { + ::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.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.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 + } + + 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)?; + } + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static CheckError { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CheckError::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[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, +} + +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(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 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, + ]; + 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 ::std::marker::Copy for CheckError_Code { +} + +impl ::std::default::Default for CheckError_Code { + fn default() -> Self { + CheckError_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)) + } +} + +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\x01ZJgoogle.golang.org/genpro\ + to/googleapis/api/servicecontrol/v1;servicecontrol\xf8\x01\x01\xaa\x02\ + \x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceCont\ + rol\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xfa!\n\x06\x12\x04\ + \x0e\0{\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ + \x202020\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\r\n\x05\x04\0\x02\ + \0\x04\x12\x04j\x02g\x03\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\x20error\x20applies.\x20See\x20the\ + \x20specific\x20code\x20enum\x20for\x20more\n\x20details\x20on\x20this\ + \x20field.\x20For\x20example:\n\n\x20-\x20\"project:\"\n\x20-\x20\"folder:\"\n\x20-\x20\"organ\ + ization:\"\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04r\x02j\ + \x10\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\x20\ + error.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04u\x02r\x15\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\r\n\x05\x04\0\x02\x03\x04\ + \x12\x04z\x02u\x14\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/distribution.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/distribution.rs new file mode 100644 index 0000000000..2b417b531b --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/distribution.rs @@ -0,0 +1,1420 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/distribution.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Distribution { + // message fields + pub count: i64, + pub mean: f64, + pub minimum: f64, + pub maximum: f64, + pub sum_of_squared_deviation: f64, + pub bucket_counts: ::std::vec::Vec, + // message oneof groups + pub bucket_option: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Distribution { + fn default() -> &'a Distribution { + ::default_instance() + } +} + +#[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 { + match self.bucket_option { + ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(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, + _ => 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)) + } + + // 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 { + } else { + self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(Distribution_LinearBuckets::new())); + } + match self.bucket_option { + ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Distribution_LinearBuckets::new() + } + } + + // .google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8; + + + pub fn get_exponential_buckets(&self) -> &Distribution_ExponentialBuckets { + match self.bucket_option { + ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(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, + _ => 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)) + } + + // 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 { + } else { + self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(Distribution_ExponentialBuckets::new())); + } + match self.bucket_option { + ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Distribution_ExponentialBuckets::new() + } + } + + // .google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9; + + + pub fn get_explicit_buckets(&self) -> &Distribution_ExplicitBuckets { + match self.bucket_option { + ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(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, + _ => 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)) + } + + // 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 { + } else { + self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(Distribution_ExplicitBuckets::new())); + } + match self.bucket_option { + ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Distribution_ExplicitBuckets::new() + } + } +} + +impl ::protobuf::Message for 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; + } + } + true + } + + fn merge_from(&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; + }, + 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; + }, + 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; + }, + 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; + }, + 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; + }, + 6 => { + ::protobuf::rt::read_repeated_int64_into(wire_type, is, &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()?)); + }, + 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()?)); + }, + 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()?)); + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.count != 0 { + my_size += ::protobuf::rt::value_size(1, self.count, ::protobuf::wire_format::WireTypeVarint); + } + if self.mean != 0. { + my_size += 9; + } + if self.minimum != 0. { + my_size += 9; + } + if self.maximum != 0. { + my_size += 9; + } + if self.sum_of_squared_deviation != 0. { + my_size += 9; + } + for value in &self.bucket_counts { + my_size += ::protobuf::rt::value_size(6, *value, ::protobuf::wire_format::WireTypeVarint); + }; + if let ::std::option::Option::Some(ref v) = self.bucket_option { + match v { + &Distribution_oneof_bucket_option::linear_buckets(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Distribution_oneof_bucket_option::exponential_buckets(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Distribution_oneof_bucket_option::explicit_buckets(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.count != 0 { + os.write_int64(1, self.count)?; + } + if self.mean != 0. { + os.write_double(2, self.mean)?; + } + if self.minimum != 0. { + os.write_double(3, self.minimum)?; + } + if self.maximum != 0. { + os.write_double(4, self.maximum)?; + } + if self.sum_of_squared_deviation != 0. { + os.write_double(5, self.sum_of_squared_deviation)?; + } + for v in &self.bucket_counts { + os.write_int64(6, *v)?; + }; + 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_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_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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 { + 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, + )); + ::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.; + self.minimum = 0.; + self.maximum = 0.; + self.sum_of_squared_deviation = 0.; + self.bucket_counts.clear(); + self.bucket_option = ::std::option::Option::None; + self.bucket_option = ::std::option::Option::None; + self.bucket_option = ::std::option::Option::None; + self.unknown_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) + } +} + +impl ::protobuf::reflect::ProtobufValue for Distribution { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 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; + + + 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_LinearBuckets { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&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_LinearBuckets { + Distribution_LinearBuckets::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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_LinearBuckets| { &m.num_finite_buckets }, + |m: &mut Distribution_LinearBuckets| { &mut m.num_finite_buckets }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + "width", + |m: &Distribution_LinearBuckets| { &m.width }, + |m: &mut Distribution_LinearBuckets| { &mut m.width }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + "offset", + |m: &Distribution_LinearBuckets| { &m.offset }, + |m: &mut Distribution_LinearBuckets| { &mut m.offset }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Distribution.LinearBuckets", + fields, + file_descriptor_proto() + ) + }) + } + + 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; + + + 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_ExponentialBuckets { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&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); + } + if self.growth_factor != 0. { + my_size += 9; + } + 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)?; + } + 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() + } + + fn new() -> Distribution_ExponentialBuckets { + Distribution_ExponentialBuckets::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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_ExponentialBuckets| { &m.num_finite_buckets }, + |m: &mut Distribution_ExponentialBuckets| { &mut m.num_finite_buckets }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + "growth_factor", + |m: &Distribution_ExponentialBuckets| { &m.growth_factor }, + |m: &mut Distribution_ExponentialBuckets| { &mut m.growth_factor }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + "scale", + |m: &Distribution_ExponentialBuckets| { &m.scale }, + |m: &mut Distribution_ExponentialBuckets| { &mut m.scale }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Distribution.ExponentialBuckets", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Distribution_ExponentialBuckets { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Distribution_ExponentialBuckets::new) + } +} + +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(); + } +} + +impl ::std::fmt::Debug for Distribution_ExponentialBuckets { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Distribution_ExponentialBuckets { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a Distribution_ExplicitBuckets { + fn default() -> &'a Distribution_ExplicitBuckets { + ::default_instance() + } +} + +impl Distribution_ExplicitBuckets { + pub fn new() -> Distribution_ExplicitBuckets { + ::std::default::Default::default() + } + + // repeated double bounds = 1; + + + pub fn get_bounds(&self) -> &[f64] { + &self.bounds + } + pub fn clear_bounds(&mut self) { + self.bounds.clear(); + } + + // Param is passed by value, moved + pub fn set_bounds(&mut self, v: ::std::vec::Vec) { + self.bounds = v; + } + + // Mutable pointer to the field. + pub fn mut_bounds(&mut self) -> &mut ::std::vec::Vec { + &mut self.bounds + } + + // Take field + pub fn take_bounds(&mut self) -> ::std::vec::Vec { + ::std::mem::replace(&mut self.bounds, ::std::vec::Vec::new()) + } +} + +impl ::protobuf::Message for Distribution_ExplicitBuckets { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &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(()) + } + + // 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 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 get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_ExplicitBuckets { + Distribution_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 default_instance() -> &'static Distribution_ExplicitBuckets { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Distribution_ExplicitBuckets::new) + } +} + +impl ::protobuf::Clear for Distribution_ExplicitBuckets { + fn clear(&mut self) { + self.bounds.clear(); + self.unknown_fields.clear(); + } +} + +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 ::protobuf::reflect::ProtobufValue for Distribution_ExplicitBuckets { + 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/distribution.proto\x12\x1cgoogle.api.ser\ + 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\xec\x01\n\x20com.google.api.servicecontrol.v1B\x11DistributionProtoP\ + \x01ZJgoogle.golang.org/genproto/googleapis/api/servicecontrol/v1;servic\ + econtrol\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\ + \x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Cloud::ServiceCont\ + rol::V1J\xdf4\n\x07\x12\x05\x0e\0\xa0\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%\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%\x12\x03\x13\0;\n\x08\n\x01\x08\x12\x03\x14\0a\n\t\n\x02\x08\ + \x0b\x12\x03\x14\0a\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\09\n\t\n\x02\x08\x01\x12\x03\x17\09\ + \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\0:\n\t\n\x02\x08-\x12\x03\x19\0:\n\x91\x03\n\x02\ + \x04\0\x12\x05#\0\xa0\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\x20inform\ + ation:\n\n\x20\x20\x20-\x20the\x20arithmetic\x20mean\x20of\x20the\x20sam\ + ples\n\x20\x20\x20-\x20the\x20minimum\x20and\x20maximum\x20of\x20the\x20\ + samples\n\x20\x20\x20-\x20the\x20sum-squared-deviation\x20of\x20the\x20s\ + amples,\x20used\x20to\x20compute\x20variance\n\x20\x20\x20-\x20a\x20hist\ + ogram\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%\x025\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\x20and\x20overflow\x20buckets,\n\x20the\x20\ + total\x20number\x20of\x20buckets\x20is\x20`num_finite_buckets`\x20+\x202\ + .\n\x20See\x20comments\x20on\x20`bucket_options`\x20for\x20details.\n\n\ + \x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04)\x04%\x19\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\x20line\ + ar\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\x20\ + Must\x20be\x20strictly\x20positive.\n\n\x0f\n\x07\x04\0\x03\0\x02\x01\ + \x04\x12\x04/\x04)!\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\x034\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\x0f\n\x07\x04\0\x03\ + \0\x02\x02\x04\x12\x044\x04/\x15\n\x0e\n\x07\x04\0\x03\0\x02\x02\x05\x12\ + \x034\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x034\x0b\x11\n\x0e\n\ + \x07\x04\0\x03\0\x02\x02\x03\x12\x034\x14\x15\nD\n\x04\x04\0\x03\x01\x12\ + \x048\x02I\x03\x1a6\x20Describing\x20buckets\x20with\x20exponentially\ + \x20growing\x20width.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x038\n\x1c\n\ + \xc1\x01\n\x06\x04\0\x03\x01\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\x0f\n\x07\x04\0\x03\x01\x02\0\x04\x12\ + \x04<\x048\x1e\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\ + \x03B\x04\x1d\x1a\xbd\x01\x20The\x20i'th\x20exponential\x20bucket\x20cov\ + ers\x20the\x20interval\n\x20\x20\x20[scale\x20*\x20growth_factor^(i-1),\ + \x20scale\x20*\x20growth_factor^i)\n\x20where\x20i\x20ranges\x20from\x20\ + 1\x20to\x20num_finite_buckets\x20inclusive.\n\x20Must\x20be\x20larger\ + \x20than\x201.0.\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x04\x12\x04B\x04\x200.\n\n\x0f\ + \n\x07\x04\0\x03\x01\x02\x02\x04\x12\x04H\x04B\x1d\n\x0e\n\x07\x04\0\x03\ + \x01\x02\x02\x05\x12\x03H\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x01\ + \x12\x03H\x0b\x10\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\x12\x03H\x13\x14\ + \nF\n\x04\x04\0\x03\x02\x12\x04L\x02]\x03\x1a8\x20Describing\x20buckets\ + \x20with\x20arbitrary\x20user-provided\x20width.\n\n\x0c\n\x05\x04\0\x03\ + \x02\x01\x12\x03L\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\x20\ + increasing\x20boundaries\x20between\n\x20buckets.\x20Note\x20that\x20a\ + \x20list\x20of\x20length\x20N-1\x20defines\x20N\x20buckets\x20because\n\ + \x20of\x20fenceposting.\x20See\x20comments\x20on\x20`bucket_options`\x20\ + for\x20details.\n\n\x20The\x20i'th\x20finite\x20bucket\x20covers\x20the\ + \x20interval\n\x20\x20\x20[bound[i-1],\x20bound[i])\n\x20where\x20i\x20r\ + anges\x20from\x201\x20to\x20bound_size()\x20-\x201.\x20Note\x20that\x20t\ + here\x20are\x20no\n\x20finite\x20buckets\x20at\x20all\x20if\x20'bound'\ + \x20only\x20contains\x20a\x20single\x20element;\x20in\n\x20that\x20speci\ + al\x20case\x20the\x20single\x20bound\x20defines\x20the\x20boundary\x20be\ + tween\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\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==\ + \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\x03`\x02\x12\x1a@\x20The\x20total\ + \x20number\x20of\x20samples\x20in\x20the\x20distribution.\x20Must\x20be\ + \x20>=\x200.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04`\x02]\x03\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\x03d\x02\x12\x1ak\x20The\x20arithmetic\x20mean\x20of\x20the\x20\ + samples\x20in\x20the\x20distribution.\x20If\x20`count`\x20is\n\x20zero\ + \x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\r\n\x05\x04\0\x02\ + \x01\x04\x12\x04d\x02`\x12\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03d\x02\ + \x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03d\t\r\n\x0c\n\x05\x04\0\x02\ + \x01\x03\x12\x03d\x10\x11\nS\n\x04\x04\0\x02\x02\x12\x03g\x02\x15\x1aF\ + \x20The\x20minimum\x20of\x20the\x20population\x20of\x20values.\x20Ignore\ + d\x20if\x20`count`\x20is\x20zero.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04g\ + \x02d\x12\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03g\x02\x08\n\x0c\n\x05\x04\ + \0\x02\x02\x01\x12\x03g\t\x10\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03g\x13\ + \x14\nS\n\x04\x04\0\x02\x03\x12\x03j\x02\x15\x1aF\x20The\x20maximum\x20o\ + f\x20the\x20population\x20of\x20values.\x20Ignored\x20if\x20`count`\x20i\ + s\x20zero.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04j\x02g\x15\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\x10\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03j\x13\x14\n\xe0\x01\n\ + \x04\x04\0\x02\x04\x12\x03p\x02&\x1a\xd2\x01\x20The\x20sum\x20of\x20squa\ + red\x20deviations\x20from\x20the\x20mean:\n\x20\x20\x20Sum[i=1..count]((\ + x_i\x20-\x20mean)^2)\n\x20where\x20each\x20x_i\x20is\x20a\x20sample\x20v\ + alues.\x20If\x20`count`\x20is\x20zero\x20then\x20this\x20field\n\x20must\ + \x20be\x20zero,\x20otherwise\x20validation\x20of\x20the\x20request\x20fa\ + ils.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04p\x02j\x15\n\x0c\n\x05\x04\0\ + \x02\x04\x05\x12\x03p\x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03p\t!\ + \n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03p$%\n\xb8\x04\n\x04\x04\0\x02\x05\ + \x12\x03}\x02#\x1a\xaa\x04\x20The\x20number\x20of\x20samples\x20in\x20ea\ + ch\x20histogram\x20bucket.\x20`bucket_counts`\x20are\n\x20optional.\x20I\ + f\x20present,\x20they\x20must\x20sum\x20to\x20the\x20`count`\x20value.\n\ + \n\x20The\x20buckets\x20are\x20defined\x20below\x20in\x20`bucket_option`\ + .\x20There\x20are\x20N\x20buckets.\n\x20`bucket_counts[0]`\x20is\x20the\ + \x20number\x20of\x20samples\x20in\x20the\x20underflow\x20bucket.\n\x20`b\ + ucket_counts[1]`\x20to\x20`bucket_counts[N-1]`\x20are\x20the\x20numbers\ + \x20of\x20samples\n\x20in\x20each\x20of\x20the\x20finite\x20buckets.\x20\ + And\x20`bucket_counts[N]\x20is\x20the\x20number\n\x20of\x20samples\x20in\ + \x20the\x20overflow\x20bucket.\x20See\x20the\x20comments\x20of\x20`bucke\ + t_option`\n\x20below\x20for\x20more\x20details.\n\n\x20Any\x20suffix\x20\ + of\x20trailing\x20zeros\x20may\x20be\x20omitted.\n\n\x0c\n\x05\x04\0\x02\ + \x05\x04\x12\x03}\x02\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03}\x0b\x10\n\ + \x0c\n\x05\x04\0\x02\x05\x01\x12\x03}\x11\x1e\n\x0c\n\x05\x04\0\x02\x05\ + \x03\x12\x03}!\"\n\xf2\x08\n\x04\x04\0\x08\0\x12\x06\x96\x01\x02\x9f\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\x20\ + that\x20isn't\x20already\x20provided\x20by\x20`count`).\n\n\x20The\x20fi\ + rst\x20bucket\x20is\x20the\x20underflow\x20bucket\x20which\x20has\x20a\ + \x20lower\x20bound\n\x20of\x20-inf.\x20The\x20last\x20bucket\x20is\x20th\ + e\x20overflow\x20bucket\x20which\x20has\x20an\n\x20upper\x20bound\x20of\ + \x20+inf.\x20All\x20other\x20buckets\x20(if\x20any)\x20are\x20called\x20\ + \"finite\"\n\x20buckets\x20because\x20they\x20have\x20finite\x20lower\ + \x20and\x20upper\x20bounds.\x20As\x20described\n\x20below,\x20there\x20a\ + re\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\x20growing\x20widths.\n\x20\x20\x20\ + (3)\x20Buckets\x20with\x20arbitrary\x20user-provided\x20widths.\n\n\x20I\ + n\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\x20bound\x20of\x20the\x20underflow\x20bucket\x20is\x20e\ + qual\x20to\x20the\n\x20lower\x20bound\x20of\x20the\x20smallest\x20finite\ + \x20bucket;\x20the\x20lower\x20bound\x20of\x20the\n\x20overflow\x20bucke\ + t\x20is\x20equal\x20to\x20the\x20upper\x20bound\x20of\x20the\x20largest\ + \x20finite\n\x20bucket.\n\n\r\n\x05\x04\0\x08\0\x01\x12\x04\x96\x01\x08\ + \x15\n,\n\x04\x04\0\x02\x06\x12\x04\x98\x01\x04%\x1a\x1e\x20Buckets\x20w\ + ith\x20constant\x20width.\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\x98\x01\ + \x04\x11\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\x98\x01\x12\x20\n\r\n\x05\ + \x04\0\x02\x06\x03\x12\x04\x98\x01#$\n9\n\x04\x04\0\x02\x07\x12\x04\x9b\ + \x01\x04/\x1a+\x20Buckets\x20with\x20exponentially\x20growing\x20width.\ + \n\n\r\n\x05\x04\0\x02\x07\x06\x12\x04\x9b\x01\x04\x16\n\r\n\x05\x04\0\ + \x02\x07\x01\x12\x04\x9b\x01\x17*\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\ + \x9b\x01-.\n;\n\x04\x04\0\x02\x08\x12\x04\x9e\x01\x04)\x1a-\x20Buckets\ + \x20with\x20arbitrary\x20user-provided\x20width.\n\n\r\n\x05\x04\0\x02\ + \x08\x06\x12\x04\x9e\x01\x04\x13\n\r\n\x05\x04\0\x02\x08\x01\x12\x04\x9e\ + \x01\x14$\n\r\n\x05\x04\0\x02\x08\x03\x12\x04\x9e\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/http_request.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/http_request.rs new file mode 100644 index 0000000000..cef4cbb91c --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/http_request.rs @@ -0,0 +1,879 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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\x01ZJgoogle\ + .golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol\xaa\ + \x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\Service\ + Control\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xbd\x1c\n\x06\x12\ + \x04\x0e\0\\\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyr\ + ight\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\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\r\n\x05\x04\0\x02\0\x04\ + \x12\x04!\x02\x1f\x15\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\x20tha\ + t\x20was\x20requested.\n\x20Example:\x20`\"http://example.com/some/info?\ + color=red\"`.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04&\x02!\x1c\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\x20the\x20request\x20body.\n\n\r\n\x05\x04\0\x02\x02\ + \x04\x12\x04*\x02&\x19\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\x20T\ + he\x20response\x20code\x20indicating\x20the\x20status\x20of\x20the\x20re\ + sponse.\n\x20Examples:\x20200,\x20404.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\ + \x04.\x02*\x19\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\r\n\x05\ + \x04\0\x02\x04\x04\x12\x042\x02.\x13\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\x20cl\ + ient.\x20Example:\n\x20`\"Mozilla/4.0\x20(compatible;\x20MSIE\x206.0;\ + \x20Windows\x2098;\x20Q312461;\x20.NET\n\x20CLR\x201.0.3705)\"`.\n\n\r\n\ + \x05\x04\0\x02\x05\x04\x12\x047\x022\x1a\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\x20\ + IPv6)\x20of\x20the\x20client\x20that\x20issued\x20the\x20HTTP\n\x20reque\ + st.\x20Examples:\x20`\"192.168.1.1\"`,\x20`\"FE80::0202:B3FF:FE1E:8329\"\ + `.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04;\x027\x18\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\ + \x20the\x20origin\x20server\x20that\x20the\x20request\x20was\n\x20sent\ + \x20to.\n\n\r\n\x05\x04\0\x02\x07\x04\x12\x04?\x02;\x17\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\x20request,\x20as\x20defined\x20in\n\x20[HTTP/1.1\x20Header\x20F\ + ield\n\x20Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14\ + .html).\n\n\r\n\x05\x04\0\x02\x08\x04\x12\x04D\x02?\x18\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\x20request\x20was\ + \n\x20received\x20until\x20the\x20response\x20was\x20sent.\n\n\r\n\x05\ + \x04\0\x02\t\x04\x12\x04H\x02D\x15\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.\x20Whet\ + her\x20or\x20not\x20a\x20cache\x20lookup\x20was\x20attempted.\n\n\r\n\ + \x05\x04\0\x02\n\x04\x12\x04K\x02H(\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\x1a\ + O\x20Whether\x20or\x20not\x20an\x20entity\x20was\x20served\x20from\x20ca\ + che\n\x20(with\x20or\x20without\x20validation).\n\n\r\n\x05\x04\0\x02\ + \x0b\x04\x12\x04O\x02K\x19\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\x20response\x20was\x20valid\ + ated\x20with\x20the\x20origin\x20server\x20before\n\x20being\x20served\ + \x20from\x20cache.\x20This\x20field\x20is\x20only\x20meaningful\x20if\ + \x20`cache_hit`\x20is\n\x20True.\n\n\r\n\x05\x04\0\x02\x0c\x04\x12\x04T\ + \x02O\x15\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\x20inserted\x20into\x20cache.\x20Set\x20only\x20wh\ + en\x20a\n\x20cache\x20fill\x20was\x20attempted.\n\n\r\n\x05\x04\0\x02\r\ + \x04\x12\x04X\x02T/\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\x20Protocol\ + \x20used\x20for\x20the\x20request.\x20Examples:\x20\"HTTP/1.1\",\x20\"HT\ + TP/2\",\x20\"websocket\"\n\n\r\n\x05\x04\0\x02\x0e\x04\x12\x04[\x02X\x1e\ + \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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs new file mode 100644 index 0000000000..0bf40f618c --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs @@ -0,0 +1,1491 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/log_entry.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct LogEntry { + // message fields + 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, + pub insert_id: ::std::string::String, + 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, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a LogEntry { + fn default() -> &'a LogEntry { + ::default_instance() + } +} + +#[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 { + 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(), + } + } + 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, + _ => 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)) + } + + // 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 { + } else { + self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(::protobuf::well_known_types::Any::new())); + } + match self.payload { + ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_proto_payload(&mut self) -> ::protobuf::well_known_types::Any { + if self.has_proto_payload() { + match self.payload.take() { + ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(v)) => v, + _ => panic!(), + } + } else { + ::protobuf::well_known_types::Any::new() + } + } + + // string text_payload = 3; + + + pub fn get_text_payload(&self) -> &str { + match self.payload { + ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(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, + _ => 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)) + } + + // 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 { + } else { + self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(::std::string::String::new())); + } + match self.payload { + ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // .google.protobuf.Struct struct_payload = 6; + + + pub fn get_struct_payload(&self) -> &::protobuf::well_known_types::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(), + } + } + 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, + _ => 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)) + } + + // 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 { + } else { + self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(::protobuf::well_known_types::Struct::new())); + } + match self.payload { + ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_struct_payload(&mut self) -> ::protobuf::well_known_types::Struct { + if self.has_struct_payload() { + match self.payload.take() { + ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 12 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.severity, 12, &mut self.unknown_fields)? + }, + 14 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.http_request)?; + }, + 15 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.trace)?; + }, + 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)); + } + self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(is.read_message()?)); + }, + 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()?)); + }, + 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)?; + }, + 17 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_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.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() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.trace.is_empty() { + my_size += ::protobuf::rt::string_size(15, &self.trace); + } + 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; + } + if let ::std::option::Option::Some(ref v) = self.payload { + match v { + &LogEntry_oneof_payload::proto_payload(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &LogEntry_oneof_payload::text_payload(ref v) => { + my_size += ::protobuf::rt::string_size(3, &v); + }, + &LogEntry_oneof_payload::struct_payload(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(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 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.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)?; + } + 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)?; + }, + &LogEntry_oneof_payload::text_payload(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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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.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) + } +} + +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) + } +} + +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 ::std::fmt::Debug for LogEntryOperation { + 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 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; + + + 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; + } + + // 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 + } + + // 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())?; + }, + }; + } + ::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)?; + } + 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\x01ZJgoogle.golang.org/genproto/g\ + oogleapis/api/servicecontrol/v1;servicecontrol\xaa\x02\x1eGoogle.Cloud.S\ + erviceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Go\ + ogle::Cloud::ServiceControl::V1J\xdc&\n\x06\x12\x04\x0e\0}\x01\n\xbc\x04\ + \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\r\n\x05\x04\0\x02\0\x04\x12\x04$\x02!\x12\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,\x20defaul\ + ts\x20to\x20operation\x20start\x20time.\n\n\r\n\x05\x04\0\x02\x01\x04\ + \x12\x04(\x02$\x13\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\x20\ + of\x20the\x20log\x20entry.\x20The\x20default\x20value\x20is\n\x20`LogSev\ + erity.DEFAULT`.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04,\x02(+\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,\x20if\x20ap\ + plicable.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x040\x02,0\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\x20associated\x20with\x20the\x20log\x20entry,\x20\ + if\x20any.\n\x20If\x20this\x20field\x20contains\x20a\x20relative\x20reso\ + urce\x20name,\x20you\x20can\x20assume\x20the\x20name\x20is\n\x20relative\ + \x20to\x20`//tracing.googleapis.com`.\x20Example:\n\x20`projects/my-proj\ + ectid/traces/06796866738c859f2f19b7cfb3214824`\n\n\r\n\x05\x04\0\x02\x04\ + \x04\x12\x046\x020\x20\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\x20f\ + or\x20deduplication.\x20If\x20omitted,\n\x20the\x20implementation\x20wil\ + l\x20generate\x20one\x20based\x20on\x20operation_id.\n\n\r\n\x05\x04\0\ + \x02\x05\x04\x12\x04:\x026\x14\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\x20log\x20en\ + try.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04>\x02:\x17\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\x20c\ + an\x20be\x20one\x20of\x20multiple\x20types.\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\x20payload,\x20represented\x20as\x20a\ + \x20protocol\x20buffer\x20that\x20is\n\x20expressed\x20as\x20a\x20JSON\ + \x20object.\x20The\x20only\x20accepted\x20type\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,\x20represented\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\x20st\ + ructure\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\x20about\x20an\x20oper\ + ation\x20associated\x20with\x20the\x20log\x20entry,\x20if\n\x20applicabl\ + e.\n\n\r\n\x05\x04\0\x02\n\x04\x12\x04Q\x02M\x03\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.\x20Source\x20code\x20location\x20information\x20\ + associated\x20with\x20the\x20log\x20entry,\n\x20if\x20any.\n\n\r\n\x05\ + \x04\0\x02\x0b\x04\x12\x04U\x02Q#\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\r\n\x05\x04\x01\x02\0\x04\x12\x04]\x02Z\x1b\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\x20Optional.\x20An\x20arbitrary\ + \x20producer\x20identifier.\x20The\x20combination\x20of\n\x20`id`\x20and\ + \x20`producer`\x20must\x20be\x20globally\x20unique.\x20\x20Examples\x20f\ + or\x20`producer`:\n\x20`\"MyDivision.MyBigCompany.com\"`,\x20`\"github.c\ + om/MyProject/MyApplication\"`.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04b\ + \x02]\x10\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\x20lo\ + g\x20entry\x20in\x20the\x20operation.\n\n\r\n\x05\x04\x01\x02\x02\x04\ + \x12\x04e\x02b\x16\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\ + \x20Optional.\x20Set\x20this\x20to\x20True\x20if\x20this\x20is\x20the\ + \x20last\x20log\x20entry\x20in\x20the\x20operation.\n\n\r\n\x05\x04\x01\ + \x02\x03\x04\x12\x04h\x02e\x11\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\x20source\x20code\x20\ + location\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.\x20Depending\x20on\x20the\ + \x20runtime\x20environment,\x20this\n\x20might\x20be\x20a\x20simple\x20n\ + ame\x20or\x20a\x20fully-qualified\x20name.\n\n\r\n\x05\x04\x02\x02\0\x04\ + \x12\x04p\x02m\x20\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\x20indica\ + tes\x20no\x20line\x20number\n\x20available.\n\n\r\n\x05\x04\x02\x02\x01\ + \x04\x12\x04t\x02p\x12\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\ + \x20function\x20or\x20method\x20being\x20invoked,\x20with\n\x20optional\ + \x20context\x20such\x20as\x20the\x20class\x20or\x20package\x20name.\x20T\ + his\x20information\x20may\x20be\n\x20used\x20in\x20contexts\x20such\x20a\ + s\x20the\x20logs\x20viewer,\x20where\x20a\x20file\x20and\x20line\x20numb\ + er\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\r\n\ + \x05\x04\x02\x02\x02\x04\x12\x04|\x02t\x11\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs new file mode 100644 index 0000000000..f8e7f79e39 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs @@ -0,0 +1,904 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/metric_value.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct MetricValue { + // message fields + 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>, + // message oneof groups + pub value: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MetricValue { + fn default() -> &'a MetricValue { + ::default_instance() + } +} + +#[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 { + match self.value { + ::std::option::Option::Some(MetricValue_oneof_value::bool_value(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, + _ => 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)) + } + + // int64 int64_value = 5; + + + pub fn get_int64_value(&self) -> i64 { + match self.value { + ::std::option::Option::Some(MetricValue_oneof_value::int64_value(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, + _ => 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)) + } + + // double double_value = 6; + + + pub fn get_double_value(&self) -> f64 { + match self.value { + ::std::option::Option::Some(MetricValue_oneof_value::double_value(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, + _ => 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)) + } + + // string string_value = 7; + + + pub fn get_string_value(&self) -> &str { + match self.value { + ::std::option::Option::Some(MetricValue_oneof_value::string_value(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, + _ => 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)) + } + + // 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 { + } else { + self.value = ::std::option::Option::Some(MetricValue_oneof_value::string_value(::std::string::String::new())); + } + match self.value { + ::std::option::Option::Some(MetricValue_oneof_value::string_value(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // .google.api.servicecontrol.v1.Distribution distribution_value = 8; + + + pub fn get_distribution_value(&self) -> &super::distribution::Distribution { + match self.value { + ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(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, + _ => 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)) + } + + // 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 { + } else { + self.value = ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(super::distribution::Distribution::new())); + } + match self.value { + ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + super::distribution::Distribution::new() + } + } +} + +impl ::protobuf::Message for 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)?; + }, + 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)); + } + self.value = ::std::option::Option::Some(MetricValue_oneof_value::bool_value(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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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); + 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 ::std::option::Option::Some(ref v) = self.value { + match v { + &MetricValue_oneof_value::bool_value(v) => { + my_size += 2; + }, + &MetricValue_oneof_value::int64_value(v) => { + my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint); + }, + &MetricValue_oneof_value::double_value(v) => { + my_size += 9; + }, + &MetricValue_oneof_value::string_value(ref v) => { + my_size += ::protobuf::rt::string_size(7, &v); + }, + &MetricValue_oneof_value::distribution_value(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<()> { + ::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)?; + } + 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 ::std::option::Option::Some(ref v) = self.value { + match v { + &MetricValue_oneof_value::bool_value(v) => { + os.write_bool(4, v)?; + }, + &MetricValue_oneof_value::int64_value(v) => { + os.write_int64(5, v)?; + }, + &MetricValue_oneof_value::double_value(v) => { + os.write_double(6, v)?; + }, + &MetricValue_oneof_value::string_value(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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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(); + self.end_time.clear(); + self.value = ::std::option::Option::None; + self.value = ::std::option::Option::None; + self.value = ::std::option::Option::None; + self.value = ::std::option::Option::None; + self.value = ::std::option::Option::None; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MetricValueSet { + // message fields + pub metric_name: ::std::string::String, + pub metric_values: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MetricValueSet { + fn default() -> &'a MetricValueSet { + ::default_instance() + } +} + +impl MetricValueSet { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_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.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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static MetricValueSet { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MetricValueSet::new) + } +} + +impl ::protobuf::Clear for MetricValueSet { + fn clear(&mut self) { + self.metric_name.clear(); + self.metric_values.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +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\x01ZJgoogle.golang.org/genproto/googleapis/ap\ + i/servicecontrol/v1;servicecontrol\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.S\ + erviceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Go\ + ogle::Cloud::ServiceControl::V1J\x83\x15\n\x06\x12\x04\x0e\0N\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\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\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\0C\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\r\ + \n\x05\x04\0\x02\0\x04\x12\x04$\x02\x1f\x15\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\x20appli\ + es.\x20The\x20time\x20period\x20has\x20different\x20semantics\x20for\x20\ + different\x20metric\n\x20types\x20(cumulative,\x20delta,\x20and\x20gauge\ + ).\x20See\x20the\x20metric\x20definition\n\x20documentation\x20in\x20the\ + \x20service\x20configuration\x20for\x20details.\n\n\r\n\x05\x04\0\x02\ + \x01\x04\x12\x04*\x02$!\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\x20o\ + f\x20the\x20time\x20period\x20over\x20which\x20this\x20metric\x20value's\ + \x20measurement\n\x20applies.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04.\x02\ + *+\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\x043\x02B\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\x20rejecte\ + d.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x033\x08\r\n\x1f\n\x04\x04\0\x02\ + \x03\x12\x035\x04\x18\x1a\x12\x20A\x20boolean\x20value.\n\n\x0c\n\x05\ + \x04\0\x02\x03\x05\x12\x035\x04\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\ + \x035\t\x13\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x035\x16\x17\n-\n\x04\x04\ + \0\x02\x04\x12\x038\x04\x1a\x1a\x20\x20A\x20signed\x2064-bit\x20integer\ + \x20value.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x038\x04\t\n\x0c\n\x05\ + \x04\0\x02\x04\x01\x12\x038\n\x15\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x038\ + \x18\x19\n7\n\x04\x04\0\x02\x05\x12\x03;\x04\x1c\x1a*\x20A\x20double\x20\ + precision\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\x03A\x04(\x1a\x17\x20A\x20distribution\x20value.\n\n\x0c\n\x05\ + \x04\0\x02\x07\x06\x12\x03A\x04\x10\n\x0c\n\x05\x04\0\x02\x07\x01\x12\ + \x03A\x11#\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03A&'\n\xaf\x01\n\x02\x04\ + \x01\x12\x04H\0N\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\x03H\x08\x16\nD\n\x04\x04\x01\x02\0\x12\x03J\ + \x02\x19\x1a7\x20The\x20metric\x20name\x20defined\x20in\x20the\x20servic\ + e\x20configuration.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04J\x02H\x18\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\x14\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03J\x17\x18\n)\n\ + \x04\x04\x01\x02\x01\x12\x03M\x02)\x1a\x1c\x20The\x20values\x20in\x20thi\ + s\x20metric.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03M\x02\n\n\x0c\n\ + \x05\x04\x01\x02\x01\x06\x12\x03M\x0b\x16\n\x0c\n\x05\x04\x01\x02\x01\ + \x01\x12\x03M\x17$\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M'(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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/operation.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/operation.rs new file mode 100644 index 0000000000..e818366d88 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/operation.rs @@ -0,0 +1,813 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/operation.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Operation { + // message fields + pub operation_id: ::std::string::String, + pub operation_name: ::std::string::String, + 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>, + 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>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Operation { + fn default() -> &'a Operation { + ::default_instance() + } +} + +impl Operation { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_name)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_id)?; + }, + 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 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + }, + 7 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_value_sets)?; + }, + 8 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.log_entries)?; + }, + 11 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.importance, 11, &mut self.unknown_fields)? + }, + 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())?; + }, + }; + } + ::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 !self.operation_name.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.operation_name); + } + 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() { + 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::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(6, &self.labels); + for value in &self.metric_value_sets { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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; + }; + if self.importance != Operation_Importance::LOW { + my_size += ::protobuf::rt::enum_size(11, self.importance); + } + 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 + } + + 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 !self.operation_name.is_empty() { + os.write_string(2, &self.operation_name)?; + } + 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(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)?; + } + ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(6, &self.labels, os)?; + 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)?; + }; + 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)?; + }; + if self.importance != Operation_Importance::LOW { + os.write_enum(11, ::protobuf::ProtobufEnum::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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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(); + self.consumer_id.clear(); + self.start_time.clear(); + self.end_time.clear(); + self.labels.clear(); + self.metric_value_sets.clear(); + self.log_entries.clear(); + self.importance = Operation_Importance::LOW; + self.extensions.clear(); + self.unknown_fields.clear(); + } +} + +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::reflect::ProtobufValue for Operation { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum Operation_Importance { + LOW = 0, + HIGH = 1, +} + +impl ::protobuf::ProtobufEnum for Operation_Importance { + fn value(&self) -> i32 { + *self as i32 + } + + 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 + } + } + + fn values() -> &'static [Self] { + static values: &'static [Operation_Importance] = &[ + Operation_Importance::LOW, + Operation_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 ::std::marker::Copy for Operation_Importance { +} + +impl ::std::default::Default for Operation_Importance { + fn default() -> Self { + Operation_Importance::LOW + } +} + +impl ::protobuf::reflect::ProtobufValue for Operation_Importance { + 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/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\ + \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\x01ZJgoogle.golang.org/genproto/googleapis/api/servi\ + cecontrol/v1;servicecontrol\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceC\ + ontrol.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::C\ + loud::ServiceControl::V1J\x8b&\n\x06\x12\x04\x0e\0x\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\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!\0x\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\x90\x01\n\x06\x04\0\x04\0\x02\0\x12\x03&\x04\x0c\x1a\ + \x80\x01\x20The\x20API\x20implementation\x20may\x20cache\x20and\x20aggre\ + gate\x20the\x20data.\n\x20The\x20data\x20may\x20be\x20lost\x20when\x20ra\ + re\x20and\x20unexpected\x20system\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\x20implementation\x20doesn't\x20cache\x20and\ + \x20aggregate\x20the\x20data.\n\x20If\x20the\x20method\x20returns\x20suc\ + cessfully,\x20it's\x20guaranteed\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\x037\x02\x1a\x1a\xcf\x03\x20Ide\ + ntity\x20of\x20the\x20operation.\x20This\x20must\x20be\x20unique\x20with\ + in\x20the\x20scope\x20of\x20the\n\x20service\x20that\x20generated\x20the\ + \x20operation.\x20If\x20the\x20service\x20calls\n\x20Check()\x20and\x20R\ + eport()\x20on\x20the\x20same\x20operation,\x20the\x20two\x20calls\x20sho\ + uld\x20carry\n\x20the\x20same\x20id.\n\n\x20UUID\x20version\x204\x20is\ + \x20recommended,\x20though\x20not\x20required.\n\x20In\x20scenarios\x20w\ + here\x20an\x20operation\x20is\x20computed\x20from\x20existing\x20informa\ + tion\n\x20and\x20an\x20idempotent\x20id\x20is\x20desirable\x20for\x20ded\ + uplication\x20purpose,\x20UUID\x20version\x205\n\x20is\x20recommended.\ + \x20See\x20RFC\x204122\x20for\x20details.\n\n\r\n\x05\x04\0\x02\0\x04\ + \x12\x047\x02,\x03\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\x20qualif\ + ied\x20name\x20of\x20the\x20operation.\x20Reserved\x20for\x20future\x20u\ + se.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04:\x027\x1a\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\x20cons\ + umer\x20who\x20is\x20using\x20the\x20service.\n\x20This\x20field\x20shou\ + ld\x20be\x20filled\x20in\x20for\x20the\x20operations\x20initiated\x20by\ + \x20a\n\x20consumer,\x20but\x20not\x20for\x20service-initiated\x20operat\ + ions\x20that\x20are\n\x20not\x20related\x20to\x20a\x20specific\x20consum\ + er.\n\n\x20-\x20This\x20can\x20be\x20in\x20one\x20of\x20the\x20following\ + \x20formats:\n\x20\x20\x20\x20\x20-\x20project:PROJECT_ID,\n\x20\x20\x20\ + \x20\x20-\x20project`_`number:PROJECT_NUMBER,\n\x20\x20\x20\x20\x20-\x20\ + projects/PROJECT_ID\x20or\x20PROJECT_NUMBER,\n\x20\x20\x20\x20\x20-\x20f\ + olders/FOLDER_NUMBER,\n\x20\x20\x20\x20\x20-\x20organizations/ORGANIZATI\ + ON_NUMBER,\n\x20\x20\x20\x20\x20-\x20api`_`key:API_KEY.\n\n\r\n\x05\x04\ + \0\x02\x02\x04\x12\x04H\x02:\x1c\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\r\n\x05\ + \x04\0\x02\x03\x04\x12\x04K\x02H\x19\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\xa2\x02\n\x04\x04\0\x02\x04\x12\x03P\x02\ + )\x1a\x94\x02\x20End\x20time\x20of\x20the\x20operation.\n\x20Required\ + \x20when\x20the\x20operation\x20is\x20used\x20in\x20[ServiceController.R\ + eport][google.api.servicecontrol.v1.ServiceController.Report],\n\x20but\ + \x20optional\x20when\x20the\x20operation\x20is\x20used\x20in\x20[Service\ + Controller.Check][google.api.servicecontrol.v1.ServiceController.Check].\ + \n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04P\x02K+\n\x0c\n\x05\x04\0\x02\x04\ + \x06\x12\x03P\x02\x1b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03P\x1c$\n\x0c\ + \n\x05\x04\0\x02\x04\x03\x12\x03P'(\n\xd0\x06\n\x04\x04\0\x02\x05\x12\ + \x03b\x02!\x1a\xc2\x06\x20Labels\x20describing\x20the\x20operation.\x20O\ + nly\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\x20\ + of\x20metric\x20values.\x20When\x20specified,\x20labels\x20defined\x20in\ + \x20the\n\x20\x20\x20metric\x20value\x20override\x20these\x20default.\n\ + \x20-\x20The\x20following\x20labels\x20defined\x20by\x20Google\x20Cloud\ + \x20Platform:\n\x20\x20\x20\x20\x20-\x20`cloud.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`servicecon\ + trol.googleapis.com/user_agent`\x20describing\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`\x20descri\ + bing\x20the\x20service\n\x20\x20\x20\x20\x20\x20\x20\x20used\x20to\x20ha\ + ndle\x20the\x20API\x20request\x20(e.g.\x20ESP),\n\x20\x20\x20\x20\x20-\ + \x20`servicecontrol.googleapis.com/platform`\x20describing\x20the\x20pla\ + tform\n\x20\x20\x20\x20\x20\x20\x20\x20where\x20the\x20API\x20is\x20serv\ + ed,\x20such\x20as\x20App\x20Engine,\x20Compute\x20Engine,\x20or\n\x20\ + \x20\x20\x20\x20\x20\x20\x20Kubernetes\x20Engine.\n\n\r\n\x05\x04\0\x02\ + \x05\x04\x12\x04b\x02P)\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03b\x02\x15\n\ + \x0c\n\x05\x04\0\x02\x05\x01\x12\x03b\x16\x1c\n\x0c\n\x05\x04\0\x02\x05\ + \x03\x12\x03b\x1f\x20\n\x9a\x04\n\x04\x04\0\x02\x06\x12\x03n\x020\x1a\ + \x8c\x04\x20Represents\x20information\x20about\x20this\x20operation.\x20\ + Each\x20MetricValueSet\n\x20corresponds\x20to\x20a\x20metric\x20defined\ + \x20in\x20the\x20service\x20configuration.\n\x20The\x20data\x20type\x20u\ + sed\x20in\x20the\x20MetricValueSet\x20must\x20agree\x20with\n\x20the\x20\ + data\x20type\x20specified\x20in\x20the\x20metric\x20definition.\n\n\x20W\ + ithin\x20a\x20single\x20operation,\x20it\x20is\x20not\x20allowed\x20to\ + \x20have\x20more\x20than\x20one\n\x20MetricValue\x20instances\x20that\ + \x20have\x20the\x20same\x20metric\x20names\x20and\x20identical\n\x20labe\ + l\x20value\x20combinations.\x20If\x20a\x20request\x20has\x20such\x20dupl\ + icated\x20MetricValue\n\x20instances,\x20the\x20entire\x20request\x20is\ + \x20rejected\x20with\n\x20an\x20invalid\x20argument\x20error.\n\n\x0c\n\ + \x05\x04\0\x02\x06\x04\x12\x03n\x02\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\ + \x03n\x0b\x19\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03n\x1a+\n\x0c\n\x05\ + \x04\0\x02\x06\x03\x12\x03n./\n3\n\x04\x04\0\x02\x07\x12\x03q\x02$\x1a&\ + \x20Represents\x20information\x20to\x20be\x20logged.\n\n\x0c\n\x05\x04\0\ + \x02\x07\x04\x12\x03q\x02\n\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03q\x0b\ + \x13\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03q\x14\x1f\n\x0c\n\x05\x04\0\ + \x02\x07\x03\x12\x03q\"#\n9\n\x04\x04\0\x02\x08\x12\x03t\x02\x1d\x1a,\ + \x20DO\x20NOT\x20USE.\x20This\x20is\x20an\x20experimental\x20field.\n\n\ + \r\n\x05\x04\0\x02\x08\x04\x12\x04t\x02q$\n\x0c\n\x05\x04\0\x02\x08\x06\ + \x12\x03t\x02\x0c\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03t\r\x17\n\x0c\n\ + \x05\x04\0\x02\x08\x03\x12\x03t\x1a\x1c\n\x1d\n\x04\x04\0\x02\t\x12\x03w\ + \x02/\x1a\x10\x20Unimplemented.\n\n\x0c\n\x05\x04\0\x02\t\x04\x12\x03w\ + \x02\n\n\x0c\n\x05\x04\0\x02\t\x06\x12\x03w\x0b\x1e\n\x0c\n\x05\x04\0\ + \x02\t\x01\x12\x03w\x1f)\n\x0c\n\x05\x04\0\x02\t\x03\x12\x03w,.b\x06prot\ + o3\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs new file mode 100644 index 0000000000..0458b7cd73 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs @@ -0,0 +1,1614 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/quota_controller.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct AllocateQuotaRequest { + // message fields + pub service_name: ::std::string::String, + pub allocate_operation: ::protobuf::SingularPtrField, + pub service_config_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a AllocateQuotaRequest { + fn default() -> &'a AllocateQuotaRequest { + ::default_instance() + } +} + +impl AllocateQuotaRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.allocate_operation)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_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.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_name); + } + if let Some(ref v) = self.allocate_operation.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 + } + + 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)?; + } + 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 !self.service_config_id.is_empty() { + os.write_string(4, &self.service_config_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() -> 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 default_instance() -> &'static AllocateQuotaRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(AllocateQuotaRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct QuotaOperation { + // message fields + pub operation_id: ::std::string::String, + pub method_name: ::std::string::String, + pub consumer_id: ::std::string::String, + pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + pub quota_metrics: ::protobuf::RepeatedField, + pub quota_mode: QuotaOperation_QuotaMode, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a QuotaOperation { + fn default() -> &'a QuotaOperation { + ::default_instance() + } +} + +impl QuotaOperation { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.method_name)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_id)?; + }, + 4 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + }, + 5 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.quota_metrics)?; + }, + 6 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.quota_mode, 6, &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.operation_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.operation_id); + } + if !self.method_name.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.method_name); + } + 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 value in &self.quota_metrics { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if self.quota_mode != QuotaOperation_QuotaMode::UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(6, self.quota_mode); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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 !self.method_name.is_empty() { + os.write_string(2, &self.method_name)?; + } + 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 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)?; + }; + if self.quota_mode != QuotaOperation_QuotaMode::UNSPECIFIED { + os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.quota_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 + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static QuotaOperation { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + 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 ::std::fmt::Debug 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) + } +} + +#[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, +} + +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(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 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, + ]; + 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 ::std::marker::Copy for QuotaOperation_QuotaMode { +} + +impl ::std::default::Default for QuotaOperation_QuotaMode { + fn default() -> Self { + QuotaOperation_QuotaMode::UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for QuotaOperation_QuotaMode { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct AllocateQuotaResponse { + // message fields + pub operation_id: ::std::string::String, + pub allocate_errors: ::protobuf::RepeatedField, + pub quota_metrics: ::protobuf::RepeatedField, + pub service_config_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a AllocateQuotaResponse { + fn default() -> &'a AllocateQuotaResponse { + ::default_instance() + } +} + +impl AllocateQuotaResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.allocate_errors)?; + }, + 3 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.quota_metrics)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_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.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; + }; + for value in &self.quota_metrics { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 + } + + 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)?; + } + 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)?; + }; + 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)?; + }; + if !self.service_config_id.is_empty() { + os.write_string(4, &self.service_config_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() -> 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 default_instance() -> &'static AllocateQuotaResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(AllocateQuotaResponse::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct QuotaError { + // message fields + pub code: QuotaError_Code, + 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 QuotaError { + fn default() -> &'a QuotaError { + ::default_instance() + } +} + +impl QuotaError { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for QuotaError { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &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.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())?; + }, + }; + } + ::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 != QuotaError_Code::UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(1, self.code); + } + 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.code != QuotaError_Code::UNSPECIFIED { + os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.code))?; + } + 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.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "QuotaError", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static QuotaError { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(QuotaError::new) + } +} + +impl ::protobuf::Clear for QuotaError { + fn clear(&mut self) { + self.code = QuotaError_Code::UNSPECIFIED; + self.subject.clear(); + self.description.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[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, +} + +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(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 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, + ]; + 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 ::std::marker::Copy for QuotaError_Code { +} + +impl ::std::default::Default for QuotaError_Code { + fn default() -> Self { + QuotaError_Code::UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for QuotaError_Code { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +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/api/client.proto\"\xc2\ + \x01\n\x14AllocateQuotaRequest\x12!\n\x0cservice_name\x18\x01\x20\x01(\t\ + R\x0bserviceName\x12[\n\x12allocate_operation\x18\x02\x20\x01(\x0b2,.goo\ + gle.api.servicecontrol.v1.QuotaOperationR\x11allocateOperation\x12*\n\ + \x11service_config_id\x18\x04\x20\x01(\tR\x0fserviceConfigId\"\x98\x04\n\ + \x0eQuotaOperation\x12!\n\x0coperation_id\x18\x01\x20\x01(\tR\x0boperati\ + onId\x12\x1f\n\x0bmethod_name\x18\x02\x20\x01(\tR\nmethodName\x12\x1f\n\ + \x0bconsumer_id\x18\x03\x20\x01(\tR\nconsumerId\x12P\n\x06labels\x18\x04\ + \x20\x03(\x0b28.google.api.servicecontrol.v1.QuotaOperation.LabelsEntryR\ + \x06labels\x12Q\n\rquota_metrics\x18\x05\x20\x03(\x0b2,.google.api.servi\ + cecontrol.v1.MetricValueSetR\x0cquotaMetrics\x12U\n\nquota_mode\x18\x06\ + \x20\x01(\x0e26.google.api.servicecontrol.v1.QuotaOperation.QuotaModeR\t\ + quotaMode\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03\ + key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"j\n\tQuot\ + aMode\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_O\ + NLY\x10\x04\x12\x0f\n\x0bADJUST_ONLY\x10\x05\"\x8c\x02\n\x15AllocateQuot\ + aResponse\x12!\n\x0coperation_id\x18\x01\x20\x01(\tR\x0boperationId\x12Q\ + \n\x0fallocate_errors\x18\x02\x20\x03(\x0b2(.google.api.servicecontrol.v\ + 1.QuotaErrorR\x0eallocateErrors\x12Q\n\rquota_metrics\x18\x03\x20\x03(\ + \x0b2,.google.api.servicecontrol.v1.MetricValueSetR\x0cquotaMetrics\x12*\ + \n\x11service_config_id\x18\x04\x20\x01(\tR\x0fserviceConfigId\"\x94\x02\ + \n\nQuotaError\x12A\n\x04code\x18\x01\x20\x01(\x0e2-.google.api.servicec\ + ontrol.v1.QuotaError.CodeR\x04code\x12\x18\n\x07subject\x18\x02\x20\x01(\ + \tR\x07subject\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescripti\ + on\"\x86\x01\n\x04Code\x12\x0f\n\x0bUNSPECIFIED\x10\0\x12\x16\n\x12RESOU\ + RCE_EXHAUSTED\x10\x08\x12\x16\n\x12BILLING_NOT_ACTIVE\x10k\x12\x13\n\x0f\ + PROJECT_DELETED\x10l\x12\x13\n\x0fAPI_KEY_INVALID\x10i\x12\x13\n\x0fAPI_\ + KEY_EXPIRED\x10p2\xc5\x02\n\x0fQuotaController\x12\xae\x01\n\rAllocateQu\ + ota\x122.google.api.servicecontrol.v1.AllocateQuotaRequest\x1a3.google.a\ + pi.servicecontrol.v1.AllocateQuotaResponse\"4\x82\xd3\xe4\x93\x02.\")/v1\ + /services/{service_name}:allocateQuota:\x01*\x1a\x80\x01\xcaA\x1dservice\ + control.googleapis.com\xd2A]https://www.googleapis.com/auth/cloud-platfo\ + rm,https://www.googleapis.com/auth/servicecontrolB\xef\x01\n\x20com.goog\ + le.api.servicecontrol.v1B\x14QuotaControllerProtoP\x01ZJgoogle.golang.or\ + g/genproto/googleapis/api/servicecontrol/v1;servicecontrol\xf8\x01\x01\ + \xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\Ser\ + viceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xe1J\n\x07\ + \x12\x05\x0e\0\xee\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ + \x04\x20Copyright\x202020\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\t\n\x02\x03\x01\x12\x03\ + \x13\09\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\0;\ + \n\t\n\x02\x08%\x12\x03\x17\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\05\n\t\n\x02\x08\x08\x12\ + \x03\x1a\05\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\x08\n\ + \x01\x08\x12\x03\x1d\0:\n\t\n\x02\x08-\x12\x03\x1d\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[managed\n\x20service](ht\ + tps://cloud.google.com/service-management/reference/rpc/google.api/servi\ + cemanagement.v1#google.api.servicemanagement.v1.ManagedService).\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\x044\x029\x03\x1a\x93\x04\x20Attempts\x20to\x20allocate\x20qu\ + ota\x20for\x20the\x20specified\x20consumer.\x20It\x20should\x20be\x20cal\ + led\n\x20before\x20the\x20operation\x20is\x20executed.\n\n\x20This\x20me\ + thod\x20requires\x20the\x20`servicemanagement.services.quota`\n\x20permi\ + ssion\x20on\x20the\x20specified\x20service.\x20For\x20more\x20informatio\ + n,\x20see\n\x20[Cloud\x20IAM](https://cloud.google.com/iam).\n\n\x20**NO\ + TE:**\x20The\x20client\x20**must**\x20fail-open\x20on\x20server\x20error\ + s\x20`INTERNAL`,\n\x20`UNKNOWN`,\x20`DEADLINE_EXCEEDED`,\x20and\x20`UNAV\ + AILABLE`.\x20To\x20ensure\x20system\n\x20reliability,\x20the\x20server\ + \x20may\x20inject\x20these\x20errors\x20to\x20prohibit\x20any\x20hard\n\ + \x20dependency\x20on\x20the\x20quota\x20functionality.\n\n\x0c\n\x05\x06\ + \0\x02\0\x01\x12\x034\x06\x13\n\x0c\n\x05\x06\0\x02\0\x02\x12\x034\x14(\ + \n\x0c\n\x05\x06\0\x02\0\x03\x12\x0343H\n\r\n\x05\x06\0\x02\0\x04\x12\ + \x045\x048\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x045\x048\x06\ + \n;\n\x02\x04\0\x12\x04=\0K\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\x03B\x02\x1a\x1a\xbe\x01\x20Name\x20of\ + \x20the\x20service\x20as\x20specified\x20in\x20the\x20service\x20configu\ + ration.\x20For\x20example,\n\x20`\"pubsub.googleapis.com\"`.\n\n\x20See\ + \x20[google.api.Service][google.api.Service]\x20for\x20the\x20definition\ + \x20of\x20a\x20service\x20name.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04B\x02\ + =\x1e\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\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03B\x18\x19\n=\n\ + \x04\x04\0\x02\x01\x12\x03E\x02(\x1a0\x20Operation\x20that\x20describes\ + \x20the\x20quota\x20allocation.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04E\ + \x02B\x1a\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03E\x02\x10\n\x0c\n\x05\x04\ + \0\x02\x01\x01\x12\x03E\x11#\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03E&'\n\ + \xba\x01\n\x04\x04\0\x02\x02\x12\x03J\x02\x1f\x1a\xac\x01\x20Specifies\ + \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\r\n\x05\x04\0\x02\x02\x04\x12\x04J\ + \x02E(\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03J\x02\x08\n\x0c\n\x05\x04\0\ + \x02\x02\x01\x12\x03J\t\x1a\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03J\x1d\ + \x1e\nB\n\x02\x04\x01\x12\x05N\0\xac\x01\x01\x1a5\x20Represents\x20infor\ + mation\x20regarding\x20a\x20quota\x20operation.\n\n\n\n\x03\x04\x01\x01\ + \x12\x03N\x08\x16\n&\n\x04\x04\x01\x04\0\x12\x04P\x02x\x03\x1a\x18\x20Su\ + pported\x20quota\x20modes.\n\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x03P\x07\ + \x10\nB\n\x06\x04\x01\x04\0\x02\0\x12\x03R\x04\x14\x1a3\x20Guard\x20agai\ + nst\x20implicit\x20default.\x20Must\x20not\x20be\x20used.\n\n\x0e\n\x07\ + \x04\x01\x04\0\x02\0\x01\x12\x03R\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\ + \0\x02\x12\x03R\x12\x13\n\xfa\x02\n\x06\x04\x01\x04\0\x02\x01\x12\x03Z\ + \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\x20\ + no\x20quota\x20will\x20be\x20allocated.\n\x20If\x20multiple\x20quotas\ + \x20are\x20part\x20of\x20the\x20request,\x20and\x20one\x20fails,\x20none\ + \x20of\x20the\n\x20quotas\x20are\x20allocated\x20or\x20released.\n\n\x0e\ + \n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03Z\x04\n\n\x0e\n\x07\x04\x01\x04\ + \0\x02\x01\x02\x12\x03Z\r\x0e\n\xf4\x03\n\x06\x04\x01\x04\0\x02\x02\x12\ + \x03d\x04\x14\x1a\xe4\x03\x20The\x20operation\x20allocates\x20quota\x20f\ + or\x20the\x20amount\x20specified\x20in\x20the\x20service\n\x20configurat\ + ion\x20or\x20specified\x20using\x20the\x20quota\x20metrics.\x20If\x20the\ + \x20amount\x20is\n\x20higher\x20than\x20the\x20available\x20quota,\x20re\ + quest\x20does\x20not\x20fail\x20but\x20all\x20available\n\x20quota\x20wi\ + ll\x20be\x20allocated.\n\x20For\x20rate\x20quota,\x20BEST_EFFORT\x20will\ + \x20continue\x20to\x20deduct\x20from\x20other\x20groups\n\x20even\x20if\ + \x20one\x20does\x20not\x20have\x20enough\x20quota.\x20For\x20allocation,\ + \x20it\x20will\x20find\x20the\n\x20minimum\x20available\x20amount\x20acr\ + oss\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\x03d\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03d\x12\x13\ + \n\xb7\x01\n\x06\x04\x01\x04\0\x02\x03\x12\x03i\x04\x13\x1a\xa7\x01\x20F\ + or\x20AllocateQuota\x20request,\x20only\x20checks\x20if\x20there\x20is\ + \x20enough\x20quota\n\x20available\x20and\x20does\x20not\x20change\x20th\ + e\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\x03i\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03i\x11\ + \x12\n\xa8\x02\n\x06\x04\x01\x04\0\x02\x04\x12\x03p\x04\x13\x1a\x98\x02\ + \x20Unimplemented.\x20When\x20used\x20in\x20AllocateQuotaRequest,\x20thi\ + s\x20returns\x20the\n\x20effective\x20quota\x20limit(s)\x20in\x20the\x20\ + response,\x20and\x20no\x20quota\x20check\x20will\x20be\n\x20performed.\ + \x20Not\x20supported\x20for\x20other\x20requests,\x20and\x20even\x20for\ + \n\x20AllocateQuotaRequest,\x20this\x20is\x20currently\x20supported\x20o\ + nly\x20for\x20whitelisted\n\x20services.\n\n\x0e\n\x07\x04\x01\x04\0\x02\ + \x04\x01\x12\x03p\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x02\x12\x03p\ + \x11\x12\n\xc0\x02\n\x06\x04\x01\x04\0\x02\x05\x12\x03w\x04\x14\x1a\xb0\ + \x02\x20The\x20operation\x20allocates\x20quota\x20for\x20the\x20amount\ + \x20specified\x20in\x20the\x20service\n\x20configuration\x20or\x20specif\ + ied\x20using\x20the\x20quota\x20metrics.\x20If\x20the\x20requested\n\x20\ + amount\x20is\x20higher\x20than\x20the\x20available\x20quota,\x20request\ + \x20does\x20not\x20fail\x20and\n\x20remaining\x20quota\x20would\x20becom\ + e\x20negative\x20(going\x20over\x20the\x20limit)\n\x20Not\x20supported\ + \x20for\x20Rate\x20Quota.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x01\x12\ + \x03w\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x02\x12\x03w\x12\x13\n\ + \xe9\x03\n\x04\x04\x01\x02\0\x12\x04\x83\x01\x02\x1a\x1a\xda\x03\x20Iden\ + tity\x20of\x20the\x20operation.\x20This\x20is\x20expected\x20to\x20be\ + \x20unique\x20within\x20the\x20scope\n\x20of\x20the\x20service\x20that\ + \x20generated\x20the\x20operation,\x20and\x20guarantees\x20idempotency\ + \x20in\n\x20case\x20of\x20retries.\n\n\x20In\x20order\x20to\x20ensure\ + \x20best\x20performance\x20and\x20latency\x20in\x20the\x20Quota\x20backe\ + nds,\n\x20operation_ids\x20are\x20optimally\x20associated\x20with\x20tim\ + e,\x20so\x20that\x20related\n\x20operations\x20can\x20be\x20accessed\x20\ + fast\x20in\x20storage.\x20For\x20this\x20reason,\x20the\n\x20recommended\ + \x20token\x20for\x20services\x20that\x20intend\x20to\x20operate\x20at\ + \x20a\x20high\x20QPS\x20is\n\x20Unix\x20time\x20in\x20nanos\x20+\x20UUID\ + \n\n\x0e\n\x05\x04\x01\x02\0\x04\x12\x05\x83\x01\x02x\x03\n\r\n\x05\x04\ + \x01\x02\0\x05\x12\x04\x83\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\ + \x04\x83\x01\t\x15\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x83\x01\x18\x19\n\ + \xf9\x03\n\x04\x04\x01\x02\x01\x12\x04\x8f\x01\x02\x19\x1a\xea\x03\x20Fu\ + lly\x20qualified\x20name\x20of\x20the\x20API\x20method\x20for\x20which\ + \x20this\x20quota\x20operation\x20is\n\x20requested.\x20This\x20name\x20\ + is\x20used\x20for\x20matching\x20quota\x20rules\x20or\x20metric\x20rules\ + \x20and\n\x20billing\x20status\x20rules\x20defined\x20in\x20service\x20c\ + onfiguration.\n\n\x20This\x20field\x20should\x20not\x20be\x20set\x20if\ + \x20any\x20of\x20the\x20following\x20is\x20true:\n\x20(1)\x20the\x20quot\ + a\x20operation\x20is\x20performed\x20on\x20non-API\x20resources.\n\x20(2\ + )\x20quota_metrics\x20is\x20set\x20because\x20the\x20caller\x20is\x20doi\ + ng\x20quota\x20override.\n\n\x20Example\x20of\x20an\x20RPC\x20method\x20\ + name:\n\x20\x20\x20\x20\x20google.example.library.v1.LibraryService.Crea\ + teShelf\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\x8f\x01\x02\x83\x01\ + \x1a\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x8f\x01\x02\x08\n\r\n\x05\x04\ + \x01\x02\x01\x01\x12\x04\x8f\x01\t\x14\n\r\n\x05\x04\x01\x02\x01\x03\x12\ + \x04\x8f\x01\x17\x18\n\xdd\x01\n\x04\x04\x01\x02\x02\x12\x04\x97\x01\x02\ + \x19\x1a\xce\x01\x20Identity\x20of\x20the\x20consumer\x20for\x20whom\x20\ + this\x20quota\x20operation\x20is\x20being\x20performed.\n\n\x20This\x20c\ + an\x20be\x20in\x20one\x20of\x20the\x20following\x20formats:\n\x20\x20\ + \x20project:,\n\x20\x20\x20project_number:,\ + \n\x20\x20\x20api_key:.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\ + \x06\x97\x01\x02\x8f\x01\x19\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\x97\ + \x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x97\x01\t\x14\n\r\n\ + \x05\x04\x01\x02\x02\x03\x12\x04\x97\x01\x17\x18\n0\n\x04\x04\x01\x02\ + \x03\x12\x04\x9a\x01\x02!\x1a\"\x20Labels\x20describing\x20the\x20operat\ + ion.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x9a\x01\x02\x97\x01\x19\n\ + \r\n\x05\x04\x01\x02\x03\x06\x12\x04\x9a\x01\x02\x15\n\r\n\x05\x04\x01\ + \x02\x03\x01\x12\x04\x9a\x01\x16\x1c\n\r\n\x05\x04\x01\x02\x03\x03\x12\ + \x04\x9a\x01\x1f\x20\n\xd0\x04\n\x04\x04\x01\x02\x04\x12\x04\xa8\x01\x02\ + ,\x1a\xc1\x04\x20Represents\x20information\x20about\x20this\x20operation\ + .\x20Each\x20MetricValueSet\n\x20corresponds\x20to\x20a\x20metric\x20def\ + ined\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\xa8\x01\x02\n\n\r\n\x05\x04\x01\x02\ + \x04\x06\x12\x04\xa8\x01\x0b\x19\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\ + \xa8\x01\x1a'\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\xa8\x01*+\n.\n\x04\ + \x04\x01\x02\x05\x12\x04\xab\x01\x02\x1b\x1a\x20\x20Quota\x20mode\x20for\ + \x20this\x20operation.\n\n\x0f\n\x05\x04\x01\x02\x05\x04\x12\x06\xab\x01\ + \x02\xa8\x01,\n\r\n\x05\x04\x01\x02\x05\x06\x12\x04\xab\x01\x02\x0b\n\r\ + \n\x05\x04\x01\x02\x05\x01\x12\x04\xab\x01\x0c\x16\n\r\n\x05\x04\x01\x02\ + \x05\x03\x12\x04\xab\x01\x19\x1a\n>\n\x02\x04\x02\x12\x06\xaf\x01\0\xc5\ + \x01\x01\x1a0\x20Response\x20message\x20for\x20the\x20AllocateQuota\x20m\ + ethod.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xaf\x01\x08\x1d\ny\n\x04\x04\ + \x02\x02\0\x12\x04\xb2\x01\x02\x1a\x1ak\x20The\x20same\x20operation_id\ + \x20value\x20used\x20in\x20the\x20AllocateQuotaRequest.\x20Used\x20for\n\ + \x20logging\x20and\x20diagnostics\x20purposes.\n\n\x0f\n\x05\x04\x02\x02\ + \0\x04\x12\x06\xb2\x01\x02\xaf\x01\x1f\n\r\n\x05\x04\x02\x02\0\x05\x12\ + \x04\xb2\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xb2\x01\t\x15\n\ + \r\n\x05\x04\x02\x02\0\x03\x12\x04\xb2\x01\x18\x19\n7\n\x04\x04\x02\x02\ + \x01\x12\x04\xb5\x01\x02*\x1a)\x20Indicates\x20the\x20decision\x20of\x20\ + the\x20allocate.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\xb5\x01\x02\n\n\ + \r\n\x05\x04\x02\x02\x01\x06\x12\x04\xb5\x01\x0b\x15\n\r\n\x05\x04\x02\ + \x02\x01\x01\x12\x04\xb5\x01\x16%\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ + \xb5\x01()\n\xd9\x03\n\x04\x04\x02\x02\x02\x12\x04\xc1\x01\x02,\x1a\xca\ + \x03\x20Quota\x20metrics\x20to\x20indicate\x20the\x20result\x20of\x20all\ + ocation.\x20Depending\x20on\x20the\n\x20request,\x20one\x20or\x20more\ + \x20of\x20the\x20following\x20metrics\x20will\x20be\x20included:\n\n\x20\ + 1.\x20Per\x20quota\x20group\x20or\x20per\x20quota\x20metric\x20increment\ + al\x20usage\x20will\x20be\x20specified\n\x20using\x20the\x20following\ + \x20delta\x20metric\x20:\n\x20\x20\x20\"serviceruntime.googleapis.com/ap\ + i/consumer/quota_used_count\"\n\n\x202.\x20The\x20quota\x20limit\x20reac\ + hed\x20condition\x20will\x20be\x20specified\x20using\x20the\x20following\ + \n\x20boolean\x20metric\x20:\n\x20\x20\x20\"serviceruntime.googleapis.co\ + m/quota/exceeded\"\n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04\xc1\x01\x02\n\ + \n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xc1\x01\x0b\x19\n\r\n\x05\x04\x02\ + \x02\x02\x01\x12\x04\xc1\x01\x1a'\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\ + \xc1\x01*+\nD\n\x04\x04\x02\x02\x03\x12\x04\xc4\x01\x02\x1f\x1a6\x20ID\ + \x20of\x20the\x20actual\x20config\x20used\x20to\x20process\x20the\x20req\ + uest.\n\n\x0f\n\x05\x04\x02\x02\x03\x04\x12\x06\xc4\x01\x02\xc1\x01,\n\r\ + \n\x05\x04\x02\x02\x03\x05\x12\x04\xc4\x01\x02\x08\n\r\n\x05\x04\x02\x02\ + \x03\x01\x12\x04\xc4\x01\t\x1a\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xc4\ + \x01\x1d\x1e\no\n\x02\x04\x03\x12\x06\xc8\x01\0\xee\x01\x01\x1aa\x20Repr\ + esents\x20error\x20information\x20for\x20[QuotaOperation][google.api.ser\ + vicecontrol.v1.QuotaOperation].\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xc8\ + \x01\x08\x12\n\xfe\x02\n\x04\x04\x03\x04\0\x12\x06\xce\x01\x02\xe2\x01\ + \x03\x1a\xed\x02\x20Error\x20codes\x20related\x20to\x20project\x20config\ + \x20validations\x20are\x20deprecated\x20since\x20the\n\x20quota\x20contr\ + oller\x20methods\x20do\x20not\x20perform\x20these\x20validations.\x20Ins\ + tead\x20services\n\x20have\x20to\x20call\x20the\x20Check\x20method,\x20w\ + ithout\x20quota_properties\x20field,\x20to\x20perform\n\x20these\x20vali\ + dations\x20before\x20calling\x20the\x20quota\x20controller\x20methods.\ + \x20These\n\x20methods\x20check\x20only\x20for\x20project\x20deletion\ + \x20to\x20be\x20wipe\x20out\x20compliant.\n\n\r\n\x05\x04\x03\x04\0\x01\ + \x12\x04\xce\x01\x07\x0b\n%\n\x06\x04\x03\x04\0\x02\0\x12\x04\xd0\x01\ + \x04\x14\x1a\x15\x20This\x20is\x20never\x20used.\n\n\x0f\n\x07\x04\x03\ + \x04\0\x02\0\x01\x12\x04\xd0\x01\x04\x0f\n\x0f\n\x07\x04\x03\x04\0\x02\0\ + \x02\x12\x04\xd0\x01\x12\x13\n}\n\x06\x04\x03\x04\0\x02\x01\x12\x04\xd4\ + \x01\x04\x1b\x1am\x20Quota\x20allocation\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\xd4\x01\x04\x16\n\x0f\n\ + \x07\x04\x03\x04\0\x02\x01\x02\x12\x04\xd4\x01\x19\x1a\nb\n\x06\x04\x03\ + \x04\0\x02\x02\x12\x04\xd8\x01\x04\x1d\x1aR\x20Consumer\x20cannot\x20acc\ + ess\x20the\x20service\x20because\x20the\x20service\x20requires\x20active\ + \n\x20billing.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x01\x12\x04\xd8\x01\ + \x04\x16\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x02\x12\x04\xd8\x01\x19\x1c\n\ + P\n\x06\x04\x03\x04\0\x02\x03\x12\x04\xdb\x01\x04\x1a\x1a@\x20Consumer's\ + \x20project\x20has\x20been\x20marked\x20as\x20deleted\x20(soft\x20deleti\ + on).\n\n\x0f\n\x07\x04\x03\x04\0\x02\x03\x01\x12\x04\xdb\x01\x04\x13\n\ + \x0f\n\x07\x04\x03\x04\0\x02\x03\x02\x12\x04\xdb\x01\x16\x19\n/\n\x06\ + \x04\x03\x04\0\x02\x04\x12\x04\xde\x01\x04\x1a\x1a\x1f\x20Specified\x20A\ + PI\x20key\x20is\x20invalid.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x04\x01\x12\ + \x04\xde\x01\x04\x13\n\x0f\n\x07\x04\x03\x04\0\x02\x04\x02\x12\x04\xde\ + \x01\x16\x19\n0\n\x06\x04\x03\x04\0\x02\x05\x12\x04\xe1\x01\x04\x1a\x1a\ + \x20\x20Specified\x20API\x20Key\x20has\x20expired.\n\n\x0f\n\x07\x04\x03\ + \x04\0\x02\x05\x01\x12\x04\xe1\x01\x04\x13\n\x0f\n\x07\x04\x03\x04\0\x02\ + \x05\x02\x12\x04\xe1\x01\x16\x19\n\x1b\n\x04\x04\x03\x02\0\x12\x04\xe5\ + \x01\x02\x10\x1a\r\x20Error\x20code.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\ + \x06\xe5\x01\x02\xe2\x01\x03\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xe5\x01\ + \x02\x06\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xe5\x01\x07\x0b\n\r\n\x05\ + \x04\x03\x02\0\x03\x12\x04\xe5\x01\x0e\x0f\n\xc7\x01\n\x04\x04\x03\x02\ + \x01\x12\x04\xea\x01\x02\x15\x1a\xb8\x01\x20Subject\x20to\x20whom\x20thi\ + s\x20error\x20applies.\x20See\x20the\x20specific\x20enum\x20for\x20more\ + \x20details\n\x20on\x20this\x20field.\x20For\x20example,\x20\"clientip:<\ + ip\x20address\x20of\x20client>\"\x20or\n\x20\"project:\".\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xea\ + \x01\x02\xe5\x01\x10\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xea\x01\x02\ + \x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xea\x01\t\x10\n\r\n\x05\x04\ + \x03\x02\x01\x03\x12\x04\xea\x01\x13\x14\nO\n\x04\x04\x03\x02\x02\x12\ + \x04\xed\x01\x02\x19\x1aA\x20Free-form\x20text\x20that\x20provides\x20de\ + tails\x20on\x20the\x20cause\x20of\x20the\x20error.\n\n\x0f\n\x05\x04\x03\ + \x02\x02\x04\x12\x06\xed\x01\x02\xea\x01\x15\n\r\n\x05\x04\x03\x02\x02\ + \x05\x12\x04\xed\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xed\ + \x01\t\x14\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xed\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs new file mode 100644 index 0000000000..06a61e7123 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs @@ -0,0 +1,69 @@ +// 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_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 }, +}; + +#[derive(Clone)] +pub struct QuotaControllerClient { + client: ::grpcio::Client, +} + +impl QuotaControllerClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + QuotaControllerClient { + client: ::grpcio::Client::new(channel), + } + } + + 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 { + 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(&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: ::futures::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); +} + +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.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs new file mode 100644 index 0000000000..ba99995c30 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs @@ -0,0 +1,2174 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/service_controller.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct CheckRequest { + // message fields + pub service_name: ::std::string::String, + pub operation: ::protobuf::SingularPtrField, + pub service_config_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CheckRequest { + fn default() -> &'a CheckRequest { + ::default_instance() + } +} + +impl CheckRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.operation)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_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.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_name); + } + if let Some(ref v) = self.operation.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 + } + + 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)?; + } + 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 !self.service_config_id.is_empty() { + os.write_string(4, &self.service_config_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() -> 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 default_instance() -> &'static CheckRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CheckRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CheckResponse { + // message fields + pub operation_id: ::std::string::String, + pub check_errors: ::protobuf::RepeatedField, + pub service_config_id: ::std::string::String, + pub service_rollout_id: ::std::string::String, + pub check_info: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CheckResponse { + fn default() -> &'a CheckResponse { + ::default_instance() + } +} + +impl CheckResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.check_errors)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; + }, + 11 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_rollout_id)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.check_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.operation_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.operation_id); + } + for value in &self.check_errors { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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() { + 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.operation_id.is_empty() { + os.write_string(1, &self.operation_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)?; + }; + 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 { + 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.check_errors.clear(); + self.service_config_id.clear(); + self.service_rollout_id.clear(); + self.check_info.clear(); + self.unknown_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) + } +} + +impl ::protobuf::reflect::ProtobufValue for CheckResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 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::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())?; + }, + }; + } + ::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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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>( + "consumer_info", + |m: &CheckResponse_CheckInfo| { &m.consumer_info }, + |m: &mut CheckResponse_CheckInfo| { &mut m.consumer_info }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CheckResponse.CheckInfo", + fields, + file_descriptor_proto() + ) + }) + } + + 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; + + + 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; + } + + // Param is passed by value, moved + pub fn set_field_type(&mut self, v: CheckResponse_ConsumerInfo_ConsumerType) { + self.field_type = v; + } + + // int64 consumer_number = 3; + + + pub fn get_consumer_number(&self) -> i64 { + self.consumer_number + } + pub fn clear_consumer_number(&mut self) { + self.consumer_number = 0; + } + + // Param is passed by value, moved + pub fn set_consumer_number(&mut self, v: i64) { + self.consumer_number = v; + } +} + +impl ::protobuf::Message for CheckResponse_ConsumerInfo { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&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())?; + }, + }; + } + ::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); + } + 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))?; + } + 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() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_ConsumerInfo { + CheckResponse_ConsumerInfo::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( + "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 }, + )); + 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::( + "CheckResponse.ConsumerInfo", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CheckResponse_ConsumerInfo { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CheckResponse_ConsumerInfo::new) + } +} + +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(); + } +} + +impl ::std::fmt::Debug for CheckResponse_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 { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum CheckResponse_ConsumerInfo_ConsumerType { + CONSUMER_TYPE_UNSPECIFIED = 0, + PROJECT = 1, + FOLDER = 2, + ORGANIZATION = 3, + SERVICE_SPECIFIC = 4, +} + +impl ::protobuf::ProtobufEnum for CheckResponse_ConsumerInfo_ConsumerType { + fn value(&self) -> i32 { + *self as i32 + } + + 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 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 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()) + }) + } +} + +impl ::std::marker::Copy for CheckResponse_ConsumerInfo_ConsumerType { +} + +impl ::std::default::Default for CheckResponse_ConsumerInfo_ConsumerType { + fn default() -> Self { + CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for CheckResponse_ConsumerInfo_ConsumerType { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ReportRequest { + // message fields + pub service_name: ::std::string::String, + pub operations: ::protobuf::RepeatedField, + pub service_config_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ReportRequest { + fn default() -> &'a ReportRequest { + ::default_instance() + } +} + +impl ReportRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_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.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; + }; + 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 + } + + 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.operations { + 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.service_config_id.is_empty() { + os.write_string(3, &self.service_config_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() -> 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 default_instance() -> &'static ReportRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ReportRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ReportResponse { + // message fields + pub report_errors: ::protobuf::RepeatedField, + pub service_config_id: ::std::string::String, + pub service_rollout_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ReportResponse { + fn default() -> &'a ReportResponse { + ::default_instance() + } +} + +impl ReportResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_rollout_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; + for value in &self.report_errors { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if !self.service_config_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.service_config_id); + } + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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)?; + }; + if !self.service_config_id.is_empty() { + os.write_string(2, &self.service_config_id)?; + } + if !self.service_rollout_id.is_empty() { + os.write_string(4, &self.service_rollout_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() -> 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 default_instance() -> &'static ReportResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ReportResponse::new) + } +} + +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 ::std::fmt::Debug 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() + } +} + +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()) + } + + // .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 ReportResponse_ReportError { + 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_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(()) + } + + // 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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> ReportResponse_ReportError { + ReportResponse_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 default_instance() -> &'static ReportResponse_ReportError { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ReportResponse_ReportError::new) + } +} + +impl ::protobuf::Clear for ReportResponse_ReportError { + fn clear(&mut self) { + self.operation_id.clear(); + self.status.clear(); + self.unknown_fields.clear(); + } +} + +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 ::protobuf::reflect::ProtobufValue for ReportResponse_ReportError { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +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.google/api/\ + servicecontrol/v1/check_error.proto\x1a,google/api/servicecontrol/v1/ope\ + ration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/st\ + atus.proto\x1a\x17google/api/client.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\"\xf3\x05\n\rCheckResponse\x12!\n\x0coperation_id\x18\x01\x20\x01(\tR\ + \x0boperationId\x12K\n\x0ccheck_errors\x18\x02\x20\x03(\x0b2(.google.api\ + .servicecontrol.v1.CheckErrorR\x0bcheckErrors\x12*\n\x11service_config_i\ + d\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\tcheck\ + Info\x1a\x95\x01\n\tCheckInfo\x12)\n\x10unused_arguments\x18\x01\x20\x03\ + (\tR\x0funusedArguments\x12]\n\rconsumer_info\x18\x02\x20\x01(\x0b28.goo\ + gle.api.servicecontrol.v1.CheckResponse.ConsumerInfoR\x0cconsumerInfo\ + \x1a\xa9\x02\n\x0cConsumerInfo\x12%\n\x0eproject_number\x18\x01\x20\x01(\ + \x03R\rprojectNumber\x12Y\n\x04type\x18\x02\x20\x01(\x0e2E.google.api.se\ + rvicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerTypeR\x04type\x12'\n\ + \x0fconsumer_number\x18\x03\x20\x01(\x03R\x0econsumerNumber\"n\n\x0cCons\ + umerType\x12\x1d\n\x19CONSUMER_TYPE_UNSPECIFIED\x10\0\x12\x0b\n\x07PROJE\ + CT\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\x0bserviceName\x12G\n\noperations\ + \x18\x02\x20\x03(\x0b2'.google.api.servicecontrol.v1.OperationR\noperati\ + ons\x12*\n\x11service_config_id\x18\x03\x20\x01(\tR\x0fserviceConfigId\"\ + \xa7\x02\n\x0eReportResponse\x12]\n\rreport_errors\x18\x01\x20\x03(\x0b2\ + 8.google.api.servicecontrol.v1.ReportResponse.ReportErrorR\x0creportErro\ + rs\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\x0bop\ + erationId\x12*\n\x06status\x18\x02\x20\x01(\x0b2\x12.google.rpc.StatusR\ + \x06status2\xbc\x03\n\x11ServiceController\x12\x8e\x01\n\x05Check\x12*.g\ + oogle.api.servicecontrol.v1.CheckRequest\x1a+.google.api.servicecontrol.\ + v1.CheckResponse\",\x82\xd3\xe4\x93\x02&\"!/v1/services/{service_name}:c\ + heck:\x01*\x12\x92\x01\n\x06Report\x12+.google.api.servicecontrol.v1.Rep\ + ortRequest\x1a,.google.api.servicecontrol.v1.ReportResponse\"-\x82\xd3\ + \xe4\x93\x02'\"\"/v1/services/{service_name}:report:\x01*\x1a\x80\x01\ + \xcaA\x1dservicecontrol.googleapis.com\xd2A]https://www.googleapis.com/a\ + uth/cloud-platform,https://www.googleapis.com/auth/servicecontrolB\xf8\ + \x01\n\x20com.google.api.servicecontrol.v1B\x16ServiceControllerProtoP\ + \x01ZJgoogle.golang.org/genproto/googleapis/api/servicecontrol/v1;servic\ + econtrol\xf8\x01\x01\xa2\x02\x04GASC\xaa\x02\x1eGoogle.Cloud.ServiceCont\ + rol.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::Clou\ + d::ServiceControl::V1J\xe5L\n\x07\x12\x05\x0e\0\xf8\x01\x01\n\xbc\x04\n\ + \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\08\n\t\n\x02\x03\x02\x12\x03\x14\0\ + 6\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\0;\n\t\n\x02\ + \x08%\x12\x03\x1a\0;\n\x08\n\x01\x08\x12\x03\x1b\0a\n\t\n\x02\x08\x0b\ + \x12\x03\x1b\0a\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\07\n\t\n\x02\x08\x08\x12\x03\x1d\07\ + \n\x08\n\x01\x08\x12\x03\x1e\09\n\t\n\x02\x08\x01\x12\x03\x1e\09\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\x08\n\x01\x08\x12\x03!\0\ + :\n\t\n\x02\x08-\x12\x03!\0:\n\x99\x02\n\x02\x06\0\x12\x04'\0Y\x01\x1a\ + \x8c\x02\x20[Google\x20Service\x20Control\x20API](/service-control/overv\ + iew)\n\n\x20Lets\x20clients\x20check\x20and\x20report\x20operations\x20a\ + gainst\x20a\x20[managed\n\x20service](https://cloud.google.com/service-m\ + anagement/reference/rpc/google.api/servicemanagement.v1#google.api.servi\ + cemanagement.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\xd6\x06\n\x04\x06\0\x02\0\x12\x04=\x02B\x03\x1a\xc7\ + \x06\x20Checks\x20whether\x20an\x20operation\x20on\x20a\x20service\x20sh\ + ould\x20be\x20allowed\x20to\x20proceed\n\x20based\x20on\x20the\x20config\ + uration\x20of\x20the\x20service\x20and\x20related\x20policies.\x20It\x20\ + must\x20be\n\x20called\x20before\x20the\x20operation\x20is\x20executed.\ + \n\n\x20If\x20feasible,\x20the\x20client\x20should\x20cache\x20the\x20ch\ + eck\x20results\x20and\x20reuse\x20them\x20for\n\x2060\x20seconds.\x20In\ + \x20case\x20of\x20any\x20server\x20errors,\x20the\x20client\x20should\ + \x20rely\x20on\x20the\n\x20cached\x20results\x20for\x20much\x20longer\ + \x20time\x20to\x20avoid\x20outage.\n\x20WARNING:\x20There\x20is\x20gener\ + al\x2060s\x20delay\x20for\x20the\x20configuration\x20and\x20policy\n\x20\ + propagation,\x20therefore\x20callers\x20MUST\x20NOT\x20depend\x20on\x20t\ + he\x20`Check`\x20method\x20having\n\x20the\x20latest\x20policy\x20inform\ + ation.\n\n\x20NOTE:\x20the\x20[CheckRequest][google.api.servicecontrol.v\ + 1.CheckRequest]\x20has\x20the\x20size\x20limit\x20of\x2064KB.\n\n\x20Thi\ + s\x20method\x20requires\x20the\x20`servicemanagement.services.check`\x20\ + permission\n\x20on\x20the\x20specified\x20service.\x20For\x20more\x20inf\ + ormation,\x20see\n\x20[Cloud\x20IAM](https://cloud.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\x20Co\ + ntrol,\x20such\x20as\x20logs\x20and\n\x20metrics.\x20It\x20should\x20be\ + \x20called\x20after\x20an\x20operation\x20is\x20completed.\n\n\x20If\x20\ + feasible,\x20the\x20client\x20should\x20aggregate\x20reporting\x20data\ + \x20for\x20up\x20to\x205\n\x20seconds\x20to\x20reduce\x20API\x20traffic.\ + \x20Limiting\x20aggregation\x20to\x205\x20seconds\x20is\x20to\n\x20reduc\ + e\x20data\x20loss\x20during\x20client\x20crashes.\x20Clients\x20should\ + \x20carefully\x20choose\n\x20the\x20aggregation\x20time\x20window\x20to\ + \x20avoid\x20data\x20loss\x20risk\x20more\x20than\x200.01%\n\x20for\x20b\ + usiness\x20and\x20compliance\x20reasons.\n\n\x20NOTE:\x20the\x20[ReportR\ + equest][google.api.servicecontrol.v1.ReportRequest]\x20has\x20the\x20siz\ + e\x20limit\x20(wire-format\x20byte\x20size)\x20of\n\x201MB.\n\n\x20This\ + \x20method\x20requires\x20the\x20`servicemanagement.services.report`\x20\ + permission\n\x20on\x20the\x20specified\x20service.\x20For\x20more\x20inf\ + ormation,\x20see\n\x20[Google\x20Cloud\x20IAM](https://cloud.google.com/\ + iam).\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03S\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\x20example,\n\x20`\"pubsub.googleap\ + is.com\"`.\n\n\x20See\n\x20[google.api.Service](https://cloud.google.com\ + /service-management/reference/rpc/google.api#google.api.Service)\n\x20fo\ + r\x20the\x20definition\x20of\x20a\x20service\x20name.\n\n\r\n\x05\x04\0\ + \x02\0\x04\x12\x04c\x02\\\x16\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\x20to\x20be\x20checked.\n\n\r\n\x05\x04\0\x02\x01\ + \x04\x12\x04f\x02c\x1a\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\r\n\x05\ + \x04\0\x02\x02\x04\x12\x04m\x02f\x1a\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\xb8\x01\ + \x01\x1a(\x20Response\x20message\x20for\x20the\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\x20information\x20about\x20the\x20ch\ + eck\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\x20that\x20are\x20ignored\x20by\ + \x20the\x20server.\n\x20The\x20client\x20doesn't\x20need\x20to\x20send\ + \x20them\x20for\x20following\x20requests\x20to\x20improve\n\x20performan\ + ce\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\x0f\n\x07\ + \x04\x01\x03\0\x02\x01\x04\x12\x04z\x04w)\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\x20about\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://clo\ + ud.google.com/resource-manager/).\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\x20consumer\x20is\x20a\x20Google\x20Clo\ + ud\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\x20resource\x20container\x20which\x20is\x20defi\ + ned\x20by\x20the\x20service\n\x20producer\x20to\x20offer\x20their\x20use\ + rs\x20the\x20ability\x20to\x20manage\x20service\x20control\n\x20function\ + alities\x20at\x20a\x20finer\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\x20Google\x20cloud\x20project\x20number,\x20e.g.\x20\ + 1234567890.\x20A\x20value\x20of\x200\x20indicates\n\x20no\x20project\x20\ + number\x20is\x20found.\n\n\x20NOTE:\x20This\x20field\x20is\x20deprecated\ + \x20after\x20we\x20support\x20flexible\x20consumer\n\x20id.\x20New\x20co\ + de\x20should\x20not\x20depend\x20on\x20this\x20field\x20anymore.\n\n\x11\ + \n\x07\x04\x01\x03\x01\x02\0\x04\x12\x06\x99\x01\x04\x92\x01\x05\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\x20cons\ + umer\x20which\x20should\x20have\x20been\x20defined\x20in\n\x20[Google\ + \x20Resource\x20Manager](https://cloud.google.com/resource-manager/).\n\ + \n\x11\n\x07\x04\x01\x03\x01\x02\x01\x04\x12\x06\x9d\x01\x04\x99\x01\x1d\ + \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\x20nu\ + mber,\x20folder\n\x20number\x20or\x20organization\x20number\x20e.g.\x201\ + 234567890.\x20A\x20value\x20of\x200\x20indicates\x20no\n\x20consumer\x20\ + number\x20is\x20found.\n\n\x11\n\x07\x04\x01\x03\x01\x02\x02\x04\x12\x06\ + \xa2\x01\x04\x9d\x01\x1a\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\ + \x9f\x01\n\x04\x04\x01\x02\0\x12\x04\xa7\x01\x02\x1a\x1a\x90\x01\x20The\ + \x20same\x20operation_id\x20value\x20used\x20in\x20the\x20[CheckRequest]\ + [google.api.servicecontrol.v1.CheckRequest].\n\x20Used\x20for\x20logging\ + \x20and\x20diagnostics\x20purposes.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\ + \x06\xa7\x01\x02\xa3\x01\x03\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xa7\x01\ + \x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xa7\x01\t\x15\n\r\n\x05\x04\ + \x01\x02\0\x03\x12\x04\xa7\x01\x18\x19\n\xdb\x01\n\x04\x04\x01\x02\x01\ + \x12\x04\xae\x01\x02'\x1a\xcc\x01\x20Indicate\x20the\x20decision\x20of\ + \x20the\x20check.\n\n\x20If\x20no\x20check\x20errors\x20are\x20present,\ + \x20the\x20service\x20should\x20process\x20the\x20operation.\n\x20Otherw\ + ise\x20the\x20service\x20should\x20use\x20the\x20list\x20of\x20errors\ + \x20to\x20determine\x20the\n\x20appropriate\x20action.\n\n\r\n\x05\x04\ + \x01\x02\x01\x04\x12\x04\xae\x01\x02\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\ + \x04\xae\x01\x0b\x15\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xae\x01\x16\"\ + \n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xae\x01%&\nA\n\x04\x04\x01\x02\ + \x02\x12\x04\xb1\x01\x02\x1f\x1a3\x20The\x20actual\x20config\x20id\x20us\ + ed\x20to\x20process\x20the\x20request.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\ + \x12\x06\xb1\x01\x02\xae\x01'\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xb1\ + \x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xb1\x01\t\x1a\n\r\n\ + \x05\x04\x01\x02\x02\x03\x12\x04\xb1\x01\x1d\x1e\nK\n\x04\x04\x01\x02\ + \x03\x12\x04\xb4\x01\x02!\x1a=\x20The\x20current\x20service\x20rollout\ + \x20id\x20used\x20to\x20process\x20the\x20request.\n\n\x0f\n\x05\x04\x01\ + \x02\x03\x04\x12\x06\xb4\x01\x02\xb1\x01\x1f\n\r\n\x05\x04\x01\x02\x03\ + \x05\x12\x04\xb4\x01\x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xb4\ + \x01\t\x1b\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xb4\x01\x1e\x20\nY\n\ + \x04\x04\x01\x02\x04\x12\x04\xb7\x01\x02\x1b\x1aK\x20Feedback\x20data\ + \x20returned\x20from\x20the\x20server\x20during\x20processing\x20a\x20Ch\ + eck\x20request.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\xb7\x01\x02\ + \xb4\x01!\n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\xb7\x01\x02\x0b\n\r\n\ + \x05\x04\x01\x02\x04\x01\x12\x04\xb7\x01\x0c\x16\n\r\n\x05\x04\x01\x02\ + \x04\x03\x12\x04\xb7\x01\x19\x1a\n6\n\x02\x04\x02\x12\x06\xbb\x01\0\xd6\ + \x01\x01\x1a(\x20Request\x20message\x20for\x20the\x20Report\x20method.\n\ + \n\x0b\n\x03\x04\x02\x01\x12\x04\xbb\x01\x08\x15\n\x91\x02\n\x04\x04\x02\ + \x02\0\x12\x04\xc2\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\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xc2\x01\x02\xbb\x01\ + \x17\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xc2\x01\x02\x08\n\r\n\x05\x04\ + \x02\x02\0\x01\x12\x04\xc2\x01\t\x15\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\ + \xc2\x01\x18\x19\n\x96\x04\n\x04\x04\x02\x02\x01\x12\x04\xce\x01\x02$\ + \x1a\x87\x04\x20Operations\x20to\x20be\x20reported.\n\n\x20Typically\x20\ + the\x20service\x20should\x20report\x20one\x20operation\x20per\x20request\ + .\n\x20Putting\x20multiple\x20operations\x20into\x20a\x20single\x20reque\ + st\x20is\x20allowed,\x20but\x20should\n\x20be\x20used\x20only\x20when\ + \x20multiple\x20operations\x20are\x20natually\x20available\x20at\x20the\ + \x20time\n\x20of\x20the\x20report.\n\n\x20There\x20is\x20no\x20limit\x20\ + on\x20the\x20number\x20of\x20operations\x20in\x20the\x20same\x20ReportRe\ + quest,\n\x20however\x20the\x20ReportRequest\x20size\x20should\x20be\x20n\ + o\x20larger\x20than\x201MB.\x20See\n\x20[ReportResponse.report_errors][g\ + oogle.api.servicecontrol.v1.ReportResponse.report_errors]\x20for\x20part\ + ial\x20failure\x20behavior.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\xce\ + \x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xce\x01\x0b\x14\n\r\n\ + \x05\x04\x02\x02\x01\x01\x12\x04\xce\x01\x15\x1f\n\r\n\x05\x04\x02\x02\ + \x01\x03\x12\x04\xce\x01\"#\n\xb6\x01\n\x04\x04\x02\x02\x02\x12\x04\xd5\ + \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\ + \x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xd5\x01\x02\xce\x01$\n\r\n\x05\ + \x04\x02\x02\x02\x05\x12\x04\xd5\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\ + \x01\x12\x04\xd5\x01\t\x1a\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xd5\x01\ + \x1d\x1e\n7\n\x02\x04\x03\x12\x06\xd9\x01\0\xf8\x01\x01\x1a)\x20Response\ + \x20message\x20for\x20the\x20Report\x20method.\n\n\x0b\n\x03\x04\x03\x01\ + \x12\x04\xd9\x01\x08\x16\n|\n\x04\x04\x03\x03\0\x12\x06\xdb\x01\x02\xe1\ + \x01\x03\x1al\x20Represents\x20the\x20processing\x20error\x20of\x20one\ + \x20[Operation][google.api.servicecontrol.v1.Operation]\x20in\x20the\x20\ + request.\n\n\r\n\x05\x04\x03\x03\0\x01\x12\x04\xdb\x01\n\x15\n{\n\x06\ + \x04\x03\x03\0\x02\0\x12\x04\xdd\x01\x04\x1c\x1ak\x20The\x20[Operation.o\ + peration_id][google.api.servicecontrol.v1.Operation.operation_id]\x20val\ + ue\x20from\x20the\x20request.\n\n\x11\n\x07\x04\x03\x03\0\x02\0\x04\x12\ + \x06\xdd\x01\x04\xdb\x01\x17\n\x0f\n\x07\x04\x03\x03\0\x02\0\x05\x12\x04\ + \xdd\x01\x04\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x01\x12\x04\xdd\x01\x0b\ + \x17\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\x12\x04\xdd\x01\x1a\x1b\no\n\ + \x06\x04\x03\x03\0\x02\x01\x12\x04\xe0\x01\x04!\x1a_\x20Details\x20of\ + \x20the\x20error\x20when\x20processing\x20the\x20[Operation][google.api.\ + servicecontrol.v1.Operation].\n\n\x11\n\x07\x04\x03\x03\0\x02\x01\x04\ + \x12\x06\xe0\x01\x04\xdd\x01\x1c\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x06\ + \x12\x04\xe0\x01\x04\x15\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x01\x12\x04\ + \xe0\x01\x16\x1c\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x03\x12\x04\xe0\x01\ + \x1f\x20\n\x8e\x06\n\x04\x04\x03\x02\0\x12\x04\xf1\x01\x02)\x1a\xff\x05\ + \x20Partial\x20failures,\x20one\x20for\x20each\x20`Operation`\x20in\x20t\ + he\x20request\x20that\x20failed\n\x20processing.\x20There\x20are\x20thre\ + e\x20possible\x20combinations\x20of\x20the\x20RPC\x20status:\n\n\x201.\ + \x20The\x20combination\x20of\x20a\x20successful\x20RPC\x20status\x20and\ + \x20an\x20empty\x20`report_errors`\n\x20\x20\x20\x20list\x20indicates\ + \x20a\x20complete\x20success\x20where\x20all\x20`Operations`\x20in\x20th\ + e\n\x20\x20\x20\x20request\x20are\x20processed\x20successfully.\n\x202.\ + \x20The\x20combination\x20of\x20a\x20successful\x20RPC\x20status\x20and\ + \x20a\x20non-empty\n\x20\x20\x20\x20`report_errors`\x20list\x20indicates\ + \x20a\x20partial\x20success\x20where\x20some\n\x20\x20\x20\x20`Operation\ + s`\x20in\x20the\x20request\x20succeeded.\x20Each\n\x20\x20\x20\x20`Opera\ + tion`\x20that\x20failed\x20processing\x20has\x20a\x20corresponding\x20it\ + em\n\x20\x20\x20\x20in\x20this\x20list.\n\x203.\x20A\x20failed\x20RPC\ + \x20status\x20indicates\x20a\x20general\x20non-deterministic\x20failure.\ + \n\x20\x20\x20\x20When\x20this\x20happens,\x20it's\x20impossible\x20to\ + \x20know\x20which\x20of\x20the\n\x20\x20\x20\x20'Operations'\x20in\x20th\ + e\x20request\x20succeeded\x20or\x20failed.\n\n\r\n\x05\x04\x03\x02\0\x04\ + \x12\x04\xf1\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xf1\x01\x0b\ + \x16\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xf1\x01\x17$\n\r\n\x05\x04\x03\ + \x02\0\x03\x12\x04\xf1\x01'(\nA\n\x04\x04\x03\x02\x01\x12\x04\xf4\x01\ + \x02\x1f\x1a3\x20The\x20actual\x20config\x20id\x20used\x20to\x20process\ + \x20the\x20request.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xf4\x01\ + \x02\xf1\x01)\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xf4\x01\x02\x08\n\r\ + \n\x05\x04\x03\x02\x01\x01\x12\x04\xf4\x01\t\x1a\n\r\n\x05\x04\x03\x02\ + \x01\x03\x12\x04\xf4\x01\x1d\x1e\nK\n\x04\x04\x03\x02\x02\x12\x04\xf7\ + \x01\x02\x20\x1a=\x20The\x20current\x20service\x20rollout\x20id\x20used\ + \x20to\x20process\x20the\x20request.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\ + \x12\x06\xf7\x01\x02\xf4\x01\x1f\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\ + \xf7\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xf7\x01\t\x1b\n\r\ + \n\x05\x04\x03\x02\x02\x03\x12\x04\xf7\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller_grpc.rs new file mode 100644 index 0000000000..c290d06953 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicecontrol/v1/service_controller_grpc.rs @@ -0,0 +1,97 @@ +// 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_SERVICE_CONTROLLER_CHECK: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicecontrol.v1.ServiceController/Check", + 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_CONTROLLER_REPORT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicecontrol.v1.ServiceController/Report", + 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 ServiceControllerClient { + client: ::grpcio::Client, +} + +impl ServiceControllerClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + ServiceControllerClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn check_opt(&self, req: &super::service_controller::CheckRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_CONTROLLER_CHECK, req, opt) + } + + pub fn check(&self, req: &super::service_controller::CheckRequest) -> ::grpcio::Result { + self.check_opt(req, ::grpcio::CallOption::default()) + } + + pub fn check_async_opt(&self, req: &super::service_controller::CheckRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_CONTROLLER_CHECK, req, opt) + } + + pub fn check_async(&self, req: &super::service_controller::CheckRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.check_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn report_opt(&self, req: &super::service_controller::ReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_CONTROLLER_REPORT, req, opt) + } + + pub fn report(&self, req: &super::service_controller::ReportRequest) -> ::grpcio::Result { + self.report_opt(req, ::grpcio::CallOption::default()) + } + + pub fn report_async_opt(&self, req: &super::service_controller::ReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_CONTROLLER_REPORT, req, opt) + } + + pub fn report_async(&self, req: &super::service_controller::ReportRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.report_async_opt(req, ::grpcio::CallOption::default()) + } + pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait ServiceController { + fn check(&mut self, ctx: ::grpcio::RpcContext, req: super::service_controller::CheckRequest, sink: ::grpcio::UnarySink); + fn report(&mut self, ctx: ::grpcio::RpcContext, req: super::service_controller::ReportRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_service_controller(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_CONTROLLER_CHECK, move |ctx, req, resp| { + instance.check(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_SERVICE_CONTROLLER_REPORT, move |ctx, req, resp| { + instance.report(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/resources.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/resources.rs new file mode 100644 index 0000000000..530337657d --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/resources.rs @@ -0,0 +1,3116 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/servicemanagement/v1/resources.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct ManagedService { + // message fields + pub service_name: ::std::string::String, + pub producer_project_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ManagedService { + fn default() -> &'a ManagedService { + ::default_instance() + } +} + +impl ManagedService { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_project_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.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.service_name); + } + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static ManagedService { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ManagedService::new) + } +} + +impl ::protobuf::Clear for ManagedService { + fn clear(&mut self) { + self.service_name.clear(); + self.producer_project_id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct OperationMetadata { + // message fields + pub resource_names: ::protobuf::RepeatedField<::std::string::String>, + pub steps: ::protobuf::RepeatedField, + pub progress_percentage: i32, + pub start_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 OperationMetadata { + fn default() -> &'a OperationMetadata { + ::default_instance() + } +} + +impl OperationMetadata { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.steps)?; + }, + 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; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_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; + 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; + }; + if self.progress_percentage != 0 { + my_size += ::protobuf::rt::value_size(3, self.progress_percentage, ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.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.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)?; + }; + 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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(); + } +} + +impl ::std::fmt::Debug for OperationMetadata { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for OperationMetadata { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 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; + } + + // 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.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; + } + + // Param is passed by value, moved + pub fn set_status(&mut self, v: OperationMetadata_Status) { + self.status = v; + } +} + +impl ::protobuf::Message for OperationMetadata_Step { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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))?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> OperationMetadata_Step { + OperationMetadata_Step::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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() + ) + }) + } + + fn default_instance() -> &'static OperationMetadata_Step { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(OperationMetadata_Step::new) + } +} + +impl ::protobuf::Clear for OperationMetadata_Step { + fn clear(&mut self) { + self.description.clear(); + self.status = OperationMetadata_Status::STATUS_UNSPECIFIED; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for OperationMetadata_Step { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for OperationMetadata_Step { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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, +} + +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(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 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, + ]; + 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 ::std::marker::Copy for OperationMetadata_Status { +} + +impl ::std::default::Default for OperationMetadata_Status { + fn default() -> Self { + OperationMetadata_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)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Diagnostic { + // message fields + pub location: ::std::string::String, + pub kind: Diagnostic_Kind, + pub message: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Diagnostic { + fn default() -> &'a Diagnostic { + ::default_instance() + } +} + +impl Diagnostic { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.kind, 2, &mut self.unknown_fields)? + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.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.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.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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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.message.is_empty() { + os.write_string(3, &self.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() -> 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 default_instance() -> &'static Diagnostic { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Diagnostic::new) + } +} + +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 ::std::fmt::Debug 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, +} + +impl ::protobuf::ProtobufEnum for Diagnostic_Kind { + fn value(&self) -> i32 { + *self as i32 + } + + 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 + } + } + + fn values() -> &'static [Self] { + static values: &'static [Diagnostic_Kind] = &[ + Diagnostic_Kind::WARNING, + Diagnostic_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 ::std::marker::Copy for Diagnostic_Kind { +} + +impl ::std::default::Default for Diagnostic_Kind { + fn default() -> Self { + Diagnostic_Kind::WARNING + } +} + +impl ::protobuf::reflect::ProtobufValue for Diagnostic_Kind { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ConfigSource { + // message fields + pub id: ::std::string::String, + pub files: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +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; + } + + // Mutable pointer to the field. + pub fn mut_files(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.files + } + + // Take field + pub fn take_files(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.files, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.files)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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(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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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(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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static ConfigSource { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ConfigSource::new) + } +} + +impl ::protobuf::Clear for ConfigSource { + fn clear(&mut self) { + self.id.clear(); + self.files.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ConfigFile { + // message fields + pub file_path: ::std::string::String, + pub file_contents: ::std::vec::Vec, + pub file_type: ConfigFile_FileType, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ConfigFile { + fn default() -> &'a ConfigFile { + ::default_instance() + } +} + +impl ConfigFile { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.file_contents)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.file_type, 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.file_path.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.file_path); + } + 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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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))?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static ConfigFile { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ConfigFile::new) + } +} + +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 ::std::fmt::Debug 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 + } + + 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 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, + ]; + 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 ::std::marker::Copy for ConfigFile_FileType { +} + +impl ::std::default::Default for ConfigFile_FileType { + fn default() -> Self { + ConfigFile_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)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ConfigRef { + // 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 ConfigRef { + fn default() -> &'a ConfigRef { + ::default_instance() + } +} + +impl ConfigRef { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static ConfigRef { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ConfigRef::new) + } +} + +impl ::protobuf::Clear for ConfigRef { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ChangeReport { + // message fields + pub config_changes: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ChangeReport { + fn default() -> &'a ChangeReport { + ::default_instance() + } +} + +impl ChangeReport { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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(); + } + + 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 created_by = 3; + + + pub fn get_created_by(&self) -> &str { + &self.created_by + } + pub fn clear_created_by(&mut self) { + self.created_by.clear(); + } + + // Param is passed by value, moved + pub fn set_created_by(&mut self, v: ::std::string::String) { + self.created_by = v; + } + + // 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 + } + + // Take field + pub fn take_created_by(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.created_by, ::std::string::String::new()) + } + + // .google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4; + + + pub fn get_status(&self) -> Rollout_RolloutStatus { + self.status + } + pub fn clear_status(&mut self) { + self.status = Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_status(&mut self, v: Rollout_RolloutStatus) { + self.status = v; + } + + // .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; + + + pub fn get_traffic_percent_strategy(&self) -> &Rollout_TrafficPercentStrategy { + match self.strategy { + ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(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, + _ => 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)) + } + + // 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 { + } else { + self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(Rollout_TrafficPercentStrategy::new())); + } + match self.strategy { + ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Rollout_TrafficPercentStrategy::new() + } + } + + // .google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; + + + pub fn get_delete_service_strategy(&self) -> &Rollout_DeleteServiceStrategy { + match self.strategy { + ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(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, + _ => 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)) + } + + // 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 { + } else { + self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(Rollout_DeleteServiceStrategy::new())); + } + match self.strategy { + ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.created_by)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.status, 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.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(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()?)); + }, + 8 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_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.rollout_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.rollout_id); + } + 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.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.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) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Rollout_oneof_strategy::delete_service_strategy(ref v) => { + 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.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 !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.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_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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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.strategy = ::std::option::Option::None; + self.strategy = ::std::option::Option::None; + self.service_name.clear(); + self.unknown_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) + } +} + +impl ::protobuf::reflect::ProtobufValue for Rollout { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 Rollout_TrafficPercentStrategy { + pub fn new() -> Rollout_TrafficPercentStrategy { + ::std::default::Default::default() + } + + // repeated .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.PercentagesEntry percentages = 1; + + + pub fn get_percentages(&self) -> &::std::collections::HashMap<::std::string::String, f64> { + &self.percentages + } + pub fn clear_percentages(&mut self) { + self.percentages.clear(); + } + + // Param is passed by value, moved + pub fn set_percentages(&mut self, v: ::std::collections::HashMap<::std::string::String, f64>) { + self.percentages = v; + } + + // Mutable pointer to the field. + pub fn mut_percentages(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, f64> { + &mut self.percentages + } + + // 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 ::protobuf::Message for Rollout_TrafficPercentStrategy { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &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())?; + }, + }; + } + ::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 + } + + 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(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Rollout_TrafficPercentStrategy { + Rollout_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() + ) + }) + } + + fn default_instance() -> &'static Rollout_TrafficPercentStrategy { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Rollout_TrafficPercentStrategy::new) + } +} + +impl ::protobuf::Clear for Rollout_TrafficPercentStrategy { + fn clear(&mut self) { + self.percentages.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Rollout_TrafficPercentStrategy { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Rollout_TrafficPercentStrategy { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Rollout_DeleteServiceStrategy { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Rollout_DeleteServiceStrategy { + fn default() -> &'a Rollout_DeleteServiceStrategy { + ::default_instance() + } +} + +impl Rollout_DeleteServiceStrategy { + pub fn new() -> Rollout_DeleteServiceStrategy { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for Rollout_DeleteServiceStrategy { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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() -> Rollout_DeleteServiceStrategy { + Rollout_DeleteServiceStrategy::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::( + "Rollout.DeleteServiceStrategy", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Rollout_DeleteServiceStrategy { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Rollout_DeleteServiceStrategy::new) + } +} + +impl ::protobuf::Clear for Rollout_DeleteServiceStrategy { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +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::reflect::ProtobufValue for Rollout_DeleteServiceStrategy { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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, +} + +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, + ]; + 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 ::std::marker::Copy for Rollout_RolloutStatus { +} + +impl ::std::default::Default for Rollout_RolloutStatus { + fn default() -> Self { + Rollout_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)) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n/google/api/servicemanagement/v1/resources.proto\x12\x1fgoogle.api.ser\ + vicemanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/api/\ + config_change.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google\ + /api/metric.proto\x1a\x16google/api/quota.proto\x1a\x18google/api/servic\ + e.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/a\ + ny.proto\x1a\x20google/protobuf/field_mask.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\x13pro\ + ducer_project_id\x18\x03\x20\x01(\tR\x11producerProjectId\"\xdb\x03\n\ + \x11OperationMetadata\x12%\n\x0eresource_names\x18\x01\x20\x03(\tR\rreso\ + urceNames\x12M\n\x05steps\x18\x02\x20\x03(\x0b27.google.api.servicemanag\ + ement.v1.OperationMetadata.StepR\x05steps\x12/\n\x13progress_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\x06s\ + tatus\x18\x04\x20\x01(\x0e29.google.api.servicemanagement.v1.OperationMe\ + tadata.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\tCANCELL\ + ED\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.servic\ + emanagement.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.servicemanag\ + ement.v1.ConfigFileR\x05files\"\xb7\x02\n\nConfigFile\x12\x1b\n\tfile_pa\ + th\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.a\ + pi.servicemanagement.v1.ConfigFile.FileTypeR\x08fileType\"\x93\x01\n\x08\ + FileType\x12\x19\n\x15FILE_TYPE_UNSPECIFIED\x10\0\x12\x17\n\x13SERVICE_C\ + ONFIG_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\nP\ + ROTO_FILE\x10\x06\"\x1f\n\tConfigRef\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.ConfigChangeR\rconfigChanges\"\xf8\x06\n\x07Ro\ + llout\x12\"\n\nrollout_id\x18\x01\x20\x01(\tR\trolloutIdB\x03\xe0A\x01\ + \x12;\n\x0bcreate_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.Timesta\ + mpR\ncreateTime\x12\x1d\n\ncreated_by\x18\x03\x20\x01(\tR\tcreatedBy\x12\ + N\n\x06status\x18\x04\x20\x01(\x0e26.google.api.servicemanagement.v1.Rol\ + lout.RolloutStatusR\x06status\x12{\n\x18traffic_percent_strategy\x18\x05\ + \x20\x01(\x0b2?.google.api.servicemanagement.v1.Rollout.TrafficPercentSt\ + rategyH\0R\x16trafficPercentStrategy\x12y\n\x17delete_service_strategy\ + \x18\xc8\x01\x20\x01(\x0b2>.google.api.servicemanagement.v1.Rollout.Dele\ + teServiceStrategyH\0R\x15deleteServiceStrategy\x12!\n\x0cservice_name\ + \x18\x08\x20\x01(\tR\x0bserviceName\x1a\xcc\x01\n\x16TrafficPercentStrat\ + egy\x12r\n\x0bpercentages\x18\x01\x20\x03(\x0b2P.google.api.servicemanag\ + ement.v1.Rollout.TrafficPercentStrategy.PercentagesEntryR\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\x1aROLLOU\ + T_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_ROLLED_BACK\x10\x06B\n\ + \n\x08strategyB\xff\x01\n#com.google.api.servicemanagement.v1B\x0eResour\ + cesProtoP\x01ZPgoogle.golang.org/genproto/googleapis/api/servicemanageme\ + nt/v1;servicemanagement\xa2\x02\x04GASM\xaa\x02!Google.Cloud.ServiceMana\ + gement.V1\xca\x02!Google\\Cloud\\ServiceManagement\\V1\xea\x02$Google::C\ + loud::ServiceManagement::V1J\x8dS\n\x07\x12\x05\x0f\0\xaf\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,\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\t\n\x02\x03\x03\x12\x03\x16\0!\n\t\n\x02\x03\x04\x12\x03\ + \x17\0\x20\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\t\n\x02\x03\n\x12\x03\x1d\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\0g\n\t\n\x02\x08\x0b\x12\x03\x20\0g\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\ + \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*\01\x01\ + \x1aU\x20The\x20full\x20representation\x20of\x20a\x20Service\x20that\x20\ + is\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.\x20See\x20the\x20[overview](/se\ + rvice-management/overview)\n\x20for\x20naming\x20requirements.\n\n\r\n\ + \x05\x04\0\x02\0\x04\x12\x04-\x02*\x18\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\x030\x02!\x1a8\ + \x20ID\x20of\x20the\x20project\x20that\x20produces\x20and\x20owns\x20thi\ + s\x20service.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x040\x02-\x1a\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\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x030\x1f\x20\nM\n\x02\ + \x04\x01\x12\x044\0`\x01\x1aA\x20The\x20metadata\x20associated\x20with\ + \x20a\x20long\x20running\x20operation\x20resource.\n\n\n\n\x03\x04\x01\ + \x01\x12\x034\x08\x19\n<\n\x04\x04\x01\x03\0\x12\x046\x02<\x03\x1a.\x20R\ + epresents\x20the\x20status\x20of\x20one\x20operation\x20step.\n\n\x0c\n\ + \x05\x04\x01\x03\0\x01\x12\x036\n\x0e\n3\n\x06\x04\x01\x03\0\x02\0\x12\ + \x038\x04\x1b\x1a$\x20The\x20short\x20description\x20of\x20the\x20step.\ + \n\n\x0f\n\x07\x04\x01\x03\0\x02\0\x04\x12\x048\x046\x10\n\x0e\n\x07\x04\ + \x01\x03\0\x02\0\x05\x12\x038\x04\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x01\ + \x12\x038\x0b\x16\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\x12\x038\x19\x1a\n\ + !\n\x06\x04\x01\x03\0\x02\x01\x12\x03;\x04\x16\x1a\x12\x20The\x20status\ + \x20code.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x04\x12\x04;\x048\x1b\n\ + \x0e\n\x07\x04\x01\x03\0\x02\x01\x06\x12\x03;\x04\n\n\x0e\n\x07\x04\x01\ + \x03\0\x02\x01\x01\x12\x03;\x0b\x11\n\x0e\n\x07\x04\x01\x03\0\x02\x01\ + \x03\x12\x03;\x14\x15\nQ\n\x04\x04\x01\x04\0\x12\x04?\x02R\x03\x1aC\x20C\ + ode\x20describes\x20the\x20status\x20of\x20the\x20operation\x20(or\x20on\ + e\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\x03A\x04\x1b\x1a\x12\x20Unspecifed\x20\ + code.\n\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03A\x04\x16\n\x0e\n\x07\ + \x04\x01\x04\0\x02\0\x02\x12\x03A\x19\x1a\nD\n\x06\x04\x01\x04\0\x02\x01\ + \x12\x03D\x04\r\x1a5\x20The\x20operation\x20or\x20step\x20has\x20complet\ + ed\x20without\x20errors.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03\ + D\x04\x08\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03D\x0b\x0c\n;\n\ + \x06\x04\x01\x04\0\x02\x02\x12\x03G\x04\x14\x1a,\x20The\x20operation\x20\ + or\x20step\x20has\x20not\x20started\x20yet.\n\n\x0e\n\x07\x04\x01\x04\0\ + \x02\x02\x01\x12\x03G\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\ + \x03G\x12\x13\n6\n\x06\x04\x01\x04\0\x02\x03\x12\x03J\x04\x14\x1a'\x20Th\ + e\x20operation\x20or\x20step\x20is\x20in\x20progress.\n\n\x0e\n\x07\x04\ + \x01\x04\0\x02\x03\x01\x12\x03J\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\ + \x03\x02\x12\x03J\x12\x13\n\x8c\x01\n\x06\x04\x01\x04\0\x02\x04\x12\x03N\ + \x04\x0f\x1a}\x20The\x20operation\x20or\x20step\x20has\x20completed\x20w\ + ith\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\x03N\x04\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\ + \x02\x12\x03N\r\x0e\nG\n\x06\x04\x01\x04\0\x02\x05\x12\x03Q\x04\x12\x1a8\ + \x20The\x20operation\x20or\x20step\x20has\x20completed\x20with\x20cancel\ + lation.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x01\x12\x03Q\x04\r\n\x0e\n\ + \x07\x04\x01\x04\0\x02\x05\x02\x12\x03Q\x10\x11\n_\n\x04\x04\x01\x02\0\ + \x12\x03V\x02%\x1aR\x20The\x20full\x20name\x20of\x20the\x20resources\x20\ + that\x20this\x20operation\x20is\x20directly\n\x20associated\x20with.\n\n\ + \x0c\n\x05\x04\x01\x02\0\x04\x12\x03V\x02\n\n\x0c\n\x05\x04\x01\x02\0\ + \x05\x12\x03V\x0b\x11\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03V\x12\x20\n\ + \x0c\n\x05\x04\x01\x02\0\x03\x12\x03V#$\nT\n\x04\x04\x01\x02\x01\x12\x03\ + Y\x02\x1a\x1aG\x20Detailed\x20status\x20information\x20for\x20each\x20st\ + ep.\x20The\x20order\x20is\x20undetermined.\n\n\x0c\n\x05\x04\x01\x02\x01\ + \x04\x12\x03Y\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03Y\x0b\x0f\n\ + \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03Y\x10\x15\n\x0c\n\x05\x04\x01\x02\ + \x01\x03\x12\x03Y\x18\x19\nQ\n\x04\x04\x01\x02\x02\x12\x03\\\x02\x20\x1a\ + D\x20Percentage\x20of\x20completion\x20of\x20this\x20operation,\x20rangi\ + ng\x20from\x200\x20to\x20100.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04\\\ + \x02Y\x1a\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03\\\x02\x07\n\x0c\n\x05\ + \x04\x01\x02\x02\x01\x12\x03\\\x08\x1b\n\x0c\n\x05\x04\x01\x02\x02\x03\ + \x12\x03\\\x1e\x1f\n/\n\x04\x04\x01\x02\x03\x12\x03_\x02+\x1a\"\x20The\ + \x20start\x20time\x20of\x20the\x20operation.\n\n\r\n\x05\x04\x01\x02\x03\ + \x04\x12\x04_\x02\\\x20\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\x04c\0u\x01\x1a4\x20Represents\ + \x20a\x20diagnostic\x20message\x20(error\x20or\x20warning)\n\n\n\n\x03\ + \x04\x02\x01\x12\x03c\x08\x12\n<\n\x04\x04\x02\x04\0\x12\x04e\x02k\x03\ + \x1a.\x20The\x20kind\x20of\x20diagnostic\x20information\x20possible.\n\n\ + \x0c\n\x05\x04\x02\x04\0\x01\x12\x03e\x07\x0b\n$\n\x06\x04\x02\x04\0\x02\ + \0\x12\x03g\x04\x10\x1a\x15\x20Warnings\x20and\x20errors\n\n\x0e\n\x07\ + \x04\x02\x04\0\x02\0\x01\x12\x03g\x04\x0b\n\x0e\n\x07\x04\x02\x04\0\x02\ + \0\x02\x12\x03g\x0e\x0f\n\x1c\n\x06\x04\x02\x04\0\x02\x01\x12\x03j\x04\ + \x0e\x1a\r\x20Only\x20errors\n\n\x0e\n\x07\x04\x02\x04\0\x02\x01\x01\x12\ + \x03j\x04\t\n\x0e\n\x07\x04\x02\x04\0\x02\x01\x02\x12\x03j\x0c\r\nA\n\ + \x04\x04\x02\x02\0\x12\x03n\x02\x16\x1a4\x20File\x20name\x20and\x20line\ + \x20number\x20of\x20the\x20error\x20or\x20warning.\n\n\r\n\x05\x04\x02\ + \x02\0\x04\x12\x04n\x02k\x03\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03n\x02\ + \x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03n\t\x11\n\x0c\n\x05\x04\x02\ + \x02\0\x03\x12\x03n\x14\x15\n;\n\x04\x04\x02\x02\x01\x12\x03q\x02\x10\ + \x1a.\x20The\x20kind\x20of\x20diagnostic\x20information\x20provided.\n\n\ + \r\n\x05\x04\x02\x02\x01\x04\x12\x04q\x02n\x16\n\x0c\n\x05\x04\x02\x02\ + \x01\x06\x12\x03q\x02\x06\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03q\x07\ + \x0b\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03q\x0e\x0f\n7\n\x04\x04\x02\ + \x02\x02\x12\x03t\x02\x15\x1a*\x20Message\x20describing\x20the\x20error\ + \x20or\x20warning.\n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04t\x02q\x10\n\ + \x0c\n\x05\x04\x02\x02\x02\x05\x12\x03t\x02\x08\n\x0c\n\x05\x04\x02\x02\ + \x02\x01\x12\x03t\t\x10\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03t\x13\x14\ + \n}\n\x02\x04\x03\x12\x05y\0\x82\x01\x01\x1ap\x20Represents\x20a\x20sour\ + ce\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\x03y\x08\x14\n\xb6\x01\n\x04\x04\x03\x02\0\x12\x03}\ + \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\r\n\x05\ + \x04\x03\x02\0\x04\x12\x04}\x02y\x16\n\x0c\n\x05\x04\x03\x02\0\x05\x12\ + \x03}\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03}\t\x0b\n\x0c\n\x05\ + \x04\x03\x02\0\x03\x12\x03}\x0e\x0f\n|\n\x04\x04\x03\x02\x01\x12\x04\x81\ + \x01\x02\x20\x1an\x20Set\x20of\x20source\x20configuration\x20files\x20th\ + at\x20are\x20used\x20to\x20generate\x20a\x20service\n\x20configuration\ + \x20(`google.api.Service`).\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04\x81\ + \x01\x02\n\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\x81\x01\x0b\x15\n\r\n\ + \x05\x04\x03\x02\x01\x01\x12\x04\x81\x01\x16\x1b\n\r\n\x05\x04\x03\x02\ + \x01\x03\x12\x04\x81\x01\x1e\x1f\nD\n\x02\x04\x04\x12\x06\x85\x01\0\xac\ + \x01\x01\x1a6\x20Generic\x20specification\x20of\x20a\x20source\x20config\ + uration\x20file\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x85\x01\x08\x12\n\x0e\ + \n\x04\x04\x04\x04\0\x12\x06\x86\x01\x02\xa2\x01\x03\n\r\n\x05\x04\x04\ + \x04\0\x01\x12\x04\x86\x01\x07\x0f\n$\n\x06\x04\x04\x04\0\x02\0\x12\x04\ + \x88\x01\x04\x1e\x1a\x14\x20Unknown\x20file\x20type.\n\n\x0f\n\x07\x04\ + \x04\x04\0\x02\0\x01\x12\x04\x88\x01\x04\x19\n\x0f\n\x07\x04\x04\x04\0\ + \x02\0\x02\x12\x04\x88\x01\x1c\x1d\n0\n\x06\x04\x04\x04\0\x02\x01\x12\ + \x04\x8b\x01\x04\x1c\x1a\x20\x20YAML-specification\x20of\x20service.\n\n\ + \x0f\n\x07\x04\x04\x04\0\x02\x01\x01\x12\x04\x8b\x01\x04\x17\n\x0f\n\x07\ + \x04\x04\x04\0\x02\x01\x02\x12\x04\x8b\x01\x1a\x1b\n<\n\x06\x04\x04\x04\ + \0\x02\x02\x12\x04\x8e\x01\x04\x16\x1a,\x20OpenAPI\x20specification,\x20\ + serialized\x20in\x20JSON.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x01\x12\ + \x04\x8e\x01\x04\x11\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x02\x12\x04\x8e\ + \x01\x14\x15\n<\n\x06\x04\x04\x04\0\x02\x03\x12\x04\x91\x01\x04\x16\x1a,\ + \x20OpenAPI\x20specification,\x20serialized\x20in\x20YAML.\n\n\x0f\n\x07\ + \x04\x04\x04\0\x02\x03\x01\x12\x04\x91\x01\x04\x11\n\x0f\n\x07\x04\x04\ + \x04\0\x02\x03\x02\x12\x04\x91\x01\x14\x15\n\xaa\x02\n\x06\x04\x04\x04\0\ + \x02\x04\x12\x04\x9a\x01\x04\"\x1a\x99\x02\x20FileDescriptorSet,\x20gene\ + rated\x20by\x20protoc.\n\n\x20To\x20generate,\x20use\x20protoc\x20with\ + \x20imports\x20and\x20source\x20info\x20included.\n\x20For\x20an\x20exam\ + ple\x20test.proto\x20file,\x20the\x20following\x20command\x20would\x20pu\ + t\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\x9a\x01\ + \x04\x1d\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x02\x12\x04\x9a\x01\x20!\n\ + \xd3\x02\n\x06\x04\x04\x04\0\x02\x05\x12\x04\xa1\x01\x04\x13\x1a\xc2\x02\ + \x20Uncompiled\x20Proto\x20file.\x20Used\x20for\x20storage\x20and\x20dis\ + play\x20purposes\x20only,\n\x20currently\x20server-side\x20compilation\ + \x20is\x20not\x20supported.\x20Should\x20match\x20the\n\x20inputs\x20to\ + \x20'protoc'\x20command\x20used\x20to\x20generated\x20FILE_DESCRIPTOR_SE\ + T_PROTO.\x20A\n\x20file\x20of\x20this\x20type\x20can\x20only\x20be\x20in\ + cluded\x20if\x20at\x20least\x20one\x20file\x20of\x20type\n\x20FILE_DESCR\ + IPTOR_SET_PROTO\x20is\x20included.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x05\ + \x01\x12\x04\xa1\x01\x04\x0e\n\x0f\n\x07\x04\x04\x04\0\x02\x05\x02\x12\ + \x04\xa1\x01\x11\x12\nP\n\x04\x04\x04\x02\0\x12\x04\xa5\x01\x02\x17\x1aB\ + \x20The\x20file\x20name\x20of\x20the\x20configuration\x20file\x20(full\ + \x20or\x20relative\x20path).\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xa5\ + \x01\x02\xa2\x01\x03\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xa5\x01\x02\x08\ + \n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xa5\x01\t\x12\n\r\n\x05\x04\x04\x02\ + \0\x03\x12\x04\xa5\x01\x15\x16\n3\n\x04\x04\x04\x02\x01\x12\x04\xa8\x01\ + \x02\x1a\x1a%\x20The\x20bytes\x20that\x20constitute\x20the\x20file.\n\n\ + \x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\xa8\x01\x02\xa5\x01\x17\n\r\n\x05\ + \x04\x04\x02\x01\x05\x12\x04\xa8\x01\x02\x07\n\r\n\x05\x04\x04\x02\x01\ + \x01\x12\x04\xa8\x01\x08\x15\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xa8\ + \x01\x18\x19\n?\n\x04\x04\x04\x02\x02\x12\x04\xab\x01\x02\x19\x1a1\x20Th\ + e\x20type\x20of\x20configuration\x20file\x20this\x20represents.\n\n\x0f\ + \n\x05\x04\x04\x02\x02\x04\x12\x06\xab\x01\x02\xa8\x01\x1a\n\r\n\x05\x04\ + \x04\x02\x02\x06\x12\x04\xab\x01\x02\n\n\r\n\x05\x04\x04\x02\x02\x01\x12\ + \x04\xab\x01\x0b\x14\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xab\x01\x17\ + \x18\nH\n\x02\x04\x05\x12\x06\xaf\x01\0\xb3\x01\x01\x1a:\x20Represents\ + \x20a\x20service\x20configuration\x20with\x20its\x20name\x20and\x20id.\n\ + \n\x0b\n\x03\x04\x05\x01\x12\x04\xaf\x01\x08\x11\n\x85\x01\n\x04\x04\x05\ + \x02\0\x12\x04\xb2\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\x0f\n\x05\ + \x04\x05\x02\0\x04\x12\x06\xb2\x01\x02\xaf\x01\x13\n\r\n\x05\x04\x05\x02\ + \0\x05\x12\x04\xb2\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xb2\ + \x01\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xb2\x01\x10\x11\n\xb5\x01\n\ + \x02\x04\x06\x12\x06\xb9\x01\0\xc0\x01\x01\x1a\xa6\x01\x20Change\x20repo\ + rt\x20associated\x20with\x20a\x20particular\x20service\x20configuration.\ + \n\n\x20It\x20contains\x20a\x20list\x20of\x20ConfigChanges\x20based\x20o\ + n\x20the\x20comparison\x20between\n\x20two\x20service\x20configurations.\ + \n\n\x0b\n\x03\x04\x06\x01\x12\x04\xb9\x01\x08\x14\n\xae\x02\n\x04\x04\ + \x06\x02\0\x12\x04\xbf\x01\x026\x1a\x9f\x02\x20List\x20of\x20changes\x20\ + between\x20two\x20service\x20configurations.\n\x20The\x20changes\x20will\ + \x20be\x20alphabetically\x20sorted\x20based\x20on\x20the\x20identifier\n\ + \x20of\x20each\x20change.\n\x20A\x20ConfigChange\x20identifier\x20is\x20\ + a\x20dot\x20separated\x20path\x20to\x20the\x20configuration.\n\x20Exampl\ + e:\x20visibility.rules[selector='LibraryService.CreateBook'].restriction\ + \n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xbf\x01\x02\n\n\r\n\x05\x04\x06\ + \x02\0\x06\x12\x04\xbf\x01\x0b\"\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xbf\ + \x01#1\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xbf\x0145\n\xeb\x01\n\x02\x04\ + \x07\x12\x06\xc5\x01\0\xaf\x02\x01\x1a\xdc\x01\x20A\x20rollout\x20resour\ + ce\x20that\x20defines\x20how\x20service\x20configuration\x20versions\x20\ + are\x20pushed\n\x20to\x20control\x20plane\x20systems.\x20Typically,\x20y\ + ou\x20create\x20a\x20new\x20version\x20of\x20the\n\x20service\x20config,\ + \x20and\x20then\x20create\x20a\x20Rollout\x20to\x20push\x20the\x20servic\ + e\x20config.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xc5\x01\x08\x0f\n\xbd\x06\ + \n\x04\x04\x07\x03\0\x12\x06\xe4\x01\x02\xe9\x01\x03\x1a\xac\x06\x20Stra\ + tegy\x20that\x20specifies\x20how\x20clients\x20of\x20Google\x20Service\ + \x20Controller\x20want\x20to\n\x20send\x20traffic\x20to\x20use\x20differ\ + ent\x20config\x20versions.\x20This\x20is\x20generally\n\x20used\x20by\ + \x20API\x20proxy\x20to\x20split\x20traffic\x20based\x20on\x20your\x20con\ + figured\x20percentage\x20for\n\x20each\x20config\x20version.\n\n\x20One\ + \x20example\x20of\x20how\x20to\x20gradually\x20rollout\x20a\x20new\x20se\ + rvice\x20configuration\x20using\n\x20this\n\x20strategy:\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\x20p\ + ercentages:\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\":\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\"example.googleapis.com/rollout_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\xe4\x01\n\x20\n\xe3\ + \x01\n\x06\x04\x07\x03\0\x02\0\x12\x04\xe8\x01\x04(\x1a\xd2\x01\x20Maps\ + \x20service\x20configuration\x20IDs\x20to\x20their\x20corresponding\x20t\ + raffic\x20percentage.\n\x20Key\x20is\x20the\x20service\x20configuration\ + \x20ID,\x20Value\x20is\x20the\x20traffic\x20percentage\n\x20which\x20mus\ + t\x20be\x20greater\x20than\x200.0\x20and\x20the\x20sum\x20must\x20equal\ + \x20to\x20100.0.\n\n\x11\n\x07\x04\x07\x03\0\x02\0\x04\x12\x06\xe8\x01\ + \x04\xe4\x01\"\n\x0f\n\x07\x04\x07\x03\0\x02\0\x06\x12\x04\xe8\x01\x04\ + \x17\n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\xe8\x01\x18#\n\x0f\n\ + \x07\x04\x07\x03\0\x02\0\x03\x12\x04\xe8\x01&'\n\x94\x01\n\x04\x04\x07\ + \x03\x01\x12\x06\xed\x01\x02\xef\x01\x03\x1a\x83\x01\x20Strategy\x20used\ + \x20to\x20delete\x20a\x20service.\x20This\x20strategy\x20is\x20a\x20plac\ + eholder\x20only\n\x20used\x20by\x20the\x20system\x20generated\x20rollout\ + \x20to\x20delete\x20a\x20service.\n\n\r\n\x05\x04\x07\x03\x01\x01\x12\ + \x04\xed\x01\n\x1f\n&\n\x04\x04\x07\x04\0\x12\x06\xf2\x01\x02\x89\x02\ + \x03\x1a\x16\x20Status\x20of\x20a\x20Rollout.\n\n\r\n\x05\x04\x07\x04\0\ + \x01\x12\x04\xf2\x01\x07\x14\n&\n\x06\x04\x07\x04\0\x02\0\x12\x04\xf4\ + \x01\x04#\x1a\x16\x20No\x20status\x20specified.\n\n\x0f\n\x07\x04\x07\ + \x04\0\x02\0\x01\x12\x04\xf4\x01\x04\x1e\n\x0f\n\x07\x04\x07\x04\0\x02\0\ + \x02\x12\x04\xf4\x01!\"\n-\n\x06\x04\x07\x04\0\x02\x01\x12\x04\xf7\x01\ + \x04\x14\x1a\x1d\x20The\x20Rollout\x20is\x20in\x20progress.\n\n\x0f\n\ + \x07\x04\x07\x04\0\x02\x01\x01\x12\x04\xf7\x01\x04\x0f\n\x0f\n\x07\x04\ + \x07\x04\0\x02\x01\x02\x12\x04\xf7\x01\x12\x13\n9\n\x06\x04\x07\x04\0\ + \x02\x02\x12\x04\xfa\x01\x04\x10\x1a)\x20The\x20Rollout\x20has\x20comple\ + ted\x20successfully.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x01\x12\x04\xfa\ + \x01\x04\x0b\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x02\x12\x04\xfa\x01\x0e\ + \x0f\n\x94\x01\n\x06\x04\x07\x04\0\x02\x03\x12\x04\xfe\x01\x04\x12\x1a\ + \x83\x01\x20The\x20Rollout\x20has\x20been\x20cancelled.\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\xfe\x01\x04\r\n\x0f\n\x07\x04\x07\ + \x04\0\x02\x03\x02\x12\x04\xfe\x01\x10\x11\nQ\n\x06\x04\x07\x04\0\x02\ + \x04\x12\x04\x81\x02\x04\x0f\x1aA\x20The\x20Rollout\x20has\x20failed\x20\ + and\x20the\x20rollback\x20attempt\x20has\x20failed\x20too.\n\n\x0f\n\x07\ + \x04\x07\x04\0\x02\x04\x01\x12\x04\x81\x02\x04\n\n\x0f\n\x07\x04\x07\x04\ + \0\x02\x04\x02\x12\x04\x81\x02\r\x0e\nO\n\x06\x04\x07\x04\0\x02\x05\x12\ + \x04\x84\x02\x04\x10\x1a?\x20The\x20Rollout\x20has\x20not\x20started\x20\ + yet\x20and\x20is\x20pending\x20for\x20execution.\n\n\x0f\n\x07\x04\x07\ + \x04\0\x02\x05\x01\x12\x04\x84\x02\x04\x0b\n\x0f\n\x07\x04\x07\x04\0\x02\ + \x05\x02\x12\x04\x84\x02\x0e\x0f\n]\n\x06\x04\x07\x04\0\x02\x06\x12\x04\ + \x88\x02\x04\x1b\x1aM\x20The\x20Rollout\x20has\x20failed\x20and\x20rolle\ + d\x20back\x20to\x20the\x20previous\x20successful\n\x20Rollout.\n\n\x0f\n\ + \x07\x04\x07\x04\0\x02\x06\x01\x12\x04\x88\x02\x04\x16\n\x0f\n\x07\x04\ + \x07\x04\0\x02\x06\x02\x12\x04\x88\x02\x19\x1a\n\xfe\x03\n\x04\x04\x07\ + \x02\0\x12\x04\x93\x02\x02A\x1a\xef\x03\x20Optional.\x20Unique\x20identi\ + fier\x20of\x20this\x20Rollout.\x20Must\x20be\x20no\x20longer\x20than\x20\ + 63\x20characters\n\x20and\x20only\x20lower\x20case\x20letters,\x20digits\ + ,\x20'.',\x20'_'\x20and\x20'-'\x20are\x20allowed.\n\n\x20If\x20not\x20sp\ + ecified\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\x20th\ + at\x20is\x20reset\x20every\x20day\x20for\x20each\x20service.\n\x20An\x20\ + example\x20of\x20the\x20generated\x20rollout_id\x20is\x20'2016-02-16r1'\ + \n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\x93\x02\x02\x89\x02\x03\n\r\n\ + \x05\x04\x07\x02\0\x05\x12\x04\x93\x02\x02\x08\n\r\n\x05\x04\x07\x02\0\ + \x01\x12\x04\x93\x02\t\x13\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x93\x02\ + \x16\x17\n\r\n\x05\x04\x07\x02\0\x08\x12\x04\x93\x02\x18@\n\x10\n\x08\ + \x04\x07\x02\0\x08\x9c\x08\0\x12\x04\x93\x02\x19?\n7\n\x04\x04\x07\x02\ + \x01\x12\x04\x96\x02\x02,\x1a)\x20Creation\x20time\x20of\x20the\x20rollo\ + ut.\x20Readonly.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\x96\x02\x02\ + \x93\x02A\n\r\n\x05\x04\x07\x02\x01\x06\x12\x04\x96\x02\x02\x1b\n\r\n\ + \x05\x04\x07\x02\x01\x01\x12\x04\x96\x02\x1c'\n\r\n\x05\x04\x07\x02\x01\ + \x03\x12\x04\x96\x02*+\n;\n\x04\x04\x07\x02\x02\x12\x04\x99\x02\x02\x18\ + \x1a-\x20The\x20user\x20who\x20created\x20the\x20Rollout.\x20Readonly.\n\ + \n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\x99\x02\x02\x96\x02,\n\r\n\x05\ + \x04\x07\x02\x02\x05\x12\x04\x99\x02\x02\x08\n\r\n\x05\x04\x07\x02\x02\ + \x01\x12\x04\x99\x02\t\x13\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\x99\x02\ + \x16\x17\n\xa6\x01\n\x04\x04\x07\x02\x03\x12\x04\x9e\x02\x02\x1b\x1a\x97\ + \x01\x20The\x20status\x20of\x20this\x20rollout.\x20Readonly.\x20In\x20ca\ + se\x20of\x20a\x20failed\x20rollout,\n\x20the\x20system\x20will\x20automa\ + tically\x20rollback\x20to\x20the\x20current\x20Rollout\n\x20version.\x20\ + Readonly.\n\n\x0f\n\x05\x04\x07\x02\x03\x04\x12\x06\x9e\x02\x02\x99\x02\ + \x18\n\r\n\x05\x04\x07\x02\x03\x06\x12\x04\x9e\x02\x02\x0f\n\r\n\x05\x04\ + \x07\x02\x03\x01\x12\x04\x9e\x02\x10\x16\n\r\n\x05\x04\x07\x02\x03\x03\ + \x12\x04\x9e\x02\x19\x1a\n\x8b\x01\n\x04\x04\x07\x08\0\x12\x06\xa3\x02\ + \x02\xab\x02\x03\x1a{\x20Strategy\x20that\x20defines\x20which\x20version\ + s\x20of\x20service\x20configurations\x20should\x20be\n\x20pushed\n\x20an\ + d\x20how\x20they\x20should\x20be\x20used\x20at\x20runtime.\n\n\r\n\x05\ + \x04\x07\x08\0\x01\x12\x04\xa3\x02\x08\x10\nc\n\x04\x04\x07\x02\x04\x12\ + \x04\xa6\x02\x048\x1aU\x20Google\x20Service\x20Control\x20selects\x20ser\ + vice\x20configurations\x20based\x20on\n\x20traffic\x20percentage.\n\n\r\ + \n\x05\x04\x07\x02\x04\x06\x12\x04\xa6\x02\x04\x1a\n\r\n\x05\x04\x07\x02\ + \x04\x01\x12\x04\xa6\x02\x1b3\n\r\n\x05\x04\x07\x02\x04\x03\x12\x04\xa6\ + \x0267\n_\n\x04\x04\x07\x02\x05\x12\x04\xaa\x02\x048\x1aQ\x20The\x20stra\ + tegy\x20associated\x20with\x20a\x20rollout\x20to\x20delete\x20a\x20`Mana\ + gedService`.\n\x20Readonly.\n\n\r\n\x05\x04\x07\x02\x05\x06\x12\x04\xaa\ + \x02\x04\x19\n\r\n\x05\x04\x07\x02\x05\x01\x12\x04\xaa\x02\x1a1\n\r\n\ + \x05\x04\x07\x02\x05\x03\x12\x04\xaa\x0247\nE\n\x04\x04\x07\x02\x06\x12\ + \x04\xae\x02\x02\x1a\x1a7\x20The\x20name\x20of\x20the\x20service\x20asso\ + ciated\x20with\x20this\x20Rollout.\n\n\x0f\n\x05\x04\x07\x02\x06\x04\x12\ + \x06\xae\x02\x02\xab\x02\x03\n\r\n\x05\x04\x07\x02\x06\x05\x12\x04\xae\ + \x02\x02\x08\n\r\n\x05\x04\x07\x02\x06\x01\x12\x04\xae\x02\t\x15\n\r\n\ + \x05\x04\x07\x02\x06\x03\x12\x04\xae\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs new file mode 100644 index 0000000000..ee3c4bc1bd --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs @@ -0,0 +1,5524 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/servicemanagement/v1/servicemanager.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct ListServicesRequest { + // message fields + pub producer_project_id: ::std::string::String, + pub page_size: i32, + pub page_token: ::std::string::String, + pub consumer_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListServicesRequest { + fn default() -> &'a ListServicesRequest { + ::default_instance() + } +} + +impl ListServicesRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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_singular_proto3_string_into(wire_type, is, &mut self.consumer_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.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); + } + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.page_token); + } + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.producer_project_id.is_empty() { + os.write_string(1, &self.producer_project_id)?; + } + 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)?; + } + if !self.consumer_id.is_empty() { + os.write_string(7, &self.consumer_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() -> 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 default_instance() -> &'static ListServicesRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListServicesRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListServicesResponse { + // message fields + pub services: ::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 ListServicesResponse { + fn default() -> &'a ListServicesResponse { + ::default_instance() + } +} + +impl ListServicesResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.services { + 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.services { + 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() -> 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 default_instance() -> &'static ListServicesResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListServicesResponse::new) + } +} + +impl ::protobuf::Clear for ListServicesResponse { + fn clear(&mut self) { + self.services.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetServiceRequest { + // message fields + pub service_name: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetServiceRequest { + fn default() -> &'a GetServiceRequest { + ::default_instance() + } +} + +impl GetServiceRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static GetServiceRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetServiceRequest::new) + } +} + +impl ::protobuf::Clear for GetServiceRequest { + fn clear(&mut self) { + self.service_name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateServiceRequest { + // message fields + pub service: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateServiceRequest { + fn default() -> &'a CreateServiceRequest { + ::default_instance() + } +} + +impl CreateServiceRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.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.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() -> 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 default_instance() -> &'static CreateServiceRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateServiceRequest::new) + } +} + +impl ::protobuf::Clear for CreateServiceRequest { + fn clear(&mut self) { + self.service.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteServiceRequest { + // message fields + pub service_name: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DeleteServiceRequest { + fn default() -> &'a DeleteServiceRequest { + ::default_instance() + } +} + +impl DeleteServiceRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static DeleteServiceRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteServiceRequest::new) + } +} + +impl ::protobuf::Clear for DeleteServiceRequest { + fn clear(&mut self) { + self.service_name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UndeleteServiceRequest { + // message fields + pub service_name: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UndeleteServiceRequest { + fn default() -> &'a UndeleteServiceRequest { + ::default_instance() + } +} + +impl UndeleteServiceRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static UndeleteServiceRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UndeleteServiceRequest::new) + } +} + +impl ::protobuf::Clear for UndeleteServiceRequest { + fn clear(&mut self) { + self.service_name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UndeleteServiceResponse { + // message fields + pub service: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UndeleteServiceResponse { + fn default() -> &'a UndeleteServiceResponse { + ::default_instance() + } +} + +impl UndeleteServiceResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.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.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() -> 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 default_instance() -> &'static UndeleteServiceResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UndeleteServiceResponse::new) + } +} + +impl ::protobuf::Clear for UndeleteServiceResponse { + fn clear(&mut self) { + self.service.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetServiceConfigRequest { + // message fields + pub service_name: ::std::string::String, + pub config_id: ::std::string::String, + pub view: GetServiceConfigRequest_ConfigView, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetServiceConfigRequest { + fn default() -> &'a GetServiceConfigRequest { + ::default_instance() + } +} + +impl GetServiceConfigRequest { + pub fn new() -> GetServiceConfigRequest { + ::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 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.config_id)?; + }, + 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.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_name); + } + 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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + 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))?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static GetServiceConfigRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetServiceConfigRequest::new) + } +} + +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 ::std::fmt::Debug 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, +} + +impl ::protobuf::ProtobufEnum for GetServiceConfigRequest_ConfigView { + fn value(&self) -> i32 { + *self as i32 + } + + 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 + } + } + + fn values() -> &'static [Self] { + static values: &'static [GetServiceConfigRequest_ConfigView] = &[ + GetServiceConfigRequest_ConfigView::BASIC, + GetServiceConfigRequest_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 ::std::marker::Copy for GetServiceConfigRequest_ConfigView { +} + +impl ::std::default::Default for GetServiceConfigRequest_ConfigView { + fn default() -> Self { + GetServiceConfigRequest_ConfigView::BASIC + } +} + +impl ::protobuf::reflect::ProtobufValue for GetServiceConfigRequest_ConfigView { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListServiceConfigsRequest { + // message fields + pub service_name: ::std::string::String, + pub page_token: ::std::string::String, + pub page_size: i32, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListServiceConfigsRequest { + fn default() -> &'a ListServiceConfigsRequest { + ::default_instance() + } +} + +impl ListServiceConfigsRequest { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if !self.page_token.is_empty() { + 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::unknown_fields_size(self.get_unknown_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)?; + } + if !self.page_token.is_empty() { + os.write_string(2, &self.page_token)?; + } + if self.page_size != 0 { + os.write_int32(3, self.page_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 as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static ListServiceConfigsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListServiceConfigsRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListServiceConfigsResponse { + // message fields + pub service_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 ListServiceConfigsResponse { + fn default() -> &'a ListServiceConfigsResponse { + ::default_instance() + } +} + +impl ListServiceConfigsResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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_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.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)?; + }; + 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() -> 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 default_instance() -> &'static ListServiceConfigsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListServiceConfigsResponse::new) + } +} + +impl ::protobuf::Clear for ListServiceConfigsResponse { + fn clear(&mut self) { + self.service_configs.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateServiceConfigRequest { + // message fields + pub service_name: ::std::string::String, + pub service_config: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateServiceConfigRequest { + fn default() -> &'a CreateServiceConfigRequest { + ::default_instance() + } +} + +impl CreateServiceConfigRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.service_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.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_name); + } + if let Some(ref v) = self.service_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.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static CreateServiceConfigRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateServiceConfigRequest::new) + } +} + +impl ::protobuf::Clear for CreateServiceConfigRequest { + fn clear(&mut self) { + self.service_name.clear(); + self.service_config.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SubmitConfigSourceRequest { + // message fields + pub service_name: ::std::string::String, + pub config_source: ::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 SubmitConfigSourceRequest { + fn default() -> &'a SubmitConfigSourceRequest { + ::default_instance() + } +} + +impl SubmitConfigSourceRequest { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if let Some(ref v) = self.config_source.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.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 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() -> 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(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SubmitConfigSourceResponse { + // message fields + pub service_config: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SubmitConfigSourceResponse { + fn default() -> &'a SubmitConfigSourceResponse { + ::default_instance() + } +} + +impl SubmitConfigSourceResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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_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.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static SubmitConfigSourceResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SubmitConfigSourceResponse::new) + } +} + +impl ::protobuf::Clear for SubmitConfigSourceResponse { + fn clear(&mut self) { + self.service_config.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateServiceRolloutRequest { + // message fields + pub service_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 CreateServiceRolloutRequest { + fn default() -> &'a CreateServiceRolloutRequest { + ::default_instance() + } +} + +impl CreateServiceRolloutRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::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.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_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.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static CreateServiceRolloutRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateServiceRolloutRequest::new) + } +} + +impl ::protobuf::Clear for CreateServiceRolloutRequest { + fn clear(&mut self) { + self.service_name.clear(); + self.rollout.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListServiceRolloutsRequest { + // message fields + pub service_name: ::std::string::String, + pub page_token: ::std::string::String, + pub page_size: i32, + pub filter: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListServiceRolloutsRequest { + fn default() -> &'a ListServiceRolloutsRequest { + ::default_instance() + } +} + +impl ListServiceRolloutsRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + }, + 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.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.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_name); + } + if !self.page_token.is_empty() { + 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); + } + 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.service_name.is_empty() { + os.write_string(1, &self.service_name)?; + } + if !self.page_token.is_empty() { + os.write_string(2, &self.page_token)?; + } + if self.page_size != 0 { + os.write_int32(3, self.page_size)?; + } + 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() -> 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 default_instance() -> &'static ListServiceRolloutsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListServiceRolloutsRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListServiceRolloutsResponse { + // message fields + pub rollouts: ::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 ListServiceRolloutsResponse { + fn default() -> &'a ListServiceRolloutsResponse { + ::default_instance() + } +} + +impl ListServiceRolloutsResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.rollouts { + 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.rollouts { + 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() -> 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 default_instance() -> &'static ListServiceRolloutsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListServiceRolloutsResponse::new) + } +} + +impl ::protobuf::Clear for ListServiceRolloutsResponse { + fn clear(&mut self) { + self.rollouts.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetServiceRolloutRequest { + // message fields + pub service_name: ::std::string::String, + pub rollout_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetServiceRolloutRequest { + fn default() -> &'a GetServiceRolloutRequest { + ::default_instance() + } +} + +impl GetServiceRolloutRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.rollout_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.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_name); + } + 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 + } + + 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)?; + } + if !self.rollout_id.is_empty() { + os.write_string(2, &self.rollout_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() -> 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 default_instance() -> &'static GetServiceRolloutRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetServiceRolloutRequest::new) + } +} + +impl ::protobuf::Clear for GetServiceRolloutRequest { + fn clear(&mut self) { + self.service_name.clear(); + self.rollout_id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct EnableServiceRequest { + // message fields + pub service_name: ::std::string::String, + pub consumer_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a EnableServiceRequest { + fn default() -> &'a EnableServiceRequest { + ::default_instance() + } +} + +impl EnableServiceRequest { + pub fn new() -> EnableServiceRequest { + ::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 consumer_id = 2; + + + 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()) + } +} + +impl ::protobuf::Message for 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 { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_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.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.get_unknown_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)?; + } + if !self.consumer_id.is_empty() { + os.write_string(2, &self.consumer_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() -> EnableServiceRequest { + EnableServiceRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &EnableServiceRequest| { &m.service_name }, + |m: &mut EnableServiceRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "consumer_id", + |m: &EnableServiceRequest| { &m.consumer_id }, + |m: &mut EnableServiceRequest| { &mut m.consumer_id }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "EnableServiceRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static EnableServiceRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(EnableServiceRequest::new) + } +} + +impl ::protobuf::Clear for EnableServiceRequest { + fn clear(&mut self) { + self.service_name.clear(); + self.consumer_id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for EnableServiceRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for EnableServiceRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct EnableServiceResponse { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a EnableServiceResponse { + fn default() -> &'a EnableServiceResponse { + ::default_instance() + } +} + +impl EnableServiceResponse { + pub fn new() -> EnableServiceResponse { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for EnableServiceResponse { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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() -> 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 default_instance() -> &'static EnableServiceResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(EnableServiceResponse::new) + } +} + +impl ::protobuf::Clear for EnableServiceResponse { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for EnableServiceResponse { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DisableServiceRequest { + // message fields + pub service_name: ::std::string::String, + pub consumer_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DisableServiceRequest { + fn default() -> &'a DisableServiceRequest { + ::default_instance() + } +} + +impl DisableServiceRequest { + pub fn new() -> DisableServiceRequest { + ::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 consumer_id = 2; + + + 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()) + } +} + +impl ::protobuf::Message for DisableServiceRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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_singular_proto3_string_into(wire_type, is, &mut self.consumer_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.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.get_unknown_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)?; + } + if !self.consumer_id.is_empty() { + os.write_string(2, &self.consumer_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() -> DisableServiceRequest { + DisableServiceRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DisableServiceRequest| { &m.service_name }, + |m: &mut DisableServiceRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "consumer_id", + |m: &DisableServiceRequest| { &m.consumer_id }, + |m: &mut DisableServiceRequest| { &mut m.consumer_id }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DisableServiceRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DisableServiceRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DisableServiceRequest::new) + } +} + +impl ::protobuf::Clear for DisableServiceRequest { + fn clear(&mut self) { + self.service_name.clear(); + self.consumer_id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DisableServiceRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DisableServiceRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DisableServiceResponse { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DisableServiceResponse { + fn default() -> &'a DisableServiceResponse { + ::default_instance() + } +} + +impl DisableServiceResponse { + pub fn new() -> DisableServiceResponse { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for DisableServiceResponse { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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() -> DisableServiceResponse { + DisableServiceResponse::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::( + "DisableServiceResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DisableServiceResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DisableServiceResponse::new) + } +} + +impl ::protobuf::Clear for DisableServiceResponse { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DisableServiceResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DisableServiceResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GenerateConfigReportRequest { + // message fields + pub new_config: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>, + pub old_config: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GenerateConfigReportRequest { + fn default() -> &'a GenerateConfigReportRequest { + ::default_instance() + } +} + +impl GenerateConfigReportRequest { + pub fn new() -> GenerateConfigReportRequest { + ::std::default::Default::default() + } + + // .google.protobuf.Any new_config = 1; + + + 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(); + } + + pub fn has_new_config(&self) -> bool { + self.new_config.is_some() + } + + // 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); + } + + // 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(); + } + self.new_config.as_mut().unwrap() + } + + // 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()) + } + + // .google.protobuf.Any old_config = 2; + + + 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()) + } + pub fn clear_old_config(&mut self) { + self.old_config.clear(); + } + + pub fn has_old_config(&self) -> bool { + self.old_config.is_some() + } + + // 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); + } + + // 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() + } + + // 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.old_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.new_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.old_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.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)?; + } + 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static GenerateConfigReportRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GenerateConfigReportRequest::new) + } +} + +impl ::protobuf::Clear for GenerateConfigReportRequest { + fn clear(&mut self) { + self.new_config.clear(); + self.old_config.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GenerateConfigReportResponse { + // message fields + pub service_name: ::std::string::String, + pub id: ::std::string::String, + pub change_reports: ::protobuf::RepeatedField, + pub diagnostics: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GenerateConfigReportResponse { + fn default() -> &'a GenerateConfigReportResponse { + ::default_instance() + } +} + +impl GenerateConfigReportResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; + }, + 3 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.change_reports)?; + }, + 4 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.diagnostics)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if !self.id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.id); + } + for value in &self.change_reports { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + if !self.id.is_empty() { + 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)?; + }; + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static GenerateConfigReportResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GenerateConfigReportResponse::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +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\x20google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\ + \"\xa6\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\tpageTo\ + ken\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\x11GetServ\ + iceRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\ + \x03\xe0A\x02\"f\n\x14CreateServiceRequest\x12N\n\x07service\x18\x01\x20\ + \x01(\x0b2/.google.api.servicemanagement.v1.ManagedServiceR\x07serviceB\ + \x03\xe0A\x02\">\n\x14DeleteServiceRequest\x12&\n\x0cservice_name\x18\ + \x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\"@\n\x16UndeleteServiceReq\ + uest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\ + \x02\"d\n\x17UndeleteServiceResponse\x12I\n\x07service\x18\x01\x20\x01(\ + \x0b2/.google.api.servicemanagement.v1.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.goog\ + le.api.servicemanagement.v1.GetServiceConfigRequest.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_size\x18\x03\x20\x01(\x05R\x08pageSize\"\ + \x82\x01\n\x1aListServiceConfigsResponse\x12<\n\x0fservice_configs\x18\ + \x01\x20\x03(\x0b2\x13.google.api.ServiceR\x0eserviceConfigs\x12&\n\x0fn\ + ext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\x85\x01\n\x1aCreateS\ + erviceConfigRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bservic\ + eNameB\x03\xe0A\x02\x12?\n\x0eservice_config\x18\x02\x20\x01(\x0b2\x13.g\ + oogle.api.ServiceR\rserviceConfigB\x03\xe0A\x02\"\xc6\x01\n\x19SubmitCon\ + figSourceRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNa\ + meB\x03\xe0A\x02\x12W\n\rconfig_source\x18\x02\x20\x01(\x0b2-.google.api\ + .servicemanagement.v1.ConfigSourceR\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\x1bCreateServic\ + eRolloutRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNam\ + eB\x03\xe0A\x02\x12G\n\x07rollout\x18\x02\x20\x01(\x0b2(.google.api.serv\ + icemanagement.v1.RolloutR\x07rolloutB\x03\xe0A\x02\"\x9d\x01\n\x1aListSe\ + rviceRolloutsRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bservi\ + ceNameB\x03\xe0A\x02\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageToke\ + n\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\x08pageSize\x12\x1b\n\x06fi\ + lter\x18\x04\x20\x01(\tR\x06filterB\x03\xe0A\x02\"\x8b\x01\n\x1bListServ\ + iceRolloutsResponse\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\"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\"d\n\x14Enab\ + leServiceRequest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNa\ + meB\x03\xe0A\x02\x12$\n\x0bconsumer_id\x18\x02\x20\x01(\tR\nconsumerIdB\ + \x03\xe0A\x02\"\x17\n\x15EnableServiceResponse\"e\n\x15DisableServiceReq\ + uest\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\ + \x02\x12$\n\x0bconsumer_id\x18\x02\x20\x01(\tR\nconsumerIdB\x03\xe0A\x02\ + \"\x18\n\x16DisableServiceResponse\"\x91\x01\n\x1bGenerateConfigReportRe\ + quest\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.g\ + oogle.protobuf.AnyR\toldConfigB\x03\xe0A\x01\"\xf6\x01\n\x1cGenerateConf\ + igReportResponse\x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNa\ + me\x12\x0e\n\x02id\x18\x02\x20\x01(\tR\x02id\x12T\n\x0echange_reports\ + \x18\x03\x20\x03(\x0b2-.google.api.servicemanagement.v1.ChangeReportR\rc\ + hangeReports\x12M\n\x0bdiagnostics\x18\x04\x20\x03(\x0b2+.google.api.ser\ + vicemanagement.v1.DiagnosticR\x0bdiagnostics2\x92\x1e\n\x0eServiceManage\ + r\x12\xb3\x01\n\x0cListServices\x124.google.api.servicemanagement.v1.Lis\ + tServicesRequest\x1a5.google.api.servicemanagement.v1.ListServicesRespon\ + se\"6\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1/services\xdaA\x1fproducer_proje\ + ct_id,consumer_id\x12\xa5\x01\n\nGetService\x122.google.api.servicemanag\ + ement.v1.GetServiceRequest\x1a/.google.api.servicemanagement.v1.ManagedS\ + ervice\"2\xdaA\x0cservice_name\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/servic\ + es/{service_name}\x12\xf5\x01\n\rCreateService\x125.google.api.servicema\ + nagement.v1.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\ + \x8d\x01\xdaA\x07service\x82\xd3\xe4\x93\x02\x17\"\x0c/v1/services:\x07s\ + ervice\xcaAc\n.google.api.servicemanagement.v1.ManagedService\x121google\ + .api.servicemanagement.v1.OperationMetadata\x12\xe6\x01\n\rDeleteService\ + \x125.google.api.servicemanagement.v1.DeleteServiceRequest\x1a\x1d.googl\ + e.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/services/{\ + service_name}\xdaA\x0cservice_name\xcaAJ\n\x15google.protobuf.Empty\x121\ + google.api.servicemanagement.v1.OperationMetadata\x12\x96\x02\n\x0fUndel\ + eteService\x127.google.api.servicemanagement.v1.UndeleteServiceRequest\ + \x1a\x1d.google.longrunning.Operation\"\xaa\x01\xcaAl\n7google.api.servi\ + cemanagement.v1.UndeleteServiceResponse\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.servicemanagement.v1.ListServiceConfigsRequest\x1a;.google.ap\ + i.servicemanagement.v1.ListServiceConfigsResponse\":\x82\xd3\xe4\x93\x02\ + %\x12#/v1/services/{service_name}/configs\xdaA\x0cservice_name\x12\xde\ + \x01\n\x10GetServiceConfig\x128.google.api.servicemanagement.v1.GetServi\ + ceConfigRequest\x1a\x13.google.api.Service\"{\x82\xd3\xe4\x93\x02W\x12//\ + v1/services/{service_name}/configs/{config_id}Z$\x12\"/v1/services/{serv\ + ice_name}/config\xdaA\x1bservice_name,config_id,view\x12\xc2\x01\n\x13Cr\ + eateServiceConfig\x12;.google.api.servicemanagement.v1.CreateServiceConf\ + igRequest\x1a\x13.google.api.Service\"Y\xdaA\x1bservice_name,service_con\ + fig\x82\xd3\xe4\x93\x025\"#/v1/services/{service_name}/configs:\x0eservi\ + ce_config\x12\xc4\x02\n\x12SubmitConfigSource\x12:.google.api.serviceman\ + agement.v1.SubmitConfigSourceRequest\x1a\x1d.google.longrunning.Operatio\ + n\"\xd2\x01\x82\xd3\xe4\x93\x02/\"*/v1/services/{service_name}/configs:s\ + ubmit:\x01*\xcaAo\n:google.api.servicemanagement.v1.SubmitConfigSourceRe\ + sponse\x121google.api.servicemanagement.v1.OperationMetadata\xdaA(servic\ + e_name,config_source,validate_only\x12\xd4\x01\n\x13ListServiceRollouts\ + \x12;.google.api.servicemanagement.v1.ListServiceRolloutsRequest\x1a<.go\ + ogle.api.servicemanagement.v1.ListServiceRolloutsResponse\"B\x82\xd3\xe4\ + \x93\x02&\x12$/v1/services/{service_name}/rollouts\xdaA\x13service_name,\ + filter\x12\xcd\x01\n\x11GetServiceRollout\x129.google.api.servicemanagem\ + ent.v1.GetServiceRolloutRequest\x1a(.google.api.servicemanagement.v1.Rol\ + lout\"S\xdaA\x17service_name,rollout_id\x82\xd3\xe4\x93\x023\x121/v1/ser\ + vices/{service_name}/rollouts/{rollout_id}\x12\xa1\x02\n\x14CreateServic\ + eRollout\x12<.google.api.servicemanagement.v1.CreateServiceRolloutReques\ + t\x1a\x1d.google.longrunning.Operation\"\xab\x01\x82\xd3\xe4\x93\x02/\"$\ + /v1/services/{service_name}/rollouts:\x07rollout\xdaA\x14service_name,ro\ + llout\xcaA\\\n'google.api.servicemanagement.v1.Rollout\x121google.api.se\ + rvicemanagement.v1.OperationMetadata\x12\xd9\x01\n\x14GenerateConfigRepo\ + rt\x12<.google.api.servicemanagement.v1.GenerateConfigReportRequest\x1a=\ + .google.api.servicemanagement.v1.GenerateConfigReportResponse\"D\x82\xd3\ + \xe4\x93\x02&\"!/v1/services:generateConfigReport:\x01*\xdaA\x15new_conf\ + ig,old_config\x12\xa0\x02\n\rEnableService\x125.google.api.servicemanage\ + ment.v1.EnableServiceRequest\x1a\x1d.google.longrunning.Operation\"\xb8\ + \x01\x88\x02\x01\xdaA\x18service_name,consumer_id\xcaAj\n5google.api.ser\ + vicemanagement.v1.EnableServiceResponse\x121google.api.servicemanagement\ + .v1.OperationMetadata\x82\xd3\xe4\x93\x02'\"\"/v1/services/{service_name\ + }:enable:\x01*\x12\xa4\x02\n\x0eDisableService\x126.google.api.servicema\ + nagement.v1.DisableServiceRequest\x1a\x1d.google.longrunning.Operation\"\ + \xba\x01\x88\x02\x01\xdaA\x18service_name,consumer_id\x82\xd3\xe4\x93\ + \x02(\"#/v1/services/{service_name}:disable:\x01*\xcaAk\n6google.api.ser\ + vicemanagement.v1.DisableServiceResponse\x121google.api.servicemanagemen\ + t.v1.OperationMetadata\x1a\xfd\x01\xd2A\xd6\x01https://www.googleapis.co\ + m/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.rea\ + d-only,https://www.googleapis.com/auth/service.management,https://www.go\ + ogleapis.com/auth/service.management.readonly\xcaA\x20servicemanagement.\ + googleapis.comB\x84\x02\n#com.google.api.servicemanagement.v1B\x13Servic\ + eManagerProtoP\x01ZPgoogle.golang.org/genproto/googleapis/api/serviceman\ + agement/v1;servicemanagement\xa2\x02\x04GASM\xaa\x02!Google.Cloud.Servic\ + eManagement.V1\xca\x02!Google\\Cloud\\ServiceManagement\\V1\xea\x02$Goog\ + le::Cloud::ServiceManagement::V1J\xb3\x99\x01\n\x07\x12\x05\x0e\0\xaf\ + \x04\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\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\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\t\n\x02\x03\x08\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\0g\n\t\n\x02\x08\x0b\x12\x03\x1d\0g\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\04\n\t\n\x02\x08\x08\x12\x03\x1f\04\n\x08\n\x01\x08\x12\x03\ + \x20\0<\n\t\n\x02\x08\x01\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>\n\x08\n\x01\x08\x12\x03#\0=\n\t\n\x02\x08-\x12\x03#\0=\nL\ + \n\x02\x06\0\x12\x05&\0\x98\x02\x01\x1a?\x20[Google\x20Service\x20Manage\ + ment\x20API](/service-management/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\xf3\x02\n\x04\x06\0\x02\0\x12\x047\x02<\ + \x03\x1a\xe4\x02\x20Lists\x20managed\x20services.\n\n\x20Returns\x20all\ + \x20public\x20services.\x20For\x20authenticated\x20users,\x20also\x20ret\ + urns\x20all\n\x20services\x20the\x20calling\x20user\x20has\x20\"servicem\ + anagement.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.\x20Th\ + e\x20`consumer_id`\x20must\x20have\x20the\x20format\n\x20of\x20\"project\ + :{PROJECT-ID}\".\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x037\x06\x12\n\x0c\n\ + \x05\x06\0\x02\0\x02\x12\x037\x13&\n\x0c\n\x05\x06\0\x02\0\x03\x12\x0371\ + E\n\r\n\x05\x06\0\x02\0\x04\x12\x048\x04:\x06\n\x11\n\t\x06\0\x02\0\x04\ + \xb0\xca\xbc\"\x12\x048\x04:\x06\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\na\n\x04\x06\0\ + \x02\x01\x12\x04@\x02E\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\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\x04A\x04C\x06\n\x11\n\t\x06\0\x02\x01\x04\ + \xb0\xca\xbc\"\x12\x04A\x04C\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03D\ + \x04:\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03D\x04:\n\x99\x01\n\ + \x04\x06\0\x02\x02\x12\x04K\x02U\x03\x1a\x8a\x01\x20Creates\x20a\x20new\ + \x20managed\x20service.\n\x20Please\x20note\x20one\x20producer\x20projec\ + t\x20can\x20own\x20no\x20more\x20than\x2020\x20services.\n\n\x20Operatio\ + n\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03K\ + \x06\x13\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03K\x14(\n\x0c\n\x05\x06\0\ + \x02\x02\x03\x12\x03K3O\n\r\n\x05\x06\0\x02\x02\x04\x12\x04L\x04O\x06\n\ + \x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04L\x04O\x06\n\x0c\n\x05\ + \x06\0\x02\x02\x04\x12\x03P\x045\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\ + \x12\x03P\x045\n\r\n\x05\x06\0\x02\x02\x04\x12\x04Q\x04T\x06\n\x0f\n\x07\ + \x06\0\x02\x02\x04\x99\x08\x12\x04Q\x04T\x06\n\xf8\x02\n\x04\x06\0\x02\ + \x03\x12\x04]\x02f\x03\x1a\xe9\x02\x20Deletes\x20a\x20managed\x20service\ + .\x20This\x20method\x20will\x20change\x20the\x20service\x20to\x20the\n\ + \x20`Soft-Delete`\x20state\x20for\x2030\x20days.\x20Within\x20this\x20pe\ + riod,\x20service\x20producers\x20may\n\x20call\x20[UndeleteService][goog\ + le.api.servicemanagement.v1.ServiceManager.UndeleteService]\x20to\x20res\ + tore\x20the\x20service.\n\x20After\x2030\x20days,\x20the\x20service\x20w\ + ill\x20be\x20permanently\x20deleted.\n\n\x20Operation\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03]\x06\x13\n\x0c\ + \n\x05\x06\0\x02\x03\x02\x12\x03]\x14(\n\x0c\n\x05\x06\0\x02\x03\x03\x12\ + \x03]3O\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\x0c\n\x05\x06\0\x02\x03\ + \x04\x12\x03a\x04:\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03a\x04:\ + \n\r\n\x05\x06\0\x02\x03\x04\x12\x04b\x04e\x06\n\x0f\n\x07\x06\0\x02\x03\ + \x04\x99\x08\x12\x04b\x04e\x06\n\x9f\x02\n\x04\x06\0\x02\x04\x12\x04n\ + \x02w\x03\x1a\x90\x02\x20Revives\x20a\x20previously\x20deleted\x20manage\ + d\x20service.\x20The\x20method\x20restores\x20the\n\x20service\x20using\ + \x20the\x20configuration\x20at\x20the\x20time\x20the\x20service\x20was\ + \x20deleted.\n\x20The\x20target\x20service\x20must\x20exist\x20and\x20mu\ + st\x20have\x20been\x20deleted\x20within\x20the\n\x20last\x2030\x20days.\ + \n\n\x20Operation\n\n\x0c\n\x05\ + \x06\0\x02\x04\x01\x12\x03n\x06\x15\n\x0c\n\x05\x06\0\x02\x04\x02\x12\ + \x03n\x16,\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03n7S\n\r\n\x05\x06\0\x02\ + \x04\x04\x12\x04o\x04q\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\ + \x04o\x04q\x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03r\x04:\n\x0f\n\x08\ + \x06\0\x02\x04\x04\x9b\x08\0\x12\x03r\x04:\n\r\n\x05\x06\0\x02\x04\x04\ + \x12\x04s\x04v\x06\n\x0f\n\x07\x06\0\x02\x04\x04\x99\x08\x12\x04s\x04v\ + \x06\nv\n\x04\x06\0\x02\x05\x12\x05{\x02\x80\x01\x03\x1ag\x20Lists\x20th\ + e\x20history\x20of\x20the\x20service\x20configuration\x20for\x20a\x20man\ + aged\x20service,\n\x20from\x20the\x20newest\x20to\x20the\x20oldest.\n\n\ + \x0c\n\x05\x06\0\x02\x05\x01\x12\x03{\x06\x18\n\x0c\n\x05\x06\0\x02\x05\ + \x02\x12\x03{\x192\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03{=W\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\x03\x7f\x04:\ + \n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x03\x7f\x04:\nO\n\x04\x06\0\ + \x02\x06\x12\x06\x83\x01\x02\x8b\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\x83\x01\x06\x16\n\r\n\x05\x06\0\x02\x06\ + \x02\x12\x04\x83\x01\x17.\n\r\n\x05\x06\0\x02\x06\x03\x12\x04\x83\x019K\ + \n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\x84\x01\x04\x89\x01\x06\n\x13\n\t\ + \x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\x84\x01\x04\x89\x01\x06\n\r\n\ + \x05\x06\0\x02\x06\x04\x12\x04\x8a\x01\x04I\n\x10\n\x08\x06\0\x02\x06\ + \x04\x9b\x08\0\x12\x04\x8a\x01\x04I\n\xcc\x03\n\x04\x06\0\x02\x07\x12\ + \x06\x95\x01\x02\x9b\x01\x03\x1a\xbb\x03\x20Creates\x20a\x20new\x20servi\ + ce\x20configuration\x20(version)\x20for\x20a\x20managed\x20service.\n\ + \x20This\x20method\x20only\x20stores\x20the\x20service\x20configuration.\ + \x20To\x20roll\x20out\x20the\x20service\n\x20configuration\x20to\x20back\ + end\x20systems\x20please\x20call\n\x20[CreateServiceRollout][google.api.\ + servicemanagement.v1.ServiceManager.CreateServiceRollout].\n\n\x20Only\ + \x20the\x20100\x20most\x20recent\x20service\x20configurations\x20and\x20\ + ones\x20referenced\x20by\n\x20existing\x20rollouts\x20are\x20kept\x20for\ + \x20each\x20service.\x20The\x20rest\x20will\x20be\x20deleted\n\x20eventu\ + ally.\n\n\r\n\x05\x06\0\x02\x07\x01\x12\x04\x95\x01\x06\x19\n\r\n\x05\ + \x06\0\x02\x07\x02\x12\x04\x95\x01\x1a4\n\r\n\x05\x06\0\x02\x07\x03\x12\ + \x04\x95\x01?Q\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\x96\x01\x04\x99\x01\ + \x06\n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x96\x01\x04\x99\ + \x01\x06\n\r\n\x05\x06\0\x02\x07\x04\x12\x04\x9a\x01\x04I\n\x10\n\x08\ + \x06\0\x02\x07\x04\x9b\x08\0\x12\x04\x9a\x01\x04I\n\x8d\x05\n\x04\x06\0\ + \x02\x08\x12\x06\xaa\x01\x02\xb4\x01\x03\x1a\xfc\x04\x20Creates\x20a\x20\ + new\x20service\x20configuration\x20(version)\x20for\x20a\x20managed\x20s\ + ervice\x20based\n\x20on\n\x20user-supplied\x20configuration\x20source\ + \x20files\x20(for\x20example:\x20OpenAPI\n\x20Specification).\x20This\ + \x20method\x20stores\x20the\x20source\x20configurations\x20as\x20well\ + \x20as\x20the\n\x20generated\x20service\x20configuration.\x20To\x20rollo\ + ut\x20the\x20service\x20configuration\x20to\n\x20other\x20services,\n\ + \x20please\x20call\x20[CreateServiceRollout][google.api.servicemanagemen\ + t.v1.ServiceManager.CreateServiceRollout].\n\n\x20Only\x20the\x20100\x20\ + most\x20recent\x20configuration\x20sources\x20and\x20ones\x20referenced\ + \x20by\n\x20existing\x20service\x20configurtions\x20are\x20kept\x20for\ + \x20each\x20service.\x20The\x20rest\x20will\x20be\n\x20deleted\x20eventu\ + ally.\n\n\x20Operation\n\n\r\n\ + \x05\x06\0\x02\x08\x01\x12\x04\xaa\x01\x06\x18\n\r\n\x05\x06\0\x02\x08\ + \x02\x12\x04\xaa\x01\x192\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\xaa\x01=Y\ + \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\x04V\n\x10\n\x08\x06\0\x02\x08\ + \x04\x9b\x08\0\x12\x04\xaf\x01\x04V\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\x80\x01\n\x04\x06\0\x02\t\x12\x06\xb8\x01\ + \x02\xbd\x01\x03\x1ap\x20Lists\x20the\x20history\x20of\x20the\x20service\ + \x20configuration\x20rollouts\x20for\x20a\x20managed\n\x20service,\x20fr\ + om\x20the\x20newest\x20to\x20the\x20oldest.\n\n\r\n\x05\x06\0\x02\t\x01\ + \x12\x04\xb8\x01\x06\x19\n\r\n\x05\x06\0\x02\t\x02\x12\x04\xb8\x01\x1a4\ + \n\r\n\x05\x06\0\x02\t\x03\x12\x04\xb8\x01?Z\n\x0f\n\x05\x06\0\x02\t\x04\ + \x12\x06\xb9\x01\x04\xbb\x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\ + \x12\x06\xb9\x01\x04\xbb\x01\x06\n\r\n\x05\x06\0\x02\t\x04\x12\x04\xbc\ + \x01\x04A\n\x10\n\x08\x06\0\x02\t\x04\x9b\x08\0\x12\x04\xbc\x01\x04A\nb\ + \n\x04\x06\0\x02\n\x12\x06\xc0\x01\x02\xc5\x01\x03\x1aR\x20Gets\x20a\x20\ + service\x20configuration\x20[rollout][google.api.servicemanagement.v1.Ro\ + llout].\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xc0\x01\x06\x17\n\r\n\x05\ + \x06\0\x02\n\x02\x12\x04\xc0\x01\x180\n\r\n\x05\x06\0\x02\n\x03\x12\x04\ + \xc0\x01;B\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xc1\x01\x04\xc3\x01\x06\n\ + \x13\n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xc1\x01\x04\xc3\x01\x06\n\ + \r\n\x05\x06\0\x02\n\x04\x12\x04\xc4\x01\x04E\n\x10\n\x08\x06\0\x02\n\ + \x04\x9b\x08\0\x12\x04\xc4\x01\x04E\n\xaa\x05\n\x04\x06\0\x02\x0b\x12\ + \x06\xd5\x01\x02\xdf\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\xd5\x01\x06\ + \x1a\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xd5\x01\x1b6\n\r\n\x05\x06\0\ + \x02\x0b\x03\x12\x04\xd5\x01A]\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xd6\ + \x01\x04\xd9\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\ + \xd6\x01\x04\xd9\x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\xda\x01\x04\ + B\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\xda\x01\x04B\n\x0f\n\ + \x05\x06\0\x02\x0b\x04\x12\x06\xdb\x01\x04\xde\x01\x06\n\x11\n\x07\x06\0\ + \x02\x0b\x04\x99\x08\x12\x06\xdb\x01\x04\xde\x01\x06\n\xba\x04\n\x04\x06\ + \0\x02\x0c\x12\x06\xec\x01\x02\xf2\x01\x03\x1a\xa9\x04\x20Generates\x20a\ + nd\x20returns\x20a\x20report\x20(errors,\x20warnings\x20and\x20changes\ + \x20from\n\x20existing\x20configurations)\x20associated\x20with\n\x20Gen\ + erateConfigReportRequest.new_value\n\n\x20If\x20GenerateConfigReportRequ\ + est.old_value\x20is\x20specified,\n\x20GenerateConfigReportRequest\x20wi\ + ll\x20contain\x20a\x20single\x20ChangeReport\x20based\x20on\x20the\n\x20\ + comparison\x20between\x20GenerateConfigReportRequest.new_value\x20and\n\ + \x20GenerateConfigReportRequest.old_value.\n\x20If\x20GenerateConfigRepo\ + rtRequest.old_value\x20is\x20not\x20specified,\x20this\x20method\n\x20wi\ + ll\x20compare\x20GenerateConfigReportRequest.new_value\x20with\x20the\ + \x20last\x20pushed\n\x20service\x20configuration.\n\n\r\n\x05\x06\0\x02\ + \x0c\x01\x12\x04\xec\x01\x06\x1a\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xec\ + \x01\x1b6\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xec\x01A]\n\x0f\n\x05\x06\ + \0\x02\x0c\x04\x12\x06\xed\x01\x04\xf0\x01\x06\n\x13\n\t\x06\0\x02\x0c\ + \x04\xb0\xca\xbc\"\x12\x06\xed\x01\x04\xf0\x01\x06\n\r\n\x05\x06\0\x02\ + \x0c\x04\x12\x04\xf1\x01\x04C\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\ + \x12\x04\xf1\x01\x04C\n\x93\x02\n\x04\x06\0\x02\r\x12\x06\xfa\x01\x02\ + \x85\x02\x03\x1a\x82\x02\x20Enables\x20a\x20[service][google.api.service\ + management.v1.ManagedService]\x20for\x20a\x20project,\x20so\x20it\x20can\ + \x20be\x20used\n\x20for\x20the\x20project.\x20See\n\x20[Cloud\x20Auth\ + \x20Guide](https://cloud.google.com/docs/authentication)\x20for\n\x20mor\ + e\x20information.\n\n\x20Operation\n\ + \n\r\n\x05\x06\0\x02\r\x01\x12\x04\xfa\x01\x06\x13\n\r\n\x05\x06\0\x02\r\ + \x02\x12\x04\xfa\x01\x14(\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xfa\x013O\n\ + \r\n\x05\x06\0\x02\r\x04\x12\x04\xfb\x01\x04\x1d\n\x0e\n\x06\x06\0\x02\r\ + \x04!\x12\x04\xfb\x01\x04\x1d\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xfc\ + \x01\x04\xff\x01\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\xfc\ + \x01\x04\xff\x01\x06\n\r\n\x05\x06\0\x02\r\x04\x12\x04\x80\x02\x04F\n\ + \x10\n\x08\x06\0\x02\r\x04\x9b\x08\0\x12\x04\x80\x02\x04F\n\x0f\n\x05\ + \x06\0\x02\r\x04\x12\x06\x81\x02\x04\x84\x02\x06\n\x11\n\x07\x06\0\x02\r\ + \x04\x99\x08\x12\x06\x81\x02\x04\x84\x02\x06\n\xa0\x02\n\x04\x06\0\x02\ + \x0e\x12\x06\x8c\x02\x02\x97\x02\x03\x1a\x8f\x02\x20Disables\x20a\x20[se\ + rvice][google.api.servicemanagement.v1.ManagedService]\x20for\x20a\x20pr\ + oject,\x20so\x20it\x20can\x20no\x20longer\x20be\n\x20be\x20used\x20for\ + \x20the\x20project.\x20It\x20prevents\x20accidental\x20usage\x20that\x20\ + may\x20cause\n\x20unexpected\x20billing\x20charges\x20or\x20security\x20\ + leaks.\n\n\x20Operation\n\n\r\n\x05\ + \x06\0\x02\x0e\x01\x12\x04\x8c\x02\x06\x14\n\r\n\x05\x06\0\x02\x0e\x02\ + \x12\x04\x8c\x02\x15*\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\x8c\x025Q\n\r\ + \n\x05\x06\0\x02\x0e\x04\x12\x04\x8d\x02\x04\x1d\n\x0e\n\x06\x06\0\x02\ + \x0e\x04!\x12\x04\x8d\x02\x04\x1d\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\ + \x8e\x02\x04\x91\x02\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\ + \x06\x8e\x02\x04\x91\x02\x06\n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\x92\x02\ + \x04F\n\x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\x92\x02\x04F\n\x0f\ + \n\x05\x06\0\x02\x0e\x04\x12\x06\x93\x02\x04\x96\x02\x06\n\x11\n\x07\x06\ + \0\x02\x0e\x04\x99\x08\x12\x06\x93\x02\x04\x96\x02\x06\n:\n\x02\x04\0\ + \x12\x06\x9b\x02\0\xad\x02\x01\x1a,\x20Request\x20message\x20for\x20`Lis\ + tServices`\x20method.\n\n\x0b\n\x03\x04\0\x01\x12\x04\x9b\x02\x08\x1b\nC\ + \n\x04\x04\0\x02\0\x12\x04\x9d\x02\x02!\x1a5\x20Include\x20services\x20p\ + roduced\x20by\x20the\x20specified\x20project.\n\n\x0f\n\x05\x04\0\x02\0\ + \x04\x12\x06\x9d\x02\x02\x9b\x02\x1d\n\r\n\x05\x04\0\x02\0\x05\x12\x04\ + \x9d\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x9d\x02\t\x1c\n\r\n\ + \x05\x04\0\x02\0\x03\x12\x04\x9d\x02\x1f\x20\n\x81\x01\n\x04\x04\0\x02\ + \x01\x12\x04\xa1\x02\x02\x16\x1as\x20The\x20max\x20number\x20of\x20items\ + \x20to\x20include\x20in\x20the\x20response\x20list.\x20Page\x20size\x20i\ + s\x2050\n\x20if\x20not\x20specified.\x20Maximum\x20value\x20is\x20100.\n\ + \n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\xa1\x02\x02\x9d\x02!\n\r\n\x05\ + \x04\0\x02\x01\x05\x12\x04\xa1\x02\x02\x07\n\r\n\x05\x04\0\x02\x01\x01\ + \x12\x04\xa1\x02\x08\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xa1\x02\x14\ + \x15\n`\n\x04\x04\0\x02\x02\x12\x04\xa5\x02\x02\x18\x1aR\x20Token\x20ide\ + ntifying\x20which\x20result\x20to\x20start\x20with;\x20returned\x20by\ + \x20a\x20previous\x20list\n\x20call.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\ + \x06\xa5\x02\x02\xa1\x02\x16\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\xa5\x02\ + \x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xa5\x02\t\x13\n\r\n\x05\x04\ + \0\x02\x02\x03\x12\x04\xa5\x02\x16\x17\n\xaa\x01\n\x04\x04\0\x02\x03\x12\ + \x04\xac\x02\x02-\x1a\x9b\x01\x20Include\x20services\x20consumed\x20by\ + \x20the\x20specified\x20consumer.\n\n\x20The\x20Google\x20Service\x20Man\ + agement\x20implementation\x20accepts\x20the\x20following\n\x20forms:\n\ + \x20-\x20project:\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\ + \xac\x02\x02\xa5\x02\x18\n\r\n\x05\x04\0\x02\x03\x05\x12\x04\xac\x02\x02\ + \x08\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xac\x02\t\x14\n\r\n\x05\x04\0\ + \x02\x03\x03\x12\x04\xac\x02\x17\x18\n\r\n\x05\x04\0\x02\x03\x08\x12\x04\ + \xac\x02\x19,\n\x0e\n\x06\x04\0\x02\x03\x08\x03\x12\x04\xac\x02\x1a+\n;\ + \n\x02\x04\x01\x12\x06\xb0\x02\0\xb6\x02\x01\x1a-\x20Response\x20message\ + \x20for\x20`ListServices`\x20method.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\ + \xb0\x02\x08\x1c\nH\n\x04\x04\x01\x02\0\x12\x04\xb2\x02\x02'\x1a:\x20The\ + \x20returned\x20services\x20will\x20only\x20have\x20the\x20name\x20field\ + \x20set.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\xb2\x02\x02\n\n\r\n\x05\ + \x04\x01\x02\0\x06\x12\x04\xb2\x02\x0b\x19\n\r\n\x05\x04\x01\x02\0\x01\ + \x12\x04\xb2\x02\x1a\"\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xb2\x02%&\nW\ + \n\x04\x04\x01\x02\x01\x12\x04\xb5\x02\x02\x1d\x1aI\x20Token\x20that\x20\ + can\x20be\x20passed\x20to\x20`ListServices`\x20to\x20resume\x20a\x20pagi\ + nated\x20query.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xb5\x02\x02\ + \xb2\x02'\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xb5\x02\x02\x08\n\r\n\ + \x05\x04\x01\x02\x01\x01\x12\x04\xb5\x02\t\x18\n\r\n\x05\x04\x01\x02\x01\ + \x03\x12\x04\xb5\x02\x1b\x1c\n8\n\x02\x04\x02\x12\x06\xb9\x02\0\xbd\x02\ + \x01\x1a*\x20Request\x20message\x20for\x20`GetService`\x20method.\n\n\ + \x0b\n\x03\x04\x02\x01\x12\x04\xb9\x02\x08\x19\n\x98\x01\n\x04\x04\x02\ + \x02\0\x12\x04\xbc\x02\x02C\x1a\x89\x01\x20Required.\x20The\x20name\x20o\ + f\x20the\x20service.\x20\x20See\x20the\x20`ServiceManager`\x20overview\ + \x20for\x20naming\n\x20requirements.\x20\x20For\x20example:\x20`example.\ + googleapis.com`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xbc\x02\x02\xb9\ + \x02\x1b\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xbc\x02\x02\x08\n\r\n\x05\ + \x04\x02\x02\0\x01\x12\x04\xbc\x02\t\x15\n\r\n\x05\x04\x02\x02\0\x03\x12\ + \x04\xbc\x02\x18\x19\n\r\n\x05\x04\x02\x02\0\x08\x12\x04\xbc\x02\x1aB\n\ + \x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xbc\x02\x1bA\n9\n\x02\x04\ + \x03\x12\x06\xc0\x02\0\xc3\x02\x01\x1a+\x20Request\x20message\x20for\x20\ + CreateService\x20method.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xc0\x02\x08\ + \x1c\nB\n\x04\x04\x03\x02\0\x12\x04\xc2\x02\x02F\x1a4\x20Required.\x20In\ + itial\x20values\x20for\x20the\x20service\x20resource.\n\n\x0f\n\x05\x04\ + \x03\x02\0\x04\x12\x06\xc2\x02\x02\xc0\x02\x1e\n\r\n\x05\x04\x03\x02\0\ + \x06\x12\x04\xc2\x02\x02\x10\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc2\x02\ + \x11\x18\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xc2\x02\x1b\x1c\n\r\n\x05\ + \x04\x03\x02\0\x08\x12\x04\xc2\x02\x1dE\n\x10\n\x08\x04\x03\x02\0\x08\ + \x9c\x08\0\x12\x04\xc2\x02\x1eD\n9\n\x02\x04\x04\x12\x06\xc6\x02\0\xca\ + \x02\x01\x1a+\x20Request\x20message\x20for\x20DeleteService\x20method.\n\ + \n\x0b\n\x03\x04\x04\x01\x12\x04\xc6\x02\x08\x1c\n\xa7\x01\n\x04\x04\x04\ + \x02\0\x12\x04\xc9\x02\x02C\x1a\x98\x01\x20Required.\x20The\x20name\x20o\ + f\x20the\x20service.\x20\x20See\x20the\x20[overview](/service-management\ + /overview)\n\x20for\x20naming\x20requirements.\x20\x20For\x20example:\ + \x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\ + \xc9\x02\x02\xc6\x02\x1e\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xc9\x02\x02\ + \x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xc9\x02\t\x15\n\r\n\x05\x04\x04\ + \x02\0\x03\x12\x04\xc9\x02\x18\x19\n\r\n\x05\x04\x04\x02\0\x08\x12\x04\ + \xc9\x02\x1aB\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xc9\x02\ + \x1bA\n;\n\x02\x04\x05\x12\x06\xcd\x02\0\xd1\x02\x01\x1a-\x20Request\x20\ + message\x20for\x20UndeleteService\x20method.\n\n\x0b\n\x03\x04\x05\x01\ + \x12\x04\xcd\x02\x08\x1e\n\xa5\x01\n\x04\x04\x05\x02\0\x12\x04\xd0\x02\ + \x02C\x1a\x96\x01\x20Required.\x20The\x20name\x20of\x20the\x20service.\ + \x20See\x20the\x20[overview](/service-management/overview)\n\x20for\x20n\ + aming\x20requirements.\x20For\x20example:\x20`example.googleapis.com`.\n\ + \n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xd0\x02\x02\xcd\x02\x20\n\r\n\x05\ + \x04\x05\x02\0\x05\x12\x04\xd0\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\ + \x12\x04\xd0\x02\t\x15\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xd0\x02\x18\ + \x19\n\r\n\x05\x04\x05\x02\0\x08\x12\x04\xd0\x02\x1aB\n\x10\n\x08\x04\ + \x05\x02\0\x08\x9c\x08\0\x12\x04\xd0\x02\x1bA\n<\n\x02\x04\x06\x12\x06\ + \xd4\x02\0\xd7\x02\x01\x1a.\x20Response\x20message\x20for\x20UndeleteSer\ + vice\x20method.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xd4\x02\x08\x1f\n)\n\ + \x04\x04\x06\x02\0\x12\x04\xd6\x02\x02\x1d\x1a\x1b\x20Revived\x20service\ + \x20resource.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xd6\x02\x02\xd4\ + \x02!\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\xd6\x02\x02\x10\n\r\n\x05\x04\ + \x06\x02\0\x01\x12\x04\xd6\x02\x11\x18\n\r\n\x05\x04\x06\x02\0\x03\x12\ + \x04\xd6\x02\x1b\x1c\n<\n\x02\x04\x07\x12\x06\xda\x02\0\xf3\x02\x01\x1a.\ + \x20Request\x20message\x20for\x20GetServiceConfig\x20method.\n\n\x0b\n\ + \x03\x04\x07\x01\x12\x04\xda\x02\x08\x1f\n\x0e\n\x04\x04\x07\x04\0\x12\ + \x06\xdb\x02\x02\xe4\x02\x03\n\r\n\x05\x04\x07\x04\0\x01\x12\x04\xdb\x02\ + \x07\x11\nH\n\x06\x04\x07\x04\0\x02\0\x12\x04\xdd\x02\x04\x0e\x1a8\x20Se\ + rver\x20response\x20includes\x20all\x20fields\x20except\x20SourceInfo.\n\ + \n\x0f\n\x07\x04\x07\x04\0\x02\0\x01\x12\x04\xdd\x02\x04\t\n\x0f\n\x07\ + \x04\x07\x04\0\x02\0\x02\x12\x04\xdd\x02\x0c\r\n\xe4\x01\n\x06\x04\x07\ + \x04\0\x02\x01\x12\x04\xe3\x02\x04\r\x1a\xd3\x01\x20Server\x20response\ + \x20includes\x20all\x20fields\x20including\x20SourceInfo.\n\x20SourceFil\ + es\x20are\x20of\x20type\x20'google.api.servicemanagement.v1.ConfigFile'\ + \n\x20and\x20are\x20only\x20available\x20for\x20configs\x20created\x20us\ + ing\x20the\n\x20SubmitConfigSource\x20method.\n\n\x0f\n\x07\x04\x07\x04\ + \0\x02\x01\x01\x12\x04\xe3\x02\x04\x08\n\x0f\n\x07\x04\x07\x04\0\x02\x01\ + \x02\x12\x04\xe3\x02\x0b\x0c\n\xa7\x01\n\x04\x04\x07\x02\0\x12\x04\xe8\ + \x02\x02C\x1a\x98\x01\x20Required.\x20The\x20name\x20of\x20the\x20servic\ + e.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\x20fo\ + r\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.googleap\ + is.com`.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xe8\x02\x02\xe4\x02\x03\ + \n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xe8\x02\x02\x08\n\r\n\x05\x04\x07\ + \x02\0\x01\x12\x04\xe8\x02\t\x15\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xe8\ + \x02\x18\x19\n\r\n\x05\x04\x07\x02\0\x08\x12\x04\xe8\x02\x1aB\n\x10\n\ + \x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xe8\x02\x1bA\n\xa5\x01\n\x04\ + \x04\x07\x02\x01\x12\x04\xee\x02\x02@\x1a\x96\x01\x20Required.\x20The\ + \x20id\x20of\x20the\x20service\x20configuration\x20resource.\n\n\x20This\ + \x20field\x20must\x20be\x20specified\x20for\x20the\x20server\x20to\x20re\ + turn\x20all\x20fields,\x20including\n\x20`SourceInfo`.\n\n\x0f\n\x05\x04\ + \x07\x02\x01\x04\x12\x06\xee\x02\x02\xe8\x02C\n\r\n\x05\x04\x07\x02\x01\ + \x05\x12\x04\xee\x02\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xee\ + \x02\t\x12\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xee\x02\x15\x16\n\r\n\ + \x05\x04\x07\x02\x01\x08\x12\x04\xee\x02\x17?\n\x10\n\x08\x04\x07\x02\ + \x01\x08\x9c\x08\0\x12\x04\xee\x02\x18>\n`\n\x04\x04\x07\x02\x02\x12\x04\ + \xf2\x02\x02\x16\x1aR\x20Specifies\x20which\x20parts\x20of\x20the\x20Ser\ + vice\x20Config\x20should\x20be\x20returned\x20in\x20the\n\x20response.\n\ + \n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xf2\x02\x02\xee\x02@\n\r\n\x05\ + \x04\x07\x02\x02\x06\x12\x04\xf2\x02\x02\x0c\n\r\n\x05\x04\x07\x02\x02\ + \x01\x12\x04\xf2\x02\r\x11\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xf2\x02\ + \x14\x15\n>\n\x02\x04\x08\x12\x06\xf6\x02\0\x81\x03\x01\x1a0\x20Request\ + \x20message\x20for\x20ListServiceConfigs\x20method.\n\n\x0b\n\x03\x04\ + \x08\x01\x12\x04\xf6\x02\x08!\n\xa7\x01\n\x04\x04\x08\x02\0\x12\x04\xf9\ + \x02\x02C\x1a\x98\x01\x20Required.\x20The\x20name\x20of\x20the\x20servic\ + e.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\x20fo\ + r\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.googleap\ + is.com`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xf9\x02\x02\xf6\x02#\n\ + \r\n\x05\x04\x08\x02\0\x05\x12\x04\xf9\x02\x02\x08\n\r\n\x05\x04\x08\x02\ + \0\x01\x12\x04\xf9\x02\t\x15\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xf9\x02\ + \x18\x19\n\r\n\x05\x04\x08\x02\0\x08\x12\x04\xf9\x02\x1aB\n\x10\n\x08\ + \x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xf9\x02\x1bA\n2\n\x04\x04\x08\x02\ + \x01\x12\x04\xfc\x02\x02\x18\x1a$\x20The\x20token\x20of\x20the\x20page\ + \x20to\x20retrieve.\n\n\x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xfc\x02\ + \x02\xf9\x02C\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xfc\x02\x02\x08\n\r\ + \n\x05\x04\x08\x02\x01\x01\x12\x04\xfc\x02\t\x13\n\r\n\x05\x04\x08\x02\ + \x01\x03\x12\x04\xfc\x02\x16\x17\n\x81\x01\n\x04\x04\x08\x02\x02\x12\x04\ + \x80\x03\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\x0f\n\ + \x05\x04\x08\x02\x02\x04\x12\x06\x80\x03\x02\xfc\x02\x18\n\r\n\x05\x04\ + \x08\x02\x02\x05\x12\x04\x80\x03\x02\x07\n\r\n\x05\x04\x08\x02\x02\x01\ + \x12\x04\x80\x03\x08\x11\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\x80\x03\ + \x14\x15\n?\n\x02\x04\t\x12\x06\x84\x03\0\x8a\x03\x01\x1a1\x20Response\ + \x20message\x20for\x20ListServiceConfigs\x20method.\n\n\x0b\n\x03\x04\t\ + \x01\x12\x04\x84\x03\x08\"\n<\n\x04\x04\t\x02\0\x12\x04\x86\x03\x022\x1a\ + .\x20The\x20list\x20of\x20service\x20configuration\x20resources.\n\n\r\n\ + \x05\x04\t\x02\0\x04\x12\x04\x86\x03\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\ + \x04\x86\x03\x0b\x1d\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x86\x03\x1e-\n\r\ + \n\x05\x04\t\x02\0\x03\x12\x04\x86\x0301\n6\n\x04\x04\t\x02\x01\x12\x04\ + \x89\x03\x02\x1d\x1a(\x20The\x20token\x20of\x20the\x20next\x20page\x20of\ + \x20results.\n\n\x0f\n\x05\x04\t\x02\x01\x04\x12\x06\x89\x03\x02\x86\x03\ + 2\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\x89\x03\x02\x08\n\r\n\x05\x04\t\ + \x02\x01\x01\x12\x04\x89\x03\t\x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\ + \x89\x03\x1b\x1c\n?\n\x02\x04\n\x12\x06\x8d\x03\0\x94\x03\x01\x1a1\x20Re\ + quest\x20message\x20for\x20CreateServiceConfig\x20method.\n\n\x0b\n\x03\ + \x04\n\x01\x12\x04\x8d\x03\x08\"\n\xa7\x01\n\x04\x04\n\x02\0\x12\x04\x90\ + \x03\x02C\x1a\x98\x01\x20Required.\x20The\x20name\x20of\x20the\x20servic\ + e.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\x20fo\ + r\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.googleap\ + is.com`.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\x90\x03\x02\x8d\x03$\n\r\ + \n\x05\x04\n\x02\0\x05\x12\x04\x90\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\ + \x12\x04\x90\x03\t\x15\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x90\x03\x18\x19\ + \n\r\n\x05\x04\n\x02\0\x08\x12\x04\x90\x03\x1aB\n\x10\n\x08\x04\n\x02\0\ + \x08\x9c\x08\0\x12\x04\x90\x03\x1bA\n=\n\x04\x04\n\x02\x01\x12\x04\x93\ + \x03\x02Q\x1a/\x20Required.\x20The\x20service\x20configuration\x20resour\ + ce.\n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\x93\x03\x02\x90\x03C\n\r\n\ + \x05\x04\n\x02\x01\x06\x12\x04\x93\x03\x02\x14\n\r\n\x05\x04\n\x02\x01\ + \x01\x12\x04\x93\x03\x15#\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\x93\x03&'\ + \n\r\n\x05\x04\n\x02\x01\x08\x12\x04\x93\x03(P\n\x10\n\x08\x04\n\x02\x01\ + \x08\x9c\x08\0\x12\x04\x93\x03)O\n>\n\x02\x04\x0b\x12\x06\x97\x03\0\xa3\ + \x03\x01\x1a0\x20Request\x20message\x20for\x20SubmitConfigSource\x20meth\ + od.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x97\x03\x08!\n\xa7\x01\n\x04\x04\ + \x0b\x02\0\x12\x04\x9a\x03\x02C\x1a\x98\x01\x20Required.\x20The\x20name\ + \x20of\x20the\x20service.\x20\x20See\x20the\x20[overview](/service-manag\ + ement/overview)\n\x20for\x20naming\x20requirements.\x20\x20For\x20exampl\ + e:\x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\ + \x9a\x03\x02\x97\x03#\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x9a\x03\x02\ + \x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x9a\x03\t\x15\n\r\n\x05\x04\x0b\ + \x02\0\x03\x12\x04\x9a\x03\x18\x19\n\r\n\x05\x04\x0b\x02\0\x08\x12\x04\ + \x9a\x03\x1aB\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\x12\x04\x9a\x03\ + \x1bA\nC\n\x04\x04\x0b\x02\x01\x12\x04\x9d\x03\x02J\x1a5\x20Required.\ + \x20The\x20source\x20configuration\x20for\x20the\x20service.\n\n\x0f\n\ + \x05\x04\x0b\x02\x01\x04\x12\x06\x9d\x03\x02\x9a\x03C\n\r\n\x05\x04\x0b\ + \x02\x01\x06\x12\x04\x9d\x03\x02\x0e\n\r\n\x05\x04\x0b\x02\x01\x01\x12\ + \x04\x9d\x03\x0f\x1c\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x9d\x03\x1f\ + \x20\n\r\n\x05\x04\x0b\x02\x01\x08\x12\x04\x9d\x03!I\n\x10\n\x08\x04\x0b\ + \x02\x01\x08\x9c\x08\0\x12\x04\x9d\x03\"H\n\xd5\x01\n\x04\x04\x0b\x02\ + \x02\x12\x04\xa2\x03\x02B\x1a\xc6\x01\x20Optional.\x20If\x20set,\x20this\ + \x20will\x20result\x20in\x20the\x20generation\x20of\x20a\n\x20`google.ap\ + i.Service`\x20configuration\x20based\x20on\x20the\x20`ConfigSource`\x20p\ + rovided,\n\x20but\x20the\x20generated\x20config\x20and\x20the\x20sources\ + \x20will\x20NOT\x20be\x20persisted.\n\n\x0f\n\x05\x04\x0b\x02\x02\x04\ + \x12\x06\xa2\x03\x02\x9d\x03J\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\xa2\ + \x03\x02\x06\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xa2\x03\x07\x14\n\r\n\ + \x05\x04\x0b\x02\x02\x03\x12\x04\xa2\x03\x17\x18\n\r\n\x05\x04\x0b\x02\ + \x02\x08\x12\x04\xa2\x03\x19A\n\x10\n\x08\x04\x0b\x02\x02\x08\x9c\x08\0\ + \x12\x04\xa2\x03\x1a@\n?\n\x02\x04\x0c\x12\x06\xa6\x03\0\xa9\x03\x01\x1a\ + 1\x20Response\x20message\x20for\x20SubmitConfigSource\x20method.\n\n\x0b\ + \n\x03\x04\x0c\x01\x12\x04\xa6\x03\x08\"\n4\n\x04\x04\x0c\x02\0\x12\x04\ + \xa8\x03\x02(\x1a&\x20The\x20generated\x20service\x20configuration.\n\n\ + \x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xa8\x03\x02\xa6\x03$\n\r\n\x05\x04\ + \x0c\x02\0\x06\x12\x04\xa8\x03\x02\x14\n\r\n\x05\x04\x0c\x02\0\x01\x12\ + \x04\xa8\x03\x15#\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xa8\x03&'\n:\n\x02\ + \x04\r\x12\x06\xac\x03\0\xb3\x03\x01\x1a,\x20Request\x20message\x20for\ + \x20'CreateServiceRollout'\n\n\x0b\n\x03\x04\r\x01\x12\x04\xac\x03\x08#\ + \n\xa7\x01\n\x04\x04\r\x02\0\x12\x04\xaf\x03\x02C\x1a\x98\x01\x20Require\ + d.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20[overvie\ + w](/service-management/overview)\n\x20for\x20naming\x20requirements.\x20\ + \x20For\x20example:\x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\r\x02\ + \0\x04\x12\x06\xaf\x03\x02\xac\x03%\n\r\n\x05\x04\r\x02\0\x05\x12\x04\ + \xaf\x03\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xaf\x03\t\x15\n\r\n\ + \x05\x04\r\x02\0\x03\x12\x04\xaf\x03\x18\x19\n\r\n\x05\x04\r\x02\0\x08\ + \x12\x04\xaf\x03\x1aB\n\x10\n\x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\xaf\ + \x03\x1bA\nX\n\x04\x04\r\x02\x01\x12\x04\xb2\x03\x02?\x1aJ\x20Required.\ + \x20The\x20rollout\x20resource.\x20The\x20`service_name`\x20field\x20is\ + \x20output\x20only.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xb2\x03\x02\ + \xaf\x03C\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xb2\x03\x02\t\n\r\n\x05\ + \x04\r\x02\x01\x01\x12\x04\xb2\x03\n\x11\n\r\n\x05\x04\r\x02\x01\x03\x12\ + \x04\xb2\x03\x14\x15\n\r\n\x05\x04\r\x02\x01\x08\x12\x04\xb2\x03\x16>\n\ + \x10\n\x08\x04\r\x02\x01\x08\x9c\x08\0\x12\x04\xb2\x03\x17=\n9\n\x02\x04\ + \x0e\x12\x06\xb6\x03\0\xcb\x03\x01\x1a+\x20Request\x20message\x20for\x20\ + 'ListServiceRollouts'\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xb6\x03\x08\"\n\ + \xa7\x01\n\x04\x04\x0e\x02\0\x12\x04\xb9\x03\x02C\x1a\x98\x01\x20Require\ + d.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20[overvie\ + w](/service-management/overview)\n\x20for\x20naming\x20requirements.\x20\ + \x20For\x20example:\x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\x0e\ + \x02\0\x04\x12\x06\xb9\x03\x02\xb6\x03$\n\r\n\x05\x04\x0e\x02\0\x05\x12\ + \x04\xb9\x03\x02\x08\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xb9\x03\t\x15\n\ + \r\n\x05\x04\x0e\x02\0\x03\x12\x04\xb9\x03\x18\x19\n\r\n\x05\x04\x0e\x02\ + \0\x08\x12\x04\xb9\x03\x1aB\n\x10\n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\ + \x04\xb9\x03\x1bA\n2\n\x04\x04\x0e\x02\x01\x12\x04\xbc\x03\x02\x18\x1a$\ + \x20The\x20token\x20of\x20the\x20page\x20to\x20retrieve.\n\n\x0f\n\x05\ + \x04\x0e\x02\x01\x04\x12\x06\xbc\x03\x02\xb9\x03C\n\r\n\x05\x04\x0e\x02\ + \x01\x05\x12\x04\xbc\x03\x02\x08\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\ + \xbc\x03\t\x13\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xbc\x03\x16\x17\n\ + \x81\x01\n\x04\x04\x0e\x02\x02\x12\x04\xc0\x03\x02\x16\x1as\x20The\x20ma\ + x\x20number\x20of\x20items\x20to\x20include\x20in\x20the\x20response\x20\ + list.\x20Page\x20size\x20is\x2050\n\x20if\x20not\x20specified.\x20Maximu\ + m\x20value\x20is\x20100.\n\n\x0f\n\x05\x04\x0e\x02\x02\x04\x12\x06\xc0\ + \x03\x02\xbc\x03\x18\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xc0\x03\x02\ + \x07\n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xc0\x03\x08\x11\n\r\n\x05\x04\ + \x0e\x02\x02\x03\x12\x04\xc0\x03\x14\x15\n\xb5\x03\n\x04\x04\x0e\x02\x03\ + \x12\x04\xca\x03\x02=\x1a\xa6\x03\x20Required.\x20Use\x20`filter`\x20to\ + \x20return\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.a\ + pi.servicemanagement.v1.RolloutStatus)\x20'SUCCESS',\n\x20\x20\x20\x20\ + \x20\x20use\x20filter='status=SUCCESS'\n\x20\x20\x20--\x20To\x20limit\ + \x20the\x20results\x20to\x20those\x20in\n\x20\x20\x20\x20\x20\x20[status\ + ](google.api.servicemanagement.v1.RolloutStatus)\x20'CANCELLED'\n\x20\ + \x20\x20\x20\x20\x20or\x20'FAILED',\x20use\x20filter='status=CANCELLED\ + \x20OR\x20status=FAILED'\n\n\x0f\n\x05\x04\x0e\x02\x03\x04\x12\x06\xca\ + \x03\x02\xc0\x03\x16\n\r\n\x05\x04\x0e\x02\x03\x05\x12\x04\xca\x03\x02\ + \x08\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\xca\x03\t\x0f\n\r\n\x05\x04\ + \x0e\x02\x03\x03\x12\x04\xca\x03\x12\x13\n\r\n\x05\x04\x0e\x02\x03\x08\ + \x12\x04\xca\x03\x14<\n\x10\n\x08\x04\x0e\x02\x03\x08\x9c\x08\0\x12\x04\ + \xca\x03\x15;\n@\n\x02\x04\x0f\x12\x06\xce\x03\0\xd4\x03\x01\x1a2\x20Res\ + ponse\x20message\x20for\x20ListServiceRollouts\x20method.\n\n\x0b\n\x03\ + \x04\x0f\x01\x12\x04\xce\x03\x08#\n.\n\x04\x04\x0f\x02\0\x12\x04\xd0\x03\ + \x02\x20\x1a\x20\x20The\x20list\x20of\x20rollout\x20resources.\n\n\r\n\ + \x05\x04\x0f\x02\0\x04\x12\x04\xd0\x03\x02\n\n\r\n\x05\x04\x0f\x02\0\x06\ + \x12\x04\xd0\x03\x0b\x12\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xd0\x03\x13\ + \x1b\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xd0\x03\x1e\x1f\n6\n\x04\x04\ + \x0f\x02\x01\x12\x04\xd3\x03\x02\x1d\x1a(\x20The\x20token\x20of\x20the\ + \x20next\x20page\x20of\x20results.\n\n\x0f\n\x05\x04\x0f\x02\x01\x04\x12\ + \x06\xd3\x03\x02\xd0\x03\x20\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\xd3\ + \x03\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\xd3\x03\t\x18\n\r\n\ + \x05\x04\x0f\x02\x01\x03\x12\x04\xd3\x03\x1b\x1c\n=\n\x02\x04\x10\x12\ + \x06\xd7\x03\0\xde\x03\x01\x1a/\x20Request\x20message\x20for\x20GetServi\ + ceRollout\x20method.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xd7\x03\x08\x20\n\ + \xa7\x01\n\x04\x04\x10\x02\0\x12\x04\xda\x03\x02C\x1a\x98\x01\x20Require\ + d.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20[overvie\ + w](/service-management/overview)\n\x20for\x20naming\x20requirements.\x20\ + \x20For\x20example:\x20`example.googleapis.com`.\n\n\x0f\n\x05\x04\x10\ + \x02\0\x04\x12\x06\xda\x03\x02\xd7\x03\"\n\r\n\x05\x04\x10\x02\0\x05\x12\ + \x04\xda\x03\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xda\x03\t\x15\n\ + \r\n\x05\x04\x10\x02\0\x03\x12\x04\xda\x03\x18\x19\n\r\n\x05\x04\x10\x02\ + \0\x08\x12\x04\xda\x03\x1aB\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\ + \x04\xda\x03\x1bA\n9\n\x04\x04\x10\x02\x01\x12\x04\xdd\x03\x02A\x1a+\x20\ + Required.\x20The\x20id\x20of\x20the\x20rollout\x20resource.\n\n\x0f\n\ + \x05\x04\x10\x02\x01\x04\x12\x06\xdd\x03\x02\xda\x03C\n\r\n\x05\x04\x10\ + \x02\x01\x05\x12\x04\xdd\x03\x02\x08\n\r\n\x05\x04\x10\x02\x01\x01\x12\ + \x04\xdd\x03\t\x13\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xdd\x03\x16\x17\ + \n\r\n\x05\x04\x10\x02\x01\x08\x12\x04\xdd\x03\x18@\n\x10\n\x08\x04\x10\ + \x02\x01\x08\x9c\x08\0\x12\x04\xdd\x03\x19?\n9\n\x02\x04\x11\x12\x06\xe1\ + \x03\0\xf0\x03\x01\x1a+\x20Request\x20message\x20for\x20EnableService\ + \x20method.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xe1\x03\x08\x1c\n|\n\x04\ + \x04\x11\x02\0\x12\x04\xe4\x03\x02C\x1an\x20Required.\x20Name\x20of\x20t\ + he\x20service\x20to\x20enable.\x20Specifying\x20an\x20unknown\x20service\ + \x20name\x20will\n\x20cause\x20the\x20request\x20to\x20fail.\n\n\x0f\n\ + \x05\x04\x11\x02\0\x04\x12\x06\xe4\x03\x02\xe1\x03\x1e\n\r\n\x05\x04\x11\ + \x02\0\x05\x12\x04\xe4\x03\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\ + \xe4\x03\t\x15\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xe4\x03\x18\x19\n\r\n\ + \x05\x04\x11\x02\0\x08\x12\x04\xe4\x03\x1aB\n\x10\n\x08\x04\x11\x02\0\ + \x08\x9c\x08\0\x12\x04\xe4\x03\x1bA\n\xab\x02\n\x04\x04\x11\x02\x01\x12\ + \x04\xef\x03\x02B\x1a\x9c\x02\x20Required.\x20The\x20identity\x20of\x20c\ + onsumer\x20resource\x20which\x20service\x20enablement\x20will\x20be\n\ + \x20applied\x20to.\n\n\x20The\x20Google\x20Service\x20Management\x20impl\ + ementation\x20accepts\x20the\x20following\n\x20forms:\n\x20-\x20\"projec\ + t:\"\n\n\x20Note:\x20this\x20is\x20made\x20compatible\x20wit\ + h\n\x20google.api.servicecontrol.v1.Operation.consumer_id.\n\n\x0f\n\x05\ + \x04\x11\x02\x01\x04\x12\x06\xef\x03\x02\xe4\x03C\n\r\n\x05\x04\x11\x02\ + \x01\x05\x12\x04\xef\x03\x02\x08\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\ + \xef\x03\t\x14\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xef\x03\x17\x18\n\r\ + \n\x05\x04\x11\x02\x01\x08\x12\x04\xef\x03\x19A\n\x10\n\x08\x04\x11\x02\ + \x01\x08\x9c\x08\0\x12\x04\xef\x03\x1a@\n;\n\x02\x04\x12\x12\x06\xf3\x03\ + \0\xf5\x03\x01\x1a-\x20Operation\x20payload\x20for\x20EnableService\x20m\ + ethod.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xf3\x03\x08\x1d\n:\n\x02\x04\ + \x13\x12\x06\xf8\x03\0\x87\x04\x01\x1a,\x20Request\x20message\x20for\x20\ + DisableService\x20method.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xf8\x03\x08\ + \x1d\n}\n\x04\x04\x13\x02\0\x12\x04\xfb\x03\x02C\x1ao\x20Required.\x20Na\ + me\x20of\x20the\x20service\x20to\x20disable.\x20Specifying\x20an\x20unkn\ + own\x20service\x20name\n\x20will\x20cause\x20the\x20request\x20to\x20fai\ + l.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xfb\x03\x02\xf8\x03\x1f\n\r\n\ + \x05\x04\x13\x02\0\x05\x12\x04\xfb\x03\x02\x08\n\r\n\x05\x04\x13\x02\0\ + \x01\x12\x04\xfb\x03\t\x15\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xfb\x03\ + \x18\x19\n\r\n\x05\x04\x13\x02\0\x08\x12\x04\xfb\x03\x1aB\n\x10\n\x08\ + \x04\x13\x02\0\x08\x9c\x08\0\x12\x04\xfb\x03\x1bA\n\xac\x02\n\x04\x04\ + \x13\x02\x01\x12\x04\x86\x04\x02B\x1a\x9d\x02\x20Required.\x20The\x20ide\ + ntity\x20of\x20consumer\x20resource\x20which\x20service\x20disablement\ + \x20will\x20be\n\x20applied\x20to.\n\n\x20The\x20Google\x20Service\x20Ma\ + nagement\x20implementation\x20accepts\x20the\x20following\n\x20forms:\n\ + \x20-\x20\"project:\"\n\n\x20Note:\x20this\x20is\x20made\x20\ + compatible\x20with\n\x20google.api.servicecontrol.v1.Operation.consumer_\ + id.\n\n\x0f\n\x05\x04\x13\x02\x01\x04\x12\x06\x86\x04\x02\xfb\x03C\n\r\n\ + \x05\x04\x13\x02\x01\x05\x12\x04\x86\x04\x02\x08\n\r\n\x05\x04\x13\x02\ + \x01\x01\x12\x04\x86\x04\t\x14\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\x86\ + \x04\x17\x18\n\r\n\x05\x04\x13\x02\x01\x08\x12\x04\x86\x04\x19A\n\x10\n\ + \x08\x04\x13\x02\x01\x08\x9c\x08\0\x12\x04\x86\x04\x1a@\n<\n\x02\x04\x14\ + \x12\x06\x8a\x04\0\x8c\x04\x01\x1a.\x20Operation\x20payload\x20for\x20Di\ + sableService\x20method.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\x8a\x04\x08\ + \x1e\n@\n\x02\x04\x15\x12\x06\x8f\x04\0\x9d\x04\x01\x1a2\x20Request\x20m\ + essage\x20for\x20GenerateConfigReport\x20method.\n\n\x0b\n\x03\x04\x15\ + \x01\x12\x04\x8f\x04\x08#\n\xf2\x02\n\x04\x04\x15\x02\0\x12\x04\x95\x04\ + \x02N\x1a\xe3\x02\x20Required.\x20Service\x20configuration\x20for\x20whi\ + ch\x20we\x20want\x20to\x20generate\x20the\x20report.\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\x0f\n\x05\x04\x15\x02\0\x04\x12\x06\x95\x04\x02\ + \x8f\x04%\n\r\n\x05\x04\x15\x02\0\x06\x12\x04\x95\x04\x02\x15\n\r\n\x05\ + \x04\x15\x02\0\x01\x12\x04\x95\x04\x16\x20\n\r\n\x05\x04\x15\x02\0\x03\ + \x12\x04\x95\x04#$\n\r\n\x05\x04\x15\x02\0\x08\x12\x04\x95\x04%M\n\x10\n\ + \x08\x04\x15\x02\0\x08\x9c\x08\0\x12\x04\x95\x04&L\n\xf3\x02\n\x04\x04\ + \x15\x02\x01\x12\x04\x9c\x04\x02N\x1a\xe4\x02\x20Optional.\x20Service\ + \x20configuration\x20against\x20which\x20the\x20comparison\x20will\x20be\ + \x20done.\n\x20For\x20this\x20version\x20of\x20API,\x20the\x20supported\ + \x20types\x20are\n\x20[google.api.servicemanagement.v1.ConfigRef][google\ + .api.servicemanagement.v1.ConfigRef],\n\x20[google.api.servicemanagement\ + .v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource],\n\x20an\ + d\x20[google.api.Service][google.api.Service]\n\n\x0f\n\x05\x04\x15\x02\ + \x01\x04\x12\x06\x9c\x04\x02\x95\x04N\n\r\n\x05\x04\x15\x02\x01\x06\x12\ + \x04\x9c\x04\x02\x15\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\x9c\x04\x16\ + \x20\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\x9c\x04#$\n\r\n\x05\x04\x15\ + \x02\x01\x08\x12\x04\x9c\x04%M\n\x10\n\x08\x04\x15\x02\x01\x08\x9c\x08\0\ + \x12\x04\x9c\x04&L\nA\n\x02\x04\x16\x12\x06\xa0\x04\0\xaf\x04\x01\x1a3\ + \x20Response\x20message\x20for\x20GenerateConfigReport\x20method.\n\n\ + \x0b\n\x03\x04\x16\x01\x12\x04\xa0\x04\x08$\n;\n\x04\x04\x16\x02\0\x12\ + \x04\xa2\x04\x02\x1a\x1a-\x20Name\x20of\x20the\x20service\x20this\x20rep\ + ort\x20belongs\x20to.\n\n\x0f\n\x05\x04\x16\x02\0\x04\x12\x06\xa2\x04\ + \x02\xa0\x04&\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\xa2\x04\x02\x08\n\r\n\ + \x05\x04\x16\x02\0\x01\x12\x04\xa2\x04\t\x15\n\r\n\x05\x04\x16\x02\0\x03\ + \x12\x04\xa2\x04\x18\x19\nG\n\x04\x04\x16\x02\x01\x12\x04\xa5\x04\x02\ + \x10\x1a9\x20ID\x20of\x20the\x20service\x20configuration\x20this\x20repo\ + rt\x20belongs\x20to.\n\n\x0f\n\x05\x04\x16\x02\x01\x04\x12\x06\xa5\x04\ + \x02\xa2\x04\x1a\n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\xa5\x04\x02\x08\n\ + \r\n\x05\x04\x16\x02\x01\x01\x12\x04\xa5\x04\t\x0b\n\r\n\x05\x04\x16\x02\ + \x01\x03\x12\x04\xa5\x04\x0e\x0f\nk\n\x04\x04\x16\x02\x02\x12\x04\xa9\ + \x04\x02+\x1a]\x20list\x20of\x20ChangeReport,\x20each\x20corresponding\ + \x20to\x20comparison\x20between\x20two\n\x20service\x20configurations.\n\ + \n\r\n\x05\x04\x16\x02\x02\x04\x12\x04\xa9\x04\x02\n\n\r\n\x05\x04\x16\ + \x02\x02\x06\x12\x04\xa9\x04\x0b\x17\n\r\n\x05\x04\x16\x02\x02\x01\x12\ + \x04\xa9\x04\x18&\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\xa9\x04)*\ni\n\ + \x04\x04\x16\x02\x03\x12\x04\xae\x04\x02&\x1a[\x20Errors\x20/\x20Linter\ + \x20warnings\x20associated\x20with\x20the\x20service\x20definition\x20th\ + is\n\x20report\n\x20belongs\x20to.\n\n\r\n\x05\x04\x16\x02\x03\x04\x12\ + \x04\xae\x04\x02\n\n\r\n\x05\x04\x16\x02\x03\x06\x12\x04\xae\x04\x0b\x15\ + \n\r\n\x05\x04\x16\x02\x03\x01\x12\x04\xae\x04\x16!\n\r\n\x05\x04\x16\ + \x02\x03\x03\x12\x04\xae\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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs new file mode 100644 index 0000000000..dc00893b4c --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs @@ -0,0 +1,461 @@ +// 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_SERVICE_MANAGER_LIST_SERVICES: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/ListServices", + 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_GET_SERVICE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/GetService", + 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_CREATE_SERVICE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/CreateService", + 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_DELETE_SERVICE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/DeleteService", + 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_UNDELETE_SERVICE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/UndeleteService", + 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_LIST_SERVICE_CONFIGS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/ListServiceConfigs", + 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_GET_SERVICE_CONFIG: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/GetServiceConfig", + 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_CREATE_SERVICE_CONFIG: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/CreateServiceConfig", + 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_SUBMIT_CONFIG_SOURCE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/SubmitConfigSource", + 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_LIST_SERVICE_ROLLOUTS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/ListServiceRollouts", + 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_GET_SERVICE_ROLLOUT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/GetServiceRollout", + 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_CREATE_SERVICE_ROLLOUT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/CreateServiceRollout", + 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_GENERATE_CONFIG_REPORT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/GenerateConfigReport", + 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_ENABLE_SERVICE: ::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 { + client: ::grpcio::Client, +} + +impl ServiceManagerClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + ServiceManagerClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn list_services_opt(&self, req: &super::servicemanager::ListServicesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_LIST_SERVICES, req, opt) + } + + pub fn list_services(&self, req: &super::servicemanager::ListServicesRequest) -> ::grpcio::Result { + self.list_services_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_services_async_opt(&self, req: &super::servicemanager::ListServicesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_LIST_SERVICES, req, opt) + } + + pub fn list_services_async(&self, req: &super::servicemanager::ListServicesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_services_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_service_opt(&self, req: &super::servicemanager::GetServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_GET_SERVICE, req, opt) + } + + pub fn get_service(&self, req: &super::servicemanager::GetServiceRequest) -> ::grpcio::Result { + self.get_service_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_service_async_opt(&self, req: &super::servicemanager::GetServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_GET_SERVICE, req, opt) + } + + pub fn get_service_async(&self, req: &super::servicemanager::GetServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_service_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_service_opt(&self, req: &super::servicemanager::CreateServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_CREATE_SERVICE, req, opt) + } + + pub fn create_service(&self, req: &super::servicemanager::CreateServiceRequest) -> ::grpcio::Result { + self.create_service_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_service_async_opt(&self, req: &super::servicemanager::CreateServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_CREATE_SERVICE, req, opt) + } + + pub fn create_service_async(&self, req: &super::servicemanager::CreateServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_service_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_service_opt(&self, req: &super::servicemanager::DeleteServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_DELETE_SERVICE, req, opt) + } + + pub fn delete_service(&self, req: &super::servicemanager::DeleteServiceRequest) -> ::grpcio::Result { + self.delete_service_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_service_async_opt(&self, req: &super::servicemanager::DeleteServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_DELETE_SERVICE, req, opt) + } + + pub fn delete_service_async(&self, req: &super::servicemanager::DeleteServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_service_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn undelete_service_opt(&self, req: &super::servicemanager::UndeleteServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_UNDELETE_SERVICE, req, opt) + } + + pub fn undelete_service(&self, req: &super::servicemanager::UndeleteServiceRequest) -> ::grpcio::Result { + self.undelete_service_opt(req, ::grpcio::CallOption::default()) + } + + pub fn undelete_service_async_opt(&self, req: &super::servicemanager::UndeleteServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_UNDELETE_SERVICE, req, opt) + } + + pub fn undelete_service_async(&self, req: &super::servicemanager::UndeleteServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.undelete_service_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_service_configs_opt(&self, req: &super::servicemanager::ListServiceConfigsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_LIST_SERVICE_CONFIGS, req, opt) + } + + pub fn list_service_configs(&self, req: &super::servicemanager::ListServiceConfigsRequest) -> ::grpcio::Result { + self.list_service_configs_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_service_configs_async_opt(&self, req: &super::servicemanager::ListServiceConfigsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_LIST_SERVICE_CONFIGS, req, opt) + } + + pub fn list_service_configs_async(&self, req: &super::servicemanager::ListServiceConfigsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_service_configs_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_service_config_opt(&self, req: &super::servicemanager::GetServiceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_GET_SERVICE_CONFIG, req, opt) + } + + pub fn get_service_config(&self, req: &super::servicemanager::GetServiceConfigRequest) -> ::grpcio::Result { + self.get_service_config_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_service_config_async_opt(&self, req: &super::servicemanager::GetServiceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_GET_SERVICE_CONFIG, req, opt) + } + + pub fn get_service_config_async(&self, req: &super::servicemanager::GetServiceConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_service_config_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_service_config_opt(&self, req: &super::servicemanager::CreateServiceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_CONFIG, req, opt) + } + + pub fn create_service_config(&self, req: &super::servicemanager::CreateServiceConfigRequest) -> ::grpcio::Result { + self.create_service_config_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_service_config_async_opt(&self, req: &super::servicemanager::CreateServiceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_CONFIG, req, opt) + } + + pub fn create_service_config_async(&self, req: &super::servicemanager::CreateServiceConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_service_config_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn submit_config_source_opt(&self, req: &super::servicemanager::SubmitConfigSourceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_SUBMIT_CONFIG_SOURCE, req, opt) + } + + pub fn submit_config_source(&self, req: &super::servicemanager::SubmitConfigSourceRequest) -> ::grpcio::Result { + self.submit_config_source_opt(req, ::grpcio::CallOption::default()) + } + + pub fn submit_config_source_async_opt(&self, req: &super::servicemanager::SubmitConfigSourceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_SUBMIT_CONFIG_SOURCE, req, opt) + } + + pub fn submit_config_source_async(&self, req: &super::servicemanager::SubmitConfigSourceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.submit_config_source_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_service_rollouts_opt(&self, req: &super::servicemanager::ListServiceRolloutsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_LIST_SERVICE_ROLLOUTS, req, opt) + } + + pub fn list_service_rollouts(&self, req: &super::servicemanager::ListServiceRolloutsRequest) -> ::grpcio::Result { + self.list_service_rollouts_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_service_rollouts_async_opt(&self, req: &super::servicemanager::ListServiceRolloutsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_LIST_SERVICE_ROLLOUTS, req, opt) + } + + pub fn list_service_rollouts_async(&self, req: &super::servicemanager::ListServiceRolloutsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_service_rollouts_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_service_rollout_opt(&self, req: &super::servicemanager::GetServiceRolloutRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_GET_SERVICE_ROLLOUT, req, opt) + } + + pub fn get_service_rollout(&self, req: &super::servicemanager::GetServiceRolloutRequest) -> ::grpcio::Result { + self.get_service_rollout_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_service_rollout_async_opt(&self, req: &super::servicemanager::GetServiceRolloutRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_GET_SERVICE_ROLLOUT, req, opt) + } + + pub fn get_service_rollout_async(&self, req: &super::servicemanager::GetServiceRolloutRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_service_rollout_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_service_rollout_opt(&self, req: &super::servicemanager::CreateServiceRolloutRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_ROLLOUT, req, opt) + } + + pub fn create_service_rollout(&self, req: &super::servicemanager::CreateServiceRolloutRequest) -> ::grpcio::Result { + self.create_service_rollout_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_service_rollout_async_opt(&self, req: &super::servicemanager::CreateServiceRolloutRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_ROLLOUT, req, opt) + } + + pub fn create_service_rollout_async(&self, req: &super::servicemanager::CreateServiceRolloutRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_service_rollout_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn generate_config_report_opt(&self, req: &super::servicemanager::GenerateConfigReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_GENERATE_CONFIG_REPORT, req, opt) + } + + pub fn generate_config_report(&self, req: &super::servicemanager::GenerateConfigReportRequest) -> ::grpcio::Result { + self.generate_config_report_opt(req, ::grpcio::CallOption::default()) + } + + pub fn generate_config_report_async_opt(&self, req: &super::servicemanager::GenerateConfigReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_GENERATE_CONFIG_REPORT, req, opt) + } + + 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: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait ServiceManager { + fn list_services(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::ListServicesRequest, sink: ::grpcio::UnarySink); + fn get_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::GetServiceRequest, sink: ::grpcio::UnarySink); + fn create_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::CreateServiceRequest, sink: ::grpcio::UnarySink); + fn delete_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::DeleteServiceRequest, sink: ::grpcio::UnarySink); + fn undelete_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::UndeleteServiceRequest, sink: ::grpcio::UnarySink); + fn list_service_configs(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::ListServiceConfigsRequest, sink: ::grpcio::UnarySink); + fn get_service_config(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::GetServiceConfigRequest, sink: ::grpcio::UnarySink); + fn create_service_config(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::CreateServiceConfigRequest, sink: ::grpcio::UnarySink); + fn submit_config_source(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::SubmitConfigSourceRequest, sink: ::grpcio::UnarySink); + fn list_service_rollouts(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::ListServiceRolloutsRequest, sink: ::grpcio::UnarySink); + fn get_service_rollout(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::GetServiceRolloutRequest, sink: ::grpcio::UnarySink); + fn create_service_rollout(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::CreateServiceRolloutRequest, sink: ::grpcio::UnarySink); + fn generate_config_report(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::GenerateConfigReportRequest, sink: ::grpcio::UnarySink); + fn enable_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::EnableServiceRequest, sink: ::grpcio::UnarySink); + fn disable_service(&mut self, ctx: ::grpcio::RpcContext, req: super::servicemanager::DisableServiceRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_service_manager(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_LIST_SERVICES, move |ctx, req, resp| { + instance.list_services(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_GET_SERVICE, move |ctx, req, resp| { + instance.get_service(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_CREATE_SERVICE, move |ctx, req, resp| { + instance.create_service(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_DELETE_SERVICE, move |ctx, req, resp| { + instance.delete_service(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_UNDELETE_SERVICE, move |ctx, req, resp| { + instance.undelete_service(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_LIST_SERVICE_CONFIGS, move |ctx, req, resp| { + instance.list_service_configs(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_GET_SERVICE_CONFIG, move |ctx, req, resp| { + instance.get_service_config(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_CONFIG, move |ctx, req, resp| { + instance.create_service_config(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_SUBMIT_CONFIG_SOURCE, move |ctx, req, resp| { + instance.submit_config_source(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_LIST_SERVICE_ROLLOUTS, move |ctx, req, resp| { + instance.list_service_rollouts(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_GET_SERVICE_ROLLOUT, move |ctx, req, resp| { + instance.get_service_rollout(ctx, req, resp) + }); + let mut instance = s.clone(); + 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.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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/source_info.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/source_info.rs new file mode 100644 index 0000000000..399e94cfee --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/source_info.rs @@ -0,0 +1,235 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/source_info.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct SourceInfo { + // message fields + pub source_files: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SourceInfo { + fn default() -> &'a SourceInfo { + ::default_instance() + } +} + +impl SourceInfo { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.source_files { + 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.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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static SourceInfo { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SourceInfo::new) + } +} + +impl ::protobuf::Clear for SourceInfo { + fn clear(&mut self) { + self.source_files.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1cgoogle/api/source_info.proto\x12\ngoogle.api\x1a\x19google/protobu\ + 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\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\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\ + \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/vendor/mozilla-rust-sdk/googleapis-raw/src/api/system_parameter.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/system_parameter.rs new file mode 100644 index 0000000000..4ff9af7e7b --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/system_parameter.rs @@ -0,0 +1,756 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/system_parameter.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct SystemParameters { + // 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 SystemParameters { + fn default() -> &'a SystemParameters { + ::default_instance() + } +} + +impl SystemParameters { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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() -> 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 default_instance() -> &'static SystemParameters { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SystemParameters::new) + } +} + +impl ::protobuf::Clear for SystemParameters { + fn clear(&mut self) { + self.rules.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SystemParameterRule { + // message fields + pub selector: ::std::string::String, + pub parameters: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SystemParameterRule { + fn default() -> &'a SystemParameterRule { + ::default_instance() + } +} + +impl SystemParameterRule { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.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; + 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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static SystemParameterRule { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SystemParameterRule::new) + } +} + +impl ::protobuf::Clear for SystemParameterRule { + fn clear(&mut self) { + self.selector.clear(); + self.parameters.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SystemParameter { + // message fields + pub name: ::std::string::String, + pub http_header: ::std::string::String, + pub url_query_parameter: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SystemParameter { + fn default() -> &'a SystemParameter { + ::default_instance() + } +} + +impl SystemParameter { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.http_header)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url_query_parameter)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.http_header.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.http_header); + } + 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 + } + + 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.http_header.is_empty() { + os.write_string(2, &self.http_header)?; + } + if !self.url_query_parameter.is_empty() { + os.write_string(3, &self.url_query_parameter)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static SystemParameter { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SystemParameter::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n!google/api/system_parameter.proto\x12\ngoogle.api\"I\n\x10SystemParam\ + eters\x125\n\x05rules\x18\x01\x20\x03(\x0b2\x1f.google.api.SystemParamet\ + erRuleR\x05rules\"n\n\x13SystemParameterRule\x12\x1a\n\x08selector\x18\ + \x01\x20\x01(\tR\x08selector\x12;\n\nparameters\x18\x02\x20\x03(\x0b2\ + \x1b.google.api.SystemParameterR\nparameters\"v\n\x0fSystemParameter\x12\ + \x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1f\n\x0bhttp_header\x18\ + \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\xfc\x19\n\x06\x12\x04\x0e\0^\x01\n\xbc\x04\n\ + \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\ + \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\ + \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\ + rvice\n\x20config,\x20default\x20system\x20parameters\x20will\x20be\x20u\ + sed.\x20Default\x20system\x20parameters\n\x20and\x20names\x20is\x20imple\ + mentation-dependent.\n\n\x20Example:\x20define\x20api\x20key\x20for\x20a\ + ll\x20methods\n\n\x20\x20\x20\x20\x20system_parameters\n\x20\x20\x20\x20\ + \x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20selector:\ + \x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parameters:\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20name:\x20api_key\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url_query_pa\ + rameter:\x20api_key\n\n\n\x20Example:\x20define\x202\x20api\x20key\x20na\ + mes\x20for\x20a\x20specific\x20method.\n\n\x20\x20\x20\x20\x20system_par\ + ameters\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20-\x20selector:\x20\"/ListShelves\"\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20parameters:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20-\x20name:\x20api_key\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20http_header:\x20Api-Key1\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20name:\x20api_key\n\x20\x20\x20\ + \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\0N\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\xbe\x01\n\x04\x04\x01\ + \x02\0\x12\x03F\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\x20details.\ + \n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04F\x02A\x1d\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\x11\n\ + \x0c\n\x05\x04\x01\x02\0\x03\x12\x03F\x14\x15\n\xa4\x02\n\x04\x04\x01\ + \x02\x01\x12\x03M\x02*\x1a\x96\x02\x20Define\x20parameters.\x20Multiple\ + \x20names\x20may\x20be\x20defined\x20for\x20a\x20parameter.\n\x20For\x20\ + a\x20given\x20method\x20call,\x20only\x20one\x20of\x20them\x20should\x20\ + be\x20used.\x20If\x20multiple\n\x20names\x20are\x20used\x20the\x20behavi\ + or\x20is\x20implementation-dependent.\n\x20If\x20none\x20of\x20the\x20sp\ + ecified\x20names\x20are\x20present\x20the\x20behavior\x20is\n\x20paramet\ + er-dependent.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03M\x02\n\n\x0c\n\ + \x05\x04\x01\x02\x01\x06\x12\x03M\x0b\x1a\n\x0c\n\x05\x04\x01\x02\x01\ + \x01\x12\x03M\x1b%\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M()\n\xc8\x01\ + \n\x02\x04\x02\x12\x04S\0^\x01\x1a\xbb\x01\x20Define\x20a\x20parameter's\ + \x20name\x20and\x20location.\x20The\x20parameter\x20may\x20be\x20passed\ + \x20as\x20either\n\x20an\x20HTTP\x20header\x20or\x20a\x20URL\x20query\ + \x20parameter,\x20and\x20if\x20both\x20are\x20passed\x20the\x20behavior\ + \n\x20is\x20implementation-dependent.\n\n\n\n\x03\x04\x02\x01\x12\x03S\ + \x08\x17\nZ\n\x04\x04\x02\x02\0\x12\x03U\x02\x12\x1aM\x20Define\x20the\ + \x20name\x20of\x20the\x20parameter,\x20such\x20as\x20\"api_key\"\x20.\ + \x20It\x20is\x20case\x20sensitive.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04\ + U\x02S\x19\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\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03U\ + \x10\x11\n]\n\x04\x04\x02\x02\x01\x12\x03Y\x02\x19\x1aP\x20Define\x20the\ + \x20HTTP\x20header\x20name\x20to\x20use\x20for\x20the\x20parameter.\x20I\ + t\x20is\x20case\n\x20insensitive.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\ + \x04Y\x02U\x12\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03Y\x02\x08\n\x0c\n\ + \x05\x04\x02\x02\x01\x01\x12\x03Y\t\x14\n\x0c\n\x05\x04\x02\x02\x01\x03\ + \x12\x03Y\x17\x18\nc\n\x04\x04\x02\x02\x02\x12\x03]\x02!\x1aV\x20Define\ + \x20the\x20URL\x20query\x20parameter\x20name\x20to\x20use\x20for\x20the\ + \x20parameter.\x20It\x20is\x20case\n\x20sensitive.\n\n\r\n\x05\x04\x02\ + \x02\x02\x04\x12\x04]\x02Y\x19\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\x1c\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/api/usage.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/usage.rs new file mode 100644 index 0000000000..ab277b8eee --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/api/usage.rs @@ -0,0 +1,619 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/usage.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Usage { + // message fields + pub requirements: ::protobuf::RepeatedField<::std::string::String>, + pub rules: ::protobuf::RepeatedField, + pub producer_notification_channel: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Usage { + fn default() -> &'a Usage { + ::default_instance() + } +} + +impl Usage { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 6 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_notification_channel)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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; + }; + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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)?; + }; + if !self.producer_notification_channel.is_empty() { + os.write_string(7, &self.producer_notification_channel)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Usage { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Usage::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UsageRule { + // message fields + pub selector: ::std::string::String, + pub allow_unregistered_calls: bool, + pub skip_service_control: bool, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UsageRule { + fn default() -> &'a UsageRule { + ::default_instance() + } +} + +impl UsageRule { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.allow_unregistered_calls != false { + my_size += 2; + } + if self.skip_service_control != 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.selector.is_empty() { + os.write_string(1, &self.selector)?; + } + if self.allow_unregistered_calls != false { + os.write_bool(2, self.allow_unregistered_calls)?; + } + if self.skip_service_control != false { + os.write_bool(3, self.skip_service_control)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static UsageRule { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UsageRule::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x16google/api/usage.proto\x12\ngoogle.api\"\x9c\x01\n\x05Usage\x12\"\ + \n\x0crequirements\x18\x01\x20\x03(\tR\x0crequirements\x12+\n\x05rules\ + \x18\x06\x20\x03(\x0b2\x15.google.api.UsageRuleR\x05rules\x12B\n\x1dprod\ + ucer_notification_channel\x18\x07\x20\x01(\tR\x1bproducerNotificationCha\ + nnel\"\x93\x01\n\tUsageRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\ + \x08selector\x128\n\x18allow_unregistered_calls\x18\x02\x20\x01(\x08R\ + \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\xdb\x1c\n\x06\x12\x04\x0e\0^\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\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\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\r\n\x05\x04\0\x02\x02\x04\x12\ + \x042\x02(\x1f\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\x03\ + 2)*\n\xc0\x06\n\x02\x04\x01\x12\x04N\0^\x01\x1a\xb3\x06\x20Usage\x20conf\ + iguration\x20rules\x20for\x20the\x20service.\n\n\x20NOTE:\x20Under\x20de\ + velopment.\n\n\n\x20Use\x20this\x20rule\x20to\x20configure\x20unregister\ + ed\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\x03N\x08\x11\n\xbe\x01\n\x04\x04\x01\x02\0\ + \x12\x03S\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\r\n\ + \x05\x04\x01\x02\0\x04\x12\x04S\x02N\x13\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\x7f\n\x04\x04\x01\x02\x01\x12\ + \x03W\x02$\x1ar\x20If\x20true,\x20the\x20selected\x20method\x20allows\ + \x20unregistered\x20calls,\x20e.g.\x20calls\n\x20that\x20don't\x20identi\ + fy\x20any\x20user\x20or\x20application.\n\n\r\n\x05\x04\x01\x02\x01\x04\ + \x12\x04W\x02S\x16\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03W\x02\x06\n\ + \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03W\x07\x1f\n\x0c\n\x05\x04\x01\x02\ + \x01\x03\x12\x03W\"#\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\r\n\x05\x04\x01\x02\ + \x02\x04\x12\x04]\x02W$\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_data.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_data.rs new file mode 100644 index 0000000000..9d341c4f05 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_data.rs @@ -0,0 +1,817 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/cluster/v1/bigtable_cluster_data.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Zone { + // message fields + pub name: ::std::string::String, + pub display_name: ::std::string::String, + pub status: Zone_Status, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Zone { + fn default() -> &'a Zone { + ::default_instance() + } +} + +impl Zone { + pub fn new() -> Zone { + ::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.cluster.v1.Zone.Status status = 3; + + + pub fn get_status(&self) -> Zone_Status { + self.status + } + pub fn clear_status(&mut self) { + self.status = Zone_Status::UNKNOWN; + } + + // Param is passed by value, moved + pub fn set_status(&mut self, v: Zone_Status) { + self.status = v; + } +} + +impl ::protobuf::Message for Zone { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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.status, 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.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.status != Zone_Status::UNKNOWN { + my_size += ::protobuf::rt::enum_size(3, self.status); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.status != Zone_Status::UNKNOWN { + os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.status))?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Zone { + Zone::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &Zone| { &m.name }, + |m: &mut Zone| { &mut m.name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "display_name", + |m: &Zone| { &m.display_name }, + |m: &mut Zone| { &mut m.display_name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "status", + |m: &Zone| { &m.status }, + |m: &mut Zone| { &mut m.status }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Zone", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Zone { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Zone::new) + } +} + +impl ::protobuf::Clear for Zone { + fn clear(&mut self) { + self.name.clear(); + self.display_name.clear(); + self.status = Zone_Status::UNKNOWN; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Zone { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Zone { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum Zone_Status { + UNKNOWN = 0, + OK = 1, + PLANNED_MAINTENANCE = 2, + EMERGENCY_MAINENANCE = 3, +} + +impl ::protobuf::ProtobufEnum for Zone_Status { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Zone_Status::UNKNOWN), + 1 => ::std::option::Option::Some(Zone_Status::OK), + 2 => ::std::option::Option::Some(Zone_Status::PLANNED_MAINTENANCE), + 3 => ::std::option::Option::Some(Zone_Status::EMERGENCY_MAINENANCE), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [Zone_Status] = &[ + Zone_Status::UNKNOWN, + Zone_Status::OK, + Zone_Status::PLANNED_MAINTENANCE, + Zone_Status::EMERGENCY_MAINENANCE, + ]; + 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::("Zone.Status", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for Zone_Status { +} + +impl ::std::default::Default for Zone_Status { + fn default() -> Self { + Zone_Status::UNKNOWN + } +} + +impl ::protobuf::reflect::ProtobufValue for Zone_Status { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Cluster { + // message fields + pub name: ::std::string::String, + pub current_operation: ::protobuf::SingularPtrField, + pub display_name: ::std::string::String, + pub serve_nodes: i32, + pub default_storage_type: StorageType, + // 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() + } +} + +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()) + } + + // .google.longrunning.Operation current_operation = 3; + + + pub fn get_current_operation(&self) -> &super::operations::Operation { + self.current_operation.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_current_operation(&mut self) { + self.current_operation.clear(); + } + + pub fn has_current_operation(&self) -> bool { + self.current_operation.is_some() + } + + // Param is passed by value, moved + pub fn set_current_operation(&mut self, v: super::operations::Operation) { + self.current_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_current_operation(&mut self) -> &mut super::operations::Operation { + if self.current_operation.is_none() { + self.current_operation.set_default(); + } + self.current_operation.as_mut().unwrap() + } + + // Take field + pub fn take_current_operation(&mut self) -> super::operations::Operation { + self.current_operation.take().unwrap_or_else(|| super::operations::Operation::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()) + } + + // int32 serve_nodes = 5; + + + 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.cluster.v1.StorageType default_storage_type = 8; + + + pub fn get_default_storage_type(&self) -> StorageType { + self.default_storage_type + } + pub fn clear_default_storage_type(&mut self) { + self.default_storage_type = StorageType::STORAGE_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_default_storage_type(&mut self, v: StorageType) { + self.default_storage_type = v; + } +} + +impl ::protobuf::Message for Cluster { + fn is_initialized(&self) -> bool { + for v in &self.current_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.name)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.current_operation)?; + }, + 4 => { + ::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.serve_nodes = tmp; + }, + 8 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.default_storage_type, 8, &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 let Some(ref v) = self.current_operation.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.display_name.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.display_name); + } + if self.serve_nodes != 0 { + my_size += ::protobuf::rt::value_size(5, self.serve_nodes, ::protobuf::wire_format::WireTypeVarint); + } + if self.default_storage_type != StorageType::STORAGE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(8, self.default_storage_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.name.is_empty() { + os.write_string(1, &self.name)?; + } + if let Some(ref v) = self.current_operation.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.display_name.is_empty() { + os.write_string(4, &self.display_name)?; + } + if self.serve_nodes != 0 { + os.write_int32(5, self.serve_nodes)?; + } + if self.default_storage_type != StorageType::STORAGE_UNSPECIFIED { + os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.default_storage_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() -> 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "current_operation", + |m: &Cluster| { &m.current_operation }, + |m: &mut Cluster| { &mut m.current_operation }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "display_name", + |m: &Cluster| { &m.display_name }, + |m: &mut Cluster| { &mut m.display_name }, + )); + 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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "default_storage_type", + |m: &Cluster| { &m.default_storage_type }, + |m: &mut Cluster| { &mut m.default_storage_type }, + )); + ::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.current_operation.clear(); + self.display_name.clear(); + self.serve_nodes = 0; + self.default_storage_type = StorageType::STORAGE_UNSPECIFIED; + 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(Clone,PartialEq,Eq,Debug,Hash)] +pub enum StorageType { + STORAGE_UNSPECIFIED = 0, + STORAGE_SSD = 1, + STORAGE_HDD = 2, +} + +impl ::protobuf::ProtobufEnum for StorageType { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(StorageType::STORAGE_UNSPECIFIED), + 1 => ::std::option::Option::Some(StorageType::STORAGE_SSD), + 2 => ::std::option::Option::Some(StorageType::STORAGE_HDD), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [StorageType] = &[ + StorageType::STORAGE_UNSPECIFIED, + StorageType::STORAGE_SSD, + StorageType::STORAGE_HDD, + ]; + 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::("StorageType", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for StorageType { +} + +impl ::std::default::Default for StorageType { + fn default() -> Self { + StorageType::STORAGE_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for StorageType { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n/zones/[a-z][-a-z0-9]*\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04/\ + \x02+\x03\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:\ + \n\x04\x04\0\x02\x01\x12\x032\x02\x1a\x1a-\x20The\x20name\x20of\x20this\ + \x20zone\x20as\x20it\x20appears\x20in\x20UIs.\n\n\r\n\x05\x04\0\x02\x01\ + \x04\x12\x042\x02/\x12\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x032\x02\x08\n\ + \x0c\n\x05\x04\0\x02\x01\x01\x12\x032\t\x15\n\x0c\n\x05\x04\0\x02\x01\ + \x03\x12\x032\x18\x19\n.\n\x04\x04\0\x02\x02\x12\x035\x02\x14\x1a!\x20Th\ + e\x20current\x20state\x20of\x20this\x20zone.\n\n\r\n\x05\x04\0\x02\x02\ + \x04\x12\x045\x022\x1a\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x035\x02\x08\n\ + \x0c\n\x05\x04\0\x02\x02\x01\x12\x035\t\x0f\n\x0c\n\x05\x04\0\x02\x02\ + \x03\x12\x035\x12\x13\nX\n\x02\x04\x01\x12\x049\0P\x01\x1aL\x20An\x20iso\ + lated\x20set\x20of\x20Cloud\x20BigTable\x20resources\x20on\x20which\x20t\ + ables\x20can\x20be\x20hosted.\n\n\n\n\x03\x04\x01\x01\x12\x039\x08\x0f\n\ + \xe0\x01\n\x04\x04\x01\x02\0\x12\x03>\x02\x12\x1a\xd2\x01\x20A\x20perman\ + ent\x20unique\x20identifier\x20for\x20the\x20cluster.\x20For\x20technica\ + l\x20reasons,\x20the\n\x20zone\x20in\x20which\x20the\x20cluster\x20resid\ + es\x20is\x20included\x20here.\n\x20Values\x20are\x20of\x20the\x20form\n\ + \x20projects//zones//clusters/[a-z][-a-z0-9]*\n\n\r\n\x05\ + \x04\x01\x02\0\x04\x12\x04>\x029\x11\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\r\n\x0c\n\x05\x04\ + \x01\x02\0\x03\x12\x03>\x10\x11\n\xf5\x01\n\x04\x04\x01\x02\x01\x12\x03D\ + \x025\x1a\xe7\x01\x20The\x20operation\x20currently\x20running\x20on\x20t\ + he\x20cluster,\x20if\x20any.\n\x20This\x20cannot\x20be\x20set\x20directl\ + y,\x20only\x20through\x20CreateCluster,\x20UpdateCluster,\n\x20or\x20Und\ + eleteCluster.\x20Calls\x20to\x20these\x20methods\x20will\x20be\x20reject\ + ed\x20if\n\x20\"current_operation\"\x20is\x20already\x20set.\n\n\r\n\x05\ + \x04\x01\x02\x01\x04\x12\x04D\x02>\x12\n\x0c\n\x05\x04\x01\x02\x01\x06\ + \x12\x03D\x02\x1e\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03D\x1f0\n\x0c\n\ + \x05\x04\x01\x02\x01\x03\x12\x03D34\nd\n\x04\x04\x01\x02\x02\x12\x03H\ + \x02\x1a\x1aW\x20The\x20descriptive\x20name\x20for\x20this\x20cluster\ + \x20as\x20it\x20appears\x20in\x20UIs.\n\x20Must\x20be\x20unique\x20per\ + \x20zone.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04H\x02D5\n\x0c\n\x05\x04\ + \x01\x02\x02\x05\x12\x03H\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\ + \x03H\t\x15\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03H\x18\x19\nC\n\x04\ + \x04\x01\x02\x03\x12\x03K\x02\x18\x1a6\x20The\x20number\x20of\x20serve\ + \x20nodes\x20allocated\x20to\x20this\x20cluster.\n\n\r\n\x05\x04\x01\x02\ + \x03\x04\x12\x04K\x02H\x1a\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03K\x02\ + \x07\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03K\x08\x13\n\x0c\n\x05\x04\ + \x01\x02\x03\x03\x12\x03K\x16\x17\n\x9b\x01\n\x04\x04\x01\x02\x04\x12\ + \x03O\x02'\x1a\x8d\x01\x20What\x20storage\x20type\x20to\x20use\x20for\ + \x20tables\x20in\x20this\x20cluster.\x20Only\x20configurable\x20at\n\x20\ + cluster\x20creation\x20time.\x20If\x20unspecified,\x20STORAGE_SSD\x20wil\ + l\x20be\x20used.\n\n\r\n\x05\x04\x01\x02\x04\x04\x12\x04O\x02K\x18\n\x0c\ + \n\x05\x04\x01\x02\x04\x06\x12\x03O\x02\r\n\x0c\n\x05\x04\x01\x02\x04\ + \x01\x12\x03O\x0e\"\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03O%&\n\n\n\x02\ + \x05\0\x12\x04R\0\\\x01\n\n\n\x03\x05\0\x01\x12\x03R\x05\x10\n4\n\x04\ + \x05\0\x02\0\x12\x03T\x02\x1a\x1a'\x20The\x20storage\x20type\x20used\x20\ + is\x20unspecified.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03T\x02\x15\n\x0c\ + \n\x05\x05\0\x02\0\x02\x12\x03T\x18\x19\nR\n\x04\x05\0\x02\x01\x12\x03W\ + \x02\x12\x1aE\x20Data\x20will\x20be\x20stored\x20in\x20SSD,\x20providing\ + \x20low\x20and\x20consistent\x20latencies.\n\n\x0c\n\x05\x05\0\x02\x01\ + \x01\x12\x03W\x02\r\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03W\x10\x11\nZ\n\ + \x04\x05\0\x02\x02\x12\x03[\x02\x12\x1aM\x20Data\x20will\x20be\x20stored\ + \x20in\x20HDD,\x20providing\x20high\x20and\x20less\x20predictable\n\x20l\ + atencies.\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\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service.rs new file mode 100644 index 0000000000..f207bff4d9 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service.rs @@ -0,0 +1,206 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/cluster/v1/bigtable_cluster_service.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n?google/bigtable/admin/cluster/v1/bigtable_cluster_service.proto\x12\ + \x20google.bigtable.admin.cluster.v1\x1a\x1cgoogle/api/annotations.proto\ + \x1a = ::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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_grpc.rs new file mode 100644 index 0000000000..7aac41a74c --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_grpc.rs @@ -0,0 +1,237 @@ +// 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_BIGTABLE_CLUSTER_SERVICE_LIST_ZONES: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/ListZones", + 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_CLUSTER_SERVICE_GET_CLUSTER: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/GetCluster", + 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_CLUSTER_SERVICE_LIST_CLUSTERS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/ListClusters", + 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_CLUSTER_SERVICE_CREATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/CreateCluster", + 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_CLUSTER_SERVICE_UPDATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/UpdateCluster", + 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_CLUSTER_SERVICE_DELETE_CLUSTER: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/DeleteCluster", + 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_CLUSTER_SERVICE_UNDELETE_CLUSTER: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.cluster.v1.BigtableClusterService/UndeleteCluster", + 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 BigtableClusterServiceClient { + client: ::grpcio::Client, +} + +impl BigtableClusterServiceClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + BigtableClusterServiceClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn list_zones_opt(&self, req: &super::bigtable_cluster_service_messages::ListZonesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_ZONES, req, opt) + } + + pub fn list_zones(&self, req: &super::bigtable_cluster_service_messages::ListZonesRequest) -> ::grpcio::Result { + self.list_zones_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_zones_async_opt(&self, req: &super::bigtable_cluster_service_messages::ListZonesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_ZONES, req, opt) + } + + pub fn list_zones_async(&self, req: &super::bigtable_cluster_service_messages::ListZonesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_zones_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_cluster_opt(&self, req: &super::bigtable_cluster_service_messages::GetClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_GET_CLUSTER, req, opt) + } + + pub fn get_cluster(&self, req: &super::bigtable_cluster_service_messages::GetClusterRequest) -> ::grpcio::Result { + self.get_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_cluster_async_opt(&self, req: &super::bigtable_cluster_service_messages::GetClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_GET_CLUSTER, req, opt) + } + + pub fn get_cluster_async(&self, req: &super::bigtable_cluster_service_messages::GetClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_cluster_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_clusters_opt(&self, req: &super::bigtable_cluster_service_messages::ListClustersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_CLUSTERS, req, opt) + } + + pub fn list_clusters(&self, req: &super::bigtable_cluster_service_messages::ListClustersRequest) -> ::grpcio::Result { + self.list_clusters_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_clusters_async_opt(&self, req: &super::bigtable_cluster_service_messages::ListClustersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_CLUSTERS, req, opt) + } + + pub fn list_clusters_async(&self, req: &super::bigtable_cluster_service_messages::ListClustersRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_clusters_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_cluster_opt(&self, req: &super::bigtable_cluster_service_messages::CreateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_CREATE_CLUSTER, req, opt) + } + + pub fn create_cluster(&self, req: &super::bigtable_cluster_service_messages::CreateClusterRequest) -> ::grpcio::Result { + self.create_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_cluster_async_opt(&self, req: &super::bigtable_cluster_service_messages::CreateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_CREATE_CLUSTER, req, opt) + } + + pub fn create_cluster_async(&self, req: &super::bigtable_cluster_service_messages::CreateClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_cluster_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_cluster_opt(&self, req: &super::bigtable_cluster_data::Cluster, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_UPDATE_CLUSTER, req, opt) + } + + pub fn update_cluster(&self, req: &super::bigtable_cluster_data::Cluster) -> ::grpcio::Result { + self.update_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_cluster_async_opt(&self, req: &super::bigtable_cluster_data::Cluster, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_UPDATE_CLUSTER, req, opt) + } + + pub fn update_cluster_async(&self, req: &super::bigtable_cluster_data::Cluster) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_cluster_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_cluster_opt(&self, req: &super::bigtable_cluster_service_messages::DeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_DELETE_CLUSTER, req, opt) + } + + pub fn delete_cluster(&self, req: &super::bigtable_cluster_service_messages::DeleteClusterRequest) -> ::grpcio::Result { + self.delete_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_cluster_async_opt(&self, req: &super::bigtable_cluster_service_messages::DeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_DELETE_CLUSTER, req, opt) + } + + pub fn delete_cluster_async(&self, req: &super::bigtable_cluster_service_messages::DeleteClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_cluster_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn undelete_cluster_opt(&self, req: &super::bigtable_cluster_service_messages::UndeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_CLUSTER_SERVICE_UNDELETE_CLUSTER, req, opt) + } + + pub fn undelete_cluster(&self, req: &super::bigtable_cluster_service_messages::UndeleteClusterRequest) -> ::grpcio::Result { + self.undelete_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn undelete_cluster_async_opt(&self, req: &super::bigtable_cluster_service_messages::UndeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_CLUSTER_SERVICE_UNDELETE_CLUSTER, req, opt) + } + + pub fn undelete_cluster_async(&self, req: &super::bigtable_cluster_service_messages::UndeleteClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.undelete_cluster_async_opt(req, ::grpcio::CallOption::default()) + } + pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait BigtableClusterService { + fn list_zones(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::ListZonesRequest, sink: ::grpcio::UnarySink); + fn get_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::GetClusterRequest, sink: ::grpcio::UnarySink); + fn list_clusters(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::ListClustersRequest, sink: ::grpcio::UnarySink); + fn create_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::CreateClusterRequest, sink: ::grpcio::UnarySink); + fn update_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_data::Cluster, sink: ::grpcio::UnarySink); + fn delete_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::DeleteClusterRequest, sink: ::grpcio::UnarySink); + fn undelete_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_cluster_service_messages::UndeleteClusterRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_bigtable_cluster_service(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_ZONES, move |ctx, req, resp| { + instance.list_zones(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_GET_CLUSTER, move |ctx, req, resp| { + instance.get_cluster(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_LIST_CLUSTERS, move |ctx, req, resp| { + instance.list_clusters(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_CREATE_CLUSTER, move |ctx, req, resp| { + instance.create_cluster(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_UPDATE_CLUSTER, move |ctx, req, resp| { + instance.update_cluster(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_DELETE_CLUSTER, move |ctx, req, resp| { + instance.delete_cluster(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_BIGTABLE_CLUSTER_SERVICE_UNDELETE_CLUSTER, move |ctx, req, resp| { + instance.undelete_cluster(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.rs new file mode 100644 index 0000000000..7c3c4eafce --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.rs @@ -0,0 +1,2637 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/cluster/v1/bigtable_cluster_service_messages.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct ListZonesRequest { + // 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 ListZonesRequest { + fn default() -> &'a ListZonesRequest { + ::default_instance() + } +} + +impl ListZonesRequest { + pub fn new() -> ListZonesRequest { + ::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 ListZonesRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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() -> ListZonesRequest { + ListZonesRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListZonesRequest| { &m.name }, + |m: &mut ListZonesRequest| { &mut m.name }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListZonesRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListZonesRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListZonesRequest::new) + } +} + +impl ::protobuf::Clear for ListZonesRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListZonesRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListZonesRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListZonesResponse { + // message fields + pub zones: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListZonesResponse { + fn default() -> &'a ListZonesResponse { + ::default_instance() + } +} + +impl ListZonesResponse { + pub fn new() -> ListZonesResponse { + ::std::default::Default::default() + } + + // repeated .google.bigtable.admin.cluster.v1.Zone zones = 1; + + + pub fn get_zones(&self) -> &[super::bigtable_cluster_data::Zone] { + &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) { + self.zones = v; + } + + // Mutable pointer to the field. + pub fn mut_zones(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.zones + } + + // Take field + pub fn take_zones(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.zones, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for ListZonesResponse { + fn is_initialized(&self) -> bool { + for v in &self.zones { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &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.zones)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.zones { + 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.zones { + 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() -> ListZonesResponse { + ListZonesResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "zones", + |m: &ListZonesResponse| { &m.zones }, + |m: &mut ListZonesResponse| { &mut m.zones }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListZonesResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListZonesResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListZonesResponse::new) + } +} + +impl ::protobuf::Clear for ListZonesResponse { + fn clear(&mut self) { + self.zones.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListZonesResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListZonesResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetClusterRequest { + // 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 GetClusterRequest { + fn default() -> &'a GetClusterRequest { + ::default_instance() + } +} + +impl GetClusterRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static GetClusterRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetClusterRequest::new) + } +} + +impl ::protobuf::Clear for GetClusterRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListClustersRequest { + // 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 ListClustersRequest { + fn default() -> &'a ListClustersRequest { + ::default_instance() + } +} + +impl ListClustersRequest { + pub fn new() -> ListClustersRequest { + ::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 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.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() -> 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>( + "name", + |m: &ListClustersRequest| { &m.name }, + |m: &mut ListClustersRequest| { &mut m.name }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListClustersRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListClustersRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListClustersRequest::new) + } +} + +impl ::protobuf::Clear for ListClustersRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListClustersResponse { + // message fields + pub clusters: ::protobuf::RepeatedField, + pub failed_zones: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListClustersResponse { + fn default() -> &'a ListClustersResponse { + ::default_instance() + } +} + +impl ListClustersResponse { + pub fn new() -> ListClustersResponse { + ::std::default::Default::default() + } + + // repeated .google.bigtable.admin.cluster.v1.Cluster clusters = 1; + + + pub fn get_clusters(&self) -> &[super::bigtable_cluster_data::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 .google.bigtable.admin.cluster.v1.Zone failed_zones = 2; + + + pub fn get_failed_zones(&self) -> &[super::bigtable_cluster_data::Zone] { + &self.failed_zones + } + pub fn clear_failed_zones(&mut self) { + self.failed_zones.clear(); + } + + // Param is passed by value, moved + pub fn set_failed_zones(&mut self, v: ::protobuf::RepeatedField) { + self.failed_zones = v; + } + + // Mutable pointer to the field. + pub fn mut_failed_zones(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.failed_zones + } + + // Take field + pub fn take_failed_zones(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.failed_zones, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for ListClustersResponse { + fn is_initialized(&self) -> bool { + for v in &self.clusters { + if !v.is_initialized() { + return false; + } + }; + for v in &self.failed_zones { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.failed_zones)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.clusters { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + for value in &self.failed_zones { + 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.clusters { + 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.failed_zones { + 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() -> 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::ProtobufTypeMessage>( + "failed_zones", + |m: &ListClustersResponse| { &m.failed_zones }, + |m: &mut ListClustersResponse| { &mut m.failed_zones }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListClustersResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListClustersResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListClustersResponse::new) + } +} + +impl ::protobuf::Clear for ListClustersResponse { + fn clear(&mut self) { + self.clusters.clear(); + self.failed_zones.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateClusterRequest { + // message fields + pub name: ::std::string::String, + pub cluster_id: ::std::string::String, + pub cluster: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateClusterRequest { + fn default() -> &'a CreateClusterRequest { + ::default_instance() + } +} + +impl CreateClusterRequest { + pub fn new() -> CreateClusterRequest { + ::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_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.cluster.v1.Cluster cluster = 3; + + + pub fn get_cluster(&self) -> &super::bigtable_cluster_data::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::bigtable_cluster_data::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::bigtable_cluster_data::Cluster { + if self.cluster.is_none() { + self.cluster.set_default(); + } + self.cluster.as_mut().unwrap() + } + + // Take field + pub fn take_cluster(&mut self) -> super::bigtable_cluster_data::Cluster { + self.cluster.take().unwrap_or_else(|| super::bigtable_cluster_data::Cluster::new()) + } +} + +impl ::protobuf::Message for 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.name)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cluster_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cluster)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.cluster_id); + } + 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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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>( + "name", + |m: &CreateClusterRequest| { &m.name }, + |m: &mut CreateClusterRequest| { &mut m.name }, + )); + 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 default_instance() -> &'static CreateClusterRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateClusterRequest::new) + } +} + +impl ::protobuf::Clear for CreateClusterRequest { + fn clear(&mut self) { + self.name.clear(); + self.cluster_id.clear(); + self.cluster.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +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>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateClusterMetadata { + fn default() -> &'a CreateClusterMetadata { + ::default_instance() + } +} + +impl CreateClusterMetadata { + pub fn new() -> CreateClusterMetadata { + ::std::default::Default::default() + } + + // .google.bigtable.admin.cluster.v1.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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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() -> 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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CreateClusterMetadata", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CreateClusterMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateClusterMetadata::new) + } +} + +impl ::protobuf::Clear for CreateClusterMetadata { + 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 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateClusterMetadata { + // message fields + pub original_request: ::protobuf::SingularPtrField, + pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub cancel_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 UpdateClusterMetadata { + fn default() -> &'a UpdateClusterMetadata { + ::default_instance() + } +} + +impl UpdateClusterMetadata { + pub fn new() -> UpdateClusterMetadata { + ::std::default::Default::default() + } + + // .google.bigtable.admin.cluster.v1.Cluster original_request = 1; + + + pub fn get_original_request(&self) -> &super::bigtable_cluster_data::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::bigtable_cluster_data::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::bigtable_cluster_data::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::bigtable_cluster_data::Cluster { + self.original_request.take().unwrap_or_else(|| super::bigtable_cluster_data::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 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()) + } + + // .google.protobuf.Timestamp finish_time = 4; + + + 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 UpdateClusterMetadata { + 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.cancel_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.cancel_time)?; + }, + 4 => { + ::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.cancel_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.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.finish_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() -> 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_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>>( + "cancel_time", + |m: &UpdateClusterMetadata| { &m.cancel_time }, + |m: &mut UpdateClusterMetadata| { &mut m.cancel_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 default_instance() -> &'static UpdateClusterMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateClusterMetadata::new) + } +} + +impl ::protobuf::Clear for UpdateClusterMetadata { + fn clear(&mut self) { + self.original_request.clear(); + self.request_time.clear(); + self.cancel_time.clear(); + self.finish_time.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateClusterMetadata { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteClusterRequest { + // 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 DeleteClusterRequest { + fn default() -> &'a DeleteClusterRequest { + ::default_instance() + } +} + +impl DeleteClusterRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static DeleteClusterRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteClusterRequest::new) + } +} + +impl ::protobuf::Clear for DeleteClusterRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UndeleteClusterRequest { + // 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 UndeleteClusterRequest { + fn default() -> &'a UndeleteClusterRequest { + ::default_instance() + } +} + +impl UndeleteClusterRequest { + pub fn new() -> UndeleteClusterRequest { + ::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 UndeleteClusterRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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() -> UndeleteClusterRequest { + UndeleteClusterRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UndeleteClusterRequest| { &m.name }, + |m: &mut UndeleteClusterRequest| { &mut m.name }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UndeleteClusterRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UndeleteClusterRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UndeleteClusterRequest::new) + } +} + +impl ::protobuf::Clear for UndeleteClusterRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UndeleteClusterRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UndeleteClusterRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UndeleteClusterMetadata { + // message fields + 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 UndeleteClusterMetadata { + fn default() -> &'a UndeleteClusterMetadata { + ::default_instance() + } +} + +impl UndeleteClusterMetadata { + pub fn new() -> UndeleteClusterMetadata { + ::std::default::Default::default() + } + + // .google.protobuf.Timestamp request_time = 1; + + + 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 = 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(); + } + + 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 UndeleteClusterMetadata { + 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; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::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)?; + }, + 2 => { + ::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.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.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)?; + } + 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> UndeleteClusterMetadata { + UndeleteClusterMetadata::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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: &UndeleteClusterMetadata| { &m.request_time }, + |m: &mut UndeleteClusterMetadata| { &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: &UndeleteClusterMetadata| { &m.finish_time }, + |m: &mut UndeleteClusterMetadata| { &mut m.finish_time }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UndeleteClusterMetadata", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UndeleteClusterMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UndeleteClusterMetadata::new) + } +} + +impl ::protobuf::Clear for UndeleteClusterMetadata { + fn clear(&mut self) { + self.request_time.clear(); + self.finish_time.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UndeleteClusterMetadata { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UndeleteClusterMetadata { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct V2OperationMetadata { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a V2OperationMetadata { + fn default() -> &'a V2OperationMetadata { + ::default_instance() + } +} + +impl V2OperationMetadata { + pub fn new() -> V2OperationMetadata { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for V2OperationMetadata { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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() -> V2OperationMetadata { + V2OperationMetadata::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::( + "V2OperationMetadata", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static V2OperationMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(V2OperationMetadata::new) + } +} + +impl ::protobuf::Clear for V2OperationMetadata { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for V2OperationMetadata { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for V2OperationMetadata { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \nHgoogle/bigtable/admin/cluster/v1/bigtable_cluster_service_messages.pr\ + oto\x12\x20google.bigtable.admin.cluster.v1\x1a\n\n\r\n\ + \x05\x04\0\x02\0\x04\x12\x04\x1f\x02\x1b\x1a\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\r\n\x0c\n\ + \x05\x04\0\x02\0\x03\x12\x03\x1f\x10\x11\nD\n\x02\x04\x01\x12\x04#\0&\ + \x01\x1a8\x20Response\x20message\x20for\x20BigtableClusterService.ListZo\ + nes.\n\n\n\n\x03\x04\x01\x01\x12\x03#\x08\x19\n+\n\x04\x04\x01\x02\0\x12\ + \x03%\x02\x1a\x1a\x1e\x20The\x20list\x20of\x20requested\x20zones.\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\x0f\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03%\x10\x15\n\ + \x0c\n\x05\x04\x01\x02\0\x03\x12\x03%\x18\x19\nD\n\x02\x04\x02\x12\x04)\ + \0-\x01\x1a8\x20Request\x20message\x20for\x20BigtableClusterService.GetC\ + luster.\n\n\n\n\x03\x04\x02\x01\x12\x03)\x08\x19\n\x83\x01\n\x04\x04\x02\ + \x02\0\x12\x03,\x02\x12\x1av\x20The\x20unique\x20name\x20of\x20the\x20re\ + quested\x20cluster.\n\x20Values\x20are\x20of\x20the\x20form\x20projects/\ + /zones//clusters/\n\n\r\n\x05\x04\x02\x02\0\x04\ + \x12\x04,\x02)\x1b\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\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\ + \x03,\x10\x11\nF\n\x02\x04\x03\x12\x040\04\x01\x1a:\x20Request\x20messag\ + e\x20for\x20BigtableClusterService.ListClusters.\n\n\n\n\x03\x04\x03\x01\ + \x12\x030\x08\x1b\n\x83\x01\n\x04\x04\x03\x02\0\x12\x033\x02\x12\x1av\ + \x20The\x20unique\x20name\x20of\x20the\x20project\x20for\x20which\x20a\ + \x20list\x20of\x20clusters\x20is\x20requested.\n\x20Values\x20are\x20of\ + \x20the\x20form\x20projects/\n\n\r\n\x05\x04\x03\x02\0\x04\x12\ + \x043\x020\x1d\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x033\x02\x08\n\x0c\n\ + \x05\x04\x03\x02\0\x01\x12\x033\t\r\n\x0c\n\x05\x04\x03\x02\0\x03\x12\ + \x033\x10\x11\nG\n\x02\x04\x04\x12\x047\0=\x01\x1a;\x20Response\x20messa\ + ge\x20for\x20BigtableClusterService.ListClusters.\n\n\n\n\x03\x04\x04\ + \x01\x12\x037\x08\x1c\n.\n\x04\x04\x04\x02\0\x12\x039\x02\x20\x1a!\x20Th\ + e\x20list\x20of\x20requested\x20Clusters.\n\n\x0c\n\x05\x04\x04\x02\0\ + \x04\x12\x039\x02\n\n\x0c\n\x05\x04\x04\x02\0\x06\x12\x039\x0b\x12\n\x0c\ + \n\x05\x04\x04\x02\0\x01\x12\x039\x13\x1b\n\x0c\n\x05\x04\x04\x02\0\x03\ + \x12\x039\x1e\x1f\nC\n\x04\x04\x04\x02\x01\x12\x03<\x02!\x1a6\x20The\x20\ + zones\x20for\x20which\x20clusters\x20could\x20not\x20be\x20retrieved.\n\ + \n\x0c\n\x05\x04\x04\x02\x01\x04\x12\x03<\x02\n\n\x0c\n\x05\x04\x04\x02\ + \x01\x06\x12\x03<\x0b\x0f\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03<\x10\ + \x1c\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03<\x1f\x20\nG\n\x02\x04\x05\ + \x12\x04@\0N\x01\x1a;\x20Request\x20message\x20for\x20BigtableClusterSer\ + vice.CreateCluster.\n\n\n\n\x03\x04\x05\x01\x12\x03@\x08\x1c\n\x82\x01\n\ + \x04\x04\x05\x02\0\x12\x03C\x02\x12\x1au\x20The\x20unique\x20name\x20of\ + \x20the\x20zone\x20in\x20which\x20to\x20create\x20the\x20cluster.\n\x20V\ + alues\x20are\x20of\x20the\x20form\x20projects//zones/\n\n\ + \r\n\x05\x04\x05\x02\0\x04\x12\x04C\x02@\x1e\n\x0c\n\x05\x04\x05\x02\0\ + \x05\x12\x03C\x02\x08\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03C\t\r\n\x0c\n\ + \x05\x04\x05\x02\0\x03\x12\x03C\x10\x11\n\xc5\x01\n\x04\x04\x05\x02\x01\ + \x12\x03H\x02\x18\x1a\xb7\x01\x20The\x20id\x20to\x20be\x20used\x20when\ + \x20referring\x20to\x20the\x20new\x20cluster\x20within\x20its\x20zone,\n\ + \x20e.g.\x20just\x20the\x20\"test-cluster\"\x20section\x20of\x20the\x20f\ + ull\x20name\n\x20\"projects//zones//clusters/test-cluster\ + \".\n\n\r\n\x05\x04\x05\x02\x01\x04\x12\x04H\x02C\x12\n\x0c\n\x05\x04\ + \x05\x02\x01\x05\x12\x03H\x02\x08\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\ + \x03H\t\x13\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x03H\x16\x17\nu\n\x04\ + \x04\x05\x02\x02\x12\x03M\x02\x16\x1ah\x20The\x20cluster\x20to\x20create\ + .\n\x20The\x20\"name\",\x20\"delete_time\",\x20and\x20\"current_operatio\ + n\"\x20fields\x20must\x20be\x20left\n\x20blank.\n\n\r\n\x05\x04\x05\x02\ + \x02\x04\x12\x04M\x02H\x18\n\x0c\n\x05\x04\x05\x02\x02\x06\x12\x03M\x02\ + \t\n\x0c\n\x05\x04\x05\x02\x02\x01\x12\x03M\n\x11\n\x0c\n\x05\x04\x05\ + \x02\x02\x03\x12\x03M\x14\x15\n`\n\x02\x04\x06\x12\x04R\0[\x01\x1aT\x20M\ + etadata\x20type\x20for\x20the\x20operation\x20returned\x20by\n\x20Bigtab\ + leClusterService.CreateCluster.\n\n\n\n\x03\x04\x06\x01\x12\x03R\x08\x1d\ + \nI\n\x04\x04\x06\x02\0\x12\x03T\x02,\x1a<\x20The\x20request\x20which\ + \x20prompted\x20the\x20creation\x20of\x20this\x20operation.\n\n\r\n\x05\ + \x04\x06\x02\0\x04\x12\x04T\x02R\x1f\n\x0c\n\x05\x04\x06\x02\0\x06\x12\ + \x03T\x02\x16\n\x0c\n\x05\x04\x06\x02\0\x01\x12\x03T\x17'\n\x0c\n\x05\ + \x04\x06\x02\0\x03\x12\x03T*+\n?\n\x04\x04\x06\x02\x01\x12\x03W\x02-\x1a\ + 2\x20The\x20time\x20at\x20which\x20original_request\x20was\x20received.\ + \n\n\r\n\x05\x04\x06\x02\x01\x04\x12\x04W\x02T,\n\x0c\n\x05\x04\x06\x02\ + \x01\x06\x12\x03W\x02\x1b\n\x0c\n\x05\x04\x06\x02\x01\x01\x12\x03W\x1c(\ + \n\x0c\n\x05\x04\x06\x02\x01\x03\x12\x03W+,\nU\n\x04\x04\x06\x02\x02\x12\ + \x03Z\x02,\x1aH\x20The\x20time\x20at\x20which\x20this\x20operation\x20fa\ + iled\x20or\x20was\x20completed\x20successfully.\n\n\r\n\x05\x04\x06\x02\ + \x02\x04\x12\x04Z\x02W-\n\x0c\n\x05\x04\x06\x02\x02\x06\x12\x03Z\x02\x1b\ + \n\x0c\n\x05\x04\x06\x02\x02\x01\x12\x03Z\x1c'\n\x0c\n\x05\x04\x06\x02\ + \x02\x03\x12\x03Z*+\n`\n\x02\x04\x07\x12\x04_\0m\x01\x1aT\x20Metadata\ + \x20type\x20for\x20the\x20operation\x20returned\x20by\n\x20BigtableClust\ + erService.UpdateCluster.\n\n\n\n\x03\x04\x07\x01\x12\x03_\x08\x1d\nI\n\ + \x04\x04\x07\x02\0\x12\x03a\x02\x1f\x1a<\x20The\x20request\x20which\x20p\ + rompted\x20the\x20creation\x20of\x20this\x20operation.\n\n\r\n\x05\x04\ + \x07\x02\0\x04\x12\x04a\x02_\x1f\n\x0c\n\x05\x04\x07\x02\0\x06\x12\x03a\ + \x02\t\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03a\n\x1a\n\x0c\n\x05\x04\x07\ + \x02\0\x03\x12\x03a\x1d\x1e\n?\n\x04\x04\x07\x02\x01\x12\x03d\x02-\x1a2\ + \x20The\x20time\x20at\x20which\x20original_request\x20was\x20received.\n\ + \n\r\n\x05\x04\x07\x02\x01\x04\x12\x04d\x02a\x1f\n\x0c\n\x05\x04\x07\x02\ + \x01\x06\x12\x03d\x02\x1b\n\x0c\n\x05\x04\x07\x02\x01\x01\x12\x03d\x1c(\ + \n\x0c\n\x05\x04\x07\x02\x01\x03\x12\x03d+,\n\xbc\x01\n\x04\x04\x07\x02\ + \x02\x12\x03i\x02,\x1a\xae\x01\x20The\x20time\x20at\x20which\x20this\x20\ + operation\x20was\x20cancelled.\x20If\x20set,\x20this\x20operation\x20is\ + \n\x20in\x20the\x20process\x20of\x20undoing\x20itself\x20(which\x20is\ + \x20guaranteed\x20to\x20succeed)\x20and\n\x20cannot\x20be\x20cancelled\ + \x20again.\n\n\r\n\x05\x04\x07\x02\x02\x04\x12\x04i\x02d-\n\x0c\n\x05\ + \x04\x07\x02\x02\x06\x12\x03i\x02\x1b\n\x0c\n\x05\x04\x07\x02\x02\x01\ + \x12\x03i\x1c'\n\x0c\n\x05\x04\x07\x02\x02\x03\x12\x03i*+\nU\n\x04\x04\ + \x07\x02\x03\x12\x03l\x02,\x1aH\x20The\x20time\x20at\x20which\x20this\ + \x20operation\x20failed\x20or\x20was\x20completed\x20successfully.\n\n\r\ + \n\x05\x04\x07\x02\x03\x04\x12\x04l\x02i,\n\x0c\n\x05\x04\x07\x02\x03\ + \x06\x12\x03l\x02\x1b\n\x0c\n\x05\x04\x07\x02\x03\x01\x12\x03l\x1c'\n\ + \x0c\n\x05\x04\x07\x02\x03\x03\x12\x03l*+\nG\n\x02\x04\x08\x12\x04p\0t\ + \x01\x1a;\x20Request\x20message\x20for\x20BigtableClusterService.DeleteC\ + luster.\n\n\n\n\x03\x04\x08\x01\x12\x03p\x08\x1c\n\x87\x01\n\x04\x04\x08\ + \x02\0\x12\x03s\x02\x12\x1az\x20The\x20unique\x20name\x20of\x20the\x20cl\ + uster\x20to\x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\x20form\ + \x20projects//zones//clusters/\n\n\r\n\x05\x04\ + \x08\x02\0\x04\x12\x04s\x02p\x1e\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03s\ + \x02\x08\n\x0c\n\x05\x04\x08\x02\0\x01\x12\x03s\t\r\n\x0c\n\x05\x04\x08\ + \x02\0\x03\x12\x03s\x10\x11\nI\n\x02\x04\t\x12\x04w\0{\x01\x1a=\x20Reque\ + st\x20message\x20for\x20BigtableClusterService.UndeleteCluster.\n\n\n\n\ + \x03\x04\t\x01\x12\x03w\x08\x1e\n\x8a\x01\n\x04\x04\t\x02\0\x12\x03z\x02\ + \x12\x1a}\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20to\x20be\ + \x20un-deleted.\n\x20Values\x20are\x20of\x20the\x20form\x20projects//zones//clusters/\n\n\r\n\x05\x04\t\x02\0\x04\x12\ + \x04z\x02w\x20\n\x0c\n\x05\x04\t\x02\0\x05\x12\x03z\x02\x08\n\x0c\n\x05\ + \x04\t\x02\0\x01\x12\x03z\t\r\n\x0c\n\x05\x04\t\x02\0\x03\x12\x03z\x10\ + \x11\nc\n\x02\x04\n\x12\x05\x7f\0\x85\x01\x01\x1aV\x20Metadata\x20type\ + \x20for\x20the\x20operation\x20returned\x20by\n\x20BigtableClusterServic\ + e.UndeleteCluster.\n\n\n\n\x03\x04\n\x01\x12\x03\x7f\x08\x1f\nD\n\x04\ + \x04\n\x02\0\x12\x04\x81\x01\x02-\x1a6\x20The\x20time\x20at\x20which\x20\ + the\x20original\x20request\x20was\x20received.\n\n\x0e\n\x05\x04\n\x02\0\ + \x04\x12\x05\x81\x01\x02\x7f!\n\r\n\x05\x04\n\x02\0\x06\x12\x04\x81\x01\ + \x02\x1b\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x81\x01\x1c(\n\r\n\x05\x04\n\ + \x02\0\x03\x12\x04\x81\x01+,\nV\n\x04\x04\n\x02\x01\x12\x04\x84\x01\x02,\ + \x1aH\x20The\x20time\x20at\x20which\x20this\x20operation\x20failed\x20or\ + \x20was\x20completed\x20successfully.\n\n\x0f\n\x05\x04\n\x02\x01\x04\ + \x12\x06\x84\x01\x02\x81\x01-\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\x84\ + \x01\x02\x1b\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x84\x01\x1c'\n\r\n\x05\ + \x04\n\x02\x01\x03\x12\x04\x84\x01*+\n\xa2\x01\n\x02\x04\x0b\x12\x04\x89\ + \x01\0\x1e\x1a\x95\x01\x20Metadata\x20type\x20for\x20operations\x20initi\ + ated\x20by\x20the\x20V2\x20BigtableAdmin\x20service.\n\x20More\x20comple\ + te\x20information\x20for\x20such\x20operations\x20is\x20available\x20via\ + \x20the\x20V2\x20API.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x89\x01\x08\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_data.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_data.rs new file mode 100644 index 0000000000..af4f5569de --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_data.rs @@ -0,0 +1,1526 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/table/v1/bigtable_table_data.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Table { + // message fields + pub name: ::std::string::String, + pub current_operation: ::protobuf::SingularPtrField, + pub column_families: ::std::collections::HashMap<::std::string::String, ColumnFamily>, + pub granularity: Table_TimestampGranularity, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Table { + fn default() -> &'a Table { +
::default_instance() + } +} + +impl Table { + pub fn new() -> Table { + ::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.longrunning.Operation current_operation = 2; + + + pub fn get_current_operation(&self) -> &super::operations::Operation { + self.current_operation.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_current_operation(&mut self) { + self.current_operation.clear(); + } + + pub fn has_current_operation(&self) -> bool { + self.current_operation.is_some() + } + + // Param is passed by value, moved + pub fn set_current_operation(&mut self, v: super::operations::Operation) { + self.current_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_current_operation(&mut self) -> &mut super::operations::Operation { + if self.current_operation.is_none() { + self.current_operation.set_default(); + } + self.current_operation.as_mut().unwrap() + } + + // Take field + pub fn take_current_operation(&mut self) -> super::operations::Operation { + self.current_operation.take().unwrap_or_else(|| super::operations::Operation::new()) + } + + // repeated .google.bigtable.admin.table.v1.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.table.v1.Table.TimestampGranularity granularity = 4; + + + pub fn get_granularity(&self) -> Table_TimestampGranularity { + self.granularity + } + pub fn clear_granularity(&mut self) { + self.granularity = Table_TimestampGranularity::MILLIS; + } + + // Param is passed by value, moved + pub fn set_granularity(&mut self, v: Table_TimestampGranularity) { + self.granularity = v; + } +} + +impl ::protobuf::Message for Table { + fn is_initialized(&self) -> bool { + for v in &self.current_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.name)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.current_operation)?; + }, + 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)? + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.current_operation.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.column_families); + if self.granularity != Table_TimestampGranularity::MILLIS { + my_size += ::protobuf::rt::enum_size(4, self.granularity); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.current_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)?; + } + ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(3, &self.column_families, os)?; + if self.granularity != Table_TimestampGranularity::MILLIS { + os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.granularity))?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "current_operation", + |m: &Table| { &m.current_operation }, + |m: &mut Table| { &mut m.current_operation }, + )); + 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 }, + )); + ::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.current_operation.clear(); + self.column_families.clear(); + self.granularity = Table_TimestampGranularity::MILLIS; + 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(Clone,PartialEq,Eq,Debug,Hash)] +pub enum Table_TimestampGranularity { + MILLIS = 0, +} + +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::MILLIS), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [Table_TimestampGranularity] = &[ + 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::MILLIS + } +} + +impl ::protobuf::reflect::ProtobufValue for Table_TimestampGranularity { + 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 name: ::std::string::String, + pub gc_expression: ::std::string::String, + 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() + } + + // 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 gc_expression = 2; + + + pub fn get_gc_expression(&self) -> &str { + &self.gc_expression + } + pub fn clear_gc_expression(&mut self) { + self.gc_expression.clear(); + } + + // Param is passed by value, moved + pub fn set_gc_expression(&mut self, v: ::std::string::String) { + self.gc_expression = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_gc_expression(&mut self) -> &mut ::std::string::String { + &mut self.gc_expression + } + + // Take field + pub fn take_gc_expression(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.gc_expression, ::std::string::String::new()) + } + + // .google.bigtable.admin.table.v1.GcRule gc_rule = 3; + + + 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_proto3_string_into(wire_type, is, &mut self.name)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gc_expression)?; + }, + 3 => { + ::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 !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + if !self.gc_expression.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.gc_expression); + } + 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 !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + if !self.gc_expression.is_empty() { + os.write_string(2, &self.gc_expression)?; + } + if let Some(ref v) = self.gc_rule.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() -> 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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "name", + |m: &ColumnFamily| { &m.name }, + |m: &mut ColumnFamily| { &mut m.name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "gc_expression", + |m: &ColumnFamily| { &m.gc_expression }, + |m: &mut ColumnFamily| { &mut m.gc_expression }, + )); + 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.name.clear(); + self.gc_expression.clear(); + 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.table.v1.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.table.v1.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.table.v1.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.table.v1.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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n8google/bigtable/admin/table/v1/bigtable_table_data.proto\x12\x1egoogl\ + e.bigtable.admin.table.v1\x1a#google/longrunning/operations.proto\x1a\ + \x1egoogle/protobuf/duration.proto\"\xbe\x03\n\x05Table\x12\x12\n\x04nam\ + e\x18\x01\x20\x01(\tR\x04name\x12J\n\x11current_operation\x18\x02\x20\ + \x01(\x0b2\x1d.google.longrunning.OperationR\x10currentOperation\x12b\n\ + \x0fcolumn_families\x18\x03\x20\x03(\x0b29.google.bigtable.admin.table.v\ + 1.Table.ColumnFamiliesEntryR\x0ecolumnFamilies\x12\\\n\x0bgranularity\ + \x18\x04\x20\x01(\x0e2:.google.bigtable.admin.table.v1.Table.TimestampGr\ + anularityR\x0bgranularity\x1ao\n\x13ColumnFamiliesEntry\x12\x10\n\x03key\ + \x18\x01\x20\x01(\tR\x03key\x12B\n\x05value\x18\x02\x20\x01(\x0b2,.googl\ + e.bigtable.admin.table.v1.ColumnFamilyR\x05value:\x028\x01\"\"\n\x14Time\ + stampGranularity\x12\n\n\x06MILLIS\x10\0\"\x88\x01\n\x0cColumnFamily\x12\ + \x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12#\n\rgc_expression\x18\x02\ + \x20\x01(\tR\x0cgcExpression\x12?\n\x07gc_rule\x18\x03\x20\x01(\x0b2&.go\ + ogle.bigtable.admin.table.v1.GcRuleR\x06gcRule\"\xa8\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.protobuf.DurationH\0R\x06\ + maxAge\x12Y\n\x0cintersection\x18\x03\x20\x01(\x0b23.google.bigtable.adm\ + in.table.v1.GcRule.IntersectionH\0R\x0cintersection\x12D\n\x05union\x18\ + \x04\x20\x01(\x0b2,.google.bigtable.admin.table.v1.GcRule.UnionH\0R\x05u\ + nion\x1aL\n\x0cIntersection\x12<\n\x05rules\x18\x01\x20\x03(\x0b2&.googl\ + e.bigtable.admin.table.v1.GcRuleR\x05rules\x1aE\n\x05Union\x12<\n\x05rul\ + es\x18\x01\x20\x03(\x0b2&.google.bigtable.admin.table.v1.GcRuleR\x05rule\ + sB\x06\n\x04ruleB\x83\x01\n\"com.google.bigtable.admin.table.v1B\x16Bigt\ + ableTableDataProtoP\x01ZCgoogle.golang.org/genproto/googleapis/bigtable/\ + admin/table/v1;tableJ\xff%\n\x06\x12\x04\x0e\0z\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\ + 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\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\07\n\t\n\x02\x08\x08\x12\ + \x03\x17\07\n\x08\n\x01\x08\x12\x03\x18\0;\n\t\n\x02\x08\x01\x12\x03\x18\ + \0;\n\x90\x01\n\x02\x04\0\x12\x04\x1c\0/\x01\x1a\x83\x01\x20A\x20collect\ + ion\x20of\x20user\x20data\x20indexed\x20by\x20row,\x20column,\x20and\x20\ + timestamp.\n\x20Each\x20table\x20is\x20served\x20using\x20the\x20resourc\ + es\x20of\x20its\x20parent\x20cluster.\n\n\n\n\x03\x04\0\x01\x12\x03\x1c\ + \x08\r\n\x0b\n\x04\x04\0\x04\0\x12\x03\x1d\x02+\n\x0c\n\x05\x04\0\x04\0\ + \x01\x12\x03\x1d\x07\x1b\n\r\n\x06\x04\0\x04\0\x02\0\x12\x03\x1d\x1e)\n\ + \x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\x1d\x1e$\n\x0e\n\x07\x04\0\x04\ + \0\x02\0\x02\x12\x03\x1d'(\na\n\x04\x04\0\x02\0\x12\x03!\x02\x12\x1aT\ + \x20A\x20unique\x20identifier\x20of\x20the\x20form\n\x20/t\ + ables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04!\ + \x02\x1d+\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\x01\n\x04\x04\0\x02\x01\x12\x03&\x025\x1a\xc7\x01\x20If\x20this\x20\ + Table\x20is\x20in\x20the\x20process\x20of\x20being\x20created,\x20the\ + \x20Operation\x20used\x20to\n\x20track\x20its\x20progress.\x20As\x20long\ + \x20as\x20this\x20operation\x20is\x20present,\x20the\x20Table\x20will\n\ + \x20not\x20accept\x20any\x20Table\x20Admin\x20or\x20Read/Write\x20reques\ + ts.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04&\x02!\x12\n\x0c\n\x05\x04\0\ + \x02\x01\x06\x12\x03&\x02\x1e\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03&\x1f\ + 0\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03&34\nY\n\x04\x04\0\x02\x02\x12\ + \x03)\x020\x1aL\x20The\x20column\x20families\x20configured\x20for\x20thi\ + s\x20table,\x20mapped\x20by\x20column\x20family\x20id.\n\n\r\n\x05\x04\0\ + \x02\x02\x04\x12\x04)\x02&5\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\xcc\x01\n\x04\x04\0\x02\x03\x12\x03.\x02'\x1a\xbe\ + \x01\x20The\x20granularity\x20(e.g.\x20MILLIS,\x20MICROS)\x20at\x20which\ + \x20timestamps\x20are\x20stored\x20in\n\x20this\x20table.\x20Timestamps\ + \x20not\x20matching\x20the\x20granularity\x20will\x20be\x20rejected.\n\ + \x20Cannot\x20be\x20changed\x20once\x20the\x20table\x20is\x20created.\n\ + \n\r\n\x05\x04\0\x02\x03\x04\x12\x04.\x02)0\n\x0c\n\x05\x04\0\x02\x03\ + \x06\x12\x03.\x02\x16\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03.\x17\"\n\x0c\ + \n\x05\x04\0\x02\x03\x03\x12\x03.%&\nQ\n\x02\x04\x01\x12\x042\0[\x01\x1a\ + E\x20A\x20set\x20of\x20columns\x20within\x20a\x20table\x20which\x20share\ + \x20a\x20common\x20configuration.\n\n\n\n\x03\x04\x01\x01\x12\x032\x08\ + \x14\n\xac\x01\n\x04\x04\x01\x02\0\x12\x036\x02\x12\x1a\x9e\x01\x20A\x20\ + unique\x20identifier\x20of\x20the\x20form\x20/columnFamilies\ + /[-_.a-zA-Z0-9]+\n\x20The\x20last\x20segment\x20is\x20the\x20same\x20as\ + \x20the\x20\"name\"\x20field\x20in\n\x20google.bigtable.v1.Family.\n\n\r\ + \n\x05\x04\x01\x02\0\x04\x12\x046\x022\x16\n\x0c\n\x05\x04\x01\x02\0\x05\ + \x12\x036\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x036\t\r\n\x0c\n\x05\ + \x04\x01\x02\0\x03\x12\x036\x10\x11\n\x97\t\n\x04\x04\x01\x02\x01\x12\ + \x03Q\x02\x1b\x1a\x89\t\x20Garbage\x20collection\x20expression\x20specif\ + ied\x20by\x20the\x20following\x20grammar:\n\x20\x20\x20GC\x20=\x20EXPR\n\ + \x20\x20\x20\x20\x20\x20|\x20\"\"\x20;\n\x20\x20\x20EXPR\x20=\x20EXPR,\ + \x20\"||\",\x20EXPR\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20(*\x20lowest\x20precedence\x20*)\n\x20\x20\x20\x20\x20\x20\x20\x20|\ + \x20EXPR,\x20\"&&\",\x20EXPR\n\x20\x20\x20\x20\x20\x20\x20\x20|\x20\"(\"\ + ,\x20EXPR,\x20\")\"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20(*\x20highest\x20precedence\x20*)\n\x20\x20\x20\x20\x20\x20\ + \x20\x20|\x20PROP\x20;\n\x20\x20\x20PROP\x20=\x20\"version()\x20>\",\x20\ + NUM32\n\x20\x20\x20\x20\x20\x20\x20\x20|\x20\"age()\x20>\",\x20NUM64,\ + \x20[\x20UNIT\x20]\x20;\n\x20\x20\x20NUM32\x20=\x20non-zero-digit\x20{\ + \x20digit\x20}\x20;\x20\x20\x20\x20(*\x20#\x20NUM32\x20<=\x202^32\x20-\ + \x201\x20*)\n\x20\x20\x20NUM64\x20=\x20non-zero-digit\x20{\x20digit\x20}\ + \x20;\x20\x20\x20\x20(*\x20#\x20NUM64\x20<=\x202^63\x20-\x201\x20*)\n\ + \x20\x20\x20UNIT\x20=\x20\x20\"d\"\x20|\x20\"h\"\x20|\x20\"m\"\x20\x20(*\ + \x20d=days,\x20h=hours,\x20m=minutes,\x20else\x20micros\x20*)\n\x20GC\ + \x20expressions\x20can\x20be\x20up\x20to\x20500\x20characters\x20in\x20l\ + ength\n\n\x20The\x20different\x20types\x20of\x20PROP\x20are\x20defined\ + \x20as\x20follows:\n\x20\x20\x20version()\x20-\x20cell\x20index,\x20coun\ + ting\x20from\x20most\x20recent\x20and\x20starting\x20at\x201\n\x20\x20\ + \x20age()\x20-\x20age\x20of\x20the\x20cell\x20(current\x20time\x20minus\ + \x20cell\x20timestamp)\n\n\x20Example:\x20\"version()\x20>\x203\x20||\ + \x20(age()\x20>\x203d\x20&&\x20version()\x20>\x201)\"\n\x20\x20\x20drop\ + \x20cells\x20beyond\x20the\x20most\x20recent\x20three,\x20and\x20drop\ + \x20cells\x20older\x20than\x20three\n\x20\x20\x20days\x20unless\x20they'\ + re\x20the\x20most\x20recent\x20cell\x20in\x20the\x20row/column\n\n\x20Ga\ + rbage\x20collection\x20executes\x20opportunistically\x20in\x20the\x20bac\ + kground,\x20and\x20so\n\x20it's\x20possible\x20for\x20reads\x20to\x20ret\ + urn\x20a\x20cell\x20even\x20if\x20it\x20matches\x20the\x20active\x20GC\n\ + \x20expression\x20for\x20its\x20family.\n\n\r\n\x05\x04\x01\x02\x01\x04\ + \x12\x04Q\x026\x12\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03Q\x02\x08\n\ + \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03Q\t\x16\n\x0c\n\x05\x04\x01\x02\ + \x01\x03\x12\x03Q\x19\x1a\n\xba\x02\n\x04\x04\x01\x02\x02\x12\x03Z\x02\ + \x15\x1a\xac\x02\x20Garbage\x20collection\x20rule\x20specified\x20as\x20\ + a\x20protobuf.\n\x20Supersedes\x20`gc_expression`.\n\x20Must\x20serializ\ + e\x20to\x20at\x20most\x20500\x20bytes.\n\n\x20NOTE:\x20Garbage\x20collec\ + tion\x20executes\x20opportunistically\x20in\x20the\x20background,\x20and\ + \n\x20so\x20it's\x20possible\x20for\x20reads\x20to\x20return\x20a\x20cel\ + l\x20even\x20if\x20it\x20matches\x20the\x20active\n\x20GC\x20expression\ + \x20for\x20its\x20family.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04Z\x02Q\ + \x1b\n\x0c\n\x05\x04\x01\x02\x02\x06\x12\x03Z\x02\x08\n\x0c\n\x05\x04\ + \x01\x02\x02\x01\x12\x03Z\t\x10\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03Z\ + \x13\x14\nS\n\x02\x04\x02\x12\x04^\0z\x01\x1aG\x20Rule\x20for\x20determi\ + ning\x20which\x20cells\x20to\x20delete\x20during\x20garbage\x20collectio\ + n.\n\n\n\n\x03\x04\x02\x01\x12\x03^\x08\x0e\nM\n\x04\x04\x02\x03\0\x12\ + \x04`\x02c\x03\x1a?\x20A\x20GcRule\x20which\x20deletes\x20cells\x20match\ + ing\x20all\x20of\x20the\x20given\x20rules.\n\n\x0c\n\x05\x04\x02\x03\0\ + \x01\x12\x03`\n\x16\nV\n\x06\x04\x02\x03\0\x02\0\x12\x03b\x04\x1e\x1aG\ + \x20Only\x20delete\x20cells\x20which\x20would\x20be\x20deleted\x20by\x20\ + every\x20element\x20of\x20`rules`.\n\n\x0e\n\x07\x04\x02\x03\0\x02\0\x04\ + \x12\x03b\x04\x0c\n\x0e\n\x07\x04\x02\x03\0\x02\0\x06\x12\x03b\r\x13\n\ + \x0e\n\x07\x04\x02\x03\0\x02\0\x01\x12\x03b\x14\x19\n\x0e\n\x07\x04\x02\ + \x03\0\x02\0\x03\x12\x03b\x1c\x1d\nM\n\x04\x04\x02\x03\x01\x12\x04f\x02i\ + \x03\x1a?\x20A\x20GcRule\x20which\x20deletes\x20cells\x20matching\x20any\ + \x20of\x20the\x20given\x20rules.\n\n\x0c\n\x05\x04\x02\x03\x01\x01\x12\ + \x03f\n\x0f\nO\n\x06\x04\x02\x03\x01\x02\0\x12\x03h\x04\x1e\x1a@\x20Dele\ + te\x20cells\x20which\x20would\x20be\x20deleted\x20by\x20any\x20element\ + \x20of\x20`rules`.\n\n\x0e\n\x07\x04\x02\x03\x01\x02\0\x04\x12\x03h\x04\ + \x0c\n\x0e\n\x07\x04\x02\x03\x01\x02\0\x06\x12\x03h\r\x13\n\x0e\n\x07\ + \x04\x02\x03\x01\x02\0\x01\x12\x03h\x14\x19\n\x0e\n\x07\x04\x02\x03\x01\ + \x02\0\x03\x12\x03h\x1c\x1d\n\x0c\n\x04\x04\x02\x08\0\x12\x04k\x02y\x03\ + \n\x0c\n\x05\x04\x02\x08\0\x01\x12\x03k\x08\x0c\nE\n\x04\x04\x02\x02\0\ + \x12\x03m\x04\x1f\x1a8\x20Delete\x20all\x20cells\x20in\x20a\x20column\ + \x20except\x20the\x20most\x20recent\x20N.\n\n\x0c\n\x05\x04\x02\x02\0\ + \x05\x12\x03m\x04\t\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03m\n\x1a\n\x0c\n\ + \x05\x04\x02\x02\0\x03\x12\x03m\x1d\x1e\n\x9f\x01\n\x04\x04\x02\x02\x01\ + \x12\x03r\x04)\x1a\x91\x01\x20Delete\x20cells\x20in\x20a\x20column\x20ol\ + der\x20than\x20the\x20given\x20age.\n\x20Values\x20must\x20be\x20at\x20l\ + east\x20one\x20millisecond,\x20and\x20will\x20be\x20truncated\x20to\n\ + \x20microsecond\x20granularity.\n\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\ + \x03r\x04\x1c\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03r\x1d$\n\x0c\n\x05\ + \x04\x02\x02\x01\x03\x12\x03r'(\nG\n\x04\x04\x02\x02\x02\x12\x03u\x04\"\ + \x1a:\x20Delete\x20cells\x20that\x20would\x20be\x20deleted\x20by\x20ever\ + y\x20nested\x20rule.\n\n\x0c\n\x05\x04\x02\x02\x02\x06\x12\x03u\x04\x10\ + \n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03u\x11\x1d\n\x0c\n\x05\x04\x02\ + \x02\x02\x03\x12\x03u\x20!\nE\n\x04\x04\x02\x02\x03\x12\x03x\x04\x14\x1a\ + 8\x20Delete\x20cells\x20that\x20would\x20be\x20deleted\x20by\x20any\x20n\ + ested\x20rule.\n\n\x0c\n\x05\x04\x02\x02\x03\x06\x12\x03x\x04\t\n\x0c\n\ + \x05\x04\x02\x02\x03\x01\x12\x03x\n\x0f\n\x0c\n\x05\x04\x02\x02\x03\x03\ + \x12\x03x\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service.rs new file mode 100644 index 0000000000..b590446b75 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service.rs @@ -0,0 +1,148 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/table/v1/bigtable_table_service.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n;google/bigtable/admin/table/v1/bigtable_table_service.proto\x12\x1ego\ + ogle.bigtable.admin.table.v1\x1a\x1cgoogle/api/annotations.proto\x1a8goo\ + gle/bigtable/admin/table/v1/bigtable_table_data.proto\x1aDgoogle/bigtabl\ + e/admin/table/v1/bigtable_table_service_messages.proto\x1a\x1bgoogle/pro\ + tobuf/empty.proto2\xbe\x0c\n\x14BigtableTableService\x12\xa4\x01\n\x0bCr\ + eateTable\x122.google.bigtable.admin.table.v1.CreateTableRequest\x1a%.go\ + ogle.bigtable.admin.table.v1.Table\":\x82\xd3\xe4\x93\x024\"//v1/{name=p\ + rojects/*/zones/*/clusters/*}/tables:\x01*\x12\xac\x01\n\nListTables\x12\ + 1.google.bigtable.admin.table.v1.ListTablesRequest\x1a2.google.bigtable.\ + admin.table.v1.ListTablesResponse\"7\x82\xd3\xe4\x93\x021\x12//v1/{name=\ + projects/*/zones/*/clusters/*}/tables\x12\x9d\x01\n\x08GetTable\x12/.goo\ + gle.bigtable.admin.table.v1.GetTableRequest\x1a%.google.bigtable.admin.t\ + able.v1.Table\"9\x82\xd3\xe4\x93\x023\x121/v1/{name=projects/*/zones/*/c\ + lusters/*/tables/*}\x12\x94\x01\n\x0bDeleteTable\x122.google.bigtable.ad\ + min.table.v1.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\ + \xe4\x93\x023*1/v1/{name=projects/*/zones/*/clusters/*/tables/*}\x12\x9e\ + \x01\n\x0bRenameTable\x122.google.bigtable.admin.table.v1.RenameTableReq\ + uest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02=\"8/v1/{name=p\ + rojects/*/zones/*/clusters/*/tables/*}:rename:\x01*\x12\xca\x01\n\x12Cre\ + ateColumnFamily\x129.google.bigtable.admin.table.v1.CreateColumnFamilyRe\ + quest\x1a,.google.bigtable.admin.table.v1.ColumnFamily\"K\x82\xd3\xe4\ + \x93\x02E\"@/v1/{name=projects/*/zones/*/clusters/*/tables/*}/columnFami\ + lies:\x01*\x12\xbf\x01\n\x12UpdateColumnFamily\x12,.google.bigtable.admi\ + n.table.v1.ColumnFamily\x1a,.google.bigtable.admin.table.v1.ColumnFamily\ + \"M\x82\xd3\xe4\x93\x02G\x1aB/v1/{name=projects/*/zones/*/clusters/*/tab\ + les/*/columnFamilies/*}:\x01*\x12\xb3\x01\n\x12DeleteColumnFamily\x129.g\ + oogle.bigtable.admin.table.v1.DeleteColumnFamilyRequest\x1a\x16.google.p\ + rotobuf.Empty\"J\x82\xd3\xe4\x93\x02D*B/v1/{name=projects/*/zones/*/clus\ + ters/*/tables/*/columnFamilies/*}\x12\xb2\x01\n\x0eBulkDeleteRows\x125.g\ + oogle.bigtable.admin.table.v1.BulkDeleteRowsRequest\x1a\x16.google.proto\ + buf.Empty\"Q\x82\xd3\xe4\x93\x02K\"F/v1/{table_name=projects/*/zones/*/c\ + lusters/*/tables/*}:bulkDeleteRows:\x01*B\x87\x01\n\"com.google.bigtable\ + .admin.table.v1B\x1aBigtableTableServicesProtoP\x01ZCgoogle.golang.org/g\ + enproto/googleapis/bigtable/admin/table/v1;tableJ\x8c\x13\n\x06\x12\x04\ + \x0e\0g\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\ + \x202017\x20Google\x20Inc.\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\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\0B\n\t\n\x02\ + \x03\x02\x12\x03\x14\0N\n\t\n\x02\x03\x03\x12\x03\x15\0%\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\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\xa9\x01\n\x02\x06\0\x12\x04\x1f\0g\x01\x1a\ + \x9c\x01\x20Service\x20for\x20creating,\x20configuring,\x20and\x20deleti\ + ng\x20Cloud\x20Bigtable\x20tables.\n\x20Provides\x20access\x20to\x20the\ + \x20table\x20schemas\x20only,\x20not\x20the\x20data\x20stored\x20within\ + \x20the\n\x20tables.\n\n\n\n\x03\x06\0\x01\x12\x03\x1f\x08\x1c\n\xad\x01\ + \n\x04\x06\0\x02\0\x12\x04#\x02(\x03\x1a\x9e\x01\x20Creates\x20a\x20new\ + \x20table,\x20to\x20be\x20served\x20from\x20a\x20specified\x20cluster.\n\ + \x20The\x20table\x20can\x20be\x20created\x20with\x20a\x20full\x20set\x20\ + of\x20initial\x20column\x20families,\n\x20specified\x20in\x20the\x20requ\ + est.\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\nN\n\x04\x06\0\x02\x01\x12\x04+\x02/\x03\x1a@\ + \x20Lists\x20the\x20names\x20of\x20all\x20tables\x20served\x20from\x20a\ + \x20specified\x20cluster.\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\nV\n\x04\x06\0\ + \x02\x02\x12\x042\x026\x03\x1aH\x20Gets\x20the\x20schema\x20of\x20the\ + \x20specified\x20table,\x20including\x20its\x20column\x20families.\n\n\ + \x0c\n\x05\x06\0\x02\x02\x01\x12\x032\x06\x0e\n\x0c\n\x05\x06\0\x02\x02\ + \x02\x12\x032\x0f\x1e\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x032).\n\r\n\x05\ + \x06\0\x02\x02\x04\x12\x043\x045\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\ + \xbc\"\x12\x043\x045\x06\nJ\n\x04\x06\0\x02\x03\x12\x049\x02=\x03\x1a<\ + \x20Permanently\x20deletes\x20a\x20specified\x20table\x20and\x20all\x20o\ + f\x20its\x20data.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x039\x06\x11\n\x0c\ + \n\x05\x06\0\x02\x03\x02\x12\x039\x12$\n\x0c\n\x05\x06\0\x02\x03\x03\x12\ + \x039/D\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{\n\x04\x06\0\x02\x04\x12\ + \x04A\x02F\x03\x1am\x20Changes\x20the\x20name\x20of\x20a\x20specified\ + \x20table.\n\x20Cannot\x20be\x20used\x20to\x20move\x20tables\x20between\ + \x20clusters,\x20zones,\x20or\x20projects.\n\n\x0c\n\x05\x06\0\x02\x04\ + \x01\x12\x03A\x06\x11\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03A\x12$\n\x0c\ + \n\x05\x06\0\x02\x04\x03\x12\x03A/D\n\r\n\x05\x06\0\x02\x04\x04\x12\x04B\ + \x04E\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04B\x04E\x06\nE\ + \n\x04\x06\0\x02\x05\x12\x04I\x02N\x03\x1a7\x20Creates\x20a\x20new\x20co\ + lumn\x20family\x20within\x20a\x20specified\x20table.\n\n\x0c\n\x05\x06\0\ + \x02\x05\x01\x12\x03I\x06\x18\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03I\x19\ + 2\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03I=I\n\r\n\x05\x06\0\x02\x05\x04\ + \x12\x04J\x04M\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04J\ + \x04M\x06\nG\n\x04\x06\0\x02\x06\x12\x04Q\x02V\x03\x1a9\x20Changes\x20th\ + e\x20configuration\x20of\x20a\x20specified\x20column\x20family.\n\n\x0c\ + \n\x05\x06\0\x02\x06\x01\x12\x03Q\x06\x18\n\x0c\n\x05\x06\0\x02\x06\x02\ + \x12\x03Q\x19%\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03Q0<\n\r\n\x05\x06\0\ + \x02\x06\x04\x12\x04R\x04U\x06\n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\ + \x12\x04R\x04U\x06\nR\n\x04\x06\0\x02\x07\x12\x04Y\x02^\x03\x1aD\x20Perm\ + anently\x20deletes\x20a\x20specified\x20column\x20family\x20and\x20all\ + \x20of\x20its\x20data.\n\n\x0c\n\x05\x06\0\x02\x07\x01\x12\x03Y\x06\x18\ + \n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03Y\x192\n\x0c\n\x05\x06\0\x02\x07\ + \x03\x12\x03Z\x0f$\n\r\n\x05\x06\0\x02\x07\x04\x12\x04[\x04]\x06\n\x11\n\ + \t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x04[\x04]\x06\nO\n\x04\x06\0\x02\ + \x08\x12\x04a\x02f\x03\x1aA\x20Delete\x20all\x20rows\x20in\x20a\x20table\ + \x20corresponding\x20to\x20a\x20particular\x20prefix\n\n\x0c\n\x05\x06\0\ + \x02\x08\x01\x12\x03a\x06\x14\n\x0c\n\x05\x06\0\x02\x08\x02\x12\x03a\x15\ + *\n\x0c\n\x05\x06\0\x02\x08\x03\x12\x03a5J\n\r\n\x05\x06\0\x02\x08\x04\ + \x12\x04b\x04e\x06\n\x11\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x04b\ + \x04e\x06b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_grpc.rs new file mode 100644 index 0000000000..28113922fb --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_grpc.rs @@ -0,0 +1,293 @@ +// 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_BIGTABLE_TABLE_SERVICE_CREATE_TABLE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/CreateTable", + 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_SERVICE_LIST_TABLES: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/ListTables", + 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_SERVICE_GET_TABLE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/GetTable", + 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_SERVICE_DELETE_TABLE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/DeleteTable", + 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_SERVICE_RENAME_TABLE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/RenameTable", + 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_SERVICE_CREATE_COLUMN_FAMILY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/CreateColumnFamily", + 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_SERVICE_UPDATE_COLUMN_FAMILY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/UpdateColumnFamily", + 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_SERVICE_DELETE_COLUMN_FAMILY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/DeleteColumnFamily", + 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_SERVICE_BULK_DELETE_ROWS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.table.v1.BigtableTableService/BulkDeleteRows", + 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 BigtableTableServiceClient { + client: ::grpcio::Client, +} + +impl BigtableTableServiceClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + BigtableTableServiceClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn create_table_opt(&self, req: &super::bigtable_table_service_messages::CreateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_TABLE, req, opt) + } + + pub fn create_table(&self, req: &super::bigtable_table_service_messages::CreateTableRequest) -> ::grpcio::Result { + self.create_table_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_table_async_opt(&self, req: &super::bigtable_table_service_messages::CreateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_TABLE, req, opt) + } + + pub fn create_table_async(&self, req: &super::bigtable_table_service_messages::CreateTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_table_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_tables_opt(&self, req: &super::bigtable_table_service_messages::ListTablesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_LIST_TABLES, req, opt) + } + + pub fn list_tables(&self, req: &super::bigtable_table_service_messages::ListTablesRequest) -> ::grpcio::Result { + self.list_tables_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_tables_async_opt(&self, req: &super::bigtable_table_service_messages::ListTablesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_LIST_TABLES, req, opt) + } + + pub fn list_tables_async(&self, req: &super::bigtable_table_service_messages::ListTablesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_tables_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_table_opt(&self, req: &super::bigtable_table_service_messages::GetTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_GET_TABLE, req, opt) + } + + pub fn get_table(&self, req: &super::bigtable_table_service_messages::GetTableRequest) -> ::grpcio::Result { + self.get_table_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_table_async_opt(&self, req: &super::bigtable_table_service_messages::GetTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_GET_TABLE, req, opt) + } + + pub fn get_table_async(&self, req: &super::bigtable_table_service_messages::GetTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_table_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_table_opt(&self, req: &super::bigtable_table_service_messages::DeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_TABLE, req, opt) + } + + pub fn delete_table(&self, req: &super::bigtable_table_service_messages::DeleteTableRequest) -> ::grpcio::Result { + self.delete_table_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_table_async_opt(&self, req: &super::bigtable_table_service_messages::DeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_TABLE, req, opt) + } + + pub fn delete_table_async(&self, req: &super::bigtable_table_service_messages::DeleteTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_table_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn rename_table_opt(&self, req: &super::bigtable_table_service_messages::RenameTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_RENAME_TABLE, req, opt) + } + + pub fn rename_table(&self, req: &super::bigtable_table_service_messages::RenameTableRequest) -> ::grpcio::Result { + self.rename_table_opt(req, ::grpcio::CallOption::default()) + } + + pub fn rename_table_async_opt(&self, req: &super::bigtable_table_service_messages::RenameTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_RENAME_TABLE, req, opt) + } + + pub fn rename_table_async(&self, req: &super::bigtable_table_service_messages::RenameTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.rename_table_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_column_family_opt(&self, req: &super::bigtable_table_service_messages::CreateColumnFamilyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_COLUMN_FAMILY, req, opt) + } + + pub fn create_column_family(&self, req: &super::bigtable_table_service_messages::CreateColumnFamilyRequest) -> ::grpcio::Result { + self.create_column_family_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_column_family_async_opt(&self, req: &super::bigtable_table_service_messages::CreateColumnFamilyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_COLUMN_FAMILY, req, opt) + } + + pub fn create_column_family_async(&self, req: &super::bigtable_table_service_messages::CreateColumnFamilyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_column_family_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_column_family_opt(&self, req: &super::bigtable_table_data::ColumnFamily, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_UPDATE_COLUMN_FAMILY, req, opt) + } + + pub fn update_column_family(&self, req: &super::bigtable_table_data::ColumnFamily) -> ::grpcio::Result { + self.update_column_family_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_column_family_async_opt(&self, req: &super::bigtable_table_data::ColumnFamily, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_UPDATE_COLUMN_FAMILY, req, opt) + } + + pub fn update_column_family_async(&self, req: &super::bigtable_table_data::ColumnFamily) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_column_family_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_column_family_opt(&self, req: &super::bigtable_table_service_messages::DeleteColumnFamilyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_COLUMN_FAMILY, req, opt) + } + + pub fn delete_column_family(&self, req: &super::bigtable_table_service_messages::DeleteColumnFamilyRequest) -> ::grpcio::Result { + self.delete_column_family_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_column_family_async_opt(&self, req: &super::bigtable_table_service_messages::DeleteColumnFamilyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_COLUMN_FAMILY, req, opt) + } + + pub fn delete_column_family_async(&self, req: &super::bigtable_table_service_messages::DeleteColumnFamilyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_column_family_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn bulk_delete_rows_opt(&self, req: &super::bigtable_table_service_messages::BulkDeleteRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_SERVICE_BULK_DELETE_ROWS, req, opt) + } + + pub fn bulk_delete_rows(&self, req: &super::bigtable_table_service_messages::BulkDeleteRowsRequest) -> ::grpcio::Result { + self.bulk_delete_rows_opt(req, ::grpcio::CallOption::default()) + } + + pub fn bulk_delete_rows_async_opt(&self, req: &super::bigtable_table_service_messages::BulkDeleteRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_SERVICE_BULK_DELETE_ROWS, req, opt) + } + + pub fn bulk_delete_rows_async(&self, req: &super::bigtable_table_service_messages::BulkDeleteRowsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.bulk_delete_rows_async_opt(req, ::grpcio::CallOption::default()) + } + pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait BigtableTableService { + fn create_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::CreateTableRequest, sink: ::grpcio::UnarySink); + fn list_tables(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::ListTablesRequest, sink: ::grpcio::UnarySink); + fn get_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::GetTableRequest, sink: ::grpcio::UnarySink); + fn delete_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::DeleteTableRequest, sink: ::grpcio::UnarySink); + fn rename_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::RenameTableRequest, sink: ::grpcio::UnarySink); + fn create_column_family(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::CreateColumnFamilyRequest, sink: ::grpcio::UnarySink); + fn update_column_family(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_data::ColumnFamily, sink: ::grpcio::UnarySink); + fn delete_column_family(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::DeleteColumnFamilyRequest, sink: ::grpcio::UnarySink); + fn bulk_delete_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_service_messages::BulkDeleteRowsRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_bigtable_table_service(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_TABLE, move |ctx, req, resp| { + instance.create_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_LIST_TABLES, move |ctx, req, resp| { + instance.list_tables(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_GET_TABLE, move |ctx, req, resp| { + instance.get_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_TABLE, move |ctx, req, resp| { + instance.delete_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_RENAME_TABLE, move |ctx, req, resp| { + instance.rename_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_CREATE_COLUMN_FAMILY, move |ctx, req, resp| { + instance.create_column_family(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_UPDATE_COLUMN_FAMILY, move |ctx, req, resp| { + instance.update_column_family(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_DELETE_COLUMN_FAMILY, move |ctx, req, resp| { + instance.delete_column_family(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_SERVICE_BULK_DELETE_ROWS, move |ctx, req, resp| { + instance.bulk_delete_rows(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_messages.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_messages.rs new file mode 100644 index 0000000000..814465df1f --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/table/v1/bigtable_table_service_messages.rs @@ -0,0 +1,2039 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/table/v1/bigtable_table_service_messages.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct CreateTableRequest { + // message fields + pub name: ::std::string::String, + pub table_id: ::std::string::String, + pub table: ::protobuf::SingularPtrField, + pub initial_split_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 CreateTableRequest { + fn default() -> &'a CreateTableRequest { + ::default_instance() + } +} + +impl CreateTableRequest { + pub fn new() -> CreateTableRequest { + ::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 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()) + } + + // .google.bigtable.admin.table.v1.Table table = 3; + + + pub fn get_table(&self) -> &super::bigtable_table_data::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::bigtable_table_data::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::bigtable_table_data::Table { + if self.table.is_none() { + self.table.set_default(); + } + self.table.as_mut().unwrap() + } + + // Take field + pub fn take_table(&mut self) -> super::bigtable_table_data::Table { + self.table.take().unwrap_or_else(|| super::bigtable_table_data::Table::new()) + } + + // repeated string initial_split_keys = 4; + + + pub fn get_initial_split_keys(&self) -> &[::std::string::String] { + &self.initial_split_keys + } + pub fn clear_initial_split_keys(&mut self) { + self.initial_split_keys.clear(); + } + + // Param is passed by value, moved + pub fn set_initial_split_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.initial_split_keys = v; + } + + // Mutable pointer to the field. + pub fn mut_initial_split_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.initial_split_keys + } + + // Take field + pub fn take_initial_split_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.initial_split_keys, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for CreateTableRequest { + fn is_initialized(&self) -> bool { + for v in &self.table { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.table)?; + }, + 4 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.initial_split_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.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + if !self.table_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.table_id); + } + 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; + } + for value in &self.initial_split_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.name.is_empty() { + os.write_string(1, &self.name)?; + } + if !self.table_id.is_empty() { + os.write_string(2, &self.table_id)?; + } + 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)?; + } + for v in &self.initial_split_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() -> CreateTableRequest { + CreateTableRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &CreateTableRequest| { &m.name }, + |m: &mut CreateTableRequest| { &mut m.name }, + )); + 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::ProtobufTypeString>( + "initial_split_keys", + |m: &CreateTableRequest| { &m.initial_split_keys }, + |m: &mut CreateTableRequest| { &mut m.initial_split_keys }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CreateTableRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CreateTableRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateTableRequest::new) + } +} + +impl ::protobuf::Clear for CreateTableRequest { + fn clear(&mut self) { + self.name.clear(); + self.table_id.clear(); + self.table.clear(); + self.initial_split_keys.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CreateTableRequest { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTablesRequest { + // 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 ListTablesRequest { + fn default() -> &'a ListTablesRequest { + ::default_instance() + } +} + +impl ListTablesRequest { + pub fn new() -> ListTablesRequest { + ::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 ListTablesRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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() -> 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: &ListTablesRequest| { &m.name }, + |m: &mut ListTablesRequest| { &mut m.name }, + )); + ::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.name.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, + // 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.table.v1.Table tables = 1; + + + pub fn get_tables(&self) -> &[super::bigtable_table_data::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()) + } +} + +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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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, + // 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()) + } +} + +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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 }, + )); + ::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.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 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 RenameTableRequest { + // message fields + pub name: ::std::string::String, + pub new_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RenameTableRequest { + fn default() -> &'a RenameTableRequest { + ::default_instance() + } +} + +impl RenameTableRequest { + pub fn new() -> RenameTableRequest { + ::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 new_id = 2; + + + pub fn get_new_id(&self) -> &str { + &self.new_id + } + pub fn clear_new_id(&mut self) { + self.new_id.clear(); + } + + // Param is passed by value, moved + pub fn set_new_id(&mut self, v: ::std::string::String) { + self.new_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_new_id(&mut self) -> &mut ::std::string::String { + &mut self.new_id + } + + // Take field + pub fn take_new_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.new_id, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for RenameTableRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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.new_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.new_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.new_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.new_id.is_empty() { + os.write_string(2, &self.new_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() -> RenameTableRequest { + RenameTableRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &RenameTableRequest| { &m.name }, + |m: &mut RenameTableRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "new_id", + |m: &RenameTableRequest| { &m.new_id }, + |m: &mut RenameTableRequest| { &mut m.new_id }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RenameTableRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static RenameTableRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RenameTableRequest::new) + } +} + +impl ::protobuf::Clear for RenameTableRequest { + fn clear(&mut self) { + self.name.clear(); + self.new_id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for RenameTableRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for RenameTableRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateColumnFamilyRequest { + // message fields + pub name: ::std::string::String, + pub column_family_id: ::std::string::String, + pub column_family: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateColumnFamilyRequest { + fn default() -> &'a CreateColumnFamilyRequest { + ::default_instance() + } +} + +impl CreateColumnFamilyRequest { + pub fn new() -> CreateColumnFamilyRequest { + ::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 column_family_id = 2; + + + pub fn get_column_family_id(&self) -> &str { + &self.column_family_id + } + pub fn clear_column_family_id(&mut self) { + self.column_family_id.clear(); + } + + // Param is passed by value, moved + pub fn set_column_family_id(&mut self, v: ::std::string::String) { + self.column_family_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_column_family_id(&mut self) -> &mut ::std::string::String { + &mut self.column_family_id + } + + // Take field + pub fn take_column_family_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.column_family_id, ::std::string::String::new()) + } + + // .google.bigtable.admin.table.v1.ColumnFamily column_family = 3; + + + pub fn get_column_family(&self) -> &super::bigtable_table_data::ColumnFamily { + self.column_family.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_column_family(&mut self) { + self.column_family.clear(); + } + + pub fn has_column_family(&self) -> bool { + self.column_family.is_some() + } + + // Param is passed by value, moved + pub fn set_column_family(&mut self, v: super::bigtable_table_data::ColumnFamily) { + self.column_family = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_column_family(&mut self) -> &mut super::bigtable_table_data::ColumnFamily { + if self.column_family.is_none() { + self.column_family.set_default(); + } + self.column_family.as_mut().unwrap() + } + + // Take field + pub fn take_column_family(&mut self) -> super::bigtable_table_data::ColumnFamily { + self.column_family.take().unwrap_or_else(|| super::bigtable_table_data::ColumnFamily::new()) + } +} + +impl ::protobuf::Message for CreateColumnFamilyRequest { + fn is_initialized(&self) -> bool { + for v in &self.column_family { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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.column_family_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.column_family)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.column_family_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.column_family_id); + } + if let Some(ref v) = self.column_family.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.column_family_id.is_empty() { + os.write_string(2, &self.column_family_id)?; + } + if let Some(ref v) = self.column_family.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() -> CreateColumnFamilyRequest { + CreateColumnFamilyRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &CreateColumnFamilyRequest| { &m.name }, + |m: &mut CreateColumnFamilyRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "column_family_id", + |m: &CreateColumnFamilyRequest| { &m.column_family_id }, + |m: &mut CreateColumnFamilyRequest| { &mut m.column_family_id }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "column_family", + |m: &CreateColumnFamilyRequest| { &m.column_family }, + |m: &mut CreateColumnFamilyRequest| { &mut m.column_family }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CreateColumnFamilyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CreateColumnFamilyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateColumnFamilyRequest::new) + } +} + +impl ::protobuf::Clear for CreateColumnFamilyRequest { + fn clear(&mut self) { + self.name.clear(); + self.column_family_id.clear(); + self.column_family.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CreateColumnFamilyRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CreateColumnFamilyRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteColumnFamilyRequest { + // 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 DeleteColumnFamilyRequest { + fn default() -> &'a DeleteColumnFamilyRequest { + ::default_instance() + } +} + +impl DeleteColumnFamilyRequest { + pub fn new() -> DeleteColumnFamilyRequest { + ::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 DeleteColumnFamilyRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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() -> DeleteColumnFamilyRequest { + DeleteColumnFamilyRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteColumnFamilyRequest| { &m.name }, + |m: &mut DeleteColumnFamilyRequest| { &mut m.name }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DeleteColumnFamilyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DeleteColumnFamilyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteColumnFamilyRequest::new) + } +} + +impl ::protobuf::Clear for DeleteColumnFamilyRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DeleteColumnFamilyRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DeleteColumnFamilyRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct BulkDeleteRowsRequest { + // message fields + pub table_name: ::std::string::String, + // message oneof groups + pub target: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a BulkDeleteRowsRequest { + fn default() -> &'a BulkDeleteRowsRequest { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum BulkDeleteRowsRequest_oneof_target { + row_key_prefix(::std::vec::Vec), + delete_all_data_from_table(bool), +} + +impl BulkDeleteRowsRequest { + pub fn new() -> BulkDeleteRowsRequest { + ::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()) + } + + // bytes row_key_prefix = 2; + + + pub fn get_row_key_prefix(&self) -> &[u8] { + match self.target { + ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::row_key_prefix(ref v)) => v, + _ => &[], + } + } + 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(BulkDeleteRowsRequest_oneof_target::row_key_prefix(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_row_key_prefix(&mut self, v: ::std::vec::Vec) { + self.target = ::std::option::Option::Some(BulkDeleteRowsRequest_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(BulkDeleteRowsRequest_oneof_target::row_key_prefix(_)) = self.target { + } else { + self.target = ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::row_key_prefix(::std::vec::Vec::new())); + } + match self.target { + ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::row_key_prefix(ref mut v)) => v, + _ => panic!(), + } + } + + // 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(BulkDeleteRowsRequest_oneof_target::row_key_prefix(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bool delete_all_data_from_table = 3; + + + pub fn get_delete_all_data_from_table(&self) -> bool { + match self.target { + ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(v)) => v, + _ => false, + } + } + 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(BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_delete_all_data_from_table(&mut self, v: bool) { + self.target = ::std::option::Option::Some(BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(v)) + } +} + +impl ::protobuf::Message for BulkDeleteRowsRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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 => { + 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(BulkDeleteRowsRequest_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(BulkDeleteRowsRequest_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())?; + }, + }; + } + ::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 let ::std::option::Option::Some(ref v) = self.target { + match v { + &BulkDeleteRowsRequest_oneof_target::row_key_prefix(ref v) => { + my_size += ::protobuf::rt::bytes_size(2, &v); + }, + &BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(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.table_name.is_empty() { + os.write_string(1, &self.table_name)?; + } + if let ::std::option::Option::Some(ref v) = self.target { + match v { + &BulkDeleteRowsRequest_oneof_target::row_key_prefix(ref v) => { + os.write_bytes(2, v)?; + }, + &BulkDeleteRowsRequest_oneof_target::delete_all_data_from_table(v) => { + os.write_bool(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() -> BulkDeleteRowsRequest { + BulkDeleteRowsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &BulkDeleteRowsRequest| { &m.table_name }, + |m: &mut BulkDeleteRowsRequest| { &mut m.table_name }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( + "row_key_prefix", + BulkDeleteRowsRequest::has_row_key_prefix, + BulkDeleteRowsRequest::get_row_key_prefix, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( + "delete_all_data_from_table", + BulkDeleteRowsRequest::has_delete_all_data_from_table, + BulkDeleteRowsRequest::get_delete_all_data_from_table, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "BulkDeleteRowsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static BulkDeleteRowsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(BulkDeleteRowsRequest::new) + } +} + +impl ::protobuf::Clear for BulkDeleteRowsRequest { + fn clear(&mut self) { + self.table_name.clear(); + self.target = ::std::option::Option::None; + self.target = ::std::option::Option::None; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for BulkDeleteRowsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for BulkDeleteRowsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \nDgoogle/bigtable/admin/table/v1/bigtable_table_service_messages.proto\ + \x12\x1egoogle.bigtable.admin.table.v1\x1a8google/bigtable/admin/table/v\ + 1/bigtable_table_data.proto\"\xae\x01\n\x12CreateTableRequest\x12\x12\n\ + \x04name\x18\x01\x20\x01(\tR\x04name\x12\x19\n\x08table_id\x18\x02\x20\ + \x01(\tR\x07tableId\x12;\n\x05table\x18\x03\x20\x01(\x0b2%.google.bigtab\ + le.admin.table.v1.TableR\x05table\x12,\n\x12initial_split_keys\x18\x04\ + \x20\x03(\tR\x10initialSplitKeys\"'\n\x11ListTablesRequest\x12\x12\n\x04\ + name\x18\x01\x20\x01(\tR\x04name\"S\n\x12ListTablesResponse\x12=\n\x06ta\ + bles\x18\x01\x20\x03(\x0b2%.google.bigtable.admin.table.v1.TableR\x06tab\ + les\"%\n\x0fGetTableRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04nam\ + e\"(\n\x12DeleteTableRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04na\ + me\"?\n\x12RenameTableRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04n\ + ame\x12\x15\n\x06new_id\x18\x02\x20\x01(\tR\x05newId\"\xac\x01\n\x19Crea\ + teColumnFamilyRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12(\ + \n\x10column_family_id\x18\x02\x20\x01(\tR\x0ecolumnFamilyId\x12Q\n\rcol\ + umn_family\x18\x03\x20\x01(\x0b2,.google.bigtable.admin.table.v1.ColumnF\ + amilyR\x0ccolumnFamily\"/\n\x19DeleteColumnFamilyRequest\x12\x12\n\x04na\ + me\x18\x01\x20\x01(\tR\x04name\"\xa6\x01\n\x15BulkDeleteRowsRequest\x12\ + \x1d\n\ntable_name\x18\x01\x20\x01(\tR\ttableName\x12&\n\x0erow_key_pref\ + ix\x18\x02\x20\x01(\x0cH\0R\x0crowKeyPrefix\x12<\n\x1adelete_all_data_fr\ + om_table\x18\x03\x20\x01(\x08H\0R\x16deleteAllDataFromTableB\x08\n\x06ta\ + rgetB\x8e\x01\n\"com.google.bigtable.admin.table.v1B!BigtableTableServic\ + eMessagesProtoP\x01ZCgoogle.golang.org/genproto/googleapis/bigtable/admi\ + n/table/v1;tableJ\x85!\n\x06\x12\x04\x0e\0r\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\0B\n\x08\n\ + \x01\x08\x12\x03\x14\0Z\n\t\n\x02\x08\x0b\x12\x03\x14\0Z\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\0B\n\t\n\x02\x08\x08\x12\x03\x16\0B\n\x08\n\x01\x08\x12\x03\x17\0;\ + \n\t\n\x02\x08\x01\x12\x03\x17\0;\n\n\n\x02\x04\0\x12\x04\x19\05\x01\n\n\ + \n\x03\x04\0\x01\x12\x03\x19\x08\x1a\nO\n\x04\x04\0\x02\0\x12\x03\x1b\ + \x02\x12\x1aB\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20in\x20\ + which\x20to\x20create\x20the\x20new\x20table.\n\n\r\n\x05\x04\0\x02\0\ + \x04\x12\x04\x1b\x02\x19\x1c\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\r\n\x0c\n\x05\x04\0\x02\0\ + \x03\x12\x03\x1b\x10\x11\n\x94\x01\n\x04\x04\0\x02\x01\x12\x03\x1f\x02\ + \x16\x1a\x86\x01\x20The\x20name\x20by\x20which\x20the\x20new\x20table\ + \x20should\x20be\x20referred\x20to\x20within\x20the\x20cluster,\n\x20e.g\ + .\x20\"foobar\"\x20rather\x20than\x20\"/tables/foobar\".\n\ + \n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x1f\x02\x1b\x12\n\x0c\n\x05\x04\0\ + \x02\x01\x05\x12\x03\x1f\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\ + \x1f\t\x11\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x1f\x14\x15\n\x9c\x01\n\ + \x04\x04\0\x02\x02\x12\x03#\x02\x12\x1a\x8e\x01\x20The\x20Table\x20to\ + \x20create.\x20The\x20`name`\x20field\x20of\x20the\x20Table\x20and\x20al\ + l\x20of\x20its\n\x20ColumnFamilies\x20must\x20be\x20left\x20blank,\x20an\ + d\x20will\x20be\x20populated\x20in\x20the\x20response.\n\n\r\n\x05\x04\0\ + \x02\x02\x04\x12\x04#\x02\x1f\x16\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\n\x84\x06\n\x04\x04\0\x02\x03\x12\x034\x02\ + )\x1a\xf6\x05\x20The\x20optional\x20list\x20of\x20row\x20keys\x20that\ + \x20will\x20be\x20used\x20to\x20initially\x20split\x20the\n\x20table\x20\ + into\x20several\x20tablets\x20(Tablets\x20are\x20similar\x20to\x20HBase\ + \x20regions).\n\x20Given\x20two\x20split\x20keys,\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\x20Ex\ + ample:\n\x20\x20*\x20Row\x20keys\x20:=\x20[\"a\",\x20\"apple\",\x20\"cus\ + tom\",\x20\"customer_1\",\x20\"customer_2\",\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"other\",\x20\"zz\"]\n\x20\ + \x20*\x20initial_split_keys\x20:=\x20[\"apple\",\x20\"customer_1\",\x20\ + \"customer_2\",\x20\"other\"]\n\x20\x20*\x20Key\x20assignment:\n\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-\x20Tab\ + let\x202\x20[apple,\x20customer_1)\x20\x20\x20\x20\x20\x20=>\x20{\"apple\ + \",\x20\"custom\"}.\n\x20\x20\x20\x20-\x20Tablet\x203\x20[customer_1,\ + \x20customer_2)\x20=>\x20{\"customer_1\"}.\n\x20\x20\x20\x20-\x20Tablet\ + \x204\x20[customer_2,\x20other)\x20\x20\x20\x20\x20\x20=>\x20{\"customer\ + _2\"}.\n\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\"z\ + z\"}.\n\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x034\x02\n\n\x0c\n\x05\x04\0\ + \x02\x03\x05\x12\x034\x0b\x11\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x034\x12\ + $\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x034'(\n\n\n\x02\x04\x01\x12\x047\0:\ + \x01\n\n\n\x03\x04\x01\x01\x12\x037\x08\x19\nP\n\x04\x04\x01\x02\0\x12\ + \x039\x02\x12\x1aC\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20f\ + or\x20which\x20tables\x20should\x20be\x20listed.\n\n\r\n\x05\x04\x01\x02\ + \0\x04\x12\x049\x027\x1b\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x039\x02\x08\ + \n\x0c\n\x05\x04\x01\x02\0\x01\x12\x039\t\r\n\x0c\n\x05\x04\x01\x02\0\ + \x03\x12\x039\x10\x11\n\n\n\x02\x04\x02\x12\x04<\0@\x01\n\n\n\x03\x04\ + \x02\x01\x12\x03<\x08\x1a\nt\n\x04\x04\x02\x02\0\x12\x03?\x02\x1c\x1ag\ + \x20The\x20tables\x20present\x20in\x20the\x20requested\x20cluster.\n\x20\ + At\x20present,\x20only\x20the\x20names\x20of\x20the\x20tables\x20are\x20\ + populated.\n\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03?\x02\n\n\x0c\n\x05\ + \x04\x02\x02\0\x06\x12\x03?\x0b\x10\n\x0c\n\x05\x04\x02\x02\0\x01\x12\ + \x03?\x11\x17\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03?\x1a\x1b\n\n\n\x02\ + \x04\x03\x12\x04B\0E\x01\n\n\n\x03\x04\x03\x01\x12\x03B\x08\x17\n6\n\x04\ + \x04\x03\x02\0\x12\x03D\x02\x12\x1a)\x20The\x20unique\x20name\x20of\x20t\ + he\x20requested\x20table.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04D\x02B\ + \x19\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03D\x02\x08\n\x0c\n\x05\x04\x03\ + \x02\0\x01\x12\x03D\t\r\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03D\x10\x11\n\ + \n\n\x02\x04\x04\x12\x04G\0J\x01\n\n\n\x03\x04\x04\x01\x12\x03G\x08\x1a\ + \n:\n\x04\x04\x04\x02\0\x12\x03I\x02\x12\x1a-\x20The\x20unique\x20name\ + \x20of\x20the\x20table\x20to\x20be\x20deleted.\n\n\r\n\x05\x04\x04\x02\0\ + \x04\x12\x04I\x02G\x1c\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03I\x02\x08\n\ + \x0c\n\x05\x04\x04\x02\0\x01\x12\x03I\t\r\n\x0c\n\x05\x04\x04\x02\0\x03\ + \x12\x03I\x10\x11\n\n\n\x02\x04\x05\x12\x04L\0S\x01\n\n\n\x03\x04\x05\ + \x01\x12\x03L\x08\x1a\n4\n\x04\x04\x05\x02\0\x12\x03N\x02\x12\x1a'\x20Th\ + e\x20current\x20unique\x20name\x20of\x20the\x20table.\n\n\r\n\x05\x04\ + \x05\x02\0\x04\x12\x04N\x02L\x1c\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03N\ + \x02\x08\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03N\t\r\n\x0c\n\x05\x04\x05\ + \x02\0\x03\x12\x03N\x10\x11\n\x9f\x01\n\x04\x04\x05\x02\x01\x12\x03R\x02\ + \x14\x1a\x91\x01\x20The\x20new\x20name\x20by\x20which\x20the\x20table\ + \x20should\x20be\x20referred\x20to\x20within\x20its\x20containing\n\x20c\ + luster,\x20e.g.\x20\"foobar\"\x20rather\x20than\x20\"/tabl\ + es/foobar\".\n\n\r\n\x05\x04\x05\x02\x01\x04\x12\x04R\x02N\x12\n\x0c\n\ + \x05\x04\x05\x02\x01\x05\x12\x03R\x02\x08\n\x0c\n\x05\x04\x05\x02\x01\ + \x01\x12\x03R\t\x0f\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x03R\x12\x13\n\n\ + \n\x02\x04\x06\x12\x04U\0_\x01\n\n\n\x03\x04\x06\x01\x12\x03U\x08!\nU\n\ + \x04\x04\x06\x02\0\x12\x03W\x02\x12\x1aH\x20The\x20unique\x20name\x20of\ + \x20the\x20table\x20in\x20which\x20to\x20create\x20the\x20new\x20column\ + \x20family.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04W\x02U#\n\x0c\n\x05\x04\ + \x06\x02\0\x05\x12\x03W\x02\x08\n\x0c\n\x05\x04\x06\x02\0\x01\x12\x03W\t\ + \r\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03W\x10\x11\n\xa0\x01\n\x04\x04\ + \x06\x02\x01\x12\x03[\x02\x1e\x1a\x92\x01\x20The\x20name\x20by\x20which\ + \x20the\x20new\x20column\x20family\x20should\x20be\x20referred\x20to\x20\ + within\x20the\n\x20table,\x20e.g.\x20\"foobar\"\x20rather\x20than\x20\"<\ + table_name>/columnFamilies/foobar\".\n\n\r\n\x05\x04\x06\x02\x01\x04\x12\ + \x04[\x02W\x12\n\x0c\n\x05\x04\x06\x02\x01\x05\x12\x03[\x02\x08\n\x0c\n\ + \x05\x04\x06\x02\x01\x01\x12\x03[\t\x19\n\x0c\n\x05\x04\x06\x02\x01\x03\ + \x12\x03[\x1c\x1d\nP\n\x04\x04\x06\x02\x02\x12\x03^\x02!\x1aC\x20The\x20\ + column\x20family\x20to\x20create.\x20The\x20`name`\x20field\x20must\x20b\ + e\x20left\x20blank.\n\n\r\n\x05\x04\x06\x02\x02\x04\x12\x04^\x02[\x1e\n\ + \x0c\n\x05\x04\x06\x02\x02\x06\x12\x03^\x02\x0e\n\x0c\n\x05\x04\x06\x02\ + \x02\x01\x12\x03^\x0f\x1c\n\x0c\n\x05\x04\x06\x02\x02\x03\x12\x03^\x1f\ + \x20\n\n\n\x02\x04\x07\x12\x04a\0d\x01\n\n\n\x03\x04\x07\x01\x12\x03a\ + \x08!\nB\n\x04\x04\x07\x02\0\x12\x03c\x02\x12\x1a5\x20The\x20unique\x20n\ + ame\x20of\x20the\x20column\x20family\x20to\x20be\x20deleted.\n\n\r\n\x05\ + \x04\x07\x02\0\x04\x12\x04c\x02a#\n\x0c\n\x05\x04\x07\x02\0\x05\x12\x03c\ + \x02\x08\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03c\t\r\n\x0c\n\x05\x04\x07\ + \x02\0\x03\x12\x03c\x10\x11\n\n\n\x02\x04\x08\x12\x04f\0r\x01\n\n\n\x03\ + \x04\x08\x01\x12\x03f\x08\x1d\nO\n\x04\x04\x08\x02\0\x12\x03h\x02\x18\ + \x1aB\x20The\x20unique\x20name\x20of\x20the\x20table\x20on\x20which\x20t\ + o\x20perform\x20the\x20bulk\x20delete\n\n\r\n\x05\x04\x08\x02\0\x04\x12\ + \x04h\x02f\x1f\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03h\x02\x08\n\x0c\n\ + \x05\x04\x08\x02\0\x01\x12\x03h\t\x13\n\x0c\n\x05\x04\x08\x02\0\x03\x12\ + \x03h\x16\x17\n\x0c\n\x04\x04\x08\x08\0\x12\x04j\x02q\x03\n\x0c\n\x05\ + \x04\x08\x08\0\x01\x12\x03j\x08\x0e\nb\n\x04\x04\x08\x02\x01\x12\x03m\ + \x04\x1d\x1aU\x20Delete\x20all\x20rows\x20that\x20start\x20with\x20this\ + \x20row\x20key\x20prefix.\x20Prefix\x20cannot\x20be\n\x20zero\x20length.\ + \n\n\x0c\n\x05\x04\x08\x02\x01\x05\x12\x03m\x04\t\n\x0c\n\x05\x04\x08\ + \x02\x01\x01\x12\x03m\n\x18\n\x0c\n\x05\x04\x08\x02\x01\x03\x12\x03m\x1b\ + \x1c\nN\n\x04\x04\x08\x02\x02\x12\x03p\x04(\x1aA\x20Delete\x20all\x20row\ + s\x20in\x20the\x20table.\x20Setting\x20this\x20to\x20false\x20is\x20a\ + \x20no-op.\n\n\x0c\n\x05\x04\x08\x02\x02\x05\x12\x03p\x04\x08\n\x0c\n\ + \x05\x04\x08\x02\x02\x01\x12\x03p\t#\n\x0c\n\x05\x04\x08\x02\x02\x03\x12\ + \x03p&'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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs new file mode 100644 index 0000000000..06b774ca9c --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs @@ -0,0 +1,5783 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/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_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct CreateInstanceRequest { + // message fields + pub parent: ::std::string::String, + pub instance_id: ::std::string::String, + pub instance: ::protobuf::SingularPtrField, + pub clusters: ::std::collections::HashMap<::std::string::String, super::instance::Cluster>, + // 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.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()) + } +} + +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)?; + }, + 4 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.clusters)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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::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); + 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)?; + } + ::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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + 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 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.clusters.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 GetInstanceRequest { + // 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 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 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.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 ListInstancesRequest { + // message fields + pub parent: ::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 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()) + } + + // 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 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 => { + ::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_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_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() -> 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 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_token.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 failed_locations: ::protobuf::RepeatedField<::std::string::String>, + 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.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()) + } +} + +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_repeated_string_into(wire_type, is, &mut self.failed_locations)?; + }, + 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.instances { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + for value in &self.failed_locations { + my_size += ::protobuf::rt::string_size(2, &value); + }; + 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.instances { + 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.failed_locations { + os.write_string(2, &v)?; + }; + 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() -> 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 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.failed_locations.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 PartialUpdateInstanceRequest { + // message fields + pub instance: ::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 PartialUpdateInstanceRequest { + fn default() -> &'a PartialUpdateInstanceRequest { + ::default_instance() + } +} + +impl PartialUpdateInstanceRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.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.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.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.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() -> 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 default_instance() -> &'static PartialUpdateInstanceRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PartialUpdateInstanceRequest::new) + } +} + +impl ::protobuf::Clear for PartialUpdateInstanceRequest { + fn clear(&mut self) { + self.instance.clear(); + self.update_mask.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteInstanceRequest { + // 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 DeleteInstanceRequest { + fn default() -> &'a DeleteInstanceRequest { + ::default_instance() + } +} + +impl DeleteInstanceRequest { + pub fn new() -> DeleteInstanceRequest { + ::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 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static DeleteInstanceRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteInstanceRequest::new) + } +} + +impl ::protobuf::Clear for DeleteInstanceRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateClusterRequest { + // message fields + pub parent: ::std::string::String, + pub cluster_id: ::std::string::String, + pub cluster: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateClusterRequest { + fn default() -> &'a CreateClusterRequest { + ::default_instance() + } +} + +impl CreateClusterRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cluster_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cluster)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.cluster_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.cluster_id); + } + 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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static CreateClusterRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateClusterRequest::new) + } +} + +impl ::protobuf::Clear for CreateClusterRequest { + fn clear(&mut self) { + self.parent.clear(); + self.cluster_id.clear(); + self.cluster.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetClusterRequest { + // 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 GetClusterRequest { + fn default() -> &'a GetClusterRequest { + ::default_instance() + } +} + +impl GetClusterRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static GetClusterRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetClusterRequest::new) + } +} + +impl ::protobuf::Clear for GetClusterRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListClustersRequest { + // message fields + pub parent: ::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 ListClustersRequest { + fn default() -> &'a ListClustersRequest { + ::default_instance() + } +} + +impl ListClustersRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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_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_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() -> 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 default_instance() -> &'static ListClustersRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListClustersRequest::new) + } +} + +impl ::protobuf::Clear for ListClustersRequest { + fn clear(&mut self) { + self.parent.clear(); + self.page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListClustersResponse { + // message fields + pub clusters: ::protobuf::RepeatedField, + pub failed_locations: ::protobuf::RepeatedField<::std::string::String>, + 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 ListClustersResponse { + fn default() -> &'a ListClustersResponse { + ::default_instance() + } +} + +impl ListClustersResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.failed_locations)?; + }, + 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.clusters { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + for value in &self.failed_locations { + my_size += ::protobuf::rt::string_size(2, &value); + }; + 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.clusters { + 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.failed_locations { + os.write_string(2, &v)?; + }; + 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() -> 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 default_instance() -> &'static ListClustersResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListClustersResponse::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteClusterRequest { + // 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 DeleteClusterRequest { + fn default() -> &'a DeleteClusterRequest { + ::default_instance() + } +} + +impl DeleteClusterRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static DeleteClusterRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteClusterRequest::new) + } +} + +impl ::protobuf::Clear for DeleteClusterRequest { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +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>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateInstanceMetadata { + fn default() -> &'a CreateInstanceMetadata { + ::default_instance() + } +} + +impl CreateInstanceMetadata { + pub fn new() -> 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(); + } + + 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: CreateInstanceRequest) { + 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 CreateInstanceRequest { + 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) -> 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(()) + } + + // 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() -> 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 default_instance() -> &'static CreateInstanceMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateInstanceMetadata::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +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>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UpdateInstanceMetadata { + fn default() -> &'a UpdateInstanceMetadata { + ::default_instance() + } +} + +impl UpdateInstanceMetadata { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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() -> 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 default_instance() -> &'static UpdateInstanceMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateInstanceMetadata::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +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>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateClusterMetadata { + fn default() -> &'a CreateClusterMetadata { + ::default_instance() + } +} + +impl CreateClusterMetadata { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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() -> 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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CreateClusterMetadata", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CreateClusterMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateClusterMetadata::new) + } +} + +impl ::protobuf::Clear for CreateClusterMetadata { + 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 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateClusterMetadata { + // 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 UpdateClusterMetadata { + fn default() -> &'a UpdateClusterMetadata { + ::default_instance() + } +} + +impl UpdateClusterMetadata { + pub fn new() -> UpdateClusterMetadata { + ::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()) + } +} + +impl ::protobuf::Message for UpdateClusterMetadata { + 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() -> 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_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 default_instance() -> &'static UpdateClusterMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateClusterMetadata::new) + } +} + +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 ::std::fmt::Debug for UpdateClusterMetadata { + 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) + } +} + +#[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() + } +} + +impl ::protobuf::Message for UpdateAppProfileMetadata { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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() -> 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 fields = ::std::vec::Vec::new(); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateAppProfileMetadata", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UpdateAppProfileMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateAppProfileMetadata::new) + } +} + +impl ::protobuf::Clear for UpdateAppProfileMetadata { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateAppProfileMetadata { + 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) + } +} + +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\"R\n\x12GetInstanceRequest\x12<\n\x04name\ + \x18\x01\x20\x01(\tR\x04nameB(\xfaA\"\n\x20bigtable.googleapis.com/Insta\ + nce\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\ + \"U\n\x15DeleteInstanceRequest\x12<\n\x04name\x18\x01\x20\x01(\tR\x04nam\ + eB(\xfaA\"\n\x20bigtable.googleapis.com/Instance\xe0A\x02\"\xbe\x01\n\ + \x14CreateClusterRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\ + (\xe0A\x02\xfaA\"\n\x20bigtable.googleapis.com/Instance\x12\"\n\ncluster\ + _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\"P\n\x11GetClusterRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\ + \x04nameB'\xfaA!\n\x1fbigtable.googleapis.com/Cluster\xe0A\x02\"v\n\x13L\ + istClustersRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\xfaA\ + \"\n\x20bigtable.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.ClusterR\ + \x08clusters\x12)\n\x10failed_locations\x18\x02\x20\x03(\tR\x0ffailedLoc\ + ations\x12&\n\x0fnext_page_token\x18\x03\x20\x01(\tR\rnextPageToken\"S\n\ + \x14DeleteClusterRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\ + \xfaA!\n\x1fbigtable.googleapis.com/Cluster\xe0A\x02\"\xf0\x01\n\x16Crea\ + teInstanceMetadata\x12Z\n\x10original_request\x18\x01\x20\x01(\x0b2/.goo\ + gle.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\"\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\"\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\"\xfb\x01\n\x17CreateAppProfileRequest\x12@\n\x06p\ + arent\x18\x01\x20\x01(\tR\x06parentB(\xe0A\x02\xfaA\"\n\x20bigtable.goog\ + leapis.com/Instance\x12)\n\x0eapp_profile_id\x18\x02\x20\x01(\tR\x0cappP\ + rofileIdB\x03\xe0A\x02\x12J\n\x0bapp_profile\x18\x03\x20\x01(\x0b2$.goog\ + le.bigtable.admin.v2.AppProfileR\nappProfileB\x03\xe0A\x02\x12'\n\x0fign\ + ore_warnings\x18\x04\x20\x01(\x08R\x0eignoreWarnings\"V\n\x14GetAppProfi\ + leRequest\x12>\n\x04name\x18\x01\x20\x01(\tR\x04nameB*\xe0A\x02\xfaA$\n\ + \"bigtable.googleapis.com/AppProfile\"\x96\x01\n\x16ListAppProfilesReque\ + st\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\xe0A\x02\xfaA\"\n\ + \x20bigtable.googleapis.com/Instance\x12\x1b\n\tpage_size\x18\x03\x20\ + \x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageTo\ + ken\"\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\x10\ + failed_locations\x18\x03\x20\x03(\tR\x0ffailedLocations\"\xd0\x01\n\x17U\ + pdateAppProfileRequest\x12J\n\x0bapp_profile\x18\x01\x20\x01(\x0b2$.goog\ + le.bigtable.admin.v2.AppProfileR\nappProfileB\x03\xe0A\x02\x12@\n\x0bupd\ + ate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMas\ + kB\x03\xe0A\x02\x12'\n\x0fignore_warnings\x18\x03\x20\x01(\x08R\x0eignor\ + eWarnings\"\x87\x01\n\x17DeleteAppProfileRequest\x12>\n\x04name\x18\x01\ + \x20\x01(\tR\x04nameB*\xe0A\x02\xfaA$\n\"bigtable.googleapis.com/AppProf\ + ile\x12,\n\x0fignore_warnings\x18\x02\x20\x01(\x08R\x0eignoreWarningsB\ + \x03\xe0A\x02\"\x1a\n\x18UpdateAppProfileMetadata2\x92\x1e\n\x15Bigtable\ + InstanceAdmin\x12\xda\x01\n\x0eCreateInstance\x12/.google.bigtable.admin\ + .v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"x\xdaA$p\ + arent,instance_id,instance,clusters\xcaA\"\n\x08Instance\x12\x16CreateIn\ + stanceMetadata\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\ + \x01*\x12\x91\x01\n\x0bGetInstance\x12,.google.bigtable.admin.v2.GetInst\ + anceRequest\x1a\".google.bigtable.admin.v2.Instance\"0\x82\xd3\xe4\x93\ + \x02#\x12!/v2/{name=projects/*/instances/*}\xdaA\x04name\x12\xa4\x01\n\r\ + ListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1a/.go\ + ogle.bigtable.admin.v2.ListInstancesResponse\"2\xdaA\x06parent\x82\xd3\ + \xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\n\x0eUpd\ + ateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\".google.bigtabl\ + e.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{name=projects/*/ins\ + tances/*}:\x01*\x12\xe8\x01\n\x15PartialUpdateInstance\x126.google.bigta\ + ble.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.google.longrunning.Ope\ + ration\"x\x82\xd3\xe4\x93\x0262*/v2/{instance.name=projects/*/instances/\ + *}:\x08instance\xdaA\x14instance,update_mask\xcaA\"\n\x08Instance\x12\ + \x16UpdateInstanceMetadata\x12\x8b\x01\n\x0eDeleteInstance\x12/.google.b\ + igtable.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.bigtable.admin.v2.CreateCluste\ + rRequest\x1a\x1d.google.longrunning.Operation\"|\xcaA\x20\n\x07Cluster\ + \x12\x15CreateClusterMetadata\x82\xd3\xe4\x93\x027\",/v2/{parent=project\ + s/*/instances/*}/clusters:\x07cluster\xdaA\x19parent,cluster_id,cluster\ + \x12\x99\x01\n\nGetCluster\x12+.google.bigtable.admin.v2.GetClusterReque\ + st\x1a!.google.bigtable.admin.v2.Cluster\";\xdaA\x04name\x82\xd3\xe4\x93\ + \x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xac\x01\n\x0c\ + ListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1a..goog\ + le.bigtable.admin.v2.ListClustersResponse\"=\xdaA\x06parent\x82\xd3\xe4\ + \x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xad\x01\n\ + \rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1a\x1d.google.lon\ + grunning.Operation\"Z\x82\xd3\xe4\x93\x021\x1a,/v2/{name=projects/*/inst\ + ances/*/clusters/*}:\x01*\xcaA\x20\n\x07Cluster\x12\x15UpdateClusterMeta\ + data\x12\x94\x01\n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteCl\ + usterRequest\x1a\x16.google.protobuf.Empty\";\xdaA\x04name\x82\xd3\xe4\ + \x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xd5\x01\n\ + \x10CreateAppProfile\x121.google.bigtable.admin.v2.CreateAppProfileReque\ + st\x1a$.google.bigtable.admin.v2.AppProfile\"h\x82\xd3\xe4\x93\x02>\"//v\ + 2/{parent=projects/*/instances/*}/appProfiles:\x0bapp_profile\xdaA!paren\ + t,app_profile_id,app_profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bi\ + gtable.admin.v2.GetAppProfileRequest\x1a$.google.bigtable.admin.v2.AppPr\ + ofile\">\x82\xd3\xe4\x93\x021\x12//v2/{name=projects/*/instances/*/appPr\ + ofiles/*}\xdaA\x04name\x12\xb8\x01\n\x0fListAppProfiles\x120.google.bigt\ + able.admin.v2.ListAppProfilesRequest\x1a1.google.bigtable.admin.v2.ListA\ + ppProfilesResponse\"@\x82\xd3\xe4\x93\x021\x12//v2/{parent=projects/*/in\ + stances/*}/appProfiles\xdaA\x06parent\x12\xfa\x01\n\x10UpdateAppProfile\ + \x121.google.bigtable.admin.v2.UpdateAppProfileRequest\x1a\x1d.google.lo\ + ngrunning.Operation\"\x93\x01\xdaA\x17app_profile,update_mask\xcaA&\n\nA\ + ppProfile\x12\x18UpdateAppProfileMetadata\x82\xd3\xe4\x93\x02J2;/v2/{app\ + _profile.name=projects/*/instances/*/appProfiles/*}:\x0bapp_profile\x12\ + \x9d\x01\n\x10DeleteAppProfile\x121.google.bigtable.admin.v2.DeleteAppPr\ + ofileRequest\x1a\x16.google.protobuf.Empty\">\x82\xd3\xe4\x93\x021*//v2/\ + {name=projects/*/instances/*/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/*/instanc\ + es/*}:getIamPolicy:\x01*\xdaA\x08resource\x12\x9a\x01\n\x0cSetIamPolicy\ + \x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"O\ + \xdaA\x0fresource,policy\x82\xd3\xe4\x93\x027\"2/v2/{resource=projects/*\ + /instances/*}:setIamPolicy:\x01*\x12\xc5\x01\n\x12TestIamPermissions\x12\ + (.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPerm\ + issionsResponse\"Z\xdaA\x14resource,permissions\x82\xd3\xe4\x93\x02=\"8/\ + v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*\x1a\x9a\ + \x03\xcaA\x1cbigtableadmin.googleapis.com\xd2A\xf7\x02https://www.google\ + apis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.ad\ + min.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,http\ + s://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.\ + com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cl\ + oud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\ + \xe2\x01\n\x1ccom.google.bigtable.admin.v2B\x1aBigtableInstanceAdminProt\ + oP\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\x9d\x8e\ + \x01\n\x07\x12\x05\x0e\0\xbd\x04\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb1\x04\x20Copyright\x202020\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\xec\x01\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\n4\ + \n\x04\x06\0\x02\0\x12\x045\x02?\x03\x1a&\x20Create\x20an\x20instance\ + \x20within\x20a\x20project.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x035\x06\ + \x14\n\x0c\n\x05\x06\0\x02\0\x02\x12\x035\x15*\n\x0c\n\x05\x06\0\x02\0\ + \x03\x12\x0355Q\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:\x04R\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x03:\x04R\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\n3\n\x04\x06\0\x02\x01\x12\x04B\x02G\x03\x1a%\ + \x20Gets\x20information\x20about\x20an\x20instance.\n\n\x0c\n\x05\x06\0\ + \x02\x01\x01\x12\x03B\x06\x11\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03B\x12\ + $\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03B/7\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?\n\x04\x06\0\x02\x02\x12\x04J\x02\ + O\x03\x1a1\x20Lists\x20information\x20about\x20instances\x20in\x20a\x20p\ + roject.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03J\x06\x13\n\x0c\n\x05\x06\ + \0\x02\x02\x02\x12\x03J\x14(\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03J3H\n\ + \r\n\x05\x06\0\x02\x02\x04\x12\x04K\x04M\x06\n\x11\n\t\x06\0\x02\x02\x04\ + \xb0\xca\xbc\"\x12\x04K\x04M\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03N\ + \x044\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03N\x044\n\xcc\x01\n\ + \x04\x06\0\x02\x03\x12\x04T\x02Y\x03\x1a\xbd\x01\x20Updates\x20an\x20ins\ + tance\x20within\x20a\x20project.\x20This\x20method\x20updates\x20only\ + \x20the\x20display\n\x20name\x20and\x20type\x20for\x20an\x20Instance.\ + \x20To\x20update\x20other\x20Instance\x20properties,\x20such\x20as\n\x20\ + labels,\x20use\x20PartialUpdateInstance.\n\n\x0c\n\x05\x06\0\x02\x03\x01\ + \x12\x03T\x06\x14\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03T\x15\x1d\n\x0c\n\ + \x05\x06\0\x02\x03\x03\x12\x03T(0\n\r\n\x05\x06\0\x02\x03\x04\x12\x04U\ + \x04X\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04U\x04X\x06\n\ + \xa2\x01\n\x04\x06\0\x02\x04\x12\x04]\x02g\x03\x1a\x93\x01\x20Partially\ + \x20updates\x20an\x20instance\x20within\x20a\x20project.\x20This\x20meth\ + od\x20can\x20modify\x20all\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\x03]\x06\x1b\n\x0c\n\x05\x06\0\x02\x04\ + \x02\x12\x03]\x1c8\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03]C_\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\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03b\x04B\n\ + \x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03b\x04B\n\r\n\x05\x06\0\x02\ + \x04\x04\x12\x04c\x04f\x06\n\x0f\n\x07\x06\0\x02\x04\x04\x99\x08\x12\x04\ + c\x04f\x06\n2\n\x04\x06\0\x02\x05\x12\x04j\x02o\x03\x1a$\x20Delete\x20an\ + \x20instance\x20from\x20a\x20project.\n\n\x0c\n\x05\x06\0\x02\x05\x01\ + \x12\x03j\x06\x14\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03j\x15*\n\x0c\n\ + \x05\x06\0\x02\x05\x03\x12\x03j5J\n\r\n\x05\x06\0\x02\x05\x04\x12\x04k\ + \x04m\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04k\x04m\x06\n\ + \x0c\n\x05\x06\0\x02\x05\x04\x12\x03n\x042\n\x0f\n\x08\x06\0\x02\x05\x04\ + \x9b\x08\0\x12\x03n\x042\n5\n\x04\x06\0\x02\x06\x12\x04r\x02|\x03\x1a'\ + \x20Creates\x20a\x20cluster\x20within\x20an\x20instance.\n\n\x0c\n\x05\ + \x06\0\x02\x06\x01\x12\x03r\x06\x13\n\x0c\n\x05\x06\0\x02\x06\x02\x12\ + \x03r\x14(\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03r3O\n\r\n\x05\x06\0\x02\ + \x06\x04\x12\x04s\x04v\x06\n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\ + \x04s\x04v\x06\n\x0c\n\x05\x06\0\x02\x06\x04\x12\x03w\x04G\n\x0f\n\x08\ + \x06\0\x02\x06\x04\x9b\x08\0\x12\x03w\x04G\n\r\n\x05\x06\0\x02\x06\x04\ + \x12\x04x\x04{\x06\n\x0f\n\x07\x06\0\x02\x06\x04\x99\x08\x12\x04x\x04{\ + \x06\n2\n\x04\x06\0\x02\x07\x12\x05\x7f\x02\x84\x01\x03\x1a#\x20Gets\x20\ + information\x20about\x20a\x20cluster.\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-4\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\nB\n\x04\x06\0\x02\x08\x12\x06\x87\x01\x02\x8c\x01\x03\x1a2\x20Lis\ + ts\x20information\x20about\x20clusters\x20in\x20an\x20instance.\n\n\r\n\ + \x05\x06\0\x02\x08\x01\x12\x04\x87\x01\x06\x12\n\r\n\x05\x06\0\x02\x08\ + \x02\x12\x04\x87\x01\x13&\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\x87\x011E\ + \n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\x88\x01\x04\x8a\x01\x06\n\x13\n\t\ + \x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x06\x88\x01\x04\x8a\x01\x06\n\r\n\ + \x05\x06\0\x02\x08\x04\x12\x04\x8b\x01\x044\n\x10\n\x08\x06\0\x02\x08\ + \x04\x9b\x08\0\x12\x04\x8b\x01\x044\n7\n\x04\x06\0\x02\t\x12\x06\x8f\x01\ + \x02\x98\x01\x03\x1a'\x20Updates\x20a\x20cluster\x20within\x20an\x20inst\ + ance.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\x8f\x01\x06\x13\n\r\n\x05\x06\ + \0\x02\t\x02\x12\x04\x8f\x01\x14\x1b\n\r\n\x05\x06\0\x02\t\x03\x12\x04\ + \x8f\x01&B\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\x90\x01\x04\x93\x01\x06\n\ + \x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\x90\x01\x04\x93\x01\x06\n\ + \x0f\n\x05\x06\0\x02\t\x04\x12\x06\x94\x01\x04\x97\x01\x06\n\x11\n\x07\ + \x06\0\x02\t\x04\x99\x08\x12\x06\x94\x01\x04\x97\x01\x06\n5\n\x04\x06\0\ + \x02\n\x12\x06\x9b\x01\x02\xa0\x01\x03\x1a%\x20Deletes\x20a\x20cluster\ + \x20from\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\x9b\x01\ + \x06\x13\n\r\n\x05\x06\0\x02\n\x02\x12\x04\x9b\x01\x14(\n\r\n\x05\x06\0\ + \x02\n\x03\x12\x04\x9b\x013H\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\r\n\x05\x06\0\x02\n\x04\x12\x04\x9f\x01\x042\n\x10\n\ + \x08\x06\0\x02\n\x04\x9b\x08\0\x12\x04\x9f\x01\x042\n<\n\x04\x06\0\x02\ + \x0b\x12\x06\xa3\x01\x02\xa9\x01\x03\x1a,\x20Creates\x20an\x20app\x20pro\ + file\x20within\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\ + \xa3\x01\x06\x16\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xa3\x01\x17.\n\r\n\ + \x05\x06\0\x02\x0b\x03\x12\x04\xa3\x019C\n\x0f\n\x05\x06\0\x02\x0b\x04\ + \x12\x06\xa4\x01\x04\xa7\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\ + \"\x12\x06\xa4\x01\x04\xa7\x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\ + \xa8\x01\x04O\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\xa8\x01\ + \x04O\n8\n\x04\x06\0\x02\x0c\x12\x06\xac\x01\x02\xb1\x01\x03\x1a(\x20Get\ + s\x20information\x20about\x20an\x20app\x20profile.\n\n\r\n\x05\x06\0\x02\ + \x0c\x01\x12\x04\xac\x01\x06\x13\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xac\ + \x01\x14(\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xac\x013=\n\x0f\n\x05\x06\ + \0\x02\x0c\x04\x12\x06\xad\x01\x04\xaf\x01\x06\n\x13\n\t\x06\0\x02\x0c\ + \x04\xb0\xca\xbc\"\x12\x06\xad\x01\x04\xaf\x01\x06\n\r\n\x05\x06\0\x02\ + \x0c\x04\x12\x04\xb0\x01\x042\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\ + \x12\x04\xb0\x01\x042\nF\n\x04\x06\0\x02\r\x12\x06\xb4\x01\x02\xb9\x01\ + \x03\x1a6\x20Lists\x20information\x20about\x20app\x20profiles\x20in\x20a\ + n\x20instance.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\xb4\x01\x06\x15\n\r\n\ + \x05\x06\0\x02\r\x02\x12\x04\xb4\x01\x16,\n\r\n\x05\x06\0\x02\r\x03\x12\ + \x04\xb4\x017N\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xb5\x01\x04\xb7\x01\ + \x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\xb5\x01\x04\xb7\x01\ + \x06\n\r\n\x05\x06\0\x02\r\x04\x12\x04\xb8\x01\x044\n\x10\n\x08\x06\0\ + \x02\r\x04\x9b\x08\0\x12\x04\xb8\x01\x044\n<\n\x04\x06\0\x02\x0e\x12\x06\ + \xbc\x01\x02\xc6\x01\x03\x1a,\x20Updates\x20an\x20app\x20profile\x20with\ + in\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x0e\x01\x12\x04\xbc\x01\x06\ + \x16\n\r\n\x05\x06\0\x02\x0e\x02\x12\x04\xbc\x01\x17.\n\r\n\x05\x06\0\ + \x02\x0e\x03\x12\x04\xbc\x019U\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xbd\ + \x01\x04\xc0\x01\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\ + \xbd\x01\x04\xc0\x01\x06\n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\xc1\x01\x04\ + E\n\x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\xc1\x01\x04E\n\x0f\n\ + \x05\x06\0\x02\x0e\x04\x12\x06\xc2\x01\x04\xc5\x01\x06\n\x11\n\x07\x06\0\ + \x02\x0e\x04\x99\x08\x12\x06\xc2\x01\x04\xc5\x01\x06\n:\n\x04\x06\0\x02\ + \x0f\x12\x06\xc9\x01\x02\xce\x01\x03\x1a*\x20Deletes\x20an\x20app\x20pro\ + file\x20from\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x0f\x01\x12\x04\ + \xc9\x01\x06\x16\n\r\n\x05\x06\0\x02\x0f\x02\x12\x04\xc9\x01\x17.\n\r\n\ + \x05\x06\0\x02\x0f\x03\x12\x04\xc9\x019N\n\x0f\n\x05\x06\0\x02\x0f\x04\ + \x12\x06\xca\x01\x04\xcc\x01\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\xca\xbc\ + \"\x12\x06\xca\x01\x04\xcc\x01\x06\n\r\n\x05\x06\0\x02\x0f\x04\x12\x04\ + \xcd\x01\x042\n\x10\n\x08\x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\xcd\x01\ + \x042\n\x9a\x01\n\x04\x06\0\x02\x10\x12\x06\xd2\x01\x02\xd8\x01\x03\x1a\ + \x89\x01\x20Gets\x20the\x20access\x20control\x20policy\x20for\x20an\x20i\ + nstance\x20resource.\x20Returns\x20an\x20empty\n\x20policy\x20if\x20an\ + \x20instance\x20exists\x20but\x20does\x20not\x20have\x20a\x20policy\x20s\ + et.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\x04\xd2\x01\x06\x12\n\r\n\x05\x06\ + \0\x02\x10\x02\x12\x04\xd2\x01\x134\n\r\n\x05\x06\0\x02\x10\x03\x12\x04\ + \xd2\x01?S\n\x0f\n\x05\x06\0\x02\x10\x04\x12\x06\xd3\x01\x04\xd6\x01\x06\ + \n\x13\n\t\x06\0\x02\x10\x04\xb0\xca\xbc\"\x12\x06\xd3\x01\x04\xd6\x01\ + \x06\n\r\n\x05\x06\0\x02\x10\x04\x12\x04\xd7\x01\x046\n\x10\n\x08\x06\0\ + \x02\x10\x04\x9b\x08\0\x12\x04\xd7\x01\x046\nh\n\x04\x06\0\x02\x11\x12\ + \x06\xdc\x01\x02\xe2\x01\x03\x1aX\x20Sets\x20the\x20access\x20control\ + \x20policy\x20on\x20an\x20instance\x20resource.\x20Replaces\x20any\n\x20\ + existing\x20policy.\n\n\r\n\x05\x06\0\x02\x11\x01\x12\x04\xdc\x01\x06\ + \x12\n\r\n\x05\x06\0\x02\x11\x02\x12\x04\xdc\x01\x134\n\r\n\x05\x06\0\ + \x02\x11\x03\x12\x04\xdc\x01?S\n\x0f\n\x05\x06\0\x02\x11\x04\x12\x06\xdd\ + \x01\x04\xe0\x01\x06\n\x13\n\t\x06\0\x02\x11\x04\xb0\xca\xbc\"\x12\x06\ + \xdd\x01\x04\xe0\x01\x06\n\r\n\x05\x06\0\x02\x11\x04\x12\x04\xe1\x01\x04\ + =\n\x10\n\x08\x06\0\x02\x11\x04\x9b\x08\0\x12\x04\xe1\x01\x04=\n]\n\x04\ + \x06\0\x02\x12\x12\x06\xe5\x01\x02\xeb\x01\x03\x1aM\x20Returns\x20permis\ + sions\x20that\x20the\x20caller\x20has\x20on\x20the\x20specified\x20insta\ + nce\x20resource.\n\n\r\n\x05\x06\0\x02\x12\x01\x12\x04\xe5\x01\x06\x18\n\ + \r\n\x05\x06\0\x02\x12\x02\x12\x04\xe5\x01\x19@\n\r\n\x05\x06\0\x02\x12\ + \x03\x12\x04\xe5\x01Ks\n\x0f\n\x05\x06\0\x02\x12\x04\x12\x06\xe6\x01\x04\ + \xe9\x01\x06\n\x13\n\t\x06\0\x02\x12\x04\xb0\xca\xbc\"\x12\x06\xe6\x01\ + \x04\xe9\x01\x06\n\r\n\x05\x06\0\x02\x12\x04\x12\x04\xea\x01\x04B\n\x10\ + \n\x08\x06\0\x02\x12\x04\x9b\x08\0\x12\x04\xea\x01\x04B\nI\n\x02\x04\0\ + \x12\x06\xef\x01\0\x88\x02\x01\x1a;\x20Request\x20message\x20for\x20Bigt\ + ableInstanceAdmin.CreateInstance.\n\n\x0b\n\x03\x04\0\x01\x12\x04\xef\ + \x01\x08\x1d\n\x8d\x01\n\x04\x04\0\x02\0\x12\x06\xf2\x01\x02\xf7\x01\x04\ + \x1a}\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20project\x20i\ + n\x20which\x20to\x20create\x20the\x20new\x20instance.\n\x20Values\x20are\ + \x20of\x20the\x20form\x20`projects/{project}`.\n\n\x0f\n\x05\x04\0\x02\0\ + \x04\x12\x06\xf2\x01\x02\xef\x01\x1f\n\r\n\x05\x04\0\x02\0\x05\x12\x04\ + \xf2\x01\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xf2\x01\t\x0f\n\r\n\ + \x05\x04\0\x02\0\x03\x12\x04\xf2\x01\x12\x13\n\x0f\n\x05\x04\0\x02\0\x08\ + \x12\x06\xf2\x01\x14\xf7\x01\x03\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\ + \x12\x04\xf3\x01\x04*\n\x11\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x06\xf4\ + \x01\x04\xf6\x01\x05\n\xb4\x01\n\x04\x04\0\x02\x01\x12\x04\xfc\x01\x02B\ + \x1a\xa5\x01\x20Required.\x20The\x20ID\x20to\x20be\x20used\x20when\x20re\ + ferring\x20to\x20the\x20new\x20instance\x20within\x20its\x20project,\n\ + \x20e.g.,\x20just\x20`myinstance`\x20rather\x20than\n\x20`projects/mypro\ + ject/instances/myinstance`.\n\n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\xfc\ + \x01\x02\xf7\x01\x04\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\xfc\x01\x02\x08\ + \n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xfc\x01\t\x14\n\r\n\x05\x04\0\x02\ + \x01\x03\x12\x04\xfc\x01\x17\x18\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\xfc\ + \x01\x19A\n\x10\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x04\xfc\x01\x1a@\n\ + a\n\x04\x04\0\x02\x02\x12\x04\x80\x02\x02A\x1aS\x20Required.\x20The\x20i\ + nstance\x20to\x20create.\n\x20Fields\x20marked\x20`OutputOnly`\x20must\ + \x20be\x20left\x20blank.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\x80\x02\ + \x02\xfc\x01B\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x80\x02\x02\n\n\r\n\ + \x05\x04\0\x02\x02\x01\x12\x04\x80\x02\x0b\x13\n\r\n\x05\x04\0\x02\x02\ + \x03\x12\x04\x80\x02\x16\x17\n\r\n\x05\x04\0\x02\x02\x08\x12\x04\x80\x02\ + \x18@\n\x10\n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x04\x80\x02\x19?\n\xaf\ + \x02\n\x04\x04\0\x02\x03\x12\x04\x87\x02\x02M\x1a\xa0\x02\x20Required.\ + \x20The\x20clusters\x20to\x20be\x20created\x20within\x20the\x20instance,\ + \x20mapped\x20by\x20desired\n\x20cluster\x20ID,\x20e.g.,\x20just\x20`myc\ + luster`\x20rather\x20than\n\x20`projects/myproject/instances/myinstance/\ + clusters/mycluster`.\n\x20Fields\x20marked\x20`OutputOnly`\x20must\x20be\ + \x20left\x20blank.\n\x20Currently,\x20at\x20most\x20four\x20clusters\x20\ + can\x20be\x20specified.\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\x87\x02\ + \x02\x80\x02A\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x87\x02\x02\x16\n\r\n\ + \x05\x04\0\x02\x03\x01\x12\x04\x87\x02\x17\x1f\n\r\n\x05\x04\0\x02\x03\ + \x03\x12\x04\x87\x02\"#\n\r\n\x05\x04\0\x02\x03\x08\x12\x04\x87\x02$L\n\ + \x10\n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\x04\x87\x02%K\nF\n\x02\x04\ + \x01\x12\x06\x8b\x02\0\x94\x02\x01\x1a8\x20Request\x20message\x20for\x20\ + BigtableInstanceAdmin.GetInstance.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x8b\ + \x02\x08\x1a\n\x89\x01\n\x04\x04\x01\x02\0\x12\x06\x8e\x02\x02\x93\x02\ + \x04\x1ay\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20requeste\ + d\x20instance.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{pro\ + ject}/instances/{instance}`.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\x8e\ + \x02\x02\x8b\x02\x1c\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x8e\x02\x02\x08\ + \n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x8e\x02\t\r\n\r\n\x05\x04\x01\x02\0\ + \x03\x12\x04\x8e\x02\x10\x11\n\x0f\n\x05\x04\x01\x02\0\x08\x12\x06\x8e\ + \x02\x12\x93\x02\x03\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x04\x8f\ + \x02\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x06\x90\x02\x04\x92\ + \x02\x05\nH\n\x02\x04\x02\x12\x06\x97\x02\0\xa3\x02\x01\x1a:\x20Request\ + \x20message\x20for\x20BigtableInstanceAdmin.ListInstances.\n\n\x0b\n\x03\ + \x04\x02\x01\x12\x04\x97\x02\x08\x1c\n\x95\x01\n\x04\x04\x02\x02\0\x12\ + \x06\x9a\x02\x02\x9f\x02\x04\x1a\x84\x01\x20Required.\x20The\x20unique\ + \x20name\x20of\x20the\x20project\x20for\x20which\x20a\x20list\x20of\x20i\ + nstances\x20is\x20requested.\n\x20Values\x20are\x20of\x20the\x20form\x20\ + `projects/{project}`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\x9a\x02\ + \x02\x97\x02\x1e\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\x0f\n\r\n\x05\x04\x02\x02\0\ + \x03\x12\x04\x9a\x02\x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\x9a\ + \x02\x14\x9f\x02\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\x9b\ + \x02\x04*\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\x9c\x02\x04\x9e\ + \x02\x05\n=\n\x04\x04\x02\x02\x01\x12\x04\xa2\x02\x02\x18\x1a/\x20DEPREC\ + ATED:\x20This\x20field\x20is\x20unused\x20and\x20ignored.\n\n\x0f\n\x05\ + \x04\x02\x02\x01\x04\x12\x06\xa2\x02\x02\x9f\x02\x04\n\r\n\x05\x04\x02\ + \x02\x01\x05\x12\x04\xa2\x02\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\ + \x04\xa2\x02\t\x13\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa2\x02\x16\x17\ + \nI\n\x02\x04\x03\x12\x06\xa6\x02\0\xb4\x02\x01\x1a;\x20Response\x20mess\ + age\x20for\x20BigtableInstanceAdmin.ListInstances.\n\n\x0b\n\x03\x04\x03\ + \x01\x12\x04\xa6\x02\x08\x1d\n0\n\x04\x04\x03\x02\0\x12\x04\xa8\x02\x02\ + \"\x1a\"\x20The\x20list\x20of\x20requested\x20instances.\n\n\r\n\x05\x04\ + \x03\x02\0\x04\x12\x04\xa8\x02\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\ + \xa8\x02\x0b\x13\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xa8\x02\x14\x1d\n\r\ + \n\x05\x04\x03\x02\0\x03\x12\x04\xa8\x02\x20!\n\x95\x03\n\x04\x04\x03\ + \x02\x01\x12\x04\xb0\x02\x02'\x1a\x86\x03\x20Locations\x20from\x20which\ + \x20Instance\x20information\x20could\x20not\x20be\x20retrieved,\n\x20due\ + \x20to\x20an\x20outage\x20or\x20some\x20other\x20transient\x20condition.\ + \n\x20Instances\x20whose\x20Clusters\x20are\x20all\x20in\x20one\x20of\ + \x20the\x20failed\x20locations\n\x20may\x20be\x20missing\x20from\x20`ins\ + tances`,\x20and\x20Instances\x20with\x20at\x20least\x20one\n\x20Cluster\ + \x20in\x20a\x20failed\x20location\x20may\x20only\x20have\x20partial\x20i\ + nformation\x20returned.\n\x20Values\x20are\x20of\x20the\x20form\x20`proj\ + ects//locations/`\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\ + \x04\xb0\x02\x02\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xb0\x02\x0b\x11\ + \n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xb0\x02\x12\"\n\r\n\x05\x04\x03\ + \x02\x01\x03\x12\x04\xb0\x02%&\n=\n\x04\x04\x03\x02\x02\x12\x04\xb3\x02\ + \x02\x1d\x1a/\x20DEPRECATED:\x20This\x20field\x20is\x20unused\x20and\x20\ + ignored.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xb3\x02\x02\xb0\x02'\ + \n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xb3\x02\x02\x08\n\r\n\x05\x04\x03\ + \x02\x02\x01\x12\x04\xb3\x02\t\x18\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\ + \xb3\x02\x1b\x1c\nP\n\x02\x04\x04\x12\x06\xb7\x02\0\xbe\x02\x01\x1aB\x20\ + Request\x20message\x20for\x20BigtableInstanceAdmin.PartialUpdateInstance\ + .\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xb7\x02\x08$\nX\n\x04\x04\x04\x02\0\ + \x12\x04\xb9\x02\x02A\x1aJ\x20Required.\x20The\x20Instance\x20which\x20w\ + ill\x20(partially)\x20replace\x20the\x20current\x20value.\n\n\x0f\n\x05\ + \x04\x04\x02\0\x04\x12\x06\xb9\x02\x02\xb7\x02&\n\r\n\x05\x04\x04\x02\0\ + \x06\x12\x04\xb9\x02\x02\n\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xb9\x02\ + \x0b\x13\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xb9\x02\x16\x17\n\r\n\x05\ + \x04\x04\x02\0\x08\x12\x04\xb9\x02\x18@\n\x10\n\x08\x04\x04\x02\0\x08\ + \x9c\x08\0\x12\x04\xb9\x02\x19?\nj\n\x04\x04\x04\x02\x01\x12\x04\xbd\x02\ + \x02U\x1a\\\x20Required.\x20The\x20subset\x20of\x20Instance\x20fields\ + \x20which\x20should\x20be\x20replaced.\n\x20Must\x20be\x20explicitly\x20\ + set.\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\xbd\x02\x02\xb9\x02A\n\r\ + \n\x05\x04\x04\x02\x01\x06\x12\x04\xbd\x02\x02\x1b\n\r\n\x05\x04\x04\x02\ + \x01\x01\x12\x04\xbd\x02\x1c'\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xbd\ + \x02*+\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xbd\x02,T\n\x10\n\x08\x04\ + \x04\x02\x01\x08\x9c\x08\0\x12\x04\xbd\x02-S\nI\n\x02\x04\x05\x12\x06\ + \xc1\x02\0\xca\x02\x01\x1a;\x20Request\x20message\x20for\x20BigtableInst\ + anceAdmin.DeleteInstance.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xc1\x02\x08\ + \x1d\n\x8d\x01\n\x04\x04\x05\x02\0\x12\x06\xc4\x02\x02\xc9\x02\x04\x1a}\ + \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20instance\x20to\ + \x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects/\ + {project}/instances/{instance}`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\ + \xc4\x02\x02\xc1\x02\x1f\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xc4\x02\x02\ + \x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xc4\x02\t\r\n\r\n\x05\x04\x05\ + \x02\0\x03\x12\x04\xc4\x02\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\ + \xc4\x02\x12\xc9\x02\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\ + \xc5\x02\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xc6\x02\x04\ + \xc8\x02\x05\nH\n\x02\x04\x06\x12\x06\xcd\x02\0\xe0\x02\x01\x1a:\x20Requ\ + est\x20message\x20for\x20BigtableInstanceAdmin.CreateCluster.\n\n\x0b\n\ + \x03\x04\x06\x01\x12\x04\xcd\x02\x08\x1c\n\xa4\x01\n\x04\x04\x06\x02\0\ + \x12\x06\xd1\x02\x02\xd6\x02\x04\x1a\x93\x01\x20Required.\x20The\x20uniq\ + ue\x20name\x20of\x20the\x20instance\x20in\x20which\x20to\x20create\x20th\ + e\x20new\x20cluster.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`proje\ + cts/{project}/instances/{instance}`.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\ + \x06\xd1\x02\x02\xcd\x02\x1e\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xd1\x02\ + \x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xd1\x02\t\x0f\n\r\n\x05\x04\ + \x06\x02\0\x03\x12\x04\xd1\x02\x12\x13\n\x0f\n\x05\x04\x06\x02\0\x08\x12\ + \x06\xd1\x02\x14\xd6\x02\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\ + \x04\xd2\x02\x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xd3\x02\ + \x04\xd5\x02\x05\n\xc6\x01\n\x04\x04\x06\x02\x01\x12\x04\xdb\x02\x02A\ + \x1a\xb7\x01\x20Required.\x20The\x20ID\x20to\x20be\x20used\x20when\x20re\ + ferring\x20to\x20the\x20new\x20cluster\x20within\x20its\x20instance,\n\ + \x20e.g.,\x20just\x20`mycluster`\x20rather\x20than\n\x20`projects/myproj\ + ect/instances/myinstance/clusters/mycluster`.\n\n\x0f\n\x05\x04\x06\x02\ + \x01\x04\x12\x06\xdb\x02\x02\xd6\x02\x04\n\r\n\x05\x04\x06\x02\x01\x05\ + \x12\x04\xdb\x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xdb\x02\t\ + \x13\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xdb\x02\x16\x17\n\r\n\x05\x04\ + \x06\x02\x01\x08\x12\x04\xdb\x02\x18@\n\x10\n\x08\x04\x06\x02\x01\x08\ + \x9c\x08\0\x12\x04\xdb\x02\x19?\nd\n\x04\x04\x06\x02\x02\x12\x04\xdf\x02\ + \x02?\x1aV\x20Required.\x20The\x20cluster\x20to\x20be\x20created.\n\x20F\ + ields\x20marked\x20`OutputOnly`\x20must\x20be\x20left\x20blank.\n\n\x0f\ + \n\x05\x04\x06\x02\x02\x04\x12\x06\xdf\x02\x02\xdb\x02A\n\r\n\x05\x04\ + \x06\x02\x02\x06\x12\x04\xdf\x02\x02\t\n\r\n\x05\x04\x06\x02\x02\x01\x12\ + \x04\xdf\x02\n\x11\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\xdf\x02\x14\x15\ + \n\r\n\x05\x04\x06\x02\x02\x08\x12\x04\xdf\x02\x16>\n\x10\n\x08\x04\x06\ + \x02\x02\x08\x9c\x08\0\x12\x04\xdf\x02\x17=\nE\n\x02\x04\x07\x12\x06\xe3\ + \x02\0\xec\x02\x01\x1a7\x20Request\x20message\x20for\x20BigtableInstance\ + Admin.GetCluster.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xe3\x02\x08\x19\n\ + \x9c\x01\n\x04\x04\x07\x02\0\x12\x06\xe6\x02\x02\xeb\x02\x04\x1a\x8b\x01\ + \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20requested\x20clus\ + ter.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/inst\ + ances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\x07\x02\0\x04\ + \x12\x06\xe6\x02\x02\xe3\x02\x1b\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\r\n\r\n\x05\ + \x04\x07\x02\0\x03\x12\x04\xe6\x02\x10\x11\n\x0f\n\x05\x04\x07\x02\0\x08\ + \x12\x06\xe6\x02\x12\xeb\x02\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\ + \x12\x04\xe7\x02\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xe8\ + \x02\x04\xea\x02\x05\nG\n\x02\x04\x08\x12\x06\xef\x02\0\xfd\x02\x01\x1a9\ + \x20Request\x20message\x20for\x20BigtableInstanceAdmin.ListClusters.\n\n\ + \x0b\n\x03\x04\x08\x01\x12\x04\xef\x02\x08\x1b\n\x9c\x02\n\x04\x04\x08\ + \x02\0\x12\x06\xf4\x02\x02\xf9\x02\x04\x1a\x8b\x02\x20Required.\x20The\ + \x20unique\x20name\x20of\x20the\x20instance\x20for\x20which\x20a\x20list\ + \x20of\x20clusters\x20is\x20requested.\n\x20Values\x20are\x20of\x20the\ + \x20form\x20`projects/{project}/instances/{instance}`.\n\x20Use\x20`{ins\ + tance}\x20=\x20'-'`\x20to\x20list\x20Clusters\x20for\x20all\x20Instances\ + \x20in\x20a\x20project,\n\x20e.g.,\x20`projects/myproject/instances/-`.\ + \n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xf4\x02\x02\xef\x02\x1d\n\r\n\ + \x05\x04\x08\x02\0\x05\x12\x04\xf4\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\ + \x01\x12\x04\xf4\x02\t\x0f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xf4\x02\ + \x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xf4\x02\x14\xf9\x02\x03\n\ + \x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xf5\x02\x04*\n\x11\n\x07\ + \x04\x08\x02\0\x08\x9f\x08\x12\x06\xf6\x02\x04\xf8\x02\x05\n=\n\x04\x04\ + \x08\x02\x01\x12\x04\xfc\x02\x02\x18\x1a/\x20DEPRECATED:\x20This\x20fiel\ + d\x20is\x20unused\x20and\x20ignored.\n\n\x0f\n\x05\x04\x08\x02\x01\x04\ + \x12\x06\xfc\x02\x02\xf9\x02\x04\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\ + \xfc\x02\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xfc\x02\t\x13\n\r\ + \n\x05\x04\x08\x02\x01\x03\x12\x04\xfc\x02\x16\x17\nH\n\x02\x04\t\x12\ + \x06\x80\x03\0\x8d\x03\x01\x1a:\x20Response\x20message\x20for\x20Bigtabl\ + eInstanceAdmin.ListClusters.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x80\x03\x08\ + \x1c\n/\n\x04\x04\t\x02\0\x12\x04\x82\x03\x02\x20\x1a!\x20The\x20list\ + \x20of\x20requested\x20clusters.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\x82\ + \x03\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\x82\x03\x0b\x12\n\r\n\x05\ + \x04\t\x02\0\x01\x12\x04\x82\x03\x13\x1b\n\r\n\x05\x04\t\x02\0\x03\x12\ + \x04\x82\x03\x1e\x1f\n\xb6\x02\n\x04\x04\t\x02\x01\x12\x04\x89\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\x89\x03\x02\n\n\r\n\x05\x04\t\ + \x02\x01\x05\x12\x04\x89\x03\x0b\x11\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\ + \x89\x03\x12\"\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x89\x03%&\n=\n\x04\ + \x04\t\x02\x02\x12\x04\x8c\x03\x02\x1d\x1a/\x20DEPRECATED:\x20This\x20fi\ + eld\x20is\x20unused\x20and\x20ignored.\n\n\x0f\n\x05\x04\t\x02\x02\x04\ + \x12\x06\x8c\x03\x02\x89\x03'\n\r\n\x05\x04\t\x02\x02\x05\x12\x04\x8c\ + \x03\x02\x08\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\x8c\x03\t\x18\n\r\n\x05\ + \x04\t\x02\x02\x03\x12\x04\x8c\x03\x1b\x1c\nH\n\x02\x04\n\x12\x06\x90\ + \x03\0\x99\x03\x01\x1a:\x20Request\x20message\x20for\x20BigtableInstance\ + Admin.DeleteCluster.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x90\x03\x08\x1c\n\ + \xa0\x01\n\x04\x04\n\x02\0\x12\x06\x93\x03\x02\x98\x03\x04\x1a\x8f\x01\ + \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20to\x20\ + be\x20deleted.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{pro\ + ject}/instances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\n\x02\ + \0\x04\x12\x06\x93\x03\x02\x90\x03\x1e\n\r\n\x05\x04\n\x02\0\x05\x12\x04\ + \x93\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x93\x03\t\r\n\r\n\x05\ + \x04\n\x02\0\x03\x12\x04\x93\x03\x10\x11\n\x0f\n\x05\x04\n\x02\0\x08\x12\ + \x06\x93\x03\x12\x98\x03\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\ + \x04\x94\x03\x04*\n\x11\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x06\x95\x03\ + \x04\x97\x03\x05\nJ\n\x02\x04\x0b\x12\x06\x9c\x03\0\xa5\x03\x01\x1a<\x20\ + The\x20metadata\x20for\x20the\x20Operation\x20returned\x20by\x20CreateIn\ + stance.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x9c\x03\x08\x1e\nZ\n\x04\x04\ + \x0b\x02\0\x12\x04\x9e\x03\x02-\x1aL\x20The\x20request\x20that\x20prompt\ + ed\x20the\x20initiation\x20of\x20this\x20CreateInstance\x20operation.\n\ + \n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\x9e\x03\x02\x9c\x03\x20\n\r\n\x05\ + \x04\x0b\x02\0\x06\x12\x04\x9e\x03\x02\x17\n\r\n\x05\x04\x0b\x02\0\x01\ + \x12\x04\x9e\x03\x18(\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x9e\x03+,\nD\n\ + \x04\x04\x0b\x02\x01\x12\x04\xa1\x03\x02-\x1a6\x20The\x20time\x20at\x20w\ + hich\x20the\x20original\x20request\x20was\x20received.\n\n\x0f\n\x05\x04\ + \x0b\x02\x01\x04\x12\x06\xa1\x03\x02\x9e\x03-\n\r\n\x05\x04\x0b\x02\x01\ + \x06\x12\x04\xa1\x03\x02\x1b\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xa1\ + \x03\x1c(\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xa1\x03+,\nU\n\x04\x04\ + \x0b\x02\x02\x12\x04\xa4\x03\x02,\x1aG\x20The\x20time\x20at\x20which\x20\ + the\x20operation\x20failed\x20or\x20was\x20completed\x20successfully.\n\ + \n\x0f\n\x05\x04\x0b\x02\x02\x04\x12\x06\xa4\x03\x02\xa1\x03-\n\r\n\x05\ + \x04\x0b\x02\x02\x06\x12\x04\xa4\x03\x02\x1b\n\r\n\x05\x04\x0b\x02\x02\ + \x01\x12\x04\xa4\x03\x1c'\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xa4\x03*\ + +\nJ\n\x02\x04\x0c\x12\x06\xa8\x03\0\xb1\x03\x01\x1a<\x20The\x20metadata\ + \x20for\x20the\x20Operation\x20returned\x20by\x20UpdateInstance.\n\n\x0b\ + \n\x03\x04\x0c\x01\x12\x04\xa8\x03\x08\x1e\nZ\n\x04\x04\x0c\x02\0\x12\ + \x04\xaa\x03\x024\x1aL\x20The\x20request\x20that\x20prompted\x20the\x20i\ + nitiation\x20of\x20this\x20UpdateInstance\x20operation.\n\n\x0f\n\x05\ + \x04\x0c\x02\0\x04\x12\x06\xaa\x03\x02\xa8\x03\x20\n\r\n\x05\x04\x0c\x02\ + \0\x06\x12\x04\xaa\x03\x02\x1e\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xaa\ + \x03\x1f/\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xaa\x0323\nD\n\x04\x04\x0c\ + \x02\x01\x12\x04\xad\x03\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\ + \x20original\x20request\x20was\x20received.\n\n\x0f\n\x05\x04\x0c\x02\ + \x01\x04\x12\x06\xad\x03\x02\xaa\x034\n\r\n\x05\x04\x0c\x02\x01\x06\x12\ + \x04\xad\x03\x02\x1b\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xad\x03\x1c(\ + \n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xad\x03+,\nU\n\x04\x04\x0c\x02\ + \x02\x12\x04\xb0\x03\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20o\ + peration\x20failed\x20or\x20was\x20completed\x20successfully.\n\n\x0f\n\ + \x05\x04\x0c\x02\x02\x04\x12\x06\xb0\x03\x02\xad\x03-\n\r\n\x05\x04\x0c\ + \x02\x02\x06\x12\x04\xb0\x03\x02\x1b\n\r\n\x05\x04\x0c\x02\x02\x01\x12\ + \x04\xb0\x03\x1c'\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xb0\x03*+\nI\n\ + \x02\x04\r\x12\x06\xb4\x03\0\xbd\x03\x01\x1a;\x20The\x20metadata\x20for\ + \x20the\x20Operation\x20returned\x20by\x20CreateCluster.\n\n\x0b\n\x03\ + \x04\r\x01\x12\x04\xb4\x03\x08\x1d\nY\n\x04\x04\r\x02\0\x12\x04\xb6\x03\ + \x02,\x1aK\x20The\x20request\x20that\x20prompted\x20the\x20initiation\ + \x20of\x20this\x20CreateCluster\x20operation.\n\n\x0f\n\x05\x04\r\x02\0\ + \x04\x12\x06\xb6\x03\x02\xb4\x03\x1f\n\r\n\x05\x04\r\x02\0\x06\x12\x04\ + \xb6\x03\x02\x16\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xb6\x03\x17'\n\r\n\ + \x05\x04\r\x02\0\x03\x12\x04\xb6\x03*+\nD\n\x04\x04\r\x02\x01\x12\x04\ + \xb9\x03\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20original\x20r\ + equest\x20was\x20received.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xb9\ + \x03\x02\xb6\x03,\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xb9\x03\x02\x1b\n\ + \r\n\x05\x04\r\x02\x01\x01\x12\x04\xb9\x03\x1c(\n\r\n\x05\x04\r\x02\x01\ + \x03\x12\x04\xb9\x03+,\nU\n\x04\x04\r\x02\x02\x12\x04\xbc\x03\x02,\x1aG\ + \x20The\x20time\x20at\x20which\x20the\x20operation\x20failed\x20or\x20wa\ + s\x20completed\x20successfully.\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\ + \xbc\x03\x02\xb9\x03-\n\r\n\x05\x04\r\x02\x02\x06\x12\x04\xbc\x03\x02\ + \x1b\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xbc\x03\x1c'\n\r\n\x05\x04\r\ + \x02\x02\x03\x12\x04\xbc\x03*+\nI\n\x02\x04\x0e\x12\x06\xc0\x03\0\xc9\ + \x03\x01\x1a;\x20The\x20metadata\x20for\x20the\x20Operation\x20returned\ + \x20by\x20UpdateCluster.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xc0\x03\x08\ + \x1d\nY\n\x04\x04\x0e\x02\0\x12\x04\xc2\x03\x02\x1f\x1aK\x20The\x20reque\ + st\x20that\x20prompted\x20the\x20initiation\x20of\x20this\x20UpdateClust\ + er\x20operation.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xc2\x03\x02\xc0\ + \x03\x1f\n\r\n\x05\x04\x0e\x02\0\x06\x12\x04\xc2\x03\x02\t\n\r\n\x05\x04\ + \x0e\x02\0\x01\x12\x04\xc2\x03\n\x1a\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\ + \xc2\x03\x1d\x1e\nD\n\x04\x04\x0e\x02\x01\x12\x04\xc5\x03\x02-\x1a6\x20T\ + he\x20time\x20at\x20which\x20the\x20original\x20request\x20was\x20receiv\ + ed.\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\x12\x06\xc5\x03\x02\xc2\x03\x1f\n\ + \r\n\x05\x04\x0e\x02\x01\x06\x12\x04\xc5\x03\x02\x1b\n\r\n\x05\x04\x0e\ + \x02\x01\x01\x12\x04\xc5\x03\x1c(\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\ + \xc5\x03+,\nU\n\x04\x04\x0e\x02\x02\x12\x04\xc8\x03\x02,\x1aG\x20The\x20\ + time\x20at\x20which\x20the\x20operation\x20failed\x20or\x20was\x20comple\ + ted\x20successfully.\n\n\x0f\n\x05\x04\x0e\x02\x02\x04\x12\x06\xc8\x03\ + \x02\xc5\x03-\n\r\n\x05\x04\x0e\x02\x02\x06\x12\x04\xc8\x03\x02\x1b\n\r\ + \n\x05\x04\x0e\x02\x02\x01\x12\x04\xc8\x03\x1c'\n\r\n\x05\x04\x0e\x02\ + \x02\x03\x12\x04\xc8\x03*+\nK\n\x02\x04\x0f\x12\x06\xcc\x03\0\xe2\x03\ + \x01\x1a=\x20Request\x20message\x20for\x20BigtableInstanceAdmin.CreateAp\ + pProfile.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xcc\x03\x08\x1f\n\xa8\x01\n\ + \x04\x04\x0f\x02\0\x12\x06\xd0\x03\x02\xd5\x03\x04\x1a\x97\x01\x20Requir\ + ed.\x20The\x20unique\x20name\x20of\x20the\x20instance\x20in\x20which\x20\ + to\x20create\x20the\x20new\x20app\x20profile.\n\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects/{project}/instances/{instance}`.\n\n\x0f\ + \n\x05\x04\x0f\x02\0\x04\x12\x06\xd0\x03\x02\xcc\x03!\n\r\n\x05\x04\x0f\ + \x02\0\x05\x12\x04\xd0\x03\x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\ + \xd0\x03\t\x0f\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xd0\x03\x12\x13\n\x0f\ + \n\x05\x04\x0f\x02\0\x08\x12\x06\xd0\x03\x14\xd5\x03\x03\n\x10\n\x08\x04\ + \x0f\x02\0\x08\x9c\x08\0\x12\x04\xd1\x03\x04*\n\x11\n\x07\x04\x0f\x02\0\ + \x08\x9f\x08\x12\x06\xd2\x03\x04\xd4\x03\x05\n\xcd\x01\n\x04\x04\x0f\x02\ + \x01\x12\x04\xda\x03\x02E\x1a\xbe\x01\x20Required.\x20The\x20ID\x20to\ + \x20be\x20used\x20when\x20referring\x20to\x20the\x20new\x20app\x20profil\ + e\x20within\x20its\n\x20instance,\x20e.g.,\x20just\x20`myprofile`\x20rat\ + her\x20than\n\x20`projects/myproject/instances/myinstance/appProfiles/my\ + profile`.\n\n\x0f\n\x05\x04\x0f\x02\x01\x04\x12\x06\xda\x03\x02\xd5\x03\ + \x04\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\xda\x03\x02\x08\n\r\n\x05\x04\ + \x0f\x02\x01\x01\x12\x04\xda\x03\t\x17\n\r\n\x05\x04\x0f\x02\x01\x03\x12\ + \x04\xda\x03\x1a\x1b\n\r\n\x05\x04\x0f\x02\x01\x08\x12\x04\xda\x03\x1cD\ + \n\x10\n\x08\x04\x0f\x02\x01\x08\x9c\x08\0\x12\x04\xda\x03\x1dC\ne\n\x04\ + \x04\x0f\x02\x02\x12\x04\xde\x03\x02F\x1aW\x20Required.\x20The\x20app\ + \x20profile\x20to\x20be\x20created.\n\x20Fields\x20marked\x20`OutputOnly\ + `\x20will\x20be\x20ignored.\n\n\x0f\n\x05\x04\x0f\x02\x02\x04\x12\x06\ + \xde\x03\x02\xda\x03E\n\r\n\x05\x04\x0f\x02\x02\x06\x12\x04\xde\x03\x02\ + \x0c\n\r\n\x05\x04\x0f\x02\x02\x01\x12\x04\xde\x03\r\x18\n\r\n\x05\x04\ + \x0f\x02\x02\x03\x12\x04\xde\x03\x1b\x1c\n\r\n\x05\x04\x0f\x02\x02\x08\ + \x12\x04\xde\x03\x1dE\n\x10\n\x08\x04\x0f\x02\x02\x08\x9c\x08\0\x12\x04\ + \xde\x03\x1eD\nL\n\x04\x04\x0f\x02\x03\x12\x04\xe1\x03\x02\x1b\x1a>\x20I\ + f\x20true,\x20ignore\x20safety\x20checks\x20when\x20creating\x20the\x20a\ + pp\x20profile.\n\n\x0f\n\x05\x04\x0f\x02\x03\x04\x12\x06\xe1\x03\x02\xde\ + \x03F\n\r\n\x05\x04\x0f\x02\x03\x05\x12\x04\xe1\x03\x02\x06\n\r\n\x05\ + \x04\x0f\x02\x03\x01\x12\x04\xe1\x03\x07\x16\n\r\n\x05\x04\x0f\x02\x03\ + \x03\x12\x04\xe1\x03\x19\x1a\nH\n\x02\x04\x10\x12\x06\xe5\x03\0\xee\x03\ + \x01\x1a:\x20Request\x20message\x20for\x20BigtableInstanceAdmin.GetAppPr\ + ofile.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xe5\x03\x08\x1c\n\xa7\x01\n\x04\ + \x04\x10\x02\0\x12\x06\xe8\x03\x02\xed\x03\x04\x1a\x96\x01\x20Required.\ + \x20The\x20unique\x20name\x20of\x20the\x20requested\x20app\x20profile.\ + \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ + s/{instance}/appProfiles/{app_profile}`.\n\n\x0f\n\x05\x04\x10\x02\0\x04\ + \x12\x06\xe8\x03\x02\xe5\x03\x1e\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\xe8\ + \x03\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xe8\x03\t\r\n\r\n\x05\ + \x04\x10\x02\0\x03\x12\x04\xe8\x03\x10\x11\n\x0f\n\x05\x04\x10\x02\0\x08\ + \x12\x06\xe8\x03\x12\xed\x03\x03\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\ + \x12\x04\xe9\x03\x04*\n\x11\n\x07\x04\x10\x02\0\x08\x9f\x08\x12\x06\xea\ + \x03\x04\xec\x03\x05\nJ\n\x02\x04\x11\x12\x06\xf1\x03\0\x8b\x04\x01\x1a<\ + \x20Request\x20message\x20for\x20BigtableInstanceAdmin.ListAppProfiles.\ + \n\n\x0b\n\x03\x04\x11\x01\x12\x04\xf1\x03\x08\x1e\n\xa4\x02\n\x04\x04\ + \x11\x02\0\x12\x06\xf7\x03\x02\xfc\x03\x04\x1a\x93\x02\x20Required.\x20T\ + he\x20unique\x20name\x20of\x20the\x20instance\x20for\x20which\x20a\x20li\ + st\x20of\x20app\x20profiles\x20is\n\x20requested.\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects/{project}/instances/{instance}`.\n\x20Use\ + \x20`{instance}\x20=\x20'-'`\x20to\x20list\x20AppProfiles\x20for\x20all\ + \x20Instances\x20in\x20a\x20project,\n\x20e.g.,\x20`projects/myproject/i\ + nstances/-`.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\xf7\x03\x02\xf1\x03\ + \x20\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xf7\x03\x02\x08\n\r\n\x05\x04\ + \x11\x02\0\x01\x12\x04\xf7\x03\t\x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\ + \xf7\x03\x12\x13\n\x0f\n\x05\x04\x11\x02\0\x08\x12\x06\xf7\x03\x14\xfc\ + \x03\x03\n\x10\n\x08\x04\x11\x02\0\x08\x9c\x08\0\x12\x04\xf8\x03\x04*\n\ + \x11\n\x07\x04\x11\x02\0\x08\x9f\x08\x12\x06\xf9\x03\x04\xfb\x03\x05\n\ + \xbd\x03\n\x04\x04\x11\x02\x01\x12\x04\x87\x04\x02\x16\x1a\xae\x03\x20Ma\ + ximum\x20number\x20of\x20results\x20per\x20page.\n\n\x20A\x20page_size\ + \x20of\x20zero\x20lets\x20the\x20server\x20choose\x20the\x20number\x20of\ + \x20items\x20to\x20return.\n\x20A\x20page_size\x20which\x20is\x20strictl\ + y\x20positive\x20will\x20return\x20at\x20most\x20that\x20many\x20items.\ + \n\x20A\x20negative\x20page_size\x20will\x20cause\x20an\x20error.\n\n\ + \x20Following\x20the\x20first\x20request,\x20subsequent\x20paginated\x20\ + calls\x20are\x20not\x20required\n\x20to\x20pass\x20a\x20page_size.\x20If\ + \x20a\x20page_size\x20is\x20set\x20in\x20subsequent\x20calls,\x20it\x20m\ + ust\n\x20match\x20the\x20page_size\x20given\x20in\x20the\x20first\x20req\ + uest.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\x87\x04\x02\xfc\x03\x04\ + \n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\x87\x04\x02\x07\n\r\n\x05\x04\x11\ + \x02\x01\x01\x12\x04\x87\x04\x08\x11\n\r\n\x05\x04\x11\x02\x01\x03\x12\ + \x04\x87\x04\x14\x15\nK\n\x04\x04\x11\x02\x02\x12\x04\x8a\x04\x02\x18\ + \x1a=\x20The\x20value\x20of\x20`next_page_token`\x20returned\x20by\x20a\ + \x20previous\x20call.\n\n\x0f\n\x05\x04\x11\x02\x02\x04\x12\x06\x8a\x04\ + \x02\x87\x04\x16\n\r\n\x05\x04\x11\x02\x02\x05\x12\x04\x8a\x04\x02\x08\n\ + \r\n\x05\x04\x11\x02\x02\x01\x12\x04\x8a\x04\t\x13\n\r\n\x05\x04\x11\x02\ + \x02\x03\x12\x04\x8a\x04\x16\x17\nK\n\x02\x04\x12\x12\x06\x8e\x04\0\x9c\ + \x04\x01\x1a=\x20Response\x20message\x20for\x20BigtableInstanceAdmin.Lis\ + tAppProfiles.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\x8e\x04\x08\x1f\n3\n\x04\ + \x04\x12\x02\0\x12\x04\x90\x04\x02'\x1a%\x20The\x20list\x20of\x20request\ + ed\x20app\x20profiles.\n\n\r\n\x05\x04\x12\x02\0\x04\x12\x04\x90\x04\x02\ + \n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\x90\x04\x0b\x15\n\r\n\x05\x04\x12\ + \x02\0\x01\x12\x04\x90\x04\x16\"\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\x90\ + \x04%&\n\xaa\x01\n\x04\x04\x12\x02\x01\x12\x04\x95\x04\x02\x1d\x1a\x9b\ + \x01\x20Set\x20if\x20not\x20all\x20app\x20profiles\x20could\x20be\x20ret\ + urned\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\x0f\n\x05\x04\x12\x02\x01\x04\x12\x06\ + \x95\x04\x02\x90\x04'\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\x95\x04\x02\ + \x08\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\x95\x04\t\x18\n\r\n\x05\x04\ + \x12\x02\x01\x03\x12\x04\x95\x04\x1b\x1c\n\x90\x02\n\x04\x04\x12\x02\x02\ + \x12\x04\x9b\x04\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\x12\x02\x02\x04\x12\x04\ + \x9b\x04\x02\n\n\r\n\x05\x04\x12\x02\x02\x05\x12\x04\x9b\x04\x0b\x11\n\r\ + \n\x05\x04\x12\x02\x02\x01\x12\x04\x9b\x04\x12\"\n\r\n\x05\x04\x12\x02\ + \x02\x03\x12\x04\x9b\x04%&\nK\n\x02\x04\x13\x12\x06\x9f\x04\0\xa9\x04\ + \x01\x1a=\x20Request\x20message\x20for\x20BigtableInstanceAdmin.UpdateAp\ + pProfile.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\x9f\x04\x08\x1f\n[\n\x04\x04\ + \x13\x02\0\x12\x04\xa1\x04\x02F\x1aM\x20Required.\x20The\x20app\x20profi\ + le\x20which\x20will\x20(partially)\x20replace\x20the\x20current\x20value\ + .\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xa1\x04\x02\x9f\x04!\n\r\n\x05\ + \x04\x13\x02\0\x06\x12\x04\xa1\x04\x02\x0c\n\r\n\x05\x04\x13\x02\0\x01\ + \x12\x04\xa1\x04\r\x18\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xa1\x04\x1b\ + \x1c\n\r\n\x05\x04\x13\x02\0\x08\x12\x04\xa1\x04\x1dE\n\x10\n\x08\x04\ + \x13\x02\0\x08\x9c\x08\0\x12\x04\xa1\x04\x1eD\n|\n\x04\x04\x13\x02\x01\ + \x12\x04\xa5\x04\x02U\x1an\x20Required.\x20The\x20subset\x20of\x20app\ + \x20profile\x20fields\x20which\x20should\x20be\x20replaced.\n\x20If\x20u\ + nset,\x20all\x20fields\x20will\x20be\x20replaced.\n\n\x0f\n\x05\x04\x13\ + \x02\x01\x04\x12\x06\xa5\x04\x02\xa1\x04F\n\r\n\x05\x04\x13\x02\x01\x06\ + \x12\x04\xa5\x04\x02\x1b\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xa5\x04\ + \x1c'\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xa5\x04*+\n\r\n\x05\x04\x13\ + \x02\x01\x08\x12\x04\xa5\x04,T\n\x10\n\x08\x04\x13\x02\x01\x08\x9c\x08\0\ + \x12\x04\xa5\x04-S\nL\n\x04\x04\x13\x02\x02\x12\x04\xa8\x04\x02\x1b\x1a>\ + \x20If\x20true,\x20ignore\x20safety\x20checks\x20when\x20updating\x20the\ + \x20app\x20profile.\n\n\x0f\n\x05\x04\x13\x02\x02\x04\x12\x06\xa8\x04\ + \x02\xa5\x04U\n\r\n\x05\x04\x13\x02\x02\x05\x12\x04\xa8\x04\x02\x06\n\r\ + \n\x05\x04\x13\x02\x02\x01\x12\x04\xa8\x04\x07\x16\n\r\n\x05\x04\x13\x02\ + \x02\x03\x12\x04\xa8\x04\x19\x1a\nK\n\x02\x04\x14\x12\x06\xac\x04\0\xb8\ + \x04\x01\x1a=\x20Request\x20message\x20for\x20BigtableInstanceAdmin.Dele\ + teAppProfile.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\xac\x04\x08\x1f\n\xab\ + \x01\n\x04\x04\x14\x02\0\x12\x06\xaf\x04\x02\xb4\x04\x04\x1a\x9a\x01\x20\ + Required.\x20The\x20unique\x20name\x20of\x20the\x20app\x20profile\x20to\ + \x20be\x20deleted.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/\ + {project}/instances/{instance}/appProfiles/{app_profile}`.\n\n\x0f\n\x05\ + \x04\x14\x02\0\x04\x12\x06\xaf\x04\x02\xac\x04!\n\r\n\x05\x04\x14\x02\0\ + \x05\x12\x04\xaf\x04\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xaf\x04\ + \t\r\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\xaf\x04\x10\x11\n\x0f\n\x05\x04\ + \x14\x02\0\x08\x12\x06\xaf\x04\x12\xb4\x04\x03\n\x10\n\x08\x04\x14\x02\0\ + \x08\x9c\x08\0\x12\x04\xb0\x04\x04*\n\x11\n\x07\x04\x14\x02\0\x08\x9f\ + \x08\x12\x06\xb1\x04\x04\xb3\x04\x05\nV\n\x04\x04\x14\x02\x01\x12\x04\ + \xb7\x04\x02D\x1aH\x20Required.\x20If\x20true,\x20ignore\x20safety\x20ch\ + ecks\x20when\x20deleting\x20the\x20app\x20profile.\n\n\x0f\n\x05\x04\x14\ + \x02\x01\x04\x12\x06\xb7\x04\x02\xb4\x04\x04\n\r\n\x05\x04\x14\x02\x01\ + \x05\x12\x04\xb7\x04\x02\x06\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xb7\ + \x04\x07\x16\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xb7\x04\x19\x1a\n\r\n\ + \x05\x04\x14\x02\x01\x08\x12\x04\xb7\x04\x1bC\n\x10\n\x08\x04\x14\x02\ + \x01\x08\x9c\x08\0\x12\x04\xb7\x04\x1cB\nL\n\x02\x04\x15\x12\x06\xbb\x04\ + \0\xbd\x04\x01\x1a>\x20The\x20metadata\x20for\x20the\x20Operation\x20ret\ + urned\x20by\x20UpdateAppProfile.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xbb\ + \x04\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs new file mode 100644 index 0000000000..07ee5167a5 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs @@ -0,0 +1,573 @@ +// 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_BIGTABLE_INSTANCE_ADMIN_CREATE_INSTANCE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance", + 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_GET_INSTANCE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetInstance", + 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_LIST_INSTANCES: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances", + 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_UPDATE_INSTANCE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateInstance", + 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_PARTIAL_UPDATE_INSTANCE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateInstance", + 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_INSTANCE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteInstance", + 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_CREATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateCluster", + 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_GET_CLUSTER: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetCluster", + 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_LIST_CLUSTERS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters", + 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_UPDATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateCluster", + 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", + 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_CREATE_APP_PROFILE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile", + 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_GET_APP_PROFILE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/GetAppProfile", + 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_LIST_APP_PROFILES: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListAppProfiles", + 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_UPDATE_APP_PROFILE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateAppProfile", + 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_APP_PROFILE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteAppProfile", + 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_GET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/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_BIGTABLE_INSTANCE_ADMIN_SET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/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_BIGTABLE_INSTANCE_ADMIN_TEST_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/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 BigtableInstanceAdminClient { + client: ::grpcio::Client, +} + +impl BigtableInstanceAdminClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + BigtableInstanceAdminClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn create_instance_opt(&self, req: &super::bigtable_instance_admin::CreateInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_INSTANCE, req, opt) + } + + pub fn create_instance(&self, req: &super::bigtable_instance_admin::CreateInstanceRequest) -> ::grpcio::Result { + self.create_instance_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_instance_async_opt(&self, req: &super::bigtable_instance_admin::CreateInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_INSTANCE, req, opt) + } + + pub fn create_instance_async(&self, req: &super::bigtable_instance_admin::CreateInstanceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_instance_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_instance_opt(&self, req: &super::bigtable_instance_admin::GetInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_INSTANCE, req, opt) + } + + pub fn get_instance(&self, req: &super::bigtable_instance_admin::GetInstanceRequest) -> ::grpcio::Result { + self.get_instance_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_instance_async_opt(&self, req: &super::bigtable_instance_admin::GetInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_INSTANCE, req, opt) + } + + pub fn get_instance_async(&self, req: &super::bigtable_instance_admin::GetInstanceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_instance_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_instances_opt(&self, req: &super::bigtable_instance_admin::ListInstancesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_INSTANCES, req, opt) + } + + pub fn list_instances(&self, req: &super::bigtable_instance_admin::ListInstancesRequest) -> ::grpcio::Result { + self.list_instances_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_instances_async_opt(&self, req: &super::bigtable_instance_admin::ListInstancesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_INSTANCES, req, opt) + } + + pub fn list_instances_async(&self, req: &super::bigtable_instance_admin::ListInstancesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_instances_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_instance_opt(&self, req: &super::instance::Instance, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_INSTANCE, req, opt) + } + + pub fn update_instance(&self, req: &super::instance::Instance) -> ::grpcio::Result { + self.update_instance_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_instance_async_opt(&self, req: &super::instance::Instance, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_INSTANCE, req, opt) + } + + pub fn update_instance_async(&self, req: &super::instance::Instance) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_instance_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn partial_update_instance_opt(&self, req: &super::bigtable_instance_admin::PartialUpdateInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_PARTIAL_UPDATE_INSTANCE, req, opt) + } + + pub fn partial_update_instance(&self, req: &super::bigtable_instance_admin::PartialUpdateInstanceRequest) -> ::grpcio::Result { + self.partial_update_instance_opt(req, ::grpcio::CallOption::default()) + } + + pub fn partial_update_instance_async_opt(&self, req: &super::bigtable_instance_admin::PartialUpdateInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_PARTIAL_UPDATE_INSTANCE, req, opt) + } + + pub fn partial_update_instance_async(&self, req: &super::bigtable_instance_admin::PartialUpdateInstanceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.partial_update_instance_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_instance_opt(&self, req: &super::bigtable_instance_admin::DeleteInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_INSTANCE, req, opt) + } + + pub fn delete_instance(&self, req: &super::bigtable_instance_admin::DeleteInstanceRequest) -> ::grpcio::Result { + self.delete_instance_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_instance_async_opt(&self, req: &super::bigtable_instance_admin::DeleteInstanceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_INSTANCE, req, opt) + } + + pub fn delete_instance_async(&self, req: &super::bigtable_instance_admin::DeleteInstanceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_instance_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_cluster_opt(&self, req: &super::bigtable_instance_admin::CreateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_CLUSTER, req, opt) + } + + pub fn create_cluster(&self, req: &super::bigtable_instance_admin::CreateClusterRequest) -> ::grpcio::Result { + self.create_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_cluster_async_opt(&self, req: &super::bigtable_instance_admin::CreateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_CLUSTER, req, opt) + } + + pub fn create_cluster_async(&self, req: &super::bigtable_instance_admin::CreateClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_cluster_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_cluster_opt(&self, req: &super::bigtable_instance_admin::GetClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_CLUSTER, req, opt) + } + + pub fn get_cluster(&self, req: &super::bigtable_instance_admin::GetClusterRequest) -> ::grpcio::Result { + self.get_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_cluster_async_opt(&self, req: &super::bigtable_instance_admin::GetClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_CLUSTER, req, opt) + } + + pub fn get_cluster_async(&self, req: &super::bigtable_instance_admin::GetClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_cluster_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_clusters_opt(&self, req: &super::bigtable_instance_admin::ListClustersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_CLUSTERS, req, opt) + } + + pub fn list_clusters(&self, req: &super::bigtable_instance_admin::ListClustersRequest) -> ::grpcio::Result { + self.list_clusters_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_clusters_async_opt(&self, req: &super::bigtable_instance_admin::ListClustersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_CLUSTERS, req, opt) + } + + pub fn list_clusters_async(&self, req: &super::bigtable_instance_admin::ListClustersRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_clusters_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_cluster_opt(&self, req: &super::instance::Cluster, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_CLUSTER, req, opt) + } + + pub fn update_cluster(&self, req: &super::instance::Cluster) -> ::grpcio::Result { + self.update_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_cluster_async_opt(&self, req: &super::instance::Cluster, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_CLUSTER, req, opt) + } + + pub fn update_cluster_async(&self, req: &super::instance::Cluster) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.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) + } + + pub fn delete_cluster(&self, req: &super::bigtable_instance_admin::DeleteClusterRequest) -> ::grpcio::Result { + self.delete_cluster_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_cluster_async_opt(&self, req: &super::bigtable_instance_admin::DeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_CLUSTER, req, opt) + } + + pub fn delete_cluster_async(&self, req: &super::bigtable_instance_admin::DeleteClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_cluster_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_app_profile_opt(&self, req: &super::bigtable_instance_admin::CreateAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_APP_PROFILE, req, opt) + } + + pub fn create_app_profile(&self, req: &super::bigtable_instance_admin::CreateAppProfileRequest) -> ::grpcio::Result { + self.create_app_profile_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_app_profile_async_opt(&self, req: &super::bigtable_instance_admin::CreateAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_APP_PROFILE, req, opt) + } + + pub fn create_app_profile_async(&self, req: &super::bigtable_instance_admin::CreateAppProfileRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_app_profile_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_app_profile_opt(&self, req: &super::bigtable_instance_admin::GetAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_APP_PROFILE, req, opt) + } + + pub fn get_app_profile(&self, req: &super::bigtable_instance_admin::GetAppProfileRequest) -> ::grpcio::Result { + self.get_app_profile_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_app_profile_async_opt(&self, req: &super::bigtable_instance_admin::GetAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_APP_PROFILE, req, opt) + } + + pub fn get_app_profile_async(&self, req: &super::bigtable_instance_admin::GetAppProfileRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_app_profile_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_app_profiles_opt(&self, req: &super::bigtable_instance_admin::ListAppProfilesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_APP_PROFILES, req, opt) + } + + pub fn list_app_profiles(&self, req: &super::bigtable_instance_admin::ListAppProfilesRequest) -> ::grpcio::Result { + self.list_app_profiles_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_app_profiles_async_opt(&self, req: &super::bigtable_instance_admin::ListAppProfilesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_APP_PROFILES, req, opt) + } + + pub fn list_app_profiles_async(&self, req: &super::bigtable_instance_admin::ListAppProfilesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_app_profiles_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_app_profile_opt(&self, req: &super::bigtable_instance_admin::UpdateAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_APP_PROFILE, req, opt) + } + + pub fn update_app_profile(&self, req: &super::bigtable_instance_admin::UpdateAppProfileRequest) -> ::grpcio::Result { + self.update_app_profile_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_app_profile_async_opt(&self, req: &super::bigtable_instance_admin::UpdateAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_APP_PROFILE, req, opt) + } + + pub fn update_app_profile_async(&self, req: &super::bigtable_instance_admin::UpdateAppProfileRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_app_profile_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_app_profile_opt(&self, req: &super::bigtable_instance_admin::DeleteAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_APP_PROFILE, req, opt) + } + + pub fn delete_app_profile(&self, req: &super::bigtable_instance_admin::DeleteAppProfileRequest) -> ::grpcio::Result { + self.delete_app_profile_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_app_profile_async_opt(&self, req: &super::bigtable_instance_admin::DeleteAppProfileRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_APP_PROFILE, req, opt) + } + + pub fn delete_app_profile_async(&self, req: &super::bigtable_instance_admin::DeleteAppProfileRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_app_profile_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_INSTANCE_ADMIN_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_BIGTABLE_INSTANCE_ADMIN_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 set_iam_policy_opt(&self, req: &super::iam_policy::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_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_BIGTABLE_INSTANCE_ADMIN_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 test_iam_permissions_opt(&self, req: &super::iam_policy::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_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_BIGTABLE_INSTANCE_ADMIN_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: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait BigtableInstanceAdmin { + fn create_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::CreateInstanceRequest, sink: ::grpcio::UnarySink); + fn get_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::GetInstanceRequest, sink: ::grpcio::UnarySink); + fn list_instances(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::ListInstancesRequest, sink: ::grpcio::UnarySink); + fn update_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::instance::Instance, sink: ::grpcio::UnarySink); + fn partial_update_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::PartialUpdateInstanceRequest, sink: ::grpcio::UnarySink); + fn delete_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::DeleteInstanceRequest, sink: ::grpcio::UnarySink); + fn create_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::CreateClusterRequest, sink: ::grpcio::UnarySink); + fn get_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::GetClusterRequest, sink: ::grpcio::UnarySink); + fn list_clusters(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::ListClustersRequest, sink: ::grpcio::UnarySink); + fn update_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::instance::Cluster, sink: ::grpcio::UnarySink); + fn delete_cluster(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::DeleteClusterRequest, sink: ::grpcio::UnarySink); + fn create_app_profile(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::CreateAppProfileRequest, sink: ::grpcio::UnarySink); + fn get_app_profile(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::GetAppProfileRequest, sink: ::grpcio::UnarySink); + fn list_app_profiles(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::ListAppProfilesRequest, sink: ::grpcio::UnarySink); + fn update_app_profile(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::UpdateAppProfileRequest, sink: ::grpcio::UnarySink); + fn delete_app_profile(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_instance_admin::DeleteAppProfileRequest, sink: ::grpcio::UnarySink); + fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_bigtable_instance_admin(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_INSTANCE, move |ctx, req, resp| { + instance.create_instance(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_INSTANCE, move |ctx, req, resp| { + instance.get_instance(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_INSTANCES, move |ctx, req, resp| { + instance.list_instances(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_INSTANCE, move |ctx, req, resp| { + instance.update_instance(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_PARTIAL_UPDATE_INSTANCE, move |ctx, req, resp| { + instance.partial_update_instance(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_INSTANCE, move |ctx, req, resp| { + instance.delete_instance(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_CLUSTER, move |ctx, req, resp| { + instance.create_cluster(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_CLUSTER, move |ctx, req, resp| { + instance.get_cluster(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_CLUSTERS, move |ctx, req, resp| { + instance.list_clusters(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_CLUSTER, move |ctx, req, resp| { + instance.update_cluster(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_CLUSTER, move |ctx, req, resp| { + instance.delete_cluster(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_CREATE_APP_PROFILE, move |ctx, req, resp| { + instance.create_app_profile(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_APP_PROFILE, move |ctx, req, resp| { + instance.get_app_profile(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_APP_PROFILES, move |ctx, req, resp| { + instance.list_app_profiles(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_APP_PROFILE, move |ctx, req, resp| { + instance.update_app_profile(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_APP_PROFILE, move |ctx, req, resp| { + instance.delete_app_profile(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_GET_IAM_POLICY, move |ctx, req, resp| { + instance.get_iam_policy(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_SET_IAM_POLICY, move |ctx, req, resp| { + instance.set_iam_policy(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_BIGTABLE_INSTANCE_ADMIN_TEST_IAM_PERMISSIONS, move |ctx, req, resp| { + instance.test_iam_permissions(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs new file mode 100644 index 0000000000..716626f237 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs @@ -0,0 +1,8598 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/v2/bigtable_table_admin.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct RestoreTableRequest { + // message fields + pub parent: ::std::string::String, + pub table_id: ::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 RestoreTableRequest { + fn default() -> &'a RestoreTableRequest { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum RestoreTableRequest_oneof_source { + backup(::std::string::String), +} + +impl RestoreTableRequest { + pub fn new() -> RestoreTableRequest { + ::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 backup = 3; + + + pub fn get_backup(&self) -> &str { + match self.source { + ::std::option::Option::Some(RestoreTableRequest_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(RestoreTableRequest_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(RestoreTableRequest_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(RestoreTableRequest_oneof_source::backup(_)) = self.source { + } else { + self.source = ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(::std::string::String::new())); + } + match self.source { + ::std::option::Option::Some(RestoreTableRequest_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(RestoreTableRequest_oneof_source::backup(v)) => v, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } +} + +impl ::protobuf::Message for RestoreTableRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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.table_id)?; + }, + 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()?)); + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.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); + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> RestoreTableRequest { + RestoreTableRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static RestoreTableRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RestoreTableRequest::new) + } +} + +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 ::std::fmt::Debug for RestoreTableRequest { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct RestoreTableMetadata { + // message fields + 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, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RestoreTableMetadata { + fn default() -> &'a RestoreTableMetadata { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum RestoreTableMetadata_oneof_source_info { + backup_info(super::table::BackupInfo), +} + +impl RestoreTableMetadata { + pub fn new() -> RestoreTableMetadata { + ::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; + + + 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 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(RestoreTableMetadata_oneof_source_info::backup_info(..)) => 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)) + } + + // 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 { + } else { + self.source_info = ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(super::table::BackupInfo::new())); + } + match self.source_info { + ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(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, + _ => panic!(), + } + } else { + super::table::BackupInfo::new() + } + } + + // string optimize_table_operation_name = 4; + + + 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(); + } + + // 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; + } + + // 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 + } + + // 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()) + } + + // .google.bigtable.admin.v2.OperationProgress progress = 5; + + + 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()) + } +} + +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(()) + } + + // 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_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 { + 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; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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 { + 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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> RestoreTableMetadata { + RestoreTableMetadata::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static RestoreTableMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RestoreTableMetadata::new) + } +} + +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 ::std::fmt::Debug for RestoreTableMetadata { + 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 OptimizeRestoredTableMetadata { + pub fn new() -> OptimizeRestoredTableMetadata { + ::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.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()) + } +} + +impl ::protobuf::Message for OptimizeRestoredTableMetadata { + 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)?; + }, + 2 => { + ::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(()) + } + + // 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.progress.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.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> OptimizeRestoredTableMetadata { + OptimizeRestoredTableMetadata::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static OptimizeRestoredTableMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(OptimizeRestoredTableMetadata::new) + } +} + +impl ::protobuf::Clear for OptimizeRestoredTableMetadata { + fn clear(&mut self) { + self.name.clear(); + self.progress.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for OptimizeRestoredTableMetadata { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateTableRequest { + // message fields + pub parent: ::std::string::String, + pub table_id: ::std::string::String, + pub table: ::protobuf::SingularPtrField, + pub initial_splits: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateTableRequest { + fn default() -> &'a CreateTableRequest { + ::default_instance() + } +} + +impl CreateTableRequest { + pub fn new() -> CreateTableRequest { + ::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()) + } + + // .google.bigtable.admin.v2.Table table = 3; + + + 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()) + } + + // 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_id)?; + }, + 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())?; + }, + }; + } + ::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.table_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.table_id); + } + 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; + } + 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 + } + + 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 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)?; + } + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static CreateTableRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateTableRequest::new) + } +} + +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 ::std::fmt::Debug for CreateTableRequest { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateTableRequest_Split { + // message fields + pub key: ::std::vec::Vec, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateTableRequest_Split { + fn default() -> &'a CreateTableRequest_Split { + ::default_instance() + } +} + +impl CreateTableRequest_Split { + pub fn new() -> CreateTableRequest_Split { + ::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()) + } +} + +impl ::protobuf::Message for CreateTableRequest_Split { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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::bytes_size(1, &self.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.key.is_empty() { + os.write_bytes(1, &self.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() -> CreateTableRequest_Split { + CreateTableRequest_Split::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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 default_instance() -> &'static CreateTableRequest_Split { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateTableRequest_Split::new) + } +} + +impl ::protobuf::Clear for CreateTableRequest_Split { + fn clear(&mut self) { + self.key.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CreateTableRequest_Split { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateTableFromSnapshotRequest { + // message fields + pub parent: ::std::string::String, + pub table_id: ::std::string::String, + pub source_snapshot: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateTableFromSnapshotRequest { + fn default() -> &'a CreateTableFromSnapshotRequest { + ::default_instance() + } +} + +impl CreateTableFromSnapshotRequest { + pub fn new() -> CreateTableFromSnapshotRequest { + ::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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_id)?; + }, + 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())?; + }, + }; + } + ::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.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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.table_id.is_empty() { + os.write_string(2, &self.table_id)?; + } + if !self.source_snapshot.is_empty() { + os.write_string(3, &self.source_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 + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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: &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 default_instance() -> &'static CreateTableFromSnapshotRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateTableFromSnapshotRequest::new) + } +} + +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 ::std::fmt::Debug for CreateTableFromSnapshotRequest { + 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) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a DropRowRangeRequest { + fn default() -> &'a DropRowRangeRequest { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum DropRowRangeRequest_oneof_target { + row_key_prefix(::std::vec::Vec), + delete_all_data_from_table(bool), +} + +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()) + } + + // 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 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, + } + } + + // 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())); + } + match self.target { + ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(ref mut v)) => v, + _ => panic!(), + } + } + + // 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bool delete_all_data_from_table = 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 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, + } + } + + // 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())?; + }, + }; + } + ::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; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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: &DropRowRangeRequest| { &m.name }, + |m: &mut DropRowRangeRequest| { &mut m.name }, + )); + 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::accessor::make_singular_bool_accessor::<_>( + "delete_all_data_from_table", + DropRowRangeRequest::has_delete_all_data_from_table, + DropRowRangeRequest::get_delete_all_data_from_table, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DropRowRangeRequest", + fields, + file_descriptor_proto() + ) + }) + } + + 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) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a ListTablesRequest { + fn default() -> &'a ListTablesRequest { + ::default_instance() + } +} + +impl ListTablesRequest { + pub fn new() -> ListTablesRequest { + ::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.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; + } + + // 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 = 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 ListTablesRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)? + }, + 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())?; + }, + }; + } + ::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 != 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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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 != 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<()> { + 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 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 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 + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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 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>, + // 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 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()) + } + + // .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(); + } + + 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 = 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(); + } + + 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 CreateBackupMetadata { + 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)?; + }, + 4 => { + ::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 !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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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>( + "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 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.source_table.clear(); + self.start_time.clear(); + self.end_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 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.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()) + } +} + +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 order_by: ::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()) + } + + // 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()) + } +} + +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 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.order_by)?; + }, + 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())?; + }, + }; + } + ::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.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); + } + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(5, &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.order_by.is_empty() { + os.write_string(3, &self.order_by)?; + } + 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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::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 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.order_by.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.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()) + } +} + +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) + } +} + +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\"\ + \xc0\x01\n\x13RestoreTableRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\ + \x06parentB(\xfaA\"\n\x20bigtable.googleapis.com/Instance\xe0A\x02\x12\ + \x1e\n\x08table_id\x18\x02\x20\x01(\tR\x07tableIdB\x03\xe0A\x02\x12=\n\ + \x06backup\x18\x03\x20\x01(\tH\0R\x06backupB#\xfaA\x20\n\x1ebigtable.goo\ + gleapis.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\"\xa8\x02\ + \n\x12CreateTableRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\ + (\xfaA\"\n\x20bigtable.googleapis.com/Instance\xe0A\x02\x12\x1e\n\x08tab\ + le_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\"\xd5\x01\n\x1eCreateTableFro\ + mSnapshotRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\xfaA\"\ + \n\x20bigtable.googleapis.com/Instance\xe0A\x02\x12\x1e\n\x08table_id\ + \x18\x02\x20\x01(\tR\x07tableIdB\x03\xe0A\x02\x12Q\n\x0fsource_snapshot\ + \x18\x03\x20\x01(\tR\x0esourceSnapshotB(\xfaA\"\n\x20bigtable.googleapis\ + .com/Snapshot\xe0A\x02\"\xc0\x01\n\x13DropRowRangeRequest\x129\n\x04name\ + \x18\x01\x20\x01(\tR\x04nameB%\xe0A\x02\xfaA\x1f\n\x1dbigtable.googleapi\ + s.com/Table\x12&\n\x0erow_key_prefix\x18\x02\x20\x01(\x0cH\0R\x0crowKeyP\ + refix\x12<\n\x1adelete_all_data_from_table\x18\x03\x20\x01(\x08H\0R\x16d\ + eleteAllDataFromTableB\x08\n\x06target\"\xcb\x01\n\x11ListTablesRequest\ + \x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\xfaA\"\n\x20bigtable.g\ + oogleapis.com/Instance\xe0A\x02\x128\n\x04view\x18\x02\x20\x01(\x0e2$.go\ + ogle.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\"\x86\x01\n\x0fGetTableRequest\x129\ + \n\x04name\x18\x01\x20\x01(\tR\x04nameB%\xe0A\x02\xfaA\x1f\n\x1dbigtable\ + .googleapis.com/Table\x128\n\x04view\x18\x02\x20\x01(\x0e2$.google.bigta\ + ble.admin.v2.Table.ViewR\x04view\"O\n\x12DeleteTableRequest\x129\n\x04na\ + me\x18\x01\x20\x01(\tR\x04nameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/T\ + able\xe0A\x02\"\x89\x03\n\x1bModifyColumnFamiliesRequest\x129\n\x04name\ + \x18\x01\x20\x01(\tR\x04nameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/Tab\ + le\xe0A\x02\x12m\n\rmodifications\x18\x02\x20\x03(\x0b2B.google.bigtable\ + .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\"\\\n\x1fGenerateConsistency\ + TokenRequest\x129\n\x04name\x18\x01\x20\x01(\tR\x04nameB%\xfaA\x1f\n\x1d\ + bigtable.googleapis.com/Table\xe0A\x02\"O\n\x20GenerateConsistencyTokenR\ + esponse\x12+\n\x11consistency_token\x18\x01\x20\x01(\tR\x10consistencyTo\ + ken\"\x86\x01\n\x17CheckConsistencyRequest\x129\n\x04name\x18\x01\x20\ + \x01(\tR\x04nameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/Table\xe0A\x02\ + \x120\n\x11consistency_token\x18\x02\x20\x01(\tR\x10consistencyTokenB\ + \x03\xe0A\x02\":\n\x18CheckConsistencyResponse\x12\x1e\n\nconsistent\x18\ + \x01\x20\x01(\x08R\nconsistent\"\x89\x02\n\x14SnapshotTableRequest\x129\ + \n\x04name\x18\x01\x20\x01(\tR\x04nameB%\xe0A\x02\xfaA\x1f\n\x1dbigtable\ + .googleapis.com/Table\x12A\n\x07cluster\x18\x02\x20\x01(\tR\x07clusterB'\ + \xfaA!\n\x1fbigtable.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\x0bdescrip\ + tion\x18\x05\x20\x01(\tR\x0bdescription\"R\n\x12GetSnapshotRequest\x12<\ + \n\x04name\x18\x01\x20\x01(\tR\x04nameB(\xe0A\x02\xfaA\"\n\x20bigtable.g\ + oogleapis.com/Snapshot\"\x93\x01\n\x14ListSnapshotsRequest\x12?\n\x06par\ + ent\x18\x01\x20\x01(\tR\x06parentB'\xe0A\x02\xfaA!\n\x1fbigtable.googlea\ + pis.com/Cluster\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\x15Lis\ + tSnapshotsResponse\x12@\n\tsnapshots\x18\x01\x20\x03(\x0b2\".google.bigt\ + able.admin.v2.SnapshotR\tsnapshots\x12&\n\x0fnext_page_token\x18\x02\x20\ + \x01(\tR\rnextPageToken\"U\n\x15DeleteSnapshotRequest\x12<\n\x04name\x18\ + \x01\x20\x01(\tR\x04nameB(\xe0A\x02\xfaA\"\n\x20bigtable.googleapis.com/\ + Snapshot\"\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\"\xb7\x01\n\x13CreateBackup\ + Request\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\n\x1fbigt\ + able.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\"N\n\x10GetBackupRequest\x12:\n\x04nam\ + e\x18\x01\x20\x01(\tR\x04nameB&\xfaA\x20\n\x1ebigtable.googleapis.com/Ba\ + ckup\xe0A\x02\"Q\n\x13DeleteBackupRequest\x12:\n\x04name\x18\x01\x20\x01\ + (\tR\x04nameB&\xfaA\x20\n\x1ebigtable.googleapis.com/Backup\xe0A\x02\"\ + \xc4\x01\n\x12ListBackupsRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\ + \x06parentB'\xe0A\x02\xfaA!\n\x1fbigtable.googleapis.com/Cluster\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\rnextPageToken2\x98%\n\x12BigtableTableAdmin\x12\xab\x01\n\x0bC\ + reateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1a\x1f.goog\ + le.bigtable.admin.v2.Table\"M\x82\xd3\xe4\x93\x02/\"*/v2/{parent=project\ + s/*/instances/*}/tables:\x01*\xdaA\x15parent,table_id,table\x12\x8a\x02\ + \n\x17CreateTableFromSnapshot\x128.google.bigtable.admin.v2.CreateTableF\ + romSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xcaA(\ + \n\x05Table\x12\x1fCreateTableFromSnapshotMetadata\xdaA\x1fparent,table_\ + id,source_snapshot\x82\xd3\xe4\x93\x02B\"=/v2/{parent=projects/*/instanc\ + es/*}/tables:createFromSnapshot:\x01*\x12\xa4\x01\n\nListTables\x12+.goo\ + gle.bigtable.admin.v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.Li\ + stTablesResponse\";\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/inst\ + ances/*}/tables\xdaA\x06parent\x12\x91\x01\n\x08GetTable\x12).google.big\ + table.admin.v2.GetTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"9\ + \x82\xd3\xe4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\xda\ + A\x04name\x12\x8e\x01\n\x0bDeleteTable\x12,.google.bigtable.admin.v2.Del\ + eteTableRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\xe4\x93\x02,**/\ + v2/{name=projects/*/instances/*/tables/*}\xdaA\x04name\x12\xcf\x01\n\x14\ + ModifyColumnFamilies\x125.google.bigtable.admin.v2.ModifyColumnFamiliesR\ + equest\x1a\x1f.google.bigtable.admin.v2.Table\"_\xdaA\x12name,modificati\ + ons\x82\xd3\xe4\x93\x02D\"?/v2/{name=projects/*/instances/*/tables/*}:mo\ + difyColumnFamilies:\x01*\x12\x99\x01\n\x0cDropRowRange\x12-.google.bigta\ + ble.admin.v2.DropRowRangeRequest\x1a\x16.google.protobuf.Empty\"B\x82\ + \xd3\xe4\x93\x02<\"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRa\ + nge:\x01*\x12\xe8\x01\n\x18GenerateConsistencyToken\x129.google.bigtable\ + .admin.v2.GenerateConsistencyTokenRequest\x1a:.google.bigtable.admin.v2.\ + GenerateConsistencyTokenResponse\"U\x82\xd3\xe4\x93\x02H\"C/v2/{name=pro\ + jects/*/instances/*/tables/*}:generateConsistencyToken:\x01*\xdaA\x04nam\ + e\x12\xda\x01\n\x10CheckConsistency\x121.google.bigtable.admin.v2.CheckC\ + onsistencyRequest\x1a2.google.bigtable.admin.v2.CheckConsistencyResponse\ + \"_\x82\xd3\xe4\x93\x02@\";/v2/{name=projects/*/instances/*/tables/*}:ch\ + eckConsistency:\x01*\xdaA\x16name,consistency_token\x12\xea\x01\n\rSnaps\ + hotTable\x12..google.bigtable.admin.v2.SnapshotTableRequest\x1a\x1d.goog\ + le.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x028\"3/v2/{name=proj\ + ects/*/instances/*/tables/*}:snapshot:\x01*\xdaA$name,cluster,snapshot_i\ + d,description\xcaA!\n\x08Snapshot\x12\x15SnapshotTableMetadata\x12\xa8\ + \x01\n\x0bGetSnapshot\x12,.google.bigtable.admin.v2.GetSnapshotRequest\ + \x1a\".google.bigtable.admin.v2.Snapshot\"G\x82\xd3\xe4\x93\x02:\x128/v2\ + /{name=projects/*/instances/*/clusters/*/snapshots/*}\xdaA\x04name\x12\ + \xbb\x01\n\rListSnapshots\x12..google.bigtable.admin.v2.ListSnapshotsReq\ + uest\x1a/.google.bigtable.admin.v2.ListSnapshotsResponse\"I\xdaA\x06pare\ + nt\x82\xd3\xe4\x93\x02:\x128/v2/{parent=projects/*/instances/*/clusters/\ + *}/snapshots\x12\xa2\x01\n\x0eDeleteSnapshot\x12/.google.bigtable.admin.\ + v2.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"G\xdaA\x04name\ + \x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/instances/*/clusters/*/snaps\ + hots/*}\x12\xe0\x01\n\x0cCreateBackup\x12-.google.bigtable.admin.v2.Crea\ + teBackupRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\x82\xd3\ + \xe4\x93\x02@\"6/v2/{parent=projects/*/instances/*/clusters/*}/backups:\ + \x06backup\xdaA\x17parent,backup_id,backup\xcaA\x1e\n\x06Backup\x12\x14C\ + reateBackupMetadata\x12\xa0\x01\n\tGetBackup\x12*.google.bigtable.admin.\ + v2.GetBackupRequest\x1a\x20.google.bigtable.admin.v2.Backup\"E\x82\xd3\ + \xe4\x93\x028\x126/v2/{name=projects/*/instances/*/clusters/*/backups/*}\ + \xdaA\x04name\x12\xc3\x01\n\x0cUpdateBackup\x12-.google.bigtable.admin.v\ + 2.UpdateBackupRequest\x1a\x20.google.bigtable.admin.v2.Backup\"b\xdaA\ + \x12backup,update_mask\x82\xd3\xe4\x93\x02G2=/v2/{backup.name=projects/*\ + /instances/*/clusters/*/backups/*}:\x06backup\x12\x9c\x01\n\x0cDeleteBac\ + kup\x12-.google.bigtable.admin.v2.DeleteBackupRequest\x1a\x16.google.pro\ + tobuf.Empty\"E\x82\xd3\xe4\x93\x028*6/v2/{name=projects/*/instances/*/cl\ + usters/*/backups/*}\xdaA\x04name\x12\xb3\x01\n\x0bListBackups\x12,.googl\ + e.bigtable.admin.v2.ListBackupsRequest\x1a-.google.bigtable.admin.v2.Lis\ + tBackupsResponse\"G\xdaA\x06parent\x82\xd3\xe4\x93\x028\x126/v2/{parent=\ + projects/*/instances/*/clusters/*}/backups\x12\xbb\x01\n\x0cRestoreTable\ + \x12-.google.bigtable.admin.v2.RestoreTableRequest\x1a\x1d.google.longru\ + nning.Operation\"]\x82\xd3\xe4\x93\x027\"2/v2/{parent=projects/*/instanc\ + es/*}/tables:restore:\x01*\xcaA\x1d\n\x05Table\x12\x14RestoreTableMetada\ + ta\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\";/v\ + 2/{resource=projects/*/instances/*/tables/*}:getIamPolicy:\x01*ZL\"G/v2/\ + {resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy:\x01\ + *\xdaA\x08resource\x12\xf3\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.Set\ + IamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa7\x01\xdaA\x0fresource\ + ,policy\x82\xd3\xe4\x93\x02\x8e\x01\";/v2/{resource=projects/*/instances\ + /*/tables/*}:setIamPolicy:\x01*ZL\"G/v2/{resource=projects/*/instances/*\ + /clusters/*/backups/*}:setIamPolicy:\x01*\x12\xa4\x02\n\x12TestIamPermis\ + sions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.Te\ + stIamPermissionsResponse\"\xb8\x01\xdaA\x14resource,permissions\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*\x1a\xde\x02\xd2A\xbb\x02https://w\ + ww.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bi\ + gtable.admin.table,https://www.googleapis.com/auth/cloud-bigtable.admin,\ + https://www.googleapis.com/auth/cloud-bigtable.admin.table,https://www.g\ + oogleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-\ + platform.read-only\xcaA\x1cbigtableadmin.googleapis.comB\xdf\x01\n\x1cco\ + m.google.bigtable.admin.v2B\x17BigtableTableAdminProtoP\x01Z=google.gola\ + ng.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Clo\ + ud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\ + \x02\"Google::Cloud::Bigtable::Admin::V2J\xca\xa2\x02\n\x07\x12\x05\x0e\ + \0\xea\x07\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyrig\ + ht\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\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#\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\xcb\x02\x01\x1a\x9e\x01\x20Service\x20for\x20creating,\x20co\ + nfiguring,\x20and\x20deleting\x20Cloud\x20Bigtable\x20tables.\n\n\n\x20P\ + rovides\x20access\x20to\x20the\x20table\x20schemas\x20only,\x20not\x20th\ + e\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\x20table\x20can\x20be\x20created\x20\ + with\x20a\x20full\x20set\x20of\x20initial\x20column\x20families,\n\x20sp\ + ecified\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\x04J\x02T\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\x20the\x20same\x20instance.\n\n\x20\ + Note:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\ + \x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currentl\ + y\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\ + \n\x20feature\x20might\x20be\x20changed\x20in\x20backward-incompatible\ + \x20ways\x20and\x20is\x20not\n\x20recommended\x20for\x20production\x20us\ + e.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecatio\ + n\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\ + \x03JGc\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\x0c\n\x05\x06\0\x02\x01\ + \x04\x12\x03O\x04M\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03O\x04M\ + \n\r\n\x05\x06\0\x02\x01\x04\x12\x04P\x04S\x06\n\x0f\n\x07\x06\0\x02\x01\ + \x04\x99\x08\x12\x04P\x04S\x06\nB\n\x04\x06\0\x02\x02\x12\x04W\x02\\\x03\ + \x1a4\x20Lists\x20all\x20tables\x20served\x20from\x20a\x20specified\x20i\ + nstance.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03W\x06\x10\n\x0c\n\x05\ + \x06\0\x02\x02\x02\x12\x03W\x11\"\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03W\ + -?\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[\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_\x02d\x03\x1a6\x20Gets\x20metadata\x20informa\ + tion\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\ + \x04`\x04b\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04`\x04b\ + \x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03c\x042\n\x0f\n\x08\x06\0\x02\ + \x03\x04\x9b\x08\0\x12\x03c\x042\nJ\n\x04\x06\0\x02\x04\x12\x04g\x02l\ + \x03\x1a<\x20Permanently\x20deletes\x20a\x20specified\x20table\x20and\ + \x20all\x20of\x20its\x20data.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03g\ + \x06\x11\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03g\x12$\n\x0c\n\x05\x06\0\ + \x02\x04\x03\x12\x03g/D\n\r\n\x05\x06\0\x02\x04\x04\x12\x04h\x04j\x06\n\ + \x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04h\x04j\x06\n\x0c\n\x05\ + \x06\0\x02\x04\x04\x12\x03k\x042\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\ + \x12\x03k\x042\n\x9b\x02\n\x04\x06\0\x02\x05\x12\x04r\x02x\x03\x1a\x8c\ + \x02\x20Performs\x20a\x20series\x20of\x20column\x20family\x20modificatio\ + ns\x20on\x20the\x20specified\x20table.\n\x20Either\x20all\x20or\x20none\ + \x20of\x20the\x20modifications\x20will\x20occur\x20before\x20this\x20met\ + hod\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\x03r\x06\x1a\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03r\x1b6\n\ + \x0c\n\x05\x06\0\x02\x05\x03\x12\x03rAF\n\r\n\x05\x06\0\x02\x05\x04\x12\ + \x04s\x04v\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04s\x04v\ + \x06\n\x0c\n\x05\x06\0\x02\x05\x04\x12\x03w\x04@\n\x0f\n\x08\x06\0\x02\ + \x05\x04\x9b\x08\0\x12\x03w\x04@\n\xbc\x01\n\x04\x06\0\x02\x06\x12\x05}\ + \x02\x82\x01\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\x20tabl\ + e,\x20or\x20only\x20those\x20that\x20match\x20a\n\x20particular\x20prefi\ + x.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03}\x06\x12\n\x0c\n\x05\x06\0\ + \x02\x06\x02\x12\x03}\x13&\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03}1F\n\ + \x0e\n\x05\x06\0\x02\x06\x04\x12\x05~\x04\x81\x01\x06\n\x12\n\t\x06\0\ + \x02\x06\x04\xb0\xca\xbc\"\x12\x05~\x04\x81\x01\x06\n\xf5\x01\n\x04\x06\ + \0\x02\x07\x12\x06\x88\x01\x02\x8e\x01\x03\x1a\xe4\x01\x20Generates\x20a\ + \x20consistency\x20token\x20for\x20a\x20Table,\x20which\x20can\x20be\x20\ + used\x20in\n\x20CheckConsistency\x20to\x20check\x20whether\x20mutations\ + \x20to\x20the\x20table\x20that\x20finished\n\x20before\x20this\x20call\ + \x20started\x20have\x20been\x20replicated.\x20The\x20tokens\x20will\x20b\ + e\x20available\n\x20for\x2090\x20days.\n\n\r\n\x05\x06\0\x02\x07\x01\x12\ + \x04\x88\x01\x06\x1e\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\x88\x01\x1f>\n\ + \r\n\x05\x06\0\x02\x07\x03\x12\x04\x88\x01Ii\n\x0f\n\x05\x06\0\x02\x07\ + \x04\x12\x06\x89\x01\x04\x8c\x01\x06\n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\ + \xbc\"\x12\x06\x89\x01\x04\x8c\x01\x06\n\r\n\x05\x06\0\x02\x07\x04\x12\ + \x04\x8d\x01\x042\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\0\x12\x04\x8d\ + \x01\x042\n\xbd\x01\n\x04\x06\0\x02\x08\x12\x06\x93\x01\x02\x99\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\r\n\x05\x06\0\ + \x02\x08\x01\x12\x04\x93\x01\x06\x16\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\ + \x93\x01\x17.\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\x93\x019Q\n\x0f\n\x05\ + \x06\0\x02\x08\x04\x12\x06\x94\x01\x04\x97\x01\x06\n\x13\n\t\x06\0\x02\ + \x08\x04\xb0\xca\xbc\"\x12\x06\x94\x01\x04\x97\x01\x06\n\r\n\x05\x06\0\ + \x02\x08\x04\x12\x04\x98\x01\x04D\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\ + \0\x12\x04\x98\x01\x04D\n\xca\x03\n\x04\x06\0\x02\t\x12\x06\xa3\x01\x02\ + \xad\x01\x03\x1a\xb9\x03\x20Creates\x20a\x20new\x20snapshot\x20in\x20the\ + \x20specified\x20cluster\x20from\x20the\x20specified\n\x20source\x20tabl\ + e.\x20The\x20cluster\x20and\x20the\x20table\x20must\x20be\x20in\x20the\ + \x20same\x20instance.\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\ + \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\t\x01\ + \x12\x04\xa3\x01\x06\x13\n\r\n\x05\x06\0\x02\t\x02\x12\x04\xa3\x01\x14(\ + \n\r\n\x05\x06\0\x02\t\x03\x12\x04\xa3\x013O\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\r\n\x05\x06\0\x02\t\x04\x12\x04\xa8\ + \x01\x04R\n\x10\n\x08\x06\0\x02\t\x04\x9b\x08\0\x12\x04\xa8\x01\x04R\n\ + \x0f\n\x05\x06\0\x02\t\x04\x12\x06\xa9\x01\x04\xac\x01\x06\n\x11\n\x07\ + \x06\0\x02\t\x04\x99\x08\x12\x06\xa9\x01\x04\xac\x01\x06\n\xf8\x02\n\x04\ + \x06\0\x02\n\x12\x06\xb6\x01\x02\xbb\x01\x03\x1a\xe7\x02\x20Gets\x20meta\ + data\x20information\x20about\x20the\x20specified\x20snapshot.\n\n\x20Not\ + e:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20B\ + igtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20\ + available\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20\ + feature\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\x20p\ + olicy.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xb6\x01\x06\x11\n\r\n\x05\x06\ + \0\x02\n\x02\x12\x04\xb6\x01\x12$\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xb6\ + \x01/7\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xb7\x01\x04\xb9\x01\x06\n\x13\ + \n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xb7\x01\x04\xb9\x01\x06\n\r\n\ + \x05\x06\0\x02\n\x04\x12\x04\xba\x01\x042\n\x10\n\x08\x06\0\x02\n\x04\ + \x9b\x08\0\x12\x04\xba\x01\x042\n\xfb\x02\n\x04\x06\0\x02\x0b\x12\x06\ + \xc4\x01\x02\xc9\x01\x03\x1a\xea\x02\x20Lists\x20all\x20snapshots\x20ass\ + ociated\x20with\x20the\x20specified\x20cluster.\n\n\x20Note:\x20This\x20\ + is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20sna\ + pshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20available\x20t\ + o\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\x20mig\ + ht\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\x0b\x01\x12\x04\xc4\x01\x06\x13\n\r\n\x05\x06\0\x02\x0b\ + \x02\x12\x04\xc4\x01\x14(\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\xc4\x013H\ + \n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xc5\x01\x04\xc7\x01\x06\n\x13\n\t\ + \x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xc5\x01\x04\xc7\x01\x06\n\r\n\ + \x05\x06\0\x02\x0b\x04\x12\x04\xc8\x01\x044\n\x10\n\x08\x06\0\x02\x0b\ + \x04\x9b\x08\0\x12\x04\xc8\x01\x044\n\xec\x02\n\x04\x06\0\x02\x0c\x12\ + \x06\xd2\x01\x02\xd7\x01\x03\x1a\xdb\x02\x20Permanently\x20deletes\x20th\ + e\x20specified\x20snapshot.\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\r\n\x05\x06\0\x02\ + \x0c\x01\x12\x04\xd2\x01\x06\x14\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xd2\ + \x01\x15*\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xd2\x015J\n\x0f\n\x05\x06\ + \0\x02\x0c\x04\x12\x06\xd3\x01\x04\xd5\x01\x06\n\x13\n\t\x06\0\x02\x0c\ + \x04\xb0\xca\xbc\"\x12\x06\xd3\x01\x04\xd5\x01\x06\n\r\n\x05\x06\0\x02\ + \x0c\x04\x12\x04\xd6\x01\x042\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\ + \x12\x04\xd6\x01\x042\n\x98\x04\n\x04\x06\0\x02\r\x12\x06\xe1\x01\x02\ + \xeb\x01\x03\x1a\x87\x04\x20Starts\x20creating\x20a\x20new\x20Cloud\x20B\ + igtable\x20Backup.\x20\x20The\x20returned\x20backup\n\x20[long-running\ + \x20operation][google.longrunning.Operation]\x20can\x20be\x20used\x20to\ + \n\x20track\x20creation\x20of\x20the\x20backup.\x20The\n\x20[metadata][g\ + oogle.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[Creat\ + eBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata].\x20The\ + \n\x20[response][google.longrunning.Operation.response]\x20field\x20type\ + \x20is\n\x20[Backup][google.bigtable.admin.v2.Backup],\x20if\x20successf\ + ul.\x20Cancelling\x20the\x20returned\x20operation\x20will\x20stop\x20the\ + \n\x20creation\x20and\x20delete\x20the\x20backup.\n\n\r\n\x05\x06\0\x02\ + \r\x01\x12\x04\xe1\x01\x06\x12\n\r\n\x05\x06\0\x02\r\x02\x12\x04\xe1\x01\ + \x13&\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xe1\x011M\n\x0f\n\x05\x06\0\x02\ + \r\x04\x12\x06\xe2\x01\x04\xe5\x01\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\ + \xbc\"\x12\x06\xe2\x01\x04\xe5\x01\x06\n\r\n\x05\x06\0\x02\r\x04\x12\x04\ + \xe6\x01\x04E\n\x10\n\x08\x06\0\x02\r\x04\x9b\x08\0\x12\x04\xe6\x01\x04E\ + \n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xe7\x01\x04\xea\x01\x06\n\x11\n\x07\ + \x06\0\x02\r\x04\x99\x08\x12\x06\xe7\x01\x04\xea\x01\x06\nP\n\x04\x06\0\ + \x02\x0e\x12\x06\xee\x01\x02\xf3\x01\x03\x1a@\x20Gets\x20metadata\x20on\ + \x20a\x20pending\x20or\x20completed\x20Cloud\x20Bigtable\x20Backup.\n\n\ + \r\n\x05\x06\0\x02\x0e\x01\x12\x04\xee\x01\x06\x0f\n\r\n\x05\x06\0\x02\ + \x0e\x02\x12\x04\xee\x01\x10\x20\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\xee\ + \x01+1\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xef\x01\x04\xf1\x01\x06\n\ + \x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xef\x01\x04\xf1\x01\x06\ + \n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\xf2\x01\x042\n\x10\n\x08\x06\0\x02\ + \x0e\x04\x9b\x08\0\x12\x04\xf2\x01\x042\nG\n\x04\x06\0\x02\x0f\x12\x06\ + \xf6\x01\x02\xfc\x01\x03\x1a7\x20Updates\x20a\x20pending\x20or\x20comple\ + ted\x20Cloud\x20Bigtable\x20Backup.\n\n\r\n\x05\x06\0\x02\x0f\x01\x12\ + \x04\xf6\x01\x06\x12\n\r\n\x05\x06\0\x02\x0f\x02\x12\x04\xf6\x01\x13&\n\ + \r\n\x05\x06\0\x02\x0f\x03\x12\x04\xf6\x0117\n\x0f\n\x05\x06\0\x02\x0f\ + \x04\x12\x06\xf7\x01\x04\xfa\x01\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\xca\ + \xbc\"\x12\x06\xf7\x01\x04\xfa\x01\x06\n\r\n\x05\x06\0\x02\x0f\x04\x12\ + \x04\xfb\x01\x04@\n\x10\n\x08\x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\xfb\ + \x01\x04@\nG\n\x04\x06\0\x02\x10\x12\x06\xff\x01\x02\x84\x02\x03\x1a7\ + \x20Deletes\x20a\x20pending\x20or\x20completed\x20Cloud\x20Bigtable\x20b\ + ackup.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\x04\xff\x01\x06\x12\n\r\n\x05\ + \x06\0\x02\x10\x02\x12\x04\xff\x01\x13&\n\r\n\x05\x06\0\x02\x10\x03\x12\ + \x04\xff\x011F\n\x0f\n\x05\x06\0\x02\x10\x04\x12\x06\x80\x02\x04\x82\x02\ + \x06\n\x13\n\t\x06\0\x02\x10\x04\xb0\xca\xbc\"\x12\x06\x80\x02\x04\x82\ + \x02\x06\n\r\n\x05\x06\0\x02\x10\x04\x12\x04\x83\x02\x042\n\x10\n\x08\ + \x06\0\x02\x10\x04\x9b\x08\0\x12\x04\x83\x02\x042\n\\\n\x04\x06\0\x02\ + \x11\x12\x06\x88\x02\x02\x8d\x02\x03\x1aL\x20Lists\x20Cloud\x20Bigtable\ + \x20backups.\x20Returns\x20both\x20completed\x20and\x20pending\n\x20back\ + ups.\n\n\r\n\x05\x06\0\x02\x11\x01\x12\x04\x88\x02\x06\x11\n\r\n\x05\x06\ + \0\x02\x11\x02\x12\x04\x88\x02\x12$\n\r\n\x05\x06\0\x02\x11\x03\x12\x04\ + \x88\x02/B\n\x0f\n\x05\x06\0\x02\x11\x04\x12\x06\x89\x02\x04\x8b\x02\x06\ + \n\x13\n\t\x06\0\x02\x11\x04\xb0\xca\xbc\"\x12\x06\x89\x02\x04\x8b\x02\ + \x06\n\r\n\x05\x06\0\x02\x11\x04\x12\x04\x8c\x02\x044\n\x10\n\x08\x06\0\ + \x02\x11\x04\x9b\x08\0\x12\x04\x8c\x02\x044\n\xb5\x04\n\x04\x06\0\x02\ + \x12\x12\x06\x97\x02\x02\xa0\x02\x03\x1a\xa4\x04\x20Create\x20a\x20new\ + \x20table\x20by\x20restoring\x20from\x20a\x20completed\x20backup.\x20The\ + \x20new\x20table\n\x20must\x20be\x20in\x20the\x20same\x20instance\x20as\ + \x20the\x20instance\x20containing\x20the\x20backup.\x20\x20The\n\x20retu\ + rned\x20table\x20[long-running\x20operation][google.longrunning.Operatio\ + n]\x20can\n\x20be\x20used\x20to\x20track\x20the\x20progress\x20of\x20the\ + \x20operation,\x20and\x20to\x20cancel\x20it.\x20\x20The\n\x20[metadata][\ + google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[Rest\ + oreTableMetadata][google.bigtable.admin.RestoreTableMetadata].\x20\x20Th\ + e\n\x20[response][google.longrunning.Operation.response]\x20type\x20is\n\ + \x20[Table][google.bigtable.admin.v2.Table],\x20if\x20successful.\n\n\r\ + \n\x05\x06\0\x02\x12\x01\x12\x04\x97\x02\x06\x12\n\r\n\x05\x06\0\x02\x12\ + \x02\x12\x04\x97\x02\x13&\n\r\n\x05\x06\0\x02\x12\x03\x12\x04\x97\x021M\ + \n\x0f\n\x05\x06\0\x02\x12\x04\x12\x06\x98\x02\x04\x9b\x02\x06\n\x13\n\t\ + \x06\0\x02\x12\x04\xb0\xca\xbc\"\x12\x06\x98\x02\x04\x9b\x02\x06\n\x0f\n\ + \x05\x06\0\x02\x12\x04\x12\x06\x9c\x02\x04\x9f\x02\x06\n\x11\n\x07\x06\0\ + \x02\x12\x04\x99\x08\x12\x06\x9c\x02\x04\x9f\x02\x06\n\xa2\x01\n\x04\x06\ + \0\x02\x13\x12\x06\xa5\x02\x02\xaf\x02\x03\x1a\x91\x01\x20Gets\x20the\ + \x20access\x20control\x20policy\x20for\x20a\x20Table\x20or\x20Backup\x20\ + resource.\n\x20Returns\x20an\x20empty\x20policy\x20if\x20the\x20resource\ + \x20exists\x20but\x20does\x20not\x20have\x20a\x20policy\n\x20set.\n\n\r\ + \n\x05\x06\0\x02\x13\x01\x12\x04\xa5\x02\x06\x12\n\r\n\x05\x06\0\x02\x13\ + \x02\x12\x04\xa5\x02\x134\n\r\n\x05\x06\0\x02\x13\x03\x12\x04\xa5\x02?S\ + \n\x0f\n\x05\x06\0\x02\x13\x04\x12\x06\xa6\x02\x04\xad\x02\x06\n\x13\n\t\ + \x06\0\x02\x13\x04\xb0\xca\xbc\"\x12\x06\xa6\x02\x04\xad\x02\x06\n\r\n\ + \x05\x06\0\x02\x13\x04\x12\x04\xae\x02\x046\n\x10\n\x08\x06\0\x02\x13\ + \x04\x9b\x08\0\x12\x04\xae\x02\x046\nn\n\x04\x06\0\x02\x14\x12\x06\xb3\ + \x02\x02\xbd\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\x14\x01\x12\x04\xb3\x02\ + \x06\x12\n\r\n\x05\x06\0\x02\x14\x02\x12\x04\xb3\x02\x134\n\r\n\x05\x06\ + \0\x02\x14\x03\x12\x04\xb3\x02?S\n\x0f\n\x05\x06\0\x02\x14\x04\x12\x06\ + \xb4\x02\x04\xbb\x02\x06\n\x13\n\t\x06\0\x02\x14\x04\xb0\xca\xbc\"\x12\ + \x06\xb4\x02\x04\xbb\x02\x06\n\r\n\x05\x06\0\x02\x14\x04\x12\x04\xbc\x02\ + \x04=\n\x10\n\x08\x06\0\x02\x14\x04\x9b\x08\0\x12\x04\xbc\x02\x04=\nd\n\ + \x04\x06\0\x02\x15\x12\x06\xc0\x02\x02\xca\x02\x03\x1aT\x20Returns\x20pe\ + rmissions\x20that\x20the\x20caller\x20has\x20on\x20the\x20specified\x20T\ + able\x20or\x20Backup\x20resource.\n\n\r\n\x05\x06\0\x02\x15\x01\x12\x04\ + \xc0\x02\x06\x18\n\r\n\x05\x06\0\x02\x15\x02\x12\x04\xc0\x02\x19@\n\r\n\ + \x05\x06\0\x02\x15\x03\x12\x04\xc0\x02Ks\n\x0f\n\x05\x06\0\x02\x15\x04\ + \x12\x06\xc1\x02\x04\xc8\x02\x06\n\x13\n\t\x06\0\x02\x15\x04\xb0\xca\xbc\ + \"\x12\x06\xc1\x02\x04\xc8\x02\x06\n\r\n\x05\x06\0\x02\x15\x04\x12\x04\ + \xc9\x02\x04B\n\x10\n\x08\x06\0\x02\x15\x04\x9b\x08\0\x12\x04\xc9\x02\ + \x04B\nj\n\x02\x04\0\x12\x06\xcf\x02\0\xe8\x02\x01\x1a\\\x20The\x20reque\ + st\x20for\n\x20[RestoreTable][google.bigtable.admin.v2.BigtableTableAdmi\ + n.RestoreTable].\n\n\x0b\n\x03\x04\0\x01\x12\x04\xcf\x02\x08\x1b\n\xd7\ + \x01\n\x04\x04\0\x02\0\x12\x06\xd3\x02\x02\xd8\x02\x04\x1a\xc6\x01\x20Re\ + quired.\x20The\x20name\x20of\x20the\x20instance\x20in\x20which\x20to\x20\ + create\x20the\x20restored\n\x20table.\x20This\x20instance\x20must\x20be\ + \x20the\x20parent\x20of\x20the\x20source\x20backup.\x20Values\x20are\n\ + \x20of\x20the\x20form\x20`projects//instances/`.\n\n\ + \x0f\n\x05\x04\0\x02\0\x04\x12\x06\xd3\x02\x02\xcf\x02\x1d\n\r\n\x05\x04\ + \0\x02\0\x05\x12\x04\xd3\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\ + \xd3\x02\t\x0f\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xd3\x02\x12\x13\n\x0f\n\ + \x05\x04\0\x02\0\x08\x12\x06\xd3\x02\x14\xd8\x02\x03\n\x10\n\x08\x04\0\ + \x02\0\x08\x9c\x08\0\x12\x04\xd4\x02\x04*\n\x11\n\x07\x04\0\x02\0\x08\ + \x9f\x08\x12\x06\xd5\x02\x04\xd7\x02\x05\n\xf5\x01\n\x04\x04\0\x02\x01\ + \x12\x04\xde\x02\x02?\x1a\xe6\x01\x20Required.\x20The\x20id\x20of\x20the\ + \x20table\x20to\x20create\x20and\x20restore\x20to.\x20This\n\x20table\ + \x20must\x20not\x20already\x20exist.\x20The\x20`table_id`\x20appended\ + \x20to\n\x20`parent`\x20forms\x20the\x20full\x20table\x20name\x20of\x20t\ + he\x20form\n\x20`projects//instances//tables/`.\n\n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\xde\x02\x02\xd8\x02\x04\n\r\ + \n\x05\x04\0\x02\x01\x05\x12\x04\xde\x02\x02\x08\n\r\n\x05\x04\0\x02\x01\ + \x01\x12\x04\xde\x02\t\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xde\x02\ + \x14\x15\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\xde\x02\x16>\n\x10\n\x08\ + \x04\0\x02\x01\x08\x9c\x08\0\x12\x04\xde\x02\x17=\n=\n\x04\x04\0\x08\0\ + \x12\x06\xe1\x02\x02\xe7\x02\x03\x1a-\x20Required.\x20The\x20source\x20f\ + rom\x20which\x20to\x20restore.\n\n\r\n\x05\x04\0\x08\0\x01\x12\x04\xe1\ + \x02\x08\x0e\n\xa4\x01\n\x04\x04\0\x02\x02\x12\x06\xe4\x02\x04\xe6\x02\ + \x1a\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\xe4\x02\x04\n\n\r\n\x05\x04\0\x02\x02\ + \x01\x12\x04\xe4\x02\x0b\x11\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xe4\x02\ + \x14\x15\n\x0f\n\x05\x04\0\x02\x02\x08\x12\x06\xe4\x02\x16\xe6\x02\x19\n\ + \x11\n\x07\x04\0\x02\x02\x08\x9f\x08\x12\x06\xe4\x02\x17\xe6\x02\x18\n\ + \x94\x01\n\x02\x04\x01\x12\x06\xec\x02\0\x87\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\xec\x02\x08\x1c\n@\n\x04\x04\ + \x01\x02\0\x12\x04\xee\x02\x02\x12\x1a2\x20Name\x20of\x20the\x20table\ + \x20being\x20created\x20and\x20restored\x20to.\n\n\x0f\n\x05\x04\x01\x02\ + \0\x04\x12\x06\xee\x02\x02\xec\x02\x1e\n\r\n\x05\x04\x01\x02\0\x05\x12\ + \x04\xee\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xee\x02\t\r\n\r\ + \n\x05\x04\x01\x02\0\x03\x12\x04\xee\x02\x10\x11\n/\n\x04\x04\x01\x02\ + \x01\x12\x04\xf1\x02\x02$\x1a!\x20The\x20type\x20of\x20the\x20restore\ + \x20source.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xf1\x02\x02\xee\ + \x02\x12\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xf1\x02\x02\x13\n\r\n\x05\ + \x04\x01\x02\x01\x01\x12\x04\xf1\x02\x14\x1f\n\r\n\x05\x04\x01\x02\x01\ + \x03\x12\x04\xf1\x02\"#\n\xac\x01\n\x04\x04\x01\x08\0\x12\x06\xf5\x02\ + \x02\xf7\x02\x03\x1a\x9b\x01\x20Information\x20about\x20the\x20source\ + \x20used\x20to\x20restore\x20the\x20table,\x20as\x20specified\x20by\n\ + \x20`source`\x20in\x20[RestoreTableRequest][google.bigtable.admin.v2.Res\ + toreTableRequest].\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\xf5\x02\x08\x13\ + \n\x0c\n\x04\x04\x01\x02\x02\x12\x04\xf6\x02\x04\x1f\n\r\n\x05\x04\x01\ + \x02\x02\x06\x12\x04\xf6\x02\x04\x0e\n\r\n\x05\x04\x01\x02\x02\x01\x12\ + \x04\xf6\x02\x0f\x1a\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xf6\x02\x1d\ + \x1e\n\xca\x04\n\x04\x04\x01\x02\x03\x12\x04\x82\x03\x02+\x1a\xbb\x04\ + \x20If\x20exists,\x20the\x20name\x20of\x20the\x20long-running\x20operati\ + on\x20that\x20will\x20be\x20used\x20to\n\x20track\x20the\x20post-restore\ + \x20optimization\x20process\x20to\x20optimize\x20the\x20performance\x20o\ + f\n\x20the\x20restored\x20table.\x20The\x20metadata\x20type\x20of\x20the\ + \x20long-running\x20operation\x20is\n\x20[OptimizeRestoreTableMetadata][\ + ].\x20The\x20response\x20type\x20is\n\x20[Empty][google.protobuf.Empty].\ + \x20This\x20long-running\x20operation\x20may\x20be\n\x20automatically\ + \x20created\x20by\x20the\x20system\x20if\x20applicable\x20after\x20the\n\ + \x20RestoreTable\x20long-running\x20operation\x20completes\x20successful\ + ly.\x20This\x20operation\n\x20may\x20not\x20be\x20created\x20if\x20the\ + \x20table\x20is\x20already\x20optimized\x20or\x20the\x20restore\x20was\n\ + \x20not\x20successful.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x82\x03\ + \x02\xf7\x02\x03\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\x82\x03\x02\x08\n\ + \r\n\x05\x04\x01\x02\x03\x01\x12\x04\x82\x03\t&\n\r\n\x05\x04\x01\x02\ + \x03\x03\x12\x04\x82\x03)*\nx\n\x04\x04\x01\x02\x04\x12\x04\x86\x03\x02!\ + \x1aj\x20The\x20progress\x20of\x20the\x20[RestoreTable][google.bigtable.\ + admin.v2.BigtableTableAdmin.RestoreTable]\n\x20operation.\n\n\x0f\n\x05\ + \x04\x01\x02\x04\x04\x12\x06\x86\x03\x02\x82\x03+\n\r\n\x05\x04\x01\x02\ + \x04\x06\x12\x04\x86\x03\x02\x13\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\ + \x86\x03\x14\x1c\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x86\x03\x1f\x20\n\ + \xa1\x02\n\x02\x04\x02\x12\x06\x8d\x03\0\x93\x03\x01\x1a\x92\x02\x20Meta\ + data\x20type\x20for\x20the\x20long-running\x20operation\x20used\x20to\ + \x20track\x20the\x20progress\n\x20of\x20optimizations\x20performed\x20on\ + \x20a\x20newly\x20restored\x20table.\x20This\x20long-running\n\x20operat\ + ion\x20is\x20automatically\x20created\x20by\x20the\x20system\x20after\ + \x20the\x20successful\n\x20completion\x20of\x20a\x20table\x20restore,\ + \x20and\x20cannot\x20be\x20cancelled.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\ + \x8d\x03\x08%\n;\n\x04\x04\x02\x02\0\x12\x04\x8f\x03\x02\x12\x1a-\x20Nam\ + e\x20of\x20the\x20restored\x20table\x20being\x20optimized.\n\n\x0f\n\x05\ + \x04\x02\x02\0\x04\x12\x06\x8f\x03\x02\x8d\x03'\n\r\n\x05\x04\x02\x02\0\ + \x05\x12\x04\x8f\x03\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x8f\x03\ + \t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x8f\x03\x10\x11\n?\n\x04\x04\ + \x02\x02\x01\x12\x04\x92\x03\x02!\x1a1\x20The\x20progress\x20of\x20the\ + \x20post-restore\x20optimizations.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\ + \x06\x92\x03\x02\x8f\x03\x12\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\x92\ + \x03\x02\x13\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x92\x03\x14\x1c\n\r\n\ + \x05\x04\x02\x02\x01\x03\x12\x04\x92\x03\x1f\x20\n\x98\x01\n\x02\x04\x03\ + \x12\x06\x97\x03\0\xc0\x03\x01\x1a\x89\x01\x20Request\x20message\x20for\ + \n\x20[google.bigtable.admin.v2.BigtableTableAdmin.CreateTable][google.b\ + igtable.admin.v2.BigtableTableAdmin.CreateTable]\n\n\x0b\n\x03\x04\x03\ + \x01\x12\x04\x97\x03\x08\x1a\nC\n\x04\x04\x03\x03\0\x12\x06\x99\x03\x02\ + \x9c\x03\x03\x1a3\x20An\x20initial\x20split\x20point\x20for\x20a\x20newl\ + y\x20created\x20table.\n\n\r\n\x05\x04\x03\x03\0\x01\x12\x04\x99\x03\n\ + \x0f\n?\n\x06\x04\x03\x03\0\x02\0\x12\x04\x9b\x03\x04\x12\x1a/\x20Row\ + \x20key\x20to\x20use\x20as\x20an\x20initial\x20tablet\x20boundary.\n\n\ + \x11\n\x07\x04\x03\x03\0\x02\0\x04\x12\x06\x9b\x03\x04\x99\x03\x11\n\x0f\ + \n\x07\x04\x03\x03\0\x02\0\x05\x12\x04\x9b\x03\x04\t\n\x0f\n\x07\x04\x03\ + \x03\0\x02\0\x01\x12\x04\x9b\x03\n\r\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\ + \x12\x04\x9b\x03\x10\x11\n\x9d\x01\n\x04\x04\x03\x02\0\x12\x06\xa0\x03\ + \x02\xa5\x03\x04\x1a\x8c\x01\x20Required.\x20The\x20unique\x20name\x20of\ + \x20the\x20instance\x20in\x20which\x20to\x20create\x20the\x20table.\n\ + \x20Values\x20are\x20of\x20the\x20form\x20`projects/{project}/instances/\ + {instance}`.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\x06\xa0\x03\x02\x9c\x03\ + \x03\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\ + \xba\x01\n\x04\x04\x03\x02\x01\x12\x04\xaa\x03\x02?\x1a\xab\x01\x20Requi\ + red.\x20The\x20name\x20by\x20which\x20the\x20new\x20table\x20should\x20b\ + e\x20referred\x20to\x20within\x20the\x20parent\n\x20instance,\x20e.g.,\ + \x20`foobar`\x20rather\x20than\x20`{parent}/tables/foobar`.\n\x20Maximum\ + \x2050\x20characters.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xaa\x03\ + \x02\xa5\x03\x04\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xaa\x03\x02\x08\n\ + \r\n\x05\x04\x03\x02\x01\x01\x12\x04\xaa\x03\t\x11\n\r\n\x05\x04\x03\x02\ + \x01\x03\x12\x04\xaa\x03\x14\x15\n\r\n\x05\x04\x03\x02\x01\x08\x12\x04\ + \xaa\x03\x16>\n\x10\n\x08\x04\x03\x02\x01\x08\x9c\x08\0\x12\x04\xaa\x03\ + \x17=\n.\n\x04\x04\x03\x02\x02\x12\x04\xad\x03\x02;\x1a\x20\x20Required.\ + \x20The\x20Table\x20to\x20create.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\ + \x06\xad\x03\x02\xaa\x03?\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\xad\x03\ + \x02\x07\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xad\x03\x08\r\n\r\n\x05\ + \x04\x03\x02\x02\x03\x12\x04\xad\x03\x10\x11\n\r\n\x05\x04\x03\x02\x02\ + \x08\x12\x04\xad\x03\x12:\n\x10\n\x08\x04\x03\x02\x02\x08\x9c\x08\0\x12\ + \x04\xad\x03\x139\n\x99\x06\n\x04\x04\x03\x02\x03\x12\x04\xbf\x03\x02$\ + \x1a\x8a\x06\x20The\x20optional\x20list\x20of\x20row\x20keys\x20that\x20\ + will\x20be\x20used\x20to\x20initially\x20split\x20the\n\x20table\x20into\ + \x20several\x20tablets\x20(tablets\x20are\x20similar\x20to\x20HBase\x20r\ + egions).\n\x20Given\x20two\x20split\x20keys,\x20`s1`\x20and\x20`s2`,\x20\ + three\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*\x20in\ + itial_split_keys\x20:=\x20`[\"apple\",\x20\"customer_1\",\x20\"customer_\ + 2\",\x20\"other\"]`\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\ + ,\x20customer_2)\x20=>\x20{\"customer_1\"}.`\n\x20\x20\x20\x20\x20-\x20T\ + ablet\x204\x20`[customer_2,\x20other)\x20\x20\x20\x20\x20\x20=>\x20{\"cu\ + stomer_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{\"oth\ + er\",\x20\"zz\"}.`\n\n\r\n\x05\x04\x03\x02\x03\x04\x12\x04\xbf\x03\x02\n\ + \n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xbf\x03\x0b\x10\n\r\n\x05\x04\x03\ + \x02\x03\x01\x12\x04\xbf\x03\x11\x1f\n\r\n\x05\x04\x03\x02\x03\x03\x12\ + \x04\xbf\x03\"#\n\xdd\x03\n\x02\x04\x04\x12\x06\xc9\x03\0\xe1\x03\x01\ + \x1a\xce\x03\x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2\ + .BigtableTableAdmin.CreateTableFromSnapshot][google.bigtable.admin.v2.Bi\ + gtableTableAdmin.CreateTableFromSnapshot]\n\n\x20Note:\x20This\x20is\x20\ + a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots\ + .\x20This\n\x20feature\x20is\x20not\x20currently\x20available\x20to\x20m\ + ost\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\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\x0b\n\x03\ + \x04\x04\x01\x12\x04\xc9\x03\x08&\n\x9d\x01\n\x04\x04\x04\x02\0\x12\x06\ + \xcc\x03\x02\xd1\x03\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\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xcc\x03\x02\ + \xc9\x03(\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xcc\x03\x02\x08\n\r\n\x05\ + \x04\x04\x02\0\x01\x12\x04\xcc\x03\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\ + \x04\xcc\x03\x12\x13\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xcc\x03\x14\ + \xd1\x03\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xcd\x03\x04\ + *\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\xce\x03\x04\xd0\x03\x05\ + \n\xa2\x01\n\x04\x04\x04\x02\x01\x12\x04\xd5\x03\x02?\x1a\x93\x01\x20Req\ + uired.\x20The\x20name\x20by\x20which\x20the\x20new\x20table\x20should\ + \x20be\x20referred\x20to\x20within\x20the\x20parent\n\x20instance,\x20e.\ + g.,\x20`foobar`\x20rather\x20than\x20`{parent}/tables/foobar`.\n\n\x0f\n\ + \x05\x04\x04\x02\x01\x04\x12\x06\xd5\x03\x02\xd1\x03\x04\n\r\n\x05\x04\ + \x04\x02\x01\x05\x12\x04\xd5\x03\x02\x08\n\r\n\x05\x04\x04\x02\x01\x01\ + \x12\x04\xd5\x03\t\x11\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xd5\x03\x14\ + \x15\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xd5\x03\x16>\n\x10\n\x08\x04\ + \x04\x02\x01\x08\x9c\x08\0\x12\x04\xd5\x03\x17=\n\x83\x02\n\x04\x04\x04\ + \x02\x02\x12\x06\xdb\x03\x02\xe0\x03\x04\x1a\xf2\x01\x20Required.\x20The\ + \x20unique\x20name\x20of\x20the\x20snapshot\x20from\x20which\x20to\x20re\ + store\x20the\x20table.\x20The\n\x20snapshot\x20and\x20the\x20table\x20mu\ + st\x20be\x20in\x20the\x20same\x20instance.\n\x20Values\x20are\x20of\x20t\ + he\x20form\n\x20`projects/{project}/instances/{instance}/clusters/{clust\ + er}/snapshots/{snapshot}`.\n\n\x0f\n\x05\x04\x04\x02\x02\x04\x12\x06\xdb\ + \x03\x02\xd5\x03?\n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\xdb\x03\x02\x08\ + \n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\xdb\x03\t\x18\n\r\n\x05\x04\x04\ + \x02\x02\x03\x12\x04\xdb\x03\x1b\x1c\n\x0f\n\x05\x04\x04\x02\x02\x08\x12\ + \x06\xdb\x03\x1d\xe0\x03\x03\n\x10\n\x08\x04\x04\x02\x02\x08\x9c\x08\0\ + \x12\x04\xdc\x03\x04*\n\x11\n\x07\x04\x04\x02\x02\x08\x9f\x08\x12\x06\ + \xdd\x03\x04\xdf\x03\x05\n\x9a\x01\n\x02\x04\x05\x12\x06\xe5\x03\0\xf9\ + \x03\x01\x1a\x8b\x01\x20Request\x20message\x20for\n\x20[google.bigtable.\ + admin.v2.BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.Bigta\ + bleTableAdmin.DropRowRange]\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xe5\x03\ + \x08\x1b\n\xae\x01\n\x04\x04\x05\x02\0\x12\x06\xe9\x03\x02\xee\x03\x04\ + \x1a\x9d\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\ + \x20on\x20which\x20to\x20drop\x20a\x20range\x20of\x20rows.\n\x20Values\ + \x20are\x20of\x20the\x20form\n\x20`projects/{project}/instances/{instanc\ + e}/tables/{table}`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xe9\x03\x02\ + \xe5\x03\x1d\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xe9\x03\x02\x08\n\r\n\ + \x05\x04\x05\x02\0\x01\x12\x04\xe9\x03\t\r\n\r\n\x05\x04\x05\x02\0\x03\ + \x12\x04\xe9\x03\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xe9\x03\ + \x12\xee\x03\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xea\x03\ + \x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xeb\x03\x04\xed\x03\ + \x05\n/\n\x04\x04\x05\x08\0\x12\x06\xf1\x03\x02\xf8\x03\x03\x1a\x1f\x20D\ + elete\x20all\x20rows\x20or\x20by\x20prefix.\n\n\r\n\x05\x04\x05\x08\0\ + \x01\x12\x04\xf1\x03\x08\x0e\nc\n\x04\x04\x05\x02\x01\x12\x04\xf4\x03\ + \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\x05\x02\x01\x05\x12\x04\xf4\x03\x04\t\n\r\n\x05\x04\x05\ + \x02\x01\x01\x12\x04\xf4\x03\n\x18\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\ + \xf4\x03\x1b\x1c\nO\n\x04\x04\x05\x02\x02\x12\x04\xf7\x03\x04(\x1aA\x20D\ + elete\x20all\x20rows\x20in\x20the\x20table.\x20Setting\x20this\x20to\x20\ + false\x20is\x20a\x20no-op.\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\xf7\ + \x03\x04\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xf7\x03\t#\n\r\n\x05\ + \x04\x05\x02\x02\x03\x12\x04\xf7\x03&'\n\x96\x01\n\x02\x04\x06\x12\x06\ + \xfd\x03\0\x98\x04\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\x06\x01\x12\x04\ + \xfd\x03\x08\x19\n\xa2\x01\n\x04\x04\x06\x02\0\x12\x06\x80\x04\x02\x85\ + \x04\x04\x1a\x91\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\ + \x20instance\x20for\x20which\x20tables\x20should\x20be\x20listed.\n\x20V\ + alues\x20are\x20of\x20the\x20form\x20`projects/{project}/instances/{inst\ + ance}`.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\x80\x04\x02\xfd\x03\x1b\ + \n\r\n\x05\x04\x06\x02\0\x05\x12\x04\x80\x04\x02\x08\n\r\n\x05\x04\x06\ + \x02\0\x01\x12\x04\x80\x04\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\x80\ + \x04\x12\x13\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\x80\x04\x14\x85\x04\ + \x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\x81\x04\x04*\n\x11\ + \n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\x82\x04\x04\x84\x04\x05\n\x89\ + \x01\n\x04\x04\x06\x02\x01\x12\x04\x89\x04\x02\x16\x1a{\x20The\x20view\ + \x20to\x20be\x20applied\x20to\x20the\x20returned\x20tables'\x20fields.\n\ + \x20Only\x20NAME_ONLY\x20view\x20(default)\x20and\x20REPLICATION_VIEW\ + \x20are\x20supported.\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\x89\x04\ + \x02\x85\x04\x04\n\r\n\x05\x04\x06\x02\x01\x06\x12\x04\x89\x04\x02\x0c\n\ + \r\n\x05\x04\x06\x02\x01\x01\x12\x04\x89\x04\r\x11\n\r\n\x05\x04\x06\x02\ + \x01\x03\x12\x04\x89\x04\x14\x15\n\xbd\x03\n\x04\x04\x06\x02\x02\x12\x04\ + \x94\x04\x02\x16\x1a\xae\x03\x20Maximum\x20number\x20of\x20results\x20pe\ + r\x20page.\n\n\x20A\x20page_size\x20of\x20zero\x20lets\x20the\x20server\ + \x20choose\x20the\x20number\x20of\x20items\x20to\x20return.\n\x20A\x20pa\ + ge_size\x20which\x20is\x20strictly\x20positive\x20will\x20return\x20at\ + \x20most\x20that\x20many\x20items.\n\x20A\x20negative\x20page_size\x20wi\ + ll\x20cause\x20an\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\x0f\n\x05\x04\x06\x02\ + \x02\x04\x12\x06\x94\x04\x02\x89\x04\x16\n\r\n\x05\x04\x06\x02\x02\x05\ + \x12\x04\x94\x04\x02\x07\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\x94\x04\ + \x08\x11\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\x94\x04\x14\x15\nK\n\x04\ + \x04\x06\x02\x03\x12\x04\x97\x04\x02\x18\x1a=\x20The\x20value\x20of\x20`\ + next_page_token`\x20returned\x20by\x20a\x20previous\x20call.\n\n\x0f\n\ + \x05\x04\x06\x02\x03\x04\x12\x06\x97\x04\x02\x94\x04\x16\n\r\n\x05\x04\ + \x06\x02\x03\x05\x12\x04\x97\x04\x02\x08\n\r\n\x05\x04\x06\x02\x03\x01\ + \x12\x04\x97\x04\t\x13\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\x97\x04\x16\ + \x17\n\x97\x01\n\x02\x04\x07\x12\x06\x9c\x04\0\xa4\x04\x01\x1a\x88\x01\ + \x20Response\x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTa\ + bleAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTab\ + les]\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x9c\x04\x08\x1a\n=\n\x04\x04\x07\ + \x02\0\x12\x04\x9e\x04\x02\x1c\x1a/\x20The\x20tables\x20present\x20in\ + \x20the\x20requested\x20instance.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\ + \x9e\x04\x02\n\n\r\n\x05\x04\x07\x02\0\x06\x12\x04\x9e\x04\x0b\x10\n\r\n\ + \x05\x04\x07\x02\0\x01\x12\x04\x9e\x04\x11\x17\n\r\n\x05\x04\x07\x02\0\ + \x03\x12\x04\x9e\x04\x1a\x1b\n\xa4\x01\n\x04\x04\x07\x02\x01\x12\x04\xa3\ + \x04\x02\x1d\x1a\x95\x01\x20Set\x20if\x20not\x20all\x20tables\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\x0f\n\x05\x04\x07\x02\ + \x01\x04\x12\x06\xa3\x04\x02\x9e\x04\x1c\n\r\n\x05\x04\x07\x02\x01\x05\ + \x12\x04\xa3\x04\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xa3\x04\t\ + \x18\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xa3\x04\x1b\x1c\n\x92\x01\n\ + \x02\x04\x08\x12\x06\xa8\x04\0\xb6\x04\x01\x1a\x83\x01\x20Request\x20mes\ + sage\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.GetTable][\ + google.bigtable.admin.v2.BigtableTableAdmin.GetTable]\n\n\x0b\n\x03\x04\ + \x08\x01\x12\x04\xa8\x04\x08\x17\n\x97\x01\n\x04\x04\x08\x02\0\x12\x06\ + \xac\x04\x02\xb1\x04\x04\x1a\x86\x01\x20Required.\x20The\x20unique\x20na\ + me\x20of\x20the\x20requested\x20table.\n\x20Values\x20are\x20of\x20the\ + \x20form\n\x20`projects/{project}/instances/{instance}/tables/{table}`.\ + \n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xac\x04\x02\xa8\x04\x19\n\r\n\ + \x05\x04\x08\x02\0\x05\x12\x04\xac\x04\x02\x08\n\r\n\x05\x04\x08\x02\0\ + \x01\x12\x04\xac\x04\t\r\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xac\x04\x10\ + \x11\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xac\x04\x12\xb1\x04\x03\n\x10\ + \n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xad\x04\x04*\n\x11\n\x07\x04\ + \x08\x02\0\x08\x9f\x08\x12\x06\xae\x04\x04\xb0\x04\x05\nq\n\x04\x04\x08\ + \x02\x01\x12\x04\xb5\x04\x02\x16\x1ac\x20The\x20view\x20to\x20be\x20appl\ + ied\x20to\x20the\x20returned\x20table's\x20fields.\n\x20Defaults\x20to\ + \x20`SCHEMA_VIEW`\x20if\x20unspecified.\n\n\x0f\n\x05\x04\x08\x02\x01\ + \x04\x12\x06\xb5\x04\x02\xb1\x04\x04\n\r\n\x05\x04\x08\x02\x01\x06\x12\ + \x04\xb5\x04\x02\x0c\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xb5\x04\r\x11\ + \n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xb5\x04\x14\x15\n\x98\x01\n\x02\ + \x04\t\x12\x06\xba\x04\0\xc4\x04\x01\x1a\x89\x01\x20Request\x20message\ + \x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][g\ + oogle.bigtable.admin.v2.BigtableTableAdmin.DeleteTable]\n\n\x0b\n\x03\ + \x04\t\x01\x12\x04\xba\x04\x08\x1a\n\x9b\x01\n\x04\x04\t\x02\0\x12\x06\ + \xbe\x04\x02\xc3\x04\x04\x1a\x8a\x01\x20Required.\x20The\x20unique\x20na\ + me\x20of\x20the\x20table\x20to\x20be\x20deleted.\n\x20Values\x20are\x20o\ + f\x20the\x20form\n\x20`projects/{project}/instances/{instance}/tables/{t\ + able}`.\n\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\xbe\x04\x02\xba\x04\x1c\n\ + \r\n\x05\x04\t\x02\0\x05\x12\x04\xbe\x04\x02\x08\n\r\n\x05\x04\t\x02\0\ + \x01\x12\x04\xbe\x04\t\r\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xbe\x04\x10\ + \x11\n\x0f\n\x05\x04\t\x02\0\x08\x12\x06\xbe\x04\x12\xc3\x04\x03\n\x10\n\ + \x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xbf\x04\x04*\n\x11\n\x07\x04\t\ + \x02\0\x08\x9f\x08\x12\x06\xc0\x04\x04\xc2\x04\x05\n\xaa\x01\n\x02\x04\n\ + \x12\x06\xc8\x04\0\xed\x04\x01\x1a\x9b\x01\x20Request\x20message\x20for\ + \n\x20[google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies]\ + [google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies]\n\n\ + \x0b\n\x03\x04\n\x01\x12\x04\xc8\x04\x08#\nL\n\x04\x04\n\x03\0\x12\x06\ + \xca\x04\x02\xdc\x04\x03\x1a<\x20A\x20create,\x20update,\x20or\x20delete\ + \x20of\x20a\x20particular\x20column\x20family.\n\n\r\n\x05\x04\n\x03\0\ + \x01\x12\x04\xca\x04\n\x16\n=\n\x06\x04\n\x03\0\x02\0\x12\x04\xcc\x04\ + \x04\x12\x1a-\x20The\x20ID\x20of\x20the\x20column\x20family\x20to\x20be\ + \x20modified.\n\n\x11\n\x07\x04\n\x03\0\x02\0\x04\x12\x06\xcc\x04\x04\ + \xca\x04\x18\n\x0f\n\x07\x04\n\x03\0\x02\0\x05\x12\x04\xcc\x04\x04\n\n\ + \x0f\n\x07\x04\n\x03\0\x02\0\x01\x12\x04\xcc\x04\x0b\r\n\x0f\n\x07\x04\n\ + \x03\0\x02\0\x03\x12\x04\xcc\x04\x10\x11\n1\n\x06\x04\n\x03\0\x08\0\x12\ + \x06\xcf\x04\x04\xdb\x04\x05\x1a\x1f\x20Column\x20familiy\x20modificatio\ + ns.\n\n\x0f\n\x07\x04\n\x03\0\x08\0\x01\x12\x04\xcf\x04\n\r\ny\n\x06\x04\ + \n\x03\0\x02\x01\x12\x04\xd2\x04\x06\x1e\x1ai\x20Create\x20a\x20new\x20c\ + olumn\x20family\x20with\x20the\x20specified\x20schema,\x20or\x20fail\x20\ + if\n\x20one\x20already\x20exists\x20with\x20the\x20given\x20ID.\n\n\x0f\ + \n\x07\x04\n\x03\0\x02\x01\x06\x12\x04\xd2\x04\x06\x12\n\x0f\n\x07\x04\n\ + \x03\0\x02\x01\x01\x12\x04\xd2\x04\x13\x19\n\x0f\n\x07\x04\n\x03\0\x02\ + \x01\x03\x12\x04\xd2\x04\x1c\x1d\n\x82\x01\n\x06\x04\n\x03\0\x02\x02\x12\ + \x04\xd6\x04\x06\x1e\x1ar\x20Update\x20an\x20existing\x20column\x20famil\ + y\x20to\x20the\x20specified\x20schema,\x20or\x20fail\n\x20if\x20no\x20co\ + lumn\x20family\x20exists\x20with\x20the\x20given\x20ID.\n\n\x0f\n\x07\ + \x04\n\x03\0\x02\x02\x06\x12\x04\xd6\x04\x06\x12\n\x0f\n\x07\x04\n\x03\0\ + \x02\x02\x01\x12\x04\xd6\x04\x13\x19\n\x0f\n\x07\x04\n\x03\0\x02\x02\x03\ + \x12\x04\xd6\x04\x1c\x1d\ng\n\x06\x04\n\x03\0\x02\x03\x12\x04\xda\x04\ + \x06\x14\x1aW\x20Drop\x20(delete)\x20the\x20column\x20family\x20with\x20\ + the\x20given\x20ID,\x20or\x20fail\x20if\x20no\x20such\n\x20family\x20exi\ + sts.\n\n\x0f\n\x07\x04\n\x03\0\x02\x03\x05\x12\x04\xda\x04\x06\n\n\x0f\n\ + \x07\x04\n\x03\0\x02\x03\x01\x12\x04\xda\x04\x0b\x0f\n\x0f\n\x07\x04\n\ + \x03\0\x02\x03\x03\x12\x04\xda\x04\x12\x13\n\xaf\x01\n\x04\x04\n\x02\0\ + \x12\x06\xe1\x04\x02\xe6\x04\x04\x1a\x9e\x01\x20Required.\x20The\x20uniq\ + ue\x20name\x20of\x20the\x20table\x20whose\x20families\x20should\x20be\ + \x20modified.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{pr\ + oject}/instances/{instance}/tables/{table}`.\n\n\x0f\n\x05\x04\n\x02\0\ + \x04\x12\x06\xe1\x04\x02\xdc\x04\x03\n\r\n\x05\x04\n\x02\0\x05\x12\x04\ + \xe1\x04\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xe1\x04\t\r\n\r\n\x05\ + \x04\n\x02\0\x03\x12\x04\xe1\x04\x10\x11\n\x0f\n\x05\x04\n\x02\0\x08\x12\ + \x06\xe1\x04\x12\xe6\x04\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\ + \x04\xe2\x04\x04*\n\x11\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x06\xe3\x04\ + \x04\xe5\x04\x05\n\x87\x02\n\x04\x04\n\x02\x01\x12\x04\xec\x04\x02S\x1a\ + \xf8\x01\x20Required.\x20Modifications\x20to\x20be\x20atomically\x20appl\ + ied\x20to\x20the\x20specified\x20table's\x20families.\n\x20Entries\x20ar\ + e\x20applied\x20in\x20order,\x20meaning\x20that\x20earlier\x20modificati\ + ons\x20can\x20be\n\x20masked\x20by\x20later\x20ones\x20(in\x20the\x20cas\ + e\x20of\x20repeated\x20updates\x20to\x20the\x20same\x20family,\n\x20for\ + \x20example).\n\n\r\n\x05\x04\n\x02\x01\x04\x12\x04\xec\x04\x02\n\n\r\n\ + \x05\x04\n\x02\x01\x06\x12\x04\xec\x04\x0b\x17\n\r\n\x05\x04\n\x02\x01\ + \x01\x12\x04\xec\x04\x18%\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xec\x04()\ + \n\r\n\x05\x04\n\x02\x01\x08\x12\x04\xec\x04*R\n\x10\n\x08\x04\n\x02\x01\ + \x08\x9c\x08\0\x12\x04\xec\x04+Q\n\xb2\x01\n\x02\x04\x0b\x12\x06\xf1\x04\ + \0\xfb\x04\x01\x1a\xa3\x01\x20Request\x20message\x20for\n\x20[google.big\ + table.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigta\ + ble.admin.v2.BigtableTableAdmin.GenerateConsistencyToken]\n\n\x0b\n\x03\ + \x04\x0b\x01\x12\x04\xf1\x04\x08'\n\xb5\x01\n\x04\x04\x0b\x02\0\x12\x06\ + \xf5\x04\x02\xfa\x04\x04\x1a\xa4\x01\x20Required.\x20The\x20unique\x20na\ + me\x20of\x20the\x20Table\x20for\x20which\x20to\x20create\x20a\x20consist\ + ency\x20token.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{p\ + roject}/instances/{instance}/tables/{table}`.\n\n\x0f\n\x05\x04\x0b\x02\ + \0\x04\x12\x06\xf5\x04\x02\xf1\x04)\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\ + \xf5\x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xf5\x04\t\r\n\r\n\ + \x05\x04\x0b\x02\0\x03\x12\x04\xf5\x04\x10\x11\n\x0f\n\x05\x04\x0b\x02\0\ + \x08\x12\x06\xf5\x04\x12\xfa\x04\x03\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\ + \x08\0\x12\x04\xf6\x04\x04*\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\ + \x06\xf7\x04\x04\xf9\x04\x05\n\xb3\x01\n\x02\x04\x0c\x12\x06\xff\x04\0\ + \x82\x05\x01\x1a\xa4\x01\x20Response\x20message\x20for\n\x20[google.bigt\ + able.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtab\ + le.admin.v2.BigtableTableAdmin.GenerateConsistencyToken]\n\n\x0b\n\x03\ + \x04\x0c\x01\x12\x04\xff\x04\x08(\n0\n\x04\x04\x0c\x02\0\x12\x04\x81\x05\ + \x02\x1f\x1a\"\x20The\x20generated\x20consistency\x20token.\n\n\x0f\n\ + \x05\x04\x0c\x02\0\x04\x12\x06\x81\x05\x02\xff\x04*\n\r\n\x05\x04\x0c\ + \x02\0\x05\x12\x04\x81\x05\x02\x08\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\ + \x81\x05\t\x1a\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x81\x05\x1d\x1e\n\xa2\ + \x01\n\x02\x04\r\x12\x06\x86\x05\0\x93\x05\x01\x1a\x93\x01\x20Request\ + \x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.Che\ + ckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsiste\ + ncy]\n\n\x0b\n\x03\x04\r\x01\x12\x04\x86\x05\x08\x1f\n\xb8\x01\n\x04\x04\ + \r\x02\0\x12\x06\x8a\x05\x02\x8f\x05\x04\x1a\xa7\x01\x20Required.\x20The\ + \x20unique\x20name\x20of\x20the\x20Table\x20for\x20which\x20to\x20check\ + \x20replication\x20consistency.\n\x20Values\x20are\x20of\x20the\x20form\ + \n\x20`projects/{project}/instances/{instance}/tables/{table}`.\n\n\x0f\ + \n\x05\x04\r\x02\0\x04\x12\x06\x8a\x05\x02\x86\x05!\n\r\n\x05\x04\r\x02\ + \0\x05\x12\x04\x8a\x05\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\x8a\x05\ + \t\r\n\r\n\x05\x04\r\x02\0\x03\x12\x04\x8a\x05\x10\x11\n\x0f\n\x05\x04\r\ + \x02\0\x08\x12\x06\x8a\x05\x12\x8f\x05\x03\n\x10\n\x08\x04\r\x02\0\x08\ + \x9c\x08\0\x12\x04\x8b\x05\x04*\n\x11\n\x07\x04\r\x02\0\x08\x9f\x08\x12\ + \x06\x8c\x05\x04\x8e\x05\x05\nY\n\x04\x04\r\x02\x01\x12\x04\x92\x05\x02H\ + \x1aK\x20Required.\x20The\x20token\x20created\x20using\x20GenerateConsis\ + tencyToken\x20for\x20the\x20Table.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\ + \x06\x92\x05\x02\x8f\x05\x04\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\x92\x05\ + \x02\x08\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\x92\x05\t\x1a\n\r\n\x05\x04\ + \r\x02\x01\x03\x12\x04\x92\x05\x1d\x1e\n\r\n\x05\x04\r\x02\x01\x08\x12\ + \x04\x92\x05\x1fG\n\x10\n\x08\x04\r\x02\x01\x08\x9c\x08\0\x12\x04\x92\ + \x05\x20F\n\xa3\x01\n\x02\x04\x0e\x12\x06\x97\x05\0\x9b\x05\x01\x1a\x94\ + \x01\x20Response\x20message\x20for\n\x20[google.bigtable.admin.v2.Bigtab\ + leTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdm\ + in.CheckConsistency]\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x97\x05\x08\x20\n\ + \x9a\x01\n\x04\x04\x0e\x02\0\x12\x04\x9a\x05\x02\x16\x1a\x8b\x01\x20True\ + \x20only\x20if\x20the\x20token\x20is\x20consistent.\x20A\x20token\x20is\ + \x20consistent\x20if\x20replication\n\x20has\x20caught\x20up\x20with\x20\ + the\x20restrictions\x20specified\x20in\x20the\x20request.\n\n\x0f\n\x05\ + \x04\x0e\x02\0\x04\x12\x06\x9a\x05\x02\x97\x05\"\n\r\n\x05\x04\x0e\x02\0\ + \x05\x12\x04\x9a\x05\x02\x06\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\x9a\x05\ + \x07\x11\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x9a\x05\x14\x15\n\xc9\x03\n\ + \x02\x04\x0f\x12\x06\xa4\x05\0\xc7\x05\x01\x1a\xba\x03\x20Request\x20mes\ + sage\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTa\ + ble][google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable]\n\n\x20N\ + ote:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\ + \x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currentl\ + y\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\ + \n\x20feature\x20might\x20be\x20changed\x20in\x20backward-incompatible\ + \x20ways\x20and\x20is\x20not\x20recommended\n\x20for\x20production\x20us\ + e.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecatio\ + n\x20policy.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xa4\x05\x08\x1c\n\xa8\x01\ + \n\x04\x04\x0f\x02\0\x12\x06\xa8\x05\x02\xad\x05\x04\x1a\x97\x01\x20Requ\ + ired.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20have\x20th\ + e\x20snapshot\x20taken.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`pr\ + ojects/{project}/instances/{instance}/tables/{table}`.\n\n\x0f\n\x05\x04\ + \x0f\x02\0\x04\x12\x06\xa8\x05\x02\xa4\x05\x1e\n\r\n\x05\x04\x0f\x02\0\ + \x05\x12\x04\xa8\x05\x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xa8\x05\ + \t\r\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xa8\x05\x10\x11\n\x0f\n\x05\x04\ + \x0f\x02\0\x08\x12\x06\xa8\x05\x12\xad\x05\x03\n\x10\n\x08\x04\x0f\x02\0\ + \x08\x9c\x08\0\x12\x04\xa9\x05\x04*\n\x11\n\x07\x04\x0f\x02\0\x08\x9f\ + \x08\x12\x06\xaa\x05\x04\xac\x05\x05\n\xb2\x01\n\x04\x04\x0f\x02\x01\x12\ + \x06\xb2\x05\x02\xb7\x05\x04\x1a\xa1\x01\x20Required.\x20The\x20name\x20\ + of\x20the\x20cluster\x20where\x20the\x20snapshot\x20will\x20be\x20create\ + d\x20in.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project\ + }/instances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\x0f\x02\ + \x01\x04\x12\x06\xb2\x05\x02\xad\x05\x04\n\r\n\x05\x04\x0f\x02\x01\x05\ + \x12\x04\xb2\x05\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\xb2\x05\t\ + \x10\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\xb2\x05\x13\x14\n\x0f\n\x05\ + \x04\x0f\x02\x01\x08\x12\x06\xb2\x05\x15\xb7\x05\x03\n\x10\n\x08\x04\x0f\ + \x02\x01\x08\x9c\x08\0\x12\x04\xb3\x05\x04*\n\x11\n\x07\x04\x0f\x02\x01\ + \x08\x9f\x08\x12\x06\xb4\x05\x04\xb6\x05\x05\n\x8c\x02\n\x04\x04\x0f\x02\ + \x02\x12\x04\xbd\x05\x02B\x1a\xfd\x01\x20Required.\x20The\x20ID\x20by\ + \x20which\x20the\x20new\x20snapshot\x20should\x20be\x20referred\x20to\ + \x20within\x20the\x20parent\n\x20cluster,\x20e.g.,\x20`mysnapshot`\x20of\ + \x20the\x20form:\x20`[_a-zA-Z0-9][-_.a-zA-Z0-9]*`\n\x20rather\x20than\n\ + \x20`projects/{project}/instances/{instance}/clusters/{cluster}/snapshot\ + s/mysnapshot`.\n\n\x0f\n\x05\x04\x0f\x02\x02\x04\x12\x06\xbd\x05\x02\xb7\ + \x05\x04\n\r\n\x05\x04\x0f\x02\x02\x05\x12\x04\xbd\x05\x02\x08\n\r\n\x05\ + \x04\x0f\x02\x02\x01\x12\x04\xbd\x05\t\x14\n\r\n\x05\x04\x0f\x02\x02\x03\ + \x12\x04\xbd\x05\x17\x18\n\r\n\x05\x04\x0f\x02\x02\x08\x12\x04\xbd\x05\ + \x19A\n\x10\n\x08\x04\x0f\x02\x02\x08\x9c\x08\0\x12\x04\xbd\x05\x1a@\n\ + \x9c\x02\n\x04\x04\x0f\x02\x03\x12\x04\xc3\x05\x02#\x1a\x8d\x02\x20The\ + \x20amount\x20of\x20time\x20that\x20the\x20new\x20snapshot\x20can\x20sta\ + y\x20active\x20after\x20it\x20is\n\x20created.\x20Once\x20'ttl'\x20expir\ + es,\x20the\x20snapshot\x20will\x20get\x20deleted.\x20The\x20maximum\n\ + \x20amount\x20of\x20time\x20a\x20snapshot\x20can\x20stay\x20active\x20is\ + \x207\x20days.\x20If\x20'ttl'\x20is\x20not\n\x20specified,\x20the\x20def\ + ault\x20value\x20of\x2024\x20hours\x20will\x20be\x20used.\n\n\x0f\n\x05\ + \x04\x0f\x02\x03\x04\x12\x06\xc3\x05\x02\xbd\x05B\n\r\n\x05\x04\x0f\x02\ + \x03\x06\x12\x04\xc3\x05\x02\x1a\n\r\n\x05\x04\x0f\x02\x03\x01\x12\x04\ + \xc3\x05\x1b\x1e\n\r\n\x05\x04\x0f\x02\x03\x03\x12\x04\xc3\x05!\"\n,\n\ + \x04\x04\x0f\x02\x04\x12\x04\xc6\x05\x02\x19\x1a\x1e\x20Description\x20o\ + f\x20the\x20snapshot.\n\n\x0f\n\x05\x04\x0f\x02\x04\x04\x12\x06\xc6\x05\ + \x02\xc3\x05#\n\r\n\x05\x04\x0f\x02\x04\x05\x12\x04\xc6\x05\x02\x08\n\r\ + \n\x05\x04\x0f\x02\x04\x01\x12\x04\xc6\x05\t\x14\n\r\n\x05\x04\x0f\x02\ + \x04\x03\x12\x04\xc6\x05\x17\x18\n\xc5\x03\n\x02\x04\x10\x12\x06\xd0\x05\ + \0\xda\x05\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\x10\ + \x01\x12\x04\xd0\x05\x08\x1a\n\xb3\x01\n\x04\x04\x10\x02\0\x12\x06\xd4\ + \x05\x02\xd9\x05\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\x0f\n\x05\x04\x10\x02\0\x04\x12\x06\xd4\x05\ + \x02\xd0\x05\x1c\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\xd4\x05\x02\x08\n\r\ + \n\x05\x04\x10\x02\0\x01\x12\x04\xd4\x05\t\r\n\r\n\x05\x04\x10\x02\0\x03\ + \x12\x04\xd4\x05\x10\x11\n\x0f\n\x05\x04\x10\x02\0\x08\x12\x06\xd4\x05\ + \x12\xd9\x05\x03\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\x04\xd5\x05\ + \x04*\n\x11\n\x07\x04\x10\x02\0\x08\x9f\x08\x12\x06\xd6\x05\x04\xd8\x05\ + \x05\n\xc9\x03\n\x02\x04\x11\x12\x06\xe3\x05\0\xf6\x05\x01\x1a\xba\x03\ + \x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTab\ + leAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListS\ + napshots]\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\x20release\ + \x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20\ + not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20cust\ + omers.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\x20backward-\ + incompatible\x20ways\x20and\x20is\x20not\x20recommended\n\x20for\x20prod\ + uction\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\ + \x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xe3\x05\x08\ + \x1c\n\xbf\x02\n\x04\x04\x11\x02\0\x12\x06\xe9\x05\x02\xee\x05\x04\x1a\ + \xae\x02\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20cluster\ + \x20for\x20which\x20snapshots\x20should\x20be\x20listed.\n\x20Values\x20\ + are\x20of\x20the\x20form\n\x20`projects/{project}/instances/{instance}/c\ + lusters/{cluster}`.\n\x20Use\x20`{cluster}\x20=\x20'-'`\x20to\x20list\ + \x20snapshots\x20for\x20all\x20clusters\x20in\x20an\x20instance,\n\x20e.\ + g.,\x20`projects/{project}/instances/{instance}/clusters/-`.\n\n\x0f\n\ + \x05\x04\x11\x02\0\x04\x12\x06\xe9\x05\x02\xe3\x05\x1e\n\r\n\x05\x04\x11\ + \x02\0\x05\x12\x04\xe9\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\ + \xe9\x05\t\x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xe9\x05\x12\x13\n\x0f\ + \n\x05\x04\x11\x02\0\x08\x12\x06\xe9\x05\x14\xee\x05\x03\n\x10\n\x08\x04\ + \x11\x02\0\x08\x9c\x08\0\x12\x04\xea\x05\x04*\n\x11\n\x07\x04\x11\x02\0\ + \x08\x9f\x08\x12\x06\xeb\x05\x04\xed\x05\x05\ni\n\x04\x04\x11\x02\x01\ + \x12\x04\xf2\x05\x02\x16\x1a[\x20The\x20maximum\x20number\x20of\x20snaps\ + hots\x20to\x20return\x20per\x20page.\n\x20CURRENTLY\x20UNIMPLEMENTED\x20\ + AND\x20IGNORED.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\xf2\x05\x02\ + \xee\x05\x04\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xf2\x05\x02\x07\n\r\n\ + \x05\x04\x11\x02\x01\x01\x12\x04\xf2\x05\x08\x11\n\r\n\x05\x04\x11\x02\ + \x01\x03\x12\x04\xf2\x05\x14\x15\nK\n\x04\x04\x11\x02\x02\x12\x04\xf5\ + \x05\x02\x18\x1a=\x20The\x20value\x20of\x20`next_page_token`\x20returned\ + \x20by\x20a\x20previous\x20call.\n\n\x0f\n\x05\x04\x11\x02\x02\x04\x12\ + \x06\xf5\x05\x02\xf2\x05\x16\n\r\n\x05\x04\x11\x02\x02\x05\x12\x04\xf5\ + \x05\x02\x08\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xf5\x05\t\x13\n\r\n\ + \x05\x04\x11\x02\x02\x03\x12\x04\xf5\x05\x16\x17\n\xca\x03\n\x02\x04\x12\ + \x12\x06\xff\x05\0\x87\x06\x01\x1a\xbb\x03\x20Response\x20message\x20for\ + \n\x20[google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google\ + .bigtable.admin.v2.BigtableTableAdmin.ListSnapshots]\n\n\x20Note:\x20Thi\ + s\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\ + \x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20availab\ + le\x20to\x20most\x20Cloud\x20Bigtable\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\x12\x01\x12\x04\xff\x05\x08\x1d\n?\n\x04\x04\x12\x02\0\ + \x12\x04\x81\x06\x02\"\x1a1\x20The\x20snapshots\x20present\x20in\x20the\ + \x20requested\x20cluster.\n\n\r\n\x05\x04\x12\x02\0\x04\x12\x04\x81\x06\ + \x02\n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\x81\x06\x0b\x13\n\r\n\x05\x04\ + \x12\x02\0\x01\x12\x04\x81\x06\x14\x1d\n\r\n\x05\x04\x12\x02\0\x03\x12\ + \x04\x81\x06\x20!\n\xa7\x01\n\x04\x04\x12\x02\x01\x12\x04\x86\x06\x02\ + \x1d\x1a\x98\x01\x20Set\x20if\x20not\x20all\x20snapshots\x20could\x20be\ + \x20returned\x20in\x20a\x20single\x20response.\n\x20Pass\x20this\x20valu\ + e\x20to\x20`page_token`\x20in\x20another\x20request\x20to\x20get\x20the\ + \x20next\n\x20page\x20of\x20results.\n\n\x0f\n\x05\x04\x12\x02\x01\x04\ + \x12\x06\x86\x06\x02\x81\x06\"\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\x86\ + \x06\x02\x08\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\x86\x06\t\x18\n\r\n\ + \x05\x04\x12\x02\x01\x03\x12\x04\x86\x06\x1b\x1c\n\xcb\x03\n\x02\x04\x13\ + \x12\x06\x90\x06\0\x9a\x06\x01\x1a\xbc\x03\x20Request\x20message\x20for\ + \n\x20[google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot][googl\ + e.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot]\n\n\x20Note:\x20T\ + his\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\ + \x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20availab\ + le\x20to\x20most\x20Cloud\x20Bigtable\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\x13\x01\x12\x04\x90\x06\x08\x1d\n\xb7\x01\n\x04\x04\x13\ + \x02\0\x12\x06\x94\x06\x02\x99\x06\x04\x1a\xa6\x01\x20Required.\x20The\ + \x20unique\x20name\x20of\x20the\x20snapshot\x20to\x20be\x20deleted.\n\ + \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ + s/{instance}/clusters/{cluster}/snapshots/{snapshot}`.\n\n\x0f\n\x05\x04\ + \x13\x02\0\x04\x12\x06\x94\x06\x02\x90\x06\x1f\n\r\n\x05\x04\x13\x02\0\ + \x05\x12\x04\x94\x06\x02\x08\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\x94\x06\ + \t\r\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\x94\x06\x10\x11\n\x0f\n\x05\x04\ + \x13\x02\0\x08\x12\x06\x94\x06\x12\x99\x06\x03\n\x10\n\x08\x04\x13\x02\0\ + \x08\x9c\x08\0\x12\x04\x95\x06\x04*\n\x11\n\x07\x04\x13\x02\0\x08\x9f\ + \x08\x12\x06\x96\x06\x04\x98\x06\x05\n\xf7\x02\n\x02\x04\x14\x12\x06\xa2\ + \x06\0\xab\x06\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\x14\x01\x12\x04\xa2\x06\x08\x1d\nY\n\x04\x04\x14\x02\0\x12\x04\xa4\ + \x06\x02,\x1aK\x20The\x20request\x20that\x20prompted\x20the\x20initiatio\ + n\x20of\x20this\x20SnapshotTable\x20operation.\n\n\x0f\n\x05\x04\x14\x02\ + \0\x04\x12\x06\xa4\x06\x02\xa2\x06\x1f\n\r\n\x05\x04\x14\x02\0\x06\x12\ + \x04\xa4\x06\x02\x16\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xa4\x06\x17'\n\ + \r\n\x05\x04\x14\x02\0\x03\x12\x04\xa4\x06*+\nD\n\x04\x04\x14\x02\x01\ + \x12\x04\xa7\x06\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20origi\ + nal\x20request\x20was\x20received.\n\n\x0f\n\x05\x04\x14\x02\x01\x04\x12\ + \x06\xa7\x06\x02\xa4\x06,\n\r\n\x05\x04\x14\x02\x01\x06\x12\x04\xa7\x06\ + \x02\x1b\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xa7\x06\x1c(\n\r\n\x05\ + \x04\x14\x02\x01\x03\x12\x04\xa7\x06+,\nU\n\x04\x04\x14\x02\x02\x12\x04\ + \xaa\x06\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20operation\x20\ + failed\x20or\x20was\x20completed\x20successfully.\n\n\x0f\n\x05\x04\x14\ + \x02\x02\x04\x12\x06\xaa\x06\x02\xa7\x06-\n\r\n\x05\x04\x14\x02\x02\x06\ + \x12\x04\xaa\x06\x02\x1b\n\r\n\x05\x04\x14\x02\x02\x01\x12\x04\xaa\x06\ + \x1c'\n\r\n\x05\x04\x14\x02\x02\x03\x12\x04\xaa\x06*+\n\x81\x03\n\x02\ + \x04\x15\x12\x06\xb3\x06\0\xbd\x06\x01\x1a\xf2\x02\x20The\x20metadata\ + \x20for\x20the\x20Operation\x20returned\x20by\x20CreateTableFromSnapshot\ + .\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\x20recommended\n\x20for\x20product\ + ion\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20d\ + eprecation\x20policy.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xb3\x06\x08'\nd\ + \n\x04\x04\x15\x02\0\x12\x04\xb6\x06\x026\x1aV\x20The\x20request\x20that\ + \x20prompted\x20the\x20initiation\x20of\x20this\x20CreateTableFromSnapsh\ + ot\n\x20operation.\n\n\x0f\n\x05\x04\x15\x02\0\x04\x12\x06\xb6\x06\x02\ + \xb3\x06)\n\r\n\x05\x04\x15\x02\0\x06\x12\x04\xb6\x06\x02\x20\n\r\n\x05\ + \x04\x15\x02\0\x01\x12\x04\xb6\x06!1\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\ + \xb6\x0645\nD\n\x04\x04\x15\x02\x01\x12\x04\xb9\x06\x02-\x1a6\x20The\x20\ + time\x20at\x20which\x20the\x20original\x20request\x20was\x20received.\n\ + \n\x0f\n\x05\x04\x15\x02\x01\x04\x12\x06\xb9\x06\x02\xb6\x066\n\r\n\x05\ + \x04\x15\x02\x01\x06\x12\x04\xb9\x06\x02\x1b\n\r\n\x05\x04\x15\x02\x01\ + \x01\x12\x04\xb9\x06\x1c(\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\xb9\x06+\ + ,\nU\n\x04\x04\x15\x02\x02\x12\x04\xbc\x06\x02,\x1aG\x20The\x20time\x20a\ + t\x20which\x20the\x20operation\x20failed\x20or\x20was\x20completed\x20su\ + ccessfully.\n\n\x0f\n\x05\x04\x15\x02\x02\x04\x12\x06\xbc\x06\x02\xb9\ + \x06-\n\r\n\x05\x04\x15\x02\x02\x06\x12\x04\xbc\x06\x02\x1b\n\r\n\x05\ + \x04\x15\x02\x02\x01\x12\x04\xbc\x06\x1c'\n\r\n\x05\x04\x15\x02\x02\x03\ + \x12\x04\xbc\x06*+\ni\n\x02\x04\x16\x12\x06\xc0\x06\0\xd5\x06\x01\x1a[\ + \x20The\x20request\x20for\x20[CreateBackup][google.bigtable.admin.v2.Big\ + tableTableAdmin.CreateBackup].\n\n\x0b\n\x03\x04\x16\x01\x12\x04\xc0\x06\ + \x08\x1b\n\xef\x01\n\x04\x04\x16\x02\0\x12\x06\xc4\x06\x02\xc9\x06\x04\ + \x1a\xde\x01\x20Required.\x20This\x20must\x20be\x20one\x20of\x20the\x20c\ + lusters\x20in\x20the\x20instance\x20in\x20which\x20this\n\x20table\x20is\ + \x20located.\x20The\x20backup\x20will\x20be\x20stored\x20in\x20this\x20c\ + luster.\x20Values\x20are\n\x20of\x20the\x20form\x20`projects/{project}/i\ + nstances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\x16\x02\0\x04\ + \x12\x06\xc4\x06\x02\xc0\x06\x1d\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\xc4\ + \x06\x02\x08\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\xc4\x06\t\x0f\n\r\n\x05\ + \x04\x16\x02\0\x03\x12\x04\xc4\x06\x12\x13\n\x0f\n\x05\x04\x16\x02\0\x08\ + \x12\x06\xc4\x06\x14\xc9\x06\x03\n\x10\n\x08\x04\x16\x02\0\x08\x9c\x08\0\ + \x12\x04\xc5\x06\x04*\n\x11\n\x07\x04\x16\x02\0\x08\x9f\x08\x12\x06\xc6\ + \x06\x04\xc8\x06\x05\n\x89\x03\n\x04\x04\x16\x02\x01\x12\x04\xd1\x06\x02\ + @\x1a\xfa\x02\x20Required.\x20The\x20id\x20of\x20the\x20backup\x20to\x20\ + be\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\x0f\n\x05\x04\x16\x02\x01\x04\x12\ + \x06\xd1\x06\x02\xc9\x06\x04\n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\xd1\ + \x06\x02\x08\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\xd1\x06\t\x12\n\r\n\ + \x05\x04\x16\x02\x01\x03\x12\x04\xd1\x06\x15\x16\n\r\n\x05\x04\x16\x02\ + \x01\x08\x12\x04\xd1\x06\x17?\n\x10\n\x08\x04\x16\x02\x01\x08\x9c\x08\0\ + \x12\x04\xd1\x06\x18>\n/\n\x04\x04\x16\x02\x02\x12\x04\xd4\x06\x02=\x1a!\ + \x20Required.\x20The\x20backup\x20to\x20create.\n\n\x0f\n\x05\x04\x16\ + \x02\x02\x04\x12\x06\xd4\x06\x02\xd1\x06@\n\r\n\x05\x04\x16\x02\x02\x06\ + \x12\x04\xd4\x06\x02\x08\n\r\n\x05\x04\x16\x02\x02\x01\x12\x04\xd4\x06\t\ + \x0f\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\xd4\x06\x12\x13\n\r\n\x05\x04\ + \x16\x02\x02\x08\x12\x04\xd4\x06\x14<\n\x10\n\x08\x04\x16\x02\x02\x08\ + \x9c\x08\0\x12\x04\xd4\x06\x15;\n\x86\x01\n\x02\x04\x17\x12\x06\xd9\x06\ + \0\xe5\x06\x01\x1ax\x20Metadata\x20type\x20for\x20the\x20operation\x20re\ + turned\x20by\n\x20[CreateBackup][google.bigtable.admin.v2.BigtableTableA\ + dmin.CreateBackup].\n\n\x0b\n\x03\x04\x17\x01\x12\x04\xd9\x06\x08\x1c\n5\ + \n\x04\x04\x17\x02\0\x12\x04\xdb\x06\x02\x12\x1a'\x20The\x20name\x20of\ + \x20the\x20backup\x20being\x20created.\n\n\x0f\n\x05\x04\x17\x02\0\x04\ + \x12\x06\xdb\x06\x02\xd9\x06\x1e\n\r\n\x05\x04\x17\x02\0\x05\x12\x04\xdb\ + \x06\x02\x08\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\xdb\x06\t\r\n\r\n\x05\ + \x04\x17\x02\0\x03\x12\x04\xdb\x06\x10\x11\nA\n\x04\x04\x17\x02\x01\x12\ + \x04\xde\x06\x02\x1a\x1a3\x20The\x20name\x20of\x20the\x20table\x20the\ + \x20backup\x20is\x20created\x20from.\n\n\x0f\n\x05\x04\x17\x02\x01\x04\ + \x12\x06\xde\x06\x02\xdb\x06\x12\n\r\n\x05\x04\x17\x02\x01\x05\x12\x04\ + \xde\x06\x02\x08\n\r\n\x05\x04\x17\x02\x01\x01\x12\x04\xde\x06\t\x15\n\r\ + \n\x05\x04\x17\x02\x01\x03\x12\x04\xde\x06\x18\x19\n9\n\x04\x04\x17\x02\ + \x02\x12\x04\xe1\x06\x02+\x1a+\x20The\x20time\x20at\x20which\x20this\x20\ + operation\x20started.\n\n\x0f\n\x05\x04\x17\x02\x02\x04\x12\x06\xe1\x06\ + \x02\xde\x06\x1a\n\r\n\x05\x04\x17\x02\x02\x06\x12\x04\xe1\x06\x02\x1b\n\ + \r\n\x05\x04\x17\x02\x02\x01\x12\x04\xe1\x06\x1c&\n\r\n\x05\x04\x17\x02\ + \x02\x03\x12\x04\xe1\x06)*\nS\n\x04\x04\x17\x02\x03\x12\x04\xe4\x06\x02)\ + \x1aE\x20If\x20set,\x20the\x20time\x20at\x20which\x20this\x20operation\ + \x20finished\x20or\x20was\x20cancelled.\n\n\x0f\n\x05\x04\x17\x02\x03\ + \x04\x12\x06\xe4\x06\x02\xe1\x06+\n\r\n\x05\x04\x17\x02\x03\x06\x12\x04\ + \xe4\x06\x02\x1b\n\r\n\x05\x04\x17\x02\x03\x01\x12\x04\xe4\x06\x1c$\n\r\ + \n\x05\x04\x17\x02\x03\x03\x12\x04\xe4\x06'(\ni\n\x02\x04\x18\x12\x06\ + \xe8\x06\0\xf5\x06\x01\x1a[\x20The\x20request\x20for\x20[UpdateBackup][g\ + oogle.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup].\n\n\x0b\n\x03\ + \x04\x18\x01\x12\x04\xe8\x06\x08\x1b\n\xf1\x01\n\x04\x04\x18\x02\0\x12\ + \x04\xed\x06\x02=\x1a\xe2\x01\x20Required.\x20The\x20backup\x20to\x20upd\ + ate.\x20`backup.name`,\x20and\x20the\x20fields\x20to\x20be\x20updated\n\ + \x20as\x20specified\x20by\x20`update_mask`\x20are\x20required.\x20Other\ + \x20fields\x20are\x20ignored.\n\x20Update\x20is\x20only\x20supported\x20\ + for\x20the\x20following\x20fields:\n\x20\x20*\x20`backup.expire_time`.\n\ + \n\x0f\n\x05\x04\x18\x02\0\x04\x12\x06\xed\x06\x02\xe8\x06\x1d\n\r\n\x05\ + \x04\x18\x02\0\x06\x12\x04\xed\x06\x02\x08\n\r\n\x05\x04\x18\x02\0\x01\ + \x12\x04\xed\x06\t\x0f\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xed\x06\x12\ + \x13\n\r\n\x05\x04\x18\x02\0\x08\x12\x04\xed\x06\x14<\n\x10\n\x08\x04\ + \x18\x02\0\x08\x9c\x08\0\x12\x04\xed\x06\x15;\n\xd6\x02\n\x04\x04\x18\ + \x02\x01\x12\x04\xf4\x06\x02U\x1a\xc7\x02\x20Required.\x20A\x20mask\x20s\ + pecifying\x20which\x20fields\x20(e.g.\x20`expire_time`)\x20in\x20the\n\ + \x20Backup\x20resource\x20should\x20be\x20updated.\x20This\x20mask\x20is\ + \x20relative\x20to\x20the\x20Backup\n\x20resource,\x20not\x20to\x20the\ + \x20request\x20message.\x20The\x20field\x20mask\x20must\x20always\x20be\ + \n\x20specified;\x20this\x20prevents\x20any\x20future\x20fields\x20from\ + \x20being\x20erased\x20accidentally\n\x20by\x20clients\x20that\x20do\x20\ + not\x20know\x20about\x20them.\n\n\x0f\n\x05\x04\x18\x02\x01\x04\x12\x06\ + \xf4\x06\x02\xed\x06=\n\r\n\x05\x04\x18\x02\x01\x06\x12\x04\xf4\x06\x02\ + \x1b\n\r\n\x05\x04\x18\x02\x01\x01\x12\x04\xf4\x06\x1c'\n\r\n\x05\x04\ + \x18\x02\x01\x03\x12\x04\xf4\x06*+\n\r\n\x05\x04\x18\x02\x01\x08\x12\x04\ + \xf4\x06,T\n\x10\n\x08\x04\x18\x02\x01\x08\x9c\x08\0\x12\x04\xf4\x06-S\n\ + c\n\x02\x04\x19\x12\x06\xf8\x06\0\x82\x07\x01\x1aU\x20The\x20request\x20\ + for\x20[GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup\ + ].\n\n\x0b\n\x03\x04\x19\x01\x12\x04\xf8\x06\x08\x18\n\x98\x01\n\x04\x04\ + \x19\x02\0\x12\x06\xfc\x06\x02\x81\x07\x04\x1a\x87\x01\x20Required.\x20N\ + ame\x20of\x20the\x20backup.\n\x20Values\x20are\x20of\x20the\x20form\n\ + \x20`projects/{project}/instances/{instance}/clusters/{cluster}/backups/\ + {backup}`.\n\n\x0f\n\x05\x04\x19\x02\0\x04\x12\x06\xfc\x06\x02\xf8\x06\ + \x1a\n\r\n\x05\x04\x19\x02\0\x05\x12\x04\xfc\x06\x02\x08\n\r\n\x05\x04\ + \x19\x02\0\x01\x12\x04\xfc\x06\t\r\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\ + \xfc\x06\x10\x11\n\x0f\n\x05\x04\x19\x02\0\x08\x12\x06\xfc\x06\x12\x81\ + \x07\x03\n\x10\n\x08\x04\x19\x02\0\x08\x9c\x08\0\x12\x04\xfd\x06\x04*\n\ + \x11\n\x07\x04\x19\x02\0\x08\x9f\x08\x12\x06\xfe\x06\x04\x80\x07\x05\ni\ + \n\x02\x04\x1a\x12\x06\x85\x07\0\x8f\x07\x01\x1a[\x20The\x20request\x20f\ + or\x20[DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteB\ + ackup].\n\n\x0b\n\x03\x04\x1a\x01\x12\x04\x85\x07\x08\x1b\n\xa2\x01\n\ + \x04\x04\x1a\x02\0\x12\x06\x89\x07\x02\x8e\x07\x04\x1a\x91\x01\x20Requir\ + ed.\x20Name\x20of\x20the\x20backup\x20to\x20delete.\n\x20Values\x20are\ + \x20of\x20the\x20form\n\x20`projects/{project}/instances/{instance}/clus\ + ters/{cluster}/backups/{backup}`.\n\n\x0f\n\x05\x04\x1a\x02\0\x04\x12\ + \x06\x89\x07\x02\x85\x07\x1d\n\r\n\x05\x04\x1a\x02\0\x05\x12\x04\x89\x07\ + \x02\x08\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\x89\x07\t\r\n\r\n\x05\x04\ + \x1a\x02\0\x03\x12\x04\x89\x07\x10\x11\n\x0f\n\x05\x04\x1a\x02\0\x08\x12\ + \x06\x89\x07\x12\x8e\x07\x03\n\x10\n\x08\x04\x1a\x02\0\x08\x9c\x08\0\x12\ + \x04\x8a\x07\x04*\n\x11\n\x07\x04\x1a\x02\0\x08\x9f\x08\x12\x06\x8b\x07\ + \x04\x8d\x07\x05\ng\n\x02\x04\x1b\x12\x06\x92\x07\0\xdf\x07\x01\x1aY\x20\ + The\x20request\x20for\x20[ListBackups][google.bigtable.admin.v2.Bigtable\ + TableAdmin.ListBackups].\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\x92\x07\x08\ + \x1a\n\x9a\x02\n\x04\x04\x1b\x02\0\x12\x06\x97\x07\x02\x9c\x07\x04\x1a\ + \x89\x02\x20Required.\x20The\x20cluster\x20to\x20list\x20backups\x20from\ + .\x20\x20Values\x20are\x20of\x20the\n\x20form\x20`projects/{project}/ins\ + tances/{instance}/clusters/{cluster}`.\n\x20Use\x20`{cluster}\x20=\x20'-\ + '`\x20to\x20list\x20backups\x20for\x20all\x20clusters\x20in\x20an\x20ins\ + tance,\n\x20e.g.,\x20`projects/{project}/instances/{instance}/clusters/-\ + `.\n\n\x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\x97\x07\x02\x92\x07\x1c\n\r\n\ + \x05\x04\x1b\x02\0\x05\x12\x04\x97\x07\x02\x08\n\r\n\x05\x04\x1b\x02\0\ + \x01\x12\x04\x97\x07\t\x0f\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\x97\x07\ + \x12\x13\n\x0f\n\x05\x04\x1b\x02\0\x08\x12\x06\x97\x07\x14\x9c\x07\x03\n\ + \x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\x98\x07\x04*\n\x11\n\x07\ + \x04\x1b\x02\0\x08\x9f\x08\x12\x06\x99\x07\x04\x9b\x07\x05\n\xc9\x0c\n\ + \x04\x04\x1b\x02\x01\x12\x04\xbe\x07\x02\x14\x1a\xba\x0c\x20A\x20filter\ + \x20expression\x20that\x20filters\x20backups\x20listed\x20in\x20the\x20r\ + esponse.\n\x20The\x20expression\x20must\x20specify\x20the\x20field\x20na\ + me,\x20a\x20comparison\x20operator,\n\x20and\x20the\x20value\x20that\x20\ + you\x20want\x20to\x20use\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:.\x20Colon\x20':'\x20represents\x20a\x20HAS\x20opera\ + tor\x20which\x20is\n\x20roughly\x20synonymous\x20with\x20equality.\x20Fi\ + lter\x20rules\x20are\x20case\x20insensitive.\n\n\x20The\x20fields\x20eli\ + gible\x20for\x20filtering\x20are:\n\x20\x20\x20*\x20`name`\n\x20\x20\x20\ + *\x20`source_table`\n\x20\x20\x20*\x20`state`\n\x20\x20\x20*\x20`start_t\ + ime`\x20(and\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM\ + :SSZ)\n\x20\x20\x20*\x20`end_time`\x20(and\x20values\x20are\x20of\x20the\ + \x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\x20\x20\x20*\x20`expire_time`\x20(\ + and\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\ + \x20\x20\x20*\x20`size_bytes`\n\n\x20To\x20filter\x20on\x20multiple\x20e\ + xpressions,\x20provide\x20each\x20separate\x20expression\x20within\n\x20\ + parentheses.\x20By\x20default,\x20each\x20expression\x20is\x20an\x20AND\ + \x20expression.\x20However,\n\x20you\x20can\x20include\x20AND,\x20OR,\ + \x20and\x20NOT\x20expressions\x20explicitly.\n\n\x20Some\x20examples\x20\ + of\x20using\x20filters\x20are:\n\n\x20\x20\x20*\x20`name:\"exact\"`\x20-\ + ->\x20The\x20backup's\x20name\x20is\x20the\x20string\x20\"exact\".\n\x20\ + \x20\x20*\x20`name:howl`\x20-->\x20The\x20backup's\x20name\x20contains\ + \x20the\x20string\x20\"howl\".\n\x20\x20\x20*\x20`source_table:prod`\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-->\x20The\x20source_table's\x20\ + name\x20contains\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\x20cre\ + ated\x20and\x20ready\x20for\x20use.\n\x20\x20\x20*\x20`(name:howl)\x20AN\ + D\x20(start_time\x20<\x20\\\"2018-03-28T14:50:00Z\\\")`\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20-->\x20The\x20backup\x20name\x20contains\x20\ + the\x20string\x20\"howl\"\x20and\x20start_time\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20of\x20the\x20backup\x20is\x20before\x202\ + 018-03-28T14:50:00Z.\n\x20\x20\x20*\x20`size_bytes\x20>\x2010000000000`\ + \x20-->\x20The\x20backup's\x20size\x20is\x20greater\x20than\x2010GB\n\n\ + \x0f\n\x05\x04\x1b\x02\x01\x04\x12\x06\xbe\x07\x02\x9c\x07\x04\n\r\n\x05\ + \x04\x1b\x02\x01\x05\x12\x04\xbe\x07\x02\x08\n\r\n\x05\x04\x1b\x02\x01\ + \x01\x12\x04\xbe\x07\t\x0f\n\r\n\x05\x04\x1b\x02\x01\x03\x12\x04\xbe\x07\ + \x12\x13\n\x8a\x06\n\x04\x04\x1b\x02\x02\x12\x04\xd4\x07\x02\x16\x1a\xfb\ + \x05\x20An\x20expression\x20for\x20specifying\x20the\x20sort\x20order\ + \x20of\x20the\x20results\x20of\x20the\x20request.\n\x20The\x20string\x20\ + value\x20should\x20specify\x20one\x20or\x20more\x20fields\x20in\x20[Back\ + up][google.bigtable.admin.v2.Backup].\x20The\x20full\n\x20syntax\x20is\ + \x20described\x20at\x20https://aip.dev/132#ordering.\n\n\x20Fields\x20su\ + pported\x20are:\n\x20\x20\x20\x20*\x20name\n\x20\x20\x20\x20*\x20source_\ + table\n\x20\x20\x20\x20*\x20expire_time\n\x20\x20\x20\x20*\x20start_time\ + \n\x20\x20\x20\x20*\x20end_time\n\x20\x20\x20\x20*\x20size_bytes\n\x20\ + \x20\x20\x20*\x20state\n\n\x20For\x20example,\x20\"start_time\".\x20The\ + \x20default\x20sorting\x20order\x20is\x20ascending.\n\x20To\x20specify\ + \x20descending\x20order\x20for\x20the\x20field,\x20a\x20suffix\x20\"\x20\ + desc\"\x20should\n\x20be\x20appended\x20to\x20the\x20field\x20name.\x20F\ + or\x20example,\x20\"start_time\x20desc\".\n\x20Redundant\x20space\x20cha\ + racters\x20in\x20the\x20syntax\x20are\x20insigificant.\n\n\x20If\x20orde\ + r_by\x20is\x20empty,\x20results\x20will\x20be\x20sorted\x20by\x20`start_\ + time`\x20in\x20descending\n\x20order\x20starting\x20from\x20the\x20most\ + \x20recently\x20created\x20backup.\n\n\x0f\n\x05\x04\x1b\x02\x02\x04\x12\ + \x06\xd4\x07\x02\xbe\x07\x14\n\r\n\x05\x04\x1b\x02\x02\x05\x12\x04\xd4\ + \x07\x02\x08\n\r\n\x05\x04\x1b\x02\x02\x01\x12\x04\xd4\x07\t\x11\n\r\n\ + \x05\x04\x1b\x02\x02\x03\x12\x04\xd4\x07\x14\x15\n\x84\x01\n\x04\x04\x1b\ + \x02\x03\x12\x04\xd8\x07\x02\x16\x1av\x20Number\x20of\x20backups\x20to\ + \x20be\x20returned\x20in\x20the\x20response.\x20If\x200\x20or\n\x20less,\ + \x20defaults\x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20s\ + ize.\n\n\x0f\n\x05\x04\x1b\x02\x03\x04\x12\x06\xd8\x07\x02\xd4\x07\x16\n\ + \r\n\x05\x04\x1b\x02\x03\x05\x12\x04\xd8\x07\x02\x07\n\r\n\x05\x04\x1b\ + \x02\x03\x01\x12\x04\xd8\x07\x08\x11\n\r\n\x05\x04\x1b\x02\x03\x03\x12\ + \x04\xd8\x07\x14\x15\n\x94\x02\n\x04\x04\x1b\x02\x04\x12\x04\xde\x07\x02\ + \x18\x1a\x85\x02\x20If\x20non-empty,\x20`page_token`\x20should\x20contai\ + n\x20a\n\x20[next_page_token][google.bigtable.admin.v2.ListBackupsRespon\ + se.next_page_token]\x20from\x20a\n\x20previous\x20[ListBackupsResponse][\ + google.bigtable.admin.v2.ListBackupsResponse]\x20to\x20the\x20same\x20`p\ + arent`\x20and\x20with\x20the\x20same\n\x20`filter`.\n\n\x0f\n\x05\x04\ + \x1b\x02\x04\x04\x12\x06\xde\x07\x02\xd8\x07\x16\n\r\n\x05\x04\x1b\x02\ + \x04\x05\x12\x04\xde\x07\x02\x08\n\r\n\x05\x04\x1b\x02\x04\x01\x12\x04\ + \xde\x07\t\x13\n\r\n\x05\x04\x1b\x02\x04\x03\x12\x04\xde\x07\x16\x17\nh\ + \n\x02\x04\x1c\x12\x06\xe2\x07\0\xea\x07\x01\x1aZ\x20The\x20response\x20\ + for\x20[ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBac\ + kups].\n\n\x0b\n\x03\x04\x1c\x01\x12\x04\xe2\x07\x08\x1b\n-\n\x04\x04\ + \x1c\x02\0\x12\x04\xe4\x07\x02\x1e\x1a\x1f\x20The\x20list\x20of\x20match\ + ing\x20backups.\n\n\r\n\x05\x04\x1c\x02\0\x04\x12\x04\xe4\x07\x02\n\n\r\ + \n\x05\x04\x1c\x02\0\x06\x12\x04\xe4\x07\x0b\x11\n\r\n\x05\x04\x1c\x02\0\ + \x01\x12\x04\xe4\x07\x12\x19\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xe4\x07\ + \x1c\x1d\n\xb3\x01\n\x04\x04\x1c\x02\x01\x12\x04\xe9\x07\x02\x1d\x1a\xa4\ + \x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\ + \n\x20[ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBack\ + ups]\x20call\x20to\x20fetch\x20more\n\x20of\x20the\x20matching\x20backup\ + s.\n\n\x0f\n\x05\x04\x1c\x02\x01\x04\x12\x06\xe9\x07\x02\xe4\x07\x1e\n\r\ + \n\x05\x04\x1c\x02\x01\x05\x12\x04\xe9\x07\x02\x08\n\r\n\x05\x04\x1c\x02\ + \x01\x01\x12\x04\xe9\x07\t\x18\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xe9\ + \x07\x1b\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs new file mode 100644 index 0000000000..9c730f1fd1 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs @@ -0,0 +1,657 @@ +// 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_BIGTABLE_TABLE_ADMIN_CREATE_TABLE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable", + 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_CREATE_TABLE_FROM_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTableFromSnapshot", + 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_TABLES: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/ListTables", + 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_TABLE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/GetTable", + 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", + 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", + 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_DROP_ROW_RANGE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange", + 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_GENERATE_CONSISTENCY_TOKEN: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/GenerateConsistencyToken", + 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_CHECK_CONSISTENCY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency", + 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_SNAPSHOT_TABLE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/SnapshotTable", + 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_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/GetSnapshot", + 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_SNAPSHOTS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/ListSnapshots", + 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_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSnapshot", + 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_CREATE_BACKUP: ::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_GET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/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_BIGTABLE_TABLE_ADMIN_SET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/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_BIGTABLE_TABLE_ADMIN_TEST_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.admin.v2.BigtableTableAdmin/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 BigtableTableAdminClient { + client: ::grpcio::Client, +} + +impl BigtableTableAdminClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + BigtableTableAdminClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn create_table_opt(&self, req: &super::bigtable_table_admin::CreateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE, req, opt) + } + + pub fn create_table(&self, req: &super::bigtable_table_admin::CreateTableRequest) -> ::grpcio::Result { + self.create_table_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_table_async_opt(&self, req: &super::bigtable_table_admin::CreateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE, req, opt) + } + + pub fn create_table_async(&self, req: &super::bigtable_table_admin::CreateTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_table_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_table_from_snapshot_opt(&self, req: &super::bigtable_table_admin::CreateTableFromSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE_FROM_SNAPSHOT, req, opt) + } + + pub fn create_table_from_snapshot(&self, req: &super::bigtable_table_admin::CreateTableFromSnapshotRequest) -> ::grpcio::Result { + self.create_table_from_snapshot_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_table_from_snapshot_async_opt(&self, req: &super::bigtable_table_admin::CreateTableFromSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE_FROM_SNAPSHOT, req, opt) + } + + pub fn create_table_from_snapshot_async(&self, req: &super::bigtable_table_admin::CreateTableFromSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_table_from_snapshot_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_tables_opt(&self, req: &super::bigtable_table_admin::ListTablesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_TABLES, req, opt) + } + + pub fn list_tables(&self, req: &super::bigtable_table_admin::ListTablesRequest) -> ::grpcio::Result { + self.list_tables_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_tables_async_opt(&self, req: &super::bigtable_table_admin::ListTablesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_TABLES, req, opt) + } + + pub fn list_tables_async(&self, req: &super::bigtable_table_admin::ListTablesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_tables_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_table_opt(&self, req: &super::bigtable_table_admin::GetTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_GET_TABLE, req, opt) + } + + pub fn get_table(&self, req: &super::bigtable_table_admin::GetTableRequest) -> ::grpcio::Result { + self.get_table_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_table_async_opt(&self, req: &super::bigtable_table_admin::GetTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_GET_TABLE, req, opt) + } + + pub fn get_table_async(&self, req: &super::bigtable_table_admin::GetTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_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) + } + + pub fn delete_table(&self, req: &super::bigtable_table_admin::DeleteTableRequest) -> ::grpcio::Result { + self.delete_table_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_table_async_opt(&self, req: &super::bigtable_table_admin::DeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_TABLE, req, opt) + } + + pub fn delete_table_async(&self, req: &super::bigtable_table_admin::DeleteTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_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) + } + + pub fn modify_column_families(&self, req: &super::bigtable_table_admin::ModifyColumnFamiliesRequest) -> ::grpcio::Result { + self.modify_column_families_opt(req, ::grpcio::CallOption::default()) + } + + pub fn modify_column_families_async_opt(&self, req: &super::bigtable_table_admin::ModifyColumnFamiliesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_MODIFY_COLUMN_FAMILIES, req, opt) + } + + pub fn modify_column_families_async(&self, req: &super::bigtable_table_admin::ModifyColumnFamiliesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.modify_column_families_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn drop_row_range_opt(&self, req: &super::bigtable_table_admin::DropRowRangeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_DROP_ROW_RANGE, req, opt) + } + + pub fn drop_row_range(&self, req: &super::bigtable_table_admin::DropRowRangeRequest) -> ::grpcio::Result { + self.drop_row_range_opt(req, ::grpcio::CallOption::default()) + } + + pub fn drop_row_range_async_opt(&self, req: &super::bigtable_table_admin::DropRowRangeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_DROP_ROW_RANGE, req, opt) + } + + pub fn drop_row_range_async(&self, req: &super::bigtable_table_admin::DropRowRangeRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.drop_row_range_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn generate_consistency_token_opt(&self, req: &super::bigtable_table_admin::GenerateConsistencyTokenRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_GENERATE_CONSISTENCY_TOKEN, req, opt) + } + + pub fn generate_consistency_token(&self, req: &super::bigtable_table_admin::GenerateConsistencyTokenRequest) -> ::grpcio::Result { + self.generate_consistency_token_opt(req, ::grpcio::CallOption::default()) + } + + pub fn generate_consistency_token_async_opt(&self, req: &super::bigtable_table_admin::GenerateConsistencyTokenRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_GENERATE_CONSISTENCY_TOKEN, req, opt) + } + + pub fn generate_consistency_token_async(&self, req: &super::bigtable_table_admin::GenerateConsistencyTokenRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.generate_consistency_token_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn check_consistency_opt(&self, req: &super::bigtable_table_admin::CheckConsistencyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_CHECK_CONSISTENCY, req, opt) + } + + pub fn check_consistency(&self, req: &super::bigtable_table_admin::CheckConsistencyRequest) -> ::grpcio::Result { + self.check_consistency_opt(req, ::grpcio::CallOption::default()) + } + + pub fn check_consistency_async_opt(&self, req: &super::bigtable_table_admin::CheckConsistencyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_CHECK_CONSISTENCY, req, opt) + } + + pub fn check_consistency_async(&self, req: &super::bigtable_table_admin::CheckConsistencyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.check_consistency_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn snapshot_table_opt(&self, req: &super::bigtable_table_admin::SnapshotTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_SNAPSHOT_TABLE, req, opt) + } + + pub fn snapshot_table(&self, req: &super::bigtable_table_admin::SnapshotTableRequest) -> ::grpcio::Result { + self.snapshot_table_opt(req, ::grpcio::CallOption::default()) + } + + pub fn snapshot_table_async_opt(&self, req: &super::bigtable_table_admin::SnapshotTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_SNAPSHOT_TABLE, req, opt) + } + + pub fn snapshot_table_async(&self, req: &super::bigtable_table_admin::SnapshotTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.snapshot_table_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_snapshot_opt(&self, req: &super::bigtable_table_admin::GetSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_GET_SNAPSHOT, req, opt) + } + + pub fn get_snapshot(&self, req: &super::bigtable_table_admin::GetSnapshotRequest) -> ::grpcio::Result { + self.get_snapshot_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_snapshot_async_opt(&self, req: &super::bigtable_table_admin::GetSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_GET_SNAPSHOT, req, opt) + } + + pub fn get_snapshot_async(&self, req: &super::bigtable_table_admin::GetSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_snapshot_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_snapshots_opt(&self, req: &super::bigtable_table_admin::ListSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_SNAPSHOTS, req, opt) + } + + pub fn list_snapshots(&self, req: &super::bigtable_table_admin::ListSnapshotsRequest) -> ::grpcio::Result { + self.list_snapshots_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_snapshots_async_opt(&self, req: &super::bigtable_table_admin::ListSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_SNAPSHOTS, req, opt) + } + + pub fn list_snapshots_async(&self, req: &super::bigtable_table_admin::ListSnapshotsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_snapshots_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_snapshot_opt(&self, req: &super::bigtable_table_admin::DeleteSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_SNAPSHOT, req, opt) + } + + pub fn delete_snapshot(&self, req: &super::bigtable_table_admin::DeleteSnapshotRequest) -> ::grpcio::Result { + self.delete_snapshot_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_snapshot_async_opt(&self, req: &super::bigtable_table_admin::DeleteSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_SNAPSHOT, req, opt) + } + + pub fn delete_snapshot_async(&self, req: &super::bigtable_table_admin::DeleteSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + 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 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) + } + + 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_BIGTABLE_TABLE_ADMIN_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 set_iam_policy_opt(&self, req: &super::iam_policy::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_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_BIGTABLE_TABLE_ADMIN_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 test_iam_permissions_opt(&self, req: &super::iam_policy::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_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_BIGTABLE_TABLE_ADMIN_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: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait BigtableTableAdmin { + fn create_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::CreateTableRequest, sink: ::grpcio::UnarySink); + fn create_table_from_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::CreateTableFromSnapshotRequest, sink: ::grpcio::UnarySink); + fn list_tables(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::ListTablesRequest, sink: ::grpcio::UnarySink); + fn get_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::GetTableRequest, sink: ::grpcio::UnarySink); + fn delete_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::DeleteTableRequest, sink: ::grpcio::UnarySink); + fn modify_column_families(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::ModifyColumnFamiliesRequest, sink: ::grpcio::UnarySink); + fn drop_row_range(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::DropRowRangeRequest, sink: ::grpcio::UnarySink); + fn generate_consistency_token(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::GenerateConsistencyTokenRequest, sink: ::grpcio::UnarySink); + fn check_consistency(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::CheckConsistencyRequest, sink: ::grpcio::UnarySink); + fn snapshot_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::SnapshotTableRequest, sink: ::grpcio::UnarySink); + fn get_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::GetSnapshotRequest, sink: ::grpcio::UnarySink); + fn list_snapshots(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::ListSnapshotsRequest, sink: ::grpcio::UnarySink); + fn delete_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::DeleteSnapshotRequest, sink: ::grpcio::UnarySink); + fn create_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::CreateBackupRequest, sink: ::grpcio::UnarySink); + fn get_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::GetBackupRequest, sink: ::grpcio::UnarySink); + fn update_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::UpdateBackupRequest, sink: ::grpcio::UnarySink); + fn delete_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::DeleteBackupRequest, sink: ::grpcio::UnarySink); + fn list_backups(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::ListBackupsRequest, sink: ::grpcio::UnarySink); + fn restore_table(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_table_admin::RestoreTableRequest, sink: ::grpcio::UnarySink); + fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_bigtable_table_admin(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE, move |ctx, req, resp| { + instance.create_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_TABLE_FROM_SNAPSHOT, move |ctx, req, resp| { + instance.create_table_from_snapshot(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_TABLES, move |ctx, req, resp| { + instance.list_tables(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GET_TABLE, move |ctx, req, resp| { + instance.get_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_TABLE, move |ctx, req, resp| { + instance.delete_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_MODIFY_COLUMN_FAMILIES, move |ctx, req, resp| { + instance.modify_column_families(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_DROP_ROW_RANGE, move |ctx, req, resp| { + instance.drop_row_range(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GENERATE_CONSISTENCY_TOKEN, move |ctx, req, resp| { + instance.generate_consistency_token(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_CHECK_CONSISTENCY, move |ctx, req, resp| { + instance.check_consistency(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_SNAPSHOT_TABLE, move |ctx, req, resp| { + instance.snapshot_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GET_SNAPSHOT, move |ctx, req, resp| { + instance.get_snapshot(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_SNAPSHOTS, move |ctx, req, resp| { + instance.list_snapshots(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_SNAPSHOT, move |ctx, req, resp| { + instance.delete_snapshot(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_BACKUP, move |ctx, req, resp| { + instance.create_backup(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GET_BACKUP, move |ctx, req, resp| { + instance.get_backup(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_UPDATE_BACKUP, move |ctx, req, resp| { + instance.update_backup(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_BACKUP, move |ctx, req, resp| { + instance.delete_backup(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_BACKUPS, move |ctx, req, resp| { + instance.list_backups(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_RESTORE_TABLE, move |ctx, req, resp| { + instance.restore_table(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_GET_IAM_POLICY, move |ctx, req, resp| { + instance.get_iam_policy(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_SET_IAM_POLICY, move |ctx, req, resp| { + instance.set_iam_policy(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_BIGTABLE_TABLE_ADMIN_TEST_IAM_PERMISSIONS, move |ctx, req, resp| { + instance.test_iam_permissions(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/common.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/common.rs new file mode 100644 index 0000000000..8741778f03 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/common.rs @@ -0,0 +1,416 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/v2/common.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_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(Clone,PartialEq,Eq,Debug,Hash)] +pub enum StorageType { + STORAGE_TYPE_UNSPECIFIED = 0, + SSD = 1, + HDD = 2, +} + +impl ::protobuf::ProtobufEnum for StorageType { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(StorageType::STORAGE_TYPE_UNSPECIFIED), + 1 => ::std::option::Option::Some(StorageType::SSD), + 2 => ::std::option::Option::Some(StorageType::HDD), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [StorageType] = &[ + StorageType::STORAGE_TYPE_UNSPECIFIED, + StorageType::SSD, + StorageType::HDD, + ]; + 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::("StorageType", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for StorageType { +} + +impl ::std::default::Default for StorageType { + fn default() -> Self { + StorageType::STORAGE_TYPE_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for StorageType { + 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/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\xc5\x0c\n\x06\x12\x04\x0e\05\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\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\r\n\x05\x04\0\x02\0\x04\x12\x04-\x02*\x1b\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\x20the\x20request\x20was\x20received.\ + \n\n\r\n\x05\x04\0\x02\x01\x04\x12\x040\x02-\x1d\n\x0c\n\x05\x04\0\x02\ + \x01\x06\x12\x030\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\x20operat\ + ion\x20failed\x20or\x20was\x20completed\n\x20successfully.\n\n\r\n\x05\ + \x04\0\x02\x02\x04\x12\x044\x020+\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/instance.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/instance.rs new file mode 100644 index 0000000000..d504d400f4 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/instance.rs @@ -0,0 +1,2062 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/v2/instance.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Instance { + // message fields + pub name: ::std::string::String, + pub display_name: ::std::string::String, + pub state: Instance_State, + pub field_type: Instance_Type, + 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 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 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()) + } +} + +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 { + 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.state != Instance_State::STATE_NOT_KNOWN { + my_size += ::protobuf::rt::enum_size(3, self.state); + } + if self.field_type != Instance_Type::TYPE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(4, self.field_type); + } + my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(5, &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<()> { + 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)?; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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>( + "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 }, + )); + ::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.display_name.clear(); + self.state = Instance_State::STATE_NOT_KNOWN; + self.field_type = Instance_Type::TYPE_UNSPECIFIED; + self.labels.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_NOT_KNOWN = 0, + READY = 1, + CREATING = 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_NOT_KNOWN), + 1 => ::std::option::Option::Some(Instance_State::READY), + 2 => ::std::option::Option::Some(Instance_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, + ]; + 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_NOT_KNOWN + } +} + +impl ::protobuf::reflect::ProtobufValue for Instance_State { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum Instance_Type { + TYPE_UNSPECIFIED = 0, + PRODUCTION = 1, + DEVELOPMENT = 2, +} + +impl ::protobuf::ProtobufEnum for Instance_Type { + 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 values() -> &'static [Self] { + static values: &'static [Instance_Type] = &[ + Instance_Type::TYPE_UNSPECIFIED, + Instance_Type::PRODUCTION, + Instance_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 ::std::marker::Copy for Instance_Type { +} + +impl ::std::default::Default for Instance_Type { + fn default() -> Self { + Instance_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)) + } +} + +#[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, + // 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() + } +} + +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.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 { + 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; + }, + 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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_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.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_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, + // 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), +} + +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() + } + } +} + +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; + } + } + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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()?)); + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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, + )); + ::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.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 { + // 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() + } +} + +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 { + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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() -> 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 fields = ::std::vec::Vec::new(); + ::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.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)?; + } + 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) + } +} + +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\"\x91\x04\n\x08Instance\x12\ + \x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x03\x12&\n\x0cdispl\ + ay_name\x18\x02\x20\x01(\tR\x0bdisplayNameB\x03\xe0A\x02\x12>\n\x05state\ + \x18\x03\x20\x01(\x0e2(.google.bigtable.admin.v2.Instance.StateR\x05stat\ + e\x12;\n\x04type\x18\x04\x20\x01(\x0e2'.google.bigtable.admin.v2.Instanc\ + e.TypeR\x04type\x12F\n\x06labels\x18\x05\x20\x03(\x0b2..google.bigtable.\ + admin.v2.Instance.LabelsEntryR\x06labels\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\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\0\ + \x12\t\n\x05READY\x10\x01\x12\x0c\n\x08CREATING\x10\x02\"=\n\x04Type\x12\ + \x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\ + \x0bDEVELOPMENT\x10\x02:N\xeaAK\n\x20bigtable.googleapis.com/Instance\ + \x12'projects/{project}/instances/{instance}\"\xa2\x05\n\x07Cluster\x12\ + \x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x03\x12B\n\x08locat\ + ion\x18\x02\x20\x01(\tR\x08locationB&\xfaA#\n!locations.googleapis.com/L\ + ocation\x12B\n\x05state\x18\x03\x20\x01(\x0e2'.google.bigtable.admin.v2.\ + Cluster.StateR\x05stateB\x03\xe0A\x03\x12$\n\x0bserve_nodes\x18\x04\x20\ + \x01(\x05R\nserveNodesB\x03\xe0A\x02\x12W\n\x14default_storage_type\x18\ + \x05\x20\x01(\x0e2%.google.bigtable.admin.v2.StorageTypeR\x12defaultStor\ + ageType\x12d\n\x11encryption_config\x18\x06\x20\x01(\x0b22.google.bigtab\ + le.admin.v2.Cluster.EncryptionConfigR\x10encryptionConfigB\x03\xe0A\x05\ + \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\x04:`\xeaA]\n\x1fbigtable.googleapis.com/Cluster\x12:projects/{proj\ + ect}/instances/{instance}/clusters/{cluster}\"\xde\x04\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\x0bdescription\x18\x03\x20\x01(\tR\x0bdescrip\ + tion\x12\x82\x01\n\x1dmulti_cluster_routing_use_any\x18\x05\x20\x01(\x0b\ + 2>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\0R\x19\ + multiClusterRoutingUseAny\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\ncluster_id\x18\x01\x20\x01(\tR\tclus\ + terId\x12<\n\x1aallow_transactional_writes\x18\x02\x20\x01(\x08R\x18allo\ + wTransactionalWritesB\x10\n\x0erouting_policy:j\xeaAg\n\"bigtable.google\ + apis.com/AppProfile\x12Aprojects/{project}/instances/{instance}/appProfi\ + les/{app_profile}B\xd0\x02\n\x1ccom.google.bigtable.admin.v2B\rInstanceP\ + rotoP\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::V2\xeaAx\n!clo\ + udkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{locatio\ + n}/keyRings/{key_ring}/cryptoKeys/{crypto_key}J\xdbK\n\x07\x12\x05\x0e\0\ + \xf4\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\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\x08\n\x01\x08\x12\x03\ + \x1c\0;\n\t\n\x02\x08-\x12\x03\x1c\0;\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\n\xe2\x01\n\x02\x04\ + \0\x12\x04&\0k\x01\x1a\xd5\x01\x20A\x20collection\x20of\x20Bigtable\x20[\ + Tables][google.bigtable.admin.v2.Table]\x20and\n\x20the\x20resources\x20\ + that\x20serve\x20them.\n\x20All\x20tables\x20in\x20an\x20instance\x20are\ + \x20served\x20from\x20all\n\x20[Clusters][google.bigtable.admin.v2.Clust\ + er]\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-\x028\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\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\x033\ + \x04\x0e\x1aS\x20The\x20instance\x20has\x20been\x20successfully\x20creat\ + ed\x20and\x20can\x20serve\x20requests\n\x20to\x20its\x20tables.\n\n\x0e\ + \n\x07\x04\0\x04\0\x02\x01\x01\x12\x033\x04\t\n\x0e\n\x07\x04\0\x04\0\ + \x02\x01\x02\x12\x033\x0c\r\n|\n\x06\x04\0\x04\0\x02\x02\x12\x037\x04\ + \x11\x1am\x20The\x20instance\x20is\x20currently\x20being\x20created,\x20\ + and\x20may\x20be\x20destroyed\n\x20if\x20the\x20creation\x20process\x20e\ + ncounters\x20an\x20error.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x037\ + \x04\x0c\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x037\x0f\x10\n)\n\x04\ + \x04\0\x04\x01\x12\x04;\x02M\x03\x1a\x1b\x20The\x20type\x20of\x20the\x20\ + instance.\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\x20\ + of\x20the\x20instance\x20is\x20unspecified.\x20If\x20set\x20when\x20crea\ + ting\x20an\n\x20instance,\x20a\x20`PRODUCTION`\x20instance\x20will\x20be\ + \x20created.\x20If\x20set\x20when\x20updating\n\x20an\x20instance,\x20th\ + e\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\x03C\x04\x13\x1aR\x20An\ + \x20instance\x20meant\x20for\x20production\x20use.\x20`serve_nodes`\x20m\ + ust\x20be\x20set\n\x20on\x20the\x20cluster.\n\n\x0e\n\x07\x04\0\x04\x01\ + \x02\x01\x01\x12\x03C\x04\x0e\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\ + \x03C\x11\x12\n\xb7\x03\n\x06\x04\0\x04\x01\x02\x02\x12\x03L\x04\x14\x1a\ + \xa7\x03\x20The\x20instance\x20is\x20meant\x20for\x20development\x20and\ + \x20testing\x20purposes\x20only;\x20it\x20has\n\x20no\x20performance\x20\ + or\x20uptime\x20guarantees\x20and\x20is\x20not\x20covered\x20by\x20SLA.\ + \n\x20After\x20a\x20development\x20instance\x20is\x20created,\x20it\x20c\ + an\x20be\x20upgraded\x20by\n\x20updating\x20the\x20instance\x20to\x20typ\ + e\x20`PRODUCTION`.\x20An\x20instance\x20created\n\x20as\x20a\x20producti\ + on\x20instance\x20cannot\x20be\x20changed\x20to\x20a\x20development\x20i\ + nstance.\n\x20When\x20creating\x20a\x20development\x20instance,\x20`serv\ + e_nodes`\x20on\x20the\x20cluster\x20must\n\x20not\x20be\x20set.\n\n\x0e\ + \n\x07\x04\0\x04\x01\x02\x02\x01\x12\x03L\x04\x0f\n\x0e\n\x07\x04\0\x04\ + \x01\x02\x02\x02\x12\x03L\x12\x13\n\x81\x01\n\x04\x04\0\x02\0\x12\x03Q\ + \x02>\x1at\x20The\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\r\n\x05\x04\0\x02\0\x04\x12\x04Q\x02M\x03\n\ + \x0c\n\x05\x04\0\x02\0\x05\x12\x03Q\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\ + \x12\x03Q\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03Q\x10\x11\n\x0c\n\x05\ + \x04\0\x02\0\x08\x12\x03Q\x12=\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\ + \x03Q\x13<\n\xab\x01\n\x04\x04\0\x02\x01\x12\x03V\x02C\x1a\x9d\x01\x20Re\ + quired.\x20The\x20descriptive\x20name\x20for\x20this\x20instance\x20as\ + \x20it\x20appears\x20in\x20UIs.\n\x20Can\x20be\x20changed\x20at\x20any\ + \x20time,\x20but\x20should\x20be\x20kept\x20globally\x20unique\n\x20to\ + \x20avoid\x20confusion.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04V\x02Q>\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\x15\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03V\x18\x19\n\x0c\ + \n\x05\x04\0\x02\x01\x08\x12\x03V\x1aB\n\x0f\n\x08\x04\0\x02\x01\x08\x9c\ + \x08\0\x12\x03V\x1bA\nA\n\x04\x04\0\x02\x02\x12\x03Z\x02\x12\x1a4\x20(`O\ + utputOnly`)\n\x20The\x20current\x20state\x20of\x20the\x20instance.\n\n\r\ + \n\x05\x04\0\x02\x02\x04\x12\x04Z\x02VC\n\x0c\n\x05\x04\0\x02\x02\x06\ + \x12\x03Z\x02\x07\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03Z\x08\r\n\x0c\n\ + \x05\x04\0\x02\x02\x03\x12\x03Z\x10\x11\nB\n\x04\x04\0\x02\x03\x12\x03]\ + \x02\x10\x1a5\x20The\x20type\x20of\x20the\x20instance.\x20Defaults\x20to\ + \x20`PRODUCTION`.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04]\x02Z\x12\n\x0c\ + \n\x05\x04\0\x02\x03\x06\x12\x03]\x02\x06\n\x0c\n\x05\x04\0\x02\x03\x01\ + \x12\x03]\x07\x0b\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03]\x0e\x0f\n\x82\ + \x05\n\x04\x04\0\x02\x04\x12\x03j\x02!\x1a\xf4\x04\x20Labels\x20are\x20a\ + \x20flexible\x20and\x20lightweight\x20mechanism\x20for\x20organizing\x20\ + cloud\n\x20resources\x20into\x20groups\x20that\x20reflect\x20a\x20custom\ + er's\x20organizational\x20needs\x20and\n\x20deployment\x20strategies.\ + \x20They\x20can\x20be\x20used\x20to\x20filter\x20resources\x20and\x20agg\ + regate\n\x20metrics.\n\n\x20*\x20Label\x20keys\x20must\x20be\x20between\ + \x201\x20and\x2063\x20characters\x20long\x20and\x20must\x20conform\x20to\ + \n\x20\x20\x20the\x20regular\x20expression:\x20`[\\p{Ll}\\p{Lo}][\\p{Ll}\ + \\p{Lo}\\p{N}_-]{0,62}`.\n\x20*\x20Label\x20values\x20must\x20be\x20betw\ + een\x200\x20and\x2063\x20characters\x20long\x20and\x20must\x20conform\ + \x20to\n\x20\x20\x20the\x20regular\x20expression:\x20`[\\p{Ll}\\p{Lo}\\p\ + {N}_-]{0,63}`.\n\x20*\x20No\x20more\x20than\x2064\x20labels\x20can\x20be\ + \x20associated\x20with\x20a\x20given\x20resource.\n\x20*\x20Keys\x20and\ + \x20values\x20must\x20both\x20be\x20under\x20128\x20bytes.\n\n\r\n\x05\ + \x04\0\x02\x04\x04\x12\x04j\x02]\x10\n\x0c\n\x05\x04\0\x02\x04\x06\x12\ + \x03j\x02\x15\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03j\x16\x1c\n\x0c\n\x05\ + \x04\0\x02\x04\x03\x12\x03j\x1f\x20\n\xc9\x01\n\x02\x04\x01\x12\x05p\0\ + \xbb\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]\x20in\x20the\x20pare\ + nt\n\x20[Instance][google.bigtable.admin.v2.Instance].\n\n\n\n\x03\x04\ + \x01\x01\x12\x03p\x08\x0f\n\x0b\n\x03\x04\x01\x07\x12\x04q\x02t\x04\n\r\ + \n\x05\x04\x01\x07\x9d\x08\x12\x04q\x02t\x04\na\n\x04\x04\x01\x03\0\x12\ + \x05x\x02\x84\x01\x03\x1aR\x20Cloud\x20Key\x20Management\x20Service\x20(\ + Cloud\x20KMS)\x20settings\x20for\x20a\x20CMEK-protected\n\x20cluster.\n\ + \n\x0c\n\x05\x04\x01\x03\0\x01\x12\x03x\n\x1a\n\xfd\x03\n\x06\x04\x01\ + \x03\0\x02\0\x12\x06\x81\x01\x04\x83\x01\x07\x1a\xea\x03\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\x203)\x20A\ + ll\x20clusters\x20within\x20an\x20instance\x20must\x20use\x20the\x20same\ + \x20CMEK\x20key.\n\n\x10\n\x07\x04\x01\x03\0\x02\0\x04\x12\x05\x81\x01\ + \x04x\x1c\n\x0f\n\x07\x04\x01\x03\0\x02\0\x05\x12\x04\x81\x01\x04\n\n\ + \x0f\n\x07\x04\x01\x03\0\x02\0\x01\x12\x04\x81\x01\x0b\x17\n\x0f\n\x07\ + \x04\x01\x03\0\x02\0\x03\x12\x04\x81\x01\x1a\x1b\n\x11\n\x07\x04\x01\x03\ + \0\x02\0\x08\x12\x06\x81\x01\x1c\x83\x01\x06\n\x13\n\t\x04\x01\x03\0\x02\ + \0\x08\x9f\x08\x12\x06\x81\x01\x1d\x83\x01\x05\n/\n\x04\x04\x01\x04\0\ + \x12\x06\x87\x01\x02\x9d\x01\x03\x1a\x1f\x20Possible\x20states\x20of\x20\ + a\x20cluster.\n\n\r\n\x05\x04\x01\x04\0\x01\x12\x04\x87\x01\x07\x0c\nC\n\ + \x06\x04\x01\x04\0\x02\0\x12\x04\x89\x01\x04\x18\x1a3\x20The\x20state\ + \x20of\x20the\x20cluster\x20could\x20not\x20be\x20determined.\n\n\x0f\n\ + \x07\x04\x01\x04\0\x02\0\x01\x12\x04\x89\x01\x04\x13\n\x0f\n\x07\x04\x01\ + \x04\0\x02\0\x02\x12\x04\x89\x01\x16\x17\n[\n\x06\x04\x01\x04\0\x02\x01\ + \x12\x04\x8c\x01\x04\x0e\x1aK\x20The\x20cluster\x20has\x20been\x20succes\ + sfully\x20created\x20and\x20is\x20ready\x20to\x20serve\x20requests.\n\n\ + \x0f\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x04\x8c\x01\x04\t\n\x0f\n\x07\ + \x04\x01\x04\0\x02\x01\x02\x12\x04\x8c\x01\x0c\r\n\xbf\x01\n\x06\x04\x01\ + \x04\0\x02\x02\x12\x04\x91\x01\x04\x11\x1a\xae\x01\x20The\x20cluster\x20\ + is\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\x0f\n\x07\x04\x01\x04\0\x02\x02\x01\x12\ + \x04\x91\x01\x04\x0c\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x04\x91\ + \x01\x0f\x10\n\xbe\x02\n\x06\x04\x01\x04\0\x02\x03\x12\x04\x98\x01\x04\ + \x11\x1a\xad\x02\x20The\x20cluster\x20is\x20currently\x20being\x20resize\ + d,\x20and\x20may\x20revert\x20to\x20its\x20previous\n\x20node\x20count\ + \x20if\x20the\x20process\x20encounters\x20an\x20error.\n\x20A\x20cluster\ + \x20is\x20still\x20capable\x20of\x20serving\x20requests\x20while\x20bein\ + g\x20resized,\n\x20but\x20may\x20exhibit\x20performance\x20as\x20if\x20i\ + ts\x20number\x20of\x20allocated\x20nodes\x20is\n\x20between\x20the\x20st\ + arting\x20and\x20requested\x20states.\n\n\x0f\n\x07\x04\x01\x04\0\x02\ + \x03\x01\x12\x04\x98\x01\x04\x0c\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x02\ + \x12\x04\x98\x01\x0f\x10\n\x86\x01\n\x06\x04\x01\x04\0\x02\x04\x12\x04\ + \x9c\x01\x04\x11\x1av\x20The\x20cluster\x20has\x20no\x20backing\x20nodes\ + .\x20The\x20data\x20(tables)\x20still\n\x20exist,\x20but\x20no\x20operat\ + ions\x20can\x20be\x20performed\x20on\x20the\x20cluster.\n\n\x0f\n\x07\ + \x04\x01\x04\0\x02\x04\x01\x12\x04\x9c\x01\x04\x0c\n\x0f\n\x07\x04\x01\ + \x04\0\x02\x04\x02\x12\x04\x9c\x01\x0f\x10\n\x8b\x01\n\x04\x04\x01\x02\0\ + \x12\x04\xa1\x01\x02>\x1a}\x20The\x20unique\x20name\x20of\x20the\x20clus\ + ter.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/inst\ + ances/{instance}/clusters/[a-z][-a-z0-9]*`.\n\n\x0f\n\x05\x04\x01\x02\0\ + \x04\x12\x06\xa1\x01\x02\x9d\x01\x03\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\ + \xa1\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xa1\x01\t\r\n\r\n\ + \x05\x04\x01\x02\0\x03\x12\x04\xa1\x01\x10\x11\n\r\n\x05\x04\x01\x02\0\ + \x08\x12\x04\xa1\x01\x12=\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\ + \x04\xa1\x01\x13<\n\xa4\x02\n\x04\x04\x01\x02\x01\x12\x06\xa8\x01\x02\ + \xaa\x01\x05\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/{project}/locations/{zone}`.\n\n\x0f\n\x05\ + \x04\x01\x02\x01\x04\x12\x06\xa8\x01\x02\xa1\x01>\n\r\n\x05\x04\x01\x02\ + \x01\x05\x12\x04\xa8\x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\ + \xa8\x01\t\x11\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xa8\x01\x14\x15\n\ + \x0f\n\x05\x04\x01\x02\x01\x08\x12\x06\xa8\x01\x16\xaa\x01\x04\n\x11\n\ + \x07\x04\x01\x02\x01\x08\x9f\x08\x12\x06\xa8\x01\x17\xaa\x01\x03\n1\n\ + \x04\x04\x01\x02\x02\x12\x04\xad\x01\x02>\x1a#\x20The\x20current\x20stat\ + e\x20of\x20the\x20cluster.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\xad\ + \x01\x02\xaa\x01\x05\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\xad\x01\x02\ + \x07\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xad\x01\x08\r\n\r\n\x05\x04\ + \x01\x02\x02\x03\x12\x04\xad\x01\x10\x11\n\r\n\x05\x04\x01\x02\x02\x08\ + \x12\x04\xad\x01\x12=\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\x12\x04\ + \xad\x01\x13<\n\x8f\x01\n\x04\x04\x01\x02\x03\x12\x04\xb1\x01\x02A\x1a\ + \x80\x01\x20Required.\x20The\x20number\x20of\x20nodes\x20allocated\x20to\ + \x20this\x20cluster.\x20More\x20nodes\x20enable\n\x20higher\x20throughpu\ + t\x20and\x20more\x20consistent\x20performance.\n\n\x0f\n\x05\x04\x01\x02\ + \x03\x04\x12\x06\xb1\x01\x02\xad\x01>\n\r\n\x05\x04\x01\x02\x03\x05\x12\ + \x04\xb1\x01\x02\x07\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xb1\x01\x08\ + \x13\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xb1\x01\x16\x17\n\r\n\x05\x04\ + \x01\x02\x03\x08\x12\x04\xb1\x01\x18@\n\x10\n\x08\x04\x01\x02\x03\x08\ + \x9c\x08\0\x12\x04\xb1\x01\x19?\n\x91\x01\n\x04\x04\x01\x02\x04\x12\x04\ + \xb6\x01\x02'\x1a\x82\x01\x20(`CreationOnly`)\n\x20The\x20type\x20of\x20\ + storage\x20used\x20by\x20this\x20cluster\x20to\x20serve\x20its\n\x20pare\ + nt\x20instance's\x20tables,\x20unless\x20explicitly\x20overridden.\n\n\ + \x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\xb6\x01\x02\xb1\x01A\n\r\n\x05\ + \x04\x01\x02\x04\x06\x12\x04\xb6\x01\x02\r\n\r\n\x05\x04\x01\x02\x04\x01\ + \x12\x04\xb6\x01\x0e\"\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\xb6\x01%&\n\ + V\n\x04\x04\x01\x02\x05\x12\x06\xb9\x01\x02\xba\x010\x1aF\x20Immutable.\ + \x20The\x20encryption\x20configuration\x20for\x20CMEK-protected\x20clust\ + ers.\n\n\x0f\n\x05\x04\x01\x02\x05\x04\x12\x06\xb9\x01\x02\xb6\x01'\n\r\ + \n\x05\x04\x01\x02\x05\x06\x12\x04\xb9\x01\x02\x12\n\r\n\x05\x04\x01\x02\ + \x05\x01\x12\x04\xb9\x01\x13$\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\xb9\ + \x01'(\n\r\n\x05\x04\x01\x02\x05\x08\x12\x04\xba\x01\x06/\n\x10\n\x08\ + \x04\x01\x02\x05\x08\x9c\x08\0\x12\x04\xba\x01\x07.\n\x82\x01\n\x02\x04\ + \x02\x12\x06\xbf\x01\0\xf4\x01\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\x02\x01\x12\x04\xbf\x01\x08\x12\n\r\n\x03\x04\x02\x07\x12\x06\ + \xc0\x01\x02\xc3\x01\x04\n\x0f\n\x05\x04\x02\x07\x9d\x08\x12\x06\xc0\x01\ + \x02\xc3\x01\x04\n\xca\x02\n\x04\x04\x02\x03\0\x12\x04\xca\x01\x02&\x1a\ + \xbb\x02\x20Read/write\x20requests\x20are\x20routed\x20to\x20the\x20near\ + est\x20cluster\x20in\x20the\x20instance,\x20and\n\x20will\x20fail\x20ove\ + r\x20to\x20the\x20nearest\x20cluster\x20that\x20is\x20available\x20in\ + \x20the\x20event\x20of\n\x20transient\x20errors\x20or\x20delays.\x20Clus\ + ters\x20in\x20a\x20region\x20are\x20considered\n\x20equidistant.\x20Choo\ + sing\x20this\x20option\x20sacrifices\x20read-your-writes\x20consistency\ + \n\x20to\x20improve\x20availability.\n\n\r\n\x05\x04\x02\x03\0\x01\x12\ + \x04\xca\x01\n#\n\xb0\x01\n\x04\x04\x02\x03\x01\x12\x06\xcf\x01\x02\xd7\ + \x01\x03\x1a\x9f\x01\x20Unconditionally\x20routes\x20all\x20read/write\ + \x20requests\x20to\x20a\x20specific\x20cluster.\n\x20This\x20option\x20p\ + reserves\x20read-your-writes\x20consistency\x20but\x20does\x20not\x20imp\ + rove\n\x20availability.\n\n\r\n\x05\x04\x02\x03\x01\x01\x12\x04\xcf\x01\ + \n\x1e\nL\n\x06\x04\x02\x03\x01\x02\0\x12\x04\xd1\x01\x04\x1a\x1a<\x20Th\ + e\x20cluster\x20to\x20which\x20read/write\x20requests\x20should\x20be\ + \x20routed.\n\n\x11\n\x07\x04\x02\x03\x01\x02\0\x04\x12\x06\xd1\x01\x04\ + \xcf\x01\x20\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x05\x12\x04\xd1\x01\x04\n\ + \n\x0f\n\x07\x04\x02\x03\x01\x02\0\x01\x12\x04\xd1\x01\x0b\x15\n\x0f\n\ + \x07\x04\x02\x03\x01\x02\0\x03\x12\x04\xd1\x01\x18\x19\n\xd1\x01\n\x06\ + \x04\x02\x03\x01\x02\x01\x12\x04\xd6\x01\x04(\x1a\xc0\x01\x20Whether\x20\ + or\x20not\x20`CheckAndMutateRow`\x20and\x20`ReadModifyWriteRow`\x20reque\ + sts\x20are\n\x20allowed\x20by\x20this\x20app\x20profile.\x20It\x20is\x20\ + unsafe\x20to\x20send\x20these\x20requests\x20to\n\x20the\x20same\x20tabl\ + e/row/column\x20in\x20multiple\x20clusters.\n\n\x11\n\x07\x04\x02\x03\ + \x01\x02\x01\x04\x12\x06\xd6\x01\x04\xd1\x01\x1a\n\x0f\n\x07\x04\x02\x03\ + \x01\x02\x01\x05\x12\x04\xd6\x01\x04\x08\n\x0f\n\x07\x04\x02\x03\x01\x02\ + \x01\x01\x12\x04\xd6\x01\t#\n\x0f\n\x07\x04\x02\x03\x01\x02\x01\x03\x12\ + \x04\xd6\x01&'\n\xaf\x01\n\x04\x04\x02\x02\0\x12\x04\xdc\x01\x02\x12\x1a\ + \xa0\x01\x20(`OutputOnly`)\n\x20The\x20unique\x20name\x20of\x20the\x20ap\ + p\x20profile.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{proj\ + ect}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.\n\n\ + \x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xdc\x01\x02\xd7\x01\x03\n\r\n\x05\ + \x04\x02\x02\0\x05\x12\x04\xdc\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\ + \x12\x04\xdc\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xdc\x01\x10\x11\ + \n\xcd\x03\n\x04\x04\x02\x02\x01\x12\x04\xe6\x01\x02\x12\x1a\xbe\x03\x20\ + Strongly\x20validated\x20etag\x20for\x20optimistic\x20concurrency\x20con\ + trol.\x20Preserve\x20the\n\x20value\x20returned\x20from\x20`GetAppProfil\ + e`\x20when\x20calling\x20`UpdateAppProfile`\x20to\n\x20fail\x20the\x20re\ + quest\x20if\x20there\x20has\x20been\x20a\x20modification\x20in\x20the\ + \x20mean\x20time.\x20The\n\x20`update_mask`\x20of\x20the\x20request\x20n\ + eed\x20not\x20include\x20`etag`\x20for\x20this\x20protection\n\x20to\x20\ + apply.\n\x20See\x20[Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag)\ + \x20and\n\x20[RFC\x207232](https://tools.ietf.org/html/rfc7232#section-2\ + .3)\x20for\x20more\n\x20details.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\ + \x06\xe6\x01\x02\xdc\x01\x12\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xe6\ + \x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xe6\x01\t\r\n\r\n\x05\ + \x04\x02\x02\x01\x03\x12\x04\xe6\x01\x10\x11\nS\n\x04\x04\x02\x02\x02\ + \x12\x04\xe9\x01\x02\x19\x1aE\x20Optional\x20long\x20form\x20description\ + \x20of\x20the\x20use\x20case\x20for\x20this\x20AppProfile.\n\n\x0f\n\x05\ + \x04\x02\x02\x02\x04\x12\x06\xe9\x01\x02\xe6\x01\x12\n\r\n\x05\x04\x02\ + \x02\x02\x05\x12\x04\xe9\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\ + \x04\xe9\x01\t\x14\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xe9\x01\x17\x18\ + \n|\n\x04\x04\x02\x08\0\x12\x06\xed\x01\x02\xf3\x01\x03\x1al\x20The\x20r\ + outing\x20policy\x20for\x20all\x20read/write\x20requests\x20that\x20use\ + \x20this\x20app\x20profile.\n\x20A\x20value\x20must\x20be\x20explicitly\ + \x20set.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\xed\x01\x08\x16\n3\n\x04\ + \x04\x02\x02\x03\x12\x04\xef\x01\x04@\x1a%\x20Use\x20a\x20multi-cluster\ + \x20routing\x20policy.\n\n\r\n\x05\x04\x02\x02\x03\x06\x12\x04\xef\x01\ + \x04\x1d\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xef\x01\x1e;\n\r\n\x05\ + \x04\x02\x02\x03\x03\x12\x04\xef\x01>?\n4\n\x04\x04\x02\x02\x04\x12\x04\ + \xf2\x01\x044\x1a&\x20Use\x20a\x20single-cluster\x20routing\x20policy.\n\ + \n\r\n\x05\x04\x02\x02\x04\x06\x12\x04\xf2\x01\x04\x18\n\r\n\x05\x04\x02\ + \x02\x04\x01\x12\x04\xf2\x01\x19/\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\ + \xf2\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/table.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/table.rs new file mode 100644 index 0000000000..ab1781c731 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/admin/v2/table.rs @@ -0,0 +1,4158 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/admin/v2/table.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct RestoreInfo { + // message fields + pub source_type: RestoreSourceType, + // message oneof groups + pub source_info: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RestoreInfo { + fn default() -> &'a RestoreInfo { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum RestoreInfo_oneof_source_info { + backup_info(BackupInfo), +} + +impl RestoreInfo { + pub fn new() -> RestoreInfo { + ::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() + } + } +} + +impl ::protobuf::Message for RestoreInfo { + 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)); + } + self.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_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; + if self.source_type != RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(1, self.source_type); + } + 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; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_type != RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED { + os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.source_type))?; + } + 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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RestoreInfo", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static RestoreInfo { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RestoreInfo::new) + } +} + +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 ::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 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, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Table { + fn default() -> &'a Table { +
::default_instance() + } +} + +impl Table { + pub fn new() -> Table { + ::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.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()) + } +} + +impl ::protobuf::Message for Table { + fn is_initialized(&self) -> bool { + for v in &self.restore_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.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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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 + } + + 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 + } + } + + 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 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()) + } + + // .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()) + } + + // .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()) + } + + // 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; + } + + // .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; + } + + // Param is passed by value, moved + pub fn set_state(&mut self, v: Backup_State) { + self.state = v; + } + + // .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 has_encryption_info(&self) -> bool { + self.encryption_info.is_some() + } + + // Param is passed by value, moved + pub fn set_encryption_info(&mut self, v: 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 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) -> 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; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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.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 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 + } + + 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 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(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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>( + "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_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 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.name.clear(); + self.source_table.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 ::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 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, + // 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 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()) + } + + // string source_table = 4; + + + 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()) + } +} + +impl ::protobuf::Message for BackupInfo { + 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)?; + }, + 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_proto3_string_into(wire_type, is, &mut self.source_table)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.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.source_table.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.source_table); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.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.source_table.is_empty() { + os.write_string(4, &self.source_table)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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>>( + "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 }, + )); + ::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.start_time.clear(); + self.end_time.clear(); + self.source_table.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(Clone,PartialEq,Eq,Debug,Hash)] +pub enum RestoreSourceType { + RESTORE_SOURCE_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::RESTORE_SOURCE_TYPE_UNSPECIFIED), + 1 => ::std::option::Option::Some(RestoreSourceType::BACKUP), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [RestoreSourceType] = &[ + RestoreSourceType::RESTORE_SOURCE_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::RESTORE_SOURCE_TYPE_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for RestoreSourceType { + 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/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\"\ + \xd1\t\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\rclusterStates\x12\\\n\x0fcolumn_families\x18\x03\ + \x20\x03(\x0b23.google.bigtable.admin.v2.Table.ColumnFamiliesEntryR\x0ec\ + olumnFamilies\x12V\n\x0bgranularity\x18\x04\x20\x01(\x0e24.google.bigtab\ + le.admin.v2.Table.TimestampGranularityR\x0bgranularity\x12H\n\x0crestore\ + _info\x18\x06\x20\x01(\x0b2%.google.bigtable.admin.v2.RestoreInfoR\x0bre\ + storeInfo\x1a\xe3\x02\n\x0cClusterState\x12j\n\x11replication_state\x18\ + \x01\x20\x01(\x0e2=.google.bigtable.admin.v2.Table.ClusterState.Replicat\ + ionStateR\x10replicationState\x12V\n\x0fencryption_info\x18\x02\x20\x03(\ + \x0b2(.google.bigtable.admin.v2.EncryptionInfoR\x0eencryptionInfoB\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_MAINTENANC\ + E\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\ + \x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1an\n\x12ClusterStatesEn\ + try\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\x03key\x12<\n\x05value\x18\x02\x20\x01(\x0b2&.google.bigtable.admin\ + .v2.ColumnFamilyR\x05value:\x028\x01\"I\n\x14TimestampGranularity\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:Z\xeaAW\ + \n\x1dbigtable.googleapis.com/Table\x126projects/{project}/instances/{in\ + stance}/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\x0emaxN\ + umVersions\x124\n\x07max_age\x18\x02\x20\x01(\x0b2\x19.google.protobuf.D\ + urationH\0R\x06maxAge\x12S\n\x0cintersection\x18\x03\x20\x01(\x0b2-.goog\ + le.bigtable.admin.v2.GcRule.IntersectionH\0R\x0cintersection\x12>\n\x05u\ + nion\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.GcRuleR\x05\ + rulesB\x06\n\x04rule\"\x8a\x03\n\x0eEncryptionInfo\x12e\n\x0fencryption_\ + type\x18\x03\x20\x01(\x0e27.google.bigtable.admin.v2.EncryptionInfo.Encr\ + yptionTypeR\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\rkmsKeyVersionB0\ + \xfaA*\n(cloudkms.googleapis.com/CryptoKeyVersion\xe0A\x03\"q\n\x0eEncry\ + ptionType\x12\x1f\n\x1bENCRYPTION_TYPE_UNSPECIFIED\x10\0\x12\x1d\n\x19GO\ + OGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1bCUSTOMER_MANAGED_ENCRYPTION\ + \x10\x02\"\x95\x04\n\x08Snapshot\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ + \x04name\x12B\n\x0csource_table\x18\x02\x20\x01(\x0b2\x1f.google.bigtabl\ + e.admin.v2.TableR\x0bsourceTable\x12&\n\x0fdata_size_bytes\x18\x03\x20\ + \x01(\x03R\rdataSizeBytes\x12;\n\x0bcreate_time\x18\x04\x20\x01(\x0b2\ + \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\x02:v\xeaAs\n\x20bigtable.googleapis.com/Snap\ + shot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snap\ + shots/{snapshot}\"\xf4\x04\n\x06Backup\x12\x17\n\x04name\x18\x01\x20\x01\ + (\tR\x04nameB\x03\xe0A\x03\x12)\n\x0csource_table\x18\x02\x20\x01(\tR\ + \x0bsourceTableB\x06\xe0A\x05\xe0A\x02\x12@\n\x0bexpire_time\x18\x03\x20\ + \x01(\x0b2\x1a.google.protobuf.TimestampR\nexpireTimeB\x03\xe0A\x02\x12>\ + \n\nstart_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tsta\ + rtTimeB\x03\xe0A\x03\x12:\n\x08end_time\x18\x05\x20\x01(\x0b2\x1a.google\ + .protobuf.TimestampR\x07endTimeB\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.v2.Backup.StateR\x05stateB\x03\xe0A\ + \x03\x12V\n\x0fencryption_info\x18\t\x20\x01(\x0b2(.google.bigtable.admi\ + n.v2.EncryptionInfoR\x0eencryptionInfoB\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:p\xeaAm\n\x1ebigtable.googleapis.com/Backup\x12Kprojec\ + ts/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\ + \xcd\x01\n\nBackupInfo\x12\x1b\n\x06backup\x18\x01\x20\x01(\tR\x06backup\ + B\x03\xe0A\x03\x12>\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.proto\ + buf.TimestampR\tstartTimeB\x03\xe0A\x03\x12:\n\x08end_time\x18\x03\x20\ + \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTimeB\x03\xe0A\x03\x12&\ + \n\x0csource_table\x18\x04\x20\x01(\tR\x0bsourceTableB\x03\xe0A\x03*D\n\ + \x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\0\ + \x12\n\n\x06BACKUP\x10\x01B\xfc\x02\n\x1ccom.google.bigtable.admin.v2B\n\ + TableProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2\ + ;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Clou\ + d\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xeaA\ + \xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{projec\ + t}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryp\ + toKeyVersions/{crypto_key_version}J\xa9{\n\x07\x12\x05\x0e\0\x94\x03\x01\ + \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\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\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\n7\n\x02\x05\0\x12\x04%\0+\x01\x1a+\x20In\ + dicates\x20the\x20type\x20of\x20the\x20restore\x20source.\n\n\n\n\x03\ + \x05\0\x01\x12\x03%\x05\x16\n%\n\x04\x05\0\x02\0\x12\x03'\x02&\x1a\x18\ + \x20No\x20restore\x20associated.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03'\ + \x02!\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03'$%\n>\n\x04\x05\0\x02\x01\x12\ + \x03*\x02\r\x1a1\x20A\x20backup\x20was\x20used\x20as\x20the\x20source\ + \x20of\x20the\x20restore.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03*\x02\ + \x08\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03*\x0b\x0c\n0\n\x02\x04\0\x12\ + \x04.\08\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\x030\x02$\ + \x1a!\x20The\x20type\x20of\x20the\x20restore\x20source.\n\n\r\n\x05\x04\ + \0\x02\0\x04\x12\x040\x02.\x15\n\x0c\n\x05\x04\0\x02\0\x06\x12\x030\x02\ + \x13\n\x0c\n\x05\x04\0\x02\0\x01\x12\x030\x14\x1f\n\x0c\n\x05\x04\0\x02\ + \0\x03\x12\x030\"#\nG\n\x04\x04\0\x08\0\x12\x043\x027\x03\x1a9\x20Inform\ + ation\x20about\x20the\x20source\x20used\x20to\x20restore\x20the\x20table\ + .\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x033\x08\x13\ng\n\x04\x04\0\x02\x01\ + \x12\x036\x04\x1f\x1aZ\x20Information\x20about\x20the\x20backup\x20used\ + \x20to\x20restore\x20the\x20table.\x20The\x20backup\n\x20may\x20no\x20lo\ + nger\x20exist.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x036\x04\x0e\n\x0c\n\ + \x05\x04\0\x02\x01\x01\x12\x036\x0f\x1a\n\x0c\n\x05\x04\0\x02\x01\x03\ + \x12\x036\x1d\x1e\n\x91\x01\n\x02\x04\x01\x12\x05<\0\xa9\x01\x01\x1a\x83\ + \x01\x20A\x20collection\x20of\x20user\x20data\x20indexed\x20by\x20row,\ + \x20column,\x20and\x20timestamp.\n\x20Each\x20table\x20is\x20served\x20u\ + sing\x20the\x20resources\x20of\x20its\x20parent\x20cluster.\n\n\n\n\x03\ + \x04\x01\x01\x12\x03<\x08\r\n\x0b\n\x03\x04\x01\x07\x12\x04=\x02@\x04\n\ + \r\n\x05\x04\x01\x07\x9d\x08\x12\x04=\x02@\x04\nD\n\x04\x04\x01\x03\0\ + \x12\x04C\x02k\x03\x1a6\x20The\x20state\x20of\x20a\x20table's\x20data\ + \x20in\x20a\x20particular\x20cluster.\n\n\x0c\n\x05\x04\x01\x03\0\x01\ + \x12\x03C\n\x16\n+\n\x06\x04\x01\x03\0\x04\0\x12\x04E\x04_\x05\x1a\x1b\ + \x20Table\x20replication\x20states.\n\n\x0e\n\x07\x04\x01\x03\0\x04\0\ + \x01\x12\x03E\t\x19\nQ\n\x08\x04\x01\x03\0\x04\0\x02\0\x12\x03G\x06\x1a\ + \x1a@\x20The\x20replication\x20state\x20of\x20the\x20table\x20is\x20unkn\ + own\x20in\x20this\x20cluster.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\0\x01\ + \x12\x03G\x06\x15\n\x10\n\t\x04\x01\x03\0\x04\0\x02\0\x02\x12\x03G\x18\ + \x19\n\xda\x01\n\x08\x04\x01\x03\0\x04\0\x02\x01\x12\x03L\x06\x17\x1a\ + \xc8\x01\x20The\x20cluster\x20was\x20recently\x20created,\x20and\x20the\ + \x20table\x20must\x20finish\x20copying\n\x20over\x20pre-existing\x20data\ + \x20from\x20other\x20clusters\x20before\x20it\x20can\x20begin\n\x20recei\ + ving\x20live\x20replication\x20updates\x20and\x20serving\x20Data\x20API\ + \x20requests.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x01\x01\x12\x03L\x06\ + \x12\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x01\x02\x12\x03L\x15\x16\n\x85\ + \x01\n\x08\x04\x01\x03\0\x04\0\x02\x02\x12\x03P\x06\x1e\x1at\x20The\x20t\ + able\x20is\x20temporarily\x20unable\x20to\x20serve\x20Data\x20API\x20req\ + uests\x20from\x20this\n\x20cluster\x20due\x20to\x20planned\x20internal\ + \x20maintenance.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x02\x01\x12\x03P\ + \x06\x19\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x02\x02\x12\x03P\x1c\x1d\n\ + \x8b\x01\n\x08\x04\x01\x03\0\x04\0\x02\x03\x12\x03T\x06\x20\x1az\x20The\ + \x20table\x20is\x20temporarily\x20unable\x20to\x20serve\x20Data\x20API\ + \x20requests\x20from\x20this\n\x20cluster\x20due\x20to\x20unplanned\x20o\ + r\x20emergency\x20maintenance.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x03\ + \x01\x12\x03T\x06\x1b\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x03\x02\x12\x03T\ + \x1e\x1f\n\xba\x01\n\x08\x04\x01\x03\0\x04\0\x02\x04\x12\x03Y\x06\x10\ + \x1a\xa8\x01\x20The\x20table\x20can\x20serve\x20Data\x20API\x20requests\ + \x20from\x20this\x20cluster.\x20Depending\x20on\n\x20replication\x20dela\ + y,\x20reads\x20may\x20not\x20immediately\x20reflect\x20the\x20state\x20o\ + f\x20the\n\x20table\x20in\x20other\x20clusters.\n\n\x10\n\t\x04\x01\x03\ + \0\x04\0\x02\x04\x01\x12\x03Y\x06\x0b\n\x10\n\t\x04\x01\x03\0\x04\0\x02\ + \x04\x02\x12\x03Y\x0e\x0f\n\xc8\x01\n\x08\x04\x01\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,\x20the\n\x20table\x20will\x20transition\x20to\x20`R\ + EADY`\x20state.\n\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x05\x01\x12\x03^\x06\ + \x16\n\x10\n\t\x04\x01\x03\0\x04\0\x02\x05\x02\x12\x03^\x19\x1a\nU\n\x06\ + \x04\x01\x03\0\x02\0\x12\x03b\x04+\x1aF\x20Output\x20only.\x20The\x20sta\ + te\x20of\x20replication\x20for\x20the\x20table\x20in\x20this\x20cluster.\ + \n\n\x0f\n\x07\x04\x01\x03\0\x02\0\x04\x12\x04b\x04_\x05\n\x0e\n\x07\x04\ + \x01\x03\0\x02\0\x06\x12\x03b\x04\x14\n\x0e\n\x07\x04\x01\x03\0\x02\0\ + \x01\x12\x03b\x15&\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\x12\x03b)*\n\xda\ + \x02\n\x06\x04\x01\x03\0\x02\x01\x12\x04i\x04j4\x1a\xc9\x02\x20Output\ + \x20only.\x20The\x20encryption\x20information\x20for\x20the\x20table\x20\ + in\x20this\x20cluster.\n\x20If\x20the\x20encryption\x20key\x20protecting\ + \x20this\x20resource\x20is\x20customer\x20managed,\x20then\n\x20its\x20v\ + ersion\x20can\x20be\x20rotated\x20in\x20Cloud\x20Key\x20Management\x20Se\ + rvice\x20(Cloud\x20KMS).\n\x20The\x20primary\x20version\x20of\x20the\x20\ + key\x20and\x20its\x20status\x20will\x20be\x20reflected\x20here\x20when\n\ + \x20changes\x20propagate\x20from\x20Cloud\x20KMS.\n\n\x0e\n\x07\x04\x01\ + \x03\0\x02\x01\x04\x12\x03i\x04\x0c\n\x0e\n\x07\x04\x01\x03\0\x02\x01\ + \x06\x12\x03i\r\x1b\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\x03i\x1c+\ + \n\x0e\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x03i./\n\x0e\n\x07\x04\x01\ + \x03\0\x02\x01\x08\x12\x03j\x083\n\x11\n\n\x04\x01\x03\0\x02\x01\x08\x9c\ + \x08\0\x12\x03j\t2\nk\n\x04\x04\x01\x04\0\x12\x04o\x02v\x03\x1a]\x20Poss\ + ible\x20timestamp\x20granularities\x20to\x20use\x20when\x20keeping\x20mu\ + ltiple\x20versions\n\x20of\x20data\x20in\x20a\x20table.\n\n\x0c\n\x05\ + \x04\x01\x04\0\x01\x12\x03o\x07\x1b\n\x8c\x01\n\x06\x04\x01\x04\0\x02\0\ + \x12\x03r\x04*\x1a}\x20The\x20user\x20did\x20not\x20specify\x20a\x20gran\ + ularity.\x20Should\x20not\x20be\x20returned.\n\x20When\x20specified\x20d\ + uring\x20table\x20creation,\x20MILLIS\x20will\x20be\x20used.\n\n\x0e\n\ + \x07\x04\x01\x04\0\x02\0\x01\x12\x03r\x04%\n\x0e\n\x07\x04\x01\x04\0\x02\ + \0\x02\x12\x03r()\nH\n\x06\x04\x01\x04\0\x02\x01\x12\x03u\x04\x0f\x1a9\ + \x20The\x20table\x20keeps\x20data\x20versioned\x20at\x20a\x20granularity\ + \x20of\x201ms.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03u\x04\n\n\ + \x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03u\r\x0e\n6\n\x04\x04\x01\x04\ + \x01\x12\x05y\x02\x8c\x01\x03\x1a'\x20Defines\x20a\x20view\x20over\x20a\ + \x20table's\x20fields.\n\n\x0c\n\x05\x04\x01\x04\x01\x01\x12\x03y\x07\ + \x0b\nT\n\x06\x04\x01\x04\x01\x02\0\x12\x03{\x04\x19\x1aE\x20Uses\x20the\ + \x20default\x20view\x20for\x20each\x20method\x20as\x20documented\x20in\ + \x20its\x20request.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\0\x01\x12\x03{\x04\ + \x14\n\x0e\n\x07\x04\x01\x04\x01\x02\0\x02\x12\x03{\x17\x18\n'\n\x06\x04\ + \x01\x04\x01\x02\x01\x12\x03~\x04\x12\x1a\x18\x20Only\x20populates\x20`n\ + ame`.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\x01\x01\x12\x03~\x04\r\n\x0e\n\ + \x07\x04\x01\x04\x01\x02\x01\x02\x12\x03~\x10\x11\nQ\n\x06\x04\x01\x04\ + \x01\x02\x02\x12\x04\x81\x01\x04\x14\x1aA\x20Only\x20populates\x20`name`\ + \x20and\x20fields\x20related\x20to\x20the\x20table's\x20schema.\n\n\x0f\ + \n\x07\x04\x01\x04\x01\x02\x02\x01\x12\x04\x81\x01\x04\x0f\n\x0f\n\x07\ + \x04\x01\x04\x01\x02\x02\x02\x12\x04\x81\x01\x12\x13\n]\n\x06\x04\x01\ + \x04\x01\x02\x03\x12\x04\x85\x01\x04\x19\x1aM\x20Only\x20populates\x20`n\ + ame`\x20and\x20fields\x20related\x20to\x20the\x20table's\x20replication\ + \n\x20state.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\x03\x01\x12\x04\x85\x01\ + \x04\x14\n\x0f\n\x07\x04\x01\x04\x01\x02\x03\x02\x12\x04\x85\x01\x17\x18\ + \n[\n\x06\x04\x01\x04\x01\x02\x04\x12\x04\x88\x01\x04\x18\x1aK\x20Only\ + \x20populates\x20'name'\x20and\x20fields\x20related\x20to\x20the\x20tabl\ + e's\x20encryption\x20state.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\x04\x01\ + \x12\x04\x88\x01\x04\x13\n\x0f\n\x07\x04\x01\x04\x01\x02\x04\x02\x12\x04\ + \x88\x01\x16\x17\n'\n\x06\x04\x01\x04\x01\x02\x05\x12\x04\x8b\x01\x04\r\ + \x1a\x17\x20Populates\x20all\x20fields.\n\n\x0f\n\x07\x04\x01\x04\x01\ + \x02\x05\x01\x12\x04\x8b\x01\x04\x08\n\x0f\n\x07\x04\x01\x04\x01\x02\x05\ + \x02\x12\x04\x8b\x01\x0b\x0c\n\xd3\x01\n\x04\x04\x01\x02\0\x12\x04\x91\ + \x01\x02\x12\x1a\xc4\x01\x20The\x20unique\x20name\x20of\x20the\x20table.\ + \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ + s/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.\n\x20Views:\x20`NAME_O\ + NLY`,\x20`SCHEMA_VIEW`,\x20`REPLICATION_VIEW`,\x20`FULL`\n\n\x0f\n\x05\ + \x04\x01\x02\0\x04\x12\x06\x91\x01\x02\x8c\x01\x03\n\r\n\x05\x04\x01\x02\ + \0\x05\x12\x04\x91\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x91\ + \x01\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x91\x01\x10\x11\n\xd8\x02\n\ + \x04\x04\x01\x02\x01\x12\x04\x98\x01\x02/\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\x0f\n\x05\x04\x01\x02\x01\x04\x12\ + \x06\x98\x01\x02\x91\x01\x12\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\x98\ + \x01\x02\x1b\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x98\x01\x1c*\n\r\n\ + \x05\x04\x01\x02\x01\x03\x12\x04\x98\x01-.\n\x8a\x01\n\x04\x04\x01\x02\ + \x02\x12\x04\x9d\x01\x020\x1a|\x20(`CreationOnly`)\n\x20The\x20column\ + \x20families\x20configured\x20for\x20this\x20table,\x20mapped\x20by\x20c\ + olumn\x20family\x20ID.\n\x20Views:\x20`SCHEMA_VIEW`,\x20`FULL`\n\n\x0f\n\ + \x05\x04\x01\x02\x02\x04\x12\x06\x9d\x01\x02\x98\x01/\n\r\n\x05\x04\x01\ + \x02\x02\x06\x12\x04\x9d\x01\x02\x1b\n\r\n\x05\x04\x01\x02\x02\x01\x12\ + \x04\x9d\x01\x1c+\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x9d\x01./\n\x8f\ + \x02\n\x04\x04\x01\x02\x03\x12\x04\xa4\x01\x02'\x1a\x80\x02\x20(`Creatio\ + nOnly`)\n\x20The\x20granularity\x20(i.e.\x20`MILLIS`)\x20at\x20which\x20\ + timestamps\x20are\x20stored\x20in\n\x20this\x20table.\x20Timestamps\x20n\ + ot\x20matching\x20the\x20granularity\x20will\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\ + \x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\xa4\x01\x02\x9d\x010\n\r\n\x05\ + \x04\x01\x02\x03\x06\x12\x04\xa4\x01\x02\x16\n\r\n\x05\x04\x01\x02\x03\ + \x01\x12\x04\xa4\x01\x17\"\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xa4\x01\ + %&\n\xa4\x01\n\x04\x04\x01\x02\x04\x12\x04\xa8\x01\x02\x1f\x1a\x95\x01\ + \x20Output\x20only.\x20If\x20this\x20table\x20was\x20restored\x20from\ + \x20another\x20data\x20source\x20(e.g.\x20a\n\x20backup),\x20this\x20fie\ + ld\x20will\x20be\x20populated\x20with\x20information\x20about\x20the\x20\ + restore.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\xa8\x01\x02\xa4\x01'\ + \n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\xa8\x01\x02\r\n\r\n\x05\x04\x01\ + \x02\x04\x01\x12\x04\xa8\x01\x0e\x1a\n\r\n\x05\x04\x01\x02\x04\x03\x12\ + \x04\xa8\x01\x1d\x1e\nS\n\x02\x04\x02\x12\x06\xac\x01\0\xb4\x01\x01\x1aE\ + \x20A\x20set\x20of\x20columns\x20within\x20a\x20table\x20which\x20share\ + \x20a\x20common\x20configuration.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xac\ + \x01\x08\x14\n\x9e\x02\n\x04\x04\x02\x02\0\x12\x04\xb3\x01\x02\x15\x1a\ + \x8f\x02\x20Garbage\x20collection\x20rule\x20specified\x20as\x20a\x20pro\ + tobuf.\n\x20Must\x20serialize\x20to\x20at\x20most\x20500\x20bytes.\n\n\ + \x20NOTE:\x20Garbage\x20collection\x20executes\x20opportunistically\x20i\ + n\x20the\x20background,\x20and\n\x20so\x20it's\x20possible\x20for\x20rea\ + ds\x20to\x20return\x20a\x20cell\x20even\x20if\x20it\x20matches\x20the\ + \x20active\n\x20GC\x20expression\x20for\x20its\x20family.\n\n\x0f\n\x05\ + \x04\x02\x02\0\x04\x12\x06\xb3\x01\x02\xac\x01\x16\n\r\n\x05\x04\x02\x02\ + \0\x06\x12\x04\xb3\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xb3\ + \x01\t\x10\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xb3\x01\x13\x14\nU\n\x02\ + \x04\x03\x12\x06\xb7\x01\0\xd4\x01\x01\x1aG\x20Rule\x20for\x20determinin\ + g\x20which\x20cells\x20to\x20delete\x20during\x20garbage\x20collection.\ + \n\n\x0b\n\x03\x04\x03\x01\x12\x04\xb7\x01\x08\x0e\nO\n\x04\x04\x03\x03\ + \0\x12\x06\xb9\x01\x02\xbc\x01\x03\x1a?\x20A\x20GcRule\x20which\x20delet\ + es\x20cells\x20matching\x20all\x20of\x20the\x20given\x20rules.\n\n\r\n\ + \x05\x04\x03\x03\0\x01\x12\x04\xb9\x01\n\x16\nW\n\x06\x04\x03\x03\0\x02\ + \0\x12\x04\xbb\x01\x04\x1e\x1aG\x20Only\x20delete\x20cells\x20which\x20w\ + ould\x20be\x20deleted\x20by\x20every\x20element\x20of\x20`rules`.\n\n\ + \x0f\n\x07\x04\x03\x03\0\x02\0\x04\x12\x04\xbb\x01\x04\x0c\n\x0f\n\x07\ + \x04\x03\x03\0\x02\0\x06\x12\x04\xbb\x01\r\x13\n\x0f\n\x07\x04\x03\x03\0\ + \x02\0\x01\x12\x04\xbb\x01\x14\x19\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\ + \x12\x04\xbb\x01\x1c\x1d\nO\n\x04\x04\x03\x03\x01\x12\x06\xbf\x01\x02\ + \xc2\x01\x03\x1a?\x20A\x20GcRule\x20which\x20deletes\x20cells\x20matchin\ + g\x20any\x20of\x20the\x20given\x20rules.\n\n\r\n\x05\x04\x03\x03\x01\x01\ + \x12\x04\xbf\x01\n\x0f\nP\n\x06\x04\x03\x03\x01\x02\0\x12\x04\xc1\x01\ + \x04\x1e\x1a@\x20Delete\x20cells\x20which\x20would\x20be\x20deleted\x20b\ + y\x20any\x20element\x20of\x20`rules`.\n\n\x0f\n\x07\x04\x03\x03\x01\x02\ + \0\x04\x12\x04\xc1\x01\x04\x0c\n\x0f\n\x07\x04\x03\x03\x01\x02\0\x06\x12\ + \x04\xc1\x01\r\x13\n\x0f\n\x07\x04\x03\x03\x01\x02\0\x01\x12\x04\xc1\x01\ + \x14\x19\n\x0f\n\x07\x04\x03\x03\x01\x02\0\x03\x12\x04\xc1\x01\x1c\x1d\n\ + +\n\x04\x04\x03\x08\0\x12\x06\xc5\x01\x02\xd3\x01\x03\x1a\x1b\x20Garbage\ + \x20collection\x20rules.\n\n\r\n\x05\x04\x03\x08\0\x01\x12\x04\xc5\x01\ + \x08\x0c\nF\n\x04\x04\x03\x02\0\x12\x04\xc7\x01\x04\x1f\x1a8\x20Delete\ + \x20all\x20cells\x20in\x20a\x20column\x20except\x20the\x20most\x20recent\ + \x20N.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xc7\x01\x04\t\n\r\n\x05\x04\ + \x03\x02\0\x01\x12\x04\xc7\x01\n\x1a\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\ + \xc7\x01\x1d\x1e\n\xa0\x01\n\x04\x04\x03\x02\x01\x12\x04\xcc\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\x03\x02\x01\x06\x12\x04\xcc\x01\x04\ + \x1c\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xcc\x01\x1d$\n\r\n\x05\x04\ + \x03\x02\x01\x03\x12\x04\xcc\x01'(\nH\n\x04\x04\x03\x02\x02\x12\x04\xcf\ + \x01\x04\"\x1a:\x20Delete\x20cells\x20that\x20would\x20be\x20deleted\x20\ + by\x20every\x20nested\x20rule.\n\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\ + \xcf\x01\x04\x10\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xcf\x01\x11\x1d\n\ + \r\n\x05\x04\x03\x02\x02\x03\x12\x04\xcf\x01\x20!\nF\n\x04\x04\x03\x02\ + \x03\x12\x04\xd2\x01\x04\x14\x1a8\x20Delete\x20cells\x20that\x20would\ + \x20be\x20deleted\x20by\x20any\x20nested\x20rule.\n\n\r\n\x05\x04\x03\ + \x02\x03\x06\x12\x04\xd2\x01\x04\t\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\ + \xd2\x01\n\x0f\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xd2\x01\x12\x13\n\ + \xe4\x01\n\x02\x04\x04\x12\x06\xda\x01\0\x81\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\x04\x01\x12\x04\xda\x01\x08\x16\n;\n\x04\ + \x04\x04\x04\0\x12\x06\xdc\x01\x02\xed\x01\x03\x1a+\x20Possible\x20encry\ + ption\x20types\x20for\x20a\x20resource.\n\n\r\n\x05\x04\x04\x04\0\x01\ + \x12\x04\xdc\x01\x07\x15\n[\n\x06\x04\x04\x04\0\x02\0\x12\x04\xde\x01\ + \x04$\x1aK\x20Encryption\x20type\x20was\x20not\x20specified,\x20though\ + \x20data\x20at\x20rest\x20remains\x20encrypted.\n\n\x0f\n\x07\x04\x04\ + \x04\0\x02\0\x01\x12\x04\xde\x01\x04\x1f\n\x0f\n\x07\x04\x04\x04\0\x02\0\ + \x02\x12\x04\xde\x01\"#\n\xbb\x01\n\x06\x04\x04\x04\0\x02\x01\x12\x04\ + \xe3\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\x04\x04\0\x02\x01\x01\x12\x04\xe3\x01\x04\x1d\n\ + \x0f\n\x07\x04\x04\x04\0\x02\x01\x02\x12\x04\xe3\x01\x20!\n\x8f\x03\n\ + \x06\x04\x04\x04\0\x02\x02\x12\x04\xec\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\x04\x04\0\x02\x02\x01\x12\x04\xec\x01\x04\x1f\n\x0f\ + \n\x07\x04\x04\x04\0\x02\x02\x02\x12\x04\xec\x01\"#\nT\n\x04\x04\x04\x02\ + \0\x12\x06\xf0\x01\x02\xf1\x012\x1aD\x20Output\x20only.\x20The\x20type\ + \x20of\x20encryption\x20used\x20to\x20protect\x20this\x20resource.\n\n\ + \x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xf0\x01\x02\xed\x01\x03\n\r\n\x05\ + \x04\x04\x02\0\x06\x12\x04\xf0\x01\x02\x10\n\r\n\x05\x04\x04\x02\0\x01\ + \x12\x04\xf0\x01\x11\x20\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xf0\x01#$\n\ + \r\n\x05\x04\x04\x02\0\x08\x12\x04\xf1\x01\x061\n\x10\n\x08\x04\x04\x02\ + \0\x08\x9c\x08\0\x12\x04\xf1\x01\x070\n\xb0\x01\n\x04\x04\x04\x02\x01\ + \x12\x06\xf6\x01\x02\xf7\x012\x1a\x9f\x01\x20Output\x20only.\x20The\x20s\ + tatus\x20of\x20encrypt/decrypt\x20calls\x20on\x20underlying\x20data\x20f\ + or\n\x20this\x20resource.\x20Regardless\x20of\x20status,\x20the\x20exist\ + ing\x20data\x20is\x20always\x20encrypted\n\x20at\x20rest.\n\n\x0f\n\x05\ + \x04\x04\x02\x01\x04\x12\x06\xf6\x01\x02\xf1\x012\n\r\n\x05\x04\x04\x02\ + \x01\x06\x12\x04\xf6\x01\x02\x13\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\ + \xf6\x01\x14%\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xf6\x01()\n\r\n\x05\ + \x04\x04\x02\x01\x08\x12\x04\xf7\x01\x061\n\x10\n\x08\x04\x04\x02\x01\ + \x08\x9c\x08\0\x12\x04\xf7\x01\x070\n\x94\x01\n\x04\x04\x04\x02\x02\x12\ + \x06\xfb\x01\x02\x80\x02\x04\x1a\x83\x01\x20Output\x20only.\x20The\x20ve\ + rsion\x20of\x20the\x20Cloud\x20KMS\x20key\x20specified\x20in\x20the\x20p\ + arent\n\x20cluster\x20that\x20is\x20in\x20use\x20for\x20the\x20data\x20u\ + nderlying\x20this\x20table.\n\n\x0f\n\x05\x04\x04\x02\x02\x04\x12\x06\ + \xfb\x01\x02\xf7\x012\n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\xfb\x01\x02\ + \x08\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\xfb\x01\t\x18\n\r\n\x05\x04\ + \x04\x02\x02\x03\x12\x04\xfb\x01\x1b\x1c\n\x0f\n\x05\x04\x04\x02\x02\x08\ + \x12\x06\xfb\x01\x1d\x80\x02\x03\n\x10\n\x08\x04\x04\x02\x02\x08\x9c\x08\ + \0\x12\x04\xfc\x01\x04-\n\x11\n\x07\x04\x04\x02\x02\x08\x9f\x08\x12\x06\ + \xfd\x01\x04\xff\x01\x05\n\xc8\x03\n\x02\x04\x05\x12\x06\x8a\x02\0\xb9\ + \x02\x01\x1a\xb9\x03\x20A\x20snapshot\x20of\x20a\x20table\x20at\x20a\x20\ + particular\x20time.\x20A\x20snapshot\x20can\x20be\x20used\x20as\x20a\n\ + \x20checkpoint\x20for\x20data\x20restoration\x20or\x20a\x20data\x20sourc\ + e\x20for\x20a\x20new\x20table.\n\n\x20Note:\x20This\x20is\x20a\x20privat\ + e\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\x05\x01\ + \x12\x04\x8a\x02\x08\x10\n\r\n\x03\x04\x05\x07\x12\x06\x8b\x02\x02\x8e\ + \x02\x04\n\x0f\n\x05\x04\x05\x07\x9d\x08\x12\x06\x8b\x02\x02\x8e\x02\x04\ + \n0\n\x04\x04\x05\x04\0\x12\x06\x91\x02\x02\x9c\x02\x03\x1a\x20\x20Possi\ + ble\x20states\x20of\x20a\x20snapshot.\n\n\r\n\x05\x04\x05\x04\0\x01\x12\ + \x04\x91\x02\x07\x0c\nD\n\x06\x04\x05\x04\0\x02\0\x12\x04\x93\x02\x04\ + \x18\x1a4\x20The\x20state\x20of\x20the\x20snapshot\x20could\x20not\x20be\ + \x20determined.\n\n\x0f\n\x07\x04\x05\x04\0\x02\0\x01\x12\x04\x93\x02\ + \x04\x13\n\x0f\n\x07\x04\x05\x04\0\x02\0\x02\x12\x04\x93\x02\x16\x17\nX\ + \n\x06\x04\x05\x04\0\x02\x01\x12\x04\x96\x02\x04\x0e\x1aH\x20The\x20snap\ + shot\x20has\x20been\x20successfully\x20created\x20and\x20can\x20serve\ + \x20all\x20requests.\n\n\x0f\n\x07\x04\x05\x04\0\x02\x01\x01\x12\x04\x96\ + \x02\x04\t\n\x0f\n\x07\x04\x05\x04\0\x02\x01\x02\x12\x04\x96\x02\x0c\r\n\ + \xc4\x01\n\x06\x04\x05\x04\0\x02\x02\x12\x04\x9b\x02\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\x05\x04\0\x02\x02\x01\x12\x04\x9b\x02\x04\x0c\n\x0f\n\x07\x04\x05\ + \x04\0\x02\x02\x02\x12\x04\x9b\x02\x0f\x10\n\xaa\x01\n\x04\x04\x05\x02\0\ + \x12\x04\xa1\x02\x02\x12\x1a\x9b\x01\x20Output\x20only.\x20The\x20unique\ + \x20name\x20of\x20the\x20snapshot.\n\x20Values\x20are\x20of\x20the\x20fo\ + rm\n\x20`projects/{project}/instances/{instance}/clusters/{cluster}/snap\ + shots/{snapshot}`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xa1\x02\x02\ + \x9c\x02\x03\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xa1\x02\x02\x08\n\r\n\ + \x05\x04\x05\x02\0\x01\x12\x04\xa1\x02\t\r\n\r\n\x05\x04\x05\x02\0\x03\ + \x12\x04\xa1\x02\x10\x11\nQ\n\x04\x04\x05\x02\x01\x12\x04\xa4\x02\x02\ + \x19\x1aC\x20Output\x20only.\x20The\x20source\x20table\x20at\x20the\x20t\ + ime\x20the\x20snapshot\x20was\x20taken.\n\n\x0f\n\x05\x04\x05\x02\x01\ + \x04\x12\x06\xa4\x02\x02\xa1\x02\x12\n\r\n\x05\x04\x05\x02\x01\x06\x12\ + \x04\xa4\x02\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xa4\x02\x08\ + \x14\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xa4\x02\x17\x18\n\xf4\x01\n\ + \x04\x04\x05\x02\x02\x12\x04\xaa\x02\x02\x1c\x1a\xe5\x01\x20Output\x20on\ + ly.\x20The\x20size\x20of\x20the\x20data\x20in\x20the\x20source\x20table\ + \x20at\x20the\x20time\x20the\n\x20snapshot\x20was\x20taken.\x20In\x20som\ + e\x20cases,\x20this\x20value\x20may\x20be\x20computed\n\x20asynchronousl\ + y\x20via\x20a\x20background\x20process\x20and\x20a\x20placeholder\x20of\ + \x200\x20will\x20be\x20used\n\x20in\x20the\x20meantime.\n\n\x0f\n\x05\ + \x04\x05\x02\x02\x04\x12\x06\xaa\x02\x02\xa4\x02\x19\n\r\n\x05\x04\x05\ + \x02\x02\x05\x12\x04\xaa\x02\x02\x07\n\r\n\x05\x04\x05\x02\x02\x01\x12\ + \x04\xaa\x02\x08\x17\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\xaa\x02\x1a\ + \x1b\nC\n\x04\x04\x05\x02\x03\x12\x04\xad\x02\x02,\x1a5\x20Output\x20onl\ + y.\x20The\x20time\x20when\x20the\x20snapshot\x20is\x20created.\n\n\x0f\n\ + \x05\x04\x05\x02\x03\x04\x12\x06\xad\x02\x02\xaa\x02\x1c\n\r\n\x05\x04\ + \x05\x02\x03\x06\x12\x04\xad\x02\x02\x1b\n\r\n\x05\x04\x05\x02\x03\x01\ + \x12\x04\xad\x02\x1c'\n\r\n\x05\x04\x05\x02\x03\x03\x12\x04\xad\x02*+\n\ + \xd7\x01\n\x04\x04\x05\x02\x04\x12\x04\xb2\x02\x02,\x1a\xc8\x01\x20Outpu\ + t\x20only.\x20The\x20time\x20when\x20the\x20snapshot\x20will\x20be\x20de\ + leted.\x20The\x20maximum\x20amount\n\x20of\x20time\x20a\x20snapshot\x20c\ + an\x20stay\x20active\x20is\x20365\x20days.\x20If\x20'ttl'\x20is\x20not\ + \x20specified,\n\x20the\x20default\x20maximum\x20of\x20365\x20days\x20wi\ + ll\x20be\x20used.\n\n\x0f\n\x05\x04\x05\x02\x04\x04\x12\x06\xb2\x02\x02\ + \xad\x02,\n\r\n\x05\x04\x05\x02\x04\x06\x12\x04\xb2\x02\x02\x1b\n\r\n\ + \x05\x04\x05\x02\x04\x01\x12\x04\xb2\x02\x1c'\n\r\n\x05\x04\x05\x02\x04\ + \x03\x12\x04\xb2\x02*+\n?\n\x04\x04\x05\x02\x05\x12\x04\xb5\x02\x02\x12\ + \x1a1\x20Output\x20only.\x20The\x20current\x20state\x20of\x20the\x20snap\ + shot.\n\n\x0f\n\x05\x04\x05\x02\x05\x04\x12\x06\xb5\x02\x02\xb2\x02,\n\r\ + \n\x05\x04\x05\x02\x05\x06\x12\x04\xb5\x02\x02\x07\n\r\n\x05\x04\x05\x02\ + \x05\x01\x12\x04\xb5\x02\x08\r\n\r\n\x05\x04\x05\x02\x05\x03\x12\x04\xb5\ + \x02\x10\x11\n9\n\x04\x04\x05\x02\x06\x12\x04\xb8\x02\x02\x19\x1a+\x20Ou\ + tput\x20only.\x20Description\x20of\x20the\x20snapshot.\n\n\x0f\n\x05\x04\ + \x05\x02\x06\x04\x12\x06\xb8\x02\x02\xb5\x02\x12\n\r\n\x05\x04\x05\x02\ + \x06\x05\x12\x04\xb8\x02\x02\x08\n\r\n\x05\x04\x05\x02\x06\x01\x12\x04\ + \xb8\x02\t\x14\n\r\n\x05\x04\x05\x02\x06\x03\x12\x04\xb8\x02\x17\x18\n3\ + \n\x02\x04\x06\x12\x06\xbc\x02\0\x81\x03\x01\x1a%\x20A\x20backup\x20of\ + \x20a\x20Cloud\x20Bigtable\x20table.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\ + \xbc\x02\x08\x0e\n\r\n\x03\x04\x06\x07\x12\x06\xbd\x02\x02\xc0\x02\x04\n\ + \x0f\n\x05\x04\x06\x07\x9d\x08\x12\x06\xbd\x02\x02\xc0\x02\x04\n<\n\x04\ + \x04\x06\x04\0\x12\x06\xc3\x02\x02\xcd\x02\x03\x1a,\x20Indicates\x20the\ + \x20current\x20state\x20of\x20the\x20backup.\n\n\r\n\x05\x04\x06\x04\0\ + \x01\x12\x04\xc3\x02\x07\x0c\n\x20\n\x06\x04\x06\x04\0\x02\0\x12\x04\xc5\ + \x02\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0f\n\x07\x04\x06\x04\0\ + \x02\0\x01\x12\x04\xc5\x02\x04\x15\n\x0f\n\x07\x04\x06\x04\0\x02\0\x02\ + \x12\x04\xc5\x02\x18\x19\n\x89\x01\n\x06\x04\x06\x04\0\x02\x01\x12\x04\ + \xc9\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\ + \x06\x04\0\x02\x01\x01\x12\x04\xc9\x02\x04\x0c\n\x0f\n\x07\x04\x06\x04\0\ + \x02\x01\x02\x12\x04\xc9\x02\x0f\x10\n;\n\x06\x04\x06\x04\0\x02\x02\x12\ + \x04\xcc\x02\x04\x0e\x1a+\x20The\x20backup\x20is\x20complete\x20and\x20r\ + eady\x20for\x20use.\n\n\x0f\n\x07\x04\x06\x04\0\x02\x02\x01\x12\x04\xcc\ + \x02\x04\t\n\x0f\n\x07\x04\x06\x04\0\x02\x02\x02\x12\x04\xcc\x02\x0c\r\n\ + \xce\x03\n\x04\x04\x06\x02\0\x12\x04\xd9\x02\x02>\x1a\xbf\x03\x20Output\ + \x20only.\x20A\x20globally\x20unique\x20identifier\x20for\x20the\x20back\ + up\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\x20fin\ + al\x20segment\x20of\x20the\x20name\x20must\x20be\x20between\x201\x20and\ + \x2050\x20characters\n\x20in\x20length.\n\n\x20The\x20backup\x20is\x20st\ + ored\x20in\x20the\x20cluster\x20identified\x20by\x20the\x20prefix\x20of\ + \x20the\x20backup\n\x20name\x20of\x20the\x20form\n\x20`projects/{project\ + }/instances/{instance}/clusters/{cluster}`.\n\n\x0f\n\x05\x04\x06\x02\0\ + \x04\x12\x06\xd9\x02\x02\xcd\x02\x03\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\r\n\x05\x04\x06\x02\0\ + \x08\x12\x04\xd9\x02\x12=\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\ + \x04\xd9\x02\x13<\n\xec\x01\n\x04\x04\x06\x02\x01\x12\x06\xde\x02\x02\ + \xe1\x02\x04\x1a\xdb\x01\x20Required.\x20Immutable.\x20Name\x20of\x20the\ + \x20table\x20from\x20which\x20this\x20backup\x20was\x20created.\n\x20Thi\ + s\x20needs\x20to\x20be\x20in\x20the\x20same\x20instance\x20as\x20the\x20\ + backup.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/i\ + nstances/{instance}/tables/{source_table}`.\n\n\x0f\n\x05\x04\x06\x02\ + \x01\x04\x12\x06\xde\x02\x02\xd9\x02>\n\r\n\x05\x04\x06\x02\x01\x05\x12\ + \x04\xde\x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xde\x02\t\x15\ + \n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xde\x02\x18\x19\n\x0f\n\x05\x04\ + \x06\x02\x01\x08\x12\x06\xde\x02\x1a\xe1\x02\x03\n\x10\n\x08\x04\x06\x02\ + \x01\x08\x9c\x08\0\x12\x04\xdf\x02\x04+\n\x10\n\x08\x04\x06\x02\x01\x08\ + \x9c\x08\x01\x12\x04\xe0\x02\x04*\n\xae\x02\n\x04\x04\x06\x02\x02\x12\ + \x06\xe8\x02\x02\xe9\x02/\x1a\x9d\x02\x20Required.\x20The\x20expiration\ + \x20time\x20of\x20the\x20backup,\x20with\x20microseconds\n\x20granularit\ + y\x20that\x20must\x20be\x20at\x20least\x206\x20hours\x20and\x20at\x20mos\ + t\x2030\x20days\n\x20from\x20the\x20time\x20the\x20request\x20is\x20rece\ + ived.\x20Once\x20the\x20`expire_time`\n\x20has\x20passed,\x20Cloud\x20Bi\ + gtable\x20will\x20delete\x20the\x20backup\x20and\x20free\x20the\n\x20res\ + ources\x20used\x20by\x20the\x20backup.\n\n\x0f\n\x05\x04\x06\x02\x02\x04\ + \x12\x06\xe8\x02\x02\xe1\x02\x04\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\ + \xe8\x02\x02\x1b\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xe8\x02\x1c'\n\r\ + \n\x05\x04\x06\x02\x02\x03\x12\x04\xe8\x02*+\n\r\n\x05\x04\x06\x02\x02\ + \x08\x12\x04\xe9\x02\x06.\n\x10\n\x08\x04\x06\x02\x02\x08\x9c\x08\0\x12\ + \x04\xe9\x02\x07-\n\x9b\x02\n\x04\x04\x06\x02\x03\x12\x06\xf0\x02\x02\ + \xf1\x022\x1a\x8a\x02\x20Output\x20only.\x20`start_time`\x20is\x20the\ + \x20time\x20that\x20the\x20backup\x20was\x20started\n\x20(i.e.\x20approx\ + imately\x20the\x20time\x20the\n\x20[CreateBackup][google.bigtable.admin.\ + v2.BigtableTableAdmin.CreateBackup]\n\x20request\x20is\x20received).\x20\ + \x20The\x20row\x20data\x20in\x20this\x20backup\x20will\x20be\x20no\x20ol\ + der\x20than\n\x20this\x20timestamp.\n\n\x0f\n\x05\x04\x06\x02\x03\x04\ + \x12\x06\xf0\x02\x02\xe9\x02/\n\r\n\x05\x04\x06\x02\x03\x06\x12\x04\xf0\ + \x02\x02\x1b\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\xf0\x02\x1c&\n\r\n\ + \x05\x04\x06\x02\x03\x03\x12\x04\xf0\x02)*\n\r\n\x05\x04\x06\x02\x03\x08\ + \x12\x04\xf1\x02\x061\n\x10\n\x08\x04\x06\x02\x03\x08\x9c\x08\0\x12\x04\ + \xf1\x02\x070\n\x96\x01\n\x04\x04\x06\x02\x04\x12\x06\xf5\x02\x02\xf6\ + \x022\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\x0f\n\x05\x04\x06\x02\x04\x04\x12\x06\xf5\x02\x02\xf1\x02\ + 2\n\r\n\x05\x04\x06\x02\x04\x06\x12\x04\xf5\x02\x02\x1b\n\r\n\x05\x04\ + \x06\x02\x04\x01\x12\x04\xf5\x02\x1c$\n\r\n\x05\x04\x06\x02\x04\x03\x12\ + \x04\xf5\x02'(\n\r\n\x05\x04\x06\x02\x04\x08\x12\x04\xf6\x02\x061\n\x10\ + \n\x08\x04\x06\x02\x04\x08\x9c\x08\0\x12\x04\xf6\x02\x070\n9\n\x04\x04\ + \x06\x02\x05\x12\x04\xf9\x02\x02C\x1a+\x20Output\x20only.\x20Size\x20of\ + \x20the\x20backup\x20in\x20bytes.\n\n\x0f\n\x05\x04\x06\x02\x05\x04\x12\ + \x06\xf9\x02\x02\xf6\x022\n\r\n\x05\x04\x06\x02\x05\x05\x12\x04\xf9\x02\ + \x02\x07\n\r\n\x05\x04\x06\x02\x05\x01\x12\x04\xf9\x02\x08\x12\n\r\n\x05\ + \x04\x06\x02\x05\x03\x12\x04\xf9\x02\x15\x16\n\r\n\x05\x04\x06\x02\x05\ + \x08\x12\x04\xf9\x02\x17B\n\x10\n\x08\x04\x06\x02\x05\x08\x9c\x08\0\x12\ + \x04\xf9\x02\x18A\n=\n\x04\x04\x06\x02\x06\x12\x04\xfc\x02\x02>\x1a/\x20\ + Output\x20only.\x20The\x20current\x20state\x20of\x20the\x20backup.\n\n\ + \x0f\n\x05\x04\x06\x02\x06\x04\x12\x06\xfc\x02\x02\xf9\x02C\n\r\n\x05\ + \x04\x06\x02\x06\x06\x12\x04\xfc\x02\x02\x07\n\r\n\x05\x04\x06\x02\x06\ + \x01\x12\x04\xfc\x02\x08\r\n\r\n\x05\x04\x06\x02\x06\x03\x12\x04\xfc\x02\ + \x10\x11\n\r\n\x05\x04\x06\x02\x06\x08\x12\x04\xfc\x02\x12=\n\x10\n\x08\ + \x04\x06\x02\x06\x08\x9c\x08\0\x12\x04\xfc\x02\x13<\nI\n\x04\x04\x06\x02\ + \x07\x12\x06\xff\x02\x02\x80\x032\x1a9\x20Output\x20only.\x20The\x20encr\ + yption\x20information\x20for\x20the\x20backup.\n\n\x0f\n\x05\x04\x06\x02\ + \x07\x04\x12\x06\xff\x02\x02\xfc\x02>\n\r\n\x05\x04\x06\x02\x07\x06\x12\ + \x04\xff\x02\x02\x10\n\r\n\x05\x04\x06\x02\x07\x01\x12\x04\xff\x02\x11\ + \x20\n\r\n\x05\x04\x06\x02\x07\x03\x12\x04\xff\x02#$\n\r\n\x05\x04\x06\ + \x02\x07\x08\x12\x04\x80\x03\x061\n\x10\n\x08\x04\x06\x02\x07\x08\x9c\ + \x08\0\x12\x04\x80\x03\x070\n+\n\x02\x04\x07\x12\x06\x84\x03\0\x94\x03\ + \x01\x1a\x1d\x20Information\x20about\x20a\x20backup.\n\n\x0b\n\x03\x04\ + \x07\x01\x12\x04\x84\x03\x08\x12\n0\n\x04\x04\x07\x02\0\x12\x04\x86\x03\ + \x02@\x1a\"\x20Output\x20only.\x20Name\x20of\x20the\x20backup.\n\n\x0f\n\ + \x05\x04\x07\x02\0\x04\x12\x06\x86\x03\x02\x84\x03\x14\n\r\n\x05\x04\x07\ + \x02\0\x05\x12\x04\x86\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\ + \x86\x03\t\x0f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x86\x03\x12\x13\n\r\n\ + \x05\x04\x07\x02\0\x08\x12\x04\x86\x03\x14?\n\x10\n\x08\x04\x07\x02\0\ + \x08\x9c\x08\0\x12\x04\x86\x03\x15>\n\x82\x01\n\x04\x04\x07\x02\x01\x12\ + \x06\x8a\x03\x02\x8b\x032\x1ar\x20Output\x20only.\x20The\x20time\x20that\ + \x20the\x20backup\x20was\x20started.\x20Row\x20data\x20in\x20the\x20back\ + up\n\x20will\x20be\x20no\x20older\x20than\x20this\x20timestamp.\n\n\x0f\ + \n\x05\x04\x07\x02\x01\x04\x12\x06\x8a\x03\x02\x86\x03@\n\r\n\x05\x04\ + \x07\x02\x01\x06\x12\x04\x8a\x03\x02\x1b\n\r\n\x05\x04\x07\x02\x01\x01\ + \x12\x04\x8a\x03\x1c&\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\x8a\x03)*\n\ + \r\n\x05\x04\x07\x02\x01\x08\x12\x04\x8b\x03\x061\n\x10\n\x08\x04\x07\ + \x02\x01\x08\x9c\x08\0\x12\x04\x8b\x03\x070\n\x84\x01\n\x04\x04\x07\x02\ + \x02\x12\x06\x8f\x03\x02\x90\x032\x1at\x20Output\x20only.\x20This\x20tim\ + e\x20that\x20the\x20backup\x20was\x20finished.\x20Row\x20data\x20in\x20t\ + he\n\x20backup\x20will\x20be\x20no\x20newer\x20than\x20this\x20timestamp\ + .\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\x8f\x03\x02\x8b\x032\n\r\n\ + \x05\x04\x07\x02\x02\x06\x12\x04\x8f\x03\x02\x1b\n\r\n\x05\x04\x07\x02\ + \x02\x01\x12\x04\x8f\x03\x1c$\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\x8f\ + \x03'(\n\r\n\x05\x04\x07\x02\x02\x08\x12\x04\x90\x03\x061\n\x10\n\x08\ + \x04\x07\x02\x02\x08\x9c\x08\0\x12\x04\x90\x03\x070\nK\n\x04\x04\x07\x02\ + \x03\x12\x04\x93\x03\x02F\x1a=\x20Output\x20only.\x20Name\x20of\x20the\ + \x20table\x20the\x20backup\x20was\x20created\x20from.\n\n\x0f\n\x05\x04\ + \x07\x02\x03\x04\x12\x06\x93\x03\x02\x90\x032\n\r\n\x05\x04\x07\x02\x03\ + \x05\x12\x04\x93\x03\x02\x08\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\x93\ + \x03\t\x15\n\r\n\x05\x04\x07\x02\x03\x03\x12\x04\x93\x03\x18\x19\n\r\n\ + \x05\x04\x07\x02\x03\x08\x12\x04\x93\x03\x1aE\n\x10\n\x08\x04\x07\x02\ + \x03\x08\x9c\x08\0\x12\x04\x93\x03\x1bDb\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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_data.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_data.rs new file mode 100644 index 0000000000..1eefe40800 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_data.rs @@ -0,0 +1,6599 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/v1/bigtable_data.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Row { + // message fields + pub key: ::std::vec::Vec, + pub families: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Row { + fn default() -> &'a Row { + ::default_instance() + } +} + +impl Row { + pub fn new() -> 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.v1.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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.families)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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::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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Row { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Row::new) + } +} + +impl ::protobuf::Clear for Row { + fn clear(&mut self) { + self.key.clear(); + self.families.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Family { + // message fields + pub name: ::std::string::String, + pub columns: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Family { + fn default() -> &'a Family { + ::default_instance() + } +} + +impl Family { + pub fn new() -> 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.v1.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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.columns)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.columns { + 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.columns { + 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() -> 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 default_instance() -> &'static Family { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Family::new) + } +} + +impl ::protobuf::Clear for Family { + fn clear(&mut self) { + self.name.clear(); + self.columns.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Column { + // message fields + pub qualifier: ::std::vec::Vec, + pub cells: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Column { + fn default() -> &'a Column { + ::default_instance() + } +} + +impl Column { + pub fn new() -> 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.v1.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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cells)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Column { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Column::new) + } +} + +impl ::protobuf::Clear for Column { + fn clear(&mut self) { + self.qualifier.clear(); + self.cells.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Cell { + // message fields + pub timestamp_micros: i64, + pub value: ::std::vec::Vec, + pub labels: ::protobuf::RepeatedField<::std::string::String>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Cell { + fn default() -> &'a Cell { + ::default_instance() + } +} + +impl Cell { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?; + }, + 3 => { + ::protobuf::rt::read_repeated_string_into(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; + if self.timestamp_micros != 0 { + my_size += ::protobuf::rt::value_size(1, self.timestamp_micros, ::protobuf::wire_format::WireTypeVarint); + } + if !self.value.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.value); + } + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if self.timestamp_micros != 0 { + os.write_int64(1, self.timestamp_micros)?; + } + if !self.value.is_empty() { + os.write_bytes(2, &self.value)?; + } + for v in &self.labels { + 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() -> 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 default_instance() -> &'static Cell { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Cell::new) + } +} + +impl ::protobuf::Clear for Cell { + fn clear(&mut self) { + self.timestamp_micros = 0; + self.value.clear(); + self.labels.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct RowRange { + // message fields + pub start_key: ::std::vec::Vec, + pub end_key: ::std::vec::Vec, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RowRange { + fn default() -> &'a RowRange { + ::default_instance() + } +} + +impl RowRange { + pub fn new() -> RowRange { + ::std::default::Default::default() + } + + // bytes start_key = 2; + + + pub fn get_start_key(&self) -> &[u8] { + &self.start_key + } + pub fn clear_start_key(&mut self) { + self.start_key.clear(); + } + + // Param is passed by value, moved + pub fn set_start_key(&mut self, v: ::std::vec::Vec) { + self.start_key = v; + } + + // 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::vec::Vec { + &mut self.start_key + } + + // Take field + pub fn take_start_key(&mut self) -> ::std::vec::Vec { + ::std::mem::replace(&mut self.start_key, ::std::vec::Vec::new()) + } + + // bytes end_key = 3; + + + pub fn get_end_key(&self) -> &[u8] { + &self.end_key + } + pub fn clear_end_key(&mut self) { + self.end_key.clear(); + } + + // Param is passed by value, moved + pub fn set_end_key(&mut self, v: ::std::vec::Vec) { + self.end_key = v; + } + + // 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::vec::Vec { + &mut self.end_key + } + + // Take field + pub fn take_end_key(&mut self) -> ::std::vec::Vec { + ::std::mem::replace(&mut self.end_key, ::std::vec::Vec::new()) + } +} + +impl ::protobuf::Message for 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 { + 2 => { + ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.start_key)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.end_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.start_key.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.start_key); + } + if !self.end_key.is_empty() { + my_size += ::protobuf::rt::bytes_size(3, &self.end_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.start_key.is_empty() { + os.write_bytes(2, &self.start_key)?; + } + if !self.end_key.is_empty() { + os.write_bytes(3, &self.end_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() -> 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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "start_key", + |m: &RowRange| { &m.start_key }, + |m: &mut RowRange| { &mut m.start_key }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "end_key", + |m: &RowRange| { &m.end_key }, + |m: &mut RowRange| { &mut m.end_key }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RowRange", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static RowRange { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RowRange::new) + } +} + +impl ::protobuf::Clear for RowRange { + fn clear(&mut self) { + self.start_key.clear(); + self.end_key.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a RowSet { + fn default() -> &'a RowSet { + ::default_instance() + } +} + +impl RowSet { + pub fn new() -> RowSet { + ::std::default::Default::default() + } + + // 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(); + } + + // Param is passed by value, moved + pub fn set_row_keys(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec>) { + self.row_keys = v; + } + + // Mutable pointer to the field. + pub fn mut_row_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec> { + &mut self.row_keys + } + + // Take field + pub fn take_row_keys(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec> { + ::std::mem::replace(&mut self.row_keys, ::protobuf::RepeatedField::new()) + } + + // repeated .google.bigtable.v1.RowRange row_ranges = 2; + + + pub fn get_row_ranges(&self) -> &[RowRange] { + &self.row_ranges + } + pub fn clear_row_ranges(&mut self) { + self.row_ranges.clear(); + } + + // Param is passed by value, moved + pub fn set_row_ranges(&mut self, v: ::protobuf::RepeatedField) { + self.row_ranges = v; + } + + // Mutable pointer to the field. + pub fn mut_row_ranges(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.row_ranges + } + + // Take field + pub fn take_row_ranges(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.row_ranges, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_ranges)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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 += ::protobuf::rt::unknown_fields_size(self.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.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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static RowSet { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RowSet::new) + } +} + +impl ::protobuf::Clear for RowSet { + fn clear(&mut self) { + self.row_keys.clear(); + self.row_ranges.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ColumnRange { + // message fields + pub family_name: ::std::string::String, + // message oneof groups + pub start_qualifier: ::std::option::Option, + pub end_qualifier: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ColumnRange { + fn default() -> &'a ColumnRange { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum ColumnRange_oneof_start_qualifier { + start_qualifier_inclusive(::std::vec::Vec), + start_qualifier_exclusive(::std::vec::Vec), +} + +#[derive(Clone,PartialEq,Debug)] +pub enum ColumnRange_oneof_end_qualifier { + end_qualifier_inclusive(::std::vec::Vec), + end_qualifier_exclusive(::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_inclusive = 2; + + + pub fn get_start_qualifier_inclusive(&self) -> &[u8] { + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(ref v)) => v, + _ => &[], + } + } + pub fn clear_start_qualifier_inclusive(&mut self) { + self.start_qualifier = ::std::option::Option::None; + } + + pub fn has_start_qualifier_inclusive(&self) -> bool { + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_start_qualifier_inclusive(&mut self, v: ::std::vec::Vec) { + self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(v)) + } + + // Mutable pointer to the field. + pub fn mut_start_qualifier_inclusive(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(_)) = self.start_qualifier { + } else { + self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(::std::vec::Vec::new())); + } + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_start_qualifier_inclusive(&mut self) -> ::std::vec::Vec { + if self.has_start_qualifier_inclusive() { + match self.start_qualifier.take() { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes start_qualifier_exclusive = 3; + + + pub fn get_start_qualifier_exclusive(&self) -> &[u8] { + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(ref v)) => v, + _ => &[], + } + } + pub fn clear_start_qualifier_exclusive(&mut self) { + self.start_qualifier = ::std::option::Option::None; + } + + pub fn has_start_qualifier_exclusive(&self) -> bool { + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_start_qualifier_exclusive(&mut self, v: ::std::vec::Vec) { + self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(v)) + } + + // Mutable pointer to the field. + pub fn mut_start_qualifier_exclusive(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(_)) = self.start_qualifier { + } else { + self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(::std::vec::Vec::new())); + } + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_start_qualifier_exclusive(&mut self) -> ::std::vec::Vec { + if self.has_start_qualifier_exclusive() { + match self.start_qualifier.take() { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_qualifier_inclusive = 4; + + + pub fn get_end_qualifier_inclusive(&self) -> &[u8] { + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(ref v)) => v, + _ => &[], + } + } + pub fn clear_end_qualifier_inclusive(&mut self) { + self.end_qualifier = ::std::option::Option::None; + } + + pub fn has_end_qualifier_inclusive(&self) -> bool { + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_end_qualifier_inclusive(&mut self, v: ::std::vec::Vec) { + self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(v)) + } + + // Mutable pointer to the field. + pub fn mut_end_qualifier_inclusive(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(_)) = self.end_qualifier { + } else { + self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(::std::vec::Vec::new())); + } + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_end_qualifier_inclusive(&mut self) -> ::std::vec::Vec { + if self.has_end_qualifier_inclusive() { + match self.end_qualifier.take() { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_inclusive(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_qualifier_exclusive = 5; + + + pub fn get_end_qualifier_exclusive(&self) -> &[u8] { + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(ref v)) => v, + _ => &[], + } + } + pub fn clear_end_qualifier_exclusive(&mut self) { + self.end_qualifier = ::std::option::Option::None; + } + + pub fn has_end_qualifier_exclusive(&self) -> bool { + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_end_qualifier_exclusive(&mut self, v: ::std::vec::Vec) { + self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(v)) + } + + // Mutable pointer to the field. + pub fn mut_end_qualifier_exclusive(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(_)) = self.end_qualifier { + } else { + self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(::std::vec::Vec::new())); + } + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_end_qualifier_exclusive(&mut self) -> ::std::vec::Vec { + if self.has_end_qualifier_exclusive() { + match self.end_qualifier.take() { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } +} + +impl ::protobuf::Message for 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_inclusive(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_exclusive(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_inclusive(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_exclusive(is.read_bytes()?)); + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let ::std::option::Option::Some(ref v) = self.start_qualifier { + match v { + &ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(ref v) => { + my_size += ::protobuf::rt::bytes_size(2, &v); + }, + &ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(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_inclusive(ref v) => { + my_size += ::protobuf::rt::bytes_size(4, &v); + }, + &ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(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 + } + + 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 let ::std::option::Option::Some(ref v) = self.start_qualifier { + match v { + &ColumnRange_oneof_start_qualifier::start_qualifier_inclusive(ref v) => { + os.write_bytes(2, v)?; + }, + &ColumnRange_oneof_start_qualifier::start_qualifier_exclusive(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_inclusive(ref v) => { + os.write_bytes(4, v)?; + }, + &ColumnRange_oneof_end_qualifier::end_qualifier_exclusive(ref v) => { + os.write_bytes(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() -> 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_inclusive", + ColumnRange::has_start_qualifier_inclusive, + ColumnRange::get_start_qualifier_inclusive, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( + "start_qualifier_exclusive", + ColumnRange::has_start_qualifier_exclusive, + ColumnRange::get_start_qualifier_exclusive, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( + "end_qualifier_inclusive", + ColumnRange::has_end_qualifier_inclusive, + ColumnRange::get_end_qualifier_inclusive, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( + "end_qualifier_exclusive", + ColumnRange::has_end_qualifier_exclusive, + ColumnRange::get_end_qualifier_exclusive, + )); + ::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(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct TimestampRange { + // message fields + pub start_timestamp_micros: i64, + pub end_timestamp_micros: i64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a TimestampRange { + fn default() -> &'a TimestampRange { + ::default_instance() + } +} + +impl TimestampRange { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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); + } + 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::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static TimestampRange { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(TimestampRange::new) + } +} + +impl ::protobuf::Clear for TimestampRange { + fn clear(&mut self) { + self.start_timestamp_micros = 0; + self.end_timestamp_micros = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ValueRange { + // message oneof groups + pub start_value: ::std::option::Option, + pub end_value: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ValueRange { + fn default() -> &'a ValueRange { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum ValueRange_oneof_start_value { + start_value_inclusive(::std::vec::Vec), + start_value_exclusive(::std::vec::Vec), +} + +#[derive(Clone,PartialEq,Debug)] +pub enum ValueRange_oneof_end_value { + end_value_inclusive(::std::vec::Vec), + end_value_exclusive(::std::vec::Vec), +} + +impl ValueRange { + pub fn new() -> ValueRange { + ::std::default::Default::default() + } + + // bytes start_value_inclusive = 1; + + + pub fn get_start_value_inclusive(&self) -> &[u8] { + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(ref v)) => v, + _ => &[], + } + } + pub fn clear_start_value_inclusive(&mut self) { + self.start_value = ::std::option::Option::None; + } + + pub fn has_start_value_inclusive(&self) -> bool { + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_start_value_inclusive(&mut self, v: ::std::vec::Vec) { + self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(v)) + } + + // Mutable pointer to the field. + pub fn mut_start_value_inclusive(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(_)) = self.start_value { + } else { + self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(::std::vec::Vec::new())); + } + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_start_value_inclusive(&mut self) -> ::std::vec::Vec { + if self.has_start_value_inclusive() { + match self.start_value.take() { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_inclusive(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes start_value_exclusive = 2; + + + pub fn get_start_value_exclusive(&self) -> &[u8] { + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(ref v)) => v, + _ => &[], + } + } + pub fn clear_start_value_exclusive(&mut self) { + self.start_value = ::std::option::Option::None; + } + + pub fn has_start_value_exclusive(&self) -> bool { + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_start_value_exclusive(&mut self, v: ::std::vec::Vec) { + self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(v)) + } + + // Mutable pointer to the field. + pub fn mut_start_value_exclusive(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(_)) = self.start_value { + } else { + self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(::std::vec::Vec::new())); + } + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_start_value_exclusive(&mut self) -> ::std::vec::Vec { + if self.has_start_value_exclusive() { + match self.start_value.take() { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_exclusive(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_value_inclusive = 3; + + + pub fn get_end_value_inclusive(&self) -> &[u8] { + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(ref v)) => v, + _ => &[], + } + } + pub fn clear_end_value_inclusive(&mut self) { + self.end_value = ::std::option::Option::None; + } + + pub fn has_end_value_inclusive(&self) -> bool { + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_end_value_inclusive(&mut self, v: ::std::vec::Vec) { + self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(v)) + } + + // Mutable pointer to the field. + pub fn mut_end_value_inclusive(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(_)) = self.end_value { + } else { + self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(::std::vec::Vec::new())); + } + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_end_value_inclusive(&mut self) -> ::std::vec::Vec { + if self.has_end_value_inclusive() { + match self.end_value.take() { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_inclusive(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_value_exclusive = 4; + + + pub fn get_end_value_exclusive(&self) -> &[u8] { + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(ref v)) => v, + _ => &[], + } + } + pub fn clear_end_value_exclusive(&mut self) { + self.end_value = ::std::option::Option::None; + } + + pub fn has_end_value_exclusive(&self) -> bool { + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_end_value_exclusive(&mut self, v: ::std::vec::Vec) { + self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(v)) + } + + // Mutable pointer to the field. + pub fn mut_end_value_exclusive(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(_)) = self.end_value { + } else { + self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(::std::vec::Vec::new())); + } + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_end_value_exclusive(&mut self) -> ::std::vec::Vec { + if self.has_end_value_exclusive() { + match self.end_value.take() { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_exclusive(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } +} + +impl ::protobuf::Message for 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_inclusive(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_exclusive(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_inclusive(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_exclusive(is.read_bytes()?)); + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.start_value { + match v { + &ValueRange_oneof_start_value::start_value_inclusive(ref v) => { + my_size += ::protobuf::rt::bytes_size(1, &v); + }, + &ValueRange_oneof_start_value::start_value_exclusive(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_inclusive(ref v) => { + my_size += ::protobuf::rt::bytes_size(3, &v); + }, + &ValueRange_oneof_end_value::end_value_exclusive(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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if let ::std::option::Option::Some(ref v) = self.start_value { + match v { + &ValueRange_oneof_start_value::start_value_inclusive(ref v) => { + os.write_bytes(1, v)?; + }, + &ValueRange_oneof_start_value::start_value_exclusive(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_inclusive(ref v) => { + os.write_bytes(3, v)?; + }, + &ValueRange_oneof_end_value::end_value_exclusive(ref v) => { + os.write_bytes(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() -> ValueRange { + ValueRange::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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_inclusive", + ValueRange::has_start_value_inclusive, + ValueRange::get_start_value_inclusive, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( + "start_value_exclusive", + ValueRange::has_start_value_exclusive, + ValueRange::get_start_value_exclusive, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( + "end_value_inclusive", + ValueRange::has_end_value_inclusive, + ValueRange::get_end_value_inclusive, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( + "end_value_exclusive", + ValueRange::has_end_value_exclusive, + ValueRange::get_end_value_exclusive, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ValueRange", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ValueRange { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ValueRange::new) + } +} + +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 ::std::fmt::Debug for ValueRange { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ValueRange { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct RowFilter { + // message oneof groups + pub filter: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RowFilter { + fn default() -> &'a RowFilter { + ::default_instance() + } +} + +#[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() + } + + // .google.bigtable.v1.RowFilter.Chain chain = 1; + + + pub fn get_chain(&self) -> &RowFilter_Chain { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::chain(RowFilter_Chain::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::chain(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_chain(&mut self) -> RowFilter_Chain { + if self.has_chain() { + match self.filter.take() { + ::std::option::Option::Some(RowFilter_oneof_filter::chain(v)) => v, + _ => panic!(), + } + } else { + RowFilter_Chain::new() + } + } + + // .google.bigtable.v1.RowFilter.Interleave interleave = 2; + + + pub fn get_interleave(&self) -> &RowFilter_Interleave { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::interleave(RowFilter_Interleave::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::interleave(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_interleave(&mut self) -> RowFilter_Interleave { + if self.has_interleave() { + match self.filter.take() { + ::std::option::Option::Some(RowFilter_oneof_filter::interleave(v)) => v, + _ => panic!(), + } + } else { + RowFilter_Interleave::new() + } + } + + // .google.bigtable.v1.RowFilter.Condition condition = 3; + + + pub fn get_condition(&self) -> &RowFilter_Condition { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::condition(RowFilter_Condition::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::condition(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_condition(&mut self) -> RowFilter_Condition { + if self.has_condition() { + match self.filter.take() { + ::std::option::Option::Some(RowFilter_oneof_filter::condition(v)) => v, + _ => panic!(), + } + } else { + RowFilter_Condition::new() + } + } + + // bool sink = 16; + + + pub fn get_sink(&self) -> bool { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_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, + _ => 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)) + } + + // bool pass_all_filter = 17; + + + pub fn get_pass_all_filter(&self) -> bool { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::pass_all_filter(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, + _ => 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)) + } + + // bool block_all_filter = 18; + + + pub fn get_block_all_filter(&self) -> bool { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::block_all_filter(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, + _ => 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)) + } + + // bytes row_key_regex_filter = 4; + + + pub fn get_row_key_regex_filter(&self) -> &[u8] { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(::std::vec::Vec::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // double row_sample_filter = 14; + + + pub fn get_row_sample_filter(&self) -> f64 { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::row_sample_filter(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, + _ => 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)) + } + + // string family_name_regex_filter = 5; + + + pub fn get_family_name_regex_filter(&self) -> &str { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(::std::string::String::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // bytes column_qualifier_regex_filter = 6; + + + pub fn get_column_qualifier_regex_filter(&self) -> &[u8] { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(::std::vec::Vec::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // .google.bigtable.v1.ColumnRange column_range_filter = 7; + + + pub fn get_column_range_filter(&self) -> &ColumnRange { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ColumnRange::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ColumnRange::new() + } + } + + // .google.bigtable.v1.TimestampRange timestamp_range_filter = 8; + + + pub fn get_timestamp_range_filter(&self) -> &TimestampRange { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(TimestampRange::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + TimestampRange::new() + } + } + + // bytes value_regex_filter = 9; + + + pub fn get_value_regex_filter(&self) -> &[u8] { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(::std::vec::Vec::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // .google.bigtable.v1.ValueRange value_range_filter = 15; + + + pub fn get_value_range_filter(&self) -> &ValueRange { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ValueRange::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ValueRange::new() + } + } + + // int32 cells_per_row_offset_filter = 10; + + + pub fn get_cells_per_row_offset_filter(&self) -> i32 { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_offset_filter(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, + _ => 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)) + } + + // int32 cells_per_row_limit_filter = 11; + + + pub fn get_cells_per_row_limit_filter(&self) -> i32 { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_limit_filter(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, + _ => 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)) + } + + // int32 cells_per_column_limit_filter = 12; + + + pub fn get_cells_per_column_limit_filter(&self) -> i32 { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_column_limit_filter(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, + _ => 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)) + } + + // bool strip_value_transformer = 13; + + + pub fn get_strip_value_transformer(&self) -> bool { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::strip_value_transformer(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, + _ => 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)) + } + + // string apply_label_transformer = 19; + + + pub fn get_apply_label_transformer(&self) -> &str { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(::std::string::String::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } +} + +impl ::protobuf::Message for 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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())?; + }, + }; + } + ::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.filter { + match v { + &RowFilter_oneof_filter::chain(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::interleave(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::condition(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::sink(v) => { + my_size += 3; + }, + &RowFilter_oneof_filter::pass_all_filter(v) => { + my_size += 3; + }, + &RowFilter_oneof_filter::block_all_filter(v) => { + my_size += 3; + }, + &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { + my_size += ::protobuf::rt::bytes_size(4, &v); + }, + &RowFilter_oneof_filter::row_sample_filter(v) => { + my_size += 9; + }, + &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { + my_size += ::protobuf::rt::string_size(5, &v); + }, + &RowFilter_oneof_filter::column_qualifier_regex_filter(ref v) => { + my_size += ::protobuf::rt::bytes_size(6, &v); + }, + &RowFilter_oneof_filter::column_range_filter(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::timestamp_range_filter(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::value_regex_filter(ref v) => { + my_size += ::protobuf::rt::bytes_size(9, &v); + }, + &RowFilter_oneof_filter::value_range_filter(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { + my_size += ::protobuf::rt::value_size(10, v, ::protobuf::wire_format::WireTypeVarint); + }, + &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { + my_size += ::protobuf::rt::value_size(11, v, ::protobuf::wire_format::WireTypeVarint); + }, + &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { + my_size += ::protobuf::rt::value_size(12, v, ::protobuf::wire_format::WireTypeVarint); + }, + &RowFilter_oneof_filter::strip_value_transformer(v) => { + my_size += 2; + }, + &RowFilter_oneof_filter::apply_label_transformer(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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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) => { + os.write_bool(16, v)?; + }, + &RowFilter_oneof_filter::pass_all_filter(v) => { + os.write_bool(17, v)?; + }, + &RowFilter_oneof_filter::block_all_filter(v) => { + os.write_bool(18, v)?; + }, + &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { + os.write_bytes(4, v)?; + }, + &RowFilter_oneof_filter::row_sample_filter(v) => { + os.write_double(14, v)?; + }, + &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { + os.write_string(5, v)?; + }, + &RowFilter_oneof_filter::column_qualifier_regex_filter(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)?; + }, + &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)?; + }, + &RowFilter_oneof_filter::value_regex_filter(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)?; + }, + &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { + os.write_int32(10, v)?; + }, + &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { + os.write_int32(11, v)?; + }, + &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { + os.write_int32(12, v)?; + }, + &RowFilter_oneof_filter::strip_value_transformer(v) => { + os.write_bool(13, v)?; + }, + &RowFilter_oneof_filter::apply_label_transformer(ref v) => { + os.write_string(19, 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() -> 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; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.unknown_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) + } +} + +impl ::protobuf::reflect::ProtobufValue for RowFilter { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 RowFilter_Chain { + pub fn new() -> RowFilter_Chain { + ::std::default::Default::default() + } + + // repeated .google.bigtable.v1.RowFilter filters = 1; + + + pub fn get_filters(&self) -> &[RowFilter] { + &self.filters + } + pub fn clear_filters(&mut self) { + self.filters.clear(); + } + + // Param is passed by value, moved + pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { + self.filters = v; + } + + // Mutable pointer to the field. + pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.filters + } + + // Take field + pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for RowFilter_Chain { + 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())?; + }, + }; + } + ::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_Chain { + RowFilter_Chain::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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_Chain| { &m.filters }, + |m: &mut RowFilter_Chain| { &mut m.filters }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RowFilter.Chain", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static RowFilter_Chain { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RowFilter_Chain::new) + } +} + +impl ::protobuf::Clear for RowFilter_Chain { + fn clear(&mut self) { + self.filters.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for RowFilter_Chain { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for RowFilter_Chain { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a RowFilter_Interleave { + fn default() -> &'a RowFilter_Interleave { + ::default_instance() + } +} + +impl RowFilter_Interleave { + pub fn new() -> RowFilter_Interleave { + ::std::default::Default::default() + } + + // repeated .google.bigtable.v1.RowFilter filters = 1; + + + pub fn get_filters(&self) -> &[RowFilter] { + &self.filters + } + pub fn clear_filters(&mut self) { + self.filters.clear(); + } + + // Param is passed by value, moved + pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { + self.filters = v; + } + + // Mutable pointer to the field. + pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.filters + } + + // Take field + pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) + } +} + +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())?; + }, + }; + } + ::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() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RowFilter.Interleave", + fields, + file_descriptor_proto() + ) + }) + } + + 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.v1.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.v1.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); + } + + // 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(); + } + 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.v1.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(); + } + 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; + } + }; + for v in &self.true_filter { + if !v.is_initialized() { + return false; + } + }; + for v in &self.false_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_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())?; + }, + }; + } + ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_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)?; + } + 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 new() -> RowFilter_Condition { + RowFilter_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 default_instance() -> &'static RowFilter_Condition { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RowFilter_Condition::new) + } +} + +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 ::std::fmt::Debug for RowFilter_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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Mutation { + // message oneof groups + pub mutation: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Mutation { + fn default() -> &'a Mutation { + ::default_instance() + } +} + +#[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() + } + + // .google.bigtable.v1.Mutation.SetCell set_cell = 1; + + + pub fn get_set_cell(&self) -> &Mutation_SetCell { + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(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, + _ => 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)) + } + + // 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 { + } else { + self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(Mutation_SetCell::new())); + } + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Mutation_SetCell::new() + } + } + + // .google.bigtable.v1.Mutation.DeleteFromColumn delete_from_column = 2; + + + pub fn get_delete_from_column(&self) -> &Mutation_DeleteFromColumn { + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(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, + _ => 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)) + } + + // 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 { + } else { + self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(Mutation_DeleteFromColumn::new())); + } + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Mutation_DeleteFromColumn::new() + } + } + + // .google.bigtable.v1.Mutation.DeleteFromFamily delete_from_family = 3; + + + pub fn get_delete_from_family(&self) -> &Mutation_DeleteFromFamily { + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(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, + _ => 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)) + } + + // 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 { + } else { + self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(Mutation_DeleteFromFamily::new())); + } + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Mutation_DeleteFromFamily::new() + } + } + + // .google.bigtable.v1.Mutation.DeleteFromRow delete_from_row = 4; + + + pub fn get_delete_from_row(&self) -> &Mutation_DeleteFromRow { + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(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, + _ => 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)) + } + + // 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 { + } else { + self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(Mutation_DeleteFromRow::new())); + } + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Mutation_DeleteFromRow::new() + } + } +} + +impl ::protobuf::Message for 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())?; + }, + }; + } + ::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.mutation { + match v { + &Mutation_oneof_mutation::set_cell(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Mutation_oneof_mutation::delete_from_column(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Mutation_oneof_mutation::delete_from_family(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Mutation_oneof_mutation::delete_from_row(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.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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 { + 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 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.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 ::std::fmt::Debug 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) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a Mutation_SetCell { + fn default() -> &'a Mutation_SetCell { + ::default_instance() + } +} + +impl Mutation_SetCell { + pub fn new() -> Mutation_SetCell { + ::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()) + } + + // 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>( + "family_name", + |m: &Mutation_SetCell| { &m.family_name }, + |m: &mut Mutation_SetCell| { &mut m.family_name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "column_qualifier", + |m: &Mutation_SetCell| { &m.column_qualifier }, + |m: &mut Mutation_SetCell| { &mut m.column_qualifier }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "timestamp_micros", + |m: &Mutation_SetCell| { &m.timestamp_micros }, + |m: &mut Mutation_SetCell| { &mut m.timestamp_micros }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "value", + |m: &Mutation_SetCell| { &m.value }, + |m: &mut Mutation_SetCell| { &mut m.value }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Mutation.SetCell", + fields, + file_descriptor_proto() + ) + }) + } + + 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.v1.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; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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())?; + }, + }; + } + ::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 Some(ref v) = self.time_range.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.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 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_DeleteFromColumn { + Mutation_DeleteFromColumn::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_DeleteFromColumn| { &m.family_name }, + |m: &mut Mutation_DeleteFromColumn| { &mut m.family_name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "column_qualifier", + |m: &Mutation_DeleteFromColumn| { &m.column_qualifier }, + |m: &mut Mutation_DeleteFromColumn| { &mut m.column_qualifier }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "time_range", + |m: &Mutation_DeleteFromColumn| { &m.time_range }, + |m: &mut Mutation_DeleteFromColumn| { &mut m.time_range }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Mutation.DeleteFromColumn", + fields, + file_descriptor_proto() + ) + }) + } + + 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 + } + + // 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)?; + } + 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n&google/bigtable/v1/bigtable_data.proto\x12\x12google.bigtable.v1\"O\n\ + \x03Row\x12\x10\n\x03key\x18\x01\x20\x01(\x0cR\x03key\x126\n\x08families\ + \x18\x02\x20\x03(\x0b2\x1a.google.bigtable.v1.FamilyR\x08families\"R\n\ + \x06Family\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x124\n\x07colum\ + ns\x18\x02\x20\x03(\x0b2\x1a.google.bigtable.v1.ColumnR\x07columns\"V\n\ + \x06Column\x12\x1c\n\tqualifier\x18\x01\x20\x01(\x0cR\tqualifier\x12.\n\ + \x05cells\x18\x02\x20\x03(\x0b2\x18.google.bigtable.v1.CellR\x05cells\"_\ + \n\x04Cell\x12)\n\x10timestamp_micros\x18\x01\x20\x01(\x03R\x0ftimestamp\ + Micros\x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\x12\x16\n\x06la\ + bels\x18\x03\x20\x03(\tR\x06labels\"@\n\x08RowRange\x12\x1b\n\tstart_key\ + \x18\x02\x20\x01(\x0cR\x08startKey\x12\x17\n\x07end_key\x18\x03\x20\x01(\ + \x0cR\x06endKey\"`\n\x06RowSet\x12\x19\n\x08row_keys\x18\x01\x20\x03(\ + \x0cR\x07rowKeys\x12;\n\nrow_ranges\x18\x02\x20\x03(\x0b2\x1c.google.big\ + table.v1.RowRangeR\trowRanges\"\xc2\x02\n\x0bColumnRange\x12\x1f\n\x0bfa\ + mily_name\x18\x01\x20\x01(\tR\nfamilyName\x12<\n\x19start_qualifier_incl\ + usive\x18\x02\x20\x01(\x0cH\0R\x17startQualifierInclusive\x12<\n\x19star\ + t_qualifier_exclusive\x18\x03\x20\x01(\x0cH\0R\x17startQualifierExclusiv\ + e\x128\n\x17end_qualifier_inclusive\x18\x04\x20\x01(\x0cH\x01R\x15endQua\ + lifierInclusive\x128\n\x17end_qualifier_exclusive\x18\x05\x20\x01(\x0cH\ + \x01R\x15endQualifierExclusiveB\x11\n\x0fstart_qualifierB\x0f\n\rend_qua\ + lifier\"x\n\x0eTimestampRange\x124\n\x16start_timestamp_micros\x18\x01\ + \x20\x01(\x03R\x14startTimestampMicros\x120\n\x14end_timestamp_micros\ + \x18\x02\x20\x01(\x03R\x12endTimestampMicros\"\xf8\x01\n\nValueRange\x12\ + 4\n\x15start_value_inclusive\x18\x01\x20\x01(\x0cH\0R\x13startValueInclu\ + sive\x124\n\x15start_value_exclusive\x18\x02\x20\x01(\x0cH\0R\x13startVa\ + lueExclusive\x120\n\x13end_value_inclusive\x18\x03\x20\x01(\x0cH\x01R\ + \x11endValueInclusive\x120\n\x13end_value_exclusive\x18\x04\x20\x01(\x0c\ + H\x01R\x11endValueExclusiveB\r\n\x0bstart_valueB\x0b\n\tend_value\"\xfc\ + \x0b\n\tRowFilter\x12;\n\x05chain\x18\x01\x20\x01(\x0b2#.google.bigtable\ + .v1.RowFilter.ChainH\0R\x05chain\x12J\n\ninterleave\x18\x02\x20\x01(\x0b\ + 2(.google.bigtable.v1.RowFilter.InterleaveH\0R\ninterleave\x12G\n\tcondi\ + tion\x18\x03\x20\x01(\x0b2'.google.bigtable.v1.RowFilter.ConditionH\0R\t\ + condition\x12\x14\n\x04sink\x18\x10\x20\x01(\x08H\0R\x04sink\x12(\n\x0fp\ + ass_all_filter\x18\x11\x20\x01(\x08H\0R\rpassAllFilter\x12*\n\x10block_a\ + ll_filter\x18\x12\x20\x01(\x08H\0R\x0eblockAllFilter\x121\n\x14row_key_r\ + egex_filter\x18\x04\x20\x01(\x0cH\0R\x11rowKeyRegexFilter\x12,\n\x11row_\ + sample_filter\x18\x0e\x20\x01(\x01H\0R\x0frowSampleFilter\x129\n\x18fami\ + ly_name_regex_filter\x18\x05\x20\x01(\tH\0R\x15familyNameRegexFilter\x12\ + C\n\x1dcolumn_qualifier_regex_filter\x18\x06\x20\x01(\x0cH\0R\x1acolumnQ\ + ualifierRegexFilter\x12Q\n\x13column_range_filter\x18\x07\x20\x01(\x0b2\ + \x1f.google.bigtable.v1.ColumnRangeH\0R\x11columnRangeFilter\x12Z\n\x16t\ + imestamp_range_filter\x18\x08\x20\x01(\x0b2\".google.bigtable.v1.Timesta\ + mpRangeH\0R\x14timestampRangeFilter\x12.\n\x12value_regex_filter\x18\t\ + \x20\x01(\x0cH\0R\x10valueRegexFilter\x12N\n\x12value_range_filter\x18\ + \x0f\x20\x01(\x0b2\x1e.google.bigtable.v1.ValueRangeH\0R\x10valueRangeFi\ + lter\x12>\n\x1bcells_per_row_offset_filter\x18\n\x20\x01(\x05H\0R\x17cel\ + lsPerRowOffsetFilter\x12<\n\x1acells_per_row_limit_filter\x18\x0b\x20\ + \x01(\x05H\0R\x16cellsPerRowLimitFilter\x12B\n\x1dcells_per_column_limit\ + _filter\x18\x0c\x20\x01(\x05H\0R\x19cellsPerColumnLimitFilter\x128\n\x17\ + strip_value_transformer\x18\r\x20\x01(\x08H\0R\x15stripValueTransformer\ + \x128\n\x17apply_label_transformer\x18\x13\x20\x01(\tH\0R\x15applyLabelT\ + ransformer\x1a@\n\x05Chain\x127\n\x07filters\x18\x01\x20\x03(\x0b2\x1d.g\ + oogle.bigtable.v1.RowFilterR\x07filters\x1aE\n\nInterleave\x127\n\x07fil\ + ters\x18\x01\x20\x03(\x0b2\x1d.google.bigtable.v1.RowFilterR\x07filters\ + \x1a\xd7\x01\n\tCondition\x12H\n\x10predicate_filter\x18\x01\x20\x01(\ + \x0b2\x1d.google.bigtable.v1.RowFilterR\x0fpredicateFilter\x12>\n\x0btru\ + e_filter\x18\x02\x20\x01(\x0b2\x1d.google.bigtable.v1.RowFilterR\ntrueFi\ + lter\x12@\n\x0cfalse_filter\x18\x03\x20\x01(\x0b2\x1d.google.bigtable.v1\ + .RowFilterR\x0bfalseFilterB\x08\n\x06filter\"\xf0\x05\n\x08Mutation\x12A\ + \n\x08set_cell\x18\x01\x20\x01(\x0b2$.google.bigtable.v1.Mutation.SetCel\ + lH\0R\x07setCell\x12]\n\x12delete_from_column\x18\x02\x20\x01(\x0b2-.goo\ + gle.bigtable.v1.Mutation.DeleteFromColumnH\0R\x10deleteFromColumn\x12]\n\ + \x12delete_from_family\x18\x03\x20\x01(\x0b2-.google.bigtable.v1.Mutatio\ + n.DeleteFromFamilyH\0R\x10deleteFromFamily\x12T\n\x0fdelete_from_row\x18\ + \x04\x20\x01(\x0b2*.google.bigtable.v1.Mutation.DeleteFromRowH\0R\rdelet\ + eFromRow\x1a\x96\x01\n\x07SetCell\x12\x1f\n\x0bfamily_name\x18\x01\x20\ + \x01(\tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0cR\ + \x0fcolumnQualifier\x12)\n\x10timestamp_micros\x18\x03\x20\x01(\x03R\x0f\ + timestampMicros\x12\x14\n\x05value\x18\x04\x20\x01(\x0cR\x05value\x1a\ + \xa1\x01\n\x10DeleteFromColumn\x12\x1f\n\x0bfamily_name\x18\x01\x20\x01(\ + \tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0cR\x0fcolu\ + mnQualifier\x12A\n\ntime_range\x18\x03\x20\x01(\x0b2\".google.bigtable.v\ + 1.TimestampRangeR\ttimeRange\x1a3\n\x10DeleteFromFamily\x12\x1f\n\x0bfam\ + ily_name\x18\x01\x20\x01(\tR\nfamilyName\x1a\x0f\n\rDeleteFromRowB\n\n\ + \x08mutation\"\xbb\x01\n\x13ReadModifyWriteRule\x12\x1f\n\x0bfamily_name\ + \x18\x01\x20\x01(\tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\ + \x01(\x0cR\x0fcolumnQualifier\x12#\n\x0cappend_value\x18\x03\x20\x01(\ + \x0cH\0R\x0bappendValue\x12+\n\x10increment_amount\x18\x04\x20\x01(\x03H\ + \0R\x0fincrementAmountB\x06\n\x04ruleBi\n\x16com.google.bigtable.v1B\x11\ + BigtableDataProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v\ + 1;bigtableJ\xf4\xb2\x01\n\x07\x12\x05\x0e\0\x80\x04\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\ + \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\0Q\n\t\n\x02\x08\x0b\x12\x03\x12\0Q\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\x90\x01\n\x02\x04\0\x12\x04\x19\0\"\x01\x1a\ + \x83\x01\x20Specifies\x20the\x20complete\x20(requested)\x20contents\x20o\ + f\x20a\x20single\x20row\x20of\x20a\x20table.\n\x20Rows\x20which\x20excee\ + d\x20256MiB\x20in\x20size\x20cannot\x20be\x20read\x20in\x20full.\n\n\n\n\ + \x03\x04\0\x01\x12\x03\x19\x08\x0b\n\xe2\x01\n\x04\x04\0\x02\0\x12\x03\ + \x1d\x02\x10\x1a\xd4\x01\x20The\x20unique\x20key\x20which\x20identifies\ + \x20this\x20row\x20within\x20its\x20table.\x20This\x20is\x20the\x20same\ + \n\x20key\x20that's\x20used\x20to\x20identify\x20the\x20row\x20in,\x20fo\ + r\x20example,\x20a\x20MutateRowRequest.\n\x20May\x20contain\x20any\x20no\ + n-empty\x20byte\x20string\x20up\x20to\x204KiB\x20in\x20length.\n\n\r\n\ + \x05\x04\0\x02\0\x04\x12\x04\x1d\x02\x19\r\n\x0c\n\x05\x04\0\x02\0\x05\ + \x12\x03\x1d\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1d\x08\x0b\n\ + \x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1d\x0e\x0f\n{\n\x04\x04\0\x02\x01\ + \x12\x03!\x02\x1f\x1an\x20May\x20be\x20empty,\x20but\x20only\x20if\x20th\ + e\x20entire\x20row\x20is\x20empty.\n\x20The\x20mutual\x20ordering\x20of\ + \x20column\x20families\x20is\x20not\x20specified.\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\ + \x11\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03!\x12\x1a\n\x0c\n\x05\x04\0\ + \x02\x01\x03\x12\x03!\x1d\x1e\nX\n\x02\x04\x01\x12\x04%\00\x01\x1aL\x20S\ + pecifies\x20(some\x20of)\x20the\x20contents\x20of\x20a\x20single\x20row/\ + column\x20family\x20of\x20a\x20table.\n\n\n\n\x03\x04\x01\x01\x12\x03%\ + \x08\x0e\n\x83\x03\n\x04\x04\x01\x02\0\x12\x03,\x02\x12\x1a\xf5\x02\x20T\ + he\x20unique\x20key\x20which\x20identifies\x20this\x20family\x20within\ + \x20its\x20row.\x20This\x20is\x20the\n\x20same\x20key\x20that's\x20used\ + \x20to\x20identify\x20the\x20family\x20in,\x20for\x20example,\x20a\x20Ro\ + wFilter\n\x20which\x20sets\x20its\x20\"family_name_regex_filter\"\x20fie\ + ld.\n\x20Must\x20match\x20[-_.a-zA-Z0-9]+,\x20except\x20that\x20Aggregat\ + ingRowProcessors\x20may\n\x20produce\x20cells\x20in\x20a\x20sentinel\x20\ + family\x20with\x20an\x20empty\x20name.\n\x20Must\x20be\x20no\x20greater\ + \x20than\x2064\x20characters\x20in\x20length.\n\n\r\n\x05\x04\x01\x02\0\ + \x04\x12\x04,\x02%\x10\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\r\n\x0c\n\x05\x04\x01\x02\0\x03\ + \x12\x03,\x10\x11\nL\n\x04\x04\x01\x02\x01\x12\x03/\x02\x1e\x1a?\x20Must\ + \x20not\x20be\x20empty.\x20Sorted\x20in\x20order\x20of\x20increasing\x20\ + \"qualifier\".\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03/\x02\n\n\x0c\n\ + \x05\x04\x01\x02\x01\x06\x12\x03/\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\ + \x01\x12\x03/\x12\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03/\x1c\x1d\n\ + Q\n\x02\x04\x02\x12\x043\0=\x01\x1aE\x20Specifies\x20(some\x20of)\x20the\ + \x20contents\x20of\x20a\x20single\x20row/column\x20of\x20a\x20table.\n\n\ + \n\n\x03\x04\x02\x01\x12\x033\x08\x0e\n\xad\x02\n\x04\x04\x02\x02\0\x12\ + \x039\x02\x16\x1a\x9f\x02\x20The\x20unique\x20key\x20which\x20identifies\ + \x20this\x20column\x20within\x20its\x20family.\x20This\x20is\x20the\n\ + \x20same\x20key\x20that's\x20used\x20to\x20identify\x20the\x20column\x20\ + in,\x20for\x20example,\x20a\x20RowFilter\n\x20which\x20sets\x20its\x20\"\ + column_qualifier_regex_filter\"\x20field.\n\x20May\x20contain\x20any\x20\ + byte\x20string,\x20including\x20the\x20empty\x20string,\x20up\x20to\x201\ + 6kiB\x20in\n\x20length.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x049\x023\x10\ + \n\x0c\n\x05\x04\x02\x02\0\x05\x12\x039\x02\x07\n\x0c\n\x05\x04\x02\x02\ + \0\x01\x12\x039\x08\x11\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x039\x14\x15\n\ + S\n\x04\x04\x02\x02\x01\x12\x03<\x02\x1a\x1aF\x20Must\x20not\x20be\x20em\ + pty.\x20Sorted\x20in\x20order\x20of\x20decreasing\x20\"timestamp_micros\ + \".\n\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03<\x02\n\n\x0c\n\x05\x04\x02\ + \x02\x01\x06\x12\x03<\x0b\x0f\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03<\ + \x10\x15\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03<\x18\x19\n[\n\x02\x04\ + \x03\x12\x04@\0P\x01\x1aO\x20Specifies\x20(some\x20of)\x20the\x20content\ + s\x20of\x20a\x20single\x20row/column/timestamp\x20of\x20a\x20table.\n\n\ + \n\n\x03\x04\x03\x01\x12\x03@\x08\x0c\n\xf8\x02\n\x04\x04\x03\x02\0\x12\ + \x03G\x02\x1d\x1a\xea\x02\x20The\x20cell's\x20stored\x20timestamp,\x20wh\ + ich\x20also\x20uniquely\x20identifies\x20it\x20within\n\x20its\x20column\ + .\n\x20Values\x20are\x20always\x20expressed\x20in\x20microseconds,\x20bu\ + t\x20individual\x20tables\x20may\x20set\n\x20a\x20coarser\x20\"granulari\ + ty\"\x20to\x20further\x20restrict\x20the\x20allowed\x20values.\x20For\n\ + \x20example,\x20a\x20table\x20which\x20specifies\x20millisecond\x20granu\ + larity\x20will\x20only\x20allow\n\x20values\x20of\x20\"timestamp_micros\ + \"\x20which\x20are\x20multiples\x20of\x201000.\n\n\r\n\x05\x04\x03\x02\0\ + \x04\x12\x04G\x02@\x0e\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03G\x02\x07\n\ + \x0c\n\x05\x04\x03\x02\0\x01\x12\x03G\x08\x18\n\x0c\n\x05\x04\x03\x02\0\ + \x03\x12\x03G\x1b\x1c\n\x7f\n\x04\x04\x03\x02\x01\x12\x03L\x02\x12\x1ar\ + \x20The\x20value\x20stored\x20in\x20the\x20cell.\n\x20May\x20contain\x20\ + any\x20byte\x20string,\x20including\x20the\x20empty\x20string,\x20up\x20\ + to\x20100MiB\x20in\n\x20length.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04L\ + \x02G\x1d\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03L\x02\x07\n\x0c\n\x05\ + \x04\x03\x02\x01\x01\x12\x03L\x08\r\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\ + \x03L\x10\x11\nY\n\x04\x04\x03\x02\x02\x12\x03O\x02\x1d\x1aL\x20Labels\ + \x20applied\x20to\x20the\x20cell\x20by\x20a\x20[RowFilter][google.bigtab\ + le.v1.RowFilter].\n\n\x0c\n\x05\x04\x03\x02\x02\x04\x12\x03O\x02\n\n\x0c\ + \n\x05\x04\x03\x02\x02\x05\x12\x03O\x0b\x11\n\x0c\n\x05\x04\x03\x02\x02\ + \x01\x12\x03O\x12\x18\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03O\x1b\x1c\n\ + 3\n\x02\x04\x04\x12\x04S\0Y\x01\x1a'\x20Specifies\x20a\x20contiguous\x20\ + range\x20of\x20rows.\n\n\n\n\x03\x04\x04\x01\x12\x03S\x08\x10\nU\n\x04\ + \x04\x04\x02\0\x12\x03U\x02\x16\x1aH\x20Inclusive\x20lower\x20bound.\x20\ + If\x20left\x20empty,\x20interpreted\x20as\x20the\x20empty\x20string.\n\n\ + \r\n\x05\x04\x04\x02\0\x04\x12\x04U\x02S\x12\n\x0c\n\x05\x04\x04\x02\0\ + \x05\x12\x03U\x02\x07\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03U\x08\x11\n\ + \x0c\n\x05\x04\x04\x02\0\x03\x12\x03U\x14\x15\nM\n\x04\x04\x04\x02\x01\ + \x12\x03X\x02\x14\x1a@\x20Exclusive\x20upper\x20bound.\x20If\x20left\x20\ + empty,\x20interpreted\x20as\x20infinity.\n\n\r\n\x05\x04\x04\x02\x01\x04\ + \x12\x04X\x02U\x16\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03X\x02\x07\n\ + \x0c\n\x05\x04\x04\x02\x01\x01\x12\x03X\x08\x0f\n\x0c\n\x05\x04\x04\x02\ + \x01\x03\x12\x03X\x12\x13\n5\n\x02\x04\x05\x12\x04\\\0b\x01\x1a)\x20Spec\ + ifies\x20a\x20non-contiguous\x20set\x20of\x20rows.\n\n\n\n\x03\x04\x05\ + \x01\x12\x03\\\x08\x0e\n/\n\x04\x04\x05\x02\0\x12\x03^\x02\x1e\x1a\"\x20\ + Single\x20rows\x20included\x20in\x20the\x20set.\n\n\x0c\n\x05\x04\x05\ + \x02\0\x04\x12\x03^\x02\n\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03^\x0b\x10\ + \n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03^\x11\x19\n\x0c\n\x05\x04\x05\x02\ + \0\x03\x12\x03^\x1c\x1d\n9\n\x04\x04\x05\x02\x01\x12\x03a\x02#\x1a,\x20C\ + ontiguous\x20row\x20ranges\x20included\x20in\x20the\x20set.\n\n\x0c\n\ + \x05\x04\x05\x02\x01\x04\x12\x03a\x02\n\n\x0c\n\x05\x04\x05\x02\x01\x06\ + \x12\x03a\x0b\x13\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03a\x14\x1e\n\x0c\ + \n\x05\x04\x05\x02\x01\x03\x12\x03a!\"\n\xeb\x01\n\x02\x04\x06\x12\x04h\ + \0\x7f\x01\x1a\xde\x01\x20Specifies\x20a\x20contiguous\x20range\x20of\ + \x20columns\x20within\x20a\x20single\x20column\x20family.\n\x20The\x20ra\ + nge\x20spans\x20from\x20:\x20to\n\x20:,\x20where\x20both\x20bounds\x20can\x20be\ + \x20either\x20inclusive\x20or\n\x20exclusive.\n\n\n\n\x03\x04\x06\x01\ + \x12\x03h\x08\x13\nK\n\x04\x04\x06\x02\0\x12\x03j\x02\x19\x1a>\x20The\ + \x20name\x20of\x20the\x20column\x20family\x20within\x20which\x20this\x20\ + range\x20falls.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04j\x02h\x15\n\x0c\n\ + \x05\x04\x06\x02\0\x05\x12\x03j\x02\x08\n\x0c\n\x05\x04\x06\x02\0\x01\ + \x12\x03j\t\x14\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03j\x17\x18\n\xa1\x01\ + \n\x04\x04\x06\x08\0\x12\x04n\x02t\x03\x1a\x92\x01\x20The\x20column\x20q\ + ualifier\x20at\x20which\x20to\x20start\x20the\x20range\x20(within\x20'co\ + lumn_family').\n\x20If\x20neither\x20field\x20is\x20set,\x20interpreted\ + \x20as\x20the\x20empty\x20string,\x20inclusive.\n\n\x0c\n\x05\x04\x06\ + \x08\0\x01\x12\x03n\x08\x17\nG\n\x04\x04\x06\x02\x01\x12\x03p\x04(\x1a:\ + \x20Used\x20when\x20giving\x20an\x20inclusive\x20lower\x20bound\x20for\ + \x20the\x20range.\n\n\x0c\n\x05\x04\x06\x02\x01\x05\x12\x03p\x04\t\n\x0c\ + \n\x05\x04\x06\x02\x01\x01\x12\x03p\n#\n\x0c\n\x05\x04\x06\x02\x01\x03\ + \x12\x03p&'\nG\n\x04\x04\x06\x02\x02\x12\x03s\x04(\x1a:\x20Used\x20when\ + \x20giving\x20an\x20exclusive\x20lower\x20bound\x20for\x20the\x20range.\ + \n\n\x0c\n\x05\x04\x06\x02\x02\x05\x12\x03s\x04\t\n\x0c\n\x05\x04\x06\ + \x02\x02\x01\x12\x03s\n#\n\x0c\n\x05\x04\x06\x02\x02\x03\x12\x03s&'\n\ + \xa2\x01\n\x04\x04\x06\x08\x01\x12\x04x\x02~\x03\x1a\x93\x01\x20The\x20c\ + olumn\x20qualifier\x20at\x20which\x20to\x20end\x20the\x20range\x20(withi\ + n\x20'column_family').\n\x20If\x20neither\x20field\x20is\x20set,\x20inte\ + rpreted\x20as\x20the\x20infinite\x20string,\x20exclusive.\n\n\x0c\n\x05\ + \x04\x06\x08\x01\x01\x12\x03x\x08\x15\nG\n\x04\x04\x06\x02\x03\x12\x03z\ + \x04&\x1a:\x20Used\x20when\x20giving\x20an\x20inclusive\x20upper\x20boun\ + d\x20for\x20the\x20range.\n\n\x0c\n\x05\x04\x06\x02\x03\x05\x12\x03z\x04\ + \t\n\x0c\n\x05\x04\x06\x02\x03\x01\x12\x03z\n!\n\x0c\n\x05\x04\x06\x02\ + \x03\x03\x12\x03z$%\nG\n\x04\x04\x06\x02\x04\x12\x03}\x04&\x1a:\x20Used\ + \x20when\x20giving\x20an\x20exclusive\x20upper\x20bound\x20for\x20the\ + \x20range.\n\n\x0c\n\x05\x04\x06\x02\x04\x05\x12\x03}\x04\t\n\x0c\n\x05\ + \x04\x06\x02\x04\x01\x12\x03}\n!\n\x0c\n\x05\x04\x06\x02\x04\x03\x12\x03\ + }$%\nG\n\x02\x04\x07\x12\x06\x82\x01\0\x88\x01\x01\x1a9\x20Specified\x20\ + a\x20contiguous\x20range\x20of\x20microsecond\x20timestamps.\n\n\x0b\n\ + \x03\x04\x07\x01\x12\x04\x82\x01\x08\x16\nG\n\x04\x04\x07\x02\0\x12\x04\ + \x84\x01\x02#\x1a9\x20Inclusive\x20lower\x20bound.\x20If\x20left\x20empt\ + y,\x20interpreted\x20as\x200.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\ + \x84\x01\x02\x82\x01\x18\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\x84\x01\x02\ + \x07\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x84\x01\x08\x1e\n\r\n\x05\x04\ + \x07\x02\0\x03\x12\x04\x84\x01!\"\nN\n\x04\x04\x07\x02\x01\x12\x04\x87\ + \x01\x02!\x1a@\x20Exclusive\x20upper\x20bound.\x20If\x20left\x20empty,\ + \x20interpreted\x20as\x20infinity.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\ + \x06\x87\x01\x02\x84\x01#\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\x87\x01\ + \x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\x87\x01\x08\x1c\n\r\n\x05\ + \x04\x07\x02\x01\x03\x12\x04\x87\x01\x1f\x20\n@\n\x02\x04\x08\x12\x06\ + \x8b\x01\0\x9f\x01\x01\x1a2\x20Specifies\x20a\x20contiguous\x20range\x20\ + of\x20raw\x20byte\x20values.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\x8b\x01\ + \x08\x12\n~\n\x04\x04\x08\x08\0\x12\x06\x8e\x01\x02\x94\x01\x03\x1an\x20\ + The\x20value\x20at\x20which\x20to\x20start\x20the\x20range.\n\x20If\x20n\ + either\x20field\x20is\x20set,\x20interpreted\x20as\x20the\x20empty\x20st\ + ring,\x20inclusive.\n\n\r\n\x05\x04\x08\x08\0\x01\x12\x04\x8e\x01\x08\ + \x13\nH\n\x04\x04\x08\x02\0\x12\x04\x90\x01\x04$\x1a:\x20Used\x20when\ + \x20giving\x20an\x20inclusive\x20lower\x20bound\x20for\x20the\x20range.\ + \n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\x90\x01\x04\t\n\r\n\x05\x04\x08\ + \x02\0\x01\x12\x04\x90\x01\n\x1f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x90\ + \x01\"#\nH\n\x04\x04\x08\x02\x01\x12\x04\x93\x01\x04$\x1a:\x20Used\x20wh\ + en\x20giving\x20an\x20exclusive\x20lower\x20bound\x20for\x20the\x20range\ + .\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\x93\x01\x04\t\n\r\n\x05\x04\ + \x08\x02\x01\x01\x12\x04\x93\x01\n\x1f\n\r\n\x05\x04\x08\x02\x01\x03\x12\ + \x04\x93\x01\"#\n\x7f\n\x04\x04\x08\x08\x01\x12\x06\x98\x01\x02\x9e\x01\ + \x03\x1ao\x20The\x20value\x20at\x20which\x20to\x20end\x20the\x20range.\n\ + \x20If\x20neither\x20field\x20is\x20set,\x20interpreted\x20as\x20the\x20\ + infinite\x20string,\x20exclusive.\n\n\r\n\x05\x04\x08\x08\x01\x01\x12\ + \x04\x98\x01\x08\x11\nH\n\x04\x04\x08\x02\x02\x12\x04\x9a\x01\x04\"\x1a:\ + \x20Used\x20when\x20giving\x20an\x20inclusive\x20upper\x20bound\x20for\ + \x20the\x20range.\n\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\x9a\x01\x04\t\ + \n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\x9a\x01\n\x1d\n\r\n\x05\x04\x08\ + \x02\x02\x03\x12\x04\x9a\x01\x20!\nH\n\x04\x04\x08\x02\x03\x12\x04\x9d\ + \x01\x04\"\x1a:\x20Used\x20when\x20giving\x20an\x20exclusive\x20upper\ + \x20bound\x20for\x20the\x20range.\n\n\r\n\x05\x04\x08\x02\x03\x05\x12\ + \x04\x9d\x01\x04\t\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\x9d\x01\n\x1d\n\ + \r\n\x05\x04\x08\x02\x03\x03\x12\x04\x9d\x01\x20!\n\xa5\x0f\n\x02\x04\t\ + \x12\x06\xc2\x01\0\xa4\x03\x01\x1a\x96\x0f\x20Takes\x20a\x20row\x20as\ + \x20input\x20and\x20produces\x20an\x20alternate\x20view\x20of\x20the\x20\ + row\x20based\x20on\n\x20specified\x20rules.\x20For\x20example,\x20a\x20R\ + owFilter\x20might\x20trim\x20down\x20a\x20row\x20to\x20include\n\x20just\ + \x20the\x20cells\x20from\x20columns\x20matching\x20a\x20given\x20regular\ + \x20expression,\x20or\x20might\n\x20return\x20all\x20the\x20cells\x20of\ + \x20a\x20row\x20but\x20not\x20their\x20values.\x20More\x20complicated\ + \x20filters\n\x20can\x20be\x20composed\x20out\x20of\x20these\x20componen\ + ts\x20to\x20express\x20requests\x20such\x20as,\x20\"within\n\x20every\ + \x20column\x20of\x20a\x20particular\x20family,\x20give\x20just\x20the\ + \x20two\x20most\x20recent\x20cells\n\x20which\x20are\x20older\x20than\ + \x20timestamp\x20X.\"\n\n\x20There\x20are\x20two\x20broad\x20categories\ + \x20of\x20RowFilters\x20(true\x20filters\x20and\x20transformers),\n\x20a\ + s\x20well\x20as\x20two\x20ways\x20to\x20compose\x20simple\x20filters\x20\ + into\x20more\x20complex\x20ones\n\x20(chains\x20and\x20interleaves).\x20\ + They\x20work\x20as\x20follows:\n\n\x20*\x20True\x20filters\x20alter\x20t\ + he\x20input\x20row\x20by\x20excluding\x20some\x20of\x20its\x20cells\x20w\ + holesale\n\x20from\x20the\x20output\x20row.\x20An\x20example\x20of\x20a\ + \x20true\x20filter\x20is\x20the\x20\"value_regex_filter\",\n\x20which\ + \x20excludes\x20cells\x20whose\x20values\x20don't\x20match\x20the\x20spe\ + cified\x20pattern.\x20All\n\x20regex\x20true\x20filters\x20use\x20RE2\ + \x20syntax\x20(https://github.com/google/re2/wiki/Syntax)\n\x20in\x20raw\ + \x20byte\x20mode\x20(RE2::Latin1),\x20and\x20are\x20evaluated\x20as\x20f\ + ull\x20matches.\x20An\n\x20important\x20point\x20to\x20keep\x20in\x20min\ + d\x20is\x20that\x20RE2(.)\x20is\x20equivalent\x20by\x20default\x20to\n\ + \x20RE2([^\\n]),\x20meaning\x20that\x20it\x20does\x20not\x20match\x20new\ + lines.\x20When\x20attempting\x20to\x20match\n\x20an\x20arbitrary\x20byte\ + ,\x20you\x20should\x20therefore\x20use\x20the\x20escape\x20sequence\x20'\ + \\C',\x20which\n\x20may\x20need\x20to\x20be\x20further\x20escaped\x20as\ + \x20'\\\\C'\x20in\x20your\x20client\x20language.\n\n\x20*\x20Transformer\ + s\x20alter\x20the\x20input\x20row\x20by\x20changing\x20the\x20values\x20\ + of\x20some\x20of\x20its\n\x20cells\x20in\x20the\x20output,\x20without\ + \x20excluding\x20them\x20completely.\x20Currently,\x20the\x20only\n\x20s\ + upported\x20transformer\x20is\x20the\x20\"strip_value_transformer\",\x20\ + which\x20replaces\x20every\n\x20cell's\x20value\x20with\x20the\x20empty\ + \x20string.\n\n\x20*\x20Chains\x20and\x20interleaves\x20are\x20described\ + \x20in\x20more\x20detail\x20in\x20the\n\x20RowFilter.Chain\x20and\x20Row\ + Filter.Interleave\x20documentation.\n\n\x20The\x20total\x20serialized\ + \x20size\x20of\x20a\x20RowFilter\x20message\x20must\x20not\n\x20exceed\ + \x204096\x20bytes,\x20and\x20RowFilters\x20may\x20not\x20be\x20nested\ + \x20within\x20each\x20other\n\x20(in\x20Chains\x20or\x20Interleaves)\x20\ + to\x20a\x20depth\x20of\x20more\x20than\x2020.\n\n\x0b\n\x03\x04\t\x01\ + \x12\x04\xc2\x01\x08\x11\nV\n\x04\x04\t\x03\0\x12\x06\xc4\x01\x02\xc9\ + \x01\x03\x1aF\x20A\x20RowFilter\x20which\x20sends\x20rows\x20through\x20\ + several\x20RowFilters\x20in\x20sequence.\n\n\r\n\x05\x04\t\x03\0\x01\x12\ + \x04\xc4\x01\n\x0f\n\xc9\x01\n\x06\x04\t\x03\0\x02\0\x12\x04\xc8\x01\x04\ + #\x1a\xb8\x01\x20The\x20elements\x20of\x20\"filters\"\x20are\x20chained\ + \x20together\x20to\x20process\x20the\x20input\x20row:\n\x20in\x20row\x20\ + ->\x20f(0)\x20->\x20intermediate\x20row\x20->\x20f(1)\x20->\x20...\x20->\ + \x20f(N)\x20->\x20out\x20row\n\x20The\x20full\x20chain\x20is\x20executed\ + \x20atomically.\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x04\x12\x04\xc8\x01\x04\ + \x0c\n\x0f\n\x07\x04\t\x03\0\x02\0\x06\x12\x04\xc8\x01\r\x16\n\x0f\n\x07\ + \x04\t\x03\0\x02\0\x01\x12\x04\xc8\x01\x17\x1e\n\x0f\n\x07\x04\t\x03\0\ + \x02\0\x03\x12\x04\xc8\x01!\"\nx\n\x04\x04\t\x03\x01\x12\x06\xcd\x01\x02\ + \xe7\x01\x03\x1ah\x20A\x20RowFilter\x20which\x20sends\x20each\x20row\x20\ + to\x20each\x20of\x20several\x20component\n\x20RowFilters\x20and\x20inter\ + leaves\x20the\x20results.\n\n\r\n\x05\x04\t\x03\x01\x01\x12\x04\xcd\x01\ + \n\x14\n\xe2\n\n\x06\x04\t\x03\x01\x02\0\x12\x04\xe6\x01\x04#\x1a\xd1\n\ + \x20The\x20elements\x20of\x20\"filters\"\x20all\x20process\x20a\x20copy\ + \x20of\x20the\x20input\x20row,\x20and\x20the\n\x20results\x20are\x20pool\ + ed,\x20sorted,\x20and\x20combined\x20into\x20a\x20single\x20output\x20ro\ + w.\n\x20If\x20multiple\x20cells\x20are\x20produced\x20with\x20the\x20sam\ + e\x20column\x20and\x20timestamp,\n\x20they\x20will\x20all\x20appear\x20i\ + n\x20the\x20output\x20row\x20in\x20an\x20unspecified\x20mutual\x20order.\ + \n\x20Consider\x20the\x20following\x20example,\x20with\x20three\x20filte\ + rs:\n\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\x20input\x20row\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--------------------------------------------\ + ---------\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|\n\x20\x20\x20\x20\x20\x20\x20f(0)\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20f(1)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20f(2)\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|\n\x201:\ + \x20foo,bar,10,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foo,\ + bar,10,z\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,bar,\ + 7,a\n\x202:\x20foo,blah,11,z\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20far,blah,5,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + far,blah,5,x\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|\n\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|\n\x201:\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20foo,bar,10,z\x20\x20\x20\x20\x20//\x20could\x20have\x20switc\ + hed\x20with\x20#2\n\x202:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foo,bar,10,x\x20\x20\ + \x20\x20\x20//\x20could\x20have\x20switched\x20with\x20#1\n\x203:\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20foo,blah,11,z\n\x204:\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,\ + bar,7,a\n\x205:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,blah,5,x\x20\x20\x20\x20\x20\ + //\x20identical\x20to\x20#6\n\x206:\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,blah,5,x\ + \x20\x20\x20\x20\x20//\x20identical\x20to\x20#5\n\x20All\x20interleaved\ + \x20filters\x20are\x20executed\x20atomically.\n\n\x0f\n\x07\x04\t\x03\ + \x01\x02\0\x04\x12\x04\xe6\x01\x04\x0c\n\x0f\n\x07\x04\t\x03\x01\x02\0\ + \x06\x12\x04\xe6\x01\r\x16\n\x0f\n\x07\x04\t\x03\x01\x02\0\x01\x12\x04\ + \xe6\x01\x17\x1e\n\x0f\n\x07\x04\t\x03\x01\x02\0\x03\x12\x04\xe6\x01!\"\ + \n\xb4\x03\n\x04\x04\t\x03\x02\x12\x06\xf0\x01\x02\xfd\x01\x03\x1a\xa3\ + \x03\x20A\x20RowFilter\x20which\x20evaluates\x20one\x20of\x20two\x20poss\ + ible\x20RowFilters,\x20depending\x20on\n\x20whether\x20or\x20not\x20a\ + \x20predicate\x20RowFilter\x20outputs\x20any\x20cells\x20from\x20the\x20\ + input\x20row.\n\n\x20IMPORTANT\x20NOTE:\x20The\x20predicate\x20filter\ + \x20does\x20not\x20execute\x20atomically\x20with\x20the\n\x20true\x20and\ + \x20false\x20filters,\x20which\x20may\x20lead\x20to\x20inconsistent\x20o\ + r\x20unexpected\n\x20results.\x20Additionally,\x20Condition\x20filters\ + \x20have\x20poor\x20performance,\x20especially\n\x20when\x20filters\x20a\ + re\x20set\x20for\x20the\x20false\x20condition.\n\n\r\n\x05\x04\t\x03\x02\ + \x01\x12\x04\xf0\x01\n\x13\n\xa0\x01\n\x06\x04\t\x03\x02\x02\0\x12\x04\ + \xf3\x01\x04#\x1a\x8f\x01\x20If\x20\"predicate_filter\"\x20outputs\x20an\ + y\x20cells,\x20then\x20\"true_filter\"\x20will\x20be\n\x20evaluated\x20o\ + n\x20the\x20input\x20row.\x20Otherwise,\x20\"false_filter\"\x20will\x20b\ + e\x20evaluated.\n\n\x11\n\x07\x04\t\x03\x02\x02\0\x04\x12\x06\xf3\x01\ + \x04\xf0\x01\x15\n\x0f\n\x07\x04\t\x03\x02\x02\0\x06\x12\x04\xf3\x01\x04\ + \r\n\x0f\n\x07\x04\t\x03\x02\x02\0\x01\x12\x04\xf3\x01\x0e\x1e\n\x0f\n\ + \x07\x04\t\x03\x02\x02\0\x03\x12\x04\xf3\x01!\"\n\xa2\x01\n\x06\x04\t\ + \x03\x02\x02\x01\x12\x04\xf7\x01\x04\x1e\x1a\x91\x01\x20The\x20filter\ + \x20to\x20apply\x20to\x20the\x20input\x20row\x20if\x20\"predicate_filter\ + \"\x20returns\x20any\n\x20results.\x20If\x20not\x20provided,\x20no\x20re\ + sults\x20will\x20be\x20returned\x20in\x20the\x20true\x20case.\n\n\x11\n\ + \x07\x04\t\x03\x02\x02\x01\x04\x12\x06\xf7\x01\x04\xf3\x01#\n\x0f\n\x07\ + \x04\t\x03\x02\x02\x01\x06\x12\x04\xf7\x01\x04\r\n\x0f\n\x07\x04\t\x03\ + \x02\x02\x01\x01\x12\x04\xf7\x01\x0e\x19\n\x0f\n\x07\x04\t\x03\x02\x02\ + \x01\x03\x12\x04\xf7\x01\x1c\x1d\n\xac\x01\n\x06\x04\t\x03\x02\x02\x02\ + \x12\x04\xfc\x01\x04\x1f\x1a\x9b\x01\x20The\x20filter\x20to\x20apply\x20\ + to\x20the\x20input\x20row\x20if\x20\"predicate_filter\"\x20does\x20not\n\ + \x20return\x20any\x20results.\x20If\x20not\x20provided,\x20no\x20results\ + \x20will\x20be\x20returned\x20in\x20the\n\x20false\x20case.\n\n\x11\n\ + \x07\x04\t\x03\x02\x02\x02\x04\x12\x06\xfc\x01\x04\xf7\x01\x1e\n\x0f\n\ + \x07\x04\t\x03\x02\x02\x02\x06\x12\x04\xfc\x01\x04\r\n\x0f\n\x07\x04\t\ + \x03\x02\x02\x02\x01\x12\x04\xfc\x01\x0e\x1a\n\x0f\n\x07\x04\t\x03\x02\ + \x02\x02\x03\x12\x04\xfc\x01\x1d\x1e\n\x86\x01\n\x04\x04\t\x08\0\x12\x06\ + \x81\x02\x02\xa3\x03\x03\x1av\x20Which\x20of\x20the\x20possible\x20RowFi\ + lter\x20types\x20to\x20apply.\x20If\x20none\x20are\x20set,\x20this\n\x20\ + RowFilter\x20returns\x20all\x20cells\x20in\x20the\x20input\x20row.\n\n\r\ + \n\x05\x04\t\x08\0\x01\x12\x04\x81\x02\x08\x0e\ni\n\x04\x04\t\x02\0\x12\ + \x04\x84\x02\x04\x14\x1a[\x20Applies\x20several\x20RowFilters\x20to\x20t\ + he\x20data\x20in\x20sequence,\x20progressively\n\x20narrowing\x20the\x20\ + results.\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\x84\x02\x04\t\n\r\n\x05\x04\ + \t\x02\0\x01\x12\x04\x84\x02\n\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x84\ + \x02\x12\x13\n]\n\x04\x04\t\x02\x01\x12\x04\x88\x02\x04\x1e\x1aO\x20Appl\ + ies\x20several\x20RowFilters\x20to\x20the\x20data\x20in\x20parallel\x20a\ + nd\x20combines\x20the\n\x20results.\n\n\r\n\x05\x04\t\x02\x01\x06\x12\ + \x04\x88\x02\x04\x0e\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x88\x02\x0f\x19\ + \n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x88\x02\x1c\x1d\nq\n\x04\x04\t\x02\ + \x02\x12\x04\x8c\x02\x04\x1c\x1ac\x20Applies\x20one\x20of\x20two\x20poss\ + ible\x20RowFilters\x20to\x20the\x20data\x20based\x20on\x20the\x20output\ + \x20of\n\x20a\x20predicate\x20RowFilter.\n\n\r\n\x05\x04\t\x02\x02\x06\ + \x12\x04\x8c\x02\x04\r\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\x8c\x02\x0e\ + \x17\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\x8c\x02\x1a\x1b\n\x97\x14\n\x04\ + \x04\t\x02\x03\x12\x04\xc9\x02\x04\x13\x1a\x88\x14\x20ADVANCED\x20USE\ + \x20ONLY.\n\x20Hook\x20for\x20introspection\x20into\x20the\x20RowFilter.\ + \x20Outputs\x20all\x20cells\x20directly\x20to\n\x20the\x20output\x20of\ + \x20the\x20read\x20rather\x20than\x20to\x20any\x20parent\x20filter.\x20C\ + onsider\x20the\n\x20following\x20example:\n\n\x20Chain(\n\x20\x20\x20Fam\ + ilyRegex(\"A\"),\n\x20\x20\x20Interleave(\n\x20\x20\x20\x20\x20All(),\n\ + \x20\x20\x20\x20\x20Chain(Label(\"foo\"),\x20Sink())\n\x20\x20\x20),\n\ + \x20\x20\x20QualifierRegex(\"B\")\n\x20)\n\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\ + A,A,1,w\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\x20A,B,2,x\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\x20B,B,4,z\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|\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20FamilyRegex(\"A\")\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|\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\x20A,A,1,w\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\x20A,B,2,x\ + \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|\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\x20\x20|\x20\x20\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\ + \x20All()\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20Label(foo)\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|\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20A,A,1,w\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20A,A,1,w,labels:[foo]\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20A,B,2,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20A,B,2,x,labels:[foo]\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|\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\x20Sink()\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\ + |\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20+--------\ + ----+\x20\x20\x20\x20\x20\x20x------+\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20A,A,1,w,labels:[foo]\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\x20A,B,2,x,labels:[foo]\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\x20A,A,1,w\x20\x20\x20\x20\x20\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\x20A,B,2,x\x20\x20\x20\x20\x20\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\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QualifierRegex(\"B\")\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\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20A,B,2,x\x20\x20\x20\x20\x20\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\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|\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\x20A,A,1,w,labels:[foo]\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\ + \x20A,B,2,x,labels:[foo]\x20\x20//\x20could\x20be\x20switched\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\x20A,B,2,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20//\x20could\x20be\x20switched\n\n\x20Despite\x20being\ + \x20excluded\x20by\x20the\x20qualifier\x20filter,\x20a\x20copy\x20of\x20\ + every\x20cell\n\x20that\x20reaches\x20the\x20sink\x20is\x20present\x20in\ + \x20the\x20final\x20result.\n\n\x20As\x20with\x20an\x20[Interleave][goog\ + le.bigtable.v1.RowFilter.Interleave],\n\x20duplicate\x20cells\x20are\x20\ + possible,\x20and\x20appear\x20in\x20an\x20unspecified\x20mutual\x20order\ + .\n\x20In\x20this\x20case\x20we\x20have\x20a\x20duplicate\x20with\x20col\ + umn\x20\"A:B\"\x20and\x20timestamp\x202,\n\x20because\x20one\x20copy\x20\ + passed\x20through\x20the\x20all\x20filter\x20while\x20the\x20other\x20wa\ + s\n\x20passed\x20through\x20the\x20label\x20and\x20sink.\x20Note\x20that\ + \x20one\x20copy\x20has\x20label\x20\"foo\",\n\x20while\x20the\x20other\ + \x20does\x20not.\n\n\x20Cannot\x20be\x20used\x20within\x20the\x20`predic\ + ate_filter`,\x20`true_filter`,\x20or\n\x20`false_filter`\x20of\x20a\x20[\ + Condition][google.bigtable.v1.RowFilter.Condition].\n\n\r\n\x05\x04\t\ + \x02\x03\x05\x12\x04\xc9\x02\x04\x08\n\r\n\x05\x04\t\x02\x03\x01\x12\x04\ + \xc9\x02\t\r\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xc9\x02\x10\x12\n\x8a\ + \x01\n\x04\x04\t\x02\x04\x12\x04\xcd\x02\x04\x1e\x1a|\x20Matches\x20all\ + \x20cells,\x20regardless\x20of\x20input.\x20Functionally\x20equivalent\ + \x20to\n\x20leaving\x20`filter`\x20unset,\x20but\x20included\x20for\x20c\ + ompleteness.\n\n\r\n\x05\x04\t\x02\x04\x05\x12\x04\xcd\x02\x04\x08\n\r\n\ + \x05\x04\t\x02\x04\x01\x12\x04\xcd\x02\t\x18\n\r\n\x05\x04\t\x02\x04\x03\ + \x12\x04\xcd\x02\x1b\x1d\nw\n\x04\x04\t\x02\x05\x12\x04\xd1\x02\x04\x1f\ + \x1ai\x20Does\x20not\x20match\x20any\x20cells,\x20regardless\x20of\x20in\ + put.\x20Useful\x20for\x20temporarily\n\x20disabling\x20just\x20part\x20o\ + f\x20a\x20filter.\n\n\r\n\x05\x04\t\x02\x05\x05\x12\x04\xd1\x02\x04\x08\ + \n\r\n\x05\x04\t\x02\x05\x01\x12\x04\xd1\x02\t\x19\n\r\n\x05\x04\t\x02\ + \x05\x03\x12\x04\xd1\x02\x1c\x1e\n\xa4\x03\n\x04\x04\t\x02\x06\x12\x04\ + \xda\x02\x04#\x1a\x95\x03\x20Matches\x20only\x20cells\x20from\x20rows\ + \x20whose\x20keys\x20satisfy\x20the\x20given\x20RE2\x20regex.\x20In\n\ + \x20other\x20words,\x20passes\x20through\x20the\x20entire\x20row\x20when\ + \x20the\x20key\x20matches,\x20and\n\x20otherwise\x20produces\x20an\x20em\ + pty\x20row.\n\x20Note\x20that,\x20since\x20row\x20keys\x20can\x20contain\ + \x20arbitrary\x20bytes,\x20the\x20'\\C'\x20escape\n\x20sequence\x20must\ + \x20be\x20used\x20if\x20a\x20true\x20wildcard\x20is\x20desired.\x20The\ + \x20'.'\x20character\n\x20will\x20not\x20match\x20the\x20new\x20line\x20\ + character\x20'\\n',\x20which\x20may\x20be\x20present\x20in\x20a\n\x20bin\ + ary\x20key.\n\n\r\n\x05\x04\t\x02\x06\x05\x12\x04\xda\x02\x04\t\n\r\n\ + \x05\x04\t\x02\x06\x01\x12\x04\xda\x02\n\x1e\n\r\n\x05\x04\t\x02\x06\x03\ + \x12\x04\xda\x02!\"\ny\n\x04\x04\t\x02\x07\x12\x04\xde\x02\x04\"\x1ak\ + \x20Matches\x20all\x20cells\x20from\x20a\x20row\x20with\x20probability\ + \x20p,\x20and\x20matches\x20no\x20cells\n\x20from\x20the\x20row\x20with\ + \x20probability\x201-p.\n\n\r\n\x05\x04\t\x02\x07\x05\x12\x04\xde\x02\ + \x04\n\n\r\n\x05\x04\t\x02\x07\x01\x12\x04\xde\x02\x0b\x1c\n\r\n\x05\x04\ + \t\x02\x07\x03\x12\x04\xde\x02\x1f!\n\xf0\x02\n\x04\x04\t\x02\x08\x12\ + \x04\xe6\x02\x04(\x1a\xe1\x02\x20Matches\x20only\x20cells\x20from\x20col\ + umns\x20whose\x20families\x20satisfy\x20the\x20given\x20RE2\n\x20regex.\ + \x20For\x20technical\x20reasons,\x20the\x20regex\x20must\x20not\x20conta\ + in\x20the\x20':'\n\x20character,\x20even\x20if\x20it\x20is\x20not\x20bei\ + ng\x20used\x20as\x20a\x20literal.\n\x20Note\x20that,\x20since\x20column\ + \x20families\x20cannot\x20contain\x20the\x20new\x20line\x20character\n\ + \x20'\\n',\x20it\x20is\x20sufficient\x20to\x20use\x20'.'\x20as\x20a\x20f\ + ull\x20wildcard\x20when\x20matching\n\x20column\x20family\x20names.\n\n\ + \r\n\x05\x04\t\x02\x08\x05\x12\x04\xe6\x02\x04\n\n\r\n\x05\x04\t\x02\x08\ + \x01\x12\x04\xe6\x02\x0b#\n\r\n\x05\x04\t\x02\x08\x03\x12\x04\xe6\x02&'\ + \n\xd2\x02\n\x04\x04\t\x02\t\x12\x04\xee\x02\x04,\x1a\xc3\x02\x20Matches\ + \x20only\x20cells\x20from\x20columns\x20whose\x20qualifiers\x20satisfy\ + \x20the\x20given\x20RE2\n\x20regex.\n\x20Note\x20that,\x20since\x20colum\ + n\x20qualifiers\x20can\x20contain\x20arbitrary\x20bytes,\x20the\x20'\\C'\ + \n\x20escape\x20sequence\x20must\x20be\x20used\x20if\x20a\x20true\x20wil\ + dcard\x20is\x20desired.\x20The\x20'.'\n\x20character\x20will\x20not\x20m\ + atch\x20the\x20new\x20line\x20character\x20'\\n',\x20which\x20may\x20be\ + \n\x20present\x20in\x20a\x20binary\x20qualifier.\n\n\r\n\x05\x04\t\x02\t\ + \x05\x12\x04\xee\x02\x04\t\n\r\n\x05\x04\t\x02\t\x01\x12\x04\xee\x02\n'\ + \n\r\n\x05\x04\t\x02\t\x03\x12\x04\xee\x02*+\nG\n\x04\x04\t\x02\n\x12\ + \x04\xf1\x02\x04(\x1a9\x20Matches\x20only\x20cells\x20from\x20columns\ + \x20within\x20the\x20given\x20range.\n\n\r\n\x05\x04\t\x02\n\x06\x12\x04\ + \xf1\x02\x04\x0f\n\r\n\x05\x04\t\x02\n\x01\x12\x04\xf1\x02\x10#\n\r\n\ + \x05\x04\t\x02\n\x03\x12\x04\xf1\x02&'\nJ\n\x04\x04\t\x02\x0b\x12\x04\ + \xf4\x02\x04.\x1a<\x20Matches\x20only\x20cells\x20with\x20timestamps\x20\ + within\x20the\x20given\x20range.\n\n\r\n\x05\x04\t\x02\x0b\x06\x12\x04\ + \xf4\x02\x04\x12\n\r\n\x05\x04\t\x02\x0b\x01\x12\x04\xf4\x02\x13)\n\r\n\ + \x05\x04\t\x02\x0b\x03\x12\x04\xf4\x02,-\n\xc3\x02\n\x04\x04\t\x02\x0c\ + \x12\x04\xfb\x02\x04!\x1a\xb4\x02\x20Matches\x20only\x20cells\x20with\ + \x20values\x20that\x20satisfy\x20the\x20given\x20regular\x20expression.\ + \n\x20Note\x20that,\x20since\x20cell\x20values\x20can\x20contain\x20arbi\ + trary\x20bytes,\x20the\x20'\\C'\x20escape\n\x20sequence\x20must\x20be\ + \x20used\x20if\x20a\x20true\x20wildcard\x20is\x20desired.\x20The\x20'.'\ + \x20character\n\x20will\x20not\x20match\x20the\x20new\x20line\x20charact\ + er\x20'\\n',\x20which\x20may\x20be\x20present\x20in\x20a\n\x20binary\x20\ + value.\n\n\r\n\x05\x04\t\x02\x0c\x05\x12\x04\xfb\x02\x04\t\n\r\n\x05\x04\ + \t\x02\x0c\x01\x12\x04\xfb\x02\n\x1c\n\r\n\x05\x04\t\x02\x0c\x03\x12\x04\ + \xfb\x02\x1f\x20\nP\n\x04\x04\t\x02\r\x12\x04\xfe\x02\x04'\x1aB\x20Match\ + es\x20only\x20cells\x20with\x20values\x20that\x20fall\x20within\x20the\ + \x20given\x20range.\n\n\r\n\x05\x04\t\x02\r\x06\x12\x04\xfe\x02\x04\x0e\ + \n\r\n\x05\x04\t\x02\r\x01\x12\x04\xfe\x02\x0f!\n\r\n\x05\x04\t\x02\r\ + \x03\x12\x04\xfe\x02$&\n\xcc\x01\n\x04\x04\t\x02\x0e\x12\x04\x83\x03\x04\ + +\x1a\xbd\x01\x20Skips\x20the\x20first\x20N\x20cells\x20of\x20each\x20ro\ + w,\x20matching\x20all\x20subsequent\x20cells.\n\x20If\x20duplicate\x20ce\ + lls\x20are\x20present,\x20as\x20is\x20possible\x20when\x20using\x20an\ + \x20Interleave,\n\x20each\x20copy\x20of\x20the\x20cell\x20is\x20counted\ + \x20separately.\n\n\r\n\x05\x04\t\x02\x0e\x05\x12\x04\x83\x03\x04\t\n\r\ + \n\x05\x04\t\x02\x0e\x01\x12\x04\x83\x03\n%\n\r\n\x05\x04\t\x02\x0e\x03\ + \x12\x04\x83\x03(*\n\xb4\x01\n\x04\x04\t\x02\x0f\x12\x04\x88\x03\x04*\ + \x1a\xa5\x01\x20Matches\x20only\x20the\x20first\x20N\x20cells\x20of\x20e\ + ach\x20row.\n\x20If\x20duplicate\x20cells\x20are\x20present,\x20as\x20is\ + \x20possible\x20when\x20using\x20an\x20Interleave,\n\x20each\x20copy\x20\ + of\x20the\x20cell\x20is\x20counted\x20separately.\n\n\r\n\x05\x04\t\x02\ + \x0f\x05\x12\x04\x88\x03\x04\t\n\r\n\x05\x04\t\x02\x0f\x01\x12\x04\x88\ + \x03\n$\n\r\n\x05\x04\t\x02\x0f\x03\x12\x04\x88\x03')\n\xf3\x02\n\x04\ + \x04\t\x02\x10\x12\x04\x90\x03\x04-\x1a\xe4\x02\x20Matches\x20only\x20th\ + e\x20most\x20recent\x20N\x20cells\x20within\x20each\x20column.\x20For\ + \x20example,\n\x20if\x20N=2,\x20this\x20filter\x20would\x20match\x20colu\ + mn\x20\"foo:bar\"\x20at\x20timestamps\x2010\x20and\x209,\n\x20skip\x20al\ + l\x20earlier\x20cells\x20in\x20\"foo:bar\",\x20and\x20then\x20begin\x20m\ + atching\x20again\x20in\n\x20column\x20\"foo:bar2\".\n\x20If\x20duplicate\ + \x20cells\x20are\x20present,\x20as\x20is\x20possible\x20when\x20using\ + \x20an\x20Interleave,\n\x20each\x20copy\x20of\x20the\x20cell\x20is\x20co\ + unted\x20separately.\n\n\r\n\x05\x04\t\x02\x10\x05\x12\x04\x90\x03\x04\t\ + \n\r\n\x05\x04\t\x02\x10\x01\x12\x04\x90\x03\n'\n\r\n\x05\x04\t\x02\x10\ + \x03\x12\x04\x90\x03*,\nA\n\x04\x04\t\x02\x11\x12\x04\x93\x03\x04&\x1a3\ + \x20Replaces\x20each\x20cell's\x20value\x20with\x20the\x20empty\x20strin\ + g.\n\n\r\n\x05\x04\t\x02\x11\x05\x12\x04\x93\x03\x04\x08\n\r\n\x05\x04\t\ + \x02\x11\x01\x12\x04\x93\x03\t\x20\n\r\n\x05\x04\t\x02\x11\x03\x12\x04\ + \x93\x03#%\n\xf5\x04\n\x04\x04\t\x02\x12\x12\x04\xa2\x03\x04(\x1a\xe6\ + \x04\x20Applies\x20the\x20given\x20label\x20to\x20all\x20cells\x20in\x20\ + the\x20output\x20row.\x20This\x20allows\n\x20the\x20client\x20to\x20dete\ + rmine\x20which\x20results\x20were\x20produced\x20from\x20which\x20part\ + \x20of\n\x20the\x20filter.\n\n\x20Values\x20must\x20be\x20at\x20most\x20\ + 15\x20characters\x20in\x20length,\x20and\x20match\x20the\x20RE2\n\x20pat\ + tern\x20[a-z0-9\\\\-]+\n\n\x20Due\x20to\x20a\x20technical\x20limitation,\ + \x20it\x20is\x20not\x20currently\x20possible\x20to\x20apply\n\x20multipl\ + e\x20labels\x20to\x20a\x20cell.\x20As\x20a\x20result,\x20a\x20Chain\x20m\ + ay\x20have\x20no\x20more\x20than\n\x20one\x20sub-filter\x20which\x20cont\ + ains\x20a\x20apply_label_transformer.\x20It\x20is\x20okay\x20for\n\x20an\ + \x20Interleave\x20to\x20contain\x20multiple\x20apply_label_transformers,\ + \x20as\x20they\x20will\n\x20be\x20applied\x20to\x20separate\x20copies\ + \x20of\x20the\x20input.\x20This\x20may\x20be\x20relaxed\x20in\x20the\n\ + \x20future.\n\n\r\n\x05\x04\t\x02\x12\x05\x12\x04\xa2\x03\x04\n\n\r\n\ + \x05\x04\t\x02\x12\x01\x12\x04\xa2\x03\x0b\"\n\r\n\x05\x04\t\x02\x12\x03\ + \x12\x04\xa2\x03%'\nR\n\x02\x04\n\x12\x06\xa7\x03\0\xe4\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\xa7\x03\ + \x08\x10\nH\n\x04\x04\n\x03\0\x12\x06\xa9\x03\x02\xbb\x03\x03\x1a8\x20A\ + \x20Mutation\x20which\x20sets\x20the\x20value\x20of\x20the\x20specified\ + \x20cell.\n\n\r\n\x05\x04\n\x03\0\x01\x12\x04\xa9\x03\n\x11\nk\n\x06\x04\ + \n\x03\0\x02\0\x12\x04\xac\x03\x04\x1b\x1a[\x20The\x20name\x20of\x20the\ + \x20family\x20into\x20which\x20new\x20data\x20should\x20be\x20written.\n\ + \x20Must\x20match\x20[-_.a-zA-Z0-9]+\n\n\x11\n\x07\x04\n\x03\0\x02\0\x04\ + \x12\x06\xac\x03\x04\xa9\x03\x13\n\x0f\n\x07\x04\n\x03\0\x02\0\x05\x12\ + \x04\xac\x03\x04\n\n\x0f\n\x07\x04\n\x03\0\x02\0\x01\x12\x04\xac\x03\x0b\ + \x16\n\x0f\n\x07\x04\n\x03\0\x02\0\x03\x12\x04\xac\x03\x19\x1a\n\x89\x01\ + \n\x06\x04\n\x03\0\x02\x01\x12\x04\xb0\x03\x04\x1f\x1ay\x20The\x20qualif\ + ier\x20of\x20the\x20column\x20into\x20which\x20new\x20data\x20should\x20\ + be\x20written.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\x20\ + the\x20empty\x20string.\n\n\x11\n\x07\x04\n\x03\0\x02\x01\x04\x12\x06\ + \xb0\x03\x04\xac\x03\x1b\n\x0f\n\x07\x04\n\x03\0\x02\x01\x05\x12\x04\xb0\ + \x03\x04\t\n\x0f\n\x07\x04\n\x03\0\x02\x01\x01\x12\x04\xb0\x03\n\x1a\n\ + \x0f\n\x07\x04\n\x03\0\x02\x01\x03\x12\x04\xb0\x03\x1d\x1e\n\xd3\x02\n\ + \x06\x04\n\x03\0\x02\x02\x12\x04\xb7\x03\x04\x1f\x1a\xc2\x02\x20The\x20t\ + imestamp\x20of\x20the\x20cell\x20into\x20which\x20new\x20data\x20should\ + \x20be\x20written.\n\x20Use\x20-1\x20for\x20current\x20Bigtable\x20serve\ + r\x20time.\n\x20Otherwise,\x20the\x20client\x20should\x20set\x20this\x20\ + value\x20itself,\x20noting\x20that\x20the\n\x20default\x20value\x20is\ + \x20a\x20timestamp\x20of\x20zero\x20if\x20the\x20field\x20is\x20left\x20\ + unspecified.\n\x20Values\x20must\x20match\x20the\x20\"granularity\"\x20o\ + f\x20the\x20table\x20(e.g.\x20micros,\x20millis).\n\n\x11\n\x07\x04\n\ + \x03\0\x02\x02\x04\x12\x06\xb7\x03\x04\xb0\x03\x1f\n\x0f\n\x07\x04\n\x03\ + \0\x02\x02\x05\x12\x04\xb7\x03\x04\t\n\x0f\n\x07\x04\n\x03\0\x02\x02\x01\ + \x12\x04\xb7\x03\n\x1a\n\x0f\n\x07\x04\n\x03\0\x02\x02\x03\x12\x04\xb7\ + \x03\x1d\x1e\nB\n\x06\x04\n\x03\0\x02\x03\x12\x04\xba\x03\x04\x14\x1a2\ + \x20The\x20value\x20to\x20be\x20written\x20into\x20the\x20specified\x20c\ + ell.\n\n\x11\n\x07\x04\n\x03\0\x02\x03\x04\x12\x06\xba\x03\x04\xb7\x03\ + \x1f\n\x0f\n\x07\x04\n\x03\0\x02\x03\x05\x12\x04\xba\x03\x04\t\n\x0f\n\ + \x07\x04\n\x03\0\x02\x03\x01\x12\x04\xba\x03\n\x0f\n\x0f\n\x07\x04\n\x03\ + \0\x02\x03\x03\x12\x04\xba\x03\x12\x13\n\x8d\x01\n\x04\x04\n\x03\x01\x12\ + \x06\xbf\x03\x02\xca\x03\x03\x1a}\x20A\x20Mutation\x20which\x20deletes\ + \x20cells\x20from\x20the\x20specified\x20column,\x20optionally\n\x20rest\ + ricting\x20the\x20deletions\x20to\x20a\x20given\x20timestamp\x20range.\n\ + \n\r\n\x05\x04\n\x03\x01\x01\x12\x04\xbf\x03\n\x1a\nh\n\x06\x04\n\x03\ + \x01\x02\0\x12\x04\xc2\x03\x04\x1b\x1aX\x20The\x20name\x20of\x20the\x20f\ + amily\x20from\x20which\x20cells\x20should\x20be\x20deleted.\n\x20Must\ + \x20match\x20[-_.a-zA-Z0-9]+\n\n\x11\n\x07\x04\n\x03\x01\x02\0\x04\x12\ + \x06\xc2\x03\x04\xbf\x03\x1c\n\x0f\n\x07\x04\n\x03\x01\x02\0\x05\x12\x04\ + \xc2\x03\x04\n\n\x0f\n\x07\x04\n\x03\x01\x02\0\x01\x12\x04\xc2\x03\x0b\ + \x16\n\x0f\n\x07\x04\n\x03\x01\x02\0\x03\x12\x04\xc2\x03\x19\x1a\n\x86\ + \x01\n\x06\x04\n\x03\x01\x02\x01\x12\x04\xc6\x03\x04\x1f\x1av\x20The\x20\ + qualifier\x20of\x20the\x20column\x20from\x20which\x20cells\x20should\x20\ + be\x20deleted.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\x20\ + the\x20empty\x20string.\n\n\x11\n\x07\x04\n\x03\x01\x02\x01\x04\x12\x06\ + \xc6\x03\x04\xc2\x03\x1b\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x05\x12\x04\ + \xc6\x03\x04\t\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x01\x12\x04\xc6\x03\n\ + \x1a\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x03\x12\x04\xc6\x03\x1d\x1e\nO\n\ + \x06\x04\n\x03\x01\x02\x02\x12\x04\xc9\x03\x04\"\x1a?\x20The\x20range\ + \x20of\x20timestamps\x20within\x20which\x20cells\x20should\x20be\x20dele\ + ted.\n\n\x11\n\x07\x04\n\x03\x01\x02\x02\x04\x12\x06\xc9\x03\x04\xc6\x03\ + \x1f\n\x0f\n\x07\x04\n\x03\x01\x02\x02\x06\x12\x04\xc9\x03\x04\x12\n\x0f\ + \n\x07\x04\n\x03\x01\x02\x02\x01\x12\x04\xc9\x03\x13\x1d\n\x0f\n\x07\x04\ + \n\x03\x01\x02\x02\x03\x12\x04\xc9\x03\x20!\nV\n\x04\x04\n\x03\x02\x12\ + \x06\xcd\x03\x02\xd1\x03\x03\x1aF\x20A\x20Mutation\x20which\x20deletes\ + \x20all\x20cells\x20from\x20the\x20specified\x20column\x20family.\n\n\r\ + \n\x05\x04\n\x03\x02\x01\x12\x04\xcd\x03\n\x1a\nh\n\x06\x04\n\x03\x02\ + \x02\0\x12\x04\xd0\x03\x04\x1b\x1aX\x20The\x20name\x20of\x20the\x20famil\ + y\x20from\x20which\x20cells\x20should\x20be\x20deleted.\n\x20Must\x20mat\ + ch\x20[-_.a-zA-Z0-9]+\n\n\x11\n\x07\x04\n\x03\x02\x02\0\x04\x12\x06\xd0\ + \x03\x04\xcd\x03\x1c\n\x0f\n\x07\x04\n\x03\x02\x02\0\x05\x12\x04\xd0\x03\ + \x04\n\n\x0f\n\x07\x04\n\x03\x02\x02\0\x01\x12\x04\xd0\x03\x0b\x16\n\x0f\ + \n\x07\x04\n\x03\x02\x02\0\x03\x12\x04\xd0\x03\x19\x1a\nK\n\x04\x04\n\ + \x03\x03\x12\x04\xd4\x03\x02\x1a\x1a=\x20A\x20Mutation\x20which\x20delet\ + es\x20all\x20cells\x20from\x20the\x20containing\x20row.\n\n\r\n\x05\x04\ + \n\x03\x03\x01\x12\x04\xd4\x03\n\x17\n@\n\x04\x04\n\x08\0\x12\x06\xd7\ + \x03\x02\xe3\x03\x03\x1a0\x20Which\x20of\x20the\x20possible\x20Mutation\ + \x20types\x20to\x20apply.\n\n\r\n\x05\x04\n\x08\0\x01\x12\x04\xd7\x03\ + \x08\x10\n#\n\x04\x04\n\x02\0\x12\x04\xd9\x03\x04\x19\x1a\x15\x20Set\x20\ + a\x20cell's\x20value.\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\xd9\x03\x04\ + \x0b\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xd9\x03\x0c\x14\n\r\n\x05\x04\n\ + \x02\0\x03\x12\x04\xd9\x03\x17\x18\n,\n\x04\x04\n\x02\x01\x12\x04\xdc\ + \x03\x04,\x1a\x1e\x20Deletes\x20cells\x20from\x20a\x20column.\n\n\r\n\ + \x05\x04\n\x02\x01\x06\x12\x04\xdc\x03\x04\x14\n\r\n\x05\x04\n\x02\x01\ + \x01\x12\x04\xdc\x03\x15'\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xdc\x03*+\ + \n3\n\x04\x04\n\x02\x02\x12\x04\xdf\x03\x04,\x1a%\x20Deletes\x20cells\ + \x20from\x20a\x20column\x20family.\n\n\r\n\x05\x04\n\x02\x02\x06\x12\x04\ + \xdf\x03\x04\x14\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xdf\x03\x15'\n\r\n\ + \x05\x04\n\x02\x02\x03\x12\x04\xdf\x03*+\n2\n\x04\x04\n\x02\x03\x12\x04\ + \xe2\x03\x04&\x1a$\x20Deletes\x20cells\x20from\x20the\x20entire\x20row.\ + \n\n\r\n\x05\x04\n\x02\x03\x06\x12\x04\xe2\x03\x04\x11\n\r\n\x05\x04\n\ + \x02\x03\x01\x12\x04\xe2\x03\x12!\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\ + \xe2\x03$%\nm\n\x02\x04\x0b\x12\x06\xe8\x03\0\x80\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\xe8\x03\x08\x1b\nt\n\x04\x04\x0b\x02\0\x12\x04\xeb\x03\ + \x02\x19\x1af\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\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\xeb\x03\x02\ + \xe8\x03\x1d\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xeb\x03\x02\x08\n\r\n\ + \x05\x04\x0b\x02\0\x01\x12\x04\xeb\x03\t\x14\n\r\n\x05\x04\x0b\x02\0\x03\ + \x12\x04\xeb\x03\x17\x18\n\x94\x01\n\x04\x04\x0b\x02\x01\x12\x04\xf0\x03\ + \x02\x1d\x1a\x85\x01\x20The\x20qualifier\x20of\x20the\x20column\x20to\ + \x20which\x20the\x20read/modify/write\x20should\x20be\n\x20applied.\n\ + \x20Can\x20be\x20any\x20byte\x20string,\x20including\x20the\x20empty\x20\ + string.\n\n\x0f\n\x05\x04\x0b\x02\x01\x04\x12\x06\xf0\x03\x02\xeb\x03\ + \x19\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xf0\x03\x02\x07\n\r\n\x05\x04\ + \x0b\x02\x01\x01\x12\x04\xf0\x03\x08\x18\n\r\n\x05\x04\x0b\x02\x01\x03\ + \x12\x04\xf0\x03\x1b\x1c\nj\n\x04\x04\x0b\x08\0\x12\x06\xf4\x03\x02\xff\ + \x03\x03\x1aZ\x20The\x20rule\x20used\x20to\x20determine\x20the\x20column\ + 's\x20new\x20latest\x20value\x20from\x20its\x20current\n\x20latest\x20va\ + lue.\n\n\r\n\x05\x04\x0b\x08\0\x01\x12\x04\xf4\x03\x08\x0c\n\xab\x01\n\ + \x04\x04\x0b\x02\x02\x12\x04\xf8\x03\x04\x1b\x1a\x9c\x01\x20Rule\x20spec\ + ifying\x20that\x20\"append_value\"\x20be\x20appended\x20to\x20the\x20exi\ + sting\x20value.\n\x20If\x20the\x20targeted\x20cell\x20is\x20unset,\x20it\ + \x20will\x20be\x20treated\x20as\x20containing\x20the\n\x20empty\x20strin\ + g.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\xf8\x03\x04\t\n\r\n\x05\x04\ + \x0b\x02\x02\x01\x12\x04\xf8\x03\n\x16\n\r\n\x05\x04\x0b\x02\x02\x03\x12\ + \x04\xf8\x03\x19\x1a\n\xb3\x02\n\x04\x04\x0b\x02\x03\x12\x04\xfe\x03\x04\ + \x1f\x1a\xa4\x02\x20Rule\x20specifying\x20that\x20\"increment_amount\"\ + \x20be\x20added\x20to\x20the\x20existing\x20value.\n\x20If\x20the\x20tar\ + geted\x20cell\x20is\x20unset,\x20it\x20will\x20be\x20treated\x20as\x20co\ + ntaining\x20a\x20zero.\n\x20Otherwise,\x20the\x20targeted\x20cell\x20mus\ + t\x20contain\x20an\x208-byte\x20value\x20(interpreted\n\x20as\x20a\x2064\ + -bit\x20big-endian\x20signed\x20integer),\x20or\x20the\x20entire\x20requ\ + est\x20will\x20fail.\n\n\r\n\x05\x04\x0b\x02\x03\x05\x12\x04\xfe\x03\x04\ + \t\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\xfe\x03\n\x1a\n\r\n\x05\x04\x0b\ + \x02\x03\x03\x12\x04\xfe\x03\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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service.rs new file mode 100644 index 0000000000..0f20a38d50 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service.rs @@ -0,0 +1,134 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/v1/bigtable_service.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n)google/bigtable/v1/bigtable_service.proto\x12\x12google.bigtable.v1\ + \x1a\x1cgoogle/api/annotations.proto\x1a&google/bigtable/v1/bigtable_dat\ + a.proto\x1a2google/bigtable/v1/bigtable_service_messages.proto\x1a\x1bgo\ + ogle/protobuf/empty.proto2\xdd\x08\n\x0fBigtableService\x12\xa5\x01\n\ + \x08ReadRows\x12#.google.bigtable.v1.ReadRowsRequest\x1a$.google.bigtabl\ + e.v1.ReadRowsResponse\"L\x82\xd3\xe4\x93\x02F\"A/v1/{table_name=projects\ + /*/zones/*/clusters/*/tables/*}/rows:read:\x01*0\x01\x12\xb7\x01\n\rSamp\ + leRowKeys\x12(.google.bigtable.v1.SampleRowKeysRequest\x1a).google.bigta\ + ble.v1.SampleRowKeysResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{table_name\ + =projects/*/zones/*/clusters/*/tables/*}/rows:sampleKeys0\x01\x12\xa3\ + \x01\n\tMutateRow\x12$.google.bigtable.v1.MutateRowRequest\x1a\x16.googl\ + e.protobuf.Empty\"X\x82\xd3\xe4\x93\x02R\"M/v1/{table_name=projects/*/zo\ + nes/*/clusters/*/tables/*}/rows/{row_key}:mutate:\x01*\x12\xaa\x01\n\nMu\ + tateRows\x12%.google.bigtable.v1.MutateRowsRequest\x1a&.google.bigtable.\ + v1.MutateRowsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{table_name=projects\ + /*/zones/*/clusters/*/tables/*}:mutateRows:\x01*\x12\xd2\x01\n\x11CheckA\ + ndMutateRow\x12,.google.bigtable.v1.CheckAndMutateRowRequest\x1a-.google\ + .bigtable.v1.CheckAndMutateRowResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{ta\ + ble_name=projects/*/zones/*/clusters/*/tables/*}/rows/{row_key}:checkAnd\ + Mutate:\x01*\x12\xbf\x01\n\x12ReadModifyWriteRow\x12-.google.bigtable.v1\ + .ReadModifyWriteRowRequest\x1a\x17.google.bigtable.v1.Row\"a\x82\xd3\xe4\ + \x93\x02[\"V/v1/{table_name=projects/*/zones/*/clusters/*/tables/*}/rows\ + /{row_key}:readModifyWrite:\x01*Bp\n\x16com.google.bigtable.v1B\x15Bigta\ + bleServicesProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v1\ + ;bigtable\x88\x01\x01J\xb1\x13\n\x06\x12\x04\x0e\0[\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\ + \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\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\x08\n\x01\x08\x12\x03\x17\0Q\ + \n\t\n\x02\x08\x0b\x12\x03\x17\0Q\n\x08\n\x01\x08\x12\x03\x18\0$\n\t\n\ + \x02\x08\x11\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\06\n\t\n\x02\x08\x08\ + \x12\x03\x1a\06\n\x08\n\x01\x08\x12\x03\x1b\0/\n\t\n\x02\x08\x01\x12\x03\ + \x1b\0/\nI\n\x02\x06\0\x12\x04\x1e\0[\x01\x1a=\x20Service\x20for\x20read\ + ing\x20from\x20and\x20writing\x20to\x20existing\x20Bigtables.\n\n\n\n\ + \x03\x06\0\x01\x12\x03\x1e\x08\x17\n\xf5\x01\n\x04\x06\0\x02\0\x12\x04#\ + \x02(\x03\x1a\xe6\x01\x20Streams\x20back\x20the\x20contents\x20of\x20all\ + \x20requested\x20rows,\x20optionally\x20applying\n\x20the\x20same\x20Rea\ + der\x20filter\x20to\x20each.\x20Depending\x20on\x20their\x20size,\x20row\ + s\x20may\x20be\n\x20broken\x20up\x20across\x20multiple\x20responses,\x20\ + but\x20atomicity\x20of\x20each\x20row\x20will\x20still\n\x20be\x20preser\ + ved.\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$\x04\ + '\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04$\x04'\x06\n\xed\ + \x01\n\x04\x06\0\x02\x01\x12\x04.\x023\x03\x1a\xde\x01\x20Returns\x20a\ + \x20sample\x20of\x20row\x20keys\x20in\x20the\x20table.\x20The\x20returne\ + d\x20row\x20keys\x20will\n\x20delimit\x20contiguous\x20sections\x20of\ + \x20the\x20table\x20of\x20approximately\x20equal\x20size,\n\x20which\x20\ + can\x20be\x20used\x20to\x20break\x20up\x20the\x20data\x20for\x20distribu\ + ted\x20tasks\x20like\n\x20mapreduces.\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\x06\x12\x03/\x0f\x15\n\x0c\n\x05\x06\0\x02\x01\x03\ + \x12\x03/\x16+\n\r\n\x05\x06\0\x02\x01\x04\x12\x040\x042\x06\n\x11\n\t\ + \x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x040\x042\x06\n\x87\x01\n\x04\x06\0\ + \x02\x02\x12\x047\x02<\x03\x1ay\x20Mutates\x20a\x20row\x20atomically.\ + \x20Cells\x20already\x20present\x20in\x20the\x20row\x20are\x20left\n\x20\ + unchanged\x20unless\x20explicitly\x20changed\x20by\x20'mutation'.\n\n\ + \x0c\n\x05\x06\0\x02\x02\x01\x12\x037\x06\x0f\n\x0c\n\x05\x06\0\x02\x02\ + \x02\x12\x037\x10\x20\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x037+@\n\r\n\x05\ + \x06\0\x02\x02\x04\x12\x048\x04;\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\ + \xbc\"\x12\x048\x04;\x06\n\xa0\x01\n\x04\x06\0\x02\x03\x12\x04A\x02F\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\x03A\x06\x10\n\x0c\n\x05\ + \x06\0\x02\x03\x02\x12\x03A\x11\"\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03A\ + -?\n\r\n\x05\x06\0\x02\x03\x04\x12\x04B\x04E\x06\n\x11\n\t\x06\0\x02\x03\ + \x04\xb0\xca\xbc\"\x12\x04B\x04E\x06\nZ\n\x04\x06\0\x02\x04\x12\x04I\x02\ + O\x03\x1aL\x20Mutates\x20a\x20row\x20atomically\x20based\x20on\x20the\ + \x20output\x20of\x20a\x20predicate\x20Reader\x20filter.\n\n\x0c\n\x05\ + \x06\0\x02\x04\x01\x12\x03I\x06\x17\n\x0c\n\x05\x06\0\x02\x04\x02\x12\ + \x03I\x180\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03J\x0f(\n\r\n\x05\x06\0\ + \x02\x04\x04\x12\x04K\x04N\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\ + \x12\x04K\x04N\x06\n\x9b\x02\n\x04\x06\0\x02\x05\x12\x04U\x02Z\x03\x1a\ + \x8c\x02\x20Modifies\x20a\x20row\x20atomically,\x20reading\x20the\x20lat\ + est\x20existing\x20timestamp/value\x20from\n\x20the\x20specified\x20colu\ + mns\x20and\x20writing\x20a\x20new\x20value\x20at\n\x20max(existing\x20ti\ + mestamp,\x20current\x20server\x20time)\x20based\x20on\x20pre-defined\n\ + \x20read/modify/write\x20rules.\x20Returns\x20the\x20new\x20contents\x20\ + of\x20all\x20modified\x20cells.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03U\ + \x06\x18\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03U\x192\n\x0c\n\x05\x06\0\ + \x02\x05\x03\x12\x03U=@\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\x06b\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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_grpc.rs new file mode 100644 index 0000000000..c59a997504 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_grpc.rs @@ -0,0 +1,193 @@ +// 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_BIGTABLE_SERVICE_READ_ROWS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::ServerStreaming, + name: "/google.bigtable.v1.BigtableService/ReadRows", + 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_SERVICE_SAMPLE_ROW_KEYS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::ServerStreaming, + name: "/google.bigtable.v1.BigtableService/SampleRowKeys", + 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_SERVICE_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.v1.BigtableService/MutateRow", + 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_SERVICE_MUTATE_ROWS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.v1.BigtableService/MutateRows", + 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_SERVICE_CHECK_AND_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.v1.BigtableService/CheckAndMutateRow", + 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_SERVICE_READ_MODIFY_WRITE_ROW: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.v1.BigtableService/ReadModifyWriteRow", + 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 BigtableServiceClient { + client: ::grpcio::Client, +} + +impl BigtableServiceClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + BigtableServiceClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn read_rows_opt(&self, req: &super::bigtable_service_messages::ReadRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.client.server_streaming(&METHOD_BIGTABLE_SERVICE_READ_ROWS, req, opt) + } + + pub fn read_rows(&self, req: &super::bigtable_service_messages::ReadRowsRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.read_rows_opt(req, ::grpcio::CallOption::default()) + } + + pub fn sample_row_keys_opt(&self, req: &super::bigtable_service_messages::SampleRowKeysRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.client.server_streaming(&METHOD_BIGTABLE_SERVICE_SAMPLE_ROW_KEYS, req, opt) + } + + pub fn sample_row_keys(&self, req: &super::bigtable_service_messages::SampleRowKeysRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.sample_row_keys_opt(req, ::grpcio::CallOption::default()) + } + + pub fn mutate_row_opt(&self, req: &super::bigtable_service_messages::MutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_SERVICE_MUTATE_ROW, req, opt) + } + + pub fn mutate_row(&self, req: &super::bigtable_service_messages::MutateRowRequest) -> ::grpcio::Result { + self.mutate_row_opt(req, ::grpcio::CallOption::default()) + } + + pub fn mutate_row_async_opt(&self, req: &super::bigtable_service_messages::MutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_SERVICE_MUTATE_ROW, req, opt) + } + + pub fn mutate_row_async(&self, req: &super::bigtable_service_messages::MutateRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.mutate_row_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn mutate_rows_opt(&self, req: &super::bigtable_service_messages::MutateRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_SERVICE_MUTATE_ROWS, req, opt) + } + + pub fn mutate_rows(&self, req: &super::bigtable_service_messages::MutateRowsRequest) -> ::grpcio::Result { + self.mutate_rows_opt(req, ::grpcio::CallOption::default()) + } + + pub fn mutate_rows_async_opt(&self, req: &super::bigtable_service_messages::MutateRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_SERVICE_MUTATE_ROWS, req, opt) + } + + pub fn mutate_rows_async(&self, req: &super::bigtable_service_messages::MutateRowsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.mutate_rows_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn check_and_mutate_row_opt(&self, req: &super::bigtable_service_messages::CheckAndMutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_SERVICE_CHECK_AND_MUTATE_ROW, req, opt) + } + + pub fn check_and_mutate_row(&self, req: &super::bigtable_service_messages::CheckAndMutateRowRequest) -> ::grpcio::Result { + self.check_and_mutate_row_opt(req, ::grpcio::CallOption::default()) + } + + pub fn check_and_mutate_row_async_opt(&self, req: &super::bigtable_service_messages::CheckAndMutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_SERVICE_CHECK_AND_MUTATE_ROW, req, opt) + } + + pub fn check_and_mutate_row_async(&self, req: &super::bigtable_service_messages::CheckAndMutateRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.check_and_mutate_row_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn read_modify_write_row_opt(&self, req: &super::bigtable_service_messages::ReadModifyWriteRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_SERVICE_READ_MODIFY_WRITE_ROW, req, opt) + } + + pub fn read_modify_write_row(&self, req: &super::bigtable_service_messages::ReadModifyWriteRowRequest) -> ::grpcio::Result { + self.read_modify_write_row_opt(req, ::grpcio::CallOption::default()) + } + + pub fn read_modify_write_row_async_opt(&self, req: &super::bigtable_service_messages::ReadModifyWriteRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_SERVICE_READ_MODIFY_WRITE_ROW, req, opt) + } + + pub fn read_modify_write_row_async(&self, req: &super::bigtable_service_messages::ReadModifyWriteRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.read_modify_write_row_async_opt(req, ::grpcio::CallOption::default()) + } + pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait BigtableService { + fn read_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::ReadRowsRequest, sink: ::grpcio::ServerStreamingSink); + fn sample_row_keys(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::SampleRowKeysRequest, sink: ::grpcio::ServerStreamingSink); + fn mutate_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::MutateRowRequest, sink: ::grpcio::UnarySink); + fn mutate_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::MutateRowsRequest, sink: ::grpcio::UnarySink); + fn check_and_mutate_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::CheckAndMutateRowRequest, sink: ::grpcio::UnarySink); + fn read_modify_write_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable_service_messages::ReadModifyWriteRowRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_bigtable_service(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_SERVICE_READ_ROWS, move |ctx, req, resp| { + instance.read_rows(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_SERVICE_SAMPLE_ROW_KEYS, move |ctx, req, resp| { + instance.sample_row_keys(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_SERVICE_MUTATE_ROW, move |ctx, req, resp| { + instance.mutate_row(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_SERVICE_MUTATE_ROWS, move |ctx, req, resp| { + instance.mutate_rows(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_SERVICE_CHECK_AND_MUTATE_ROW, move |ctx, req, resp| { + instance.check_and_mutate_row(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_BIGTABLE_SERVICE_READ_MODIFY_WRITE_ROW, move |ctx, req, resp| { + instance.read_modify_write_row(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_messages.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_messages.rs new file mode 100644 index 0000000000..4d0a1e7efa --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v1/bigtable_service_messages.rs @@ -0,0 +1,3319 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/v1/bigtable_service_messages.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct ReadRowsRequest { + // message fields + pub table_name: ::std::string::String, + pub filter: ::protobuf::SingularPtrField, + pub allow_row_interleaving: bool, + pub num_rows_limit: i64, + // message oneof groups + pub target: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ReadRowsRequest { + fn default() -> &'a ReadRowsRequest { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum ReadRowsRequest_oneof_target { + row_key(::std::vec::Vec), + row_range(super::bigtable_data::RowRange), + row_set(super::bigtable_data::RowSet), +} + +impl ReadRowsRequest { + pub fn new() -> 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()) + } + + // bytes row_key = 2; + + + pub fn get_row_key(&self) -> &[u8] { + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(ref v)) => v, + _ => &[], + } + } + pub fn clear_row_key(&mut self) { + self.target = ::std::option::Option::None; + } + + pub fn has_row_key(&self) -> bool { + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_row_key(&mut self, v: ::std::vec::Vec) { + self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(v)) + } + + // Mutable pointer to the field. + pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(_)) = self.target { + } else { + self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(::std::vec::Vec::new())); + } + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_row_key(&mut self) -> ::std::vec::Vec { + if self.has_row_key() { + match self.target.take() { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_key(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // .google.bigtable.v1.RowRange row_range = 3; + + + pub fn get_row_range(&self) -> &super::bigtable_data::RowRange { + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(ref v)) => v, + _ => ::default_instance(), + } + } + pub fn clear_row_range(&mut self) { + self.target = ::std::option::Option::None; + } + + pub fn has_row_range(&self) -> bool { + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_row_range(&mut self, v: super::bigtable_data::RowRange) { + self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(v)) + } + + // Mutable pointer to the field. + pub fn mut_row_range(&mut self) -> &mut super::bigtable_data::RowRange { + if let ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(_)) = self.target { + } else { + self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(super::bigtable_data::RowRange::new())); + } + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_row_range(&mut self) -> super::bigtable_data::RowRange { + if self.has_row_range() { + match self.target.take() { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_range(v)) => v, + _ => panic!(), + } + } else { + super::bigtable_data::RowRange::new() + } + } + + // .google.bigtable.v1.RowSet row_set = 8; + + + pub fn get_row_set(&self) -> &super::bigtable_data::RowSet { + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(ref v)) => v, + _ => ::default_instance(), + } + } + pub fn clear_row_set(&mut self) { + self.target = ::std::option::Option::None; + } + + pub fn has_row_set(&self) -> bool { + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_row_set(&mut self, v: super::bigtable_data::RowSet) { + self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(v)) + } + + // Mutable pointer to the field. + pub fn mut_row_set(&mut self) -> &mut super::bigtable_data::RowSet { + if let ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(_)) = self.target { + } else { + self.target = ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(super::bigtable_data::RowSet::new())); + } + match self.target { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_row_set(&mut self) -> super::bigtable_data::RowSet { + if self.has_row_set() { + match self.target.take() { + ::std::option::Option::Some(ReadRowsRequest_oneof_target::row_set(v)) => v, + _ => panic!(), + } + } else { + super::bigtable_data::RowSet::new() + } + } + + // .google.bigtable.v1.RowFilter filter = 5; + + + pub fn get_filter(&self) -> &super::bigtable_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::bigtable_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::bigtable_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::bigtable_data::RowFilter { + self.filter.take().unwrap_or_else(|| super::bigtable_data::RowFilter::new()) + } + + // bool allow_row_interleaving = 6; + + + pub fn get_allow_row_interleaving(&self) -> bool { + self.allow_row_interleaving + } + pub fn clear_allow_row_interleaving(&mut self) { + self.allow_row_interleaving = false; + } + + // Param is passed by value, moved + pub fn set_allow_row_interleaving(&mut self, v: bool) { + self.allow_row_interleaving = v; + } + + // int64 num_rows_limit = 7; + + + pub fn get_num_rows_limit(&self) -> i64 { + self.num_rows_limit + } + pub fn clear_num_rows_limit(&mut self) { + self.num_rows_limit = 0; + } + + // Param is passed by value, moved + pub fn set_num_rows_limit(&mut self, v: i64) { + self.num_rows_limit = v; + } +} + +impl ::protobuf::Message for ReadRowsRequest { + fn is_initialized(&self) -> bool { + if let Some(ReadRowsRequest_oneof_target::row_range(ref v)) = self.target { + if !v.is_initialized() { + return false; + } + } + if let Some(ReadRowsRequest_oneof_target::row_set(ref v)) = self.target { + 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)?; + }, + 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(ReadRowsRequest_oneof_target::row_key(is.read_bytes()?)); + }, + 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(ReadRowsRequest_oneof_target::row_range(is.read_message()?)); + }, + 8 => { + 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(ReadRowsRequest_oneof_target::row_set(is.read_message()?)); + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.filter)?; + }, + 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.allow_row_interleaving = 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.num_rows_limit = 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.table_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.table_name); + } + if let Some(ref v) = self.filter.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.allow_row_interleaving != false { + my_size += 2; + } + if self.num_rows_limit != 0 { + my_size += ::protobuf::rt::value_size(7, self.num_rows_limit, ::protobuf::wire_format::WireTypeVarint); + } + if let ::std::option::Option::Some(ref v) = self.target { + match v { + &ReadRowsRequest_oneof_target::row_key(ref v) => { + my_size += ::protobuf::rt::bytes_size(2, &v); + }, + &ReadRowsRequest_oneof_target::row_range(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &ReadRowsRequest_oneof_target::row_set(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 let Some(ref v) = self.filter.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.allow_row_interleaving != false { + os.write_bool(6, self.allow_row_interleaving)?; + } + if self.num_rows_limit != 0 { + os.write_int64(7, self.num_rows_limit)?; + } + if let ::std::option::Option::Some(ref v) = self.target { + match v { + &ReadRowsRequest_oneof_target::row_key(ref v) => { + os.write_bytes(2, v)?; + }, + &ReadRowsRequest_oneof_target::row_range(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)?; + }, + &ReadRowsRequest_oneof_target::row_set(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() -> 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_singular_bytes_accessor::<_>( + "row_key", + ReadRowsRequest::has_row_key, + ReadRowsRequest::get_row_key, + )); + fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::bigtable_data::RowRange>( + "row_range", + ReadRowsRequest::has_row_range, + ReadRowsRequest::get_row_range, + )); + fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::bigtable_data::RowSet>( + "row_set", + ReadRowsRequest::has_row_set, + ReadRowsRequest::get_row_set, + )); + 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::ProtobufTypeBool>( + "allow_row_interleaving", + |m: &ReadRowsRequest| { &m.allow_row_interleaving }, + |m: &mut ReadRowsRequest| { &mut m.allow_row_interleaving }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "num_rows_limit", + |m: &ReadRowsRequest| { &m.num_rows_limit }, + |m: &mut ReadRowsRequest| { &mut m.num_rows_limit }, + )); + ::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.target = ::std::option::Option::None; + self.target = ::std::option::Option::None; + self.target = ::std::option::Option::None; + self.filter.clear(); + self.allow_row_interleaving = false; + self.num_rows_limit = 0; + 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) + } +} + +impl ::protobuf::reflect::ProtobufValue for ReadRowsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ReadRowsResponse { + // message fields + pub row_key: ::std::vec::Vec, + pub chunks: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ReadRowsResponse { + fn default() -> &'a ReadRowsResponse { + ::default_instance() + } +} + +impl ReadRowsResponse { + pub fn new() -> ReadRowsResponse { + ::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()) + } + + // repeated .google.bigtable.v1.ReadRowsResponse.Chunk chunks = 2; + + + pub fn get_chunks(&self) -> &[ReadRowsResponse_Chunk] { + &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()) + } +} + +impl ::protobuf::Message for ReadRowsResponse { + fn is_initialized(&self) -> bool { + for v in &self.chunks { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::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.chunks)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + for value in &self.chunks { + 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.row_key.is_empty() { + os.write_bytes(1, &self.row_key)?; + } + for v in &self.chunks { + 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() -> 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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "row_key", + |m: &ReadRowsResponse| { &m.row_key }, + |m: &mut ReadRowsResponse| { &mut m.row_key }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "chunks", + |m: &ReadRowsResponse| { &m.chunks }, + |m: &mut ReadRowsResponse| { &mut m.chunks }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ReadRowsResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ReadRowsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ReadRowsResponse::new) + } +} + +impl ::protobuf::Clear for ReadRowsResponse { + fn clear(&mut self) { + self.row_key.clear(); + self.chunks.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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_Chunk { + // message oneof groups + pub chunk: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ReadRowsResponse_Chunk { + fn default() -> &'a ReadRowsResponse_Chunk { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum ReadRowsResponse_Chunk_oneof_chunk { + row_contents(super::bigtable_data::Family), + reset_row(bool), + commit_row(bool), +} + +impl ReadRowsResponse_Chunk { + pub fn new() -> ReadRowsResponse_Chunk { + ::std::default::Default::default() + } + + // .google.bigtable.v1.Family row_contents = 1; + + + pub fn get_row_contents(&self) -> &super::bigtable_data::Family { + match self.chunk { + ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(ref v)) => v, + _ => ::default_instance(), + } + } + pub fn clear_row_contents(&mut self) { + self.chunk = ::std::option::Option::None; + } + + pub fn has_row_contents(&self) -> bool { + match self.chunk { + ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_row_contents(&mut self, v: super::bigtable_data::Family) { + self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(v)) + } + + // Mutable pointer to the field. + pub fn mut_row_contents(&mut self) -> &mut super::bigtable_data::Family { + if let ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(_)) = self.chunk { + } else { + self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(super::bigtable_data::Family::new())); + } + match self.chunk { + ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_row_contents(&mut self) -> super::bigtable_data::Family { + if self.has_row_contents() { + match self.chunk.take() { + ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(v)) => v, + _ => panic!(), + } + } else { + super::bigtable_data::Family::new() + } + } + + // bool reset_row = 2; + + + pub fn get_reset_row(&self) -> bool { + match self.chunk { + ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::reset_row(v)) => v, + _ => false, + } + } + pub fn clear_reset_row(&mut self) { + self.chunk = ::std::option::Option::None; + } + + pub fn has_reset_row(&self) -> bool { + match self.chunk { + ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::reset_row(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_reset_row(&mut self, v: bool) { + self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::reset_row(v)) + } + + // bool commit_row = 3; + + + pub fn get_commit_row(&self) -> bool { + match self.chunk { + ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::commit_row(v)) => v, + _ => false, + } + } + pub fn clear_commit_row(&mut self) { + self.chunk = ::std::option::Option::None; + } + + pub fn has_commit_row(&self) -> bool { + match self.chunk { + ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::commit_row(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_commit_row(&mut self, v: bool) { + self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::commit_row(v)) + } +} + +impl ::protobuf::Message for ReadRowsResponse_Chunk { + fn is_initialized(&self) -> bool { + if let Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(ref v)) = self.chunk { + if !v.is_initialized() { + return false; + } + } + true + } + + fn merge_from(&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.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::row_contents(is.read_message()?)); + }, + 2 => { + if wire_type != ::protobuf::wire_format::WireTypeVarint { + return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + } + self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::reset_row(is.read_bool()?)); + }, + 3 => { + if wire_type != ::protobuf::wire_format::WireTypeVarint { + return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + } + self.chunk = ::std::option::Option::Some(ReadRowsResponse_Chunk_oneof_chunk::commit_row(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 let ::std::option::Option::Some(ref v) = self.chunk { + match v { + &ReadRowsResponse_Chunk_oneof_chunk::row_contents(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &ReadRowsResponse_Chunk_oneof_chunk::reset_row(v) => { + my_size += 2; + }, + &ReadRowsResponse_Chunk_oneof_chunk::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 let ::std::option::Option::Some(ref v) = self.chunk { + match v { + &ReadRowsResponse_Chunk_oneof_chunk::row_contents(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)?; + }, + &ReadRowsResponse_Chunk_oneof_chunk::reset_row(v) => { + os.write_bool(2, v)?; + }, + &ReadRowsResponse_Chunk_oneof_chunk::commit_row(v) => { + os.write_bool(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() -> ReadRowsResponse_Chunk { + ReadRowsResponse_Chunk::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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::<_, super::bigtable_data::Family>( + "row_contents", + ReadRowsResponse_Chunk::has_row_contents, + ReadRowsResponse_Chunk::get_row_contents, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( + "reset_row", + ReadRowsResponse_Chunk::has_reset_row, + ReadRowsResponse_Chunk::get_reset_row, + )); + fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( + "commit_row", + ReadRowsResponse_Chunk::has_commit_row, + ReadRowsResponse_Chunk::get_commit_row, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ReadRowsResponse.Chunk", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ReadRowsResponse_Chunk { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ReadRowsResponse_Chunk::new) + } +} + +impl ::protobuf::Clear for ReadRowsResponse_Chunk { + fn clear(&mut self) { + self.chunk = ::std::option::Option::None; + self.chunk = ::std::option::Option::None; + self.chunk = ::std::option::Option::None; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ReadRowsResponse_Chunk { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ReadRowsResponse_Chunk { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SampleRowKeysRequest { + // message fields + pub table_name: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SampleRowKeysRequest { + fn default() -> &'a SampleRowKeysRequest { + ::default_instance() + } +} + +impl SampleRowKeysRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "SampleRowKeysRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static SampleRowKeysRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SampleRowKeysRequest::new) + } +} + +impl ::protobuf::Clear for SampleRowKeysRequest { + fn clear(&mut self) { + self.table_name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SampleRowKeysResponse { + // message fields + pub row_key: ::std::vec::Vec, + pub offset_bytes: i64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SampleRowKeysResponse { + fn default() -> &'a SampleRowKeysResponse { + ::default_instance() + } +} + +impl SampleRowKeysResponse { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 self.offset_bytes != 0 { + my_size += ::protobuf::rt::value_size(2, self.offset_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.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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 default_instance() -> &'static SampleRowKeysResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SampleRowKeysResponse::new) + } +} + +impl ::protobuf::Clear for SampleRowKeysResponse { + fn clear(&mut self) { + self.row_key.clear(); + self.offset_bytes = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MutateRowRequest { + // message fields + pub table_name: ::std::string::String, + pub row_key: ::std::vec::Vec, + pub mutations: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MutateRowRequest { + fn default() -> &'a MutateRowRequest { + ::default_instance() + } +} + +impl MutateRowRequest { + pub fn new() -> 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()) + } + + // 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.v1.Mutation mutations = 3; + + + pub fn get_mutations(&self) -> &[super::bigtable_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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.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.row_key.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.row_key); + } + 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); + 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.row_key.is_empty() { + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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::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 default_instance() -> &'static MutateRowRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MutateRowRequest::new) + } +} + +impl ::protobuf::Clear for MutateRowRequest { + fn clear(&mut self) { + self.table_name.clear(); + self.row_key.clear(); + self.mutations.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MutateRowsRequest { + // message fields + pub table_name: ::std::string::String, + pub entries: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MutateRowsRequest { + fn default() -> &'a MutateRowsRequest { + ::default_instance() + } +} + +impl MutateRowsRequest { + pub fn new() -> 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()) + } + + // repeated .google.bigtable.v1.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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.entries)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + for value in &self.entries { + 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)?; + } + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 { + 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_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 default_instance() -> &'static MutateRowsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MutateRowsRequest::new) + } +} + +impl ::protobuf::Clear for MutateRowsRequest { + fn clear(&mut self) { + self.table_name.clear(); + self.entries.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[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<'a> ::std::default::Default for &'a MutateRowsRequest_Entry { + fn default() -> &'a MutateRowsRequest_Entry { + ::default_instance() + } +} + +impl MutateRowsRequest_Entry { + pub fn new() -> MutateRowsRequest_Entry { + ::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()) + } + + // repeated .google.bigtable.v1.Mutation mutations = 2; + + + pub fn get_mutations(&self) -> &[super::bigtable_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()) + } +} + +impl ::protobuf::Message for MutateRowsRequest_Entry { + 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + 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); + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 statuses: ::protobuf::RepeatedField, + // 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() + } +} + +impl MutateRowsResponse { + pub fn new() -> MutateRowsResponse { + ::std::default::Default::default() + } + + // repeated .google.rpc.Status statuses = 1; + + + pub fn get_statuses(&self) -> &[super::status::Status] { + &self.statuses + } + pub fn clear_statuses(&mut self) { + self.statuses.clear(); + } + + // Param is passed by value, moved + pub fn set_statuses(&mut self, v: ::protobuf::RepeatedField) { + self.statuses = v; + } + + // Mutable pointer to the field. + pub fn mut_statuses(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.statuses + } + + // Take field + pub fn take_statuses(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.statuses, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for MutateRowsResponse { + fn is_initialized(&self) -> bool { + for v in &self.statuses { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &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.statuses)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.statuses { + 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.statuses { + 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() -> 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>( + "statuses", + |m: &MutateRowsResponse| { &m.statuses }, + |m: &mut MutateRowsResponse| { &mut m.statuses }, + )); + ::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.statuses.clear(); + 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 CheckAndMutateRowRequest { + // message fields + pub table_name: ::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()) + } + + // 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.v1.RowFilter predicate_filter = 6; + + + pub fn get_predicate_filter(&self) -> &super::bigtable_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::bigtable_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::bigtable_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::bigtable_data::RowFilter { + self.predicate_filter.take().unwrap_or_else(|| super::bigtable_data::RowFilter::new()) + } + + // repeated .google.bigtable.v1.Mutation true_mutations = 4; + + + pub fn get_true_mutations(&self) -> &[super::bigtable_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.v1.Mutation false_mutations = 5; + + + pub fn get_false_mutations(&self) -> &[super::bigtable_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)?; + }, + 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.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.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::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.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 ReadModifyWriteRowRequest { + // message fields + pub table_name: ::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()) + } + + // 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.v1.ReadModifyWriteRule rules = 3; + + + pub fn get_rules(&self) -> &[super::bigtable_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)?; + }, + 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.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.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::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.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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n2google/bigtable/v1/bigtable_service_messages.proto\x12\x12google.bigt\ + able.v1\x1a&google/bigtable/v1/bigtable_data.proto\x1a\x17google/rpc/sta\ + tus.proto\"\xdc\x02\n\x0fReadRowsRequest\x12\x1d\n\ntable_name\x18\x01\ + \x20\x01(\tR\ttableName\x12\x19\n\x07row_key\x18\x02\x20\x01(\x0cH\0R\ + \x06rowKey\x12;\n\trow_range\x18\x03\x20\x01(\x0b2\x1c.google.bigtable.v\ + 1.RowRangeH\0R\x08rowRange\x125\n\x07row_set\x18\x08\x20\x01(\x0b2\x1a.g\ + oogle.bigtable.v1.RowSetH\0R\x06rowSet\x125\n\x06filter\x18\x05\x20\x01(\ + \x0b2\x1d.google.bigtable.v1.RowFilterR\x06filter\x124\n\x16allow_row_in\ + terleaving\x18\x06\x20\x01(\x08R\x14allowRowInterleaving\x12$\n\x0enum_r\ + ows_limit\x18\x07\x20\x01(\x03R\x0cnumRowsLimitB\x08\n\x06target\"\x83\ + \x02\n\x10ReadRowsResponse\x12\x17\n\x07row_key\x18\x01\x20\x01(\x0cR\ + \x06rowKey\x12B\n\x06chunks\x18\x02\x20\x03(\x0b2*.google.bigtable.v1.Re\ + adRowsResponse.ChunkR\x06chunks\x1a\x91\x01\n\x05Chunk\x12?\n\x0crow_con\ + tents\x18\x01\x20\x01(\x0b2\x1a.google.bigtable.v1.FamilyH\0R\x0browCont\ + ents\x12\x1d\n\treset_row\x18\x02\x20\x01(\x08H\0R\x08resetRow\x12\x1f\n\ + \ncommit_row\x18\x03\x20\x01(\x08H\0R\tcommitRowB\x07\n\x05chunk\"5\n\ + \x14SampleRowKeysRequest\x12\x1d\n\ntable_name\x18\x01\x20\x01(\tR\ttabl\ + eName\"S\n\x15SampleRowKeysResponse\x12\x17\n\x07row_key\x18\x01\x20\x01\ + (\x0cR\x06rowKey\x12!\n\x0coffset_bytes\x18\x02\x20\x01(\x03R\x0boffsetB\ + ytes\"\x86\x01\n\x10MutateRowRequest\x12\x1d\n\ntable_name\x18\x01\x20\ + \x01(\tR\ttableName\x12\x17\n\x07row_key\x18\x02\x20\x01(\x0cR\x06rowKey\ + \x12:\n\tmutations\x18\x03\x20\x03(\x0b2\x1c.google.bigtable.v1.Mutation\ + R\tmutations\"\xd7\x01\n\x11MutateRowsRequest\x12\x1d\n\ntable_name\x18\ + \x01\x20\x01(\tR\ttableName\x12E\n\x07entries\x18\x02\x20\x03(\x0b2+.goo\ + gle.bigtable.v1.MutateRowsRequest.EntryR\x07entries\x1a\\\n\x05Entry\x12\ + \x17\n\x07row_key\x18\x01\x20\x01(\x0cR\x06rowKey\x12:\n\tmutations\x18\ + \x02\x20\x03(\x0b2\x1c.google.bigtable.v1.MutationR\tmutations\"D\n\x12M\ + utateRowsResponse\x12.\n\x08statuses\x18\x01\x20\x03(\x0b2\x12.google.rp\ + c.StatusR\x08statuses\"\xa8\x02\n\x18CheckAndMutateRowRequest\x12\x1d\n\ + \ntable_name\x18\x01\x20\x01(\tR\ttableName\x12\x17\n\x07row_key\x18\x02\ + \x20\x01(\x0cR\x06rowKey\x12H\n\x10predicate_filter\x18\x06\x20\x01(\x0b\ + 2\x1d.google.bigtable.v1.RowFilterR\x0fpredicateFilter\x12C\n\x0etrue_mu\ + tations\x18\x04\x20\x03(\x0b2\x1c.google.bigtable.v1.MutationR\rtrueMuta\ + tions\x12E\n\x0ffalse_mutations\x18\x05\x20\x03(\x0b2\x1c.google.bigtabl\ + e.v1.MutationR\x0efalseMutations\"H\n\x19CheckAndMutateRowResponse\x12+\ + \n\x11predicate_matched\x18\x01\x20\x01(\x08R\x10predicateMatched\"\x92\ + \x01\n\x19ReadModifyWriteRowRequest\x12\x1d\n\ntable_name\x18\x01\x20\ + \x01(\tR\ttableName\x12\x17\n\x07row_key\x18\x02\x20\x01(\x0cR\x06rowKey\ + \x12=\n\x05rules\x18\x03\x20\x03(\x0b2'.google.bigtable.v1.ReadModifyWri\ + teRuleR\x05rulesBt\n\x16com.google.bigtable.v1B\x1cBigtableServiceMessag\ + esProtoP\x01Z:google.golang.org/genproto/googleapis/bigtable/v1;bigtable\ + J\x86I\n\x07\x12\x05\x0e\0\xd8\x01\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\x1b\n\t\n\x02\x03\0\x12\x03\x12\00\n\t\n\x02\x03\x01\ + \x12\x03\x13\0!\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\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:\n\x02\x04\0\ + \x12\x04\x1b\0=\x01\x1a.\x20Request\x20message\x20for\x20BigtableServer.\ + ReadRows.\n\n\n\n\x03\x04\0\x01\x12\x03\x1b\x08\x17\n?\n\x04\x04\0\x02\0\ + \x12\x03\x1d\x02\x18\x1a2\x20The\x20unique\x20name\x20of\x20the\x20table\ + \x20from\x20which\x20to\x20read.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04\x1d\ + \x02\x1b\x19\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\x13\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\ + \x1d\x16\x17\nM\n\x04\x04\0\x08\0\x12\x04\x20\x02+\x03\x1a?\x20If\x20nei\ + ther\x20row_key\x20nor\x20row_range\x20is\x20set,\x20reads\x20from\x20al\ + l\x20rows.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x03\x20\x08\x0e\n:\n\x04\ + \x04\0\x02\x01\x12\x03\"\x04\x16\x1a-\x20The\x20key\x20of\x20a\x20single\ + \x20row\x20from\x20which\x20to\x20read.\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\x15\n2\n\x04\x04\0\x02\x02\x12\x03%\ + \x04\x1b\x1a%\x20A\x20range\x20of\x20rows\x20from\x20which\x20to\x20read\ + .\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03%\x04\x0c\n\x0c\n\x05\x04\0\x02\ + \x02\x01\x12\x03%\r\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03%\x19\x1a\n\ + \xb4\x01\n\x04\x04\0\x02\x03\x12\x03*\x04\x17\x1a\xa6\x01\x20A\x20set\ + \x20of\x20rows\x20from\x20which\x20to\x20read.\x20Entries\x20need\x20not\ + \x20be\x20in\x20order,\x20and\x20will\n\x20be\x20deduplicated\x20before\ + \x20reading.\n\x20The\x20total\x20serialized\x20size\x20of\x20the\x20set\ + \x20must\x20not\x20exceed\x201MB.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\ + \x03*\x04\n\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03*\x0b\x12\n\x0c\n\x05\ + \x04\0\x02\x03\x03\x12\x03*\x15\x16\nn\n\x04\x04\0\x02\x04\x12\x03/\x02\ + \x17\x1aa\x20The\x20filter\x20to\x20apply\x20to\x20the\x20contents\x20of\ + \x20the\x20specified\x20row(s).\x20If\x20unset,\n\x20reads\x20the\x20ent\ + ire\x20table.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04/\x02+\x03\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\x12\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03/\x15\x16\n\xab\ + \x03\n\x04\x04\0\x02\x05\x12\x037\x02\"\x1a\x9d\x03\x20By\x20default,\ + \x20rows\x20are\x20read\x20sequentially,\x20producing\x20results\x20whic\ + h\x20are\n\x20guaranteed\x20to\x20arrive\x20in\x20increasing\x20row\x20o\ + rder.\x20Setting\n\x20\"allow_row_interleaving\"\x20to\x20true\x20allows\ + \x20multiple\x20rows\x20to\x20be\x20interleaved\x20in\n\x20the\x20respon\ + se\x20stream,\x20which\x20increases\x20throughput\x20but\x20breaks\x20th\ + is\x20guarantee,\n\x20and\x20may\x20force\x20the\x20client\x20to\x20use\ + \x20more\x20memory\x20to\x20buffer\x20partially-received\n\x20rows.\x20C\ + annot\x20be\x20set\x20to\x20true\x20when\x20specifying\x20\"num_rows_lim\ + it\".\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x047\x02/\x17\n\x0c\n\x05\x04\0\ + \x02\x05\x05\x12\x037\x02\x06\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x037\x07\ + \x1d\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x037\x20!\n\xcf\x01\n\x04\x04\0\ + \x02\x06\x12\x03<\x02\x1b\x1a\xc1\x01\x20The\x20read\x20will\x20terminat\ + e\x20after\x20committing\x20to\x20N\x20rows'\x20worth\x20of\x20results.\ + \x20The\n\x20default\x20(zero)\x20is\x20to\x20return\x20all\x20results.\ + \n\x20Note\x20that\x20\"allow_row_interleaving\"\x20cannot\x20be\x20set\ + \x20to\x20true\x20when\x20this\x20is\x20set.\n\n\r\n\x05\x04\0\x02\x06\ + \x04\x12\x04<\x027\"\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03<\x02\x07\n\ + \x0c\n\x05\x04\0\x02\x06\x01\x12\x03<\x08\x16\n\x0c\n\x05\x04\0\x02\x06\ + \x03\x12\x03<\x19\x1a\n<\n\x02\x04\x01\x12\x04@\0\\\x01\x1a0\x20Response\ + \x20message\x20for\x20BigtableService.ReadRows.\n\n\n\n\x03\x04\x01\x01\ + \x12\x03@\x08\x18\nd\n\x04\x04\x01\x03\0\x12\x04C\x02S\x03\x1aV\x20Speci\ + fies\x20a\x20piece\x20of\x20a\x20row's\x20contents\x20returned\x20as\x20\ + part\x20of\x20the\x20read\n\x20response\x20stream.\n\n\x0c\n\x05\x04\x01\ + \x03\0\x01\x12\x03C\n\x0f\n\x0e\n\x06\x04\x01\x03\0\x08\0\x12\x04D\x04R\ + \x05\n\x0e\n\x07\x04\x01\x03\0\x08\0\x01\x12\x03D\n\x0f\n\x8b\x02\n\x06\ + \x04\x01\x03\0\x02\0\x12\x03I\x06\x1e\x1a\xfb\x01\x20A\x20subset\x20of\ + \x20the\x20data\x20from\x20a\x20particular\x20row.\x20As\x20long\x20as\ + \x20no\x20\"reset_row\"\n\x20is\x20received\x20in\x20between,\x20multipl\ + e\x20\"row_contents\"\x20from\x20the\x20same\x20row\x20are\n\x20from\x20\ + the\x20same\x20atomic\x20view\x20of\x20that\x20row,\x20and\x20will\x20be\ + \x20received\x20in\x20the\n\x20expected\x20family/column/timestamp\x20or\ + der.\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x06\x12\x03I\x06\x0c\n\x0e\n\x07\ + \x04\x01\x03\0\x02\0\x01\x12\x03I\r\x19\n\x0e\n\x07\x04\x01\x03\0\x02\0\ + \x03\x12\x03I\x1c\x1d\n\x84\x01\n\x06\x04\x01\x03\0\x02\x01\x12\x03M\x06\ + \x19\x1au\x20Indicates\x20that\x20the\x20client\x20should\x20drop\x20all\ + \x20previous\x20chunks\x20for\n\x20\"row_key\",\x20as\x20it\x20will\x20b\ + e\x20re-read\x20from\x20the\x20beginning.\n\n\x0e\n\x07\x04\x01\x03\0\ + \x02\x01\x05\x12\x03M\x06\n\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\ + \x03M\x0b\x14\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x03M\x17\x18\n\ + \x82\x01\n\x06\x04\x01\x03\0\x02\x02\x12\x03Q\x06\x1a\x1as\x20Indicates\ + \x20that\x20the\x20client\x20can\x20safely\x20process\x20all\x20previous\ + \x20chunks\x20for\n\x20\"row_key\",\x20as\x20its\x20data\x20has\x20been\ + \x20fully\x20read.\n\n\x0e\n\x07\x04\x01\x03\0\x02\x02\x05\x12\x03Q\x06\ + \n\n\x0e\n\x07\x04\x01\x03\0\x02\x02\x01\x12\x03Q\x0b\x15\n\x0e\n\x07\ + \x04\x01\x03\0\x02\x02\x03\x12\x03Q\x18\x19\n\xb8\x01\n\x04\x04\x01\x02\ + \0\x12\x03X\x02\x14\x1a\xaa\x01\x20The\x20key\x20of\x20the\x20row\x20for\ + \x20which\x20we're\x20receiving\x20data.\n\x20Results\x20will\x20be\x20r\ + eceived\x20in\x20increasing\x20row\x20key\x20order,\x20unless\n\x20\"all\ + ow_row_interleaving\"\x20was\x20specified\x20in\x20the\x20request.\n\n\r\ + \n\x05\x04\x01\x02\0\x04\x12\x04X\x02S\x03\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\x0f\n\x0c\n\ + \x05\x04\x01\x02\0\x03\x12\x03X\x12\x13\nD\n\x04\x04\x01\x02\x01\x12\x03\ + [\x02\x1c\x1a7\x20One\x20or\x20more\x20chunks\x20of\x20the\x20row\x20spe\ + cified\x20by\x20\"row_key\".\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03[\ + \x02\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03[\x0b\x10\n\x0c\n\x05\x04\ + \x01\x02\x01\x01\x12\x03[\x11\x17\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\ + \x03[\x1a\x1b\n@\n\x02\x04\x02\x12\x04_\0b\x01\x1a4\x20Request\x20messag\ + e\x20for\x20BigtableService.SampleRowKeys.\n\n\n\n\x03\x04\x02\x01\x12\ + \x03_\x08\x1c\nJ\n\x04\x04\x02\x02\0\x12\x03a\x02\x18\x1a=\x20The\x20uni\ + que\x20name\x20of\x20the\x20table\x20from\x20which\x20to\x20sample\x20ro\ + w\x20keys.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04a\x02_\x1e\n\x0c\n\x05\ + \x04\x02\x02\0\x05\x12\x03a\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\ + \x03a\t\x13\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03a\x16\x17\nA\n\x02\x04\ + \x03\x12\x04e\0t\x01\x1a5\x20Response\x20message\x20for\x20BigtableServi\ + ce.SampleRowKeys.\n\n\n\n\x03\x04\x03\x01\x12\x03e\x08\x1d\n\xdf\x03\n\ + \x04\x04\x03\x02\0\x12\x03m\x02\x14\x1a\xd1\x03\x20Sorted\x20streamed\ + \x20sequence\x20of\x20sample\x20row\x20keys\x20in\x20the\x20table.\x20Th\ + e\x20table\x20might\n\x20have\x20contents\x20before\x20the\x20first\x20r\ + ow\x20key\x20in\x20the\x20list\x20and\x20after\x20the\x20last\x20one,\n\ + \x20but\x20a\x20key\x20containing\x20the\x20empty\x20string\x20indicates\ + \x20\"end\x20of\x20table\"\x20and\x20will\x20be\n\x20the\x20last\x20resp\ + onse\x20given,\x20if\x20present.\n\x20Note\x20that\x20row\x20keys\x20in\ + \x20this\x20list\x20may\x20not\x20have\x20ever\x20been\x20written\x20to\ + \x20or\x20read\n\x20from,\x20and\x20users\x20should\x20therefore\x20not\ + \x20make\x20any\x20assumptions\x20about\x20the\x20row\x20key\n\x20struct\ + ure\x20that\x20are\x20specific\x20to\x20their\x20use\x20case.\n\n\r\n\ + \x05\x04\x03\x02\0\x04\x12\x04m\x02e\x1f\n\x0c\n\x05\x04\x03\x02\0\x05\ + \x12\x03m\x02\x07\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03m\x08\x0f\n\x0c\n\ + \x05\x04\x03\x02\0\x03\x12\x03m\x12\x13\n\xff\x01\n\x04\x04\x03\x02\x01\ + \x12\x03s\x02\x19\x1a\xf1\x01\x20Approximate\x20total\x20storage\x20spac\ + e\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\x20require\x20spa\ + ce\x20roughly\x20equal\x20to\x20the\x20difference\x20in\x20their\n\x20\"\ + offset_bytes\"\x20fields.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04s\x02m\ + \x14\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03s\x02\x07\n\x0c\n\x05\x04\ + \x03\x02\x01\x01\x12\x03s\x08\x14\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\ + \x03s\x17\x18\n=\n\x02\x04\x04\x12\x05w\0\x82\x01\x01\x1a0\x20Request\ + \x20message\x20for\x20BigtableService.MutateRow.\n\n\n\n\x03\x04\x04\x01\ + \x12\x03w\x08\x18\nT\n\x04\x04\x04\x02\0\x12\x03y\x02\x18\x1aG\x20The\ + \x20unique\x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20mutati\ + on\x20should\x20be\x20applied.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04y\ + \x02w\x1a\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03y\x02\x08\n\x0c\n\x05\x04\ + \x04\x02\0\x01\x12\x03y\t\x13\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03y\x16\ + \x17\nJ\n\x04\x04\x04\x02\x01\x12\x03|\x02\x14\x1a=\x20The\x20key\x20of\ + \x20the\x20row\x20to\x20which\x20the\x20mutation\x20should\x20be\x20appl\ + ied.\n\n\r\n\x05\x04\x04\x02\x01\x04\x12\x04|\x02y\x18\n\x0c\n\x05\x04\ + \x04\x02\x01\x05\x12\x03|\x02\x07\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\ + \x03|\x08\x0f\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03|\x12\x13\n\xd7\x01\ + \n\x04\x04\x04\x02\x02\x12\x04\x81\x01\x02\"\x1a\xc8\x01\x20Changes\x20t\ + o\x20be\x20atomically\x20applied\x20to\x20the\x20specified\x20row.\x20En\ + tries\x20are\x20applied\n\x20in\x20order,\x20meaning\x20that\x20earlier\ + \x20mutations\x20can\x20be\x20masked\x20by\x20later\x20ones.\n\x20Must\ + \x20contain\x20at\x20least\x20one\x20entry\x20and\x20at\x20most\x2010000\ + 0.\n\n\r\n\x05\x04\x04\x02\x02\x04\x12\x04\x81\x01\x02\n\n\r\n\x05\x04\ + \x04\x02\x02\x06\x12\x04\x81\x01\x0b\x13\n\r\n\x05\x04\x04\x02\x02\x01\ + \x12\x04\x81\x01\x14\x1d\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x81\x01\ + \x20!\n?\n\x02\x04\x05\x12\x06\x85\x01\0\x9a\x01\x01\x1a1\x20Request\x20\ + message\x20for\x20BigtableService.MutateRows.\n\n\x0b\n\x03\x04\x05\x01\ + \x12\x04\x85\x01\x08\x19\n\x0e\n\x04\x04\x05\x03\0\x12\x06\x86\x01\x02\ + \x8f\x01\x03\n\r\n\x05\x04\x05\x03\0\x01\x12\x04\x86\x01\n\x0f\nP\n\x06\ + \x04\x05\x03\0\x02\0\x12\x04\x88\x01\x04\x16\x1a@\x20The\x20key\x20of\ + \x20the\x20row\x20to\x20which\x20the\x20`mutations`\x20should\x20be\x20a\ + pplied.\n\n\x11\n\x07\x04\x05\x03\0\x02\0\x04\x12\x06\x88\x01\x04\x86\ + \x01\x11\n\x0f\n\x07\x04\x05\x03\0\x02\0\x05\x12\x04\x88\x01\x04\t\n\x0f\ + \n\x07\x04\x05\x03\0\x02\0\x01\x12\x04\x88\x01\n\x11\n\x0f\n\x07\x04\x05\ + \x03\0\x02\0\x03\x12\x04\x88\x01\x14\x15\n\xd1\x01\n\x06\x04\x05\x03\0\ + \x02\x01\x12\x04\x8e\x01\x04$\x1a\xc0\x01\x20Changes\x20to\x20be\x20atom\ + ically\x20applied\x20to\x20the\x20specified\x20row.\x20Mutations\x20are\ + \n\x20applied\x20in\x20order,\x20meaning\x20that\x20earlier\x20mutations\ + \x20can\x20be\x20masked\x20by\n\x20later\x20ones.\n\x20At\x20least\x20on\ + e\x20mutation\x20must\x20be\x20specified.\n\n\x0f\n\x07\x04\x05\x03\0\ + \x02\x01\x04\x12\x04\x8e\x01\x04\x0c\n\x0f\n\x07\x04\x05\x03\0\x02\x01\ + \x06\x12\x04\x8e\x01\r\x15\n\x0f\n\x07\x04\x05\x03\0\x02\x01\x01\x12\x04\ + \x8e\x01\x16\x1f\n\x0f\n\x07\x04\x05\x03\0\x02\x01\x03\x12\x04\x8e\x01\"\ + #\nV\n\x04\x04\x05\x02\0\x12\x04\x92\x01\x02\x18\x1aH\x20The\x20unique\ + \x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20mutations\x20sho\ + uld\x20be\x20applied.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\x92\x01\ + \x02\x8f\x01\x03\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\x92\x01\x02\x08\n\r\ + \n\x05\x04\x05\x02\0\x01\x12\x04\x92\x01\t\x13\n\r\n\x05\x04\x05\x02\0\ + \x03\x12\x04\x92\x01\x16\x17\n\xaf\x02\n\x04\x04\x05\x02\x01\x12\x04\x99\ + \x01\x02\x1d\x1a\xa0\x02\x20The\x20row\x20keys/mutations\x20to\x20be\x20\ + applied\x20in\x20bulk.\n\x20Each\x20entry\x20is\x20applied\x20as\x20an\ + \x20atomic\x20mutation,\x20but\x20the\x20entries\x20may\x20be\n\x20appli\ + ed\x20in\x20arbitrary\x20order\x20(even\x20between\x20entries\x20for\x20\ + the\x20same\x20row).\n\x20At\x20least\x20one\x20entry\x20must\x20be\x20s\ + pecified,\x20and\x20in\x20total\x20the\x20entries\x20may\n\x20contain\ + \x20at\x20most\x20100000\x20mutations.\n\n\r\n\x05\x04\x05\x02\x01\x04\ + \x12\x04\x99\x01\x02\n\n\r\n\x05\x04\x05\x02\x01\x06\x12\x04\x99\x01\x0b\ + \x10\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x99\x01\x11\x18\n\r\n\x05\x04\ + \x05\x02\x01\x03\x12\x04\x99\x01\x1b\x1c\n@\n\x02\x04\x06\x12\x06\x9d\ + \x01\0\xa4\x01\x01\x1a2\x20Response\x20message\x20for\x20BigtableService\ + .MutateRows.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x9d\x01\x08\x1a\n\xd6\x02\ + \n\x04\x04\x06\x02\0\x12\x04\xa3\x01\x02*\x1a\xc7\x02\x20The\x20results\ + \x20for\x20each\x20Entry\x20from\x20the\x20request,\x20presented\x20in\ + \x20the\x20order\n\x20in\x20which\x20the\x20entries\x20were\x20originall\ + y\x20given.\n\x20Depending\x20on\x20how\x20requests\x20are\x20batched\ + \x20during\x20execution,\x20it\x20is\x20possible\n\x20for\x20one\x20Entr\ + y\x20to\x20fail\x20due\x20to\x20an\x20error\x20with\x20another\x20Entry.\ + \x20In\x20the\x20event\n\x20that\x20this\x20occurs,\x20the\x20same\x20er\ + ror\x20will\x20be\x20reported\x20for\x20both\x20entries.\n\n\r\n\x05\x04\ + \x06\x02\0\x04\x12\x04\xa3\x01\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\ + \xa3\x01\x0b\x1c\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xa3\x01\x1d%\n\r\n\ + \x05\x04\x06\x02\0\x03\x12\x04\xa3\x01()\nL\n\x02\x04\x07\x12\x06\xa7\ + \x01\0\xc2\x01\x01\x1a>\x20Request\x20message\x20for\x20BigtableService.\ + CheckAndMutateRowRequest\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xa7\x01\x08\ + \x20\nb\n\x04\x04\x07\x02\0\x12\x04\xaa\x01\x02\x18\x1aT\x20The\x20uniqu\ + e\x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20conditional\x20\ + mutation\x20should\x20be\n\x20applied.\n\n\x0f\n\x05\x04\x07\x02\0\x04\ + \x12\x06\xaa\x01\x02\xa7\x01\"\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xaa\ + \x01\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xaa\x01\t\x13\n\r\n\x05\ + \x04\x07\x02\0\x03\x12\x04\xaa\x01\x16\x17\nW\n\x04\x04\x07\x02\x01\x12\ + \x04\xad\x01\x02\x14\x1aI\x20The\x20key\x20of\x20the\x20row\x20to\x20whi\ + ch\x20the\x20conditional\x20mutation\x20should\x20be\x20applied.\n\n\x0f\ + \n\x05\x04\x07\x02\x01\x04\x12\x06\xad\x01\x02\xaa\x01\x18\n\r\n\x05\x04\ + \x07\x02\x01\x05\x12\x04\xad\x01\x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\ + \x12\x04\xad\x01\x08\x0f\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xad\x01\ + \x12\x13\n\x80\x02\n\x04\x04\x07\x02\x02\x12\x04\xb3\x01\x02!\x1a\xf1\ + \x01\x20The\x20filter\x20to\x20be\x20applied\x20to\x20the\x20contents\ + \x20of\x20the\x20specified\x20row.\x20Depending\n\x20on\x20whether\x20or\ + \x20not\x20any\x20results\x20are\x20yielded,\x20either\x20\"true_mutatio\ + ns\"\x20or\n\x20\"false_mutations\"\x20will\x20be\x20executed.\x20If\x20\ + unset,\x20checks\x20that\x20the\x20row\x20contains\n\x20any\x20values\ + \x20at\x20all.\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xb3\x01\x02\xad\ + \x01\x14\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xb3\x01\x02\x0b\n\r\n\x05\ + \x04\x07\x02\x02\x01\x12\x04\xb3\x01\x0c\x1c\n\r\n\x05\x04\x07\x02\x02\ + \x03\x12\x04\xb3\x01\x1f\x20\n\xc1\x02\n\x04\x04\x07\x02\x03\x12\x04\xba\ + \x01\x02'\x1a\xb2\x02\x20Changes\x20to\x20be\x20atomically\x20applied\ + \x20to\x20the\x20specified\x20row\x20if\x20\"predicate_filter\"\n\x20yie\ + lds\x20at\x20least\x20one\x20cell\x20when\x20applied\x20to\x20\"row_key\ + \".\x20Entries\x20are\x20applied\x20in\n\x20order,\x20meaning\x20that\ + \x20earlier\x20mutations\x20can\x20be\x20masked\x20by\x20later\x20ones.\ + \n\x20Must\x20contain\x20at\x20least\x20one\x20entry\x20if\x20\"false_mu\ + tations\"\x20is\x20empty,\x20and\x20at\x20most\n\x20100000.\n\n\r\n\x05\ + \x04\x07\x02\x03\x04\x12\x04\xba\x01\x02\n\n\r\n\x05\x04\x07\x02\x03\x06\ + \x12\x04\xba\x01\x0b\x13\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\xba\x01\ + \x14\"\n\r\n\x05\x04\x07\x02\x03\x03\x12\x04\xba\x01%&\n\xc0\x02\n\x04\ + \x04\x07\x02\x04\x12\x04\xc1\x01\x02(\x1a\xb1\x02\x20Changes\x20to\x20be\ + \x20atomically\x20applied\x20to\x20the\x20specified\x20row\x20if\x20\"pr\ + edicate_filter\"\n\x20does\x20not\x20yield\x20any\x20cells\x20when\x20ap\ + plied\x20to\x20\"row_key\".\x20Entries\x20are\x20applied\x20in\n\x20orde\ + r,\x20meaning\x20that\x20earlier\x20mutations\x20can\x20be\x20masked\x20\ + by\x20later\x20ones.\n\x20Must\x20contain\x20at\x20least\x20one\x20entry\ + \x20if\x20\"true_mutations\"\x20is\x20empty,\x20and\x20at\x20most\n\x201\ + 00000.\n\n\r\n\x05\x04\x07\x02\x04\x04\x12\x04\xc1\x01\x02\n\n\r\n\x05\ + \x04\x07\x02\x04\x06\x12\x04\xc1\x01\x0b\x13\n\r\n\x05\x04\x07\x02\x04\ + \x01\x12\x04\xc1\x01\x14#\n\r\n\x05\x04\x07\x02\x04\x03\x12\x04\xc1\x01&\ + '\nN\n\x02\x04\x08\x12\x06\xc5\x01\0\xc9\x01\x01\x1a@\x20Response\x20mes\ + sage\x20for\x20BigtableService.CheckAndMutateRowRequest.\n\n\x0b\n\x03\ + \x04\x08\x01\x12\x04\xc5\x01\x08!\nk\n\x04\x04\x08\x02\0\x12\x04\xc8\x01\ + \x02\x1d\x1a]\x20Whether\x20or\x20not\x20the\x20request's\x20\"predicate\ + _filter\"\x20yielded\x20any\x20results\x20for\n\x20the\x20specified\x20r\ + ow.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xc8\x01\x02\xc5\x01#\n\r\n\ + \x05\x04\x08\x02\0\x05\x12\x04\xc8\x01\x02\x06\n\r\n\x05\x04\x08\x02\0\ + \x01\x12\x04\xc8\x01\x07\x18\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xc8\x01\ + \x1b\x1c\nN\n\x02\x04\t\x12\x06\xcc\x01\0\xd8\x01\x01\x1a@\x20Request\ + \x20message\x20for\x20BigtableService.ReadModifyWriteRowRequest.\n\n\x0b\ + \n\x03\x04\t\x01\x12\x04\xcc\x01\x08!\ne\n\x04\x04\t\x02\0\x12\x04\xcf\ + \x01\x02\x18\x1aW\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\ + \x20which\x20the\x20read/modify/write\x20rules\x20should\x20be\n\x20appl\ + ied.\n\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\xcf\x01\x02\xcc\x01#\n\r\n\ + \x05\x04\t\x02\0\x05\x12\x04\xcf\x01\x02\x08\n\r\n\x05\x04\t\x02\0\x01\ + \x12\x04\xcf\x01\t\x13\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xcf\x01\x16\x17\ + \nZ\n\x04\x04\t\x02\x01\x12\x04\xd2\x01\x02\x14\x1aL\x20The\x20key\x20of\ + \x20the\x20row\x20to\x20which\x20the\x20read/modify/write\x20rules\x20sh\ + ould\x20be\x20applied.\n\n\x0f\n\x05\x04\t\x02\x01\x04\x12\x06\xd2\x01\ + \x02\xcf\x01\x18\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\xd2\x01\x02\x07\n\r\ + \n\x05\x04\t\x02\x01\x01\x12\x04\xd2\x01\x08\x0f\n\r\n\x05\x04\t\x02\x01\ + \x03\x12\x04\xd2\x01\x12\x13\n\xc7\x01\n\x04\x04\t\x02\x02\x12\x04\xd7\ + \x01\x02)\x1a\xb8\x01\x20Rules\x20specifying\x20how\x20the\x20specified\ + \x20row's\x20contents\x20are\x20to\x20be\x20transformed\n\x20into\x20wri\ + tes.\x20Entries\x20are\x20applied\x20in\x20order,\x20meaning\x20that\x20\ + earlier\x20rules\x20will\n\x20affect\x20the\x20results\x20of\x20later\ + \x20ones.\n\n\r\n\x05\x04\t\x02\x02\x04\x12\x04\xd7\x01\x02\n\n\r\n\x05\ + \x04\t\x02\x02\x06\x12\x04\xd7\x01\x0b\x1e\n\r\n\x05\x04\t\x02\x02\x01\ + \x12\x04\xd7\x01\x1f$\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xd7\x01'(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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable.rs new file mode 100644 index 0000000000..a2f53165c9 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable.rs @@ -0,0 +1,4381 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/bigtable.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct ReadRowsRequest { + // message fields + pub table_name: ::std::string::String, + pub app_profile_id: ::std::string::String, + pub rows: ::protobuf::SingularPtrField, + pub filter: ::protobuf::SingularPtrField, + pub rows_limit: i64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ReadRowsRequest { + fn default() -> &'a ReadRowsRequest { + ::default_instance() + } +} + +impl ReadRowsRequest { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_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)); + } + let tmp = is.read_int64()?; + self.rows_limit = 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.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(5, &self.app_profile_id); + } + if let Some(ref v) = self.rows.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.filter.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.rows_limit != 0 { + my_size += ::protobuf::rt::value_size(4, self.rows_limit, ::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.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(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 self.rows_limit != 0 { + os.write_int64(4, self.rows_limit)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 }, + )); + ::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.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) + } +} + +impl ::protobuf::reflect::ProtobufValue for ReadRowsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ReadRowsResponse { + // message fields + pub chunks: ::protobuf::RepeatedField, + pub last_scanned_row_key: ::std::vec::Vec, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ReadRowsResponse { + fn default() -> &'a ReadRowsResponse { + ::default_instance() + } +} + +impl ReadRowsResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for ReadRowsResponse { + fn is_initialized(&self) -> bool { + for v in &self.chunks { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.chunks { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if !self.last_scanned_row_key.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.last_scanned_row_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<()> { + 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)?; + }; + if !self.last_scanned_row_key.is_empty() { + os.write_bytes(2, &self.last_scanned_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() + } + + 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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ReadRowsResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ReadRowsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ReadRowsResponse::new) + } +} + +impl ::protobuf::Clear for ReadRowsResponse { + fn clear(&mut self) { + self.chunks.clear(); + self.last_scanned_row_key.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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, +} + +impl<'a> ::std::default::Default for &'a ReadRowsResponse_CellChunk { + fn default() -> &'a ReadRowsResponse_CellChunk { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum ReadRowsResponse_CellChunk_oneof_row_status { + reset_row(bool), + commit_row(bool), +} + +impl ReadRowsResponse_CellChunk { + pub fn new() -> ReadRowsResponse_CellChunk { + ::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()) + } + + // .google.protobuf.StringValue family_name = 2; + + + 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(); + } + 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(); + } + 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, + } + } + 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, + } + } + + // 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, + } + } + 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, + } + } + + // 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())?; + }, + }; + } + ::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); + } + 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)?; + } + 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() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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() + ) + }) + } + + fn default_instance() -> &'static ReadRowsResponse_CellChunk { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ReadRowsResponse_CellChunk::new) + } +} + +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 ::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::reflect::ProtobufValue for ReadRowsResponse_CellChunk { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SampleRowKeysRequest { + // 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 SampleRowKeysRequest { + fn default() -> &'a SampleRowKeysRequest { + ::default_instance() + } +} + +impl SampleRowKeysRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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() -> 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 default_instance() -> &'static SampleRowKeysRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SampleRowKeysRequest::new) + } +} + +impl ::protobuf::Clear for SampleRowKeysRequest { + fn clear(&mut self) { + self.table_name.clear(); + self.app_profile_id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SampleRowKeysResponse { + // message fields + pub row_key: ::std::vec::Vec, + pub offset_bytes: i64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SampleRowKeysResponse { + fn default() -> &'a SampleRowKeysResponse { + ::default_instance() + } +} + +impl SampleRowKeysResponse { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 self.offset_bytes != 0 { + my_size += ::protobuf::rt::value_size(2, self.offset_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.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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 default_instance() -> &'static SampleRowKeysResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SampleRowKeysResponse::new) + } +} + +impl ::protobuf::Clear for SampleRowKeysResponse { + fn clear(&mut self) { + self.row_key.clear(); + self.offset_bytes = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MutateRowRequest { + // message fields + pub table_name: ::std::string::String, + pub app_profile_id: ::std::string::String, + pub row_key: ::std::vec::Vec, + pub mutations: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MutateRowRequest { + fn default() -> &'a MutateRowRequest { + ::default_instance() + } +} + +impl MutateRowRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.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(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.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(4, &self.app_profile_id)?; + } + if !self.row_key.is_empty() { + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static MutateRowRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MutateRowRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MutateRowResponse { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MutateRowResponse { + fn default() -> &'a MutateRowResponse { + ::default_instance() + } +} + +impl MutateRowResponse { + pub fn new() -> MutateRowResponse { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for 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())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static MutateRowResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MutateRowResponse::new) + } +} + +impl ::protobuf::Clear for MutateRowResponse { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct MutateRowsRequest { + // message fields + pub table_name: ::std::string::String, + pub app_profile_id: ::std::string::String, + pub entries: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a MutateRowsRequest { + fn default() -> &'a MutateRowsRequest { + ::default_instance() + } +} + +impl MutateRowsRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.entries)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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(3, &self.app_profile_id); + } + for value in &self.entries { + 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(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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 { + 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 default_instance() -> &'static MutateRowsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MutateRowsRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[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<'a> ::std::default::Default for &'a MutateRowsRequest_Entry { + fn default() -> &'a MutateRowsRequest_Entry { + ::default_instance() + } +} + +impl MutateRowsRequest_Entry { + pub fn new() -> MutateRowsRequest_Entry { + ::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()) + } + + // repeated .google.bigtable.v2.Mutation mutations = 2; + + + 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()) + } +} + +impl ::protobuf::Message for MutateRowsRequest_Entry { + 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + 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); + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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, + // 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() + } +} + +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()) + } +} + +impl ::protobuf::Message for MutateRowsResponse { + 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_repeated_message_into(wire_type, is, &mut self.entries)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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 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 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) + } +} + +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\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%\xe0A\x02\xfaA\x1f\n\x1dbigtable.google\ + apis.com/Table\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%\xe0A\x02\xfaA\x1f\n\x1dbigtable\ + .googleapis.com/Table\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%\xe0A\x02\xfaA\x1f\n\x1dbigtable.google\ + apis.com/Table\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%\xe0A\x02\ + \xfaA\x1f\n\x1dbigtable.googleapis.com/Table\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\xdaA\ntable_name\xdaA\x19table_name,app_profile_id\ + \x82\xd3\xe4\x93\x02>\"9/v2/{table_name=projects/*/instances/*/tables/*}\ + :readRows:\x01*0\x01\x12\xd7\x01\n\rSampleRowKeys\x12(.google.bigtable.v\ + 2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse\"o\ + \x82\xd3\xe4\x93\x02@\x12>/v2/{table_name=projects/*/instances/*/tables/\ + *}:sampleRowKeys\xdaA\ntable_name\xdaA\x19table_name,app_profile_id0\x01\ + \x12\xed\x01\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.\ + google.bigtable.v2.MutateRowResponse\"\x92\x01\x82\xd3\xe4\x93\x02?\":/v\ + 2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*\xdaA\x1ct\ + able_name,row_key,mutations\xdaA+table_name,row_key,mutations,app_profil\ + e_id\x12\xde\x01\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\ + \x1a&.google.bigtable.v2.MutateRowsResponse\"\x7f\xdaA\x12table_name,ent\ + ries\xdaA!table_name,entries,app_profile_id\x82\xd3\xe4\x93\x02@\";/v2/{\ + table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*0\x01\x12\ + \xd9\x02\n\x11CheckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRo\ + wRequest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse\"\xe6\x01\x82\ + \xd3\xe4\x93\x02G\"B/v2/{table_name=projects/*/instances/*/tables/*}:che\ + ckAndMutateRow:\x01*\xdaABtable_name,row_key,predicate_filter,true_mutat\ + ions,false_mutations\xdaAQtable_name,row_key,predicate_filter,true_mutat\ + ions,false_mutations,app_profile_id\x12\x89\x02\n\x12ReadModifyWriteRow\ + \x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.\ + v2.ReadModifyWriteRowResponse\"\x93\x01\x82\xd3\xe4\x93\x02H\"C/v2/{tabl\ + e_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*\xdaA\ + \x18table_name,row_key,rules\xdaA'table_name,row_key,rules,app_profile_i\ + d\x1a\xdb\x02\xd2A\xbd\x02https://www.googleapis.com/auth/bigtable.data,\ + https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googl\ + eapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud\ + -bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,h\ + ttps://www.googleapis.com/auth/cloud-platform.read-only\xcaA\x17bigtable\ + .googleapis.comB\x93\x02\n\x16com.google.bigtable.v2B\rBigtableProtoP\ + \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::V2\xeaAW\n\x1dbigtable.googleapis.com/T\ + able\x126projects/{project}/instances/{instance}/tables/{table}J\xf2\x81\ + \x01\n\x07\x12\x05\x0e\0\xaa\x03\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb2\x04\x20Copyright\x202019\x20Google\x20LLC.\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\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\x08\n\ + \x01\x08\x12\x03\x20\04\n\t\n\x02\x08-\x12\x03\x20\04\n\t\n\x01\x08\x12\ + \x04!\0$\x02\n\x0c\n\x04\x08\x9d\x08\0\x12\x04!\0$\x02\nO\n\x02\x06\0\ + \x12\x04'\0y\x01\x1aC\x20Service\x20for\x20reading\x20from\x20and\x20wri\ + ting\x20to\x20existing\x20Bigtable\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\x046\ + \x02=\x03\x1a\xb2\x02\x20Streams\x20back\x20the\x20contents\x20of\x20all\ + \x20requested\x20rows\x20in\x20key\x20order,\x20optionally\n\x20applying\ + \x20the\x20same\x20Reader\x20filter\x20to\x20each.\x20Depending\x20on\ + \x20their\x20size,\n\x20rows\x20and\x20cells\x20may\x20be\x20broken\x20u\ + p\x20across\x20multiple\x20responses,\x20but\n\x20atomicity\x20of\x20eac\ + h\x20row\x20will\x20still\x20be\x20preserved.\x20See\x20the\n\x20ReadRow\ + sResponse\x20documentation\x20for\x20details.\n\n\x0c\n\x05\x06\0\x02\0\ + \x01\x12\x036\x06\x0e\n\x0c\n\x05\x06\0\x02\0\x02\x12\x036\x0f\x1e\n\x0c\ + \n\x05\x06\0\x02\0\x06\x12\x036)/\n\x0c\n\x05\x06\0\x02\0\x03\x12\x0360@\ + \n\r\n\x05\x06\0\x02\0\x04\x12\x047\x04:\x06\n\x11\n\t\x06\0\x02\0\x04\ + \xb0\xca\xbc\"\x12\x047\x04:\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\x04C\x02I\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\x03C\x06\x13\n\x0c\n\x05\x06\0\x02\x01\x02\x12\ + \x03C\x14(\n\x0c\n\x05\x06\0\x02\x01\x06\x12\x03C39\n\x0c\n\x05\x06\0\ + \x02\x01\x03\x12\x03C:O\n\r\n\x05\x06\0\x02\x01\x04\x12\x04D\x04F\x06\n\ + \x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04D\x04F\x06\n\x0c\n\x05\ + \x06\0\x02\x01\x04\x12\x03G\x048\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\ + \x12\x03G\x048\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03H\x04G\n\x0f\n\x08\ + \x06\0\x02\x01\x04\x9b\x08\x01\x12\x03H\x04G\n\x87\x01\n\x04\x06\0\x02\ + \x02\x12\x04M\x02T\x03\x1ay\x20Mutates\x20a\x20row\x20atomically.\x20Cel\ + ls\x20already\x20present\x20in\x20the\x20row\x20are\x20left\n\x20unchang\ + ed\x20unless\x20explicitly\x20changed\x20by\x20`mutation`.\n\n\x0c\n\x05\ + \x06\0\x02\x02\x01\x12\x03M\x06\x0f\n\x0c\n\x05\x06\0\x02\x02\x02\x12\ + \x03M\x10\x20\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03M+<\n\r\n\x05\x06\0\ + \x02\x02\x04\x12\x04N\x04Q\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\ + \x12\x04N\x04Q\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03R\x04J\n\x0f\n\ + \x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03R\x04J\n\x0c\n\x05\x06\0\x02\x02\ + \x04\x12\x03S\x04Y\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\x01\x12\x03S\ + \x04Y\n\xa0\x01\n\x04\x06\0\x02\x03\x12\x04Y\x02`\x03\x1a\x91\x01\x20Mut\ + ates\x20multiple\x20rows\x20in\x20a\x20batch.\x20Each\x20individual\x20r\ + ow\x20is\x20mutated\n\x20atomically\x20as\x20in\x20MutateRow,\x20but\x20\ + the\x20entire\x20batch\x20is\x20not\x20executed\n\x20atomically.\n\n\x0c\ + \n\x05\x06\0\x02\x03\x01\x12\x03Y\x06\x10\n\x0c\n\x05\x06\0\x02\x03\x02\ + \x12\x03Y\x11\"\n\x0c\n\x05\x06\0\x02\x03\x06\x12\x03Y-3\n\x0c\n\x05\x06\ + \0\x02\x03\x03\x12\x03Y4F\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^\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\ + \x04c\x02j\x03\x1aL\x20Mutates\x20a\x20row\x20atomically\x20based\x20on\ + \x20the\x20output\x20of\x20a\x20predicate\x20Reader\x20filter.\n\n\x0c\n\ + \x05\x06\0\x02\x04\x01\x12\x03c\x06\x17\n\x0c\n\x05\x06\0\x02\x04\x02\ + \x12\x03c\x180\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03c;T\n\r\n\x05\x06\0\ + \x02\x04\x04\x12\x04d\x04g\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\ + \x12\x04d\x04g\x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03h\x04p\n\x0f\n\ + \x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03h\x04p\n\x0c\n\x05\x06\0\x02\x04\ + \x04\x12\x03i\x04\x7f\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\x01\x12\x03i\ + \x04\x7f\n\xf6\x02\n\x04\x06\0\x02\x05\x12\x04q\x02x\x03\x1a\xe7\x02\x20\ + Modifies\x20a\x20row\x20atomically\x20on\x20the\x20server.\x20The\x20met\ + hod\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\x20the\x20gre\ + ater\x20of\x20the\x20existing\x20timestamp\x20or\x20the\x20current\x20se\ + rver\n\x20time.\x20The\x20method\x20returns\x20the\x20new\x20contents\ + \x20of\x20all\x20modified\x20cells.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\ + \x03q\x06\x18\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03q\x192\n\x0c\n\x05\ + \x06\0\x02\x05\x03\x12\x03q=W\n\r\n\x05\x06\0\x02\x05\x04\x12\x04r\x04u\ + \x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04r\x04u\x06\n\x0c\n\ + \x05\x06\0\x02\x05\x04\x12\x03v\x04F\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\ + \x08\0\x12\x03v\x04F\n\x0c\n\x05\x06\0\x02\x05\x04\x12\x03w\x04U\n\x0f\n\ + \x08\x06\0\x02\x05\x04\x9b\x08\x01\x12\x03w\x04U\n5\n\x02\x04\0\x12\x05|\ + \0\x95\x01\x01\x1a(\x20Request\x20message\x20for\x20Bigtable.ReadRows.\n\ + \n\n\n\x03\x04\0\x01\x12\x03|\x08\x17\n\xa0\x01\n\x04\x04\0\x02\0\x12\ + \x06\x80\x01\x02\x85\x01\x04\x1a\x8f\x01\x20Required.\x20The\x20unique\ + \x20name\x20of\x20the\x20table\x20from\x20which\x20to\x20read.\n\x20Valu\ + es\x20are\x20of\x20the\x20form\n\x20`projects//instances//tables/
`.\n\n\x0e\n\x05\x04\0\x02\0\x04\x12\x05\x80\x01\x02|\ + \x19\n\r\n\x05\x04\0\x02\0\x05\x12\x04\x80\x01\x02\x08\n\r\n\x05\x04\0\ + \x02\0\x01\x12\x04\x80\x01\t\x13\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x80\ + \x01\x16\x17\n\x0f\n\x05\x04\0\x02\0\x08\x12\x06\x80\x01\x18\x85\x01\x03\ + \n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\x81\x01\x04*\n\x11\n\x07\ + \x04\0\x02\0\x08\x9f\x08\x12\x06\x82\x01\x04\x84\x01\x05\n\x80\x01\n\x04\ + \x04\0\x02\x01\x12\x04\x89\x01\x02\x1c\x1ar\x20This\x20value\x20specifie\ + s\x20routing\x20for\x20replication.\x20If\x20not\x20specified,\x20the\n\ + \x20\"default\"\x20application\x20profile\x20will\x20be\x20used.\n\n\x0f\ + \n\x05\x04\0\x02\x01\x04\x12\x06\x89\x01\x02\x85\x01\x04\n\r\n\x05\x04\0\ + \x02\x01\x05\x12\x04\x89\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\ + \x89\x01\t\x17\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x89\x01\x1a\x1b\nZ\n\ + \x04\x04\0\x02\x02\x12\x04\x8c\x01\x02\x12\x1aL\x20The\x20row\x20keys\ + \x20and/or\x20ranges\x20to\x20read.\x20If\x20not\x20specified,\x20reads\ + \x20from\x20all\x20rows.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\x8c\x01\ + \x02\x89\x01\x1c\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x8c\x01\x02\x08\n\r\ + \n\x05\x04\0\x02\x02\x01\x12\x04\x8c\x01\t\r\n\r\n\x05\x04\0\x02\x02\x03\ + \x12\x04\x8c\x01\x10\x11\nw\n\x04\x04\0\x02\x03\x12\x04\x90\x01\x02\x17\ + \x1ai\x20The\x20filter\x20to\x20apply\x20to\x20the\x20contents\x20of\x20\ + the\x20specified\x20row(s).\x20If\x20unset,\n\x20reads\x20the\x20entiret\ + y\x20of\x20each\x20row.\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\x90\x01\ + \x02\x8c\x01\x12\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x90\x01\x02\x0b\n\r\ + \n\x05\x04\0\x02\x03\x01\x12\x04\x90\x01\x0c\x12\n\r\n\x05\x04\0\x02\x03\ + \x03\x12\x04\x90\x01\x15\x16\n\x83\x01\n\x04\x04\0\x02\x04\x12\x04\x94\ + \x01\x02\x17\x1au\x20The\x20read\x20will\x20terminate\x20after\x20commit\ + ting\x20to\x20N\x20rows'\x20worth\x20of\x20results.\x20The\n\x20default\ + \x20(zero)\x20is\x20to\x20return\x20all\x20results.\n\n\x0f\n\x05\x04\0\ + \x02\x04\x04\x12\x06\x94\x01\x02\x90\x01\x17\n\r\n\x05\x04\0\x02\x04\x05\ + \x12\x04\x94\x01\x02\x07\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\x94\x01\x08\ + \x12\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\x94\x01\x15\x16\n7\n\x02\x04\ + \x01\x12\x06\x98\x01\0\xe4\x01\x01\x1a)\x20Response\x20message\x20for\ + \x20Bigtable.ReadRows.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x98\x01\x08\x18\ + \nf\n\x04\x04\x01\x03\0\x12\x06\x9b\x01\x02\xd7\x01\x03\x1aV\x20Specifie\ + s\x20a\x20piece\x20of\x20a\x20row's\x20contents\x20returned\x20as\x20par\ + t\x20of\x20the\x20read\n\x20response\x20stream.\n\n\r\n\x05\x04\x01\x03\ + \0\x01\x12\x04\x9b\x01\n\x13\n\xf9\x01\n\x06\x04\x01\x03\0\x02\0\x12\x04\ + \xa0\x01\x04\x16\x1a\xe8\x01\x20The\x20row\x20key\x20for\x20this\x20chun\ + k\x20of\x20data.\x20\x20If\x20the\x20row\x20key\x20is\x20empty,\n\x20thi\ + s\x20CellChunk\x20is\x20a\x20continuation\x20of\x20the\x20same\x20row\ + \x20as\x20the\x20previous\n\x20CellChunk\x20in\x20the\x20response\x20str\ + eam,\x20even\x20if\x20that\x20CellChunk\x20was\x20in\x20a\n\x20previous\ + \x20ReadRowsResponse\x20message.\n\n\x11\n\x07\x04\x01\x03\0\x02\0\x04\ + \x12\x06\xa0\x01\x04\x9b\x01\x15\n\x0f\n\x07\x04\x01\x03\0\x02\0\x05\x12\ + \x04\xa0\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\0\x01\x12\x04\xa0\x01\n\ + \x11\n\x0f\n\x07\x04\x01\x03\0\x02\0\x03\x12\x04\xa0\x01\x14\x15\n\xf3\ + \x02\n\x06\x04\x01\x03\0\x02\x01\x12\x04\xa8\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\x11\n\x07\x04\x01\x03\0\x02\x01\ + \x04\x12\x06\xa8\x01\x04\xa0\x01\x16\n\x0f\n\x07\x04\x01\x03\0\x02\x01\ + \x06\x12\x04\xa8\x01\x04\x1f\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x01\x12\ + \x04\xa8\x01\x20+\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x04\xa8\x01.\ + /\n\xbb\x02\n\x06\x04\x01\x03\0\x02\x02\x12\x04\xaf\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\x11\n\x07\x04\x01\x03\0\x02\x02\x04\x12\x06\ + \xaf\x01\x04\xa8\x010\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x06\x12\x04\xaf\ + \x01\x04\x1e\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x01\x12\x04\xaf\x01\x1f(\ + \n\x0f\n\x07\x04\x01\x03\0\x02\x02\x03\x12\x04\xaf\x01+,\n\xdd\x03\n\x06\ + \x04\x01\x03\0\x02\x03\x12\x04\xb9\x01\x04\x1f\x1a\xcc\x03\x20The\x20cel\ + l's\x20stored\x20timestamp,\x20which\x20also\x20uniquely\x20identifies\ + \x20it\n\x20within\x20its\x20column.\x20\x20Values\x20are\x20always\x20e\ + xpressed\x20in\n\x20microseconds,\x20but\x20individual\x20tables\x20may\ + \x20set\x20a\x20coarser\n\x20granularity\x20to\x20further\x20restrict\ + \x20the\x20allowed\x20values.\x20For\n\x20example,\x20a\x20table\x20whic\ + h\x20specifies\x20millisecond\x20granularity\x20will\n\x20only\x20allow\ + \x20values\x20of\x20`timestamp_micros`\x20which\x20are\x20multiples\x20o\ + f\n\x201000.\x20\x20Timestamps\x20are\x20only\x20set\x20in\x20the\x20fir\ + st\x20CellChunk\x20per\x20cell\n\x20(for\x20cells\x20split\x20into\x20mu\ + ltiple\x20chunks).\n\n\x11\n\x07\x04\x01\x03\0\x02\x03\x04\x12\x06\xb9\ + \x01\x04\xaf\x01-\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x05\x12\x04\xb9\x01\ + \x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x01\x12\x04\xb9\x01\n\x1a\n\x0f\ + \n\x07\x04\x01\x03\0\x02\x03\x03\x12\x04\xb9\x01\x1d\x1e\n\x95\x01\n\x06\ + \x04\x01\x03\0\x02\x04\x12\x04\xbe\x01\x04\x1f\x1a\x84\x01\x20Labels\x20\ + applied\x20to\x20the\x20cell\x20by\x20a\n\x20[RowFilter][google.bigtable\ + .v2.RowFilter].\x20\x20Labels\x20are\x20only\x20set\n\x20on\x20the\x20fi\ + rst\x20CellChunk\x20per\x20cell.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x04\ + \x12\x04\xbe\x01\x04\x0c\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x05\x12\x04\ + \xbe\x01\r\x13\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x01\x12\x04\xbe\x01\x14\ + \x1a\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x03\x12\x04\xbe\x01\x1d\x1e\n\xbf\ + \x02\n\x06\x04\x01\x03\0\x02\x05\x12\x04\xc5\x01\x04\x14\x1a\xae\x02\x20\ + The\x20value\x20stored\x20in\x20the\x20cell.\x20\x20Cell\x20values\x20ca\ + n\x20be\x20split\x20across\n\x20multiple\x20CellChunks.\x20\x20In\x20tha\ + t\x20case\x20only\x20the\x20value\x20field\x20will\x20be\n\x20set\x20in\ + \x20CellChunks\x20after\x20the\x20first:\x20the\x20timestamp\x20and\x20l\ + abels\n\x20will\x20only\x20be\x20present\x20in\x20the\x20first\x20CellCh\ + unk,\x20even\x20if\x20the\x20first\n\x20CellChunk\x20came\x20in\x20a\x20\ + previous\x20ReadRowsResponse.\n\n\x11\n\x07\x04\x01\x03\0\x02\x05\x04\ + \x12\x06\xc5\x01\x04\xbe\x01\x1f\n\x0f\n\x07\x04\x01\x03\0\x02\x05\x05\ + \x12\x04\xc5\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\x05\x01\x12\x04\xc5\ + \x01\n\x0f\n\x0f\n\x07\x04\x01\x03\0\x02\x05\x03\x12\x04\xc5\x01\x12\x13\ + \n\x85\x02\n\x06\x04\x01\x03\0\x02\x06\x12\x04\xcb\x01\x04\x19\x1a\xf4\ + \x01\x20If\x20this\x20CellChunk\x20is\x20part\x20of\x20a\x20chunked\x20c\ + ell\x20value\x20and\x20this\x20is\n\x20not\x20the\x20final\x20chunk\x20o\ + f\x20that\x20cell,\x20value_size\x20will\x20be\x20set\x20to\x20the\n\x20\ + total\x20length\x20of\x20the\x20cell\x20value.\x20\x20The\x20client\x20c\ + an\x20use\x20this\x20size\n\x20to\x20pre-allocate\x20memory\x20to\x20hol\ + d\x20the\x20full\x20cell\x20value.\n\n\x11\n\x07\x04\x01\x03\0\x02\x06\ + \x04\x12\x06\xcb\x01\x04\xc5\x01\x14\n\x0f\n\x07\x04\x01\x03\0\x02\x06\ + \x05\x12\x04\xcb\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\x06\x01\x12\x04\ + \xcb\x01\n\x14\n\x0f\n\x07\x04\x01\x03\0\x02\x06\x03\x12\x04\xcb\x01\x17\ + \x18\nR\n\x06\x04\x01\x03\0\x08\0\x12\x06\xce\x01\x04\xd6\x01\x05\x1a@\ + \x20Signals\x20to\x20the\x20client\x20concerning\x20previous\x20CellChun\ + ks\x20received.\n\n\x0f\n\x07\x04\x01\x03\0\x08\0\x01\x12\x04\xce\x01\n\ + \x14\n\x85\x01\n\x06\x04\x01\x03\0\x02\x07\x12\x04\xd1\x01\x06\x19\x1au\ + \x20Indicates\x20that\x20the\x20client\x20should\x20drop\x20all\x20previ\ + ous\x20chunks\x20for\n\x20`row_key`,\x20as\x20it\x20will\x20be\x20re-rea\ + d\x20from\x20the\x20beginning.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x07\x05\ + \x12\x04\xd1\x01\x06\n\n\x0f\n\x07\x04\x01\x03\0\x02\x07\x01\x12\x04\xd1\ + \x01\x0b\x14\n\x0f\n\x07\x04\x01\x03\0\x02\x07\x03\x12\x04\xd1\x01\x17\ + \x18\n\x83\x01\n\x06\x04\x01\x03\0\x02\x08\x12\x04\xd5\x01\x06\x1a\x1as\ + \x20Indicates\x20that\x20the\x20client\x20can\x20safely\x20process\x20al\ + l\x20previous\x20chunks\x20for\n\x20`row_key`,\x20as\x20its\x20data\x20h\ + as\x20been\x20fully\x20read.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x08\x05\x12\ + \x04\xd5\x01\x06\n\n\x0f\n\x07\x04\x01\x03\0\x02\x08\x01\x12\x04\xd5\x01\ + \x0b\x15\n\x0f\n\x07\x04\x01\x03\0\x02\x08\x03\x12\x04\xd5\x01\x18\x19\n\ + M\n\x04\x04\x01\x02\0\x12\x04\xda\x01\x02\x20\x1a?\x20A\x20collection\ + \x20of\x20a\x20row's\x20contents\x20as\x20part\x20of\x20the\x20read\x20r\ + equest.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\xda\x01\x02\n\n\r\n\x05\ + \x04\x01\x02\0\x06\x12\x04\xda\x01\x0b\x14\n\r\n\x05\x04\x01\x02\0\x01\ + \x12\x04\xda\x01\x15\x1b\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xda\x01\x1e\ + \x1f\n\xc5\x03\n\x04\x04\x01\x02\x01\x12\x04\xe3\x01\x02!\x1a\xb6\x03\ + \x20Optionally\x20the\x20server\x20might\x20return\x20the\x20row\x20key\ + \x20of\x20the\x20last\x20row\x20it\n\x20has\x20scanned.\x20\x20The\x20cl\ + ient\x20can\x20use\x20this\x20to\x20construct\x20a\x20more\n\x20efficien\ + t\x20retry\x20request\x20if\x20needed:\x20any\x20row\x20keys\x20or\x20po\ + rtions\x20of\n\x20ranges\x20less\x20than\x20this\x20row\x20key\x20can\ + \x20be\x20dropped\x20from\x20the\x20request.\n\x20This\x20is\x20primaril\ + y\x20useful\x20for\x20cases\x20where\x20the\x20server\x20has\x20read\x20\ + a\n\x20lot\x20of\x20data\x20that\x20was\x20filtered\x20out\x20since\x20t\ + he\x20last\x20committed\x20row\n\x20key,\x20allowing\x20the\x20client\ + \x20to\x20skip\x20that\x20work\x20on\x20a\x20retry.\n\n\x0f\n\x05\x04\ + \x01\x02\x01\x04\x12\x06\xe3\x01\x02\xda\x01\x20\n\r\n\x05\x04\x01\x02\ + \x01\x05\x12\x04\xe3\x01\x02\x07\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\ + \xe3\x01\x08\x1c\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xe3\x01\x1f\x20\n\ + ;\n\x02\x04\x02\x12\x06\xe7\x01\0\xf5\x01\x01\x1a-\x20Request\x20message\ + \x20for\x20Bigtable.SampleRowKeys.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xe7\ + \x01\x08\x1c\n\xab\x01\n\x04\x04\x02\x02\0\x12\x06\xeb\x01\x02\xf0\x01\ + \x04\x1a\x9a\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20t\ + able\x20from\x20which\x20to\x20sample\x20row\x20keys.\n\x20Values\x20are\ + \x20of\x20the\x20form\n\x20`projects//instances//tabl\ + es/
`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xeb\x01\x02\xe7\x01\ + \x1e\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xeb\x01\x02\x08\n\r\n\x05\x04\ + \x02\x02\0\x01\x12\x04\xeb\x01\t\x13\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\ + \xeb\x01\x16\x17\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xeb\x01\x18\xf0\ + \x01\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xec\x01\x04*\n\ + \x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\xed\x01\x04\xef\x01\x05\n\ + \x80\x01\n\x04\x04\x02\x02\x01\x12\x04\xf4\x01\x02\x1c\x1ar\x20This\x20v\ + alue\x20specifies\x20routing\x20for\x20replication.\x20If\x20not\x20spec\ + ified,\x20the\n\x20\"default\"\x20application\x20profile\x20will\x20be\ + \x20used.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xf4\x01\x02\xf0\x01\ + \x04\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xf4\x01\x02\x08\n\r\n\x05\x04\ + \x02\x02\x01\x01\x12\x04\xf4\x01\t\x17\n\r\n\x05\x04\x02\x02\x01\x03\x12\ + \x04\xf4\x01\x1a\x1b\n<\n\x02\x04\x03\x12\x06\xf8\x01\0\x87\x02\x01\x1a.\ + \x20Response\x20message\x20for\x20Bigtable.SampleRowKeys.\n\n\x0b\n\x03\ + \x04\x03\x01\x12\x04\xf8\x01\x08\x1d\n\xe0\x03\n\x04\x04\x03\x02\0\x12\ + \x04\x80\x02\x02\x14\x1a\xd1\x03\x20Sorted\x20streamed\x20sequence\x20of\ + \x20sample\x20row\x20keys\x20in\x20the\x20table.\x20The\x20table\x20migh\ + t\n\x20have\x20contents\x20before\x20the\x20first\x20row\x20key\x20in\ + \x20the\x20list\x20and\x20after\x20the\x20last\x20one,\n\x20but\x20a\x20\ + key\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\x20lis\ + t\x20may\x20not\x20have\x20ever\x20been\x20written\x20to\x20or\x20read\n\ + \x20from,\x20and\x20users\x20should\x20therefore\x20not\x20make\x20any\ + \x20assumptions\x20about\x20the\x20row\x20key\n\x20structure\x20that\x20\ + are\x20specific\x20to\x20their\x20use\x20case.\n\n\x0f\n\x05\x04\x03\x02\ + \0\x04\x12\x06\x80\x02\x02\xf8\x01\x1f\n\r\n\x05\x04\x03\x02\0\x05\x12\ + \x04\x80\x02\x02\x07\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x80\x02\x08\x0f\ + \n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x80\x02\x12\x13\n\x80\x02\n\x04\x04\ + \x03\x02\x01\x12\x04\x86\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\x20\ + of\x20all\x20rows\x20between\x20two\x20subsequent\n\x20samples\x20would\ + \x20require\x20space\x20roughly\x20equal\x20to\x20the\x20difference\x20i\ + n\x20their\n\x20`offset_bytes`\x20fields.\n\n\x0f\n\x05\x04\x03\x02\x01\ + \x04\x12\x06\x86\x02\x02\x80\x02\x14\n\r\n\x05\x04\x03\x02\x01\x05\x12\ + \x04\x86\x02\x02\x07\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\x86\x02\x08\ + \x14\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x86\x02\x17\x18\n7\n\x02\x04\ + \x04\x12\x06\x8a\x02\0\xa0\x02\x01\x1a)\x20Request\x20message\x20for\x20\ + Bigtable.MutateRow.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x8a\x02\x08\x18\n\ + \xb5\x01\n\x04\x04\x04\x02\0\x12\x06\x8e\x02\x02\x93\x02\x04\x1a\xa4\x01\ + \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20wh\ + ich\x20the\x20mutation\x20should\x20be\x20applied.\n\x20Values\x20are\ + \x20of\x20the\x20form\n\x20`projects//instances//tabl\ + es/
`.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\x8e\x02\x02\x8a\x02\ + \x1a\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x8e\x02\x02\x08\n\r\n\x05\x04\ + \x04\x02\0\x01\x12\x04\x8e\x02\t\x13\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ + \x8e\x02\x16\x17\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\x8e\x02\x18\x93\ + \x02\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\x8f\x02\x04*\n\ + \x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\x90\x02\x04\x92\x02\x05\n\ + \x80\x01\n\x04\x04\x04\x02\x01\x12\x04\x97\x02\x02\x1c\x1ar\x20This\x20v\ + alue\x20specifies\x20routing\x20for\x20replication.\x20If\x20not\x20spec\ + ified,\x20the\n\x20\"default\"\x20application\x20profile\x20will\x20be\ + \x20used.\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\x97\x02\x02\x93\x02\ + \x04\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\x97\x02\x02\x08\n\r\n\x05\x04\ + \x04\x02\x01\x01\x12\x04\x97\x02\t\x17\n\r\n\x05\x04\x04\x02\x01\x03\x12\ + \x04\x97\x02\x1a\x1b\nU\n\x04\x04\x04\x02\x02\x12\x04\x9a\x02\x02=\x1aG\ + \x20Required.\x20The\x20key\x20of\x20the\x20row\x20to\x20which\x20the\ + \x20mutation\x20should\x20be\x20applied.\n\n\x0f\n\x05\x04\x04\x02\x02\ + \x04\x12\x06\x9a\x02\x02\x97\x02\x1c\n\r\n\x05\x04\x04\x02\x02\x05\x12\ + \x04\x9a\x02\x02\x07\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\x9a\x02\x08\ + \x0f\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x9a\x02\x12\x13\n\r\n\x05\x04\ + \x04\x02\x02\x08\x12\x04\x9a\x02\x14<\n\x10\n\x08\x04\x04\x02\x02\x08\ + \x9c\x08\0\x12\x04\x9a\x02\x15;\n\xe1\x01\n\x04\x04\x04\x02\x03\x12\x04\ + \x9f\x02\x02K\x1a\xd2\x01\x20Required.\x20Changes\x20to\x20be\x20atomica\ + lly\x20applied\x20to\x20the\x20specified\x20row.\x20Entries\x20are\x20ap\ + plied\n\x20in\x20order,\x20meaning\x20that\x20earlier\x20mutations\x20ca\ + n\x20be\x20masked\x20by\x20later\x20ones.\n\x20Must\x20contain\x20at\x20\ + least\x20one\x20entry\x20and\x20at\x20most\x20100000.\n\n\r\n\x05\x04\ + \x04\x02\x03\x04\x12\x04\x9f\x02\x02\n\n\r\n\x05\x04\x04\x02\x03\x06\x12\ + \x04\x9f\x02\x0b\x13\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\x9f\x02\x14\ + \x1d\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\x9f\x02\x20!\n\r\n\x05\x04\ + \x04\x02\x03\x08\x12\x04\x9f\x02\"J\n\x10\n\x08\x04\x04\x02\x03\x08\x9c\ + \x08\0\x12\x04\x9f\x02#I\n8\n\x02\x04\x05\x12\x06\xa3\x02\0\xa5\x02\x01\ + \x1a*\x20Response\x20message\x20for\x20Bigtable.MutateRow.\n\n\x0b\n\x03\ + \x04\x05\x01\x12\x04\xa3\x02\x08\x19\n?\n\x02\x04\x06\x12\x06\xa8\x02\0\ + \xc7\x02\x01\x1a1\x20Request\x20message\x20for\x20BigtableService.Mutate\ + Rows.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xa8\x02\x08\x19\n-\n\x04\x04\x06\ + \x03\0\x12\x06\xaa\x02\x02\xb3\x02\x03\x1a\x1d\x20A\x20mutation\x20for\ + \x20a\x20given\x20row.\n\n\r\n\x05\x04\x06\x03\0\x01\x12\x04\xaa\x02\n\ + \x0f\nP\n\x06\x04\x06\x03\0\x02\0\x12\x04\xac\x02\x04\x16\x1a@\x20The\ + \x20key\x20of\x20the\x20row\x20to\x20which\x20the\x20`mutations`\x20shou\ + ld\x20be\x20applied.\n\n\x11\n\x07\x04\x06\x03\0\x02\0\x04\x12\x06\xac\ + \x02\x04\xaa\x02\x11\n\x0f\n\x07\x04\x06\x03\0\x02\0\x05\x12\x04\xac\x02\ + \x04\t\n\x0f\n\x07\x04\x06\x03\0\x02\0\x01\x12\x04\xac\x02\n\x11\n\x0f\n\ + \x07\x04\x06\x03\0\x02\0\x03\x12\x04\xac\x02\x14\x15\n\xda\x01\n\x06\x04\ + \x06\x03\0\x02\x01\x12\x04\xb2\x02\x04M\x1a\xc9\x01\x20Required.\x20Chan\ + ges\x20to\x20be\x20atomically\x20applied\x20to\x20the\x20specified\x20ro\ + w.\x20Mutations\x20are\n\x20applied\x20in\x20order,\x20meaning\x20that\ + \x20earlier\x20mutations\x20can\x20be\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\xb2\x02\x04\x0c\n\x0f\n\x07\x04\ + \x06\x03\0\x02\x01\x06\x12\x04\xb2\x02\r\x15\n\x0f\n\x07\x04\x06\x03\0\ + \x02\x01\x01\x12\x04\xb2\x02\x16\x1f\n\x0f\n\x07\x04\x06\x03\0\x02\x01\ + \x03\x12\x04\xb2\x02\"#\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x08\x12\x04\ + \xb2\x02$L\n\x12\n\n\x04\x06\x03\0\x02\x01\x08\x9c\x08\0\x12\x04\xb2\x02\ + %K\nb\n\x04\x04\x06\x02\0\x12\x06\xb6\x02\x02\xbb\x02\x04\x1aR\x20Requir\ + ed.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20which\x20the\ + \x20mutations\x20should\x20be\x20applied.\n\n\x0f\n\x05\x04\x06\x02\0\ + \x04\x12\x06\xb6\x02\x02\xb3\x02\x03\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\ + \xb6\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xb6\x02\t\x13\n\r\n\ + \x05\x04\x06\x02\0\x03\x12\x04\xb6\x02\x16\x17\n\x0f\n\x05\x04\x06\x02\0\ + \x08\x12\x06\xb6\x02\x18\xbb\x02\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\ + \x08\0\x12\x04\xb7\x02\x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\ + \x06\xb8\x02\x04\xba\x02\x05\n\x80\x01\n\x04\x04\x06\x02\x01\x12\x04\xbf\ + \x02\x02\x1c\x1ar\x20This\x20value\x20specifies\x20routing\x20for\x20rep\ + lication.\x20If\x20not\x20specified,\x20the\n\x20\"default\"\x20applicat\ + ion\x20profile\x20will\x20be\x20used.\n\n\x0f\n\x05\x04\x06\x02\x01\x04\ + \x12\x06\xbf\x02\x02\xbb\x02\x04\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\ + \xbf\x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xbf\x02\t\x17\n\r\ + \n\x05\x04\x06\x02\x01\x03\x12\x04\xbf\x02\x1a\x1b\n\xcb\x02\n\x04\x04\ + \x06\x02\x02\x12\x04\xc6\x02\x02F\x1a\xbc\x02\x20Required.\x20The\x20row\ + \x20keys\x20and\x20corresponding\x20mutations\x20to\x20be\x20applied\x20\ + in\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\x20s\ + ame\x20row).\n\x20At\x20least\x20one\x20entry\x20must\x20be\x20specified\ + ,\x20and\x20in\x20total\x20the\x20entries\x20can\n\x20contain\x20at\x20m\ + ost\x20100000\x20mutations.\n\n\r\n\x05\x04\x06\x02\x02\x04\x12\x04\xc6\ + \x02\x02\n\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\xc6\x02\x0b\x10\n\r\n\ + \x05\x04\x06\x02\x02\x01\x12\x04\xc6\x02\x11\x18\n\r\n\x05\x04\x06\x02\ + \x02\x03\x12\x04\xc6\x02\x1b\x1c\n\r\n\x05\x04\x06\x02\x02\x08\x12\x04\ + \xc6\x02\x1dE\n\x10\n\x08\x04\x06\x02\x02\x08\x9c\x08\0\x12\x04\xc6\x02\ + \x1eD\n@\n\x02\x04\x07\x12\x06\xca\x02\0\xda\x02\x01\x1a2\x20Response\ + \x20message\x20for\x20BigtableService.MutateRows.\n\n\x0b\n\x03\x04\x07\ + \x01\x12\x04\xca\x02\x08\x1a\nS\n\x04\x04\x07\x03\0\x12\x06\xcc\x02\x02\ + \xd6\x02\x03\x1aC\x20The\x20result\x20of\x20applying\x20a\x20passed\x20m\ + utation\x20in\x20the\x20original\x20request.\n\n\r\n\x05\x04\x07\x03\0\ + \x01\x12\x04\xcc\x02\n\x0f\nz\n\x06\x04\x07\x03\0\x02\0\x12\x04\xcf\x02\ + \x04\x14\x1aj\x20The\x20index\x20into\x20the\x20original\x20request's\ + \x20`entries`\x20list\x20of\x20the\x20Entry\n\x20for\x20which\x20a\x20re\ + sult\x20is\x20being\x20reported.\n\n\x11\n\x07\x04\x07\x03\0\x02\0\x04\ + \x12\x06\xcf\x02\x04\xcc\x02\x11\n\x0f\n\x07\x04\x07\x03\0\x02\0\x05\x12\ + \x04\xcf\x02\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\xcf\x02\n\ + \x0f\n\x0f\n\x07\x04\x07\x03\0\x02\0\x03\x12\x04\xcf\x02\x12\x13\n\x9e\ + \x02\n\x06\x04\x07\x03\0\x02\x01\x12\x04\xd5\x02\x04!\x1a\x8d\x02\x20The\ + \x20result\x20of\x20the\x20request\x20Entry\x20identified\x20by\x20`inde\ + x`.\n\x20Depending\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\x20reported\x20for\x20both\x20entries.\n\n\x11\n\x07\x04\ + \x07\x03\0\x02\x01\x04\x12\x06\xd5\x02\x04\xcf\x02\x14\n\x0f\n\x07\x04\ + \x07\x03\0\x02\x01\x06\x12\x04\xd5\x02\x04\x15\n\x0f\n\x07\x04\x07\x03\0\ + \x02\x01\x01\x12\x04\xd5\x02\x16\x1c\n\x0f\n\x07\x04\x07\x03\0\x02\x01\ + \x03\x12\x04\xd5\x02\x1f\x20\nG\n\x04\x04\x07\x02\0\x12\x04\xd9\x02\x02\ + \x1d\x1a9\x20One\x20or\x20more\x20results\x20for\x20Entries\x20from\x20t\ + he\x20batch\x20request.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\xd9\x02\ + \x02\n\n\r\n\x05\x04\x07\x02\0\x06\x12\x04\xd9\x02\x0b\x10\n\r\n\x05\x04\ + \x07\x02\0\x01\x12\x04\xd9\x02\x11\x18\n\r\n\x05\x04\x07\x02\0\x03\x12\ + \x04\xd9\x02\x1b\x1c\n?\n\x02\x04\x08\x12\x06\xdd\x02\0\x83\x03\x01\x1a1\ + \x20Request\x20message\x20for\x20Bigtable.CheckAndMutateRow.\n\n\x0b\n\ + \x03\x04\x08\x01\x12\x04\xdd\x02\x08\x20\n\xc2\x01\n\x04\x04\x08\x02\0\ + \x12\x06\xe2\x02\x02\xe7\x02\x04\x1a\xb1\x01\x20Required.\x20The\x20uniq\ + ue\x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20conditional\ + \x20mutation\x20should\x20be\n\x20applied.\n\x20Values\x20are\x20of\x20t\ + he\x20form\n\x20`projects//instances//tables/
`\ + .\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xe2\x02\x02\xdd\x02\"\n\r\n\ + \x05\x04\x08\x02\0\x05\x12\x04\xe2\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\ + \x01\x12\x04\xe2\x02\t\x13\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xe2\x02\ + \x16\x17\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xe2\x02\x18\xe7\x02\x03\n\ + \x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xe3\x02\x04*\n\x11\n\x07\ + \x04\x08\x02\0\x08\x9f\x08\x12\x06\xe4\x02\x04\xe6\x02\x05\n\x80\x01\n\ + \x04\x04\x08\x02\x01\x12\x04\xeb\x02\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\x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xeb\x02\x02\xe7\x02\x04\n\r\n\ + \x05\x04\x08\x02\x01\x05\x12\x04\xeb\x02\x02\x08\n\r\n\x05\x04\x08\x02\ + \x01\x01\x12\x04\xeb\x02\t\x17\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xeb\ + \x02\x1a\x1b\na\n\x04\x04\x08\x02\x02\x12\x04\xee\x02\x02=\x1aS\x20Requi\ + red.\x20The\x20key\x20of\x20the\x20row\x20to\x20which\x20the\x20conditio\ + nal\x20mutation\x20should\x20be\x20applied.\n\n\x0f\n\x05\x04\x08\x02\ + \x02\x04\x12\x06\xee\x02\x02\xeb\x02\x1c\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\x0f\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xee\x02\x12\x13\n\r\n\x05\ + \x04\x08\x02\x02\x08\x12\x04\xee\x02\x14<\n\x10\n\x08\x04\x08\x02\x02\ + \x08\x9c\x08\0\x12\x04\xee\x02\x15;\n\x80\x02\n\x04\x04\x08\x02\x03\x12\ + \x04\xf4\x02\x02!\x1a\xf1\x01\x20The\x20filter\x20to\x20be\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\x20b\ + e\x20executed.\x20If\x20unset,\x20checks\x20that\x20the\x20row\x20contai\ + ns\n\x20any\x20values\x20at\x20all.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\ + \x12\x06\xf4\x02\x02\xee\x02=\n\r\n\x05\x04\x08\x02\x03\x06\x12\x04\xf4\ + \x02\x02\x0b\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\xf4\x02\x0c\x1c\n\r\n\ + \x05\x04\x08\x02\x03\x03\x12\x04\xf4\x02\x1f\x20\n\xc1\x02\n\x04\x04\x08\ + \x02\x04\x12\x04\xfb\x02\x02'\x1a\xb2\x02\x20Changes\x20to\x20be\x20atom\ + ically\x20applied\x20to\x20the\x20specified\x20row\x20if\x20`predicate_f\ + ilter`\n\x20yields\x20at\x20least\x20one\x20cell\x20when\x20applied\x20t\ + o\x20`row_key`.\x20Entries\x20are\x20applied\x20in\n\x20order,\x20meanin\ + g\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\x08\x02\x04\x04\x12\x04\xfb\x02\x02\n\n\r\n\x05\x04\x08\x02\ + \x04\x06\x12\x04\xfb\x02\x0b\x13\n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\ + \xfb\x02\x14\"\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\xfb\x02%&\n\xc0\x02\ + \n\x04\x04\x08\x02\x05\x12\x04\x82\x03\x02(\x1a\xb1\x02\x20Changes\x20to\ + \x20be\x20atomically\x20applied\x20to\x20the\x20specified\x20row\x20if\ + \x20`predicate_filter`\n\x20does\x20not\x20yield\x20any\x20cells\x20when\ + \x20applied\x20to\x20`row_key`.\x20Entries\x20are\x20applied\x20in\n\x20\ + order,\x20meaning\x20that\x20earlier\x20mutations\x20can\x20be\x20masked\ + \x20by\x20later\x20ones.\n\x20Must\x20contain\x20at\x20least\x20one\x20e\ + ntry\x20if\x20`true_mutations`\x20is\x20empty,\x20and\x20at\x20most\n\ + \x20100000.\n\n\r\n\x05\x04\x08\x02\x05\x04\x12\x04\x82\x03\x02\n\n\r\n\ + \x05\x04\x08\x02\x05\x06\x12\x04\x82\x03\x0b\x13\n\r\n\x05\x04\x08\x02\ + \x05\x01\x12\x04\x82\x03\x14#\n\r\n\x05\x04\x08\x02\x05\x03\x12\x04\x82\ + \x03&'\n@\n\x02\x04\t\x12\x06\x86\x03\0\x8a\x03\x01\x1a2\x20Response\x20\ + message\x20for\x20Bigtable.CheckAndMutateRow.\n\n\x0b\n\x03\x04\t\x01\ + \x12\x04\x86\x03\x08!\nk\n\x04\x04\t\x02\0\x12\x04\x89\x03\x02\x1d\x1a]\ + \x20Whether\x20or\x20not\x20the\x20request's\x20`predicate_filter`\x20yi\ + elded\x20any\x20results\x20for\n\x20the\x20specified\x20row.\n\n\x0f\n\ + \x05\x04\t\x02\0\x04\x12\x06\x89\x03\x02\x86\x03#\n\r\n\x05\x04\t\x02\0\ + \x05\x12\x04\x89\x03\x02\x06\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x89\x03\ + \x07\x18\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x89\x03\x1b\x1c\n@\n\x02\x04\ + \n\x12\x06\x8d\x03\0\xa4\x03\x01\x1a2\x20Request\x20message\x20for\x20Bi\ + gtable.ReadModifyWriteRow.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x8d\x03\x08!\ + \n\xc5\x01\n\x04\x04\n\x02\0\x12\x06\x92\x03\x02\x97\x03\x04\x1a\xb4\x01\ + \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20wh\ + ich\x20the\x20read/modify/write\x20rules\x20should\x20be\n\x20applied.\n\ + \x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instance\ + s//tables/
`.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\x92\ + \x03\x02\x8d\x03#\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x92\x03\x02\x08\n\r\ + \n\x05\x04\n\x02\0\x01\x12\x04\x92\x03\t\x13\n\r\n\x05\x04\n\x02\0\x03\ + \x12\x04\x92\x03\x16\x17\n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\x92\x03\x18\ + \x97\x03\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\x93\x03\x04*\ + \n\x11\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x06\x94\x03\x04\x96\x03\x05\n\ + \x80\x01\n\x04\x04\n\x02\x01\x12\x04\x9b\x03\x02\x1c\x1ar\x20This\x20val\ + ue\x20specifies\x20routing\x20for\x20replication.\x20If\x20not\x20specif\ + ied,\x20the\n\x20\"default\"\x20application\x20profile\x20will\x20be\x20\ + used.\n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\x9b\x03\x02\x97\x03\x04\n\ + \r\n\x05\x04\n\x02\x01\x05\x12\x04\x9b\x03\x02\x08\n\r\n\x05\x04\n\x02\ + \x01\x01\x12\x04\x9b\x03\t\x17\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\x9b\ + \x03\x1a\x1b\nd\n\x04\x04\n\x02\x02\x12\x04\x9e\x03\x02=\x1aV\x20Require\ + d.\x20The\x20key\x20of\x20the\x20row\x20to\x20which\x20the\x20read/modif\ + y/write\x20rules\x20should\x20be\x20applied.\n\n\x0f\n\x05\x04\n\x02\x02\ + \x04\x12\x06\x9e\x03\x02\x9b\x03\x1c\n\r\n\x05\x04\n\x02\x02\x05\x12\x04\ + \x9e\x03\x02\x07\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\x9e\x03\x08\x0f\n\r\ + \n\x05\x04\n\x02\x02\x03\x12\x04\x9e\x03\x12\x13\n\r\n\x05\x04\n\x02\x02\ + \x08\x12\x04\x9e\x03\x14<\n\x10\n\x08\x04\n\x02\x02\x08\x9c\x08\0\x12\ + \x04\x9e\x03\x15;\n\xd1\x01\n\x04\x04\n\x02\x03\x12\x04\xa3\x03\x02R\x1a\ + \xc2\x01\x20Required.\x20Rules\x20specifying\x20how\x20the\x20specified\ + \x20row's\x20contents\x20are\x20to\x20be\x20transformed\n\x20into\x20wri\ + tes.\x20Entries\x20are\x20applied\x20in\x20order,\x20meaning\x20that\x20\ + earlier\x20rules\x20will\n\x20affect\x20the\x20results\x20of\x20later\ + \x20ones.\n\n\r\n\x05\x04\n\x02\x03\x04\x12\x04\xa3\x03\x02\n\n\r\n\x05\ + \x04\n\x02\x03\x06\x12\x04\xa3\x03\x0b\x1e\n\r\n\x05\x04\n\x02\x03\x01\ + \x12\x04\xa3\x03\x1f$\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\xa3\x03'(\n\r\ + \n\x05\x04\n\x02\x03\x08\x12\x04\xa3\x03)Q\n\x10\n\x08\x04\n\x02\x03\x08\ + \x9c\x08\0\x12\x04\xa3\x03*P\nA\n\x02\x04\x0b\x12\x06\xa7\x03\0\xaa\x03\ + \x01\x1a3\x20Response\x20message\x20for\x20Bigtable.ReadModifyWriteRow.\ + \n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xa7\x03\x08\"\nW\n\x04\x04\x0b\x02\0\ + \x12\x04\xa9\x03\x02\x0e\x1aI\x20A\x20Row\x20containing\x20the\x20new\ + \x20contents\x20of\x20all\x20cells\x20modified\x20by\x20the\x20request.\ + \n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\xa9\x03\x02\xa7\x03$\n\r\n\x05\ + \x04\x0b\x02\0\x06\x12\x04\xa9\x03\x02\x05\n\r\n\x05\x04\x0b\x02\0\x01\ + \x12\x04\xa9\x03\x06\t\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xa9\x03\x0c\r\ + 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/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs new file mode 100644 index 0000000000..4b95ccf57c --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs @@ -0,0 +1,185 @@ +// 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_BIGTABLE_READ_ROWS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::ServerStreaming, + name: "/google.bigtable.v2.Bigtable/ReadRows", + 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_SAMPLE_ROW_KEYS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::ServerStreaming, + name: "/google.bigtable.v2.Bigtable/SampleRowKeys", + 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_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.v2.Bigtable/MutateRow", + 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_MUTATE_ROWS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::ServerStreaming, + name: "/google.bigtable.v2.Bigtable/MutateRows", + 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_CHECK_AND_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.bigtable.v2.Bigtable/CheckAndMutateRow", + 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", + 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 { + client: ::grpcio::Client, +} + +impl BigtableClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + BigtableClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn read_rows_opt(&self, req: &super::bigtable::ReadRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.client.server_streaming(&METHOD_BIGTABLE_READ_ROWS, req, opt) + } + + pub fn read_rows(&self, req: &super::bigtable::ReadRowsRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.read_rows_opt(req, ::grpcio::CallOption::default()) + } + + pub fn sample_row_keys_opt(&self, req: &super::bigtable::SampleRowKeysRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.client.server_streaming(&METHOD_BIGTABLE_SAMPLE_ROW_KEYS, req, opt) + } + + pub fn sample_row_keys(&self, req: &super::bigtable::SampleRowKeysRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.sample_row_keys_opt(req, ::grpcio::CallOption::default()) + } + + pub fn mutate_row_opt(&self, req: &super::bigtable::MutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_MUTATE_ROW, req, opt) + } + + pub fn mutate_row(&self, req: &super::bigtable::MutateRowRequest) -> ::grpcio::Result { + self.mutate_row_opt(req, ::grpcio::CallOption::default()) + } + + pub fn mutate_row_async_opt(&self, req: &super::bigtable::MutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_MUTATE_ROW, req, opt) + } + + pub fn mutate_row_async(&self, req: &super::bigtable::MutateRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.mutate_row_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn mutate_rows_opt(&self, req: &super::bigtable::MutateRowsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.client.server_streaming(&METHOD_BIGTABLE_MUTATE_ROWS, req, opt) + } + + pub fn mutate_rows(&self, req: &super::bigtable::MutateRowsRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.mutate_rows_opt(req, ::grpcio::CallOption::default()) + } + + pub fn check_and_mutate_row_opt(&self, req: &super::bigtable::CheckAndMutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_BIGTABLE_CHECK_AND_MUTATE_ROW, req, opt) + } + + pub fn check_and_mutate_row(&self, req: &super::bigtable::CheckAndMutateRowRequest) -> ::grpcio::Result { + self.check_and_mutate_row_opt(req, ::grpcio::CallOption::default()) + } + + pub fn check_and_mutate_row_async_opt(&self, req: &super::bigtable::CheckAndMutateRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_CHECK_AND_MUTATE_ROW, req, opt) + } + + pub fn check_and_mutate_row_async(&self, req: &super::bigtable::CheckAndMutateRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.check_and_mutate_row_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) + } + + pub fn read_modify_write_row(&self, req: &super::bigtable::ReadModifyWriteRowRequest) -> ::grpcio::Result { + self.read_modify_write_row_opt(req, ::grpcio::CallOption::default()) + } + + pub fn read_modify_write_row_async_opt(&self, req: &super::bigtable::ReadModifyWriteRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_BIGTABLE_READ_MODIFY_WRITE_ROW, req, opt) + } + + 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 spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait Bigtable { + fn read_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::ReadRowsRequest, sink: ::grpcio::ServerStreamingSink); + fn sample_row_keys(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::SampleRowKeysRequest, sink: ::grpcio::ServerStreamingSink); + fn mutate_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::MutateRowRequest, sink: ::grpcio::UnarySink); + fn mutate_rows(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::MutateRowsRequest, sink: ::grpcio::ServerStreamingSink); + fn check_and_mutate_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::CheckAndMutateRowRequest, sink: ::grpcio::UnarySink); + fn read_modify_write_row(&mut self, ctx: ::grpcio::RpcContext, req: super::bigtable::ReadModifyWriteRowRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_bigtable(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_READ_ROWS, move |ctx, req, resp| { + instance.read_rows(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_SAMPLE_ROW_KEYS, move |ctx, req, resp| { + instance.sample_row_keys(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_BIGTABLE_MUTATE_ROW, move |ctx, req, resp| { + instance.mutate_row(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_MUTATE_ROWS, move |ctx, req, resp| { + instance.mutate_rows(ctx, req, resp) + }); + let mut instance = s.clone(); + 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; + builder = builder.add_unary_handler(&METHOD_BIGTABLE_READ_MODIFY_WRITE_ROW, move |ctx, req, resp| { + instance.read_modify_write_row(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/data.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/data.rs new file mode 100644 index 0000000000..2b8b7c14d3 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/bigtable/v2/data.rs @@ -0,0 +1,6840 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/data.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Row { + // message fields + pub key: ::std::vec::Vec, + pub families: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Row { + fn default() -> &'a Row { + ::default_instance() + } +} + +impl Row { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.families)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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::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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Row { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Row::new) + } +} + +impl ::protobuf::Clear for Row { + fn clear(&mut self) { + self.key.clear(); + self.families.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Family { + // message fields + pub name: ::std::string::String, + pub columns: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Family { + fn default() -> &'a Family { + ::default_instance() + } +} + +impl Family { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.columns)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.columns { + 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.columns { + 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() -> 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 default_instance() -> &'static Family { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Family::new) + } +} + +impl ::protobuf::Clear for Family { + fn clear(&mut self) { + self.name.clear(); + self.columns.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Column { + // message fields + pub qualifier: ::std::vec::Vec, + pub cells: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Column { + fn default() -> &'a Column { + ::default_instance() + } +} + +impl Column { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cells)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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 += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Column { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Column::new) + } +} + +impl ::protobuf::Clear for Column { + fn clear(&mut self) { + self.qualifier.clear(); + self.cells.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Cell { + // message fields + pub timestamp_micros: i64, + pub value: ::std::vec::Vec, + pub labels: ::protobuf::RepeatedField<::std::string::String>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Cell { + fn default() -> &'a Cell { + ::default_instance() + } +} + +impl Cell { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?; + }, + 3 => { + ::protobuf::rt::read_repeated_string_into(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; + if self.timestamp_micros != 0 { + my_size += ::protobuf::rt::value_size(1, self.timestamp_micros, ::protobuf::wire_format::WireTypeVarint); + } + if !self.value.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.value); + } + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if self.timestamp_micros != 0 { + os.write_int64(1, self.timestamp_micros)?; + } + if !self.value.is_empty() { + os.write_bytes(2, &self.value)?; + } + for v in &self.labels { + 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() -> 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 default_instance() -> &'static Cell { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Cell::new) + } +} + +impl ::protobuf::Clear for Cell { + fn clear(&mut self) { + self.timestamp_micros = 0; + self.value.clear(); + self.labels.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct RowRange { + // message oneof groups + pub start_key: ::std::option::Option, + pub end_key: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RowRange { + fn default() -> &'a RowRange { + ::default_instance() + } +} + +#[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() + } + + // bytes start_key_closed = 1; + + + pub fn get_start_key_closed(&self) -> &[u8] { + match self.start_key { + ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(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, + _ => 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)) + } + + // 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 { + } else { + self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(::std::vec::Vec::new())); + } + match self.start_key { + ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes start_key_open = 2; + + + pub fn get_start_key_open(&self) -> &[u8] { + match self.start_key { + ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(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, + _ => 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)) + } + + // 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 { + } else { + self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(::std::vec::Vec::new())); + } + match self.start_key { + ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_key_open = 3; + + + pub fn get_end_key_open(&self) -> &[u8] { + match self.end_key { + ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(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, + _ => 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)) + } + + // 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 { + } else { + self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(::std::vec::Vec::new())); + } + match self.end_key { + ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_key_closed = 4; + + + pub fn get_end_key_closed(&self) -> &[u8] { + match self.end_key { + ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(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, + _ => 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)) + } + + // 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 { + } else { + self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(::std::vec::Vec::new())); + } + match self.end_key { + ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } +} + +impl ::protobuf::Message for 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())?; + }, + }; + } + ::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.start_key { + match v { + &RowRange_oneof_start_key::start_key_closed(ref v) => { + my_size += ::protobuf::rt::bytes_size(1, &v); + }, + &RowRange_oneof_start_key::start_key_open(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) => { + my_size += ::protobuf::rt::bytes_size(3, &v); + }, + &RowRange_oneof_end_key::end_key_closed(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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if let ::std::option::Option::Some(ref v) = self.start_key { + match v { + &RowRange_oneof_start_key::start_key_closed(ref v) => { + os.write_bytes(1, v)?; + }, + &RowRange_oneof_start_key::start_key_open(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) => { + os.write_bytes(3, v)?; + }, + &RowRange_oneof_end_key::end_key_closed(ref v) => { + os.write_bytes(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() -> 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 default_instance() -> &'static RowRange { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RowRange::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a RowSet { + fn default() -> &'a RowSet { + ::default_instance() + } +} + +impl RowSet { + pub fn new() -> RowSet { + ::std::default::Default::default() + } + + // 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(); + } + + // Param is passed by value, moved + pub fn set_row_keys(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec>) { + self.row_keys = v; + } + + // Mutable pointer to the field. + pub fn mut_row_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec> { + &mut self.row_keys + } + + // Take field + pub fn take_row_keys(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec> { + ::std::mem::replace(&mut self.row_keys, ::protobuf::RepeatedField::new()) + } + + // repeated .google.bigtable.v2.RowRange row_ranges = 2; + + + pub fn get_row_ranges(&self) -> &[RowRange] { + &self.row_ranges + } + pub fn clear_row_ranges(&mut self) { + self.row_ranges.clear(); + } + + // Param is passed by value, moved + pub fn set_row_ranges(&mut self, v: ::protobuf::RepeatedField) { + self.row_ranges = v; + } + + // Mutable pointer to the field. + pub fn mut_row_ranges(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.row_ranges + } + + // Take field + pub fn take_row_ranges(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.row_ranges, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_ranges)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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 += ::protobuf::rt::unknown_fields_size(self.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.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)?; + }; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static RowSet { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RowSet::new) + } +} + +impl ::protobuf::Clear for RowSet { + fn clear(&mut self) { + self.row_keys.clear(); + self.row_ranges.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ColumnRange { + // message fields + pub family_name: ::std::string::String, + // message oneof groups + pub start_qualifier: ::std::option::Option, + pub end_qualifier: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ColumnRange { + fn default() -> &'a ColumnRange { + ::default_instance() + } +} + +#[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] { + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(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, + _ => 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)) + } + + // 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 { + } else { + self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(::std::vec::Vec::new())); + } + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes start_qualifier_open = 3; + + + pub fn get_start_qualifier_open(&self) -> &[u8] { + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(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, + _ => 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)) + } + + // 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 { + } else { + self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(::std::vec::Vec::new())); + } + match self.start_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_qualifier_closed = 4; + + + pub fn get_end_qualifier_closed(&self) -> &[u8] { + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(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, + _ => 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)) + } + + // 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 { + } else { + self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(::std::vec::Vec::new())); + } + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_qualifier_open = 5; + + + pub fn get_end_qualifier_open(&self) -> &[u8] { + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(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, + _ => 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)) + } + + // 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 { + } else { + self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(::std::vec::Vec::new())); + } + match self.end_qualifier { + ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } +} + +impl ::protobuf::Message for 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())?; + }, + }; + } + ::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 let ::std::option::Option::Some(ref v) = self.start_qualifier { + match v { + &ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref v) => { + my_size += ::protobuf::rt::bytes_size(2, &v); + }, + &ColumnRange_oneof_start_qualifier::start_qualifier_open(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) => { + my_size += ::protobuf::rt::bytes_size(4, &v); + }, + &ColumnRange_oneof_end_qualifier::end_qualifier_open(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 + } + + 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 let ::std::option::Option::Some(ref v) = self.start_qualifier { + match v { + &ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref v) => { + os.write_bytes(2, v)?; + }, + &ColumnRange_oneof_start_qualifier::start_qualifier_open(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) => { + os.write_bytes(4, v)?; + }, + &ColumnRange_oneof_end_qualifier::end_qualifier_open(ref v) => { + os.write_bytes(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() -> 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(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct TimestampRange { + // message fields + pub start_timestamp_micros: i64, + pub end_timestamp_micros: i64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a TimestampRange { + fn default() -> &'a TimestampRange { + ::default_instance() + } +} + +impl TimestampRange { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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); + } + 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::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static TimestampRange { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(TimestampRange::new) + } +} + +impl ::protobuf::Clear for TimestampRange { + fn clear(&mut self) { + self.start_timestamp_micros = 0; + self.end_timestamp_micros = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ValueRange { + // message oneof groups + pub start_value: ::std::option::Option, + pub end_value: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ValueRange { + fn default() -> &'a ValueRange { + ::default_instance() + } +} + +#[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() + } + + // bytes start_value_closed = 1; + + + pub fn get_start_value_closed(&self) -> &[u8] { + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(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, + _ => 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)) + } + + // 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 { + } else { + self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(::std::vec::Vec::new())); + } + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes start_value_open = 2; + + + pub fn get_start_value_open(&self) -> &[u8] { + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(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, + _ => 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)) + } + + // 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 { + } else { + self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(::std::vec::Vec::new())); + } + match self.start_value { + ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_value_closed = 3; + + + pub fn get_end_value_closed(&self) -> &[u8] { + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(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, + _ => 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)) + } + + // 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 { + } else { + self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(::std::vec::Vec::new())); + } + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // bytes end_value_open = 4; + + + pub fn get_end_value_open(&self) -> &[u8] { + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(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, + _ => 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)) + } + + // 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 { + } else { + self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(::std::vec::Vec::new())); + } + match self.end_value { + ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } +} + +impl ::protobuf::Message for 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())?; + }, + }; + } + ::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.start_value { + match v { + &ValueRange_oneof_start_value::start_value_closed(ref v) => { + my_size += ::protobuf::rt::bytes_size(1, &v); + }, + &ValueRange_oneof_start_value::start_value_open(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) => { + my_size += ::protobuf::rt::bytes_size(3, &v); + }, + &ValueRange_oneof_end_value::end_value_open(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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if let ::std::option::Option::Some(ref v) = self.start_value { + match v { + &ValueRange_oneof_start_value::start_value_closed(ref v) => { + os.write_bytes(1, v)?; + }, + &ValueRange_oneof_start_value::start_value_open(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) => { + os.write_bytes(3, v)?; + }, + &ValueRange_oneof_end_value::end_value_open(ref v) => { + os.write_bytes(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() -> ValueRange { + ValueRange::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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() + ) + }) + } + + fn default_instance() -> &'static ValueRange { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ValueRange::new) + } +} + +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 ::std::fmt::Debug for ValueRange { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ValueRange { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct RowFilter { + // message oneof groups + pub filter: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RowFilter { + fn default() -> &'a RowFilter { + ::default_instance() + } +} + +#[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() + } + + // .google.bigtable.v2.RowFilter.Chain chain = 1; + + + pub fn get_chain(&self) -> &RowFilter_Chain { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::chain(RowFilter_Chain::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::chain(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_chain(&mut self) -> RowFilter_Chain { + if self.has_chain() { + match self.filter.take() { + ::std::option::Option::Some(RowFilter_oneof_filter::chain(v)) => v, + _ => panic!(), + } + } else { + RowFilter_Chain::new() + } + } + + // .google.bigtable.v2.RowFilter.Interleave interleave = 2; + + + pub fn get_interleave(&self) -> &RowFilter_Interleave { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::interleave(RowFilter_Interleave::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::interleave(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_interleave(&mut self) -> RowFilter_Interleave { + if self.has_interleave() { + match self.filter.take() { + ::std::option::Option::Some(RowFilter_oneof_filter::interleave(v)) => v, + _ => panic!(), + } + } else { + RowFilter_Interleave::new() + } + } + + // .google.bigtable.v2.RowFilter.Condition condition = 3; + + + pub fn get_condition(&self) -> &RowFilter_Condition { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::condition(RowFilter_Condition::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::condition(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_condition(&mut self) -> RowFilter_Condition { + if self.has_condition() { + match self.filter.take() { + ::std::option::Option::Some(RowFilter_oneof_filter::condition(v)) => v, + _ => panic!(), + } + } else { + RowFilter_Condition::new() + } + } + + // bool sink = 16; + + + pub fn get_sink(&self) -> bool { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_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, + _ => 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)) + } + + // bool pass_all_filter = 17; + + + pub fn get_pass_all_filter(&self) -> bool { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::pass_all_filter(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, + _ => 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)) + } + + // bool block_all_filter = 18; + + + pub fn get_block_all_filter(&self) -> bool { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::block_all_filter(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, + _ => 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)) + } + + // bytes row_key_regex_filter = 4; + + + pub fn get_row_key_regex_filter(&self) -> &[u8] { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(::std::vec::Vec::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // double row_sample_filter = 14; + + + pub fn get_row_sample_filter(&self) -> f64 { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::row_sample_filter(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, + _ => 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)) + } + + // string family_name_regex_filter = 5; + + + pub fn get_family_name_regex_filter(&self) -> &str { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(::std::string::String::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // bytes column_qualifier_regex_filter = 6; + + + pub fn get_column_qualifier_regex_filter(&self) -> &[u8] { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(::std::vec::Vec::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // .google.bigtable.v2.ColumnRange column_range_filter = 7; + + + pub fn get_column_range_filter(&self) -> &ColumnRange { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ColumnRange::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ColumnRange::new() + } + } + + // .google.bigtable.v2.TimestampRange timestamp_range_filter = 8; + + + pub fn get_timestamp_range_filter(&self) -> &TimestampRange { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(TimestampRange::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + TimestampRange::new() + } + } + + // bytes value_regex_filter = 9; + + + pub fn get_value_regex_filter(&self) -> &[u8] { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(::std::vec::Vec::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } + } + + // .google.bigtable.v2.ValueRange value_range_filter = 15; + + + pub fn get_value_range_filter(&self) -> &ValueRange { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ValueRange::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ValueRange::new() + } + } + + // int32 cells_per_row_offset_filter = 10; + + + pub fn get_cells_per_row_offset_filter(&self) -> i32 { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_offset_filter(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, + _ => 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)) + } + + // int32 cells_per_row_limit_filter = 11; + + + pub fn get_cells_per_row_limit_filter(&self) -> i32 { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_limit_filter(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, + _ => 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)) + } + + // int32 cells_per_column_limit_filter = 12; + + + pub fn get_cells_per_column_limit_filter(&self) -> i32 { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_column_limit_filter(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, + _ => 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)) + } + + // bool strip_value_transformer = 13; + + + pub fn get_strip_value_transformer(&self) -> bool { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::strip_value_transformer(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, + _ => 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)) + } + + // string apply_label_transformer = 19; + + + pub fn get_apply_label_transformer(&self) -> &str { + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(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, + _ => 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)) + } + + // 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 { + } else { + self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(::std::string::String::new())); + } + match self.filter { + ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } +} + +impl ::protobuf::Message for 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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()?)); + }, + 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())?; + }, + }; + } + ::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.filter { + match v { + &RowFilter_oneof_filter::chain(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::interleave(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::condition(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::sink(v) => { + my_size += 3; + }, + &RowFilter_oneof_filter::pass_all_filter(v) => { + my_size += 3; + }, + &RowFilter_oneof_filter::block_all_filter(v) => { + my_size += 3; + }, + &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { + my_size += ::protobuf::rt::bytes_size(4, &v); + }, + &RowFilter_oneof_filter::row_sample_filter(v) => { + my_size += 9; + }, + &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { + my_size += ::protobuf::rt::string_size(5, &v); + }, + &RowFilter_oneof_filter::column_qualifier_regex_filter(ref v) => { + my_size += ::protobuf::rt::bytes_size(6, &v); + }, + &RowFilter_oneof_filter::column_range_filter(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::timestamp_range_filter(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::value_regex_filter(ref v) => { + my_size += ::protobuf::rt::bytes_size(9, &v); + }, + &RowFilter_oneof_filter::value_range_filter(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { + my_size += ::protobuf::rt::value_size(10, v, ::protobuf::wire_format::WireTypeVarint); + }, + &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { + my_size += ::protobuf::rt::value_size(11, v, ::protobuf::wire_format::WireTypeVarint); + }, + &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { + my_size += ::protobuf::rt::value_size(12, v, ::protobuf::wire_format::WireTypeVarint); + }, + &RowFilter_oneof_filter::strip_value_transformer(v) => { + my_size += 2; + }, + &RowFilter_oneof_filter::apply_label_transformer(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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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) => { + os.write_bool(16, v)?; + }, + &RowFilter_oneof_filter::pass_all_filter(v) => { + os.write_bool(17, v)?; + }, + &RowFilter_oneof_filter::block_all_filter(v) => { + os.write_bool(18, v)?; + }, + &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { + os.write_bytes(4, v)?; + }, + &RowFilter_oneof_filter::row_sample_filter(v) => { + os.write_double(14, v)?; + }, + &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { + os.write_string(5, v)?; + }, + &RowFilter_oneof_filter::column_qualifier_regex_filter(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)?; + }, + &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)?; + }, + &RowFilter_oneof_filter::value_regex_filter(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)?; + }, + &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { + os.write_int32(10, v)?; + }, + &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { + os.write_int32(11, v)?; + }, + &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { + os.write_int32(12, v)?; + }, + &RowFilter_oneof_filter::strip_value_transformer(v) => { + os.write_bool(13, v)?; + }, + &RowFilter_oneof_filter::apply_label_transformer(ref v) => { + os.write_string(19, 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() -> 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; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.filter = ::std::option::Option::None; + self.unknown_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) + } +} + +impl ::protobuf::reflect::ProtobufValue for RowFilter { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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 RowFilter_Chain { + pub fn new() -> RowFilter_Chain { + ::std::default::Default::default() + } + + // repeated .google.bigtable.v2.RowFilter filters = 1; + + + pub fn get_filters(&self) -> &[RowFilter] { + &self.filters + } + pub fn clear_filters(&mut self) { + self.filters.clear(); + } + + // Param is passed by value, moved + pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { + self.filters = v; + } + + // Mutable pointer to the field. + pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.filters + } + + // Take field + pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for RowFilter_Chain { + 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())?; + }, + }; + } + ::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_Chain { + RowFilter_Chain::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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_Chain| { &m.filters }, + |m: &mut RowFilter_Chain| { &mut m.filters }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RowFilter.Chain", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static RowFilter_Chain { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RowFilter_Chain::new) + } +} + +impl ::protobuf::Clear for RowFilter_Chain { + fn clear(&mut self) { + self.filters.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for RowFilter_Chain { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for RowFilter_Chain { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a RowFilter_Interleave { + fn default() -> &'a RowFilter_Interleave { + ::default_instance() + } +} + +impl RowFilter_Interleave { + pub fn new() -> RowFilter_Interleave { + ::std::default::Default::default() + } + + // repeated .google.bigtable.v2.RowFilter filters = 1; + + + pub fn get_filters(&self) -> &[RowFilter] { + &self.filters + } + pub fn clear_filters(&mut self) { + self.filters.clear(); + } + + // Param is passed by value, moved + pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { + self.filters = v; + } + + // Mutable pointer to the field. + pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.filters + } + + // Take field + pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) + } +} + +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())?; + }, + }; + } + ::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() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RowFilter.Interleave", + fields, + file_descriptor_proto() + ) + }) + } + + 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); + } + + // 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(); + } + 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(); + } + 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; + } + }; + for v in &self.true_filter { + if !v.is_initialized() { + return false; + } + }; + for v in &self.false_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_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())?; + }, + }; + } + ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_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)?; + } + 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 new() -> RowFilter_Condition { + RowFilter_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 default_instance() -> &'static RowFilter_Condition { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RowFilter_Condition::new) + } +} + +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 ::std::fmt::Debug for RowFilter_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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Mutation { + // message oneof groups + pub mutation: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Mutation { + fn default() -> &'a Mutation { + ::default_instance() + } +} + +#[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() + } + + // .google.bigtable.v2.Mutation.SetCell set_cell = 1; + + + pub fn get_set_cell(&self) -> &Mutation_SetCell { + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(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, + _ => 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)) + } + + // 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 { + } else { + self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(Mutation_SetCell::new())); + } + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Mutation_SetCell::new() + } + } + + // .google.bigtable.v2.Mutation.DeleteFromColumn delete_from_column = 2; + + + pub fn get_delete_from_column(&self) -> &Mutation_DeleteFromColumn { + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(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, + _ => 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)) + } + + // 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 { + } else { + self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(Mutation_DeleteFromColumn::new())); + } + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Mutation_DeleteFromColumn::new() + } + } + + // .google.bigtable.v2.Mutation.DeleteFromFamily delete_from_family = 3; + + + pub fn get_delete_from_family(&self) -> &Mutation_DeleteFromFamily { + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(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, + _ => 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)) + } + + // 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 { + } else { + self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(Mutation_DeleteFromFamily::new())); + } + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Mutation_DeleteFromFamily::new() + } + } + + // .google.bigtable.v2.Mutation.DeleteFromRow delete_from_row = 4; + + + pub fn get_delete_from_row(&self) -> &Mutation_DeleteFromRow { + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(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, + _ => 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)) + } + + // 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 { + } else { + self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(Mutation_DeleteFromRow::new())); + } + match self.mutation { + ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + Mutation_DeleteFromRow::new() + } + } +} + +impl ::protobuf::Message for 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())?; + }, + }; + } + ::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.mutation { + match v { + &Mutation_oneof_mutation::set_cell(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Mutation_oneof_mutation::delete_from_column(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Mutation_oneof_mutation::delete_from_family(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &Mutation_oneof_mutation::delete_from_row(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.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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 { + 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 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.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 ::std::fmt::Debug 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) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a Mutation_SetCell { + fn default() -> &'a Mutation_SetCell { + ::default_instance() + } +} + +impl Mutation_SetCell { + pub fn new() -> Mutation_SetCell { + ::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()) + } + + // 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>( + "family_name", + |m: &Mutation_SetCell| { &m.family_name }, + |m: &mut Mutation_SetCell| { &mut m.family_name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "column_qualifier", + |m: &Mutation_SetCell| { &m.column_qualifier }, + |m: &mut Mutation_SetCell| { &mut m.column_qualifier }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "timestamp_micros", + |m: &Mutation_SetCell| { &m.timestamp_micros }, + |m: &mut Mutation_SetCell| { &mut m.timestamp_micros }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "value", + |m: &Mutation_SetCell| { &m.value }, + |m: &mut Mutation_SetCell| { &mut m.value }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Mutation.SetCell", + fields, + file_descriptor_proto() + ) + }) + } + + 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; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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())?; + }, + }; + } + ::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 Some(ref v) = self.time_range.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.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 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_DeleteFromColumn { + Mutation_DeleteFromColumn::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_DeleteFromColumn| { &m.family_name }, + |m: &mut Mutation_DeleteFromColumn| { &mut m.family_name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + "column_qualifier", + |m: &Mutation_DeleteFromColumn| { &m.column_qualifier }, + |m: &mut Mutation_DeleteFromColumn| { &mut m.column_qualifier }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "time_range", + |m: &Mutation_DeleteFromColumn| { &m.time_range }, + |m: &mut Mutation_DeleteFromColumn| { &mut m.time_range }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Mutation.DeleteFromColumn", + fields, + file_descriptor_proto() + ) + }) + } + + 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 + } + + // 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)?; + } + 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1dgoogle/bigtable/v2/data.proto\x12\x12google.bigtable.v2\"O\n\x03Ro\ + w\x12\x10\n\x03key\x18\x01\x20\x01(\x0cR\x03key\x126\n\x08families\x18\ + \x02\x20\x03(\x0b2\x1a.google.bigtable.v2.FamilyR\x08families\"R\n\x06Fa\ + mily\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x124\n\x07columns\x18\ + \x02\x20\x03(\x0b2\x1a.google.bigtable.v2.ColumnR\x07columns\"V\n\x06Col\ + umn\x12\x1c\n\tqualifier\x18\x01\x20\x01(\x0cR\tqualifier\x12.\n\x05cell\ + s\x18\x02\x20\x03(\x0b2\x18.google.bigtable.v2.CellR\x05cells\"_\n\x04Ce\ + ll\x12)\n\x10timestamp_micros\x18\x01\x20\x01(\x03R\x0ftimestampMicros\ + \x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\x12\x16\n\x06labels\ + \x18\x03\x20\x03(\tR\x06labels\"\xc2\x01\n\x08RowRange\x12*\n\x10start_k\ + ey_closed\x18\x01\x20\x01(\x0cH\0R\x0estartKeyClosed\x12&\n\x0estart_key\ + _open\x18\x02\x20\x01(\x0cH\0R\x0cstartKeyOpen\x12\"\n\x0cend_key_open\ + \x18\x03\x20\x01(\x0cH\x01R\nendKeyOpen\x12&\n\x0eend_key_closed\x18\x04\ + \x20\x01(\x0cH\x01R\x0cendKeyClosedB\x0b\n\tstart_keyB\t\n\x07end_key\"`\ + \n\x06RowSet\x12\x19\n\x08row_keys\x18\x01\x20\x03(\x0cR\x07rowKeys\x12;\ + \n\nrow_ranges\x18\x02\x20\x03(\x0b2\x1c.google.bigtable.v2.RowRangeR\tr\ + owRanges\"\xa2\x02\n\x0bColumnRange\x12\x1f\n\x0bfamily_name\x18\x01\x20\ + \x01(\tR\nfamilyName\x126\n\x16start_qualifier_closed\x18\x02\x20\x01(\ + \x0cH\0R\x14startQualifierClosed\x122\n\x14start_qualifier_open\x18\x03\ + \x20\x01(\x0cH\0R\x12startQualifierOpen\x122\n\x14end_qualifier_closed\ + \x18\x04\x20\x01(\x0cH\x01R\x12endQualifierClosed\x12.\n\x12end_qualifie\ + r_open\x18\x05\x20\x01(\x0cH\x01R\x10endQualifierOpenB\x11\n\x0fstart_qu\ + alifierB\x0f\n\rend_qualifier\"x\n\x0eTimestampRange\x124\n\x16start_tim\ + estamp_micros\x18\x01\x20\x01(\x03R\x14startTimestampMicros\x120\n\x14en\ + d_timestamp_micros\x18\x02\x20\x01(\x03R\x12endTimestampMicros\"\xd8\x01\ + \n\nValueRange\x12.\n\x12start_value_closed\x18\x01\x20\x01(\x0cH\0R\x10\ + startValueClosed\x12*\n\x10start_value_open\x18\x02\x20\x01(\x0cH\0R\x0e\ + startValueOpen\x12*\n\x10end_value_closed\x18\x03\x20\x01(\x0cH\x01R\x0e\ + endValueClosed\x12&\n\x0eend_value_open\x18\x04\x20\x01(\x0cH\x01R\x0cen\ + dValueOpenB\r\n\x0bstart_valueB\x0b\n\tend_value\"\xfc\x0b\n\tRowFilter\ + \x12;\n\x05chain\x18\x01\x20\x01(\x0b2#.google.bigtable.v2.RowFilter.Cha\ + inH\0R\x05chain\x12J\n\ninterleave\x18\x02\x20\x01(\x0b2(.google.bigtabl\ + e.v2.RowFilter.InterleaveH\0R\ninterleave\x12G\n\tcondition\x18\x03\x20\ + \x01(\x0b2'.google.bigtable.v2.RowFilter.ConditionH\0R\tcondition\x12\ + \x14\n\x04sink\x18\x10\x20\x01(\x08H\0R\x04sink\x12(\n\x0fpass_all_filte\ + r\x18\x11\x20\x01(\x08H\0R\rpassAllFilter\x12*\n\x10block_all_filter\x18\ + \x12\x20\x01(\x08H\0R\x0eblockAllFilter\x121\n\x14row_key_regex_filter\ + \x18\x04\x20\x01(\x0cH\0R\x11rowKeyRegexFilter\x12,\n\x11row_sample_filt\ + er\x18\x0e\x20\x01(\x01H\0R\x0frowSampleFilter\x129\n\x18family_name_reg\ + ex_filter\x18\x05\x20\x01(\tH\0R\x15familyNameRegexFilter\x12C\n\x1dcolu\ + mn_qualifier_regex_filter\x18\x06\x20\x01(\x0cH\0R\x1acolumnQualifierReg\ + exFilter\x12Q\n\x13column_range_filter\x18\x07\x20\x01(\x0b2\x1f.google.\ + bigtable.v2.ColumnRangeH\0R\x11columnRangeFilter\x12Z\n\x16timestamp_ran\ + ge_filter\x18\x08\x20\x01(\x0b2\".google.bigtable.v2.TimestampRangeH\0R\ + \x14timestampRangeFilter\x12.\n\x12value_regex_filter\x18\t\x20\x01(\x0c\ + H\0R\x10valueRegexFilter\x12N\n\x12value_range_filter\x18\x0f\x20\x01(\ + \x0b2\x1e.google.bigtable.v2.ValueRangeH\0R\x10valueRangeFilter\x12>\n\ + \x1bcells_per_row_offset_filter\x18\n\x20\x01(\x05H\0R\x17cellsPerRowOff\ + setFilter\x12<\n\x1acells_per_row_limit_filter\x18\x0b\x20\x01(\x05H\0R\ + \x16cellsPerRowLimitFilter\x12B\n\x1dcells_per_column_limit_filter\x18\ + \x0c\x20\x01(\x05H\0R\x19cellsPerColumnLimitFilter\x128\n\x17strip_value\ + _transformer\x18\r\x20\x01(\x08H\0R\x15stripValueTransformer\x128\n\x17a\ + pply_label_transformer\x18\x13\x20\x01(\tH\0R\x15applyLabelTransformer\ + \x1a@\n\x05Chain\x127\n\x07filters\x18\x01\x20\x03(\x0b2\x1d.google.bigt\ + able.v2.RowFilterR\x07filters\x1aE\n\nInterleave\x127\n\x07filters\x18\ + \x01\x20\x03(\x0b2\x1d.google.bigtable.v2.RowFilterR\x07filters\x1a\xd7\ + \x01\n\tCondition\x12H\n\x10predicate_filter\x18\x01\x20\x01(\x0b2\x1d.g\ + oogle.bigtable.v2.RowFilterR\x0fpredicateFilter\x12>\n\x0btrue_filter\ + \x18\x02\x20\x01(\x0b2\x1d.google.bigtable.v2.RowFilterR\ntrueFilter\x12\ + @\n\x0cfalse_filter\x18\x03\x20\x01(\x0b2\x1d.google.bigtable.v2.RowFilt\ + erR\x0bfalseFilterB\x08\n\x06filter\"\xf0\x05\n\x08Mutation\x12A\n\x08se\ + t_cell\x18\x01\x20\x01(\x0b2$.google.bigtable.v2.Mutation.SetCellH\0R\ + \x07setCell\x12]\n\x12delete_from_column\x18\x02\x20\x01(\x0b2-.google.b\ + igtable.v2.Mutation.DeleteFromColumnH\0R\x10deleteFromColumn\x12]\n\x12d\ + elete_from_family\x18\x03\x20\x01(\x0b2-.google.bigtable.v2.Mutation.Del\ + eteFromFamilyH\0R\x10deleteFromFamily\x12T\n\x0fdelete_from_row\x18\x04\ + \x20\x01(\x0b2*.google.bigtable.v2.Mutation.DeleteFromRowH\0R\rdeleteFro\ + mRow\x1a\x96\x01\n\x07SetCell\x12\x1f\n\x0bfamily_name\x18\x01\x20\x01(\ + \tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0cR\x0fcolu\ + mnQualifier\x12)\n\x10timestamp_micros\x18\x03\x20\x01(\x03R\x0ftimestam\ + pMicros\x12\x14\n\x05value\x18\x04\x20\x01(\x0cR\x05value\x1a\xa1\x01\n\ + \x10DeleteFromColumn\x12\x1f\n\x0bfamily_name\x18\x01\x20\x01(\tR\nfamil\ + yName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0cR\x0fcolumnQualifie\ + r\x12A\n\ntime_range\x18\x03\x20\x01(\x0b2\".google.bigtable.v2.Timestam\ + pRangeR\ttimeRange\x1a3\n\x10DeleteFromFamily\x12\x1f\n\x0bfamily_name\ + \x18\x01\x20\x01(\tR\nfamilyName\x1a\x0f\n\rDeleteFromRowB\n\n\x08mutati\ + on\"\xbb\x01\n\x13ReadModifyWriteRule\x12\x1f\n\x0bfamily_name\x18\x01\ + \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\x04ruleB\xb5\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\\V2\ + \xea\x02\x1bGoogle::Cloud::Bigtable::V2J\xb5\xb8\x01\n\x07\x12\x05\x0f\0\ + \x97\x04\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\ + \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\x08\n\x01\x08\x12\x03\x19\04\n\t\n\x02\x08-\ + \x12\x03\x19\04\n\x90\x01\n\x02\x04\0\x12\x04\x1d\0&\x01\x1a\x83\x01\x20\ + Specifies\x20the\x20complete\x20(requested)\x20contents\x20of\x20a\x20si\ + ngle\x20row\x20of\x20a\x20table.\n\x20Rows\x20which\x20exceed\x20256MiB\ + \x20in\x20size\x20cannot\x20be\x20read\x20in\x20full.\n\n\n\n\x03\x04\0\ + \x01\x12\x03\x1d\x08\x0b\n\xe2\x01\n\x04\x04\0\x02\0\x12\x03!\x02\x10\ + \x1a\xd4\x01\x20The\x20unique\x20key\x20which\x20identifies\x20this\x20r\ + ow\x20within\x20its\x20table.\x20This\x20is\x20the\x20same\n\x20key\x20t\ + hat's\x20used\x20to\x20identify\x20the\x20row\x20in,\x20for\x20example,\ + \x20a\x20MutateRowRequest.\n\x20May\x20contain\x20any\x20non-empty\x20by\ + te\x20string\x20up\x20to\x204KiB\x20in\x20length.\n\n\r\n\x05\x04\0\x02\ + \0\x04\x12\x04!\x02\x1d\r\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\x0b\n\x0c\n\x05\x04\0\x02\0\x03\ + \x12\x03!\x0e\x0f\n{\n\x04\x04\0\x02\x01\x12\x03%\x02\x1f\x1an\x20May\ + \x20be\x20empty,\x20but\x20only\x20if\x20the\x20entire\x20row\x20is\x20e\ + mpty.\n\x20The\x20mutual\x20ordering\x20of\x20column\x20families\x20is\ + \x20not\x20specified.\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\x11\n\x0c\n\x05\x04\0\x02\x01\ + \x01\x12\x03%\x12\x1a\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03%\x1d\x1e\nf\ + \n\x02\x04\x01\x12\x04*\05\x01\x1aZ\x20Specifies\x20(some\x20of)\x20the\ + \x20contents\x20of\x20a\x20single\x20row/column\x20family\x20intersectio\ + n\n\x20of\x20a\x20table.\n\n\n\n\x03\x04\x01\x01\x12\x03*\x08\x0e\n\x85\ + \x03\n\x04\x04\x01\x02\0\x12\x031\x02\x12\x1a\xf7\x02\x20The\x20unique\ + \x20key\x20which\x20identifies\x20this\x20family\x20within\x20its\x20row\ + .\x20This\x20is\x20the\n\x20same\x20key\x20that's\x20used\x20to\x20ident\ + ify\x20the\x20family\x20in,\x20for\x20example,\x20a\x20RowFilter\n\x20wh\ + ich\x20sets\x20its\x20\"family_name_regex_filter\"\x20field.\n\x20Must\ + \x20match\x20`[-_.a-zA-Z0-9]+`,\x20except\x20that\x20AggregatingRowProce\ + ssors\x20may\n\x20produce\x20cells\x20in\x20a\x20sentinel\x20family\x20w\ + ith\x20an\x20empty\x20name.\n\x20Must\x20be\x20no\x20greater\x20than\x20\ + 64\x20characters\x20in\x20length.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x041\ + \x02*\x10\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x031\x02\x08\n\x0c\n\x05\x04\ + \x01\x02\0\x01\x12\x031\t\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x031\x10\ + \x11\nL\n\x04\x04\x01\x02\x01\x12\x034\x02\x1e\x1a?\x20Must\x20not\x20be\ + \x20empty.\x20Sorted\x20in\x20order\x20of\x20increasing\x20\"qualifier\"\ + .\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x034\x02\n\n\x0c\n\x05\x04\x01\ + \x02\x01\x06\x12\x034\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x034\ + \x12\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x034\x1c\x1d\n_\n\x02\x04\ + \x02\x12\x049\0C\x01\x1aS\x20Specifies\x20(some\x20of)\x20the\x20content\ + s\x20of\x20a\x20single\x20row/column\x20intersection\x20of\x20a\n\x20tab\ + le.\n\n\n\n\x03\x04\x02\x01\x12\x039\x08\x0e\n\xad\x02\n\x04\x04\x02\x02\ + \0\x12\x03?\x02\x16\x1a\x9f\x02\x20The\x20unique\x20key\x20which\x20iden\ + tifies\x20this\x20column\x20within\x20its\x20family.\x20This\x20is\x20th\ + e\n\x20same\x20key\x20that's\x20used\x20to\x20identify\x20the\x20column\ + \x20in,\x20for\x20example,\x20a\x20RowFilter\n\x20which\x20sets\x20its\ + \x20`column_qualifier_regex_filter`\x20field.\n\x20May\x20contain\x20any\ + \x20byte\x20string,\x20including\x20the\x20empty\x20string,\x20up\x20to\ + \x2016kiB\x20in\n\x20length.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04?\x029\ + \x10\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03?\x02\x07\n\x0c\n\x05\x04\x02\ + \x02\0\x01\x12\x03?\x08\x11\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03?\x14\ + \x15\nS\n\x04\x04\x02\x02\x01\x12\x03B\x02\x1a\x1aF\x20Must\x20not\x20be\ + \x20empty.\x20Sorted\x20in\x20order\x20of\x20decreasing\x20\"timestamp_m\ + icros\".\n\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03B\x02\n\n\x0c\n\x05\ + \x04\x02\x02\x01\x06\x12\x03B\x0b\x0f\n\x0c\n\x05\x04\x02\x02\x01\x01\ + \x12\x03B\x10\x15\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03B\x18\x19\n[\n\ + \x02\x04\x03\x12\x04F\0V\x01\x1aO\x20Specifies\x20(some\x20of)\x20the\ + \x20contents\x20of\x20a\x20single\x20row/column/timestamp\x20of\x20a\x20\ + table.\n\n\n\n\x03\x04\x03\x01\x12\x03F\x08\x0c\n\xf6\x02\n\x04\x04\x03\ + \x02\0\x12\x03M\x02\x1d\x1a\xe8\x02\x20The\x20cell's\x20stored\x20timest\ + amp,\x20which\x20also\x20uniquely\x20identifies\x20it\x20within\n\x20its\ + \x20column.\n\x20Values\x20are\x20always\x20expressed\x20in\x20microseco\ + nds,\x20but\x20individual\x20tables\x20may\x20set\n\x20a\x20coarser\x20g\ + ranularity\x20to\x20further\x20restrict\x20the\x20allowed\x20values.\x20\ + For\n\x20example,\x20a\x20table\x20which\x20specifies\x20millisecond\x20\ + granularity\x20will\x20only\x20allow\n\x20values\x20of\x20`timestamp_mic\ + ros`\x20which\x20are\x20multiples\x20of\x201000.\n\n\r\n\x05\x04\x03\x02\ + \0\x04\x12\x04M\x02F\x0e\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03M\x02\x07\ + \n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03M\x08\x18\n\x0c\n\x05\x04\x03\x02\ + \0\x03\x12\x03M\x1b\x1c\n\x7f\n\x04\x04\x03\x02\x01\x12\x03R\x02\x12\x1a\ + r\x20The\x20value\x20stored\x20in\x20the\x20cell.\n\x20May\x20contain\ + \x20any\x20byte\x20string,\x20including\x20the\x20empty\x20string,\x20up\ + \x20to\x20100MiB\x20in\n\x20length.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\ + \x04R\x02M\x1d\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03R\x02\x07\n\x0c\n\ + \x05\x04\x03\x02\x01\x01\x12\x03R\x08\r\n\x0c\n\x05\x04\x03\x02\x01\x03\ + \x12\x03R\x10\x11\nY\n\x04\x04\x03\x02\x02\x12\x03U\x02\x1d\x1aL\x20Labe\ + ls\x20applied\x20to\x20the\x20cell\x20by\x20a\x20[RowFilter][google.bigt\ + able.v2.RowFilter].\n\n\x0c\n\x05\x04\x03\x02\x02\x04\x12\x03U\x02\n\n\ + \x0c\n\x05\x04\x03\x02\x02\x05\x12\x03U\x0b\x11\n\x0c\n\x05\x04\x03\x02\ + \x02\x01\x12\x03U\x12\x18\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03U\x1b\ + \x1c\n3\n\x02\x04\x04\x12\x04Y\0m\x01\x1a'\x20Specifies\x20a\x20contiguo\ + us\x20range\x20of\x20rows.\n\n\n\n\x03\x04\x04\x01\x12\x03Y\x08\x10\n~\n\ + \x04\x04\x04\x08\0\x12\x04\\\x02b\x03\x1ap\x20The\x20row\x20key\x20at\ + \x20which\x20to\x20start\x20the\x20range.\n\x20If\x20neither\x20field\ + \x20is\x20set,\x20interpreted\x20as\x20the\x20empty\x20string,\x20inclus\ + ive.\n\n\x0c\n\x05\x04\x04\x08\0\x01\x12\x03\\\x08\x11\nG\n\x04\x04\x04\ + \x02\0\x12\x03^\x04\x1f\x1a:\x20Used\x20when\x20giving\x20an\x20inclusiv\ + e\x20lower\x20bound\x20for\x20the\x20range.\n\n\x0c\n\x05\x04\x04\x02\0\ + \x05\x12\x03^\x04\t\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03^\n\x1a\n\x0c\n\ + \x05\x04\x04\x02\0\x03\x12\x03^\x1d\x1e\nG\n\x04\x04\x04\x02\x01\x12\x03\ + a\x04\x1d\x1a:\x20Used\x20when\x20giving\x20an\x20exclusive\x20lower\x20\ + bound\x20for\x20the\x20range.\n\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03a\ + \x04\t\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03a\n\x18\n\x0c\n\x05\x04\ + \x04\x02\x01\x03\x12\x03a\x1b\x1c\n\x80\x01\n\x04\x04\x04\x08\x01\x12\ + \x04f\x02l\x03\x1ar\x20The\x20row\x20key\x20at\x20which\x20to\x20end\x20\ + the\x20range.\n\x20If\x20neither\x20field\x20is\x20set,\x20interpreted\ + \x20as\x20the\x20infinite\x20row\x20key,\x20exclusive.\n\n\x0c\n\x05\x04\ + \x04\x08\x01\x01\x12\x03f\x08\x0f\nG\n\x04\x04\x04\x02\x02\x12\x03h\x04\ + \x1b\x1a:\x20Used\x20when\x20giving\x20an\x20exclusive\x20upper\x20bound\ + \x20for\x20the\x20range.\n\n\x0c\n\x05\x04\x04\x02\x02\x05\x12\x03h\x04\ + \t\n\x0c\n\x05\x04\x04\x02\x02\x01\x12\x03h\n\x16\n\x0c\n\x05\x04\x04\ + \x02\x02\x03\x12\x03h\x19\x1a\nG\n\x04\x04\x04\x02\x03\x12\x03k\x04\x1d\ + \x1a:\x20Used\x20when\x20giving\x20an\x20inclusive\x20upper\x20bound\x20\ + for\x20the\x20range.\n\n\x0c\n\x05\x04\x04\x02\x03\x05\x12\x03k\x04\t\n\ + \x0c\n\x05\x04\x04\x02\x03\x01\x12\x03k\n\x18\n\x0c\n\x05\x04\x04\x02\ + \x03\x03\x12\x03k\x1b\x1c\n5\n\x02\x04\x05\x12\x04p\0v\x01\x1a)\x20Speci\ + fies\x20a\x20non-contiguous\x20set\x20of\x20rows.\n\n\n\n\x03\x04\x05\ + \x01\x12\x03p\x08\x0e\n/\n\x04\x04\x05\x02\0\x12\x03r\x02\x1e\x1a\"\x20S\ + ingle\x20rows\x20included\x20in\x20the\x20set.\n\n\x0c\n\x05\x04\x05\x02\ + \0\x04\x12\x03r\x02\n\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03r\x0b\x10\n\ + \x0c\n\x05\x04\x05\x02\0\x01\x12\x03r\x11\x19\n\x0c\n\x05\x04\x05\x02\0\ + \x03\x12\x03r\x1c\x1d\n9\n\x04\x04\x05\x02\x01\x12\x03u\x02#\x1a,\x20Con\ + tiguous\x20row\x20ranges\x20included\x20in\x20the\x20set.\n\n\x0c\n\x05\ + \x04\x05\x02\x01\x04\x12\x03u\x02\n\n\x0c\n\x05\x04\x05\x02\x01\x06\x12\ + \x03u\x0b\x13\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03u\x14\x1e\n\x0c\n\ + \x05\x04\x05\x02\x01\x03\x12\x03u!\"\n\x84\x02\n\x02\x04\x06\x12\x05|\0\ + \x93\x01\x01\x1a\xf6\x01\x20Specifies\x20a\x20contiguous\x20range\x20of\ + \x20columns\x20within\x20a\x20single\x20column\x20family.\n\x20The\x20ra\ + nge\x20spans\x20from\x20<column_family>:<start_qualifier>\ + \x20to\n\x20<column_family>:<end_qualifier>,\x20where\x20bot\ + h\x20bounds\x20can\x20be\x20either\n\x20inclusive\x20or\x20exclusive.\n\ + \n\n\n\x03\x04\x06\x01\x12\x03|\x08\x13\nK\n\x04\x04\x06\x02\0\x12\x03~\ + \x02\x19\x1a>\x20The\x20name\x20of\x20the\x20column\x20family\x20within\ + \x20which\x20this\x20range\x20falls.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\ + \x04~\x02|\x15\n\x0c\n\x05\x04\x06\x02\0\x05\x12\x03~\x02\x08\n\x0c\n\ + \x05\x04\x06\x02\0\x01\x12\x03~\t\x14\n\x0c\n\x05\x04\x06\x02\0\x03\x12\ + \x03~\x17\x18\n\xa3\x01\n\x04\x04\x06\x08\0\x12\x06\x82\x01\x02\x88\x01\ + \x03\x1a\x92\x01\x20The\x20column\x20qualifier\x20at\x20which\x20to\x20s\ + tart\x20the\x20range\x20(within\x20`column_family`).\n\x20If\x20neither\ + \x20field\x20is\x20set,\x20interpreted\x20as\x20the\x20empty\x20string,\ + \x20inclusive.\n\n\r\n\x05\x04\x06\x08\0\x01\x12\x04\x82\x01\x08\x17\nH\ + \n\x04\x04\x06\x02\x01\x12\x04\x84\x01\x04%\x1a:\x20Used\x20when\x20givi\ + ng\x20an\x20inclusive\x20lower\x20bound\x20for\x20the\x20range.\n\n\r\n\ + \x05\x04\x06\x02\x01\x05\x12\x04\x84\x01\x04\t\n\r\n\x05\x04\x06\x02\x01\ + \x01\x12\x04\x84\x01\n\x20\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x84\x01\ + #$\nH\n\x04\x04\x06\x02\x02\x12\x04\x87\x01\x04#\x1a:\x20Used\x20when\ + \x20giving\x20an\x20exclusive\x20lower\x20bound\x20for\x20the\x20range.\ + \n\n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\x87\x01\x04\t\n\r\n\x05\x04\x06\ + \x02\x02\x01\x12\x04\x87\x01\n\x1e\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\ + \x87\x01!\"\n\xa4\x01\n\x04\x04\x06\x08\x01\x12\x06\x8c\x01\x02\x92\x01\ + \x03\x1a\x93\x01\x20The\x20column\x20qualifier\x20at\x20which\x20to\x20e\ + nd\x20the\x20range\x20(within\x20`column_family`).\n\x20If\x20neither\ + \x20field\x20is\x20set,\x20interpreted\x20as\x20the\x20infinite\x20strin\ + g,\x20exclusive.\n\n\r\n\x05\x04\x06\x08\x01\x01\x12\x04\x8c\x01\x08\x15\ + \nH\n\x04\x04\x06\x02\x03\x12\x04\x8e\x01\x04#\x1a:\x20Used\x20when\x20g\ + iving\x20an\x20inclusive\x20upper\x20bound\x20for\x20the\x20range.\n\n\r\ + \n\x05\x04\x06\x02\x03\x05\x12\x04\x8e\x01\x04\t\n\r\n\x05\x04\x06\x02\ + \x03\x01\x12\x04\x8e\x01\n\x1e\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\x8e\ + \x01!\"\nH\n\x04\x04\x06\x02\x04\x12\x04\x91\x01\x04!\x1a:\x20Used\x20wh\ + en\x20giving\x20an\x20exclusive\x20upper\x20bound\x20for\x20the\x20range\ + .\n\n\r\n\x05\x04\x06\x02\x04\x05\x12\x04\x91\x01\x04\t\n\r\n\x05\x04\ + \x06\x02\x04\x01\x12\x04\x91\x01\n\x1c\n\r\n\x05\x04\x06\x02\x04\x03\x12\ + \x04\x91\x01\x1f\x20\nG\n\x02\x04\x07\x12\x06\x96\x01\0\x9c\x01\x01\x1a9\ + \x20Specified\x20a\x20contiguous\x20range\x20of\x20microsecond\x20timest\ + amps.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x96\x01\x08\x16\nG\n\x04\x04\x07\ + \x02\0\x12\x04\x98\x01\x02#\x1a9\x20Inclusive\x20lower\x20bound.\x20If\ + \x20left\x20empty,\x20interpreted\x20as\x200.\n\n\x0f\n\x05\x04\x07\x02\ + \0\x04\x12\x06\x98\x01\x02\x96\x01\x18\n\r\n\x05\x04\x07\x02\0\x05\x12\ + \x04\x98\x01\x02\x07\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x98\x01\x08\x1e\ + \n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x98\x01!\"\nN\n\x04\x04\x07\x02\x01\ + \x12\x04\x9b\x01\x02!\x1a@\x20Exclusive\x20upper\x20bound.\x20If\x20left\ + \x20empty,\x20interpreted\x20as\x20infinity.\n\n\x0f\n\x05\x04\x07\x02\ + \x01\x04\x12\x06\x9b\x01\x02\x98\x01#\n\r\n\x05\x04\x07\x02\x01\x05\x12\ + \x04\x9b\x01\x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\x9b\x01\x08\ + \x1c\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\x9b\x01\x1f\x20\n@\n\x02\x04\ + \x08\x12\x06\x9f\x01\0\xb3\x01\x01\x1a2\x20Specifies\x20a\x20contiguous\ + \x20range\x20of\x20raw\x20byte\x20values.\n\n\x0b\n\x03\x04\x08\x01\x12\ + \x04\x9f\x01\x08\x12\n~\n\x04\x04\x08\x08\0\x12\x06\xa2\x01\x02\xa8\x01\ + \x03\x1an\x20The\x20value\x20at\x20which\x20to\x20start\x20the\x20range.\ + \n\x20If\x20neither\x20field\x20is\x20set,\x20interpreted\x20as\x20the\ + \x20empty\x20string,\x20inclusive.\n\n\r\n\x05\x04\x08\x08\0\x01\x12\x04\ + \xa2\x01\x08\x13\nH\n\x04\x04\x08\x02\0\x12\x04\xa4\x01\x04!\x1a:\x20Use\ + d\x20when\x20giving\x20an\x20inclusive\x20lower\x20bound\x20for\x20the\ + \x20range.\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xa4\x01\x04\t\n\r\n\x05\ + \x04\x08\x02\0\x01\x12\x04\xa4\x01\n\x1c\n\r\n\x05\x04\x08\x02\0\x03\x12\ + \x04\xa4\x01\x1f\x20\nH\n\x04\x04\x08\x02\x01\x12\x04\xa7\x01\x04\x1f\ + \x1a:\x20Used\x20when\x20giving\x20an\x20exclusive\x20lower\x20bound\x20\ + for\x20the\x20range.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xa7\x01\x04\ + \t\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xa7\x01\n\x1a\n\r\n\x05\x04\x08\ + \x02\x01\x03\x12\x04\xa7\x01\x1d\x1e\n\x7f\n\x04\x04\x08\x08\x01\x12\x06\ + \xac\x01\x02\xb2\x01\x03\x1ao\x20The\x20value\x20at\x20which\x20to\x20en\ + d\x20the\x20range.\n\x20If\x20neither\x20field\x20is\x20set,\x20interpre\ + ted\x20as\x20the\x20infinite\x20string,\x20exclusive.\n\n\r\n\x05\x04\ + \x08\x08\x01\x01\x12\x04\xac\x01\x08\x11\nH\n\x04\x04\x08\x02\x02\x12\ + \x04\xae\x01\x04\x1f\x1a:\x20Used\x20when\x20giving\x20an\x20inclusive\ + \x20upper\x20bound\x20for\x20the\x20range.\n\n\r\n\x05\x04\x08\x02\x02\ + \x05\x12\x04\xae\x01\x04\t\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xae\x01\ + \n\x1a\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xae\x01\x1d\x1e\nH\n\x04\ + \x04\x08\x02\x03\x12\x04\xb1\x01\x04\x1d\x1a:\x20Used\x20when\x20giving\ + \x20an\x20exclusive\x20upper\x20bound\x20for\x20the\x20range.\n\n\r\n\ + \x05\x04\x08\x02\x03\x05\x12\x04\xb1\x01\x04\t\n\r\n\x05\x04\x08\x02\x03\ + \x01\x12\x04\xb1\x01\n\x18\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\xb1\x01\ + \x1b\x1c\n\xa9\x0f\n\x02\x04\t\x12\x06\xd6\x01\0\xb9\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\ + ow\x20to\x20include\n\x20just\x20the\x20cells\x20from\x20columns\x20matc\ + hing\x20a\x20given\x20regular\x20expression,\x20or\x20might\n\x20return\ + \x20all\x20the\x20cells\x20of\x20a\x20row\x20but\x20not\x20their\x20valu\ + es.\x20More\x20complicated\x20filters\n\x20can\x20be\x20composed\x20out\ + \x20of\x20these\x20components\x20to\x20express\x20requests\x20such\x20as\ + ,\x20\"within\n\x20every\x20column\x20of\x20a\x20particular\x20family,\ + \x20give\x20just\x20the\x20two\x20most\x20recent\x20cells\n\x20which\x20\ + are\x20older\x20than\x20timestamp\x20X.\"\n\n\x20There\x20are\x20two\x20\ + broad\x20categories\x20of\x20RowFilters\x20(true\x20filters\x20and\x20tr\ + ansformers),\n\x20as\x20well\x20as\x20two\x20ways\x20to\x20compose\x20si\ + mple\x20filters\x20into\x20more\x20complex\x20ones\n\x20(chains\x20and\ + \x20interleaves).\x20They\x20work\x20as\x20follows:\n\n\x20*\x20True\x20\ + filters\x20alter\x20the\x20input\x20row\x20by\x20excluding\x20some\x20of\ + \x20its\x20cells\x20wholesale\n\x20from\x20the\x20output\x20row.\x20An\ + \x20example\x20of\x20a\x20true\x20filter\x20is\x20the\x20`value_regex_fi\ + lter`,\n\x20which\x20excludes\x20cells\x20whose\x20values\x20don't\x20ma\ + tch\x20the\x20specified\x20pattern.\x20All\n\x20regex\x20true\x20filters\ + \x20use\x20RE2\x20syntax\x20(https://github.com/google/re2/wiki/Syntax)\ + \n\x20in\x20raw\x20byte\x20mode\x20(RE2::Latin1),\x20and\x20are\x20evalu\ + ated\x20as\x20full\x20matches.\x20An\n\x20important\x20point\x20to\x20ke\ + ep\x20in\x20mind\x20is\x20that\x20`RE2(.)`\x20is\x20equivalent\x20by\x20\ + default\x20to\n\x20`RE2([^\\n])`,\x20meaning\x20that\x20it\x20does\x20no\ + t\x20match\x20newlines.\x20When\x20attempting\x20to\n\x20match\x20an\x20\ + arbitrary\x20byte,\x20you\x20should\x20therefore\x20use\x20the\x20escape\ + \x20sequence\x20`\\C`,\n\x20which\x20may\x20need\x20to\x20be\x20further\ + \x20escaped\x20as\x20`\\\\C`\x20in\x20your\x20client\x20language.\n\n\ + \x20*\x20Transformers\x20alter\x20the\x20input\x20row\x20by\x20changing\ + \x20the\x20values\x20of\x20some\x20of\x20its\n\x20cells\x20in\x20the\x20\ + output,\x20without\x20excluding\x20them\x20completely.\x20Currently,\x20\ + the\x20only\n\x20supported\x20transformer\x20is\x20the\x20`strip_value_t\ + ransformer`,\x20which\x20replaces\x20every\n\x20cell's\x20value\x20with\ + \x20the\x20empty\x20string.\n\n\x20*\x20Chains\x20and\x20interleaves\x20\ + 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\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\xd6\x01\x08\x11\nV\n\x04\x04\t\x03\0\x12\x06\xd8\x01\ + \x02\xdd\x01\x03\x1aF\x20A\x20RowFilter\x20which\x20sends\x20rows\x20thr\ + ough\x20several\x20RowFilters\x20in\x20sequence.\n\n\r\n\x05\x04\t\x03\0\ + \x01\x12\x04\xd8\x01\n\x0f\n\xc9\x01\n\x06\x04\t\x03\0\x02\0\x12\x04\xdc\ + \x01\x04#\x1a\xb8\x01\x20The\x20elements\x20of\x20\"filters\"\x20are\x20\ + chained\x20together\x20to\x20process\x20the\x20input\x20row:\n\x20in\x20\ + row\x20->\x20f(0)\x20->\x20intermediate\x20row\x20->\x20f(1)\x20->\x20..\ + .\x20->\x20f(N)\x20->\x20out\x20row\n\x20The\x20full\x20chain\x20is\x20e\ + xecuted\x20atomically.\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x04\x12\x04\xdc\ + \x01\x04\x0c\n\x0f\n\x07\x04\t\x03\0\x02\0\x06\x12\x04\xdc\x01\r\x16\n\ + \x0f\n\x07\x04\t\x03\0\x02\0\x01\x12\x04\xdc\x01\x17\x1e\n\x0f\n\x07\x04\ + \t\x03\0\x02\0\x03\x12\x04\xdc\x01!\"\nx\n\x04\x04\t\x03\x01\x12\x06\xe1\ + \x01\x02\xfc\x01\x03\x1ah\x20A\x20RowFilter\x20which\x20sends\x20each\ + \x20row\x20to\x20each\x20of\x20several\x20component\n\x20RowFilters\x20a\ + nd\x20interleaves\x20the\x20results.\n\n\r\n\x05\x04\t\x03\x01\x01\x12\ + \x04\xe1\x01\n\x14\n\x93\x0b\n\x06\x04\t\x03\x01\x02\0\x12\x04\xfb\x01\ + \x04#\x1a\x82\x0b\x20The\x20elements\x20of\x20\"filters\"\x20all\x20proc\ + ess\x20a\x20copy\x20of\x20the\x20input\x20row,\x20and\x20the\n\x20result\ + s\x20are\x20pooled,\x20sorted,\x20and\x20combined\x20into\x20a\x20single\ + \x20output\x20row.\n\x20If\x20multiple\x20cells\x20are\x20produced\x20wi\ + th\x20the\x20same\x20column\x20and\x20timestamp,\n\x20they\x20will\x20al\ + l\x20appear\x20in\x20the\x20output\x20row\x20in\x20an\x20unspecified\x20\ + mutual\x20order.\n\x20Consider\x20the\x20following\x20example,\x20with\ + \x20three\x20filters:\n\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\x20input\x20row\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|\n\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\x20|\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20f(0)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20f(1)\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20f(2)\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\x20|\n\x20\x20\x20\x20\x201:\x20foo,bar\ + ,10,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foo,bar,10,z\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,bar,7,a\n\ + \x20\x20\x20\x20\x202:\x20foo,blah,11,z\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20far,blah,5,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20far,blah,5,x\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\x20|\n\ + \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|\n\x20\x20\x20\x20\x201:\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20foo,bar,10,z\x20\x20\x20//\x20could\x20have\x20switched\x20w\ + ith\x20#2\n\x20\x20\x20\x20\x202:\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20foo,bar,10,x\x20\x20\ + \x20//\x20could\x20have\x20switched\x20with\x20#1\n\x20\x20\x20\x20\x203\ + :\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20foo,blah,11,z\n\x20\x20\x20\x20\x204:\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20far,bar,7,a\n\x20\x20\x20\x20\x205:\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20far,blah,5,x\x20\ + \x20\x20//\x20identical\x20to\x20#6\n\x20\x20\x20\x20\x206:\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20far,blah,5,x\x20\x20\x20//\x20identical\x20to\x20#5\n\n\x20All\x20in\ + terleaved\x20filters\x20are\x20executed\x20atomically.\n\n\x0f\n\x07\x04\ + \t\x03\x01\x02\0\x04\x12\x04\xfb\x01\x04\x0c\n\x0f\n\x07\x04\t\x03\x01\ + \x02\0\x06\x12\x04\xfb\x01\r\x16\n\x0f\n\x07\x04\t\x03\x01\x02\0\x01\x12\ + \x04\xfb\x01\x17\x1e\n\x0f\n\x07\x04\t\x03\x01\x02\0\x03\x12\x04\xfb\x01\ + !\"\n\xb4\x03\n\x04\x04\t\x03\x02\x12\x06\x85\x02\x02\x92\x02\x03\x1a\ + \xa3\x03\x20A\x20RowFilter\x20which\x20evaluates\x20one\x20of\x20two\x20\ + possible\x20RowFilters,\x20depending\x20on\n\x20whether\x20or\x20not\x20\ + a\x20predicate\x20RowFilter\x20outputs\x20any\x20cells\x20from\x20the\ + \x20input\x20row.\n\n\x20IMPORTANT\x20NOTE:\x20The\x20predicate\x20filte\ + r\x20does\x20not\x20execute\x20atomically\x20with\x20the\n\x20true\x20an\ + d\x20false\x20filters,\x20which\x20may\x20lead\x20to\x20inconsistent\x20\ + or\x20unexpected\n\x20results.\x20Additionally,\x20Condition\x20filters\ + \x20have\x20poor\x20performance,\x20especially\n\x20when\x20filters\x20a\ + re\x20set\x20for\x20the\x20false\x20condition.\n\n\r\n\x05\x04\t\x03\x02\ + \x01\x12\x04\x85\x02\n\x13\n\xa0\x01\n\x06\x04\t\x03\x02\x02\0\x12\x04\ + \x88\x02\x04#\x1a\x8f\x01\x20If\x20`predicate_filter`\x20outputs\x20any\ + \x20cells,\x20then\x20`true_filter`\x20will\x20be\n\x20evaluated\x20on\ + \x20the\x20input\x20row.\x20Otherwise,\x20`false_filter`\x20will\x20be\ + \x20evaluated.\n\n\x11\n\x07\x04\t\x03\x02\x02\0\x04\x12\x06\x88\x02\x04\ + \x85\x02\x15\n\x0f\n\x07\x04\t\x03\x02\x02\0\x06\x12\x04\x88\x02\x04\r\n\ + \x0f\n\x07\x04\t\x03\x02\x02\0\x01\x12\x04\x88\x02\x0e\x1e\n\x0f\n\x07\ + \x04\t\x03\x02\x02\0\x03\x12\x04\x88\x02!\"\n\xa2\x01\n\x06\x04\t\x03\ + \x02\x02\x01\x12\x04\x8c\x02\x04\x1e\x1a\x91\x01\x20The\x20filter\x20to\ + \x20apply\x20to\x20the\x20input\x20row\x20if\x20`predicate_filter`\x20re\ + turns\x20any\n\x20results.\x20If\x20not\x20provided,\x20no\x20results\ + \x20will\x20be\x20returned\x20in\x20the\x20true\x20case.\n\n\x11\n\x07\ + \x04\t\x03\x02\x02\x01\x04\x12\x06\x8c\x02\x04\x88\x02#\n\x0f\n\x07\x04\ + \t\x03\x02\x02\x01\x06\x12\x04\x8c\x02\x04\r\n\x0f\n\x07\x04\t\x03\x02\ + \x02\x01\x01\x12\x04\x8c\x02\x0e\x19\n\x0f\n\x07\x04\t\x03\x02\x02\x01\ + \x03\x12\x04\x8c\x02\x1c\x1d\n\xac\x01\n\x06\x04\t\x03\x02\x02\x02\x12\ + \x04\x91\x02\x04\x1f\x1a\x9b\x01\x20The\x20filter\x20to\x20apply\x20to\ + \x20the\x20input\x20row\x20if\x20`predicate_filter`\x20does\x20not\n\x20\ + return\x20any\x20results.\x20If\x20not\x20provided,\x20no\x20results\x20\ + will\x20be\x20returned\x20in\x20the\n\x20false\x20case.\n\n\x11\n\x07\ + \x04\t\x03\x02\x02\x02\x04\x12\x06\x91\x02\x04\x8c\x02\x1e\n\x0f\n\x07\ + \x04\t\x03\x02\x02\x02\x06\x12\x04\x91\x02\x04\r\n\x0f\n\x07\x04\t\x03\ + \x02\x02\x02\x01\x12\x04\x91\x02\x0e\x1a\n\x0f\n\x07\x04\t\x03\x02\x02\ + \x02\x03\x12\x04\x91\x02\x1d\x1e\n\x86\x01\n\x04\x04\t\x08\0\x12\x06\x96\ + \x02\x02\xb8\x03\x03\x1av\x20Which\x20of\x20the\x20possible\x20RowFilter\ + \x20types\x20to\x20apply.\x20If\x20none\x20are\x20set,\x20this\n\x20RowF\ + ilter\x20returns\x20all\x20cells\x20in\x20the\x20input\x20row.\n\n\r\n\ + \x05\x04\t\x08\0\x01\x12\x04\x96\x02\x08\x0e\ni\n\x04\x04\t\x02\0\x12\ + \x04\x99\x02\x04\x14\x1a[\x20Applies\x20several\x20RowFilters\x20to\x20t\ + he\x20data\x20in\x20sequence,\x20progressively\n\x20narrowing\x20the\x20\ + results.\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\x99\x02\x04\t\n\r\n\x05\x04\ + \t\x02\0\x01\x12\x04\x99\x02\n\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x99\ + \x02\x12\x13\n]\n\x04\x04\t\x02\x01\x12\x04\x9d\x02\x04\x1e\x1aO\x20Appl\ + ies\x20several\x20RowFilters\x20to\x20the\x20data\x20in\x20parallel\x20a\ + nd\x20combines\x20the\n\x20results.\n\n\r\n\x05\x04\t\x02\x01\x06\x12\ + \x04\x9d\x02\x04\x0e\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x9d\x02\x0f\x19\ + \n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x9d\x02\x1c\x1d\nq\n\x04\x04\t\x02\ + \x02\x12\x04\xa1\x02\x04\x1c\x1ac\x20Applies\x20one\x20of\x20two\x20poss\ + ible\x20RowFilters\x20to\x20the\x20data\x20based\x20on\x20the\x20output\ + \x20of\n\x20a\x20predicate\x20RowFilter.\n\n\r\n\x05\x04\t\x02\x02\x06\ + \x12\x04\xa1\x02\x04\r\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xa1\x02\x0e\ + \x17\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xa1\x02\x1a\x1b\n\xb7\x14\n\x04\ + \x04\t\x02\x03\x12\x04\xde\x02\x04\x13\x1a\xa8\x14\x20ADVANCED\x20USE\ + \x20ONLY.\n\x20Hook\x20for\x20introspection\x20into\x20the\x20RowFilter.\ + \x20Outputs\x20all\x20cells\x20directly\x20to\n\x20the\x20output\x20of\ + \x20the\x20read\x20rather\x20than\x20to\x20any\x20parent\x20filter.\x20C\ + onsider\x20the\n\x20following\x20example:\n\n\x20\x20\x20\x20\x20Chain(\ + \n\x20\x20\x20\x20\x20\x20\x20FamilyRegex(\"A\"),\n\x20\x20\x20\x20\x20\ + \x20\x20Interleave(\n\x20\x20\x20\x20\x20\x20\x20\x20\x20All(),\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20Chain(Label(\"foo\"),\x20Sink())\n\x20\ + \x20\x20\x20\x20\x20\x20),\n\x20\x20\x20\x20\x20\x20\x20QualifierRegex(\ + \"B\")\n\x20\x20\x20\x20\x20)\n\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\x20A,A,1,w\ + \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\x20A,B,2,x\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\ + B,B,4,z\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|\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Fami\ + lyRegex(\"A\")\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|\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\x20A,A,1,w\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\x20A,B,2,x\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|\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\x20\x20|\x20\x20\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\x20All()\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20Label(foo)\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|\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20A,A,1,w\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20A,A,1,w,labels:[foo]\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20A,B,2,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20A,B,2,x,labels:[foo]\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|\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\ + \x20Sink()\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|\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20+------------+\x20\ + \x20\x20\x20\x20\x20x------+\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20A,A,\ + 1,w,labels:[foo]\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\x20A,B,2,x,labels:[foo]\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\x20A,A,\ + 1,w\x20\x20\x20\x20\x20\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\x20A,B,2,x\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20QualifierRegex(\"B\")\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\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20A,B,2,x\ + \x20\x20\x20\x20\x20\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\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|\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\x20A,A,1,w,labels:[foo]\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\x20A,B,2,x,\ + labels:[foo]\x20\x20//\x20could\x20be\x20switched\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\x20A,B,2,x\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20//\x20could\x20be\x20switched\n\n\x20Despite\x20being\x20excluded\ + \x20by\x20the\x20qualifier\x20filter,\x20a\x20copy\x20of\x20every\x20cel\ + l\n\x20that\x20reaches\x20the\x20sink\x20is\x20present\x20in\x20the\x20f\ + inal\x20result.\n\n\x20As\x20with\x20an\x20[Interleave][google.bigtable.\ + v2.RowFilter.Interleave],\n\x20duplicate\x20cells\x20are\x20possible,\ + \x20and\x20appear\x20in\x20an\x20unspecified\x20mutual\x20order.\n\x20In\ + \x20this\x20case\x20we\x20have\x20a\x20duplicate\x20with\x20column\x20\"\ + A:B\"\x20and\x20timestamp\x202,\n\x20because\x20one\x20copy\x20passed\ + \x20through\x20the\x20all\x20filter\x20while\x20the\x20other\x20was\n\ + \x20passed\x20through\x20the\x20label\x20and\x20sink.\x20Note\x20that\ + \x20one\x20copy\x20has\x20label\x20\"foo\",\n\x20while\x20the\x20other\ + \x20does\x20not.\n\n\x20Cannot\x20be\x20used\x20within\x20the\x20`predic\ + ate_filter`,\x20`true_filter`,\x20or\n\x20`false_filter`\x20of\x20a\x20[\ + Condition][google.bigtable.v2.RowFilter.Condition].\n\n\r\n\x05\x04\t\ + \x02\x03\x05\x12\x04\xde\x02\x04\x08\n\r\n\x05\x04\t\x02\x03\x01\x12\x04\ + \xde\x02\t\r\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xde\x02\x10\x12\n\x8a\ + \x01\n\x04\x04\t\x02\x04\x12\x04\xe2\x02\x04\x1e\x1a|\x20Matches\x20all\ + \x20cells,\x20regardless\x20of\x20input.\x20Functionally\x20equivalent\ + \x20to\n\x20leaving\x20`filter`\x20unset,\x20but\x20included\x20for\x20c\ + ompleteness.\n\n\r\n\x05\x04\t\x02\x04\x05\x12\x04\xe2\x02\x04\x08\n\r\n\ + \x05\x04\t\x02\x04\x01\x12\x04\xe2\x02\t\x18\n\r\n\x05\x04\t\x02\x04\x03\ + \x12\x04\xe2\x02\x1b\x1d\nw\n\x04\x04\t\x02\x05\x12\x04\xe6\x02\x04\x1f\ + \x1ai\x20Does\x20not\x20match\x20any\x20cells,\x20regardless\x20of\x20in\ + put.\x20Useful\x20for\x20temporarily\n\x20disabling\x20just\x20part\x20o\ + f\x20a\x20filter.\n\n\r\n\x05\x04\t\x02\x05\x05\x12\x04\xe6\x02\x04\x08\ + \n\r\n\x05\x04\t\x02\x05\x01\x12\x04\xe6\x02\t\x19\n\r\n\x05\x04\t\x02\ + \x05\x03\x12\x04\xe6\x02\x1c\x1e\n\xa4\x03\n\x04\x04\t\x02\x06\x12\x04\ + \xef\x02\x04#\x1a\x95\x03\x20Matches\x20only\x20cells\x20from\x20rows\ + \x20whose\x20keys\x20satisfy\x20the\x20given\x20RE2\x20regex.\x20In\n\ + \x20other\x20words,\x20passes\x20through\x20the\x20entire\x20row\x20when\ + \x20the\x20key\x20matches,\x20and\n\x20otherwise\x20produces\x20an\x20em\ + pty\x20row.\n\x20Note\x20that,\x20since\x20row\x20keys\x20can\x20contain\ + \x20arbitrary\x20bytes,\x20the\x20`\\C`\x20escape\n\x20sequence\x20must\ + \x20be\x20used\x20if\x20a\x20true\x20wildcard\x20is\x20desired.\x20The\ + \x20`.`\x20character\n\x20will\x20not\x20match\x20the\x20new\x20line\x20\ + character\x20`\\n`,\x20which\x20may\x20be\x20present\x20in\x20a\n\x20bin\ + ary\x20key.\n\n\r\n\x05\x04\t\x02\x06\x05\x12\x04\xef\x02\x04\t\n\r\n\ + \x05\x04\t\x02\x06\x01\x12\x04\xef\x02\n\x1e\n\r\n\x05\x04\t\x02\x06\x03\ + \x12\x04\xef\x02!\"\ny\n\x04\x04\t\x02\x07\x12\x04\xf3\x02\x04\"\x1ak\ + \x20Matches\x20all\x20cells\x20from\x20a\x20row\x20with\x20probability\ + \x20p,\x20and\x20matches\x20no\x20cells\n\x20from\x20the\x20row\x20with\ + \x20probability\x201-p.\n\n\r\n\x05\x04\t\x02\x07\x05\x12\x04\xf3\x02\ + \x04\n\n\r\n\x05\x04\t\x02\x07\x01\x12\x04\xf3\x02\x0b\x1c\n\r\n\x05\x04\ + \t\x02\x07\x03\x12\x04\xf3\x02\x1f!\n\xf0\x02\n\x04\x04\t\x02\x08\x12\ + \x04\xfb\x02\x04(\x1a\xe1\x02\x20Matches\x20only\x20cells\x20from\x20col\ + umns\x20whose\x20families\x20satisfy\x20the\x20given\x20RE2\n\x20regex.\ + \x20For\x20technical\x20reasons,\x20the\x20regex\x20must\x20not\x20conta\ + in\x20the\x20`:`\n\x20character,\x20even\x20if\x20it\x20is\x20not\x20bei\ + ng\x20used\x20as\x20a\x20literal.\n\x20Note\x20that,\x20since\x20column\ + \x20families\x20cannot\x20contain\x20the\x20new\x20line\x20character\n\ + \x20`\\n`,\x20it\x20is\x20sufficient\x20to\x20use\x20`.`\x20as\x20a\x20f\ + ull\x20wildcard\x20when\x20matching\n\x20column\x20family\x20names.\n\n\ + \r\n\x05\x04\t\x02\x08\x05\x12\x04\xfb\x02\x04\n\n\r\n\x05\x04\t\x02\x08\ + \x01\x12\x04\xfb\x02\x0b#\n\r\n\x05\x04\t\x02\x08\x03\x12\x04\xfb\x02&'\ + \n\xd2\x02\n\x04\x04\t\x02\t\x12\x04\x83\x03\x04,\x1a\xc3\x02\x20Matches\ + \x20only\x20cells\x20from\x20columns\x20whose\x20qualifiers\x20satisfy\ + \x20the\x20given\x20RE2\n\x20regex.\n\x20Note\x20that,\x20since\x20colum\ + n\x20qualifiers\x20can\x20contain\x20arbitrary\x20bytes,\x20the\x20`\\C`\ + \n\x20escape\x20sequence\x20must\x20be\x20used\x20if\x20a\x20true\x20wil\ + dcard\x20is\x20desired.\x20The\x20`.`\n\x20character\x20will\x20not\x20m\ + atch\x20the\x20new\x20line\x20character\x20`\\n`,\x20which\x20may\x20be\ + \n\x20present\x20in\x20a\x20binary\x20qualifier.\n\n\r\n\x05\x04\t\x02\t\ + \x05\x12\x04\x83\x03\x04\t\n\r\n\x05\x04\t\x02\t\x01\x12\x04\x83\x03\n'\ + \n\r\n\x05\x04\t\x02\t\x03\x12\x04\x83\x03*+\nG\n\x04\x04\t\x02\n\x12\ + \x04\x86\x03\x04(\x1a9\x20Matches\x20only\x20cells\x20from\x20columns\ + \x20within\x20the\x20given\x20range.\n\n\r\n\x05\x04\t\x02\n\x06\x12\x04\ + \x86\x03\x04\x0f\n\r\n\x05\x04\t\x02\n\x01\x12\x04\x86\x03\x10#\n\r\n\ + \x05\x04\t\x02\n\x03\x12\x04\x86\x03&'\nJ\n\x04\x04\t\x02\x0b\x12\x04\ + \x89\x03\x04.\x1a<\x20Matches\x20only\x20cells\x20with\x20timestamps\x20\ + within\x20the\x20given\x20range.\n\n\r\n\x05\x04\t\x02\x0b\x06\x12\x04\ + \x89\x03\x04\x12\n\r\n\x05\x04\t\x02\x0b\x01\x12\x04\x89\x03\x13)\n\r\n\ + \x05\x04\t\x02\x0b\x03\x12\x04\x89\x03,-\n\xc3\x02\n\x04\x04\t\x02\x0c\ + \x12\x04\x90\x03\x04!\x1a\xb4\x02\x20Matches\x20only\x20cells\x20with\ + \x20values\x20that\x20satisfy\x20the\x20given\x20regular\x20expression.\ + \n\x20Note\x20that,\x20since\x20cell\x20values\x20can\x20contain\x20arbi\ + trary\x20bytes,\x20the\x20`\\C`\x20escape\n\x20sequence\x20must\x20be\ + \x20used\x20if\x20a\x20true\x20wildcard\x20is\x20desired.\x20The\x20`.`\ + \x20character\n\x20will\x20not\x20match\x20the\x20new\x20line\x20charact\ + er\x20`\\n`,\x20which\x20may\x20be\x20present\x20in\x20a\n\x20binary\x20\ + value.\n\n\r\n\x05\x04\t\x02\x0c\x05\x12\x04\x90\x03\x04\t\n\r\n\x05\x04\ + \t\x02\x0c\x01\x12\x04\x90\x03\n\x1c\n\r\n\x05\x04\t\x02\x0c\x03\x12\x04\ + \x90\x03\x1f\x20\nP\n\x04\x04\t\x02\r\x12\x04\x93\x03\x04'\x1aB\x20Match\ + es\x20only\x20cells\x20with\x20values\x20that\x20fall\x20within\x20the\ + \x20given\x20range.\n\n\r\n\x05\x04\t\x02\r\x06\x12\x04\x93\x03\x04\x0e\ + \n\r\n\x05\x04\t\x02\r\x01\x12\x04\x93\x03\x0f!\n\r\n\x05\x04\t\x02\r\ + \x03\x12\x04\x93\x03$&\n\xcc\x01\n\x04\x04\t\x02\x0e\x12\x04\x98\x03\x04\ + +\x1a\xbd\x01\x20Skips\x20the\x20first\x20N\x20cells\x20of\x20each\x20ro\ + w,\x20matching\x20all\x20subsequent\x20cells.\n\x20If\x20duplicate\x20ce\ + lls\x20are\x20present,\x20as\x20is\x20possible\x20when\x20using\x20an\ + \x20Interleave,\n\x20each\x20copy\x20of\x20the\x20cell\x20is\x20counted\ + \x20separately.\n\n\r\n\x05\x04\t\x02\x0e\x05\x12\x04\x98\x03\x04\t\n\r\ + \n\x05\x04\t\x02\x0e\x01\x12\x04\x98\x03\n%\n\r\n\x05\x04\t\x02\x0e\x03\ + \x12\x04\x98\x03(*\n\xb4\x01\n\x04\x04\t\x02\x0f\x12\x04\x9d\x03\x04*\ + \x1a\xa5\x01\x20Matches\x20only\x20the\x20first\x20N\x20cells\x20of\x20e\ + ach\x20row.\n\x20If\x20duplicate\x20cells\x20are\x20present,\x20as\x20is\ + \x20possible\x20when\x20using\x20an\x20Interleave,\n\x20each\x20copy\x20\ + of\x20the\x20cell\x20is\x20counted\x20separately.\n\n\r\n\x05\x04\t\x02\ + \x0f\x05\x12\x04\x9d\x03\x04\t\n\r\n\x05\x04\t\x02\x0f\x01\x12\x04\x9d\ + \x03\n$\n\r\n\x05\x04\t\x02\x0f\x03\x12\x04\x9d\x03')\n\xf3\x02\n\x04\ + \x04\t\x02\x10\x12\x04\xa5\x03\x04-\x1a\xe4\x02\x20Matches\x20only\x20th\ + e\x20most\x20recent\x20N\x20cells\x20within\x20each\x20column.\x20For\ + \x20example,\n\x20if\x20N=2,\x20this\x20filter\x20would\x20match\x20colu\ + mn\x20`foo:bar`\x20at\x20timestamps\x2010\x20and\x209,\n\x20skip\x20all\ + \x20earlier\x20cells\x20in\x20`foo:bar`,\x20and\x20then\x20begin\x20matc\ + hing\x20again\x20in\n\x20column\x20`foo:bar2`.\n\x20If\x20duplicate\x20c\ + ells\x20are\x20present,\x20as\x20is\x20possible\x20when\x20using\x20an\ + \x20Interleave,\n\x20each\x20copy\x20of\x20the\x20cell\x20is\x20counted\ + \x20separately.\n\n\r\n\x05\x04\t\x02\x10\x05\x12\x04\xa5\x03\x04\t\n\r\ + \n\x05\x04\t\x02\x10\x01\x12\x04\xa5\x03\n'\n\r\n\x05\x04\t\x02\x10\x03\ + \x12\x04\xa5\x03*,\nA\n\x04\x04\t\x02\x11\x12\x04\xa8\x03\x04&\x1a3\x20R\ + eplaces\x20each\x20cell's\x20value\x20with\x20the\x20empty\x20string.\n\ + \n\r\n\x05\x04\t\x02\x11\x05\x12\x04\xa8\x03\x04\x08\n\r\n\x05\x04\t\x02\ + \x11\x01\x12\x04\xa8\x03\t\x20\n\r\n\x05\x04\t\x02\x11\x03\x12\x04\xa8\ + \x03#%\n\xfb\x04\n\x04\x04\t\x02\x12\x12\x04\xb7\x03\x04(\x1a\xec\x04\ + \x20Applies\x20the\x20given\x20label\x20to\x20all\x20cells\x20in\x20the\ + \x20output\x20row.\x20This\x20allows\n\x20the\x20client\x20to\x20determi\ + ne\x20which\x20results\x20were\x20produced\x20from\x20which\x20part\x20o\ + f\n\x20the\x20filter.\n\n\x20Values\x20must\x20be\x20at\x20most\x2015\ + \x20characters\x20in\x20length,\x20and\x20match\x20the\x20RE2\n\x20patte\ + rn\x20`[a-z0-9\\\\-]+`\n\n\x20Due\x20to\x20a\x20technical\x20limitation,\ + \x20it\x20is\x20not\x20currently\x20possible\x20to\x20apply\n\x20multipl\ + e\x20labels\x20to\x20a\x20cell.\x20As\x20a\x20result,\x20a\x20Chain\x20m\ + ay\x20have\x20no\x20more\x20than\n\x20one\x20sub-filter\x20which\x20cont\ + ains\x20a\x20`apply_label_transformer`.\x20It\x20is\x20okay\x20for\n\x20\ + an\x20Interleave\x20to\x20contain\x20multiple\x20`apply_label_transforme\ + rs`,\x20as\x20they\n\x20will\x20be\x20applied\x20to\x20separate\x20copie\ + s\x20of\x20the\x20input.\x20This\x20may\x20be\x20relaxed\x20in\n\x20the\ + \x20future.\n\n\r\n\x05\x04\t\x02\x12\x05\x12\x04\xb7\x03\x04\n\n\r\n\ + \x05\x04\t\x02\x12\x01\x12\x04\xb7\x03\x0b\"\n\r\n\x05\x04\t\x02\x12\x03\ + \x12\x04\xb7\x03%'\nR\n\x02\x04\n\x12\x06\xbc\x03\0\xfb\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\xbc\x03\ + \x08\x10\nH\n\x04\x04\n\x03\0\x12\x06\xbe\x03\x02\xd0\x03\x03\x1a8\x20A\ + \x20Mutation\x20which\x20sets\x20the\x20value\x20of\x20the\x20specified\ + \x20cell.\n\n\r\n\x05\x04\n\x03\0\x01\x12\x04\xbe\x03\n\x11\nm\n\x06\x04\ + \n\x03\0\x02\0\x12\x04\xc1\x03\x04\x1b\x1a]\x20The\x20name\x20of\x20the\ + \x20family\x20into\x20which\x20new\x20data\x20should\x20be\x20written.\n\ + \x20Must\x20match\x20`[-_.a-zA-Z0-9]+`\n\n\x11\n\x07\x04\n\x03\0\x02\0\ + \x04\x12\x06\xc1\x03\x04\xbe\x03\x13\n\x0f\n\x07\x04\n\x03\0\x02\0\x05\ + \x12\x04\xc1\x03\x04\n\n\x0f\n\x07\x04\n\x03\0\x02\0\x01\x12\x04\xc1\x03\ + \x0b\x16\n\x0f\n\x07\x04\n\x03\0\x02\0\x03\x12\x04\xc1\x03\x19\x1a\n\x89\ + \x01\n\x06\x04\n\x03\0\x02\x01\x12\x04\xc5\x03\x04\x1f\x1ay\x20The\x20qu\ + alifier\x20of\x20the\x20column\x20into\x20which\x20new\x20data\x20should\ + \x20be\x20written.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\ + \x20the\x20empty\x20string.\n\n\x11\n\x07\x04\n\x03\0\x02\x01\x04\x12\ + \x06\xc5\x03\x04\xc1\x03\x1b\n\x0f\n\x07\x04\n\x03\0\x02\x01\x05\x12\x04\ + \xc5\x03\x04\t\n\x0f\n\x07\x04\n\x03\0\x02\x01\x01\x12\x04\xc5\x03\n\x1a\ + \n\x0f\n\x07\x04\n\x03\0\x02\x01\x03\x12\x04\xc5\x03\x1d\x1e\n\xd1\x02\n\ + \x06\x04\n\x03\0\x02\x02\x12\x04\xcc\x03\x04\x1f\x1a\xc0\x02\x20The\x20t\ + imestamp\x20of\x20the\x20cell\x20into\x20which\x20new\x20data\x20should\ + \x20be\x20written.\n\x20Use\x20-1\x20for\x20current\x20Bigtable\x20serve\ + r\x20time.\n\x20Otherwise,\x20the\x20client\x20should\x20set\x20this\x20\ + value\x20itself,\x20noting\x20that\x20the\n\x20default\x20value\x20is\ + \x20a\x20timestamp\x20of\x20zero\x20if\x20the\x20field\x20is\x20left\x20\ + unspecified.\n\x20Values\x20must\x20match\x20the\x20granularity\x20of\ + \x20the\x20table\x20(e.g.\x20micros,\x20millis).\n\n\x11\n\x07\x04\n\x03\ + \0\x02\x02\x04\x12\x06\xcc\x03\x04\xc5\x03\x1f\n\x0f\n\x07\x04\n\x03\0\ + \x02\x02\x05\x12\x04\xcc\x03\x04\t\n\x0f\n\x07\x04\n\x03\0\x02\x02\x01\ + \x12\x04\xcc\x03\n\x1a\n\x0f\n\x07\x04\n\x03\0\x02\x02\x03\x12\x04\xcc\ + \x03\x1d\x1e\nB\n\x06\x04\n\x03\0\x02\x03\x12\x04\xcf\x03\x04\x14\x1a2\ + \x20The\x20value\x20to\x20be\x20written\x20into\x20the\x20specified\x20c\ + ell.\n\n\x11\n\x07\x04\n\x03\0\x02\x03\x04\x12\x06\xcf\x03\x04\xcc\x03\ + \x1f\n\x0f\n\x07\x04\n\x03\0\x02\x03\x05\x12\x04\xcf\x03\x04\t\n\x0f\n\ + \x07\x04\n\x03\0\x02\x03\x01\x12\x04\xcf\x03\n\x0f\n\x0f\n\x07\x04\n\x03\ + \0\x02\x03\x03\x12\x04\xcf\x03\x12\x13\n\x8d\x01\n\x04\x04\n\x03\x01\x12\ + \x06\xd4\x03\x02\xdf\x03\x03\x1a}\x20A\x20Mutation\x20which\x20deletes\ + \x20cells\x20from\x20the\x20specified\x20column,\x20optionally\n\x20rest\ + ricting\x20the\x20deletions\x20to\x20a\x20given\x20timestamp\x20range.\n\ + \n\r\n\x05\x04\n\x03\x01\x01\x12\x04\xd4\x03\n\x1a\nj\n\x06\x04\n\x03\ + \x01\x02\0\x12\x04\xd7\x03\x04\x1b\x1aZ\x20The\x20name\x20of\x20the\x20f\ + amily\x20from\x20which\x20cells\x20should\x20be\x20deleted.\n\x20Must\ + \x20match\x20`[-_.a-zA-Z0-9]+`\n\n\x11\n\x07\x04\n\x03\x01\x02\0\x04\x12\ + \x06\xd7\x03\x04\xd4\x03\x1c\n\x0f\n\x07\x04\n\x03\x01\x02\0\x05\x12\x04\ + \xd7\x03\x04\n\n\x0f\n\x07\x04\n\x03\x01\x02\0\x01\x12\x04\xd7\x03\x0b\ + \x16\n\x0f\n\x07\x04\n\x03\x01\x02\0\x03\x12\x04\xd7\x03\x19\x1a\n\x86\ + \x01\n\x06\x04\n\x03\x01\x02\x01\x12\x04\xdb\x03\x04\x1f\x1av\x20The\x20\ + qualifier\x20of\x20the\x20column\x20from\x20which\x20cells\x20should\x20\ + be\x20deleted.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\x20\ + the\x20empty\x20string.\n\n\x11\n\x07\x04\n\x03\x01\x02\x01\x04\x12\x06\ + \xdb\x03\x04\xd7\x03\x1b\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x05\x12\x04\ + \xdb\x03\x04\t\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x01\x12\x04\xdb\x03\n\ + \x1a\n\x0f\n\x07\x04\n\x03\x01\x02\x01\x03\x12\x04\xdb\x03\x1d\x1e\nO\n\ + \x06\x04\n\x03\x01\x02\x02\x12\x04\xde\x03\x04\"\x1a?\x20The\x20range\ + \x20of\x20timestamps\x20within\x20which\x20cells\x20should\x20be\x20dele\ + ted.\n\n\x11\n\x07\x04\n\x03\x01\x02\x02\x04\x12\x06\xde\x03\x04\xdb\x03\ + \x1f\n\x0f\n\x07\x04\n\x03\x01\x02\x02\x06\x12\x04\xde\x03\x04\x12\n\x0f\ + \n\x07\x04\n\x03\x01\x02\x02\x01\x12\x04\xde\x03\x13\x1d\n\x0f\n\x07\x04\ + \n\x03\x01\x02\x02\x03\x12\x04\xde\x03\x20!\nV\n\x04\x04\n\x03\x02\x12\ + \x06\xe2\x03\x02\xe6\x03\x03\x1aF\x20A\x20Mutation\x20which\x20deletes\ + \x20all\x20cells\x20from\x20the\x20specified\x20column\x20family.\n\n\r\ + \n\x05\x04\n\x03\x02\x01\x12\x04\xe2\x03\n\x1a\nj\n\x06\x04\n\x03\x02\ + \x02\0\x12\x04\xe5\x03\x04\x1b\x1aZ\x20The\x20name\x20of\x20the\x20famil\ + y\x20from\x20which\x20cells\x20should\x20be\x20deleted.\n\x20Must\x20mat\ + ch\x20`[-_.a-zA-Z0-9]+`\n\n\x11\n\x07\x04\n\x03\x02\x02\0\x04\x12\x06\ + \xe5\x03\x04\xe2\x03\x1c\n\x0f\n\x07\x04\n\x03\x02\x02\0\x05\x12\x04\xe5\ + \x03\x04\n\n\x0f\n\x07\x04\n\x03\x02\x02\0\x01\x12\x04\xe5\x03\x0b\x16\n\ + \x0f\n\x07\x04\n\x03\x02\x02\0\x03\x12\x04\xe5\x03\x19\x1a\nM\n\x04\x04\ + \n\x03\x03\x12\x06\xe9\x03\x02\xeb\x03\x03\x1a=\x20A\x20Mutation\x20whic\ + h\x20deletes\x20all\x20cells\x20from\x20the\x20containing\x20row.\n\n\r\ + \n\x05\x04\n\x03\x03\x01\x12\x04\xe9\x03\n\x17\n@\n\x04\x04\n\x08\0\x12\ + \x06\xee\x03\x02\xfa\x03\x03\x1a0\x20Which\x20of\x20the\x20possible\x20M\ + utation\x20types\x20to\x20apply.\n\n\r\n\x05\x04\n\x08\0\x01\x12\x04\xee\ + \x03\x08\x10\n#\n\x04\x04\n\x02\0\x12\x04\xf0\x03\x04\x19\x1a\x15\x20Set\ + \x20a\x20cell's\x20value.\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\xf0\x03\ + \x04\x0b\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xf0\x03\x0c\x14\n\r\n\x05\x04\ + \n\x02\0\x03\x12\x04\xf0\x03\x17\x18\n,\n\x04\x04\n\x02\x01\x12\x04\xf3\ + \x03\x04,\x1a\x1e\x20Deletes\x20cells\x20from\x20a\x20column.\n\n\r\n\ + \x05\x04\n\x02\x01\x06\x12\x04\xf3\x03\x04\x14\n\r\n\x05\x04\n\x02\x01\ + \x01\x12\x04\xf3\x03\x15'\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xf3\x03*+\ + \n3\n\x04\x04\n\x02\x02\x12\x04\xf6\x03\x04,\x1a%\x20Deletes\x20cells\ + \x20from\x20a\x20column\x20family.\n\n\r\n\x05\x04\n\x02\x02\x06\x12\x04\ + \xf6\x03\x04\x14\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xf6\x03\x15'\n\r\n\ + \x05\x04\n\x02\x02\x03\x12\x04\xf6\x03*+\n2\n\x04\x04\n\x02\x03\x12\x04\ + \xf9\x03\x04&\x1a$\x20Deletes\x20cells\x20from\x20the\x20entire\x20row.\ + \n\n\r\n\x05\x04\n\x02\x03\x06\x12\x04\xf9\x03\x04\x11\n\r\n\x05\x04\n\ + \x02\x03\x01\x12\x04\xf9\x03\x12!\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\ + \xf9\x03$%\nm\n\x02\x04\x0b\x12\x06\xff\x03\0\x97\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\xff\x03\x08\x1b\nv\n\x04\x04\x0b\x02\0\x12\x04\x82\x04\ + \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\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\x82\x04\ + \x02\xff\x03\x1d\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x82\x04\x02\x08\n\r\ + \n\x05\x04\x0b\x02\0\x01\x12\x04\x82\x04\t\x14\n\r\n\x05\x04\x0b\x02\0\ + \x03\x12\x04\x82\x04\x17\x18\n\x94\x01\n\x04\x04\x0b\x02\x01\x12\x04\x87\ + \x04\x02\x1d\x1a\x85\x01\x20The\x20qualifier\x20of\x20the\x20column\x20t\ + o\x20which\x20the\x20read/modify/write\x20should\x20be\n\x20applied.\n\ + \x20Can\x20be\x20any\x20byte\x20string,\x20including\x20the\x20empty\x20\ + string.\n\n\x0f\n\x05\x04\x0b\x02\x01\x04\x12\x06\x87\x04\x02\x82\x04\ + \x19\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\x87\x04\x02\x07\n\r\n\x05\x04\ + \x0b\x02\x01\x01\x12\x04\x87\x04\x08\x18\n\r\n\x05\x04\x0b\x02\x01\x03\ + \x12\x04\x87\x04\x1b\x1c\nj\n\x04\x04\x0b\x08\0\x12\x06\x8b\x04\x02\x96\ + \x04\x03\x1aZ\x20The\x20rule\x20used\x20to\x20determine\x20the\x20column\ + 's\x20new\x20latest\x20value\x20from\x20its\x20current\n\x20latest\x20va\ + lue.\n\n\r\n\x05\x04\x0b\x08\0\x01\x12\x04\x8b\x04\x08\x0c\n\xab\x01\n\ + \x04\x04\x0b\x02\x02\x12\x04\x8f\x04\x04\x1b\x1a\x9c\x01\x20Rule\x20spec\ + ifying\x20that\x20`append_value`\x20be\x20appended\x20to\x20the\x20exist\ + ing\x20value.\n\x20If\x20the\x20targeted\x20cell\x20is\x20unset,\x20it\ + \x20will\x20be\x20treated\x20as\x20containing\x20the\n\x20empty\x20strin\ + g.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\x8f\x04\x04\t\n\r\n\x05\x04\ + \x0b\x02\x02\x01\x12\x04\x8f\x04\n\x16\n\r\n\x05\x04\x0b\x02\x02\x03\x12\ + \x04\x8f\x04\x19\x1a\n\xb3\x02\n\x04\x04\x0b\x02\x03\x12\x04\x95\x04\x04\ + \x1f\x1a\xa4\x02\x20Rule\x20specifying\x20that\x20`increment_amount`\x20\ + be\x20added\x20to\x20the\x20existing\x20value.\n\x20If\x20the\x20targete\ + d\x20cell\x20is\x20unset,\x20it\x20will\x20be\x20treated\x20as\x20contai\ + ning\x20a\x20zero.\n\x20Otherwise,\x20the\x20targeted\x20cell\x20must\ + \x20contain\x20an\x208-byte\x20value\x20(interpreted\n\x20as\x20a\x2064-\ + bit\x20big-endian\x20signed\x20integer),\x20or\x20the\x20entire\x20reque\ + st\x20will\x20fail.\n\n\r\n\x05\x04\x0b\x02\x03\x05\x12\x04\x95\x04\x04\ + \t\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\x95\x04\n\x1a\n\r\n\x05\x04\x0b\ + \x02\x03\x03\x12\x04\x95\x04\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/vendor/mozilla-rust-sdk/googleapis-raw/src/empty.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/empty.rs index 6019293da8..4d7406cccc 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/empty.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/empty.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct Empty { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy.rs index 13b83945ef..cf96ba613f 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct SetIamPolicyRequest { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy_grpc.rs index d8a745ee25..599eb48ddc 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/iam_policy_grpc.rs @@ -102,15 +102,9 @@ impl IamPolicyClient { } pub trait IamPolicy { - 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) - } + fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); } pub fn create_iam_policy(s: S) -> ::grpcio::Service { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/options.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/options.rs index 377b1e3a54..689883a49c 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/options.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/options.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct GetPolicyOptions { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/policy.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/policy.rs index bd1f2ff8b7..bb21525ce3 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/policy.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/iam/v1/policy.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct Policy { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/lib.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/lib.rs index f28edfa032..06edf95744 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/lib.rs +++ b/vendor/mozilla-rust-sdk/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_23_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; pub mod empty; pub(crate) mod iam; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations.rs index 9e507b9fea..7ac9881925 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct Operation { @@ -1828,310 +1828,319 @@ pub mod exts { static file_descriptor_proto_data: &'static [u8] = b"\ \n#google/longrunning/operations.proto\x12\x12google.longrunning\x1a\x1c\ - 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\xccM\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\x0b\n\x03\x07\0\x04\x12\ - \x04)\x02\"&\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\0u\ - \x01\x1a\xc5\x04\x20Manages\x20long-running\x20operations\x20with\x20an\ - \x20API\x20service.\n\n\x20When\x20an\x20API\x20method\x20normally\x20ta\ - kes\x20long\x20time\x20to\x20complete,\x20it\x20can\x20be\x20designed\n\ - \x20to\x20return\x20[Operation][google.longrunning.Operation]\x20to\x20t\ - he\x20client,\x20and\x20the\x20client\x20can\x20use\x20this\n\x20interfa\ - ce\x20to\x20receive\x20the\x20real\x20response\x20asynchronously\x20by\ - \x20polling\x20the\n\x20operation\x20resource,\x20or\x20pass\x20the\x20o\ - peration\x20resource\x20to\x20another\x20API\x20(such\x20as\n\x20Google\ - \x20Cloud\x20Pub/Sub\x20API)\x20to\x20receive\x20the\x20response.\x20\ - \x20Any\x20API\x20service\x20that\n\x20returns\x20long-running\x20operat\ - ions\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\x20Lists\x20operations\x20that\x20match\x20th\ - e\x20specified\x20filter\x20in\x20the\x20request.\x20If\x20the\n\x20serv\ - er\x20doesn't\x20support\x20this\x20method,\x20it\x20returns\x20`UNIMPLE\ - MENTED`.\n\n\x20NOTE:\x20the\x20`name`\x20binding\x20allows\x20API\x20se\ - rvices\x20to\x20override\x20the\x20binding\n\x20to\x20use\x20different\ - \x20resource\x20name\x20schemes,\x20such\x20as\x20`users/*/operations`.\ - \x20To\n\x20override\x20the\x20binding,\x20API\x20services\x20can\x20add\ - \x20a\x20binding\x20such\x20as\n\x20`\"/v1/{name=users/*}/operations\"`\ - \x20to\x20their\x20service\x20configuration.\n\x20For\x20backwards\x20co\ - mpatibility,\x20the\x20default\x20name\x20includes\x20the\x20operations\ - \n\x20collection\x20id,\x20however\x20overriding\x20users\x20must\x20ens\ - ure\x20the\x20name\x20binding\n\x20is\x20the\x20parent\x20resource,\x20w\ - ithout\x20the\x20operations\x20collection\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@5K\n\r\n\x05\x06\0\x02\0\x04\x12\x04A\x04\ - C\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\x20long-running\x20operation.\x20\x20Clie\ - nts\x20can\x20use\x20this\n\x20method\x20to\x20poll\x20the\x20operation\ + 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\"'\xdaA\x04name\x82\xd3\ + \xe4\x93\x02\x1a*\x18/v1/{name=operations/**}\x12\x88\x01\n\x0fCancelOpe\ + ration\x12*.google.longrunning.CancelOperationRequest\x1a\x16.google.pro\ + tobuf.Empty\"1\x82\xd3\xe4\x93\x02$\"\x1f/v1/{name=operations/**}:cancel\ + :\x01*\xdaA\x04name\x12Z\n\rWaitOperation\x12(.google.longrunning.WaitOp\ + erationRequest\x1a\x1d.google.longrunning.Operation\"\0\x1a\x1d\xcaA\x1a\ + longrunning.googleapis.com:i\n\x0eoperation_info\x18\x99\x08\x20\x01(\ + \x0b2!.google.longrunning.OperationInfo\x12\x1e.google.protobuf.MethodOp\ + tionsR\roperationInfoB\x97\x01\n\x16com.google.longrunningB\x0fOperation\ + sProtoP\x01Z=google.golang.org/genproto/googleapis/longrunning;longrunni\ + ng\xf8\x01\x01\xaa\x02\x12Google.LongRunning\xca\x02\x12Google\\LongRunn\ + ingJ\xf1N\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\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\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\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\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\x0b\n\x03\x07\0\x04\x12\x04)\x02\"&\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-runn\ + ing\x20operations\x20with\x20an\x20API\x20service.\n\n\x20When\x20an\x20\ + API\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\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\x20API\x20services\x20to\x20overr\ + ide\x20the\x20binding\n\x20to\x20use\x20different\x20resource\x20name\ + \x20schemes,\x20such\x20as\x20`users/*/operations`.\x20To\n\x20override\ + \x20the\x20binding,\x20API\x20services\x20can\x20add\x20a\x20binding\x20\ + such\x20as\n\x20`\"/v1/{name=users/*}/operations\"`\x20to\x20their\x20se\ + rvice\x20configuration.\n\x20For\x20backwards\x20compatibility,\x20the\ + \x20default\x20name\x20includes\x20the\x20operations\n\x20collection\x20\ + id,\x20however\x20overriding\x20users\x20must\x20ensure\x20the\x20name\ + \x20binding\n\x20is\x20the\x20parent\x20resource,\x20without\x20the\x20o\ + perations\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\x20th\ + e\x20latest\x20state\x20of\x20a\x20long-running\x20operation.\x20\x20Cli\ + ents\x20can\x20use\x20this\n\x20method\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\x20op\ - eration.\x20This\x20method\x20indicates\x20that\x20the\x20client\x20is\n\ - \x20no\x20longer\x20interested\x20in\x20the\x20operation\x20result.\x20I\ - t\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\x20long-running\x20operation.\x20\x20The\x20\ - server\n\x20makes\x20a\x20best\x20effort\x20to\x20cancel\x20the\x20opera\ - tion,\x20but\x20success\x20is\x20not\n\x20guaranteed.\x20\x20If\x20the\ - \x20server\x20doesn't\x20support\x20this\x20method,\x20it\x20returns\n\ - \x20`google.rpc.Code.UNIMPLEMENTED`.\x20\x20Clients\x20can\x20use\n\x20[\ - Operations.GetOperation][google.longrunning.Operations.GetOperation]\x20\ - or\n\x20other\x20methods\x20to\x20check\x20whether\x20the\x20cancellatio\ - n\x20succeeded\x20or\x20whether\x20the\n\x20operation\x20completed\x20de\ - spite\x20cancellation.\x20On\x20successful\x20cancellation,\n\x20the\x20\ - operation\x20is\x20not\x20deleted;\x20instead,\x20it\x20becomes\x20an\ - \x20operation\x20with\n\x20an\x20[Operation.error][google.longrunning.Op\ - eration.error]\x20value\x20with\x20a\x20[google.rpc.Status.code][google.\ - rpc.Status.code]\x20of\x201,\n\x20corresponding\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\x20for\x20the\x20specified\x20long-runnin\ - g\x20operation\x20until\x20it\x20is\x20done\x20or\x20reaches\n\x20at\x20\ - most\x20a\x20specified\x20timeout,\x20returning\x20the\x20latest\x20stat\ - e.\x20\x20If\x20the\x20operation\n\x20is\x20already\x20done,\x20the\x20l\ - atest\x20state\x20is\x20immediately\x20returned.\x20\x20If\x20the\x20tim\ - eout\n\x20specified\x20is\x20greater\x20than\x20the\x20default\x20HTTP/R\ - PC\x20timeout,\x20the\x20HTTP/RPC\n\x20timeout\x20is\x20used.\x20\x20If\ + \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\x20th\ + at\x20the\x20client\x20is\n\x20no\x20longer\x20interested\x20in\x20the\ + \x20operation\x20result.\x20It\x20does\x20not\x20cancel\x20the\n\x20oper\ + ation.\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\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\x03W7L\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\x20asynchronous\x20cancellation\ + \x20on\x20a\x20long-running\x20operation.\x20\x20The\x20server\n\x20make\ + s\x20a\x20best\x20effort\x20to\x20cancel\x20the\x20operation,\x20but\x20\ + success\x20is\x20not\n\x20guaranteed.\x20\x20If\x20the\x20server\x20does\ + n't\x20support\x20this\x20method,\x20it\x20returns\n\x20`google.rpc.Code\ + .UNIMPLEMENTED`.\x20\x20Clients\x20can\x20use\n\x20[Operations.GetOperat\ + ion][google.longrunning.Operations.GetOperation]\x20or\n\x20other\x20met\ + hods\x20to\x20check\x20whether\x20the\x20cancellation\x20succeeded\x20or\ + \x20whether\x20the\n\x20operation\x20completed\x20despite\x20cancellatio\ + n.\x20On\x20successful\x20cancellation,\n\x20the\x20operation\x20is\x20n\ + ot\x20deleted;\x20instead,\x20it\x20becomes\x20an\x20operation\x20with\n\ + \x20an\x20[Operation.error][google.longrunning.Operation.error]\x20value\ + \x20with\x20a\x20[google.rpc.Status.code][google.rpc.Status.code]\x20of\ + \x201,\n\x20corresponding\x20to\x20`Code.CANCELLED`.\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\x03h7L\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\x20\ + a\x20specified\x20timeout,\x20returning\x20the\x20latest\x20state.\x20\ + \x20If\x20the\x20operation\x20is\n\x20already\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\x20timeout\x20is\x20used.\x20\x20If\ \x20the\x20server\x20does\x20not\x20support\x20this\x20method,\x20it\x20\ returns\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\x20before\x20the\x20specified\x20\ timeout\x20(including\x20immediately),\x20meaning\x20even\x20an\n\x20imm\ ediate\x20response\x20is\x20no\x20guarantee\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\x20operation\x20that\x20is\x20the\ + \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\x20resourc\ + e\x20represents\x20a\x20long-running\x20operation\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\x20have\x20the\x20format\x20of\x20`operations/som\ - e/unique/name`.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04}\x02y\x13\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\x20m\ - etadata\x20associated\x20with\x20the\x20operation.\x20\x20It\x20typicall\ - y\n\x20contains\x20progress\x20information\x20and\x20common\x20metadata\ - \x20such\x20as\x20create\x20time.\n\x20Some\x20services\x20might\x20not\ - \x20provide\x20such\x20metadata.\x20\x20Any\x20method\x20that\x20returns\ - \x20a\n\x20long-running\x20operation\x20should\x20document\x20the\x20met\ - adata\x20type,\x20if\x20any.\n\n\x0e\n\x05\x04\0\x02\x01\x04\x12\x05\x83\ - \x01\x02}\x12\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\x20me\ - ans\x20the\x20operation\x20is\x20still\x20in\x20progress.\n\x20If\x20`tr\ - ue`,\x20the\x20operation\x20is\x20completed,\x20and\x20either\x20`error`\ - \x20or\x20`response`\x20is\n\x20available.\n\n\x0f\n\x05\x04\0\x02\x02\ - \x04\x12\x06\x88\x01\x02\x83\x01#\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`\x20or\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\x20failure\x20or\x20cance\ - llation.\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\x20metho\ - d\x20returns\x20no\x20data\x20on\x20success,\x20such\x20as\x20`Delete`,\ - \x20the\x20response\x20is\n\x20`google.protobuf.Empty`.\x20\x20If\x20the\ - \x20original\x20method\x20is\x20standard\n\x20`Get`/`Create`/`Update`,\ - \x20the\x20response\x20should\x20be\x20the\x20resource.\x20\x20For\x20ot\ - her\n\x20methods,\x20the\x20response\x20should\x20have\x20the\x20type\ - \x20`XxxResponse`,\x20where\x20`Xxx`\n\x20is\x20the\x20original\x20metho\ - d\x20name.\x20\x20For\x20example,\x20if\x20the\x20original\x20method\x20\ - name\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\x20message\x20for\x20[Oper\ - ations.GetOperation][google.longrunning.Operations.GetOperation].\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\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xa0\x01\x02\x9e\ - \x01\x1d\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.ListOperations][goog\ - le.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\x20parent\x20resource.\n\n\ - \x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xa6\x01\x02\xa4\x01\x1f\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\x20stan\ - dard\x20list\x20filter.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xa9\ - \x01\x02\xa6\x01\x12\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\x20standard\x20list\x20page\x20size.\ - \n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xac\x01\x02\xa9\x01\x14\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\x0f\n\x05\x04\x02\ - \x02\x03\x04\x12\x06\xaf\x01\x02\xac\x01\x16\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\x20me\ - ssage\x20for\x20[Operations.ListOperations][google.longrunning.Operation\ - s.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\x20ope\ - rations\x20that\x20matches\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\x20stan\ - dard\x20List\x20next-page\x20token.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\ - \x12\x06\xb8\x01\x02\xb5\x01$\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.CancelOperation][google.longrunning.Operations.CancelOperatio\ - n].\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\x20opera\ - tion\x20resource\x20to\x20be\x20cancelled.\n\n\x0f\n\x05\x04\x04\x02\0\ - \x04\x12\x06\xbe\x01\x02\xbc\x01\x20\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[Oper\ - ations.DeleteOperation][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\ - \x20resource\x20to\x20be\x20deleted.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\ - \x06\xc4\x01\x02\xc2\x01\x20\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[Operations.W\ - aitOperation][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\x20resour\ - ce\x20to\x20wait\x20on.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xca\x01\ - \x02\xc8\x01\x1e\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\x20to\x20wait\x20before\ - \x20timing\x20out.\x20If\x20left\x20blank,\x20the\x20wait\n\x20will\x20b\ - e\x20at\x20most\x20the\x20time\x20permitted\x20by\x20the\x20underlying\ - \x20HTTP/RPC\x20protocol.\n\x20If\x20RPC\x20context\x20deadline\x20is\ - \x20also\x20specified,\x20the\x20shorter\x20one\x20will\x20be\x20used.\n\ - \n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xcf\x01\x02\xca\x01\x12\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\x20message\x20types\x20used\x20b\ - y\x20a\x20long-running\x20operation.\n\n\x20Example:\n\n\x20\x20\x20rpc\ - \x20LongRunningRecognize(LongRunningRecognizeRequest)\n\x20\x20\x20\x20\ - \x20\x20\x20returns\x20(google.longrunning.Operation)\x20{\n\x20\x20\x20\ - \x20\x20option\x20(google.longrunning.operation_info)\x20=\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20response_type:\x20\"LongRunningRecognizeResponse\ - \"\n\x20\x20\x20\x20\x20\x20\x20metadata_type:\x20\"LongRunningRecognize\ - Metadata\"\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\x20message\x20name\x20of\ - \x20the\x20primary\x20return\x20type\x20for\x20this\n\x20long-running\ - \x20operation.\n\x20This\x20type\x20will\x20be\x20used\x20to\x20deserial\ - ize\x20the\x20LRO's\x20response.\n\n\x20If\x20the\x20response\x20is\x20i\ - n\x20a\x20different\x20package\x20from\x20the\x20rpc,\x20a\x20fully-qual\ - ified\n\x20message\x20name\x20must\x20be\x20used\x20(e.g.\x20`google.pro\ - tobuf.Struct`).\n\n\x20Note:\x20Altering\x20this\x20value\x20constitutes\ - \x20a\x20breaking\x20change.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xe6\ - \x01\x02\xdd\x01\x17\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\x20o\ - f\x20the\x20metadata\x20type\x20for\x20this\x20long-running\n\x20operati\ - on.\n\n\x20If\x20the\x20response\x20is\x20in\x20a\x20different\x20packag\ - e\x20from\x20the\x20rpc,\x20a\x20fully-qualified\n\x20message\x20name\ - \x20must\x20be\x20used\x20(e.g.\x20`google.protobuf.Struct`).\n\n\x20Not\ - e:\x20Altering\x20this\x20value\x20constitutes\x20a\x20breaking\x20chang\ - e.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xef\x01\x02\xe6\x01\x1b\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\ + \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\x20that\n\x20originally\ + \x20returns\x20it.\x20If\x20you\x20use\x20the\x20default\x20HTTP\x20mapp\ + ing,\x20the\n\x20`name`\x20should\x20be\x20a\x20resource\x20name\x20endi\ + ng\x20with\x20`operations/{unique_id}`.\n\n\x0e\n\x05\x04\0\x02\0\x04\ + \x12\x05\x83\x01\x02\x7f\x13\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\x20Service-specific\x20metadata\x20associated\ + \x20with\x20the\x20operation.\x20\x20It\x20typically\n\x20contains\x20pr\ + ogress\x20information\x20and\x20common\x20metadata\x20such\x20as\x20crea\ + te\x20time.\n\x20Some\x20services\x20might\x20not\x20provide\x20such\x20\ + metadata.\x20\x20Any\x20method\x20that\x20returns\x20a\n\x20long-running\ + \x20operation\x20should\x20document\x20the\x20metadata\x20type,\x20if\ + \x20any.\n\n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\x89\x01\x02\x83\x01\x12\ + \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\x20value\x20is\x20`false`,\x20it\x20means\x20the\x20op\ + eration\x20is\x20still\x20in\x20progress.\n\x20If\x20`true`,\x20the\x20o\ + peration\x20is\x20completed,\x20and\x20either\x20`error`\x20or\x20`respo\ + nse`\x20is\n\x20available.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\x8e\ + \x01\x02\x89\x01#\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\x20be\x20either\x20an\x20`error`\x20or\x20a\x20valid\x20`respons\ + e`.\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`\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\x20operatio\ + n\x20in\x20case\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\x20response\x20of\x20the\x20operation\x20in\x20case\x20of\x20\ + success.\x20\x20If\x20the\x20original\n\x20method\x20returns\x20no\x20da\ + ta\x20on\x20success,\x20such\x20as\x20`Delete`,\x20the\x20response\x20is\ + \n\x20`google.protobuf.Empty`.\x20\x20If\x20the\x20original\x20method\ + \x20is\x20standard\n\x20`Get`/`Create`/`Update`,\x20the\x20response\x20s\ + hould\x20be\x20the\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\x20ex\ + ample,\x20if\x20the\x20original\x20method\x20name\n\x20is\x20`TakeSnapsh\ + ot()`,\x20the\x20inferred\x20response\x20type\x20is\n\x20`TakeSnapshotRe\ + sponse`.\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\x20request\x20message\x20for\x20[Operations.GetOperation][google\ + .longrunning.Operations.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%\x20\ + The\x20name\x20of\x20the\x20operation\x20resource.\n\n\x0f\n\x05\x04\x01\ + \x02\0\x04\x12\x06\xa6\x01\x02\xa4\x01\x1d\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\x0f\n\x05\x04\x02\x02\0\x04\x12\ + \x06\xac\x01\x02\xaa\x01\x1f\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\x0f\n\ + \x05\x04\x02\x02\x01\x04\x12\x06\xaf\x01\x02\xac\x01\x12\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\x20\ + standard\x20list\x20page\x20size.\n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\ + \x06\xb2\x01\x02\xaf\x01\x14\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\x20standard\x20list\x20page\ + \x20token.\n\n\x0f\n\x05\x04\x02\x02\x03\x04\x12\x06\xb5\x01\x02\xb2\x01\ + \x16\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][goo\ + gle.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$\x1a\ + H\x20A\x20list\x20of\x20operations\x20that\x20matches\x20the\x20specifie\ + d\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\x0f\n\ + \x05\x04\x03\x02\x01\x04\x12\x06\xbe\x01\x02\xbb\x01$\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.CancelOperation][google.longrunning.Op\ + erations.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\x20resource\x20to\x20be\x20cancelled.\n\n\x0f\ + \n\x05\x04\x04\x02\0\x04\x12\x06\xc4\x01\x02\xc2\x01\x20\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\x20m\ + essage\x20for\x20[Operations.DeleteOperation][google.longrunning.Operati\ + ons.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\x20o\ + f\x20the\x20operation\x20resource\x20to\x20be\x20deleted.\n\n\x0f\n\x05\ + \x04\x05\x02\0\x04\x12\x06\xca\x01\x02\xc8\x01\x20\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.Wait\ + Operation].\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\x0f\n\x05\x04\x06\x02\ + \0\x04\x12\x06\xd0\x01\x02\xce\x01\x1e\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\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xd5\x01\x02\ + \xd0\x01\x12\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\x20ty\ + pes\x20used\x20by\x20a\x20long-running\x20operation.\n\n\x20Example:\n\n\ + \x20\x20\x20rpc\x20LongRunningRecognize(LongRunningRecognizeRequest)\n\ + \x20\x20\x20\x20\x20\x20\x20returns\x20(google.longrunning.Operation)\ + \x20{\n\x20\x20\x20\x20\x20option\x20(google.longrunning.operation_info)\ + \x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20response_type:\x20\"LongRunningR\ + ecognizeResponse\"\n\x20\x20\x20\x20\x20\x20\x20metadata_type:\x20\"Long\ + RunningRecognizeMetadata\"\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.\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\x0f\n\x05\x04\x07\x02\0\ + \x04\x12\x06\xec\x01\x02\xe3\x01\x17\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\x20Required.\x20The\x20mess\ + age\x20name\x20of\x20the\x20metadata\x20type\x20for\x20this\x20long-runn\ + ing\n\x20operation.\n\n\x20If\x20the\x20response\x20is\x20in\x20a\x20dif\ + ferent\x20package\x20from\x20the\x20rpc,\x20a\x20fully-qualified\n\x20me\ + ssage\x20name\x20must\x20be\x20used\x20(e.g.\x20`google.protobuf.Struct`\ + ).\n\n\x20Note:\x20Altering\x20this\x20value\x20constitutes\x20a\x20brea\ + king\x20change.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xf5\x01\x02\ + \xec\x01\x1b\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\x06proto3\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations_grpc.rs index f20fb694a8..cbb1afcaa9 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/longrunning/operations_grpc.rs @@ -148,21 +148,11 @@ impl OperationsClient { } pub trait Operations { - fn list_operations(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::ListOperationsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_operation(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::GetOperationRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_operation(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::DeleteOperationRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn cancel_operation(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::CancelOperationRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn wait_operation(&mut self, ctx: ::grpcio::RpcContext, _req: super::operations::WaitOperationRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } + fn list_operations(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::ListOperationsRequest, sink: ::grpcio::UnarySink); + fn get_operation(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::GetOperationRequest, sink: ::grpcio::UnarySink); + fn delete_operation(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::DeleteOperationRequest, sink: ::grpcio::UnarySink); + fn cancel_operation(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::CancelOperationRequest, sink: ::grpcio::UnarySink); + fn wait_operation(&mut self, ctx: ::grpcio::RpcContext, req: super::operations::WaitOperationRequest, sink: ::grpcio::UnarySink); } pub fn create_operations(s: S) -> ::grpcio::Service { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub.rs new file mode 100644 index 0000000000..0dce354355 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub.rs @@ -0,0 +1,12023 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/pubsub.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct MessageStoragePolicy { + // message fields + pub allowed_persistence_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 MessageStoragePolicy { + fn default() -> &'a MessageStoragePolicy { + ::default_instance() + } +} + +impl MessageStoragePolicy { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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_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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + for v in &self.allowed_persistence_regions { + 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() -> 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 default_instance() -> &'static MessageStoragePolicy { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(MessageStoragePolicy::new) + } +} + +impl ::protobuf::Clear for MessageStoragePolicy { + fn clear(&mut self) { + self.allowed_persistence_regions.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SchemaSettings { + // message fields + pub schema: ::std::string::String, + pub encoding: super::schema::Encoding, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SchemaSettings { + fn default() -> &'a SchemaSettings { + ::default_instance() + } +} + +impl SchemaSettings { + pub fn new() -> SchemaSettings { + ::std::default::Default::default() + } + + // string schema = 1; + + + pub fn get_schema(&self) -> &str { + &self.schema + } + pub fn clear_schema(&mut self) { + self.schema.clear(); + } + + // Param is passed by value, moved + pub fn set_schema(&mut self, v: ::std::string::String) { + self.schema = 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 ::std::string::String { + &mut self.schema + } + + // Take field + pub fn take_schema(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.schema, ::std::string::String::new()) + } + + // .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; + } + + // Param is passed by value, moved + pub fn set_encoding(&mut self, v: super::schema::Encoding) { + self.encoding = v; + } +} + +impl ::protobuf::Message for SchemaSettings { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)?; + }, + 2 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encoding, 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.schema.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.schema); + } + if self.encoding != super::schema::Encoding::ENCODING_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(2, self.encoding); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + 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)?; + } + if self.encoding != super::schema::Encoding::ENCODING_UNSPECIFIED { + os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.encoding))?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> SchemaSettings { + SchemaSettings::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "SchemaSettings", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static SchemaSettings { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SchemaSettings::new) + } +} + +impl ::protobuf::Clear for SchemaSettings { + fn clear(&mut self) { + self.schema.clear(); + self.encoding = super::schema::Encoding::ENCODING_UNSPECIFIED; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for SchemaSettings { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Topic { + // 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, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Topic { + fn default() -> &'a Topic { + ::default_instance() + } +} + +impl Topic { + pub fn new() -> 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()) + } + + // 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(); + } + + // 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.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(); + } + + pub fn has_message_storage_policy(&self) -> bool { + self.message_storage_policy.is_some() + } + + // Param is passed by value, moved + pub fn set_message_storage_policy(&mut self, v: MessageStoragePolicy) { + self.message_storage_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_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() + } + + // Take field + pub fn take_message_storage_policy(&mut self) -> MessageStoragePolicy { + self.message_storage_policy.take().unwrap_or_else(|| MessageStoragePolicy::new()) + } + + // string kms_key_name = 5; + + + 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()) + } + + // .google.pubsub.v1.SchemaSettings schema_settings = 6; + + + 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(); + } + + pub fn has_schema_settings(&self) -> bool { + self.schema_settings.is_some() + } + + // Param is passed by value, moved + pub fn set_schema_settings(&mut self, v: SchemaSettings) { + self.schema_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_schema_settings(&mut self) -> &mut SchemaSettings { + if self.schema_settings.is_none() { + self.schema_settings.set_default(); + } + self.schema_settings.as_mut().unwrap() + } + + // Take field + pub fn take_schema_settings(&mut self) -> SchemaSettings { + self.schema_settings.take().unwrap_or_else(|| SchemaSettings::new()) + } + + // 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; + } + + // Param is passed by value, moved + pub fn set_satisfies_pzs(&mut self, v: bool) { + self.satisfies_pzs = v; + } +} + +impl ::protobuf::Message for Topic { + 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; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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::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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 }, + )); + 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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Topic", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Topic { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Topic::new) + } +} + +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.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PubsubMessage { + // 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, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a PubsubMessage { + fn default() -> &'a PubsubMessage { + ::default_instance() + } +} + +impl PubsubMessage { + pub fn new() -> 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.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(); + } + + // 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()) + } + + // .google.protobuf.Timestamp publish_time = 4; + + + 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(); + } + + pub fn has_publish_time(&self) -> bool { + self.publish_time.is_some() + } + + // 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()) + } +} + +impl ::protobuf::Message for PubsubMessage { + 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)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.publish_time)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ordering_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.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 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.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 + } + + 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)?; + } + 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.ordering_key.is_empty() { + os.write_string(5, &self.ordering_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() -> 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 }, + )); + 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 default_instance() -> &'static PubsubMessage { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PubsubMessage::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetTopicRequest { + // 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 GetTopicRequest { + fn default() -> &'a GetTopicRequest { + ::default_instance() + } +} + +impl GetTopicRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static GetTopicRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetTopicRequest::new) + } +} + +impl ::protobuf::Clear for GetTopicRequest { + fn clear(&mut self) { + self.topic.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateTopicRequest { + // message fields + pub topic: ::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 UpdateTopicRequest { + fn default() -> &'a UpdateTopicRequest { + ::default_instance() + } +} + +impl UpdateTopicRequest { + pub fn new() -> UpdateTopicRequest { + ::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()) + } +} + +impl ::protobuf::Message for UpdateTopicRequest { + 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)?; + }, + 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.topic.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.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)?; + } + 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() -> UpdateTopicRequest { + UpdateTopicRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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() + ) + }) + } + + fn default_instance() -> &'static UpdateTopicRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateTopicRequest::new) + } +} + +impl ::protobuf::Clear for UpdateTopicRequest { + fn clear(&mut self) { + self.topic.clear(); + self.update_mask.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateTopicRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UpdateTopicRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[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<'a> ::std::default::Default for &'a PublishRequest { + fn default() -> &'a PublishRequest { + ::default_instance() + } +} + +impl PublishRequest { + pub fn new() -> 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.v1.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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.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; + 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); + 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)?; + } + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static PublishRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PublishRequest::new) + } +} + +impl ::protobuf::Clear for PublishRequest { + fn clear(&mut self) { + self.topic.clear(); + self.messages.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PublishResponse { + // message fields + pub message_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 PublishResponse { + fn default() -> &'a PublishResponse { + ::default_instance() + } +} + +impl PublishResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + for v in &self.message_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() -> 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 default_instance() -> &'static PublishResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PublishResponse::new) + } +} + +impl ::protobuf::Clear for PublishResponse { + fn clear(&mut self) { + self.message_ids.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicsRequest { + // 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 ListTopicsRequest { + fn default() -> &'a ListTopicsRequest { + ::default_instance() + } +} + +impl ListTopicsRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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() -> 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 default_instance() -> &'static ListTopicsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicsRequest::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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicsResponse { + // message fields + pub topics: ::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 ListTopicsResponse { + fn default() -> &'a ListTopicsResponse { + ::default_instance() + } +} + +impl ListTopicsResponse { + pub fn new() -> ListTopicsResponse { + ::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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.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.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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 default_instance() -> &'static ListTopicsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicsResponse::new) + } +} + +impl ::protobuf::Clear for ListTopicsResponse { + fn clear(&mut self) { + self.topics.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicSubscriptionsRequest { + // 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, +} + +impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsRequest { + fn default() -> &'a ListTopicSubscriptionsRequest { + ::default_instance() + } +} + +impl ListTopicSubscriptionsRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + 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() -> 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 default_instance() -> &'static ListTopicSubscriptionsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicSubscriptionsRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicSubscriptionsResponse { + // message fields + pub subscriptions: ::protobuf::RepeatedField<::std::string::String>, + 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 ListTopicSubscriptionsResponse { + fn default() -> &'a ListTopicSubscriptionsResponse { + ::default_instance() + } +} + +impl ListTopicSubscriptionsResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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 { + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static ListTopicSubscriptionsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicSubscriptionsResponse::new) + } +} + +impl ::protobuf::Clear for ListTopicSubscriptionsResponse { + fn clear(&mut self) { + self.subscriptions.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[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, +} + +impl<'a> ::std::default::Default for &'a ListTopicSnapshotsRequest { + fn default() -> &'a ListTopicSnapshotsRequest { + ::default_instance() + } +} + +impl ListTopicSnapshotsRequest { + pub fn new() -> ListTopicSnapshotsRequest { + ::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()) + } +} + +impl ::protobuf::Message for ListTopicSnapshotsRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + 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.topic.is_empty() { + os.write_string(1, &self.topic)?; + } + 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() -> 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: &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 default_instance() -> &'static ListTopicSnapshotsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicSnapshotsRequest::new) + } +} + +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 ::std::fmt::Debug for ListTopicSnapshotsRequest { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicSnapshotsResponse { + // message fields + pub snapshots: ::protobuf::RepeatedField<::std::string::String>, + 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 ListTopicSnapshotsResponse { + fn default() -> &'a ListTopicSnapshotsResponse { + ::default_instance() + } +} + +impl ListTopicSnapshotsResponse { + pub fn new() -> ListTopicSnapshotsResponse { + ::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()) + } +} + +impl ::protobuf::Message for 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.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 { + 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 + } + + 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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>( + "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 default_instance() -> &'static ListTopicSnapshotsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicSnapshotsResponse::new) + } +} + +impl ::protobuf::Clear for ListTopicSnapshotsResponse { + fn clear(&mut self) { + self.snapshots.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListTopicSnapshotsResponse { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteTopicRequest { + // 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 DeleteTopicRequest { + fn default() -> &'a DeleteTopicRequest { + ::default_instance() + } +} + +impl DeleteTopicRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static DeleteTopicRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteTopicRequest::new) + } +} + +impl ::protobuf::Clear for DeleteTopicRequest { + fn clear(&mut self) { + self.topic.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DetachSubscriptionRequest { + // 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 DetachSubscriptionRequest { + fn default() -> &'a DetachSubscriptionRequest { + ::default_instance() + } +} + +impl DetachSubscriptionRequest { + pub fn new() -> DetachSubscriptionRequest { + ::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 DetachSubscriptionRequest { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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() -> DetachSubscriptionRequest { + DetachSubscriptionRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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 default_instance() -> &'static DetachSubscriptionRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DetachSubscriptionRequest::new) + } +} + +impl ::protobuf::Clear for DetachSubscriptionRequest { + fn clear(&mut self) { + self.subscription.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DetachSubscriptionRequest { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DetachSubscriptionResponse { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DetachSubscriptionResponse { + fn default() -> &'a DetachSubscriptionResponse { + ::default_instance() + } +} + +impl DetachSubscriptionResponse { + pub fn new() -> DetachSubscriptionResponse { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for DetachSubscriptionResponse { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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() -> DetachSubscriptionResponse { + DetachSubscriptionResponse::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 default_instance() -> &'static DetachSubscriptionResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DetachSubscriptionResponse::new) + } +} + +impl ::protobuf::Clear for DetachSubscriptionResponse { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DetachSubscriptionResponse { + 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Subscription { + // message fields + pub name: ::std::string::String, + pub topic: ::std::string::String, + pub push_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, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Subscription { + fn default() -> &'a Subscription { + ::default_instance() + } +} + +impl Subscription { + pub fn new() -> 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.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(); + } + + 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; + } + + // 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; + } + + // .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(); + } + + pub fn has_message_retention_duration(&self) -> bool { + self.message_retention_duration.is_some() + } + + // 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); + } + + // 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() + } + + // 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()) + } + + // 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(); + } + + // 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()) + } + + // 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; + } +} + +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.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; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)?; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_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 }, + )); + ::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.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.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(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, + // 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), +} + +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() + } + } +} + +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; + } + } + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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()?)); + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + }, + }; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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, + )); + ::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.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 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct StreamingPullResponse { + // 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 StreamingPullResponse { + fn default() -> &'a StreamingPullResponse { + ::default_instance() + } +} + +impl StreamingPullResponse { + pub fn new() -> StreamingPullResponse { + ::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 StreamingPullResponse { + 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() -> StreamingPullResponse { + StreamingPullResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "StreamingPullResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static StreamingPullResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(StreamingPullResponse::new) + } +} + +impl ::protobuf::Clear for StreamingPullResponse { + fn clear(&mut self) { + self.received_messages.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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 { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateSnapshotRequest { + // message fields + pub name: ::std::string::String, + pub subscription: ::std::string::String, + 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 CreateSnapshotRequest { + fn default() -> &'a CreateSnapshotRequest { + ::default_instance() + } +} + +impl CreateSnapshotRequest { + pub fn new() -> CreateSnapshotRequest { + ::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 subscription = 2; + + + 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 .google.pubsub.v1.CreateSnapshotRequest.LabelsEntry labels = 3; + + + 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 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)?; + }, + 3 => { + ::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; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + 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); + 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.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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static CreateSnapshotRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + 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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateSnapshotRequest { + // message fields + pub snapshot: ::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 UpdateSnapshotRequest { + fn default() -> &'a UpdateSnapshotRequest { + ::default_instance() + } +} + +impl UpdateSnapshotRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.snapshot.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.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)?; + } + 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() -> 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 default_instance() -> &'static UpdateSnapshotRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateSnapshotRequest::new) + } +} + +impl ::protobuf::Clear for UpdateSnapshotRequest { + fn clear(&mut self) { + self.snapshot.clear(); + self.update_mask.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Snapshot { + // message fields + pub name: ::std::string::String, + pub topic: ::std::string::String, + pub expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + 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 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()) + } + + // 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 4 => { + ::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; + 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.expire_time.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>(4, &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<()> { + 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)?; + } + ::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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_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 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.topic.clear(); + self.expire_time.clear(); + self.labels.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(PartialEq,Clone,Default)] +pub struct GetSnapshotRequest { + // message fields + pub snapshot: ::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 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()) + } +} + +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.snapshot)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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 + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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>( + "snapshot", + |m: &GetSnapshotRequest| { &m.snapshot }, + |m: &mut GetSnapshotRequest| { &mut m.snapshot }, + )); + ::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.snapshot.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 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 ListSnapshotsRequest { + fn default() -> &'a ListSnapshotsRequest { + ::default_instance() + } +} + +impl ListSnapshotsRequest { + pub fn new() -> 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()) + } +} + +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.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() -> 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 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.project.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.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()) + } +} + +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 snapshot: ::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 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()) + } +} + +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.snapshot)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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 + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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>( + "snapshot", + |m: &DeleteSnapshotRequest| { &m.snapshot }, + |m: &mut DeleteSnapshotRequest| { &mut m.snapshot }, + )); + ::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.snapshot.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 SeekRequest { + // message fields + pub subscription: ::std::string::String, + // message oneof groups + pub target: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SeekRequest { + fn default() -> &'a SeekRequest { + ::default_instance() + } +} + +#[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 { + match self.target { + ::std::option::Option::Some(SeekRequest_oneof_target::time(ref v)) => v, + _ => <::protobuf::well_known_types::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, + _ => 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)) + } + + // 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 { + } else { + self.target = ::std::option::Option::Some(SeekRequest_oneof_target::time(::protobuf::well_known_types::Timestamp::new())); + } + match self.target { + ::std::option::Option::Some(SeekRequest_oneof_target::time(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_time(&mut self) -> ::protobuf::well_known_types::Timestamp { + if self.has_time() { + match self.target.take() { + ::std::option::Option::Some(SeekRequest_oneof_target::time(v)) => v, + _ => panic!(), + } + } else { + ::protobuf::well_known_types::Timestamp::new() + } + } + + // string snapshot = 3; + + + pub fn get_snapshot(&self) -> &str { + match self.target { + ::std::option::Option::Some(SeekRequest_oneof_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, + _ => 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)) + } + + // 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 { + } else { + self.target = ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(::std::string::String::new())); + } + match self.target { + ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + 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, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } +} + +impl ::protobuf::Message for 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)?; + }, + 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()?)); + }, + 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()?)); + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 ::std::option::Option::Some(ref v) = self.target { + match v { + &SeekRequest_oneof_target::time(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &SeekRequest_oneof_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 + } + + 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 ::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)?; + }, + &SeekRequest_oneof_target::snapshot(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() -> 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 default_instance() -> &'static SeekRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SeekRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SeekResponse { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SeekResponse { + fn default() -> &'a SeekResponse { + ::default_instance() + } +} + +impl SeekResponse { + pub fn new() -> SeekResponse { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for 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())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static SeekResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SeekResponse::new) + } +} + +impl ::protobuf::Clear for SeekResponse { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +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\ + 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\ + \"\x86\x01\n\x0eSchemaSettings\x12<\n\x06schema\x18\x01\x20\x01(\tR\x06s\ + chemaB$\xe0A\x02\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\x126\n\x08en\ + coding\x18\x02\x20\x01(\x0e2\x1a.google.pubsub.v1.EncodingR\x08encoding\ + \"\xde\x03\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\ + .LabelsEntryR\x06labels\x12\\\n\x16message_storage_policy\x18\x03\x20\ + \x01(\x0b2&.google.pubsub.v1.MessageStoragePolicyR\x14messageStoragePoli\ + cy\x12\x20\n\x0ckms_key_name\x18\x05\x20\x01(\tR\nkmsKeyName\x12I\n\x0fs\ + chema_settings\x18\x06\x20\x01(\x0b2\x20.google.pubsub.v1.SchemaSettings\ + R\x0eschemaSettings\x12#\n\rsatisfies_pzs\x18\x07\x20\x01(\x08R\x0csatis\ + fiesPzs\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03ke\ + y\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01:T\xeaAQ\n\ + \x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\ + \x12\x0f_deleted-topic_\"\xb4\x02\n\rPubsubMessage\x12\x12\n\x04data\x18\ + \x01\x20\x01(\x0cR\x04data\x12O\n\nattributes\x18\x02\x20\x03(\x0b2/.goo\ + gle.pubsub.v1.PubsubMessage.AttributesEntryR\nattributes\x12\x1d\n\nmess\ + age_id\x18\x03\x20\x01(\tR\tmessageId\x12=\n\x0cpublish_time\x18\x04\x20\ + \x01(\x0b2\x1a.google.protobuf.TimestampR\x0bpublishTime\x12!\n\x0corder\ + ing_key\x18\x05\x20\x01(\tR\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\"L\n\x0fGetTopicRequest\x129\n\x05topic\x18\ + \x01\x20\x01(\tR\x05topicB#\xfaA\x1d\n\x1bpubsub.googleapis.com/Topic\ + \xe0A\x02\"\x8a\x01\n\x12UpdateTopicRequest\x122\n\x05topic\x18\x01\x20\ + \x01(\x0b2\x17.google.pubsub.v1.TopicR\x05topicB\x03\xe0A\x02\x12@\n\x0b\ + update_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdate\ + MaskB\x03\xe0A\x02\"\x8d\x01\n\x0ePublishRequest\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.Pubsu\ + bMessageR\x08messagesB\x03\xe0A\x02\"2\n\x0fPublishResponse\x12\x1f\n\ + \x0bmessage_ids\x18\x01\x20\x03(\tR\nmessageIds\"\x9e\x01\n\x11ListTopic\ + sRequest\x12M\n\x07project\x18\x01\x20\x01(\tR\x07projectB3\xe0A\x02\xfa\ + A-\n+cloudresourcemanager.googleapis.com/Project\x12\x1b\n\tpage_size\ + \x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_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_tok\ + en\x18\x02\x20\x01(\tR\rnextPageToken\"\x96\x01\n\x1dListTopicSubscripti\ + onsRequest\x129\n\x05topic\x18\x01\x20\x01(\tR\x05topicB#\xe0A\x02\xfaA\ + \x1d\n\x1bpubsub.googleapis.com/Topic\x12\x1b\n\tpage_size\x18\x02\x20\ + \x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageTo\ + ken\"\x97\x01\n\x1eListTopicSubscriptionsResponse\x12M\n\rsubscriptions\ + \x18\x01\x20\x03(\tR\rsubscriptionsB'\xfaA$\n\"pubsub.googleapis.com/Sub\ + scription\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\ + \x92\x01\n\x19ListTopicSnapshotsRequest\x129\n\x05topic\x18\x01\x20\x01(\ + \tR\x05topicB#\xe0A\x02\xfaA\x1d\n\x1bpubsub.googleapis.com/Topic\x12\ + \x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_toke\ + n\x18\x03\x20\x01(\tR\tpageToken\"b\n\x1aListTopicSnapshotsResponse\x12\ + \x1c\n\tsnapshots\x18\x01\x20\x03(\tR\tsnapshots\x12&\n\x0fnext_page_tok\ + en\x18\x02\x20\x01(\tR\rnextPageToken\"O\n\x12DeleteTopicRequest\x129\n\ + \x05topic\x18\x01\x20\x01(\tR\x05topicB#\xe0A\x02\xfaA\x1d\n\x1bpubsub.g\ + oogleapis.com/Topic\"k\n\x19DetachSubscriptionRequest\x12N\n\x0csubscrip\ + tion\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.googleapis.co\ + m/Subscription\xe0A\x02\"\x1c\n\x1aDetachSubscriptionResponse\"\x8a\x07\ + \n\x0cSubscription\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\ + \xe0A\x02\x129\n\x05topic\x18\x02\x20\x01(\tR\x05topicB#\xe0A\x02\xfaA\ + \x1d\n\x1bpubsub.googleapis.com/Topic\x12=\n\x0bpush_config\x18\x04\x20\ + \x01(\x0b2\x1c.google.pubsub.v1.PushConfigR\npushConfig\x120\n\x14ack_de\ + adline_seconds\x18\x05\x20\x01(\x05R\x12ackDeadlineSeconds\x122\n\x15ret\ + ain_acked_messages\x18\x07\x20\x01(\x08R\x13retainAckedMessages\x12W\n\ + \x1amessage_retention_duration\x18\x08\x20\x01(\x0b2\x19.google.protobuf\ + .DurationR\x18messageRetentionDuration\x12B\n\x06labels\x18\t\x20\x03(\ + \x0b2*.google.pubsub.v1.Subscription.LabelsEntryR\x06labels\x126\n\x17en\ + able_message_ordering\x18\n\x20\x01(\x08R\x15enableMessageOrdering\x12O\ + \n\x11expiration_policy\x18\x0b\x20\x01(\x0b2\".google.pubsub.v1.Expirat\ + ionPolicyR\x10expirationPolicy\x12\x16\n\x06filter\x18\x0c\x20\x01(\tR\ + \x06filter\x12P\n\x12dead_letter_policy\x18\r\x20\x01(\x0b2\".google.pub\ + sub.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\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\x01:X\xeaAU\n\"pubsub.googleapis.com/Sub\ + scription\x12/projects/{project}/subscriptions/{subscription}\"\x95\x01\ + \n\x0bRetryPolicy\x12B\n\x0fminimum_backoff\x18\x01\x20\x01(\x0b2\x19.go\ + ogle.protobuf.DurationR\x0eminimumBackoff\x12B\n\x0fmaximum_backoff\x18\ + \x02\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0emaximumBackoff\"r\n\ + \x10DeadLetterPolicy\x12*\n\x11dead_letter_topic\x18\x01\x20\x01(\tR\x0f\ + deadLetterTopic\x122\n\x15max_delivery_attempts\x18\x02\x20\x01(\x05R\ + \x13maxDeliveryAttempts\"?\n\x10ExpirationPolicy\x12+\n\x03ttl\x18\x01\ + \x20\x01(\x0b2\x19.google.protobuf.DurationR\x03ttl\"\xfd\x02\n\nPushCon\ + fig\x12#\n\rpush_endpoint\x18\x01\x20\x01(\tR\x0cpushEndpoint\x12L\n\nat\ + tributes\x18\x02\x20\x03(\x0b2,.google.pubsub.v1.PushConfig.AttributesEn\ + tryR\nattributes\x12G\n\noidc_token\x18\x03\x20\x01(\x0b2&.google.pubsub\ + .v1.PushConfig.OidcTokenH\0R\toidcToken\x1a[\n\tOidcToken\x122\n\x15serv\ + ice_account_email\x18\x01\x20\x01(\tR\x13serviceAccountEmail\x12\x1a\n\ + \x08audience\x18\x02\x20\x01(\tR\x08audience\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\x06ack_id\x18\x01\x20\x01(\tR\x05ack\ + Id\x129\n\x07message\x18\x02\x20\x01(\x0b2\x1f.google.pubsub.v1.PubsubMe\ + ssageR\x07message\x12)\n\x10delivery_attempt\x18\x03\x20\x01(\x05R\x0fde\ + liveryAttempt\"h\n\x16GetSubscriptionRequest\x12N\n\x0csubscription\x18\ + \x01\x20\x01(\tR\x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googleapis.c\ + om/Subscription\"\xa6\x01\n\x19UpdateSubscriptionRequest\x12G\n\x0csubsc\ + ription\x18\x01\x20\x01(\x0b2\x1e.google.pubsub.v1.SubscriptionR\x0csubs\ + criptionB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.g\ + oogle.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\"\xa5\x01\n\x18ListS\ + ubscriptionsRequest\x12M\n\x07project\x18\x01\x20\x01(\tR\x07projectB3\ + \xe0A\x02\xfaA-\n+cloudresourcemanager.googleapis.com/Project\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\x19ListSubscriptionsResponse\x12\ + D\n\rsubscriptions\x18\x01\x20\x03(\x0b2\x1e.google.pubsub.v1.Subscripti\ + onR\rsubscriptions\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPa\ + geToken\"k\n\x19DeleteSubscriptionRequest\x12N\n\x0csubscription\x18\x01\ + \x20\x01(\tR\x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googleapis.com/S\ + ubscription\"\xad\x01\n\x17ModifyPushConfigRequest\x12N\n\x0csubscriptio\ + n\x18\x01\x20\x01(\tR\x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googlea\ + pis.com/Subscription\x12B\n\x0bpush_config\x18\x02\x20\x01(\x0b2\x1c.goo\ + gle.pubsub.v1.PushConfigR\npushConfigB\x03\xe0A\x02\"\xbb\x01\n\x0bPullR\ + equest\x12N\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xe0A\ + \x02\xfaA$\n\"pubsub.googleapis.com/Subscription\x124\n\x12return_immedi\ + ately\x18\x02\x20\x01(\x08R\x11returnImmediatelyB\x05\x18\x01\xe0A\x01\ + \x12&\n\x0cmax_messages\x18\x03\x20\x01(\x05R\x0bmaxMessagesB\x03\xe0A\ + \x02\"^\n\x0cPullResponse\x12N\n\x11received_messages\x18\x01\x20\x03(\ + \x0b2!.google.pubsub.v1.ReceivedMessageR\x10receivedMessages\"\xbf\x01\n\ + \x18ModifyAckDeadlineRequest\x12N\n\x0csubscription\x18\x01\x20\x01(\tR\ + \x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googleapis.com/Subscription\ + \x12\x1c\n\x07ack_ids\x18\x04\x20\x03(\tR\x06ackIdsB\x03\xe0A\x02\x125\n\ + \x14ack_deadline_seconds\x18\x03\x20\x01(\x05R\x12ackDeadlineSecondsB\ + \x03\xe0A\x02\"\x82\x01\n\x12AcknowledgeRequest\x12N\n\x0csubscription\ + \x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.googleapis.com/Su\ + bscription\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*\xe0A\x02\xfaA$\n\"pubsub.googleap\ + is.com/Subscription\x12\x17\n\x07ack_ids\x18\x02\x20\x03(\tR\x06ackIds\ + \x126\n\x17modify_deadline_seconds\x18\x03\x20\x03(\x05R\x15modifyDeadli\ + neSeconds\x125\n\x17modify_deadline_ack_ids\x18\x04\x20\x03(\tR\x14modif\ + yDeadlineAckIds\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_outstanding_bytes\ + \x18\x08\x20\x01(\x03R\x13maxOutstandingBytes\"g\n\x15StreamingPullRespo\ + nse\x12N\n\x11received_messages\x18\x01\x20\x03(\x0b2!.google.pubsub.v1.\ + ReceivedMessageR\x10receivedMessages\"\xab\x02\n\x15CreateSnapshotReques\ + t\x12:\n\x04name\x18\x01\x20\x01(\tR\x04nameB&\xe0A\x02\xfaA\x20\n\x1epu\ + bsub.googleapis.com/Snapshot\x12N\n\x0csubscription\x18\x02\x20\x01(\tR\ + \x0csubscriptionB*\xe0A\x02\xfaA$\n\"pubsub.googleapis.com/Subscription\ + \x12K\n\x06labels\x18\x03\x20\x03(\x0b23.google.pubsub.v1.CreateSnapshot\ + Request.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\x01\"\x96\x01\n\x15UpdateSnapshotRequest\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.protobu\ + f.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\x0bexpir\ + e_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nexpireTime\ + \x12>\n\x06labels\x18\x04\x20\x03(\x0b2&.google.pubsub.v1.Snapshot.Label\ + sEntryR\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:L\ + \xeaAI\n\x1epubsub.googleapis.com/Snapshot\x12'projects/{project}/snapsh\ + ots/{snapshot}\"X\n\x12GetSnapshotRequest\x12B\n\x08snapshot\x18\x01\x20\ + \x01(\tR\x08snapshotB&\xfaA\x20\n\x1epubsub.googleapis.com/Snapshot\xe0A\ + \x02\"\xa1\x01\n\x14ListSnapshotsRequest\x12M\n\x07project\x18\x01\x20\ + \x01(\tR\x07projectB3\xfaA-\n+cloudresourcemanager.googleapis.com/Projec\ + 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\"y\n\x15ListSnapshotsR\ + esponse\x128\n\tsnapshots\x18\x01\x20\x03(\x0b2\x1a.google.pubsub.v1.Sna\ + pshotR\tsnapshots\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPag\ + eToken\"[\n\x15DeleteSnapshotRequest\x12B\n\x08snapshot\x18\x01\x20\x01(\ + \tR\x08snapshotB&\xfaA\x20\n\x1epubsub.googleapis.com/Snapshot\xe0A\x02\ + \"\xdc\x01\n\x0bSeekRequest\x12N\n\x0csubscription\x18\x01\x20\x01(\tR\ + \x0csubscriptionB*\xfaA$\n\"pubsub.googleapis.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/SnapshotB\x08\n\x06target\"\x0e\n\x0cSee\ + kResponse2\xa3\x0b\n\tPublisher\x12q\n\x0bCreateTopic\x12\x17.google.pub\ + sub.v1.Topic\x1a\x17.google.pubsub.v1.Topic\"0\x82\xd3\xe4\x93\x02#\x1a\ + \x1e/v1/{name=projects/*/topics/*}:\x01*\xdaA\x04name\x12}\n\x0bUpdateTo\ + pic\x12$.google.pubsub.v1.UpdateTopicRequest\x1a\x17.google.pubsub.v1.To\ + pic\"/\x82\xd3\xe4\x93\x02)2$/v1/{topic.name=projects/*/topics/*}:\x01*\ + \x12\x93\x01\n\x07Publish\x12\x20.google.pubsub.v1.PublishRequest\x1a!.g\ + oogle.pubsub.v1.PublishResponse\"C\xdaA\x0etopic,messages\x82\xd3\xe4\ + \x93\x02,\"'/v1/{topic=projects/*/topics/*}:publish:\x01*\x12w\n\x08GetT\ + opic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topi\ + c\"/\xdaA\x05topic\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/top\ + ics/*}\x12\x8a\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\ + \x1a$.google.pubsub.v1.ListTopicsResponse\"1\xdaA\x07project\x82\xd3\xe4\ + \x93\x02!\x12\x1f/v1/{project=projects/*}/topics\x12\xba\x01\n\x16ListTo\ + picSubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a\ + 0.google.pubsub.v1.ListTopicSubscriptionsResponse\"=\xdaA\x05topic\x82\ + \xd3\xe4\x93\x02/\x12-/v1/{topic=projects/*/topics/*}/subscriptions\x12\ + \xaa\x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshot\ + sRequest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse\"9\xdaA\x05top\ + ic\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\ + \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.DetachSubscrip\ + tionResponse\"<\x82\xd3\xe4\x93\x026\"4/v1/{subscription=projects/*/subs\ + criptions/*}:detach\x1ap\xcaA\x15pubsub.googleapis.com\xd2AUhttps://www.\ + googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsu\ + b2\x83\x15\n\nSubscriber\x12\xb4\x01\n\x12CreateSubscription\x12\x1e.goo\ + gle.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription\"^\x82\ + \xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\xdaA+n\ + ame,topic,push_config,ack_deadline_seconds\x12\xa1\x01\n\x0fGetSubscript\ + ion\x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v\ + 1.Subscription\"D\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/\ + subscriptions/*}\xdaA\x0csubscription\x12\xa0\x01\n\x12UpdateSubscriptio\ + n\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.\ + v1.Subscription\"=\x82\xd3\xe4\x93\x02722/v1/{subscription.name=projects\ + /*/subscriptions/*}:\x01*\x12\xa6\x01\n\x11ListSubscriptions\x12*.google\ + .pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.ListSubscripti\ + onsResponse\"8\xdaA\x07project\x82\xd3\xe4\x93\x02(\x12&/v1/{project=pro\ + jects/*}/subscriptions\x12\x9f\x01\n\x12DeleteSubscription\x12+.google.p\ + ubsub.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty\"D\xdaA\ + \x0csubscription\x82\xd3\xe4\x93\x02/*-/v1/{subscription=projects/*/subs\ + criptions/*}\x12\xcf\x01\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.Mo\ + difyAckDeadlineRequest\x1a\x16.google.protobuf.Empty\"v\xdaA)subscriptio\ + n,ack_ids,ack_deadline_seconds\x82\xd3\xe4\x93\x02D\"?/v1/{subscription=\ + projects/*/subscriptions/*}:modifyAckDeadline:\x01*\x12\xa8\x01\n\x0bAck\ + nowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.protobu\ + f.Empty\"[\x82\xd3\xe4\x93\x02>\"9/v1/{subscription=projects/*/subscript\ + ions/*}:acknowledge:\x01*\xdaA\x14subscription,ack_ids\x12\xb3\x01\n\x04\ + Pull\x12\x1d.google.pubsub.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullR\ + esponse\"l\xdaA,subscription,return_immediately,max_messages\x82\xd3\xe4\ + \x93\x027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\x12\ + f\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a'.googl\ + e.pubsub.v1.StreamingPullResponse\"\0(\x010\x01\x12\xbb\x01\n\x10ModifyP\ + ushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.p\ + rotobuf.Empty\"d\x82\xd3\xe4\x93\x02C\">/v1/{subscription=projects/*/sub\ + scriptions/*}:modifyPushConfig:\x01*\xdaA\x18subscription,push_config\ + \x12\x89\x01\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapshotRequest\ + \x1a\x1a.google.pubsub.v1.Snapshot\"8\xdaA\x08snapshot\x82\xd3\xe4\x93\ + \x02'\x12%/v1/{snapshot=projects/*/snapshots/*}\x12\x96\x01\n\rListSnaps\ + hots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a'.google.pubsub.v1.Li\ + stSnapshotsResponse\"4\x82\xd3\xe4\x93\x02$\x12\"/v1/{project=projects/*\ + }/snapshots\xdaA\x07project\x12\x97\x01\n\x0eCreateSnapshot\x12'.google.\ + pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"@\x82\ + \xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\xdaA\x11na\ + me,subscription\x12\x8c\x01\n\x0eUpdateSnapshot\x12'.google.pubsub.v1.Up\ + dateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"5\x82\xd3\xe4\x93\ + \x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\x12\x8b\x01\n\ + \x0eDeleteSnapshot\x12'.google.pubsub.v1.DeleteSnapshotRequest\x1a\x16.g\ + oogle.protobuf.Empty\"8\x82\xd3\xe4\x93\x02'*%/v1/{snapshot=projects/*/s\ + napshots/*}\xdaA\x08snapshot\x12\x84\x01\n\x04Seek\x12\x1d.google.pubsub\ + .v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekResponse\"=\x82\xd3\xe4\x93\ + \x027\"2/v1/{subscription=projects/*/subscriptions/*}:seek:\x01*\x1ap\ + \xcaA\x15pubsub.googleapis.com\xd2AUhttps://www.googleapis.com/auth/clou\ + d-platform,https://www.googleapis.com/auth/pubsubB\xae\x01\n\x14com.goog\ + le.pubsub.v1B\x0bPubsubProtoP\x01Z6google.golang.org/genproto/googleapis\ + /pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\ + \x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud::PubSub::V1J\x9e\ + \x9f\x03\n\x07\x12\x05\x0e\0\xa3\n\x17\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb1\x04\x20Copyright\x202020\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\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\0M\n\t\n\x02\x08\ + \x0b\x12\x03\x1e\0M\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\x86\x01\ + \x01\x1a^\x20The\x20service\x20that\x20an\x20application\x20uses\x20to\ + \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\ + \x99\x01\n\x04\x06\0\x02\0\x12\x04/\x025\x03\x1a\x8a\x01\x20Creates\x20t\ + he\x20given\x20topic\x20with\x20the\x20given\x20name.\x20See\x20the\x20[\ + resource\x20name\x20rules]\n\x20(https://cloud.google.com/pubsub/docs/ad\ + min#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\x20that\x20certain\x20properties\x20of\x20a\n\x20topi\ + c\x20are\x20not\x20modifiable.\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\ni\n\x04\x06\ + \0\x02\x02\x12\x04B\x02H\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\x03B\ + \x06\r\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03B\x0e\x1c\n\x0c\n\x05\x06\0\ + \x02\x02\x03\x12\x03B'6\n\r\n\x05\x06\0\x02\x02\x04\x12\x04C\x04F\x06\n\ + \x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04C\x04F\x06\n\x0c\n\x05\ + \x06\0\x02\x02\x04\x12\x03G\x04<\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\ + \x12\x03G\x04<\n2\n\x04\x06\0\x02\x03\x12\x04K\x02P\x03\x1a$\x20Gets\x20\ + the\x20configuration\x20of\x20a\x20topic.\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\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03O\x043\n\x0f\n\x08\x06\0\x02\ + \x03\x04\x9b\x08\0\x12\x03O\x043\n&\n\x04\x06\0\x02\x04\x12\x04S\x02X\ + \x03\x1a\x18\x20Lists\x20matching\x20topics.\n\n\x0c\n\x05\x06\0\x02\x04\ + \x01\x12\x03S\x06\x10\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03S\x11\"\n\x0c\ + \n\x05\x06\0\x02\x04\x03\x12\x03S-?\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\x045\n\x0f\n\x08\x06\0\x02\x04\x04\ + \x9b\x08\0\x12\x03W\x045\nL\n\x04\x06\0\x02\x05\x12\x04[\x02a\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\x03`\x043\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x03`\ + \x043\n\xd9\x02\n\x04\x06\0\x02\x06\x12\x04h\x02n\x03\x1a\xca\x02\x20Lis\ + ts\x20the\x20names\x20of\x20the\x20snapshots\x20on\x20this\x20topic.\x20\ + Snapshots\x20are\x20used\x20in\n\x20[Seek](https://cloud.google.com/pubs\ + ub/docs/replay-overview)\x20operations,\n\x20which\x20allow\x20you\x20to\ + \x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\ + \x20you\x20can\n\x20set\x20the\x20acknowledgment\x20state\x20of\x20messa\ + ges\x20in\x20an\x20existing\x20subscription\x20to\x20the\n\x20state\x20c\ + aptured\x20by\x20a\x20snapshot.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03h\ + \x06\x18\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03h\x192\n\x0c\n\x05\x06\0\ + \x02\x06\x03\x12\x03i\x0f)\n\r\n\x05\x06\0\x02\x06\x04\x12\x04j\x04l\x06\ + \n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x04j\x04l\x06\n\x0c\n\x05\ + \x06\0\x02\x06\x04\x12\x03m\x043\n\x0f\n\x08\x06\0\x02\x06\x04\x9b\x08\0\ + \x12\x03m\x043\n\xf3\x02\n\x04\x06\0\x02\x07\x12\x04u\x02z\x03\x1a\xe4\ + \x02\x20Deletes\x20the\x20topic\x20with\x20the\x20given\x20name.\x20Retu\ + rns\x20`NOT_FOUND`\x20if\x20the\x20topic\n\x20does\x20not\x20exist.\x20A\ + fter\x20a\x20topic\x20is\x20deleted,\x20a\x20new\x20topic\x20may\x20be\ + \x20created\x20with\n\x20the\x20same\x20name;\x20this\x20is\x20an\x20ent\ + irely\x20new\x20topic\x20with\x20none\x20of\x20the\x20old\n\x20configura\ + tion\x20or\x20subscriptions.\x20Existing\x20subscriptions\x20to\x20this\ + \x20topic\x20are\n\x20not\x20deleted,\x20but\x20their\x20`topic`\x20fiel\ + d\x20is\x20set\x20to\x20`_deleted-topic_`.\n\n\x0c\n\x05\x06\0\x02\x07\ + \x01\x12\x03u\x06\x11\n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03u\x12$\n\x0c\ + \n\x05\x06\0\x02\x07\x03\x12\x03u/D\n\r\n\x05\x06\0\x02\x07\x04\x12\x04v\ + \x04x\x06\n\x11\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x04v\x04x\x06\n\ + \x0c\n\x05\x06\0\x02\x07\x04\x12\x03y\x043\n\x0f\n\x08\x06\0\x02\x07\x04\ + \x9b\x08\0\x12\x03y\x043\n\x93\x02\n\x04\x06\0\x02\x08\x12\x06\x80\x01\ + \x02\x85\x01\x03\x1a\x82\x02\x20Detaches\x20a\x20subscription\x20from\ + \x20this\x20topic.\x20All\x20messages\x20retained\x20in\x20the\n\x20subs\ + cription\x20are\x20dropped.\x20Subsequent\x20`Pull`\x20and\x20`Streaming\ + Pull`\x20requests\n\x20will\x20return\x20FAILED_PRECONDITION.\x20If\x20t\ + he\x20subscription\x20is\x20a\x20push\n\x20subscription,\x20pushes\x20to\ + \x20the\x20endpoint\x20will\x20stop.\n\n\r\n\x05\x06\0\x02\x08\x01\x12\ + \x04\x80\x01\x06\x18\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\x80\x01\x192\n\ + \r\n\x05\x06\0\x02\x08\x03\x12\x04\x81\x01\x0f)\n\x0f\n\x05\x06\0\x02\ + \x08\x04\x12\x06\x82\x01\x04\x84\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\ + \xca\xbc\"\x12\x06\x82\x01\x04\x84\x01\x06\nU\n\x02\x04\0\x12\x06\x89\ + \x01\0\x90\x01\x01\x1aG\x20A\x20policy\x20constraining\x20the\x20storage\ + \x20of\x20messages\x20published\x20to\x20the\x20topic.\n\n\x0b\n\x03\x04\ + \0\x01\x12\x04\x89\x01\x08\x1c\n\xf5\x02\n\x04\x04\0\x02\0\x12\x04\x8f\ + \x01\x022\x1a\xe6\x02\x20A\x20list\x20of\x20IDs\x20of\x20GCP\x20regions\ + \x20where\x20messages\x20that\x20are\x20published\x20to\x20the\x20topic\ + \n\x20may\x20be\x20persisted\x20in\x20storage.\x20Messages\x20published\ + \x20by\x20publishers\x20running\x20in\n\x20non-allowed\x20GCP\x20regions\ + \x20(or\x20running\x20outside\x20of\x20GCP\x20altogether)\x20will\x20be\ + \n\x20routed\x20for\x20storage\x20in\x20one\x20of\x20the\x20allowed\x20r\ + egions.\x20An\x20empty\x20list\x20means\x20that\n\x20no\x20regions\x20ar\ + e\x20allowed,\x20and\x20is\x20not\x20a\x20valid\x20configuration.\n\n\r\ + \n\x05\x04\0\x02\0\x04\x12\x04\x8f\x01\x02\n\n\r\n\x05\x04\0\x02\0\x05\ + \x12\x04\x8f\x01\x0b\x11\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x8f\x01\x12-\ + \n\r\n\x05\x04\0\x02\0\x03\x12\x04\x8f\x0101\nL\n\x02\x04\x01\x12\x06\ + \x93\x01\0\x9f\x01\x01\x1a>\x20Settings\x20for\x20validating\x20messages\ + \x20published\x20against\x20a\x20schema.\n\n\x0b\n\x03\x04\x01\x01\x12\ + \x04\x93\x01\x08\x16\n\xef\x01\n\x04\x04\x01\x02\0\x12\x06\x98\x01\x02\ + \x9b\x01\x04\x1a\xde\x01\x20Required.\x20The\x20name\x20of\x20the\x20sch\ + ema\x20that\x20messages\x20published\x20should\x20be\n\x20validated\x20a\ + gainst.\x20Format\x20is\x20`projects/{project}/schemas/{schema}`.\x20The\ + \n\x20value\x20of\x20this\x20field\x20will\x20be\x20`_deleted-schema_`\ + \x20if\x20the\x20schema\x20has\x20been\n\x20deleted.\n\n\x0f\n\x05\x04\ + \x01\x02\0\x04\x12\x06\x98\x01\x02\x93\x01\x18\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\x9b\x01\x03\n\x10\n\x08\x04\x01\ + \x02\0\x08\x9c\x08\0\x12\x04\x99\x01\x04*\n\x0f\n\x07\x04\x01\x02\0\x08\ + \x9f\x08\x12\x04\x9a\x01\x04N\nD\n\x04\x04\x01\x02\x01\x12\x04\x9e\x01\ + \x02\x18\x1a6\x20The\x20encoding\x20of\x20messages\x20validated\x20again\ + st\x20`schema`.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\x9e\x01\x02\ + \x9b\x01\x04\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\x9e\x01\x02\n\n\r\n\ + \x05\x04\x01\x02\x01\x01\x12\x04\x9e\x01\x0b\x13\n\r\n\x05\x04\x01\x02\ + \x01\x03\x12\x04\x9e\x01\x16\x17\n!\n\x02\x04\x02\x12\x06\xa2\x01\0\xc8\ + \x01\x01\x1a\x13\x20A\x20topic\x20resource.\n\n\x0b\n\x03\x04\x02\x01\ + \x12\x04\xa2\x01\x08\r\n\r\n\x03\x04\x02\x07\x12\x06\xa3\x01\x02\xa7\x01\ + \x04\n\x0f\n\x05\x04\x02\x07\x9d\x08\x12\x06\xa3\x01\x02\xa7\x01\x04\n\ + \x8c\x03\n\x04\x04\x02\x02\0\x12\x04\xaf\x01\x02;\x1a\xfd\x02\x20Require\ + d.\x20The\x20name\x20of\x20the\x20topic.\x20It\x20must\x20have\x20the\ + \x20format\n\x20`\"projects/{project}/topics/{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,\x20a\ + nd\x20it\n\x20must\x20not\x20start\x20with\x20`\"goog\"`.\n\n\x0f\n\x05\ + \x04\x02\x02\0\x04\x12\x06\xaf\x01\x02\xa7\x01\x04\n\r\n\x05\x04\x02\x02\ + \0\x05\x12\x04\xaf\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xaf\ + \x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xaf\x01\x10\x11\n\r\n\x05\ + \x04\x02\x02\0\x08\x12\x04\xaf\x01\x12:\n\x10\n\x08\x04\x02\x02\0\x08\ + \x9c\x08\0\x12\x04\xaf\x01\x139\nb\n\x04\x04\x02\x02\x01\x12\x04\xb3\x01\ + \x02!\x1aT\x20See\x20[Creating\x20and\x20managing\x20labels]\n\x20(https\ + ://cloud.google.com/pubsub/docs/labels).\n\n\x0f\n\x05\x04\x02\x02\x01\ + \x04\x12\x06\xb3\x01\x02\xaf\x01;\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\ + \xb3\x01\x02\x15\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb3\x01\x16\x1c\n\ + \r\n\x05\x04\x02\x02\x01\x03\x12\x04\xb3\x01\x1f\x20\n\xb7\x01\n\x04\x04\ + \x02\x02\x02\x12\x04\xb8\x01\x022\x1a\xa8\x01\x20Policy\x20constraining\ + \x20the\x20set\x20of\x20Google\x20Cloud\x20Platform\x20regions\x20where\ + \x20messages\n\x20published\x20to\x20the\x20topic\x20may\x20be\x20stored\ + .\x20If\x20not\x20present,\x20then\x20no\x20constraints\n\x20are\x20in\ + \x20effect.\n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xb8\x01\x02\xb3\ + \x01!\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xb8\x01\x02\x16\n\r\n\x05\ + \x04\x02\x02\x02\x01\x12\x04\xb8\x01\x17-\n\r\n\x05\x04\x02\x02\x02\x03\ + \x12\x04\xb8\x0101\n\xcb\x01\n\x04\x04\x02\x02\x03\x12\x04\xbe\x01\x02\ + \x1a\x1a\xbc\x01\x20The\x20resource\x20name\x20of\x20the\x20Cloud\x20KMS\ + \x20CryptoKey\x20to\x20be\x20used\x20to\x20protect\x20access\n\x20to\x20\ + messages\x20published\x20on\x20this\x20topic.\n\n\x20The\x20expected\x20\ + format\x20is\x20`projects/*/locations/*/keyRings/*/cryptoKeys/*`.\n\n\ + \x0f\n\x05\x04\x02\x02\x03\x04\x12\x06\xbe\x01\x02\xb8\x012\n\r\n\x05\ + \x04\x02\x02\x03\x05\x12\x04\xbe\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\ + \x01\x12\x04\xbe\x01\t\x15\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xbe\x01\ + \x18\x19\n\x94\x01\n\x04\x04\x02\x02\x04\x12\x04\xc3\x01\x02%\x1a\x85\ + \x01\x20Settings\x20for\x20validating\x20messages\x20published\x20agains\ + t\x20a\x20schema.\n\n\x20EXPERIMENTAL:\x20Schema\x20support\x20is\x20in\ + \x20development\x20and\x20may\x20not\x20work\x20yet.\n\n\x0f\n\x05\x04\ + \x02\x02\x04\x04\x12\x06\xc3\x01\x02\xbe\x01\x1a\n\r\n\x05\x04\x02\x02\ + \x04\x06\x12\x04\xc3\x01\x02\x10\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\ + \xc3\x01\x11\x20\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\xc3\x01#$\n\x8a\ + \x01\n\x04\x04\x02\x02\x05\x12\x04\xc7\x01\x02\x19\x1a|\x20Reserved\x20f\ + or\x20future\x20use.\x20This\x20field\x20is\x20set\x20only\x20in\x20resp\ + onses\x20from\x20the\n\x20server;\x20it\x20is\x20ignored\x20if\x20it\x20\ + is\x20set\x20in\x20any\x20requests.\n\n\x0f\n\x05\x04\x02\x02\x05\x04\ + \x12\x06\xc7\x01\x02\xc3\x01%\n\r\n\x05\x04\x02\x02\x05\x05\x12\x04\xc7\ + \x01\x02\x06\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\xc7\x01\x07\x14\n\r\n\ + \x05\x04\x02\x02\x05\x03\x12\x04\xc7\x01\x17\x18\n\xf9\x03\n\x02\x04\x03\ + \x12\x06\xd2\x01\0\xee\x01\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\xd2\x01\x08\x15\nq\n\x04\x04\x03\x02\0\ + \x12\x04\xd5\x01\x02\x11\x1ac\x20The\x20message\x20data\x20field.\x20If\ + \x20this\x20field\x20is\x20empty,\x20the\x20message\x20must\x20contain\n\ + \x20at\x20least\x20one\x20attribute.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\ + \x06\xd5\x01\x02\xd2\x01\x17\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xd5\x01\ + \x02\x07\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xd5\x01\x08\x0c\n\r\n\x05\ + \x04\x03\x02\0\x03\x12\x04\xd5\x01\x0f\x10\n\xa9\x01\n\x04\x04\x03\x02\ + \x01\x12\x04\xda\x01\x02%\x1a\x9a\x01\x20Attributes\x20for\x20this\x20me\ + ssage.\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\x0f\n\x05\x04\ + \x03\x02\x01\x04\x12\x06\xda\x01\x02\xd5\x01\x11\n\r\n\x05\x04\x03\x02\ + \x01\x06\x12\x04\xda\x01\x02\x15\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\ + \xda\x01\x16\x20\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xda\x01#$\n\xb3\ + \x02\n\x04\x04\x03\x02\x02\x12\x04\xe0\x01\x02\x18\x1a\xa4\x02\x20ID\x20\ + of\x20this\x20message,\x20assigned\x20by\x20the\x20server\x20when\x20the\ + \x20message\x20is\x20published.\n\x20Guaranteed\x20to\x20be\x20unique\ + \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`Publ\ + ish`\x20call.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xe0\x01\x02\xda\ + \x01%\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xe0\x01\x02\x08\n\r\n\x05\ + \x04\x03\x02\x02\x01\x12\x04\xe0\x01\t\x13\n\r\n\x05\x04\x03\x02\x02\x03\ + \x12\x04\xe0\x01\x16\x17\n\xbb\x01\n\x04\x04\x03\x02\x03\x12\x04\xe5\x01\ + \x02-\x1a\xac\x01\x20The\x20time\x20at\x20which\x20the\x20message\x20was\ + \x20published,\x20populated\x20by\x20the\x20server\x20when\n\x20it\x20re\ + ceives\x20the\x20`Publish`\x20call.\x20It\x20must\x20not\x20be\x20popula\ + ted\x20by\x20the\n\x20publisher\x20in\x20a\x20`Publish`\x20call.\n\n\x0f\ + \n\x05\x04\x03\x02\x03\x04\x12\x06\xe5\x01\x02\xe0\x01\x18\n\r\n\x05\x04\ + \x03\x02\x03\x06\x12\x04\xe5\x01\x02\x1b\n\r\n\x05\x04\x03\x02\x03\x01\ + \x12\x04\xe5\x01\x1c(\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xe5\x01+,\n\ + \xb4\x03\n\x04\x04\x03\x02\x04\x12\x04\xed\x01\x02\x1a\x1a\xa5\x03\x20If\ + \x20non-empty,\x20identifies\x20related\x20messages\x20for\x20which\x20p\ + ublish\x20order\x20should\x20be\n\x20respected.\x20If\x20a\x20`Subscript\ + ion`\x20has\x20`enable_message_ordering`\x20set\x20to\x20`true`,\n\x20me\ + ssages\x20published\x20with\x20the\x20same\x20non-empty\x20`ordering_key\ + `\x20value\x20will\x20be\n\x20delivered\x20to\x20subscribers\x20in\x20th\ + e\x20order\x20in\x20which\x20they\x20are\x20received\x20by\x20the\n\x20P\ + ub/Sub\x20system.\x20All\x20`PubsubMessage`s\x20published\x20in\x20a\x20\ + given\x20`PublishRequest`\n\x20must\x20specify\x20the\x20same\x20`orderi\ + ng_key`\x20value.\n\n\x0f\n\x05\x04\x03\x02\x04\x04\x12\x06\xed\x01\x02\ + \xe5\x01-\n\r\n\x05\x04\x03\x02\x04\x05\x12\x04\xed\x01\x02\x08\n\r\n\ + \x05\x04\x03\x02\x04\x01\x12\x04\xed\x01\t\x15\n\r\n\x05\x04\x03\x02\x04\ + \x03\x12\x04\xed\x01\x18\x19\n0\n\x02\x04\x04\x12\x06\xf1\x01\0\xf8\x01\ + \x01\x1a\"\x20Request\x20for\x20the\x20GetTopic\x20method.\n\n\x0b\n\x03\ + \x04\x04\x01\x12\x04\xf1\x01\x08\x17\ni\n\x04\x04\x04\x02\0\x12\x06\xf4\ + \x01\x02\xf7\x01\x04\x1aY\x20Required.\x20The\x20name\x20of\x20the\x20to\ + pic\x20to\x20get.\n\x20Format\x20is\x20`projects/{project}/topics/{topic\ + }`.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xf4\x01\x02\xf1\x01\x19\n\r\ + \n\x05\x04\x04\x02\0\x05\x12\x04\xf4\x01\x02\x08\n\r\n\x05\x04\x04\x02\0\ + \x01\x12\x04\xf4\x01\t\x0e\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xf4\x01\ + \x11\x12\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xf4\x01\x13\xf7\x01\x03\n\ + \x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xf5\x01\x04*\n\x0f\n\x07\ + \x04\x04\x02\0\x08\x9f\x08\x12\x04\xf6\x01\x04M\n3\n\x02\x04\x05\x12\x06\ + \xfb\x01\0\x86\x02\x01\x1a%\x20Request\x20for\x20the\x20UpdateTopic\x20m\ + ethod.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xfb\x01\x08\x1a\n3\n\x04\x04\ + \x05\x02\0\x12\x04\xfd\x01\x02;\x1a%\x20Required.\x20The\x20updated\x20t\ + opic\x20object.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xfd\x01\x02\xfb\ + \x01\x1c\n\r\n\x05\x04\x05\x02\0\x06\x12\x04\xfd\x01\x02\x07\n\r\n\x05\ + \x04\x05\x02\0\x01\x12\x04\xfd\x01\x08\r\n\r\n\x05\x04\x05\x02\0\x03\x12\ + \x04\xfd\x01\x10\x11\n\r\n\x05\x04\x05\x02\0\x08\x12\x04\xfd\x01\x12:\n\ + \x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xfd\x01\x139\n\xe5\x02\n\ + \x04\x04\x05\x02\x01\x12\x06\x84\x02\x02\x85\x02/\x1a\xd4\x02\x20Require\ + d.\x20Indicates\x20which\x20fields\x20in\x20the\x20provided\x20topic\x20\ + to\x20update.\x20Must\x20be\n\x20specified\x20and\x20non-empty.\x20Note\ + \x20that\x20if\x20`update_mask`\x20contains\n\x20\"message_storage_polic\ + y\"\x20but\x20the\x20`message_storage_policy`\x20is\x20not\x20set\x20in\ + \n\x20the\x20`topic`\x20provided\x20above,\x20then\x20the\x20updated\x20\ + value\x20is\x20determined\x20by\x20the\n\x20policy\x20configured\x20at\ + \x20the\x20project\x20or\x20organization\x20level.\n\n\x0f\n\x05\x04\x05\ + \x02\x01\x04\x12\x06\x84\x02\x02\xfd\x01;\n\r\n\x05\x04\x05\x02\x01\x06\ + \x12\x04\x84\x02\x02\x1b\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x84\x02\ + \x1c'\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\x84\x02*+\n\r\n\x05\x04\x05\ + \x02\x01\x08\x12\x04\x85\x02\x06.\n\x10\n\x08\x04\x05\x02\x01\x08\x9c\ + \x08\0\x12\x04\x85\x02\x07-\n/\n\x02\x04\x06\x12\x06\x89\x02\0\x93\x02\ + \x01\x1a!\x20Request\x20for\x20the\x20Publish\x20method.\n\n\x0b\n\x03\ + \x04\x06\x01\x12\x04\x89\x02\x08\x16\n\x88\x01\n\x04\x04\x06\x02\0\x12\ + \x06\x8c\x02\x02\x8f\x02\x04\x1ax\x20Required.\x20The\x20messages\x20in\ + \x20the\x20request\x20will\x20be\x20published\x20on\x20this\x20topic.\n\ + \x20Format\x20is\x20`projects/{project}/topics/{topic}`.\n\n\x0f\n\x05\ + \x04\x06\x02\0\x04\x12\x06\x8c\x02\x02\x89\x02\x18\n\r\n\x05\x04\x06\x02\ + \0\x05\x12\x04\x8c\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\x8c\ + \x02\t\x0e\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\x8c\x02\x11\x12\n\x0f\n\ + \x05\x04\x06\x02\0\x08\x12\x06\x8c\x02\x13\x8f\x02\x03\n\x10\n\x08\x04\ + \x06\x02\0\x08\x9c\x08\0\x12\x04\x8d\x02\x04*\n\x0f\n\x07\x04\x06\x02\0\ + \x08\x9f\x08\x12\x04\x8e\x02\x04M\n2\n\x04\x04\x06\x02\x01\x12\x04\x92\ + \x02\x02O\x1a$\x20Required.\x20The\x20messages\x20to\x20publish.\n\n\r\n\ + \x05\x04\x06\x02\x01\x04\x12\x04\x92\x02\x02\n\n\r\n\x05\x04\x06\x02\x01\ + \x06\x12\x04\x92\x02\x0b\x18\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\x92\ + \x02\x19!\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x92\x02$%\n\r\n\x05\x04\ + \x06\x02\x01\x08\x12\x04\x92\x02&N\n\x10\n\x08\x04\x06\x02\x01\x08\x9c\ + \x08\0\x12\x04\x92\x02'M\n2\n\x02\x04\x07\x12\x06\x96\x02\0\x9b\x02\x01\ + \x1a$\x20Response\x20for\x20the\x20`Publish`\x20method.\n\n\x0b\n\x03\ + \x04\x07\x01\x12\x04\x96\x02\x08\x17\n\xa8\x01\n\x04\x04\x07\x02\0\x12\ + \x04\x9a\x02\x02\"\x1a\x99\x01\x20The\x20server-assigned\x20ID\x20of\x20\ + each\x20published\x20message,\x20in\x20the\x20same\x20order\x20as\n\x20t\ + he\x20messages\x20in\x20the\x20request.\x20IDs\x20are\x20guaranteed\x20t\ + o\x20be\x20unique\x20within\n\x20the\x20topic.\n\n\r\n\x05\x04\x07\x02\0\ + \x04\x12\x04\x9a\x02\x02\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\x9a\x02\ + \x0b\x11\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x9a\x02\x12\x1d\n\r\n\x05\ + \x04\x07\x02\0\x03\x12\x04\x9a\x02\x20!\n4\n\x02\x04\x08\x12\x06\x9e\x02\ + \0\xaf\x02\x01\x1a&\x20Request\x20for\x20the\x20`ListTopics`\x20method.\ + \n\n\x0b\n\x03\x04\x08\x01\x12\x04\x9e\x02\x08\x19\np\n\x04\x04\x08\x02\ + \0\x12\x06\xa1\x02\x02\xa6\x02\x04\x1a`\x20Required.\x20The\x20name\x20o\ + f\x20the\x20project\x20in\x20which\x20to\x20list\x20topics.\n\x20Format\ + \x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\ + \x06\xa1\x02\x02\x9e\x02\x1b\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xa1\x02\ + \x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xa1\x02\t\x10\n\r\n\x05\x04\ + \x08\x02\0\x03\x12\x04\xa1\x02\x13\x14\n\x0f\n\x05\x04\x08\x02\0\x08\x12\ + \x06\xa1\x02\x15\xa6\x02\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\ + \x04\xa2\x02\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xa3\x02\ + \x04\xa5\x02\x05\n3\n\x04\x04\x08\x02\x01\x12\x04\xa9\x02\x02\x16\x1a%\ + \x20Maximum\x20number\x20of\x20topics\x20to\x20return.\n\n\x0f\n\x05\x04\ + \x08\x02\x01\x04\x12\x06\xa9\x02\x02\xa6\x02\x04\n\r\n\x05\x04\x08\x02\ + \x01\x05\x12\x04\xa9\x02\x02\x07\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\ + \xa9\x02\x08\x11\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xa9\x02\x14\x15\n\ + \xc4\x01\n\x04\x04\x08\x02\x02\x12\x04\xae\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\x0f\n\x05\x04\x08\ + \x02\x02\x04\x12\x06\xae\x02\x02\xa9\x02\x16\n\r\n\x05\x04\x08\x02\x02\ + \x05\x12\x04\xae\x02\x02\x08\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xae\ + \x02\t\x13\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xae\x02\x16\x17\n5\n\ + \x02\x04\t\x12\x06\xb2\x02\0\xb9\x02\x01\x1a'\x20Response\x20for\x20the\ + \x20`ListTopics`\x20method.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xb2\x02\x08\ + \x1a\n%\n\x04\x04\t\x02\0\x12\x04\xb4\x02\x02\x1c\x1a\x17\x20The\x20resu\ + lting\x20topics.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\xb4\x02\x02\n\n\r\n\ + \x05\x04\t\x02\0\x06\x12\x04\xb4\x02\x0b\x10\n\r\n\x05\x04\t\x02\0\x01\ + \x12\x04\xb4\x02\x11\x17\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xb4\x02\x1a\ + \x1b\n\x99\x01\n\x04\x04\t\x02\x01\x12\x04\xb8\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\x0f\ + \n\x05\x04\t\x02\x01\x04\x12\x06\xb8\x02\x02\xb4\x02\x1c\n\r\n\x05\x04\t\ + \x02\x01\x05\x12\x04\xb8\x02\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\ + \xb8\x02\t\x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xb8\x02\x1b\x1c\n@\n\ + \x02\x04\n\x12\x06\xbc\x02\0\xcb\x02\x01\x1a2\x20Request\x20for\x20the\ + \x20`ListTopicSubscriptions`\x20method.\n\n\x0b\n\x03\x04\n\x01\x12\x04\ + \xbc\x02\x08%\n\x85\x01\n\x04\x04\n\x02\0\x12\x06\xbf\x02\x02\xc2\x02\ + \x04\x1au\x20Required.\x20The\x20name\x20of\x20the\x20topic\x20that\x20s\ + ubscriptions\x20are\x20attached\x20to.\n\x20Format\x20is\x20`projects/{p\ + roject}/topics/{topic}`.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\xbf\x02\ + \x02\xbc\x02'\n\r\n\x05\x04\n\x02\0\x05\x12\x04\xbf\x02\x02\x08\n\r\n\ + \x05\x04\n\x02\0\x01\x12\x04\xbf\x02\t\x0e\n\r\n\x05\x04\n\x02\0\x03\x12\ + \x04\xbf\x02\x11\x12\n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\xbf\x02\x13\xc2\ + \x02\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\xc0\x02\x04*\n\ + \x0f\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x04\xc1\x02\x04M\n?\n\x04\x04\n\ + \x02\x01\x12\x04\xc5\x02\x02\x16\x1a1\x20Maximum\x20number\x20of\x20subs\ + cription\x20names\x20to\x20return.\n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\ + \x06\xc5\x02\x02\xc2\x02\x04\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\xc5\x02\ + \x02\x07\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xc5\x02\x08\x11\n\r\n\x05\ + \x04\n\x02\x01\x03\x12\x04\xc5\x02\x14\x15\n\xdc\x01\n\x04\x04\n\x02\x02\ + \x12\x04\xca\x02\x02\x18\x1a\xcd\x01\x20The\x20value\x20returned\x20by\ + \x20the\x20last\x20`ListTopicSubscriptionsResponse`;\x20indicates\n\x20t\ + hat\x20this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`ListTopic\ + Subscriptions`\x20call,\x20and\n\x20that\x20the\x20system\x20should\x20r\ + eturn\x20the\x20next\x20page\x20of\x20data.\n\n\x0f\n\x05\x04\n\x02\x02\ + \x04\x12\x06\xca\x02\x02\xc5\x02\x16\n\r\n\x05\x04\n\x02\x02\x05\x12\x04\ + \xca\x02\x02\x08\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xca\x02\t\x13\n\r\n\ + \x05\x04\n\x02\x02\x03\x12\x04\xca\x02\x16\x17\nA\n\x02\x04\x0b\x12\x06\ + \xce\x02\0\xd8\x02\x01\x1a3\x20Response\x20for\x20the\x20`ListTopicSubsc\ + riptions`\x20method.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xce\x02\x08&\n\\\ + \n\x04\x04\x0b\x02\0\x12\x06\xd0\x02\x02\xd2\x02\x05\x1aL\x20The\x20name\ + s\x20of\x20subscriptions\x20attached\x20to\x20the\x20topic\x20specified\ + \x20in\x20the\x20request.\n\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\xd0\x02\ + \x02\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xd0\x02\x0b\x11\n\r\n\x05\x04\ + \x0b\x02\0\x01\x12\x04\xd0\x02\x12\x1f\n\r\n\x05\x04\x0b\x02\0\x03\x12\ + \x04\xd0\x02\"#\n\x0f\n\x05\x04\x0b\x02\0\x08\x12\x06\xd0\x02$\xd2\x02\ + \x04\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\x06\xd0\x02%\xd2\x02\x03\ + \n\xc7\x01\n\x04\x04\x0b\x02\x01\x12\x04\xd7\x02\x02\x1d\x1a\xb8\x01\x20\ + If\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\x20more\ + \x20subscriptions\x20that\x20match\n\x20the\x20request;\x20this\x20value\ + \x20should\x20be\x20passed\x20in\x20a\x20new\n\x20`ListTopicSubscription\ + sRequest`\x20to\x20get\x20more\x20subscriptions.\n\n\x0f\n\x05\x04\x0b\ + \x02\x01\x04\x12\x06\xd7\x02\x02\xd2\x02\x05\n\r\n\x05\x04\x0b\x02\x01\ + \x05\x12\x04\xd7\x02\x02\x08\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xd7\ + \x02\t\x18\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xd7\x02\x1b\x1c\n<\n\ + \x02\x04\x0c\x12\x06\xdb\x02\0\xea\x02\x01\x1a.\x20Request\x20for\x20the\ + \x20`ListTopicSnapshots`\x20method.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\ + \xdb\x02\x08!\n\x81\x01\n\x04\x04\x0c\x02\0\x12\x06\xde\x02\x02\xe1\x02\ + \x04\x1aq\x20Required.\x20The\x20name\x20of\x20the\x20topic\x20that\x20s\ + napshots\x20are\x20attached\x20to.\n\x20Format\x20is\x20`projects/{proje\ + ct}/topics/{topic}`.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xde\x02\x02\ + \xdb\x02#\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xde\x02\x02\x08\n\r\n\x05\ + \x04\x0c\x02\0\x01\x12\x04\xde\x02\t\x0e\n\r\n\x05\x04\x0c\x02\0\x03\x12\ + \x04\xde\x02\x11\x12\n\x0f\n\x05\x04\x0c\x02\0\x08\x12\x06\xde\x02\x13\ + \xe1\x02\x03\n\x10\n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xdf\x02\x04\ + *\n\x0f\n\x07\x04\x0c\x02\0\x08\x9f\x08\x12\x04\xe0\x02\x04M\n;\n\x04\ + \x04\x0c\x02\x01\x12\x04\xe4\x02\x02\x16\x1a-\x20Maximum\x20number\x20of\ + \x20snapshot\x20names\x20to\x20return.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\ + \x12\x06\xe4\x02\x02\xe1\x02\x04\n\r\n\x05\x04\x0c\x02\x01\x05\x12\x04\ + \xe4\x02\x02\x07\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xe4\x02\x08\x11\n\ + \r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xe4\x02\x14\x15\n\xd4\x01\n\x04\x04\ + \x0c\x02\x02\x12\x04\xe9\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\x0f\n\x05\x04\x0c\ + \x02\x02\x04\x12\x06\xe9\x02\x02\xe4\x02\x16\n\r\n\x05\x04\x0c\x02\x02\ + \x05\x12\x04\xe9\x02\x02\x08\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\xe9\ + \x02\t\x13\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xe9\x02\x16\x17\n=\n\ + \x02\x04\r\x12\x06\xed\x02\0\xf5\x02\x01\x1a/\x20Response\x20for\x20the\ + \x20`ListTopicSnapshots`\x20method.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xed\ + \x02\x08\"\nB\n\x04\x04\r\x02\0\x12\x04\xef\x02\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\xef\x02\x02\n\n\r\n\x05\x04\r\x02\0\x05\ + \x12\x04\xef\x02\x0b\x11\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xef\x02\x12\ + \x1b\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xef\x02\x1e\x1f\n\xbb\x01\n\x04\ + \x04\r\x02\x01\x12\x04\xf4\x02\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\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xf4\x02\x02\xef\ + \x02\x20\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xf4\x02\x02\x08\n\r\n\x05\ + \x04\r\x02\x01\x01\x12\x04\xf4\x02\t\x18\n\r\n\x05\x04\r\x02\x01\x03\x12\ + \x04\xf4\x02\x1b\x1c\n5\n\x02\x04\x0e\x12\x06\xf8\x02\0\xff\x02\x01\x1a'\ + \x20Request\x20for\x20the\x20`DeleteTopic`\x20method.\n\n\x0b\n\x03\x04\ + \x0e\x01\x12\x04\xf8\x02\x08\x1a\nh\n\x04\x04\x0e\x02\0\x12\x06\xfb\x02\ + \x02\xfe\x02\x04\x1aX\x20Required.\x20Name\x20of\x20the\x20topic\x20to\ + \x20delete.\n\x20Format\x20is\x20`projects/{project}/topics/{topic}`.\n\ + \n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xfb\x02\x02\xf8\x02\x1c\n\r\n\x05\ + \x04\x0e\x02\0\x05\x12\x04\xfb\x02\x02\x08\n\r\n\x05\x04\x0e\x02\0\x01\ + \x12\x04\xfb\x02\t\x0e\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xfb\x02\x11\ + \x12\n\x0f\n\x05\x04\x0e\x02\0\x08\x12\x06\xfb\x02\x13\xfe\x02\x03\n\x10\ + \n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\xfc\x02\x04*\n\x0f\n\x07\x04\ + \x0e\x02\0\x08\x9f\x08\x12\x04\xfd\x02\x04M\n:\n\x02\x04\x0f\x12\x06\x82\ + \x03\0\x8b\x03\x01\x1a,\x20Request\x20for\x20the\x20DetachSubscription\ + \x20method.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\x82\x03\x08!\nu\n\x04\x04\ + \x0f\x02\0\x12\x06\x85\x03\x02\x8a\x03\x04\x1ae\x20Required.\x20The\x20s\ + ubscription\x20to\x20detach.\n\x20Format\x20is\x20`projects/{project}/su\ + bscriptions/{subscription}`.\n\n\x0f\n\x05\x04\x0f\x02\0\x04\x12\x06\x85\ + \x03\x02\x82\x03#\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\x85\x03\x02\x08\n\ + \r\n\x05\x04\x0f\x02\0\x01\x12\x04\x85\x03\t\x15\n\r\n\x05\x04\x0f\x02\0\ + \x03\x12\x04\x85\x03\x18\x19\n\x0f\n\x05\x04\x0f\x02\0\x08\x12\x06\x85\ + \x03\x1a\x8a\x03\x03\n\x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\x04\x86\ + \x03\x04*\n\x11\n\x07\x04\x0f\x02\0\x08\x9f\x08\x12\x06\x87\x03\x04\x89\ + \x03\x05\nS\n\x02\x04\x10\x12\x04\x8f\x03\0%\x1aG\x20Response\x20for\x20\ + the\x20DetachSubscription\x20method.\n\x20Reserved\x20for\x20future\x20u\ + se.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x8f\x03\x08\"\n\xe2\x01\n\x02\x06\ + \x01\x12\x06\x94\x03\0\xf2\x04\x01\x1a\xd3\x01\x20The\x20service\x20that\ + \x20an\x20application\x20uses\x20to\x20manipulate\x20subscriptions\x20an\ + d\x20to\n\x20consume\x20messages\x20from\x20a\x20subscription\x20via\x20\ + the\x20`Pull`\x20method\x20or\x20by\n\x20establishing\x20a\x20bi-directi\ + onal\x20stream\x20using\x20the\x20`StreamingPull`\x20method.\n\n\x0b\n\ + \x03\x06\x01\x01\x12\x04\x94\x03\x08\x12\n\x0b\n\x03\x06\x01\x03\x12\x04\ + \x95\x03\x02=\n\r\n\x05\x06\x01\x03\x99\x08\x12\x04\x95\x03\x02=\n\r\n\ + \x03\x06\x01\x03\x12\x06\x96\x03\x02\x98\x03/\n\x0f\n\x05\x06\x01\x03\ + \x9a\x08\x12\x06\x96\x03\x02\x98\x03/\n\x9a\x05\n\x04\x06\x01\x02\0\x12\ + \x06\xa5\x03\x02\xac\x03\x03\x1a\x89\x05\x20Creates\x20a\x20subscription\ + \x20to\x20a\x20given\x20topic.\x20See\x20the\x20[resource\x20name\x20rul\ + es]\n\x20(https://cloud.google.com/pubsub/docs/admin#resource_names).\n\ + \x20If\x20the\x20subscription\x20already\x20exists,\x20returns\x20`ALREA\ + DY_EXISTS`.\n\x20If\x20the\x20corresponding\x20topic\x20doesn't\x20exist\ + ,\x20returns\x20`NOT_FOUND`.\n\n\x20If\x20the\x20name\x20is\x20not\x20pr\ + ovided\x20in\x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\ + \x20random\n\x20name\x20for\x20this\x20subscription\x20on\x20the\x20same\ + \x20project\x20as\x20the\x20topic,\x20conforming\n\x20to\x20the\x20[reso\ + urce\x20name\x20format]\n\x20(https://cloud.google.com/pubsub/docs/admin\ + #resource_names).\x20The\x20generated\n\x20name\x20is\x20populated\x20in\ + \x20the\x20returned\x20Subscription\x20object.\x20Note\x20that\x20for\ + \x20REST\n\x20API\x20requests,\x20you\x20must\x20specify\x20a\x20name\ + \x20in\x20the\x20request.\n\n\r\n\x05\x06\x01\x02\0\x01\x12\x04\xa5\x03\ + \x06\x18\n\r\n\x05\x06\x01\x02\0\x02\x12\x04\xa5\x03\x19%\n\r\n\x05\x06\ + \x01\x02\0\x03\x12\x04\xa5\x030<\n\x0f\n\x05\x06\x01\x02\0\x04\x12\x06\ + \xa6\x03\x04\xa9\x03\x06\n\x13\n\t\x06\x01\x02\0\x04\xb0\xca\xbc\"\x12\ + \x06\xa6\x03\x04\xa9\x03\x06\n\x0f\n\x05\x06\x01\x02\0\x04\x12\x06\xaa\ + \x03\x04\xab\x036\n\x12\n\x08\x06\x01\x02\0\x04\x9b\x08\0\x12\x06\xaa\ + \x03\x04\xab\x036\nC\n\x04\x06\x01\x02\x01\x12\x06\xaf\x03\x02\xb4\x03\ + \x03\x1a3\x20Gets\x20the\x20configuration\x20details\x20of\x20a\x20subsc\ + ription.\n\n\r\n\x05\x06\x01\x02\x01\x01\x12\x04\xaf\x03\x06\x15\n\r\n\ + \x05\x06\x01\x02\x01\x02\x12\x04\xaf\x03\x16,\n\r\n\x05\x06\x01\x02\x01\ + \x03\x12\x04\xaf\x037C\n\x0f\n\x05\x06\x01\x02\x01\x04\x12\x06\xb0\x03\ + \x04\xb2\x03\x06\n\x13\n\t\x06\x01\x02\x01\x04\xb0\xca\xbc\"\x12\x06\xb0\ + \x03\x04\xb2\x03\x06\n\r\n\x05\x06\x01\x02\x01\x04\x12\x04\xb3\x03\x04:\ + \n\x10\n\x08\x06\x01\x02\x01\x04\x9b\x08\0\x12\x04\xb3\x03\x04:\n\x8b\ + \x01\n\x04\x06\x01\x02\x02\x12\x06\xb8\x03\x02\xbd\x03\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\xb8\x03\ + \x06\x18\n\r\n\x05\x06\x01\x02\x02\x02\x12\x04\xb8\x03\x192\n\r\n\x05\ + \x06\x01\x02\x02\x03\x12\x04\xb8\x03=I\n\x0f\n\x05\x06\x01\x02\x02\x04\ + \x12\x06\xb9\x03\x04\xbc\x03\x06\n\x13\n\t\x06\x01\x02\x02\x04\xb0\xca\ + \xbc\"\x12\x06\xb9\x03\x04\xbc\x03\x06\n/\n\x04\x06\x01\x02\x03\x12\x06\ + \xc0\x03\x02\xc6\x03\x03\x1a\x1f\x20Lists\x20matching\x20subscriptions.\ + \n\n\r\n\x05\x06\x01\x02\x03\x01\x12\x04\xc0\x03\x06\x17\n\r\n\x05\x06\ + \x01\x02\x03\x02\x12\x04\xc0\x03\x180\n\r\n\x05\x06\x01\x02\x03\x03\x12\ + \x04\xc1\x03\x0f(\n\x0f\n\x05\x06\x01\x02\x03\x04\x12\x06\xc2\x03\x04\ + \xc4\x03\x06\n\x13\n\t\x06\x01\x02\x03\x04\xb0\xca\xbc\"\x12\x06\xc2\x03\ + \x04\xc4\x03\x06\n\r\n\x05\x06\x01\x02\x03\x04\x12\x04\xc5\x03\x045\n\ + \x10\n\x08\x06\x01\x02\x03\x04\x9b\x08\0\x12\x04\xc5\x03\x045\n\xef\x02\ + \n\x04\x06\x01\x02\x04\x12\x06\xcd\x03\x02\xd3\x03\x03\x1a\xde\x02\x20De\ + letes\x20an\x20existing\x20subscription.\x20All\x20messages\x20retained\ + \x20in\x20the\x20subscription\n\x20are\x20immediately\x20dropped.\x20Cal\ + ls\x20to\x20`Pull`\x20after\x20deletion\x20will\x20return\n\x20`NOT_FOUN\ + D`.\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\x20su\ + bscription\x20or\x20its\x20topic\x20unless\x20the\x20same\x20topic\x20is\ + \x20specified.\n\n\r\n\x05\x06\x01\x02\x04\x01\x12\x04\xcd\x03\x06\x18\n\ + \r\n\x05\x06\x01\x02\x04\x02\x12\x04\xcd\x03\x192\n\r\n\x05\x06\x01\x02\ + \x04\x03\x12\x04\xce\x03\x0f$\n\x0f\n\x05\x06\x01\x02\x04\x04\x12\x06\ + \xcf\x03\x04\xd1\x03\x06\n\x13\n\t\x06\x01\x02\x04\x04\xb0\xca\xbc\"\x12\ + \x06\xcf\x03\x04\xd1\x03\x06\n\r\n\x05\x06\x01\x02\x04\x04\x12\x04\xd2\ + \x03\x04:\n\x10\n\x08\x06\x01\x02\x04\x04\x9b\x08\0\x12\x04\xd2\x03\x04:\ + \n\xe7\x02\n\x04\x06\x01\x02\x05\x12\x06\xda\x03\x02\xe2\x03\x03\x1a\xd6\ + \x02\x20Modifies\x20the\x20ack\x20deadline\x20for\x20a\x20specific\x20me\ + ssage.\x20This\x20method\x20is\x20useful\n\x20to\x20indicate\x20that\x20\ + more\x20time\x20is\x20needed\x20to\x20process\x20a\x20message\x20by\x20t\ + he\n\x20subscriber,\x20or\x20to\x20make\x20the\x20message\x20available\ + \x20for\x20redelivery\x20if\x20the\n\x20processing\x20was\x20interrupted\ + .\x20Note\x20that\x20this\x20does\x20not\x20modify\x20the\n\x20subscript\ + ion-level\x20`ackDeadlineSeconds`\x20used\x20for\x20subsequent\x20messag\ + es.\n\n\r\n\x05\x06\x01\x02\x05\x01\x12\x04\xda\x03\x06\x17\n\r\n\x05\ + \x06\x01\x02\x05\x02\x12\x04\xda\x03\x180\n\r\n\x05\x06\x01\x02\x05\x03\ + \x12\x04\xdb\x03\x0f$\n\x0f\n\x05\x06\x01\x02\x05\x04\x12\x06\xdc\x03\ + \x04\xdf\x03\x06\n\x13\n\t\x06\x01\x02\x05\x04\xb0\xca\xbc\"\x12\x06\xdc\ + \x03\x04\xdf\x03\x06\n\x0f\n\x05\x06\x01\x02\x05\x04\x12\x06\xe0\x03\x04\ + \xe1\x034\n\x12\n\x08\x06\x01\x02\x05\x04\x9b\x08\0\x12\x06\xe0\x03\x04\ + \xe1\x034\n\xed\x02\n\x04\x06\x01\x02\x06\x12\x06\xeb\x03\x02\xf1\x03\ + \x03\x1a\xdc\x02\x20Acknowledges\x20the\x20messages\x20associated\x20wit\ + h\x20the\x20`ack_ids`\x20in\x20the\n\x20`AcknowledgeRequest`.\x20The\x20\ + Pub/Sub\x20system\x20can\x20remove\x20the\x20relevant\x20messages\n\x20f\ + rom\x20the\x20subscription.\n\n\x20Acknowledging\x20a\x20message\x20whos\ + e\x20ack\x20deadline\x20has\x20expired\x20may\x20succeed,\n\x20but\x20su\ + ch\x20a\x20message\x20may\x20be\x20redelivered\x20later.\x20Acknowledgin\ + g\x20a\x20message\x20more\n\x20than\x20once\x20will\x20not\x20result\x20\ + in\x20an\x20error.\n\n\r\n\x05\x06\x01\x02\x06\x01\x12\x04\xeb\x03\x06\ + \x11\n\r\n\x05\x06\x01\x02\x06\x02\x12\x04\xeb\x03\x12$\n\r\n\x05\x06\ + \x01\x02\x06\x03\x12\x04\xeb\x03/D\n\x0f\n\x05\x06\x01\x02\x06\x04\x12\ + \x06\xec\x03\x04\xef\x03\x06\n\x13\n\t\x06\x01\x02\x06\x04\xb0\xca\xbc\"\ + \x12\x06\xec\x03\x04\xef\x03\x06\n\r\n\x05\x06\x01\x02\x06\x04\x12\x04\ + \xf0\x03\x04B\n\x10\n\x08\x06\x01\x02\x06\x04\x9b\x08\0\x12\x04\xf0\x03\ + \x04B\n\xab\x01\n\x04\x06\x01\x02\x07\x12\x06\xf6\x03\x02\xfd\x03\x03\ + \x1a\x9a\x01\x20Pulls\x20messages\x20from\x20the\x20server.\x20The\x20se\ + rver\x20may\x20return\x20`UNAVAILABLE`\x20if\n\x20there\x20are\x20too\ + \x20many\x20concurrent\x20pull\x20requests\x20pending\x20for\x20the\x20g\ + iven\n\x20subscription.\n\n\r\n\x05\x06\x01\x02\x07\x01\x12\x04\xf6\x03\ + \x06\n\n\r\n\x05\x06\x01\x02\x07\x02\x12\x04\xf6\x03\x0b\x16\n\r\n\x05\ + \x06\x01\x02\x07\x03\x12\x04\xf6\x03!-\n\x0f\n\x05\x06\x01\x02\x07\x04\ + \x12\x06\xf7\x03\x04\xfa\x03\x06\n\x13\n\t\x06\x01\x02\x07\x04\xb0\xca\ + \xbc\"\x12\x06\xf7\x03\x04\xfa\x03\x06\n\x0f\n\x05\x06\x01\x02\x07\x04\ + \x12\x06\xfb\x03\x04\xfc\x037\n\x12\n\x08\x06\x01\x02\x07\x04\x9b\x08\0\ + \x12\x06\xfb\x03\x04\xfc\x037\n\xe2\x03\n\x04\x06\x01\x02\x08\x12\x06\ + \x86\x04\x02\x87\x04/\x1a\xd1\x03\x20Establishes\x20a\x20stream\x20with\ + \x20the\x20server,\x20which\x20sends\x20messages\x20down\x20to\x20the\n\ + \x20client.\x20The\x20client\x20streams\x20acknowledgements\x20and\x20ac\ + k\x20deadline\x20modifications\n\x20back\x20to\x20the\x20server.\x20The\ + \x20server\x20will\x20close\x20the\x20stream\x20and\x20return\x20the\x20\ + status\n\x20on\x20any\x20error.\x20The\x20server\x20may\x20close\x20the\ + \x20stream\x20with\x20status\x20`UNAVAILABLE`\x20to\n\x20reassign\x20ser\ + ver-side\x20resources,\x20in\x20which\x20case,\x20the\x20client\x20shoul\ + d\n\x20re-establish\x20the\x20stream.\x20Flow\x20control\x20can\x20be\ + \x20achieved\x20by\x20configuring\x20the\n\x20underlying\x20RPC\x20chann\ + el.\n\n\r\n\x05\x06\x01\x02\x08\x01\x12\x04\x86\x04\x06\x13\n\r\n\x05\ + \x06\x01\x02\x08\x05\x12\x04\x86\x04\x14\x1a\n\r\n\x05\x06\x01\x02\x08\ + \x02\x12\x04\x86\x04\x1b/\n\r\n\x05\x06\x01\x02\x08\x06\x12\x04\x87\x04\ + \x0f\x15\n\r\n\x05\x06\x01\x02\x08\x03\x12\x04\x87\x04\x16+\n\xf7\x02\n\ + \x04\x06\x01\x02\t\x12\x06\x8f\x04\x02\x96\x04\x03\x1a\xe6\x02\x20Modifi\ + es\x20the\x20`PushConfig`\x20for\x20a\x20specified\x20subscription.\n\n\ + \x20This\x20may\x20be\x20used\x20to\x20change\x20a\x20push\x20subscripti\ + on\x20to\x20a\x20pull\x20one\x20(signified\x20by\n\x20an\x20empty\x20`Pu\ + shConfig`)\x20or\x20vice\x20versa,\x20or\x20change\x20the\x20endpoint\ + \x20URL\x20and\x20other\n\x20attributes\x20of\x20a\x20push\x20subscripti\ + on.\x20Messages\x20will\x20accumulate\x20for\x20delivery\n\x20continuous\ + ly\x20through\x20the\x20call\x20regardless\x20of\x20changes\x20to\x20the\ + \x20`PushConfig`.\n\n\r\n\x05\x06\x01\x02\t\x01\x12\x04\x8f\x04\x06\x16\ + \n\r\n\x05\x06\x01\x02\t\x02\x12\x04\x8f\x04\x17.\n\r\n\x05\x06\x01\x02\ + \t\x03\x12\x04\x90\x04\x0f$\n\x0f\n\x05\x06\x01\x02\t\x04\x12\x06\x91\ + \x04\x04\x94\x04\x06\n\x13\n\t\x06\x01\x02\t\x04\xb0\xca\xbc\"\x12\x06\ + \x91\x04\x04\x94\x04\x06\n\r\n\x05\x06\x01\x02\t\x04\x12\x04\x95\x04\x04\ + F\n\x10\n\x08\x06\x01\x02\t\x04\x9b\x08\0\x12\x04\x95\x04\x04F\n\xe4\x02\ + \n\x04\x06\x01\x02\n\x12\x06\x9d\x04\x02\xa2\x04\x03\x1a\xd3\x02\x20Gets\ + \x20the\x20configuration\x20details\x20of\x20a\x20snapshot.\x20Snapshots\ + \x20are\x20used\x20in\n\x20Seek\n\x20operations,\x20which\x20allow\x20yo\ + u\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\n\ + \x20is,\x20you\x20can\x20set\x20the\x20acknowledgment\x20state\x20of\x20\ + messages\x20in\x20an\x20existing\n\x20subscription\x20to\x20the\x20state\ + \x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\n\x01\x12\ + \x04\x9d\x04\x06\x11\n\r\n\x05\x06\x01\x02\n\x02\x12\x04\x9d\x04\x12$\n\ + \r\n\x05\x06\x01\x02\n\x03\x12\x04\x9d\x04/7\n\x0f\n\x05\x06\x01\x02\n\ + \x04\x12\x06\x9e\x04\x04\xa0\x04\x06\n\x13\n\t\x06\x01\x02\n\x04\xb0\xca\ + \xbc\"\x12\x06\x9e\x04\x04\xa0\x04\x06\n\r\n\x05\x06\x01\x02\n\x04\x12\ + \x04\xa1\x04\x046\n\x10\n\x08\x06\x01\x02\n\x04\x9b\x08\0\x12\x04\xa1\ + \x04\x046\n\xca\x02\n\x04\x06\x01\x02\x0b\x12\x06\xa9\x04\x02\xae\x04\ + \x03\x1a\xb9\x02\x20Lists\x20the\x20existing\x20snapshots.\x20Snapshots\ + \x20are\x20used\x20in\x20[Seek](\n\x20https://cloud.google.com/pubsub/do\ + cs/replay-overview)\x20operations,\x20which\n\x20allow\x20you\x20to\x20m\ + anage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\ + \x20can\x20set\n\x20the\x20acknowledgment\x20state\x20of\x20messages\x20\ + in\x20an\x20existing\x20subscription\x20to\x20the\n\x20state\x20captured\ + \x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\x0b\x01\x12\x04\xa9\x04\ + \x06\x13\n\r\n\x05\x06\x01\x02\x0b\x02\x12\x04\xa9\x04\x14(\n\r\n\x05\ + \x06\x01\x02\x0b\x03\x12\x04\xa9\x043H\n\x0f\n\x05\x06\x01\x02\x0b\x04\ + \x12\x06\xaa\x04\x04\xac\x04\x06\n\x13\n\t\x06\x01\x02\x0b\x04\xb0\xca\ + \xbc\"\x12\x06\xaa\x04\x04\xac\x04\x06\n\r\n\x05\x06\x01\x02\x0b\x04\x12\ + \x04\xad\x04\x045\n\x10\n\x08\x06\x01\x02\x0b\x04\x9b\x08\0\x12\x04\xad\ + \x04\x045\n\xa5\x08\n\x04\x06\x01\x02\x0c\x12\x06\xc0\x04\x02\xc6\x04\ + \x03\x1a\x94\x08\x20Creates\x20a\x20snapshot\x20from\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\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\x20If\x20the\ + \x20snapshot\x20already\x20exists,\x20returns\x20`ALREADY_EXISTS`.\n\x20\ + If\x20the\x20requested\x20subscription\x20doesn't\x20exist,\x20returns\ + \x20`NOT_FOUND`.\n\x20If\x20the\x20backlog\x20in\x20the\x20subscription\ + \x20is\x20too\x20old\x20--\x20and\x20the\x20resulting\x20snapshot\n\x20w\ + ould\x20expire\x20in\x20less\x20than\x201\x20hour\x20--\x20then\x20`FAIL\ + ED_PRECONDITION`\x20is\x20returned.\n\x20See\x20also\x20the\x20`Snapshot\ + .expire_time`\x20field.\x20If\x20the\x20name\x20is\x20not\x20provided\ + \x20in\n\x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\x20r\ + andom\n\x20name\x20for\x20this\x20snapshot\x20on\x20the\x20same\x20proje\ + ct\x20as\x20the\x20subscription,\x20conforming\n\x20to\x20the\x20[resour\ + ce\x20name\x20format]\n\x20(https://cloud.google.com/pubsub/docs/admin#r\ + esource_names).\x20The\n\x20generated\x20name\x20is\x20populated\x20in\ + \x20the\x20returned\x20Snapshot\x20object.\x20Note\x20that\x20for\n\x20R\ + EST\x20API\x20requests,\x20you\x20must\x20specify\x20a\x20name\x20in\x20\ + the\x20request.\n\n\r\n\x05\x06\x01\x02\x0c\x01\x12\x04\xc0\x04\x06\x14\ + \n\r\n\x05\x06\x01\x02\x0c\x02\x12\x04\xc0\x04\x15*\n\r\n\x05\x06\x01\ + \x02\x0c\x03\x12\x04\xc0\x045=\n\x0f\n\x05\x06\x01\x02\x0c\x04\x12\x06\ + \xc1\x04\x04\xc4\x04\x06\n\x13\n\t\x06\x01\x02\x0c\x04\xb0\xca\xbc\"\x12\ + \x06\xc1\x04\x04\xc4\x04\x06\n\r\n\x05\x06\x01\x02\x0c\x04\x12\x04\xc5\ + \x04\x04?\n\x10\n\x08\x06\x01\x02\x0c\x04\x9b\x08\0\x12\x04\xc5\x04\x04?\ + \n\xd5\x02\n\x04\x06\x01\x02\r\x12\x06\xce\x04\x02\xd3\x04\x03\x1a\xc4\ + \x02\x20Updates\x20an\x20existing\x20snapshot.\x20Snapshots\x20are\x20us\ + ed\x20in\n\x20Seek\n\x20operations,\x20which\x20allow\n\x20you\x20to\x20\ + manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20yo\ + u\x20can\x20set\x20the\n\x20acknowledgment\x20state\x20of\x20messages\ + \x20in\x20an\x20existing\x20subscription\x20to\x20the\x20state\n\x20capt\ + ured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\r\x01\x12\x04\xce\ + \x04\x06\x14\n\r\n\x05\x06\x01\x02\r\x02\x12\x04\xce\x04\x15*\n\r\n\x05\ + \x06\x01\x02\r\x03\x12\x04\xce\x045=\n\x0f\n\x05\x06\x01\x02\r\x04\x12\ + \x06\xcf\x04\x04\xd2\x04\x06\n\x13\n\t\x06\x01\x02\r\x04\xb0\xca\xbc\"\ + \x12\x06\xcf\x04\x04\xd2\x04\x06\n\xee\x04\n\x04\x06\x01\x02\x0e\x12\x06\ + \xde\x04\x02\xe3\x04\x03\x1a\xdd\x04\x20Removes\x20an\x20existing\x20sna\ + pshot.\x20Snapshots\x20are\x20used\x20in\x20[Seek]\n\x20(https://cloud.g\ + oogle.com/pubsub/docs/replay-overview)\x20operations,\x20which\n\x20allo\ + w\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\ + \x20That\x20is,\x20you\x20can\x20set\n\x20the\x20acknowledgment\x20state\ + \x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20to\x20the\ + \n\x20state\x20captured\x20by\x20a\x20snapshot.\n\x20When\x20the\x20snap\ + shot\x20is\x20deleted,\x20all\x20messages\x20retained\x20in\x20the\x20sn\ + apshot\n\x20are\x20immediately\x20dropped.\x20After\x20a\x20snapshot\x20\ + is\x20deleted,\x20a\x20new\x20one\x20may\x20be\n\x20created\x20with\x20t\ + he\x20same\x20name,\x20but\x20the\x20new\x20one\x20has\x20no\x20associat\ + ion\x20with\x20the\x20old\n\x20snapshot\x20or\x20its\x20subscription,\ + \x20unless\x20the\x20same\x20subscription\x20is\x20specified.\n\n\r\n\ + \x05\x06\x01\x02\x0e\x01\x12\x04\xde\x04\x06\x14\n\r\n\x05\x06\x01\x02\ + \x0e\x02\x12\x04\xde\x04\x15*\n\r\n\x05\x06\x01\x02\x0e\x03\x12\x04\xde\ + \x045J\n\x0f\n\x05\x06\x01\x02\x0e\x04\x12\x06\xdf\x04\x04\xe1\x04\x06\n\ + \x13\n\t\x06\x01\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xdf\x04\x04\xe1\x04\ + \x06\n\r\n\x05\x06\x01\x02\x0e\x04\x12\x04\xe2\x04\x046\n\x10\n\x08\x06\ + \x01\x02\x0e\x04\x9b\x08\0\x12\x04\xe2\x04\x046\n\xea\x03\n\x04\x06\x01\ + \x02\x0f\x12\x06\xec\x04\x02\xf1\x04\x03\x1a\xd9\x03\x20Seeks\x20an\x20e\ + xisting\x20subscription\x20to\x20a\x20point\x20in\x20time\x20or\x20to\ + \x20a\x20given\x20snapshot,\n\x20whichever\x20is\x20provided\x20in\x20th\ + e\x20request.\x20Snapshots\x20are\x20used\x20in\x20[Seek]\n\x20(https://\ + cloud.google.com/pubsub/docs/replay-overview)\x20operations,\x20which\n\ + \x20allow\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20\ + bulk.\x20That\x20is,\x20you\x20can\x20set\n\x20the\x20acknowledgment\x20\ + state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20to\ + \x20the\n\x20state\x20captured\x20by\x20a\x20snapshot.\x20Note\x20that\ + \x20both\x20the\x20subscription\x20and\x20the\n\x20snapshot\x20must\x20b\ + e\x20on\x20the\x20same\x20topic.\n\n\r\n\x05\x06\x01\x02\x0f\x01\x12\x04\ + \xec\x04\x06\n\n\r\n\x05\x06\x01\x02\x0f\x02\x12\x04\xec\x04\x0b\x16\n\r\ + \n\x05\x06\x01\x02\x0f\x03\x12\x04\xec\x04!-\n\x0f\n\x05\x06\x01\x02\x0f\ + \x04\x12\x06\xed\x04\x04\xf0\x04\x06\n\x13\n\t\x06\x01\x02\x0f\x04\xb0\ + \xca\xbc\"\x12\x06\xed\x04\x04\xf0\x04\x06\n(\n\x02\x04\x11\x12\x06\xf5\ + \x04\0\xe7\x05\x01\x1a\x1a\x20A\x20subscription\x20resource.\n\n\x0b\n\ + \x03\x04\x11\x01\x12\x04\xf5\x04\x08\x14\n\r\n\x03\x04\x11\x07\x12\x06\ + \xf6\x04\x02\xf9\x04\x04\n\x0f\n\x05\x04\x11\x07\x9d\x08\x12\x06\xf6\x04\ + \x02\xf9\x04\x04\n\xa8\x03\n\x04\x04\x11\x02\0\x12\x04\x81\x05\x02;\x1a\ + \x99\x03\x20Required.\x20The\x20name\x20of\x20the\x20subscription.\x20It\ + \x20must\x20have\x20the\x20format\n\x20`\"projects/{project}/subscriptio\ + ns/{subscription}\"`.\x20`{subscription}`\x20must\n\x20start\x20with\x20\ + a\x20letter,\x20and\x20contain\x20only\x20letters\x20(`[A-Za-z]`),\x20nu\ + mbers\n\x20(`[0-9]`),\x20dashes\x20(`-`),\x20underscores\x20(`_`),\x20pe\ + riods\x20(`.`),\x20tildes\x20(`~`),\n\x20plus\x20(`+`)\x20or\x20percent\ + \x20signs\x20(`%`).\x20It\x20must\x20be\x20between\x203\x20and\x20255\ + \x20characters\n\x20in\x20length,\x20and\x20it\x20must\x20not\x20start\ + \x20with\x20`\"goog\"`.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\x81\x05\ + \x02\xf9\x04\x04\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\x81\x05\x02\x08\n\r\ + \n\x05\x04\x11\x02\0\x01\x12\x04\x81\x05\t\r\n\r\n\x05\x04\x11\x02\0\x03\ + \x12\x04\x81\x05\x10\x11\n\r\n\x05\x04\x11\x02\0\x08\x12\x04\x81\x05\x12\ + :\n\x10\n\x08\x04\x11\x02\0\x08\x9c\x08\0\x12\x04\x81\x05\x139\n\xe8\x01\ + \n\x04\x04\x11\x02\x01\x12\x06\x86\x05\x02\x89\x05\x04\x1a\xd7\x01\x20Re\ + quired.\x20The\x20name\x20of\x20the\x20topic\x20from\x20which\x20this\ + \x20subscription\x20is\x20receiving\n\x20messages.\x20Format\x20is\x20`p\ + rojects/{project}/topics/{topic}`.\x20The\x20value\x20of\x20this\n\x20fi\ + eld\x20will\x20be\x20`_deleted-topic_`\x20if\x20the\x20topic\x20has\x20b\ + een\x20deleted.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\x86\x05\x02\ + \x81\x05;\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\x86\x05\x02\x08\n\r\n\ + \x05\x04\x11\x02\x01\x01\x12\x04\x86\x05\t\x0e\n\r\n\x05\x04\x11\x02\x01\ + \x03\x12\x04\x86\x05\x11\x12\n\x0f\n\x05\x04\x11\x02\x01\x08\x12\x06\x86\ + \x05\x13\x89\x05\x03\n\x10\n\x08\x04\x11\x02\x01\x08\x9c\x08\0\x12\x04\ + \x87\x05\x04*\n\x0f\n\x07\x04\x11\x02\x01\x08\x9f\x08\x12\x04\x88\x05\ + \x04M\n\xc9\x01\n\x04\x04\x11\x02\x02\x12\x04\x8e\x05\x02\x1d\x1a\xba\ + \x01\x20If\x20push\x20delivery\x20is\x20used\x20with\x20this\x20subscrip\ + tion,\x20this\x20field\x20is\n\x20used\x20to\x20configure\x20it.\x20An\ + \x20empty\x20`pushConfig`\x20signifies\x20that\x20the\x20subscriber\n\ + \x20will\x20pull\x20and\x20ack\x20messages\x20using\x20API\x20methods.\n\ + \n\x0f\n\x05\x04\x11\x02\x02\x04\x12\x06\x8e\x05\x02\x89\x05\x04\n\r\n\ + \x05\x04\x11\x02\x02\x06\x12\x04\x8e\x05\x02\x0c\n\r\n\x05\x04\x11\x02\ + \x02\x01\x12\x04\x8e\x05\r\x18\n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\x8e\ + \x05\x1b\x1c\n\xc7\x08\n\x04\x04\x11\x02\x03\x12\x04\xa4\x05\x02!\x1a\ + \xb8\x08\x20The\x20approximate\x20amount\x20of\x20time\x20(on\x20a\x20be\ + st-effort\x20basis)\x20Pub/Sub\x20waits\x20for\n\x20the\x20subscriber\ + \x20to\x20acknowledge\x20receipt\x20before\x20resending\x20the\x20messag\ + e.\x20In\x20the\n\x20interval\x20after\x20the\x20message\x20is\x20delive\ + red\x20and\x20before\x20it\x20is\x20acknowledged,\x20it\n\x20is\x20consi\ + dered\x20to\x20be\x20outstanding.\x20During\x20that\x20time\x20pe\ + riod,\x20the\n\x20message\x20will\x20not\x20be\x20redelivered\x20(on\x20\ + a\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`\x20if\x20using\n\x20non-streaming\x20pull\ + \x20or\x20send\x20the\x20`ack_id`\x20in\x20a\n\x20`StreamingModifyAckDea\ + dlineRequest`\x20if\x20using\x20streaming\x20pull.\n\x20The\x20minimum\ + \x20custom\x20deadline\x20you\x20can\x20specify\x20is\x2010\x20seconds.\ + \n\x20The\x20maximum\x20custom\x20deadline\x20you\x20can\x20specify\x20i\ + s\x20600\x20seconds\x20(10\x20minutes).\n\x20If\x20this\x20parameter\x20\ + is\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\x20\ + acknowledges\x20the\x20message,\x20the\x20Pub/Sub\n\x20system\x20will\ + \x20eventually\x20redeliver\x20the\x20message.\n\n\x0f\n\x05\x04\x11\x02\ + \x03\x04\x12\x06\xa4\x05\x02\x8e\x05\x1d\n\r\n\x05\x04\x11\x02\x03\x05\ + \x12\x04\xa4\x05\x02\x07\n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xa4\x05\ + \x08\x1c\n\r\n\x05\x04\x11\x02\x03\x03\x12\x04\xa4\x05\x1f\x20\n\xf3\x02\ + \n\x04\x04\x11\x02\x04\x12\x04\xab\x05\x02!\x1a\xe4\x02\x20Indicates\x20\ + whether\x20to\x20retain\x20acknowledged\x20messages.\x20If\x20true,\x20t\ + hen\n\x20messages\x20are\x20not\x20expunged\x20from\x20the\x20subscripti\ + on's\x20backlog,\x20even\x20if\x20they\x20are\n\x20acknowledged,\x20unti\ + l\x20they\x20fall\x20out\x20of\x20the\x20`message_retention_duration`\n\ + \x20window.\x20This\x20must\x20be\x20true\x20if\x20you\x20would\x20like\ + \x20to\x20[Seek\x20to\x20a\x20timestamp]\n\x20(https://cloud.google.com/\ + pubsub/docs/replay-overview#seek_to_a_time).\n\n\x0f\n\x05\x04\x11\x02\ + \x04\x04\x12\x06\xab\x05\x02\xa4\x05!\n\r\n\x05\x04\x11\x02\x04\x05\x12\ + \x04\xab\x05\x02\x06\n\r\n\x05\x04\x11\x02\x04\x01\x12\x04\xab\x05\x07\ + \x1c\n\r\n\x05\x04\x11\x02\x04\x03\x12\x04\xab\x05\x1f\x20\n\xf4\x02\n\ + \x04\x04\x11\x02\x05\x12\x04\xb3\x05\x02:\x1a\xe5\x02\x20How\x20long\x20\ + to\x20retain\x20unacknowledged\x20messages\x20in\x20the\x20subscription'\ + s\x20backlog,\n\x20from\x20the\x20moment\x20a\x20message\x20is\x20publis\ + hed.\n\x20If\x20`retain_acked_messages`\x20is\x20true,\x20then\x20this\ + \x20also\x20configures\x20the\x20retention\n\x20of\x20acknowledged\x20me\ + ssages,\x20and\x20thus\x20configures\x20how\x20far\x20back\x20in\x20time\ + \x20a\x20`Seek`\n\x20can\x20be\x20done.\x20Defaults\x20to\x207\x20days.\ + \x20Cannot\x20be\x20more\x20than\x207\x20days\x20or\x20less\x20than\x201\ + 0\n\x20minutes.\n\n\x0f\n\x05\x04\x11\x02\x05\x04\x12\x06\xb3\x05\x02\ + \xab\x05!\n\r\n\x05\x04\x11\x02\x05\x06\x12\x04\xb3\x05\x02\x1a\n\r\n\ + \x05\x04\x11\x02\x05\x01\x12\x04\xb3\x05\x1b5\n\r\n\x05\x04\x11\x02\x05\ + \x03\x12\x04\xb3\x0589\nm\n\x04\x04\x11\x02\x06\x12\x04\xb7\x05\x02!\x1a\ + _\x20See\x20\ + \x20Creating\x20and\n\x20managing\x20labels.\n\n\x0f\n\x05\x04\x11\ + \x02\x06\x04\x12\x06\xb7\x05\x02\xb3\x05:\n\r\n\x05\x04\x11\x02\x06\x06\ + \x12\x04\xb7\x05\x02\x15\n\r\n\x05\x04\x11\x02\x06\x01\x12\x04\xb7\x05\ + \x16\x1c\n\r\n\x05\x04\x11\x02\x06\x03\x12\x04\xb7\x05\x1f\x20\n\xf2\x01\ + \n\x04\x04\x11\x02\x07\x12\x04\xbd\x05\x02$\x1a\xe3\x01\x20If\x20true,\ + \x20messages\x20published\x20with\x20the\x20same\x20`ordering_key`\x20in\ + \x20`PubsubMessage`\n\x20will\x20be\x20delivered\x20to\x20the\x20subscri\ + bers\x20in\x20the\x20order\x20in\x20which\x20they\n\x20are\x20received\ + \x20by\x20the\x20Pub/Sub\x20system.\x20Otherwise,\x20they\x20may\x20be\ + \x20delivered\x20in\n\x20any\x20order.\n\n\x0f\n\x05\x04\x11\x02\x07\x04\ + \x12\x06\xbd\x05\x02\xb7\x05!\n\r\n\x05\x04\x11\x02\x07\x05\x12\x04\xbd\ + \x05\x02\x06\n\r\n\x05\x04\x11\x02\x07\x01\x12\x04\xbd\x05\x07\x1e\n\r\n\ + \x05\x04\x11\x02\x07\x03\x12\x04\xbd\x05!#\n\xa9\x03\n\x04\x04\x11\x02\ + \x08\x12\x04\xc5\x05\x02*\x1a\x9a\x03\x20A\x20policy\x20that\x20specifie\ + s\x20the\x20conditions\x20for\x20this\x20subscription's\x20expiration.\n\ + \x20A\x20subscription\x20is\x20considered\x20active\x20as\x20long\x20as\ + \x20any\x20connected\x20subscriber\x20is\n\x20successfully\x20consuming\ + \x20messages\x20from\x20the\x20subscription\x20or\x20is\x20issuing\n\x20\ + operations\x20on\x20the\x20subscription.\x20If\x20`expiration_policy`\ + \x20is\x20not\x20set,\x20a\n\x20*default\x20policy*\x20with\x20`ttl`\x20\ + of\x2031\x20days\x20will\x20be\x20used.\x20The\x20minimum\x20allowed\n\ + \x20value\x20for\x20`expiration_policy.ttl`\x20is\x201\x20day.\n\n\x0f\n\ + \x05\x04\x11\x02\x08\x04\x12\x06\xc5\x05\x02\xbd\x05$\n\r\n\x05\x04\x11\ + \x02\x08\x06\x12\x04\xc5\x05\x02\x12\n\r\n\x05\x04\x11\x02\x08\x01\x12\ + \x04\xc5\x05\x13$\n\r\n\x05\x04\x11\x02\x08\x03\x12\x04\xc5\x05')\n\xa2\ + \x02\n\x04\x04\x11\x02\t\x12\x04\xcc\x05\x02\x15\x1a\x93\x02\x20An\x20ex\ + pression\x20written\x20in\x20the\x20Pub/Sub\x20[filter\n\x20language](ht\ + tps://cloud.google.com/pubsub/docs/filtering).\x20If\x20non-empty,\n\x20\ + then\x20only\x20`PubsubMessage`s\x20whose\x20`attributes`\x20field\x20ma\ + tches\x20the\x20filter\x20are\n\x20delivered\x20on\x20this\x20subscripti\ + on.\x20If\x20empty,\x20then\x20no\x20messages\x20are\x20filtered\n\x20ou\ + t.\n\n\x0f\n\x05\x04\x11\x02\t\x04\x12\x06\xcc\x05\x02\xc5\x05*\n\r\n\ + \x05\x04\x11\x02\t\x05\x12\x04\xcc\x05\x02\x08\n\r\n\x05\x04\x11\x02\t\ + \x01\x12\x04\xcc\x05\t\x0f\n\r\n\x05\x04\x11\x02\t\x03\x12\x04\xcc\x05\ + \x12\x14\n\x90\x03\n\x04\x04\x11\x02\n\x12\x04\xd6\x05\x02+\x1a\x81\x03\ + \x20A\x20policy\x20that\x20specifies\x20the\x20conditions\x20for\x20dead\ + \x20lettering\x20messages\x20in\n\x20this\x20subscription.\x20If\x20dead\ + _letter_policy\x20is\x20not\x20set,\x20dead\x20lettering\n\x20is\x20disa\ + bled.\n\n\x20The\x20Cloud\x20Pub/Sub\x20service\x20account\x20associated\ + \x20with\x20this\x20subscriptions's\n\x20parent\x20project\x20(i.e.,\n\ + \x20service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com)\x20m\ + ust\x20have\n\x20permission\x20to\x20Acknowledge()\x20messages\x20on\x20\ + this\x20subscription.\n\n\x0f\n\x05\x04\x11\x02\n\x04\x12\x06\xd6\x05\ + \x02\xcc\x05\x15\n\r\n\x05\x04\x11\x02\n\x06\x12\x04\xd6\x05\x02\x12\n\r\ + \n\x05\x04\x11\x02\n\x01\x12\x04\xd6\x05\x13%\n\r\n\x05\x04\x11\x02\n\ + \x03\x12\x04\xd6\x05(*\n\xe5\x02\n\x04\x04\x11\x02\x0b\x12\x04\xdf\x05\ + \x02\x20\x1a\xd6\x02\x20A\x20policy\x20that\x20specifies\x20how\x20Pub/S\ + ub\x20retries\x20message\x20delivery\x20for\x20this\n\x20subscription.\n\ + \n\x20If\x20not\x20set,\x20the\x20default\x20retry\x20policy\x20is\x20ap\ + plied.\x20This\x20generally\x20implies\n\x20that\x20messages\x20will\x20\ + be\x20retried\x20as\x20soon\x20as\x20possible\x20for\x20healthy\x20subsc\ + ribers.\n\x20RetryPolicy\x20will\x20be\x20triggered\x20on\x20NACKs\x20or\ + \x20acknowledgement\x20deadline\n\x20exceeded\x20events\x20for\x20a\x20g\ + iven\x20message.\n\n\x0f\n\x05\x04\x11\x02\x0b\x04\x12\x06\xdf\x05\x02\ + \xd6\x05+\n\r\n\x05\x04\x11\x02\x0b\x06\x12\x04\xdf\x05\x02\r\n\r\n\x05\ + \x04\x11\x02\x0b\x01\x12\x04\xdf\x05\x0e\x1a\n\r\n\x05\x04\x11\x02\x0b\ + \x03\x12\x04\xdf\x05\x1d\x1f\n\xca\x02\n\x04\x04\x11\x02\x0c\x12\x04\xe6\ + \x05\x02\x15\x1a\xbb\x02\x20Indicates\x20whether\x20the\x20subscription\ + \x20is\x20detached\x20from\x20its\x20topic.\x20Detached\n\x20subscriptio\ + ns\x20don't\x20receive\x20messages\x20from\x20their\x20topic\x20and\x20d\ + on't\x20retain\x20any\n\x20backlog.\x20`Pull`\x20and\x20`StreamingPull`\ + \x20requests\x20will\x20return\n\x20FAILED_PRECONDITION.\x20If\x20the\ + \x20subscription\x20is\x20a\x20push\x20subscription,\x20pushes\x20to\n\ + \x20the\x20endpoint\x20will\x20not\x20be\x20made.\n\n\x0f\n\x05\x04\x11\ + \x02\x0c\x04\x12\x06\xe6\x05\x02\xdf\x05\x20\n\r\n\x05\x04\x11\x02\x0c\ + \x05\x12\x04\xe6\x05\x02\x06\n\r\n\x05\x04\x11\x02\x0c\x01\x12\x04\xe6\ + \x05\x07\x0f\n\r\n\x05\x04\x11\x02\x0c\x03\x12\x04\xe6\x05\x12\x14\n\x8d\ + \x04\n\x02\x04\x12\x12\x06\xf4\x05\0\xfc\x05\x01\x1a\xfe\x03\x20A\x20pol\ + icy\x20that\x20specifies\x20how\x20Cloud\x20Pub/Sub\x20retries\x20messag\ + e\x20delivery.\n\n\x20Retry\x20delay\x20will\x20be\x20exponential\x20bas\ + ed\x20on\x20provided\x20minimum\x20and\x20maximum\n\x20backoffs.\x20http\ + s://en.wikipedia.org/wiki/Exponential_backoff.\n\n\x20RetryPolicy\x20wil\ + l\x20be\x20triggered\x20on\x20NACKs\x20or\x20acknowledgement\x20deadline\ + \x20exceeded\n\x20events\x20for\x20a\x20given\x20message.\n\n\x20Retry\ + \x20Policy\x20is\x20implemented\x20on\x20a\x20best\x20effort\x20basis.\ + \x20At\x20times,\x20the\x20delay\n\x20between\x20consecutive\x20deliveri\ + es\x20may\x20not\x20match\x20the\x20configuration.\x20That\x20is,\n\x20d\ + elay\x20can\x20be\x20more\x20or\x20less\x20than\x20configured\x20backoff\ + .\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xf4\x05\x08\x13\n\x99\x01\n\x04\x04\ + \x12\x02\0\x12\x04\xf7\x05\x02/\x1a\x8a\x01\x20The\x20minimum\x20delay\ + \x20between\x20consecutive\x20deliveries\x20of\x20a\x20given\x20message.\ + \n\x20Value\x20should\x20be\x20between\x200\x20and\x20600\x20seconds.\ + \x20Defaults\x20to\x2010\x20seconds.\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\ + \x06\xf7\x05\x02\xf4\x05\x15\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\xf7\x05\ + \x02\x1a\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xf7\x05\x1b*\n\r\n\x05\x04\ + \x12\x02\0\x03\x12\x04\xf7\x05-.\n\x9a\x01\n\x04\x04\x12\x02\x01\x12\x04\ + \xfb\x05\x02/\x1a\x8b\x01\x20The\x20maximum\x20delay\x20between\x20conse\ + cutive\x20deliveries\x20of\x20a\x20given\x20message.\n\x20Value\x20shoul\ + d\x20be\x20between\x200\x20and\x20600\x20seconds.\x20Defaults\x20to\x206\ + 00\x20seconds.\n\n\x0f\n\x05\x04\x12\x02\x01\x04\x12\x06\xfb\x05\x02\xf7\ + \x05/\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xfb\x05\x02\x1a\n\r\n\x05\ + \x04\x12\x02\x01\x01\x12\x04\xfb\x05\x1b*\n\r\n\x05\x04\x12\x02\x01\x03\ + \x12\x04\xfb\x05-.\n\xf9\x01\n\x02\x04\x13\x12\x06\x83\x06\0\x9d\x06\x01\ + \x1a\xea\x01\x20Dead\x20lettering\x20is\x20done\x20on\x20a\x20best\x20ef\ + fort\x20basis.\x20The\x20same\x20message\x20might\x20be\n\x20dead\x20let\ + tered\x20multiple\x20times.\n\n\x20If\x20validation\x20on\x20any\x20of\ + \x20the\x20fields\x20fails\x20at\x20subscription\x20creation/updation,\n\ + \x20the\x20create/update\x20subscription\x20request\x20will\x20fail.\n\n\ + \x0b\n\x03\x04\x13\x01\x12\x04\x83\x06\x08\x18\n\xa6\x04\n\x04\x04\x13\ + \x02\0\x12\x04\x8d\x06\x02\x1f\x1a\x97\x04\x20The\x20name\x20of\x20the\ + \x20topic\x20to\x20which\x20dead\x20letter\x20messages\x20should\x20be\ + \x20published.\n\x20Format\x20is\x20`projects/{project}/topics/{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.com)\x20m\ + ust\x20have\n\x20permission\x20to\x20Publish()\x20to\x20this\x20topic.\n\ + \n\x20The\x20operation\x20will\x20fail\x20if\x20the\x20topic\x20does\x20\ + not\x20exist.\n\x20Users\x20should\x20ensure\x20that\x20there\x20is\x20a\ + \x20subscription\x20attached\x20to\x20this\x20topic\n\x20since\x20messag\ + es\x20published\x20to\x20a\x20topic\x20with\x20no\x20subscriptions\x20ar\ + e\x20lost.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\x8d\x06\x02\x83\x06\ + \x1a\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\x8d\x06\x02\x08\n\r\n\x05\x04\ + \x13\x02\0\x01\x12\x04\x8d\x06\t\x1a\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\ + \x8d\x06\x1d\x1e\n\x84\x04\n\x04\x04\x13\x02\x01\x12\x04\x9c\x06\x02\"\ + \x1a\xf5\x03\x20The\x20maximum\x20number\x20of\x20delivery\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\x20number\x20of\n\ + \x20NACKs\x20and\x20number\x20of\x20times\x20the\x20acknowledgement\x20d\ + eadline\x20has\x20been\x20exceeded\n\x20for\x20the\x20message).\n\n\x20A\ + \x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDeadline\x20with\x20a\ + \x200\x20deadline.\x20Note\x20that\n\x20client\x20libraries\x20may\x20au\ + tomatically\x20extend\x20ack_deadlines.\n\n\x20This\x20field\x20will\x20\ + be\x20honored\x20on\x20a\x20best\x20effort\x20basis.\n\n\x20If\x20this\ + \x20parameter\x20is\x200,\x20a\x20default\x20value\x20of\x205\x20is\x20u\ + sed.\n\n\x0f\n\x05\x04\x13\x02\x01\x04\x12\x06\x9c\x06\x02\x8d\x06\x1f\n\ + \r\n\x05\x04\x13\x02\x01\x05\x12\x04\x9c\x06\x02\x07\n\r\n\x05\x04\x13\ + \x02\x01\x01\x12\x04\x9c\x06\x08\x1d\n\r\n\x05\x04\x13\x02\x01\x03\x12\ + \x04\x9c\x06\x20!\nt\n\x02\x04\x14\x12\x06\xa1\x06\0\xa9\x06\x01\x1af\ + \x20A\x20policy\x20that\x20specifies\x20the\x20conditions\x20for\x20reso\ + urce\x20expiration\x20(i.e.,\n\x20automatic\x20resource\x20deletion).\n\ + \n\x0b\n\x03\x04\x14\x01\x12\x04\xa1\x06\x08\x18\n\x89\x03\n\x04\x04\x14\ + \x02\0\x12\x04\xa8\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\x0f\n\x05\x04\x14\x02\0\x04\x12\ + \x06\xa8\x06\x02\xa1\x06\x1a\n\r\n\x05\x04\x14\x02\0\x06\x12\x04\xa8\x06\ + \x02\x1a\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xa8\x06\x1b\x1e\n\r\n\x05\ + \x04\x14\x02\0\x03\x12\x04\xa8\x06!\"\n;\n\x02\x04\x15\x12\x06\xac\x06\0\ + \xe6\x06\x01\x1a-\x20Configuration\x20for\x20a\x20push\x20delivery\x20en\ + dpoint.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xac\x06\x08\x12\n\x9a\x01\n\ + \x04\x04\x15\x03\0\x12\x06\xb0\x06\x02\xbf\x06\x03\x1a\x89\x01\x20Contai\ + ns\x20information\x20needed\x20for\x20generating\x20an\n\x20[OpenID\x20C\ + onnect\n\x20token](https://developers.google.com/identity/protocols/Open\ + IDConnect).\n\n\r\n\x05\x04\x15\x03\0\x01\x12\x04\xb0\x06\n\x13\n\xab\ + \x02\n\x06\x04\x15\x03\0\x02\0\x12\x04\xb6\x06\x04%\x1a\x9a\x02\x20[Serv\ + ice\x20account\n\x20email](https://cloud.google.com/iam/docs/service-acc\ + ounts)\n\x20to\x20be\x20used\x20for\x20generating\x20the\x20OIDC\x20toke\ + n.\x20The\x20caller\x20(for\n\x20CreateSubscription,\x20UpdateSubscripti\ + on,\x20and\x20ModifyPushConfig\x20RPCs)\x20must\n\x20have\x20the\x20iam.\ + serviceAccounts.actAs\x20permission\x20for\x20the\x20service\x20account.\ + \n\n\x11\n\x07\x04\x15\x03\0\x02\0\x04\x12\x06\xb6\x06\x04\xb0\x06\x15\n\ + \x0f\n\x07\x04\x15\x03\0\x02\0\x05\x12\x04\xb6\x06\x04\n\n\x0f\n\x07\x04\ + \x15\x03\0\x02\0\x01\x12\x04\xb6\x06\x0b\x20\n\x0f\n\x07\x04\x15\x03\0\ + \x02\0\x03\x12\x04\xb6\x06#$\n\xb0\x03\n\x06\x04\x15\x03\0\x02\x01\x12\ + \x04\xbe\x06\x04\x18\x1a\x9f\x03\x20Audience\x20to\x20be\x20used\x20when\ + \x20generating\x20OIDC\x20token.\x20The\x20audience\x20claim\n\x20identi\ + fies\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\x20abou\ + t\x20the\x20OIDC\x20JWT\n\x20token\x20audience\x20here:\x20https://tools\ + .ietf.org/html/rfc7519#section-4.1.3\n\x20Note:\x20if\x20not\x20specifie\ + d,\x20the\x20Push\x20endpoint\x20URL\x20will\x20be\x20used.\n\n\x11\n\ + \x07\x04\x15\x03\0\x02\x01\x04\x12\x06\xbe\x06\x04\xb6\x06%\n\x0f\n\x07\ + \x04\x15\x03\0\x02\x01\x05\x12\x04\xbe\x06\x04\n\n\x0f\n\x07\x04\x15\x03\ + \0\x02\x01\x01\x12\x04\xbe\x06\x0b\x13\n\x0f\n\x07\x04\x15\x03\0\x02\x01\ + \x03\x12\x04\xbe\x06\x16\x17\n\x97\x01\n\x04\x04\x15\x02\0\x12\x04\xc3\ + \x06\x02\x1b\x1a\x88\x01\x20A\x20URL\x20locating\x20the\x20endpoint\x20t\ + o\x20which\x20messages\x20should\x20be\x20pushed.\n\x20For\x20example,\ + \x20a\x20Webhook\x20endpoint\x20might\x20use\x20`https://example.com/pus\ + h`.\n\n\x0f\n\x05\x04\x15\x02\0\x04\x12\x06\xc3\x06\x02\xbf\x06\x03\n\r\ + \n\x05\x04\x15\x02\0\x05\x12\x04\xc3\x06\x02\x08\n\r\n\x05\x04\x15\x02\0\ + \x01\x12\x04\xc3\x06\t\x16\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xc3\x06\ + \x19\x1a\n\x82\x08\n\x04\x04\x15\x02\x01\x12\x04\xda\x06\x02%\x1a\xf3\ + \x07\x20Endpoint\x20configuration\x20attributes\x20that\x20can\x20be\x20\ + used\x20to\x20control\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\x20cha\ + nge\x20the\x20format\x20of\x20the\x20pushed\x20message.\x20This\x20attri\ + bute\n\x20indicates\x20the\x20version\x20of\x20the\x20data\x20expected\ + \x20by\x20the\x20endpoint.\x20This\n\x20controls\x20the\x20shape\x20of\ + \x20the\x20pushed\x20message\x20(i.e.,\x20its\x20fields\x20and\x20metada\ + ta).\n\n\x20If\x20not\x20present\x20during\x20the\x20`CreateSubscription\ + `\x20call,\x20it\x20will\x20default\x20to\n\x20the\x20version\x20of\x20t\ + he\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\x20wil\ + l\x20always\x20return\x20a\x20valid\x20version,\x20even\x20if\x20the\x20\ + subscription\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\x20f\ + ormat\x20defined\x20in\x20the\x20v1beta1\x20Pub/Sub\x20API.\n\x20*\x20`v\ + 1`\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}\x20
\n\ + \n\x0f\n\x05\x04\x15\x02\x01\x04\x12\x06\xda\x06\x02\xc3\x06\x1b\n\r\n\ + \x05\x04\x15\x02\x01\x06\x12\x04\xda\x06\x02\x15\n\r\n\x05\x04\x15\x02\ + \x01\x01\x12\x04\xda\x06\x16\x20\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\ + \xda\x06#$\n\xca\x02\n\x04\x04\x15\x08\0\x12\x06\xe1\x06\x02\xe5\x06\x03\ + \x1a\xb9\x02\x20An\x20authentication\x20method\x20used\x20by\x20push\x20\ + endpoints\x20to\x20verify\x20the\x20source\x20of\n\x20push\x20requests.\ + \x20This\x20can\x20be\x20used\x20with\x20push\x20endpoints\x20that\x20ar\ + e\x20private\x20by\n\x20default\x20to\x20allow\x20requests\x20only\x20fr\ + om\x20the\x20Cloud\x20Pub/Sub\x20system,\x20for\x20example.\n\x20This\ + \x20field\x20is\x20optional\x20and\x20should\x20be\x20set\x20only\x20by\ + \x20users\x20interested\x20in\n\x20authenticated\x20push.\n\n\r\n\x05\ + \x04\x15\x08\0\x01\x12\x04\xe1\x06\x08\x1d\n\x9d\x01\n\x04\x04\x15\x02\ + \x02\x12\x04\xe4\x06\x04\x1d\x1a\x8e\x01\x20If\x20specified,\x20Pub/Sub\ + \x20will\x20generate\x20and\x20attach\x20an\x20OIDC\x20JWT\x20token\x20a\ + s\x20an\n\x20`Authorization`\x20header\x20in\x20the\x20HTTP\x20request\ + \x20for\x20every\x20pushed\x20message.\n\n\r\n\x05\x04\x15\x02\x02\x06\ + \x12\x04\xe4\x06\x04\r\n\r\n\x05\x04\x15\x02\x02\x01\x12\x04\xe4\x06\x0e\ + \x18\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\xe4\x06\x1b\x1c\nB\n\x02\x04\ + \x16\x12\x06\xe9\x06\0\x81\x07\x01\x1a4\x20A\x20message\x20and\x20its\ + \x20corresponding\x20acknowledgment\x20ID.\n\n\x0b\n\x03\x04\x16\x01\x12\ + \x04\xe9\x06\x08\x17\nH\n\x04\x04\x16\x02\0\x12\x04\xeb\x06\x02\x14\x1a:\ + \x20This\x20ID\x20can\x20be\x20used\x20to\x20acknowledge\x20the\x20recei\ + ved\x20message.\n\n\x0f\n\x05\x04\x16\x02\0\x04\x12\x06\xeb\x06\x02\xe9\ + \x06\x19\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\xeb\x06\x02\x08\n\r\n\x05\ + \x04\x16\x02\0\x01\x12\x04\xeb\x06\t\x0f\n\r\n\x05\x04\x16\x02\0\x03\x12\ + \x04\xeb\x06\x12\x13\n\x1c\n\x04\x04\x16\x02\x01\x12\x04\xee\x06\x02\x1c\ + \x1a\x0e\x20The\x20message.\n\n\x0f\n\x05\x04\x16\x02\x01\x04\x12\x06\ + \xee\x06\x02\xeb\x06\x14\n\r\n\x05\x04\x16\x02\x01\x06\x12\x04\xee\x06\ + \x02\x0f\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\xee\x06\x10\x17\n\r\n\x05\ + \x04\x16\x02\x01\x03\x12\x04\xee\x06\x1a\x1b\n\xe5\x05\n\x04\x04\x16\x02\ + \x02\x12\x04\x80\x07\x02\x1d\x1a\xd6\x05\x20The\x20approximate\x20number\ + \x20of\x20times\x20that\x20Cloud\x20Pub/Sub\x20has\x20attempted\x20to\ + \x20deliver\n\x20the\x20associated\x20message\x20to\x20a\x20subscriber.\ + \n\n\x20More\x20precisely,\x20this\x20is\x201\x20+\x20(number\x20of\x20N\ + ACKs)\x20+\n\x20(number\x20of\x20ack_deadline\x20exceeds)\x20for\x20this\ + \x20message.\n\n\x20A\x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDea\ + dline\x20with\x20a\x200\x20deadline.\x20An\x20ack_deadline\n\x20exceeds\ + \x20event\x20is\x20whenever\x20a\x20message\x20is\x20not\x20acknowledged\ + \x20within\n\x20ack_deadline.\x20Note\x20that\x20ack_deadline\x20is\x20i\ + nitially\n\x20Subscription.ackDeadlineSeconds,\x20but\x20may\x20get\x20e\ + xtended\x20automatically\x20by\n\x20the\x20client\x20library.\n\n\x20Upo\ + n\x20the\x20first\x20delivery\x20of\x20a\x20given\x20message,\x20`delive\ + ry_attempt`\x20will\x20have\x20a\n\x20value\x20of\x201.\x20The\x20value\ + \x20is\x20calculated\x20at\x20best\x20effort\x20and\x20is\x20approximate\ + .\n\n\x20If\x20a\x20DeadLetterPolicy\x20is\x20not\x20set\x20on\x20the\ + \x20subscription,\x20this\x20will\x20be\x200.\n\n\x0f\n\x05\x04\x16\x02\ + \x02\x04\x12\x06\x80\x07\x02\xee\x06\x1c\n\r\n\x05\x04\x16\x02\x02\x05\ + \x12\x04\x80\x07\x02\x07\n\r\n\x05\x04\x16\x02\x02\x01\x12\x04\x80\x07\ + \x08\x18\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\x80\x07\x1b\x1c\n7\n\x02\ + \x04\x17\x12\x06\x84\x07\0\x8d\x07\x01\x1a)\x20Request\x20for\x20the\x20\ + GetSubscription\x20method.\n\n\x0b\n\x03\x04\x17\x01\x12\x04\x84\x07\x08\ + \x1e\nu\n\x04\x04\x17\x02\0\x12\x06\x87\x07\x02\x8c\x07\x04\x1ae\x20Requ\ + ired.\x20The\x20name\x20of\x20the\x20subscription\x20to\x20get.\n\x20For\ + mat\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\x0f\n\x05\x04\ + \x17\x02\0\x04\x12\x06\x87\x07\x02\x84\x07\x20\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\x15\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\x87\x07\x18\x19\n\x0f\n\x05\ + \x04\x17\x02\0\x08\x12\x06\x87\x07\x1a\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:\n\x02\x04\x18\x12\x06\x90\ + \x07\0\x98\x07\x01\x1a,\x20Request\x20for\x20the\x20UpdateSubscription\ + \x20method.\n\n\x0b\n\x03\x04\x18\x01\x12\x04\x90\x07\x08!\n:\n\x04\x04\ + \x18\x02\0\x12\x04\x92\x07\x02I\x1a,\x20Required.\x20The\x20updated\x20s\ + ubscription\x20object.\n\n\x0f\n\x05\x04\x18\x02\0\x04\x12\x06\x92\x07\ + \x02\x90\x07#\n\r\n\x05\x04\x18\x02\0\x06\x12\x04\x92\x07\x02\x0e\n\r\n\ + \x05\x04\x18\x02\0\x01\x12\x04\x92\x07\x0f\x1b\n\r\n\x05\x04\x18\x02\0\ + \x03\x12\x04\x92\x07\x1e\x1f\n\r\n\x05\x04\x18\x02\0\x08\x12\x04\x92\x07\ + \x20H\n\x10\n\x08\x04\x18\x02\0\x08\x9c\x08\0\x12\x04\x92\x07!G\n|\n\x04\ + \x04\x18\x02\x01\x12\x06\x96\x07\x02\x97\x07/\x1al\x20Required.\x20Indic\ + ates\x20which\x20fields\x20in\x20the\x20provided\x20subscription\x20to\ + \x20update.\n\x20Must\x20be\x20specified\x20and\x20non-empty.\n\n\x0f\n\ + \x05\x04\x18\x02\x01\x04\x12\x06\x96\x07\x02\x92\x07I\n\r\n\x05\x04\x18\ + \x02\x01\x06\x12\x04\x96\x07\x02\x1b\n\r\n\x05\x04\x18\x02\x01\x01\x12\ + \x04\x96\x07\x1c'\n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\x96\x07*+\n\r\n\ + \x05\x04\x18\x02\x01\x08\x12\x04\x97\x07\x06.\n\x10\n\x08\x04\x18\x02\ + \x01\x08\x9c\x08\0\x12\x04\x97\x07\x07-\n;\n\x02\x04\x19\x12\x06\x9b\x07\ + \0\xac\x07\x01\x1a-\x20Request\x20for\x20the\x20`ListSubscriptions`\x20m\ + ethod.\n\n\x0b\n\x03\x04\x19\x01\x12\x04\x9b\x07\x08\x20\nw\n\x04\x04\ + \x19\x02\0\x12\x06\x9e\x07\x02\xa3\x07\x04\x1ag\x20Required.\x20The\x20n\ + ame\x20of\x20the\x20project\x20in\x20which\x20to\x20list\x20subscription\ + s.\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04\x19\ + \x02\0\x04\x12\x06\x9e\x07\x02\x9b\x07\"\n\r\n\x05\x04\x19\x02\0\x05\x12\ + \x04\x9e\x07\x02\x08\n\r\n\x05\x04\x19\x02\0\x01\x12\x04\x9e\x07\t\x10\n\ + \r\n\x05\x04\x19\x02\0\x03\x12\x04\x9e\x07\x13\x14\n\x0f\n\x05\x04\x19\ + \x02\0\x08\x12\x06\x9e\x07\x15\xa3\x07\x03\n\x10\n\x08\x04\x19\x02\0\x08\ + \x9c\x08\0\x12\x04\x9f\x07\x04*\n\x11\n\x07\x04\x19\x02\0\x08\x9f\x08\ + \x12\x06\xa0\x07\x04\xa2\x07\x05\n:\n\x04\x04\x19\x02\x01\x12\x04\xa6\ + \x07\x02\x16\x1a,\x20Maximum\x20number\x20of\x20subscriptions\x20to\x20r\ + eturn.\n\n\x0f\n\x05\x04\x19\x02\x01\x04\x12\x06\xa6\x07\x02\xa3\x07\x04\ + \n\r\n\x05\x04\x19\x02\x01\x05\x12\x04\xa6\x07\x02\x07\n\r\n\x05\x04\x19\ + \x02\x01\x01\x12\x04\xa6\x07\x08\x11\n\r\n\x05\x04\x19\x02\x01\x03\x12\ + \x04\xa6\x07\x14\x15\n\xd2\x01\n\x04\x04\x19\x02\x02\x12\x04\xab\x07\x02\ + \x18\x1a\xc3\x01\x20The\x20value\x20returned\x20by\x20the\x20last\x20`Li\ + stSubscriptionsResponse`;\x20indicates\x20that\n\x20this\x20is\x20a\x20c\ + ontinuation\x20of\x20a\x20prior\x20`ListSubscriptions`\x20call,\x20and\ + \x20that\x20the\n\x20system\x20should\x20return\x20the\x20next\x20page\ + \x20of\x20data.\n\n\x0f\n\x05\x04\x19\x02\x02\x04\x12\x06\xab\x07\x02\ + \xa6\x07\x16\n\r\n\x05\x04\x19\x02\x02\x05\x12\x04\xab\x07\x02\x08\n\r\n\ + \x05\x04\x19\x02\x02\x01\x12\x04\xab\x07\t\x13\n\r\n\x05\x04\x19\x02\x02\ + \x03\x12\x04\xab\x07\x16\x17\n<\n\x02\x04\x1a\x12\x06\xaf\x07\0\xb7\x07\ + \x01\x1a.\x20Response\x20for\x20the\x20`ListSubscriptions`\x20method.\n\ + \n\x0b\n\x03\x04\x1a\x01\x12\x04\xaf\x07\x08!\n9\n\x04\x04\x1a\x02\0\x12\ + \x04\xb1\x07\x02*\x1a+\x20The\x20subscriptions\x20that\x20match\x20the\ + \x20request.\n\n\r\n\x05\x04\x1a\x02\0\x04\x12\x04\xb1\x07\x02\n\n\r\n\ + \x05\x04\x1a\x02\0\x06\x12\x04\xb1\x07\x0b\x17\n\r\n\x05\x04\x1a\x02\0\ + \x01\x12\x04\xb1\x07\x18%\n\r\n\x05\x04\x1a\x02\0\x03\x12\x04\xb1\x07()\ + \n\xc2\x01\n\x04\x04\x1a\x02\x01\x12\x04\xb6\x07\x02\x1d\x1a\xb3\x01\x20\ + If\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\x20more\ + \x20subscriptions\x20that\x20match\n\x20the\x20request;\x20this\x20value\ + \x20should\x20be\x20passed\x20in\x20a\x20new\n\x20`ListSubscriptionsRequ\ + est`\x20to\x20get\x20more\x20subscriptions.\n\n\x0f\n\x05\x04\x1a\x02\ + \x01\x04\x12\x06\xb6\x07\x02\xb1\x07*\n\r\n\x05\x04\x1a\x02\x01\x05\x12\ + \x04\xb6\x07\x02\x08\n\r\n\x05\x04\x1a\x02\x01\x01\x12\x04\xb6\x07\t\x18\ + \n\r\n\x05\x04\x1a\x02\x01\x03\x12\x04\xb6\x07\x1b\x1c\n:\n\x02\x04\x1b\ + \x12\x06\xba\x07\0\xc3\x07\x01\x1a,\x20Request\x20for\x20the\x20DeleteSu\ + bscription\x20method.\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xba\x07\x08!\nl\ + \n\x04\x04\x1b\x02\0\x12\x06\xbd\x07\x02\xc2\x07\x04\x1a\\\x20Required.\ + \x20The\x20subscription\x20to\x20delete.\n\x20Format\x20is\x20`projects/\ + {project}/subscriptions/{sub}`.\n\n\x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\ + \xbd\x07\x02\xba\x07#\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\xbd\x07\x02\ + \x08\n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\xbd\x07\t\x15\n\r\n\x05\x04\x1b\ + \x02\0\x03\x12\x04\xbd\x07\x18\x19\n\x0f\n\x05\x04\x1b\x02\0\x08\x12\x06\ + \xbd\x07\x1a\xc2\x07\x03\n\x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\ + \xbe\x07\x04*\n\x11\n\x07\x04\x1b\x02\0\x08\x9f\x08\x12\x06\xbf\x07\x04\ + \xc1\x07\x05\n8\n\x02\x04\x1c\x12\x06\xc6\x07\0\xd7\x07\x01\x1a*\x20Requ\ + est\x20for\x20the\x20ModifyPushConfig\x20method.\n\n\x0b\n\x03\x04\x1c\ + \x01\x12\x04\xc6\x07\x08\x1f\nn\n\x04\x04\x1c\x02\0\x12\x06\xc9\x07\x02\ + \xce\x07\x04\x1a^\x20Required.\x20The\x20name\x20of\x20the\x20subscripti\ + on.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\ + \x0f\n\x05\x04\x1c\x02\0\x04\x12\x06\xc9\x07\x02\xc6\x07!\n\r\n\x05\x04\ + \x1c\x02\0\x05\x12\x04\xc9\x07\x02\x08\n\r\n\x05\x04\x1c\x02\0\x01\x12\ + \x04\xc9\x07\t\x15\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xc9\x07\x18\x19\n\ + \x0f\n\x05\x04\x1c\x02\0\x08\x12\x06\xc9\x07\x1a\xce\x07\x03\n\x10\n\x08\ + \x04\x1c\x02\0\x08\x9c\x08\0\x12\x04\xca\x07\x04*\n\x11\n\x07\x04\x1c\ + \x02\0\x08\x9f\x08\x12\x06\xcb\x07\x04\xcd\x07\x05\n\xc2\x02\n\x04\x04\ + \x1c\x02\x01\x12\x04\xd6\x07\x02F\x1a\xb3\x02\x20Required.\x20The\x20pus\ + h\x20configuration\x20for\x20future\x20deliveries.\n\n\x20An\x20empty\ + \x20`pushConfig`\x20indicates\x20that\x20the\x20Pub/Sub\x20system\x20sho\ + uld\n\x20stop\x20pushing\x20messages\x20from\x20the\x20given\x20subscrip\ + tion\x20and\x20allow\n\x20messages\x20to\x20be\x20pulled\x20and\x20ackno\ + wledged\x20-\x20effectively\x20pausing\n\x20the\x20subscription\x20if\ + \x20`Pull`\x20or\x20`StreamingPull`\x20is\x20not\x20called.\n\n\x0f\n\ + \x05\x04\x1c\x02\x01\x04\x12\x06\xd6\x07\x02\xce\x07\x04\n\r\n\x05\x04\ + \x1c\x02\x01\x06\x12\x04\xd6\x07\x02\x0c\n\r\n\x05\x04\x1c\x02\x01\x01\ + \x12\x04\xd6\x07\r\x18\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xd6\x07\x1b\ + \x1c\n\r\n\x05\x04\x1c\x02\x01\x08\x12\x04\xd6\x07\x1dE\n\x10\n\x08\x04\ + \x1c\x02\x01\x08\x9c\x08\0\x12\x04\xd6\x07\x1eD\n.\n\x02\x04\x1d\x12\x06\ + \xda\x07\0\xf2\x07\x01\x1a\x20\x20Request\x20for\x20the\x20`Pull`\x20met\ + hod.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\xda\x07\x08\x13\n\x87\x01\n\x04\ + \x04\x1d\x02\0\x12\x06\xdd\x07\x02\xe2\x07\x04\x1aw\x20Required.\x20The\ + \x20subscription\x20from\x20which\x20messages\x20should\x20be\x20pulled.\ + \n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\x0f\ + \n\x05\x04\x1d\x02\0\x04\x12\x06\xdd\x07\x02\xda\x07\x15\n\r\n\x05\x04\ + \x1d\x02\0\x05\x12\x04\xdd\x07\x02\x08\n\r\n\x05\x04\x1d\x02\0\x01\x12\ + \x04\xdd\x07\t\x15\n\r\n\x05\x04\x1d\x02\0\x03\x12\x04\xdd\x07\x18\x19\n\ + \x0f\n\x05\x04\x1d\x02\0\x08\x12\x06\xdd\x07\x1a\xe2\x07\x03\n\x10\n\x08\ + \x04\x1d\x02\0\x08\x9c\x08\0\x12\x04\xde\x07\x04*\n\x11\n\x07\x04\x1d\ + \x02\0\x08\x9f\x08\x12\x06\xdf\x07\x04\xe1\x07\x05\n\xdf\x03\n\x04\x04\ + \x1d\x02\x01\x12\x06\xeb\x07\x02\xec\x07B\x1a\xce\x03\x20Optional.\x20If\ + \x20this\x20field\x20set\x20to\x20true,\x20the\x20system\x20will\x20resp\ + ond\x20immediately\n\x20even\x20if\x20it\x20there\x20are\x20no\x20messag\ + es\x20available\x20to\x20return\x20in\x20the\x20`Pull`\n\x20response.\ + \x20Otherwise,\x20the\x20system\x20may\x20wait\x20(for\x20a\x20bounded\ + \x20amount\x20of\x20time)\n\x20until\x20at\x20least\x20one\x20message\ + \x20is\x20available,\x20rather\x20than\x20returning\x20no\x20messages.\n\ + \x20Warning:\x20setting\x20this\x20field\x20to\x20`true`\x20is\x20discou\ + raged\x20because\x20it\x20adversely\n\x20impacts\x20the\x20performance\ + \x20of\x20`Pull`\x20operations.\x20We\x20recommend\x20that\x20users\x20d\ + o\n\x20not\x20set\x20this\x20field.\n\n\x0f\n\x05\x04\x1d\x02\x01\x04\ + \x12\x06\xeb\x07\x02\xe2\x07\x04\n\r\n\x05\x04\x1d\x02\x01\x05\x12\x04\ + \xeb\x07\x02\x06\n\r\n\x05\x04\x1d\x02\x01\x01\x12\x04\xeb\x07\x07\x19\n\ + \r\n\x05\x04\x1d\x02\x01\x03\x12\x04\xeb\x07\x1c\x1d\n\r\n\x05\x04\x1d\ + \x02\x01\x08\x12\x04\xec\x07\x06A\n\x0e\n\x06\x04\x1d\x02\x01\x08\x03\ + \x12\x04\xec\x07\x07\x18\n\x10\n\x08\x04\x1d\x02\x01\x08\x9c\x08\0\x12\ + \x04\xec\x07\x1a@\n\xb2\x01\n\x04\x04\x1d\x02\x02\x12\x04\xf1\x07\x02B\ + \x1a\xa3\x01\x20Required.\x20The\x20maximum\x20number\x20of\x20messages\ + \x20to\x20return\x20for\x20this\x20request.\x20Must\n\x20be\x20a\x20posi\ + tive\x20integer.\x20The\x20Pub/Sub\x20system\x20may\x20return\x20fewer\ + \x20than\x20the\x20number\n\x20specified.\n\n\x0f\n\x05\x04\x1d\x02\x02\ + \x04\x12\x06\xf1\x07\x02\xec\x07B\n\r\n\x05\x04\x1d\x02\x02\x05\x12\x04\ + \xf1\x07\x02\x07\n\r\n\x05\x04\x1d\x02\x02\x01\x12\x04\xf1\x07\x08\x14\n\ + \r\n\x05\x04\x1d\x02\x02\x03\x12\x04\xf1\x07\x17\x18\n\r\n\x05\x04\x1d\ + \x02\x02\x08\x12\x04\xf1\x07\x19A\n\x10\n\x08\x04\x1d\x02\x02\x08\x9c\ + \x08\0\x12\x04\xf1\x07\x1a@\n/\n\x02\x04\x1e\x12\x06\xf5\x07\0\xfb\x07\ + \x01\x1a!\x20Response\x20for\x20the\x20`Pull`\x20method.\n\n\x0b\n\x03\ + \x04\x1e\x01\x12\x04\xf5\x07\x08\x14\n\xaa\x02\n\x04\x04\x1e\x02\0\x12\ + \x04\xfa\x07\x021\x1a\x9b\x02\x20Received\x20Pub/Sub\x20messages.\x20The\ + \x20list\x20will\x20be\x20empty\x20if\x20there\x20are\x20no\x20more\n\ + \x20messages\x20available\x20in\x20the\x20backlog.\x20For\x20JSON,\x20th\ + e\x20response\x20can\x20be\x20entirely\n\x20empty.\x20The\x20Pub/Sub\x20\ + system\x20may\x20return\x20fewer\x20than\x20the\x20`maxMessages`\x20requ\ + ested\n\x20even\x20if\x20there\x20are\x20more\x20messages\x20available\ + \x20in\x20the\x20backlog.\n\n\r\n\x05\x04\x1e\x02\0\x04\x12\x04\xfa\x07\ + \x02\n\n\r\n\x05\x04\x1e\x02\0\x06\x12\x04\xfa\x07\x0b\x1a\n\r\n\x05\x04\ + \x1e\x02\0\x01\x12\x04\xfa\x07\x1b,\n\r\n\x05\x04\x1e\x02\0\x03\x12\x04\ + \xfa\x07/0\n9\n\x02\x04\x1f\x12\x06\xfe\x07\0\x94\x08\x01\x1a+\x20Reques\ + t\x20for\x20the\x20ModifyAckDeadline\x20method.\n\n\x0b\n\x03\x04\x1f\ + \x01\x12\x04\xfe\x07\x08\x20\nn\n\x04\x04\x1f\x02\0\x12\x06\x81\x08\x02\ + \x86\x08\x04\x1a^\x20Required.\x20The\x20name\x20of\x20the\x20subscripti\ + on.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\ + \x0f\n\x05\x04\x1f\x02\0\x04\x12\x06\x81\x08\x02\xfe\x07\"\n\r\n\x05\x04\ + \x1f\x02\0\x05\x12\x04\x81\x08\x02\x08\n\r\n\x05\x04\x1f\x02\0\x01\x12\ + \x04\x81\x08\t\x15\n\r\n\x05\x04\x1f\x02\0\x03\x12\x04\x81\x08\x18\x19\n\ + \x0f\n\x05\x04\x1f\x02\0\x08\x12\x06\x81\x08\x1a\x86\x08\x03\n\x10\n\x08\ + \x04\x1f\x02\0\x08\x9c\x08\0\x12\x04\x82\x08\x04*\n\x11\n\x07\x04\x1f\ + \x02\0\x08\x9f\x08\x12\x06\x83\x08\x04\x85\x08\x05\n5\n\x04\x04\x1f\x02\ + \x01\x12\x04\x89\x08\x02G\x1a'\x20Required.\x20List\x20of\x20acknowledgm\ + ent\x20IDs.\n\n\r\n\x05\x04\x1f\x02\x01\x04\x12\x04\x89\x08\x02\n\n\r\n\ + \x05\x04\x1f\x02\x01\x05\x12\x04\x89\x08\x0b\x11\n\r\n\x05\x04\x1f\x02\ + \x01\x01\x12\x04\x89\x08\x12\x19\n\r\n\x05\x04\x1f\x02\x01\x03\x12\x04\ + \x89\x08\x1c\x1d\n\r\n\x05\x04\x1f\x02\x01\x08\x12\x04\x89\x08\x1eF\n\ + \x10\n\x08\x04\x1f\x02\x01\x08\x9c\x08\0\x12\x04\x89\x08\x1fE\n\xb4\x04\ + \n\x04\x04\x1f\x02\x02\x12\x04\x93\x08\x02J\x1a\xa5\x04\x20Required.\x20\ + The\x20new\x20ack\x20deadline\x20with\x20respect\x20to\x20the\x20time\ + \x20this\x20request\x20was\n\x20sent\x20to\x20the\x20Pub/Sub\x20system.\ + \x20For\x20example,\x20if\x20the\x20value\x20is\x2010,\x20the\x20new\x20\ + ack\n\x20deadline\x20will\x20expire\x2010\x20seconds\x20after\x20the\x20\ + `ModifyAckDeadline`\x20call\x20was\n\x20made.\x20Specifying\x20zero\x20m\ + ight\x20immediately\x20make\x20the\x20message\x20available\x20for\n\x20d\ + elivery\x20to\x20another\x20subscriber\x20client.\x20This\x20typically\ + \x20results\x20in\x20an\n\x20increase\x20in\x20the\x20rate\x20of\x20mess\ + age\x20redeliveries\x20(that\x20is,\x20duplicates).\n\x20The\x20minimum\ + \x20deadline\x20you\x20can\x20specify\x20is\x200\x20seconds.\n\x20The\ + \x20maximum\x20deadline\x20you\x20can\x20specify\x20is\x20600\x20seconds\ + \x20(10\x20minutes).\n\n\x0f\n\x05\x04\x1f\x02\x02\x04\x12\x06\x93\x08\ + \x02\x89\x08G\n\r\n\x05\x04\x1f\x02\x02\x05\x12\x04\x93\x08\x02\x07\n\r\ + \n\x05\x04\x1f\x02\x02\x01\x12\x04\x93\x08\x08\x1c\n\r\n\x05\x04\x1f\x02\ + \x02\x03\x12\x04\x93\x08\x1f\x20\n\r\n\x05\x04\x1f\x02\x02\x08\x12\x04\ + \x93\x08!I\n\x10\n\x08\x04\x1f\x02\x02\x08\x9c\x08\0\x12\x04\x93\x08\"H\ + \n3\n\x02\x04\x20\x12\x06\x97\x08\0\xa5\x08\x01\x1a%\x20Request\x20for\ + \x20the\x20Acknowledge\x20method.\n\n\x0b\n\x03\x04\x20\x01\x12\x04\x97\ + \x08\x08\x1a\n\x86\x01\n\x04\x04\x20\x02\0\x12\x06\x9a\x08\x02\x9f\x08\ + \x04\x1av\x20Required.\x20The\x20subscription\x20whose\x20message\x20is\ + \x20being\x20acknowledged.\n\x20Format\x20is\x20`projects/{project}/subs\ + criptions/{sub}`.\n\n\x0f\n\x05\x04\x20\x02\0\x04\x12\x06\x9a\x08\x02\ + \x97\x08\x1c\n\r\n\x05\x04\x20\x02\0\x05\x12\x04\x9a\x08\x02\x08\n\r\n\ + \x05\x04\x20\x02\0\x01\x12\x04\x9a\x08\t\x15\n\r\n\x05\x04\x20\x02\0\x03\ + \x12\x04\x9a\x08\x18\x19\n\x0f\n\x05\x04\x20\x02\0\x08\x12\x06\x9a\x08\ + \x1a\x9f\x08\x03\n\x10\n\x08\x04\x20\x02\0\x08\x9c\x08\0\x12\x04\x9b\x08\ + \x04*\n\x11\n\x07\x04\x20\x02\0\x08\x9f\x08\x12\x06\x9c\x08\x04\x9e\x08\ + \x05\n\xa9\x01\n\x04\x04\x20\x02\x01\x12\x04\xa4\x08\x02G\x1a\x9a\x01\ + \x20Required.\x20The\x20acknowledgment\x20ID\x20for\x20the\x20messages\ + \x20being\x20acknowledged\x20that\n\x20was\x20returned\x20by\x20the\x20P\ + ub/Sub\x20system\x20in\x20the\x20`Pull`\x20response.\x20Must\x20not\x20b\ + e\n\x20empty.\n\n\r\n\x05\x04\x20\x02\x01\x04\x12\x04\xa4\x08\x02\n\n\r\ + \n\x05\x04\x20\x02\x01\x05\x12\x04\xa4\x08\x0b\x11\n\r\n\x05\x04\x20\x02\ + \x01\x01\x12\x04\xa4\x08\x12\x19\n\r\n\x05\x04\x20\x02\x01\x03\x12\x04\ + \xa4\x08\x1c\x1d\n\r\n\x05\x04\x20\x02\x01\x08\x12\x04\xa4\x08\x1eF\n\ + \x10\n\x08\x04\x20\x02\x01\x08\x9c\x08\0\x12\x04\xa4\x08\x1fE\n\xe1\x01\ + \n\x02\x04!\x12\x06\xaa\x08\0\xf5\x08\x01\x1a\xd2\x01\x20Request\x20for\ + \x20the\x20`StreamingPull`\x20streaming\x20RPC\x20method.\x20This\x20req\ + uest\x20is\x20used\x20to\n\x20establish\x20the\x20initial\x20stream\x20a\ + s\x20well\x20as\x20to\x20stream\x20acknowledgements\x20and\x20ack\n\x20d\ + eadline\x20modifications\x20from\x20the\x20client\x20to\x20the\x20server\ + .\n\n\x0b\n\x03\x04!\x01\x12\x04\xaa\x08\x08\x1c\n\x88\x02\n\x04\x04!\ + \x02\0\x12\x06\xaf\x08\x02\xb4\x08\x04\x1a\xf7\x01\x20Required.\x20The\ + \x20subscription\x20for\x20which\x20to\x20initialize\x20the\x20new\x20st\ + ream.\x20This\n\x20must\x20be\x20provided\x20in\x20the\x20first\x20reque\ + st\x20on\x20the\x20stream,\x20and\x20must\x20not\x20be\x20set\x20in\n\ + \x20subsequent\x20requests\x20from\x20client\x20to\x20server.\n\x20Forma\ + t\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\x0f\n\x05\x04!\ + \x02\0\x04\x12\x06\xaf\x08\x02\xaa\x08\x1e\n\r\n\x05\x04!\x02\0\x05\x12\ + \x04\xaf\x08\x02\x08\n\r\n\x05\x04!\x02\0\x01\x12\x04\xaf\x08\t\x15\n\r\ + \n\x05\x04!\x02\0\x03\x12\x04\xaf\x08\x18\x19\n\x0f\n\x05\x04!\x02\0\x08\ + \x12\x06\xaf\x08\x1a\xb4\x08\x03\n\x10\n\x08\x04!\x02\0\x08\x9c\x08\0\ + \x12\x04\xb0\x08\x04*\n\x11\n\x07\x04!\x02\0\x08\x9f\x08\x12\x06\xb1\x08\ + \x04\xb3\x08\x05\n\x85\x03\n\x04\x04!\x02\x01\x12\x04\xbb\x08\x02\x1e\ + \x1a\xf6\x02\x20List\x20of\x20acknowledgement\x20IDs\x20for\x20acknowled\ + ging\x20previously\x20received\x20messages\n\x20(received\x20on\x20this\ + \x20stream\x20or\x20a\x20different\x20stream).\x20If\x20an\x20ack\x20ID\ + \x20has\x20expired,\n\x20the\x20corresponding\x20message\x20may\x20be\ + \x20redelivered\x20later.\x20Acknowledging\x20a\x20message\n\x20more\x20\ + than\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\xbb\x08\x02\n\n\r\n\x05\x04!\x02\x01\x05\x12\ + \x04\xbb\x08\x0b\x11\n\r\n\x05\x04!\x02\x01\x01\x12\x04\xbb\x08\x12\x19\ + \n\r\n\x05\x04!\x02\x01\x03\x12\x04\xbb\x08\x1c\x1d\n\x89\x06\n\x04\x04!\ + \x02\x02\x12\x04\xc8\x08\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!\x02\x02\x04\x12\x04\xc8\x08\x02\n\n\r\n\x05\x04!\x02\x02\x05\x12\ + \x04\xc8\x08\x0b\x10\n\r\n\x05\x04!\x02\x02\x01\x12\x04\xc8\x08\x11(\n\r\ + \n\x05\x04!\x02\x02\x03\x12\x04\xc8\x08+,\n\xc8\x02\n\x04\x04!\x02\x03\ + \x12\x04\xcf\x08\x02.\x1a\xb9\x02\x20List\x20of\x20acknowledgement\x20ID\ + s\x20whose\x20deadline\x20will\x20be\x20modified\x20based\x20on\x20the\n\ + \x20corresponding\x20element\x20in\x20`modify_deadline_seconds`.\x20This\ + \x20field\x20can\x20be\x20used\n\x20to\x20indicate\x20that\x20more\x20ti\ + me\x20is\x20needed\x20to\x20process\x20a\x20message\x20by\x20the\n\x20su\ + bscriber,\x20or\x20to\x20make\x20the\x20message\x20available\x20for\x20r\ + edelivery\x20if\x20the\n\x20processing\x20was\x20interrupted.\n\n\r\n\ + \x05\x04!\x02\x03\x04\x12\x04\xcf\x08\x02\n\n\r\n\x05\x04!\x02\x03\x05\ + \x12\x04\xcf\x08\x0b\x11\n\r\n\x05\x04!\x02\x03\x01\x12\x04\xcf\x08\x12)\ + \n\r\n\x05\x04!\x02\x03\x03\x12\x04\xcf\x08,-\n\xc0\x02\n\x04\x04!\x02\ + \x04\x12\x06\xd5\x08\x02\xd6\x08/\x1a\xaf\x02\x20Required.\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\x20r\ + equests\x20from\x20client\x20to\x20server.\x20The\x20minimum\x20deadline\ + \x20you\x20can\x20specify\x20is\x2010\n\x20seconds.\x20The\x20maximum\ + \x20deadline\x20you\x20can\x20specify\x20is\x20600\x20seconds\x20(10\x20\ + minutes).\n\n\x0f\n\x05\x04!\x02\x04\x04\x12\x06\xd5\x08\x02\xcf\x08.\n\ + \r\n\x05\x04!\x02\x04\x05\x12\x04\xd5\x08\x02\x07\n\r\n\x05\x04!\x02\x04\ + \x01\x12\x04\xd5\x08\x08#\n\r\n\x05\x04!\x02\x04\x03\x12\x04\xd5\x08&'\n\ + \r\n\x05\x04!\x02\x04\x08\x12\x04\xd6\x08\x06.\n\x10\n\x08\x04!\x02\x04\ + \x08\x9c\x08\0\x12\x04\xd6\x08\x07-\n\x9e\x03\n\x04\x04!\x02\x05\x12\x04\ + \xde\x08\x02\x17\x1a\x8f\x03\x20A\x20unique\x20identifier\x20that\x20is\ + \x20used\x20to\x20distinguish\x20client\x20instances\x20from\x20each\n\ + \x20other.\x20Only\x20needs\x20to\x20be\x20provided\x20on\x20the\x20init\ + ial\x20request.\x20When\x20a\x20stream\n\x20disconnects\x20and\x20reconn\ + ects\x20for\x20the\x20same\x20stream,\x20the\x20client_id\x20should\x20b\ + e\x20set\n\x20to\x20the\x20same\x20value\x20so\x20that\x20state\x20assoc\ + iated\x20with\x20the\x20old\x20stream\x20can\x20be\n\x20transferred\x20t\ + o\x20the\x20new\x20stream.\x20The\x20same\x20client_id\x20should\x20not\ + \x20be\x20used\x20for\n\x20different\x20client\x20instances.\n\n\x0f\n\ + \x05\x04!\x02\x05\x04\x12\x06\xde\x08\x02\xd6\x08/\n\r\n\x05\x04!\x02\ + \x05\x05\x12\x04\xde\x08\x02\x08\n\r\n\x05\x04!\x02\x05\x01\x12\x04\xde\ + \x08\t\x12\n\r\n\x05\x04!\x02\x05\x03\x12\x04\xde\x08\x15\x16\n\xe0\x04\ + \n\x04\x04!\x02\x06\x12\x04\xe9\x08\x02%\x1a\xd1\x04\x20Flow\x20control\ + \x20settings\x20for\x20the\x20maximum\x20number\x20of\x20outstanding\x20\ + messages.\x20When\n\x20there\x20are\x20`max_outstanding_messages`\x20or\ + \x20more\x20currently\x20sent\x20to\x20the\n\x20streaming\x20pull\x20cli\ + ent\x20that\x20have\x20not\x20yet\x20been\x20acked\x20or\x20nacked,\x20t\ + he\x20server\n\x20stops\x20sending\x20more\x20messages.\x20The\x20sendin\ + g\x20of\x20messages\x20resumes\x20once\x20the\n\x20number\x20of\x20outst\ + anding\x20messages\x20is\x20less\x20than\x20this\x20value.\x20If\x20the\ + \x20value\x20is\n\x20<=\x200,\x20there\x20is\x20no\x20limit\x20to\x20the\ + \x20number\x20of\x20outstanding\x20messages.\x20This\n\x20property\x20ca\ + n\x20only\x20be\x20set\x20on\x20the\x20initial\x20StreamingPullRequest.\ + \x20If\x20it\x20is\x20set\n\x20on\x20a\x20subsequent\x20request,\x20the\ + \x20stream\x20will\x20be\x20aborted\x20with\x20status\n\x20`INVALID_ARGU\ + MENT`.\n\n\x0f\n\x05\x04!\x02\x06\x04\x12\x06\xe9\x08\x02\xde\x08\x17\n\ + \r\n\x05\x04!\x02\x06\x05\x12\x04\xe9\x08\x02\x07\n\r\n\x05\x04!\x02\x06\ + \x01\x12\x04\xe9\x08\x08\x20\n\r\n\x05\x04!\x02\x06\x03\x12\x04\xe9\x08#\ + $\n\xea\x04\n\x04\x04!\x02\x07\x12\x04\xf4\x08\x02\"\x1a\xdb\x04\x20Flow\ + \x20control\x20settings\x20for\x20the\x20maximum\x20number\x20of\x20outs\ + tanding\x20bytes.\x20When\n\x20there\x20are\x20`max_outstanding_bytes`\ + \x20or\x20more\x20worth\x20of\x20messages\x20currently\x20sent\n\x20to\ + \x20the\x20streaming\x20pull\x20client\x20that\x20have\x20not\x20yet\x20\ + been\x20acked\x20or\x20nacked,\x20the\n\x20server\x20will\x20stop\x20sen\ + ding\x20more\x20messages.\x20The\x20sending\x20of\x20messages\x20resumes\ + \n\x20once\x20the\x20number\x20of\x20outstanding\x20bytes\x20is\x20less\ + \x20than\x20this\x20value.\x20If\x20the\x20value\n\x20is\x20<=\x200,\x20\ + there\x20is\x20no\x20limit\x20to\x20the\x20number\x20of\x20outstanding\ + \x20bytes.\x20This\n\x20property\x20can\x20only\x20be\x20set\x20on\x20th\ + e\x20initial\x20StreamingPullRequest.\x20If\x20it\x20is\x20set\n\x20on\ + \x20a\x20subsequent\x20request,\x20the\x20stream\x20will\x20be\x20aborte\ + d\x20with\x20status\n\x20`INVALID_ARGUMENT`.\n\n\x0f\n\x05\x04!\x02\x07\ + \x04\x12\x06\xf4\x08\x02\xe9\x08%\n\r\n\x05\x04!\x02\x07\x05\x12\x04\xf4\ + \x08\x02\x07\n\r\n\x05\x04!\x02\x07\x01\x12\x04\xf4\x08\x08\x1d\n\r\n\ + \x05\x04!\x02\x07\x03\x12\x04\xf4\x08\x20!\n\x81\x01\n\x02\x04\"\x12\x06\ + \xf9\x08\0\xfc\x08\x01\x1as\x20Response\x20for\x20the\x20`StreamingPull`\ + \x20method.\x20This\x20response\x20is\x20used\x20to\x20stream\n\x20messa\ + ges\x20from\x20the\x20server\x20to\x20the\x20client.\n\n\x0b\n\x03\x04\"\ + \x01\x12\x04\xf9\x08\x08\x1d\nB\n\x04\x04\"\x02\0\x12\x04\xfb\x08\x021\ + \x1a4\x20Received\x20Pub/Sub\x20messages.\x20This\x20will\x20not\x20be\ + \x20empty.\n\n\r\n\x05\x04\"\x02\0\x04\x12\x04\xfb\x08\x02\n\n\r\n\x05\ + \x04\"\x02\0\x06\x12\x04\xfb\x08\x0b\x1a\n\r\n\x05\x04\"\x02\0\x01\x12\ + \x04\xfb\x08\x1b,\n\r\n\x05\x04\"\x02\0\x03\x12\x04\xfb\x08/0\n8\n\x02\ + \x04#\x12\x06\xff\x08\0\x9e\t\x01\x1a*\x20Request\x20for\x20the\x20`Crea\ + teSnapshot`\x20method.\n\n\x0b\n\x03\x04#\x01\x12\x04\xff\x08\x08\x1d\n\ + \xa5\x03\n\x04\x04#\x02\0\x12\x06\x86\t\x02\x89\t\x04\x1a\x94\x03\x20Req\ + uired.\x20User-provided\x20name\x20for\x20this\x20snapshot.\x20If\x20the\ + \x20name\x20is\x20not\x20provided\n\x20in\x20the\x20request,\x20the\x20s\ + erver\x20will\x20assign\x20a\x20random\x20name\x20for\x20this\x20snapsho\ + t\x20on\n\x20the\x20same\x20project\x20as\x20the\x20subscription.\x20Not\ + e\x20that\x20for\x20REST\x20API\x20requests,\x20you\n\x20must\x20specify\ + \x20a\x20name.\x20\x20See\x20the\x20\x20resource\n\x20name\x20rules.\x20Format\x20is\x20`projects/{project}/snapshots/{snap}`.\n\n\x0f\n\ + \x05\x04#\x02\0\x04\x12\x06\x86\t\x02\xff\x08\x1f\n\r\n\x05\x04#\x02\0\ + \x05\x12\x04\x86\t\x02\x08\n\r\n\x05\x04#\x02\0\x01\x12\x04\x86\t\t\r\n\ + \r\n\x05\x04#\x02\0\x03\x12\x04\x86\t\x10\x11\n\x0f\n\x05\x04#\x02\0\x08\ + \x12\x06\x86\t\x12\x89\t\x03\n\x10\n\x08\x04#\x02\0\x08\x9c\x08\0\x12\ + \x04\x87\t\x04*\n\x0f\n\x07\x04#\x02\0\x08\x9f\x08\x12\x04\x88\t\x04P\n\ + \xb9\x04\n\x04\x04#\x02\x01\x12\x06\x94\t\x02\x99\t\x04\x1a\xa8\x04\x20R\ + equired.\x20The\x20subscription\x20whose\x20backlog\x20the\x20snapshot\ + \x20retains.\n\x20Specifically,\x20the\x20created\x20snapshot\x20is\x20g\ + uaranteed\x20to\x20retain:\n\x20\x20(a)\x20The\x20existing\x20backlog\ + \x20on\x20the\x20subscription.\x20More\x20precisely,\x20this\x20is\n\x20\ + \x20\x20\x20\x20\x20defined\x20as\x20the\x20messages\x20in\x20the\x20sub\ + scription's\x20backlog\x20that\x20are\n\x20\x20\x20\x20\x20\x20unacknowl\ + edged\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\x20subscription's\ + \x20topic\x20following\x20the\n\x20\x20\x20\x20\x20\x20successful\x20com\ + pletion\x20of\x20the\x20CreateSnapshot\x20request.\n\x20Format\x20is\x20\ + `projects/{project}/subscriptions/{sub}`.\n\n\x0f\n\x05\x04#\x02\x01\x04\ + \x12\x06\x94\t\x02\x89\t\x04\n\r\n\x05\x04#\x02\x01\x05\x12\x04\x94\t\ + \x02\x08\n\r\n\x05\x04#\x02\x01\x01\x12\x04\x94\t\t\x15\n\r\n\x05\x04#\ + \x02\x01\x03\x12\x04\x94\t\x18\x19\n\x0f\n\x05\x04#\x02\x01\x08\x12\x06\ + \x94\t\x1a\x99\t\x03\n\x10\n\x08\x04#\x02\x01\x08\x9c\x08\0\x12\x04\x95\ + \t\x04*\n\x11\n\x07\x04#\x02\x01\x08\x9f\x08\x12\x06\x96\t\x04\x98\t\x05\ + \nm\n\x04\x04#\x02\x02\x12\x04\x9d\t\x02!\x1a_\x20See\x20\x20Creating\x20and\n\x20man\ + aging\x20labels.\n\n\x0f\n\x05\x04#\x02\x02\x04\x12\x06\x9d\t\x02\ + \x99\t\x04\n\r\n\x05\x04#\x02\x02\x06\x12\x04\x9d\t\x02\x15\n\r\n\x05\ + \x04#\x02\x02\x01\x12\x04\x9d\t\x16\x1c\n\r\n\x05\x04#\x02\x02\x03\x12\ + \x04\x9d\t\x1f\x20\n6\n\x02\x04$\x12\x06\xa1\t\0\xa9\t\x01\x1a(\x20Reque\ + st\x20for\x20the\x20UpdateSnapshot\x20method.\n\n\x0b\n\x03\x04$\x01\x12\ + \x04\xa1\t\x08\x1d\n6\n\x04\x04$\x02\0\x12\x04\xa3\t\x02A\x1a(\x20Requir\ + ed.\x20The\x20updated\x20snapshot\x20object.\n\n\x0f\n\x05\x04$\x02\0\ + \x04\x12\x06\xa3\t\x02\xa1\t\x1f\n\r\n\x05\x04$\x02\0\x06\x12\x04\xa3\t\ + \x02\n\n\r\n\x05\x04$\x02\0\x01\x12\x04\xa3\t\x0b\x13\n\r\n\x05\x04$\x02\ + \0\x03\x12\x04\xa3\t\x16\x17\n\r\n\x05\x04$\x02\0\x08\x12\x04\xa3\t\x18@\ + \n\x10\n\x08\x04$\x02\0\x08\x9c\x08\0\x12\x04\xa3\t\x19?\nx\n\x04\x04$\ + \x02\x01\x12\x06\xa7\t\x02\xa8\t/\x1ah\x20Required.\x20Indicates\x20whic\ + h\x20fields\x20in\x20the\x20provided\x20snapshot\x20to\x20update.\n\x20M\ + ust\x20be\x20specified\x20and\x20non-empty.\n\n\x0f\n\x05\x04$\x02\x01\ + \x04\x12\x06\xa7\t\x02\xa3\tA\n\r\n\x05\x04$\x02\x01\x06\x12\x04\xa7\t\ + \x02\x1b\n\r\n\x05\x04$\x02\x01\x01\x12\x04\xa7\t\x1c'\n\r\n\x05\x04$\ + \x02\x01\x03\x12\x04\xa7\t*+\n\r\n\x05\x04$\x02\x01\x08\x12\x04\xa8\t\ + \x06.\n\x10\n\x08\x04$\x02\x01\x08\x9c\x08\0\x12\x04\xa8\t\x07-\n\xbe\ + \x02\n\x02\x04%\x12\x06\xb0\t\0\xcd\t\x01\x1a\xaf\x02\x20A\x20snapshot\ + \x20resource.\x20Snapshots\x20are\x20used\x20in\n\x20[Seek](https://clou\ + d.google.com/pubsub/docs/replay-overview)\n\x20operations,\x20which\x20a\ + llow\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\ + \x20That\n\x20is,\x20you\x20can\x20set\x20the\x20acknowledgment\x20state\ + \x20of\x20messages\x20in\x20an\x20existing\n\x20subscription\x20to\x20th\ + e\x20state\x20captured\x20by\x20a\x20snapshot.\n\n\x0b\n\x03\x04%\x01\ + \x12\x04\xb0\t\x08\x10\n\r\n\x03\x04%\x07\x12\x06\xb1\t\x02\xb4\t\x04\n\ + \x0f\n\x05\x04%\x07\x9d\x08\x12\x06\xb1\t\x02\xb4\t\x04\n)\n\x04\x04%\ + \x02\0\x12\x04\xb7\t\x02\x12\x1a\x1b\x20The\x20name\x20of\x20the\x20snap\ + shot.\n\n\x0f\n\x05\x04%\x02\0\x04\x12\x06\xb7\t\x02\xb4\t\x04\n\r\n\x05\ + \x04%\x02\0\x05\x12\x04\xb7\t\x02\x08\n\r\n\x05\x04%\x02\0\x01\x12\x04\ + \xb7\t\t\r\n\r\n\x05\x04%\x02\0\x03\x12\x04\xb7\t\x10\x11\nW\n\x04\x04%\ + \x02\x01\x12\x06\xba\t\x02\xbc\t\x04\x1aG\x20The\x20name\x20of\x20the\ + \x20topic\x20from\x20which\x20this\x20snapshot\x20is\x20retaining\x20mes\ + sages.\n\n\x0f\n\x05\x04%\x02\x01\x04\x12\x06\xba\t\x02\xb7\t\x12\n\r\n\ + \x05\x04%\x02\x01\x05\x12\x04\xba\t\x02\x08\n\r\n\x05\x04%\x02\x01\x01\ + \x12\x04\xba\t\t\x0e\n\r\n\x05\x04%\x02\x01\x03\x12\x04\xba\t\x11\x12\n\ + \x0f\n\x05\x04%\x02\x01\x08\x12\x06\xba\t\x13\xbc\t\x03\n\x0f\n\x07\x04%\ + \x02\x01\x08\x9f\x08\x12\x04\xbb\t\x04M\n\xd4\x05\n\x04\x04%\x02\x02\x12\ + \x04\xc8\t\x02,\x1a\xc5\x05\x20The\x20snapshot\x20is\x20guaranteed\x20to\ + \x20exist\x20up\x20until\x20this\x20time.\n\x20A\x20newly-created\x20sna\ + pshot\x20expires\x20no\x20later\x20than\x207\x20days\x20from\x20the\x20t\ + ime\x20of\x20its\n\x20creation.\x20Its\x20exact\x20lifetime\x20is\x20det\ + ermined\x20at\x20creation\x20by\x20the\x20existing\n\x20backlog\x20in\ + \x20the\x20source\x20subscription.\x20Specifically,\x20the\x20lifetime\ + \x20of\x20the\n\x20snapshot\x20is\x20`7\x20days\x20-\x20(age\x20of\x20ol\ + dest\x20unacked\x20message\x20in\x20the\x20subscription)`.\n\x20For\x20e\ + xample,\x20consider\x20a\x20subscription\x20whose\x20oldest\x20unacked\ + \x20message\x20is\x203\x20days\n\x20old.\x20If\x20a\x20snapshot\x20is\ + \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\x0f\n\x05\x04%\x02\x02\x04\x12\ + \x06\xc8\t\x02\xbc\t\x04\n\r\n\x05\x04%\x02\x02\x06\x12\x04\xc8\t\x02\ + \x1b\n\r\n\x05\x04%\x02\x02\x01\x12\x04\xc8\t\x1c'\n\r\n\x05\x04%\x02\ + \x02\x03\x12\x04\xc8\t*+\nb\n\x04\x04%\x02\x03\x12\x04\xcc\t\x02!\x1aT\ + \x20See\x20[Creating\x20and\x20managing\x20labels]\n\x20(https://cloud.g\ + oogle.com/pubsub/docs/labels).\n\n\x0f\n\x05\x04%\x02\x03\x04\x12\x06\ + \xcc\t\x02\xc8\t,\n\r\n\x05\x04%\x02\x03\x06\x12\x04\xcc\t\x02\x15\n\r\n\ + \x05\x04%\x02\x03\x01\x12\x04\xcc\t\x16\x1c\n\r\n\x05\x04%\x02\x03\x03\ + \x12\x04\xcc\t\x1f\x20\n3\n\x02\x04&\x12\x06\xd0\t\0\xd7\t\x01\x1a%\x20R\ + equest\x20for\x20the\x20GetSnapshot\x20method.\n\n\x0b\n\x03\x04&\x01\ + \x12\x04\xd0\t\x08\x1a\nn\n\x04\x04&\x02\0\x12\x06\xd3\t\x02\xd6\t\x04\ + \x1a^\x20Required.\x20The\x20name\x20of\x20the\x20snapshot\x20to\x20get.\ + \n\x20Format\x20is\x20`projects/{project}/snapshots/{snap}`.\n\n\x0f\n\ + \x05\x04&\x02\0\x04\x12\x06\xd3\t\x02\xd0\t\x1c\n\r\n\x05\x04&\x02\0\x05\ + \x12\x04\xd3\t\x02\x08\n\r\n\x05\x04&\x02\0\x01\x12\x04\xd3\t\t\x11\n\r\ + \n\x05\x04&\x02\0\x03\x12\x04\xd3\t\x14\x15\n\x0f\n\x05\x04&\x02\0\x08\ + \x12\x06\xd3\t\x16\xd6\t\x03\n\x10\n\x08\x04&\x02\0\x08\x9c\x08\0\x12\ + \x04\xd4\t\x04*\n\x0f\n\x07\x04&\x02\0\x08\x9f\x08\x12\x04\xd5\t\x04P\n7\ + \n\x02\x04'\x12\x06\xda\t\0\xeb\t\x01\x1a)\x20Request\x20for\x20the\x20`\ + ListSnapshots`\x20method.\n\n\x0b\n\x03\x04'\x01\x12\x04\xda\t\x08\x1c\n\ + s\n\x04\x04'\x02\0\x12\x06\xdd\t\x02\xe2\t\x04\x1ac\x20Required.\x20The\ + \x20name\x20of\x20the\x20project\x20in\x20which\x20to\x20list\x20snapsho\ + ts.\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04'\x02\ + \0\x04\x12\x06\xdd\t\x02\xda\t\x1e\n\r\n\x05\x04'\x02\0\x05\x12\x04\xdd\ + \t\x02\x08\n\r\n\x05\x04'\x02\0\x01\x12\x04\xdd\t\t\x10\n\r\n\x05\x04'\ + \x02\0\x03\x12\x04\xdd\t\x13\x14\n\x0f\n\x05\x04'\x02\0\x08\x12\x06\xdd\ + \t\x15\xe2\t\x03\n\x10\n\x08\x04'\x02\0\x08\x9c\x08\0\x12\x04\xde\t\x04*\ + \n\x11\n\x07\x04'\x02\0\x08\x9f\x08\x12\x06\xdf\t\x04\xe1\t\x05\n6\n\x04\ + \x04'\x02\x01\x12\x04\xe5\t\x02\x16\x1a(\x20Maximum\x20number\x20of\x20s\ + napshots\x20to\x20return.\n\n\x0f\n\x05\x04'\x02\x01\x04\x12\x06\xe5\t\ + \x02\xe2\t\x04\n\r\n\x05\x04'\x02\x01\x05\x12\x04\xe5\t\x02\x07\n\r\n\ + \x05\x04'\x02\x01\x01\x12\x04\xe5\t\x08\x11\n\r\n\x05\x04'\x02\x01\x03\ + \x12\x04\xe5\t\x14\x15\n\xca\x01\n\x04\x04'\x02\x02\x12\x04\xea\t\x02\ + \x18\x1a\xbb\x01\x20The\x20value\x20returned\x20by\x20the\x20last\x20`Li\ + stSnapshotsResponse`;\x20indicates\x20that\x20this\n\x20is\x20a\x20conti\ + nuation\x20of\x20a\x20prior\x20`ListSnapshots`\x20call,\x20and\x20that\ + \x20the\x20system\n\x20should\x20return\x20the\x20next\x20page\x20of\x20\ + data.\n\n\x0f\n\x05\x04'\x02\x02\x04\x12\x06\xea\t\x02\xe5\t\x16\n\r\n\ + \x05\x04'\x02\x02\x05\x12\x04\xea\t\x02\x08\n\r\n\x05\x04'\x02\x02\x01\ + \x12\x04\xea\t\t\x13\n\r\n\x05\x04'\x02\x02\x03\x12\x04\xea\t\x16\x17\n8\ + \n\x02\x04(\x12\x06\xee\t\0\xf5\t\x01\x1a*\x20Response\x20for\x20the\x20\ + `ListSnapshots`\x20method.\n\n\x0b\n\x03\x04(\x01\x12\x04\xee\t\x08\x1d\ + \n(\n\x04\x04(\x02\0\x12\x04\xf0\t\x02\"\x1a\x1a\x20The\x20resulting\x20\ + snapshots.\n\n\r\n\x05\x04(\x02\0\x04\x12\x04\xf0\t\x02\n\n\r\n\x05\x04(\ + \x02\0\x06\x12\x04\xf0\t\x0b\x13\n\r\n\x05\x04(\x02\0\x01\x12\x04\xf0\t\ + \x14\x1d\n\r\n\x05\x04(\x02\0\x03\x12\x04\xf0\t\x20!\n\x9e\x01\n\x04\x04\ + (\x02\x01\x12\x04\xf4\t\x02\x1d\x1a\x8f\x01\x20If\x20not\x20empty,\x20in\ + dicates\x20that\x20there\x20may\x20be\x20more\x20snapshot\x20that\x20mat\ + ch\x20the\n\x20request;\x20this\x20value\x20should\x20be\x20passed\x20in\ + \x20a\x20new\x20`ListSnapshotsRequest`.\n\n\x0f\n\x05\x04(\x02\x01\x04\ + \x12\x06\xf4\t\x02\xf0\t\"\n\r\n\x05\x04(\x02\x01\x05\x12\x04\xf4\t\x02\ + \x08\n\r\n\x05\x04(\x02\x01\x01\x12\x04\xf4\t\t\x18\n\r\n\x05\x04(\x02\ + \x01\x03\x12\x04\xf4\t\x1b\x1c\n8\n\x02\x04)\x12\x06\xf8\t\0\xff\t\x01\ + \x1a*\x20Request\x20for\x20the\x20`DeleteSnapshot`\x20method.\n\n\x0b\n\ + \x03\x04)\x01\x12\x04\xf8\t\x08\x1d\nq\n\x04\x04)\x02\0\x12\x06\xfb\t\ + \x02\xfe\t\x04\x1aa\x20Required.\x20The\x20name\x20of\x20the\x20snapshot\ + \x20to\x20delete.\n\x20Format\x20is\x20`projects/{project}/snapshots/{sn\ + ap}`.\n\n\x0f\n\x05\x04)\x02\0\x04\x12\x06\xfb\t\x02\xf8\t\x1f\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\x11\n\r\n\x05\x04)\x02\0\x03\x12\x04\xfb\t\x14\x15\n\x0f\n\x05\ + \x04)\x02\0\x08\x12\x06\xfb\t\x16\xfe\t\x03\n\x10\n\x08\x04)\x02\0\x08\ + \x9c\x08\0\x12\x04\xfc\t\x04*\n\x0f\n\x07\x04)\x02\0\x08\x9f\x08\x12\x04\ + \xfd\t\x04P\n.\n\x02\x04*\x12\x06\x82\n\0\xa0\n\x01\x1a\x20\x20Request\ + \x20for\x20the\x20`Seek`\x20method.\n\n\x0b\n\x03\x04*\x01\x12\x04\x82\n\ + \x08\x13\n7\n\x04\x04*\x02\0\x12\x06\x84\n\x02\x89\n\x04\x1a'\x20Require\ + d.\x20The\x20subscription\x20to\x20affect.\n\n\x0f\n\x05\x04*\x02\0\x04\ + \x12\x06\x84\n\x02\x82\n\x15\n\r\n\x05\x04*\x02\0\x05\x12\x04\x84\n\x02\ + \x08\n\r\n\x05\x04*\x02\0\x01\x12\x04\x84\n\t\x15\n\r\n\x05\x04*\x02\0\ + \x03\x12\x04\x84\n\x18\x19\n\x0f\n\x05\x04*\x02\0\x08\x12\x06\x84\n\x1a\ + \x89\n\x03\n\x10\n\x08\x04*\x02\0\x08\x9c\x08\0\x12\x04\x85\n\x04*\n\x11\ + \n\x07\x04*\x02\0\x08\x9f\x08\x12\x06\x86\n\x04\x88\n\x05\n\x0e\n\x04\ + \x04*\x08\0\x12\x06\x8b\n\x02\x9f\n\x03\n\r\n\x05\x04*\x08\0\x01\x12\x04\ + \x8b\n\x08\x0e\n\xbe\x05\n\x04\x04*\x02\x01\x12\x04\x97\n\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,\x20and\x20messages\x20r\ + etained\x20in\x20the\n\x20subscription\x20that\x20were\x20published\x20a\ + fter\x20this\x20time\x20are\x20marked\x20as\n\x20unacknowledged.\x20Note\ + \x20that\x20this\x20operation\x20affects\x20only\x20those\x20messages\n\ + \x20retained\x20in\x20the\x20subscription\x20(configured\x20by\x20the\ + \x20combination\x20of\n\x20`message_retention_duration`\x20and\x20`retai\ + n_acked_messages`).\x20For\x20example,\n\x20if\x20`time`\x20corresponds\ + \x20to\x20a\x20point\x20before\x20the\x20message\x20retention\n\x20windo\ + w\x20(or\x20to\x20a\x20point\x20before\x20the\x20system's\x20notion\x20o\ + f\x20the\x20subscription\n\x20creation\x20time),\x20only\x20retained\x20\ + messages\x20will\x20be\x20marked\x20as\x20unacknowledged,\n\x20and\x20al\ + ready-expunged\x20messages\x20will\x20not\x20be\x20restored.\n\n\r\n\x05\ + \x04*\x02\x01\x06\x12\x04\x97\n\x04\x1d\n\r\n\x05\x04*\x02\x01\x01\x12\ + \x04\x97\n\x1e\"\n\r\n\x05\x04*\x02\x01\x03\x12\x04\x97\n%&\n\xaa\x01\n\ + \x04\x04*\x02\x02\x12\x06\x9c\n\x04\x9e\n\x07\x1a\x99\x01\x20The\x20snap\ + shot\x20to\x20seek\x20to.\x20The\x20snapshot's\x20topic\x20must\x20be\ + \x20the\x20same\x20as\x20that\x20of\n\x20the\x20provided\x20subscription\ + .\n\x20Format\x20is\x20`projects/{project}/snapshots/{snap}`.\n\n\r\n\ + \x05\x04*\x02\x02\x05\x12\x04\x9c\n\x04\n\n\r\n\x05\x04*\x02\x02\x01\x12\ + \x04\x9c\n\x0b\x13\n\r\n\x05\x04*\x02\x02\x03\x12\x04\x9c\n\x16\x17\n\ + \x0f\n\x05\x04*\x02\x02\x08\x12\x06\x9c\n\x18\x9e\n\x06\n\x11\n\x07\x04*\ + \x02\x02\x08\x9f\x08\x12\x06\x9c\n\x19\x9e\n\x05\nF\n\x02\x04+\x12\x04\ + \xa3\n\0\x17\x1a:\x20Response\x20for\x20the\x20`Seek`\x20method\x20(this\ + \x20response\x20is\x20empty).\n\n\x0b\n\x03\x04+\x01\x12\x04\xa3\n\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs new file mode 100644 index 0000000000..fc2f6edc38 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs @@ -0,0 +1,757 @@ +// 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_PUBLISHER_CREATE_TOPIC: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Publisher/CreateTopic", + 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_PUBLISHER_UPDATE_TOPIC: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Publisher/UpdateTopic", + 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_PUBLISHER_PUBLISH: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Publisher/Publish", + 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_PUBLISHER_GET_TOPIC: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Publisher/GetTopic", + 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_PUBLISHER_LIST_TOPICS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Publisher/ListTopics", + 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_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Publisher/ListTopicSubscriptions", + 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_PUBLISHER_LIST_TOPIC_SNAPSHOTS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Publisher/ListTopicSnapshots", + 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_PUBLISHER_DELETE_TOPIC: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Publisher/DeleteTopic", + 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_PUBLISHER_DETACH_SUBSCRIPTION: ::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 { + client: ::grpcio::Client, +} + +impl PublisherClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + PublisherClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn create_topic_opt(&self, req: &super::pubsub::Topic, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_CREATE_TOPIC, req, opt) + } + + pub fn create_topic(&self, req: &super::pubsub::Topic) -> ::grpcio::Result { + self.create_topic_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_topic_async_opt(&self, req: &super::pubsub::Topic, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_CREATE_TOPIC, req, opt) + } + + pub fn create_topic_async(&self, req: &super::pubsub::Topic) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_topic_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_topic_opt(&self, req: &super::pubsub::UpdateTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_UPDATE_TOPIC, req, opt) + } + + pub fn update_topic(&self, req: &super::pubsub::UpdateTopicRequest) -> ::grpcio::Result { + self.update_topic_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_topic_async_opt(&self, req: &super::pubsub::UpdateTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_UPDATE_TOPIC, req, opt) + } + + pub fn update_topic_async(&self, req: &super::pubsub::UpdateTopicRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_topic_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn publish_opt(&self, req: &super::pubsub::PublishRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_PUBLISH, req, opt) + } + + pub fn publish(&self, req: &super::pubsub::PublishRequest) -> ::grpcio::Result { + self.publish_opt(req, ::grpcio::CallOption::default()) + } + + pub fn publish_async_opt(&self, req: &super::pubsub::PublishRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_PUBLISH, req, opt) + } + + pub fn publish_async(&self, req: &super::pubsub::PublishRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.publish_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_topic_opt(&self, req: &super::pubsub::GetTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_GET_TOPIC, req, opt) + } + + pub fn get_topic(&self, req: &super::pubsub::GetTopicRequest) -> ::grpcio::Result { + self.get_topic_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_topic_async_opt(&self, req: &super::pubsub::GetTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_GET_TOPIC, req, opt) + } + + pub fn get_topic_async(&self, req: &super::pubsub::GetTopicRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_topic_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topics_opt(&self, req: &super::pubsub::ListTopicsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPICS, req, opt) + } + + pub fn list_topics(&self, req: &super::pubsub::ListTopicsRequest) -> ::grpcio::Result { + self.list_topics_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topics_async_opt(&self, req: &super::pubsub::ListTopicsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPICS, req, opt) + } + + pub fn list_topics_async(&self, req: &super::pubsub::ListTopicsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_topics_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topic_subscriptions_opt(&self, req: &super::pubsub::ListTopicSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, req, opt) + } + + pub fn list_topic_subscriptions(&self, req: &super::pubsub::ListTopicSubscriptionsRequest) -> ::grpcio::Result { + self.list_topic_subscriptions_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topic_subscriptions_async_opt(&self, req: &super::pubsub::ListTopicSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, req, opt) + } + + pub fn list_topic_subscriptions_async(&self, req: &super::pubsub::ListTopicSubscriptionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_topic_subscriptions_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topic_snapshots_opt(&self, req: &super::pubsub::ListTopicSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPIC_SNAPSHOTS, req, opt) + } + + pub fn list_topic_snapshots(&self, req: &super::pubsub::ListTopicSnapshotsRequest) -> ::grpcio::Result { + self.list_topic_snapshots_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topic_snapshots_async_opt(&self, req: &super::pubsub::ListTopicSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPIC_SNAPSHOTS, req, opt) + } + + pub fn list_topic_snapshots_async(&self, req: &super::pubsub::ListTopicSnapshotsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_topic_snapshots_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_topic_opt(&self, req: &super::pubsub::DeleteTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_DELETE_TOPIC, req, opt) + } + + pub fn delete_topic(&self, req: &super::pubsub::DeleteTopicRequest) -> ::grpcio::Result { + self.delete_topic_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_topic_async_opt(&self, req: &super::pubsub::DeleteTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_DELETE_TOPIC, req, opt) + } + + 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: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait Publisher { + fn create_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::Topic, sink: ::grpcio::UnarySink); + fn update_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::UpdateTopicRequest, sink: ::grpcio::UnarySink); + fn publish(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::PublishRequest, sink: ::grpcio::UnarySink); + fn get_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetTopicRequest, sink: ::grpcio::UnarySink); + fn list_topics(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicsRequest, sink: ::grpcio::UnarySink); + fn list_topic_subscriptions(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicSubscriptionsRequest, sink: ::grpcio::UnarySink); + fn list_topic_snapshots(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicSnapshotsRequest, sink: ::grpcio::UnarySink); + fn delete_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteTopicRequest, sink: ::grpcio::UnarySink); + fn detach_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DetachSubscriptionRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_publisher(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_CREATE_TOPIC, move |ctx, req, resp| { + instance.create_topic(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_UPDATE_TOPIC, move |ctx, req, resp| { + instance.update_topic(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_PUBLISH, move |ctx, req, resp| { + instance.publish(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_GET_TOPIC, move |ctx, req, resp| { + instance.get_topic(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPICS, move |ctx, req, resp| { + instance.list_topics(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, move |ctx, req, resp| { + instance.list_topic_subscriptions(ctx, req, resp) + }); + let mut instance = s.clone(); + 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(); + 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() +} + +const METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/CreateSubscription", + 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_SUBSCRIBER_GET_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/GetSubscription", + 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_SUBSCRIBER_UPDATE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/UpdateSubscription", + 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_SUBSCRIBER_LIST_SUBSCRIPTIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/ListSubscriptions", + 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_SUBSCRIBER_DELETE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/DeleteSubscription", + 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_SUBSCRIBER_MODIFY_ACK_DEADLINE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/ModifyAckDeadline", + 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_SUBSCRIBER_ACKNOWLEDGE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/Acknowledge", + 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_SUBSCRIBER_PULL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/Pull", + 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_SUBSCRIBER_STREAMING_PULL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Duplex, + name: "/google.pubsub.v1.Subscriber/StreamingPull", + 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_SUBSCRIBER_MODIFY_PUSH_CONFIG: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/ModifyPushConfig", + 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_SUBSCRIBER_GET_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/GetSnapshot", + 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_SUBSCRIBER_LIST_SNAPSHOTS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/ListSnapshots", + 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_SUBSCRIBER_CREATE_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/CreateSnapshot", + 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_SUBSCRIBER_UPDATE_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/UpdateSnapshot", + 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_SUBSCRIBER_DELETE_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/DeleteSnapshot", + 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_SUBSCRIBER_SEEK: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1.Subscriber/Seek", + 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 SubscriberClient { + client: ::grpcio::Client, +} + +impl SubscriberClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + SubscriberClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn create_subscription_opt(&self, req: &super::pubsub::Subscription, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, req, opt) + } + + pub fn create_subscription(&self, req: &super::pubsub::Subscription) -> ::grpcio::Result { + self.create_subscription_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_subscription_async_opt(&self, req: &super::pubsub::Subscription, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, req, opt) + } + + pub fn create_subscription_async(&self, req: &super::pubsub::Subscription) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_subscription_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_subscription_opt(&self, req: &super::pubsub::GetSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, req, opt) + } + + pub fn get_subscription(&self, req: &super::pubsub::GetSubscriptionRequest) -> ::grpcio::Result { + self.get_subscription_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_subscription_async_opt(&self, req: &super::pubsub::GetSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, req, opt) + } + + pub fn get_subscription_async(&self, req: &super::pubsub::GetSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_subscription_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_subscription_opt(&self, req: &super::pubsub::UpdateSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_UPDATE_SUBSCRIPTION, req, opt) + } + + pub fn update_subscription(&self, req: &super::pubsub::UpdateSubscriptionRequest) -> ::grpcio::Result { + self.update_subscription_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_subscription_async_opt(&self, req: &super::pubsub::UpdateSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_UPDATE_SUBSCRIPTION, req, opt) + } + + pub fn update_subscription_async(&self, req: &super::pubsub::UpdateSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_subscription_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_subscriptions_opt(&self, req: &super::pubsub::ListSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, req, opt) + } + + pub fn list_subscriptions(&self, req: &super::pubsub::ListSubscriptionsRequest) -> ::grpcio::Result { + self.list_subscriptions_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_subscriptions_async_opt(&self, req: &super::pubsub::ListSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, req, opt) + } + + pub fn list_subscriptions_async(&self, req: &super::pubsub::ListSubscriptionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_subscriptions_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_subscription_opt(&self, req: &super::pubsub::DeleteSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, req, opt) + } + + pub fn delete_subscription(&self, req: &super::pubsub::DeleteSubscriptionRequest) -> ::grpcio::Result { + self.delete_subscription_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_subscription_async_opt(&self, req: &super::pubsub::DeleteSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, req, opt) + } + + pub fn delete_subscription_async(&self, req: &super::pubsub::DeleteSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_subscription_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn modify_ack_deadline_opt(&self, req: &super::pubsub::ModifyAckDeadlineRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, req, opt) + } + + pub fn modify_ack_deadline(&self, req: &super::pubsub::ModifyAckDeadlineRequest) -> ::grpcio::Result { + self.modify_ack_deadline_opt(req, ::grpcio::CallOption::default()) + } + + pub fn modify_ack_deadline_async_opt(&self, req: &super::pubsub::ModifyAckDeadlineRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, req, opt) + } + + pub fn modify_ack_deadline_async(&self, req: &super::pubsub::ModifyAckDeadlineRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.modify_ack_deadline_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn acknowledge_opt(&self, req: &super::pubsub::AcknowledgeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_ACKNOWLEDGE, req, opt) + } + + pub fn acknowledge(&self, req: &super::pubsub::AcknowledgeRequest) -> ::grpcio::Result { + self.acknowledge_opt(req, ::grpcio::CallOption::default()) + } + + pub fn acknowledge_async_opt(&self, req: &super::pubsub::AcknowledgeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_ACKNOWLEDGE, req, opt) + } + + pub fn acknowledge_async(&self, req: &super::pubsub::AcknowledgeRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.acknowledge_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn pull_opt(&self, req: &super::pubsub::PullRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_PULL, req, opt) + } + + pub fn pull(&self, req: &super::pubsub::PullRequest) -> ::grpcio::Result { + self.pull_opt(req, ::grpcio::CallOption::default()) + } + + pub fn pull_async_opt(&self, req: &super::pubsub::PullRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_PULL, req, opt) + } + + pub fn pull_async(&self, req: &super::pubsub::PullRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.pull_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn streaming_pull_opt(&self, opt: ::grpcio::CallOption) -> ::grpcio::Result<(::grpcio::ClientDuplexSender, ::grpcio::ClientDuplexReceiver)> { + self.client.duplex_streaming(&METHOD_SUBSCRIBER_STREAMING_PULL, opt) + } + + pub fn streaming_pull(&self) -> ::grpcio::Result<(::grpcio::ClientDuplexSender, ::grpcio::ClientDuplexReceiver)> { + self.streaming_pull_opt(::grpcio::CallOption::default()) + } + + pub fn modify_push_config_opt(&self, req: &super::pubsub::ModifyPushConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, req, opt) + } + + pub fn modify_push_config(&self, req: &super::pubsub::ModifyPushConfigRequest) -> ::grpcio::Result { + self.modify_push_config_opt(req, ::grpcio::CallOption::default()) + } + + pub fn modify_push_config_async_opt(&self, req: &super::pubsub::ModifyPushConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, req, opt) + } + + pub fn modify_push_config_async(&self, req: &super::pubsub::ModifyPushConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.modify_push_config_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_snapshot_opt(&self, req: &super::pubsub::GetSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_GET_SNAPSHOT, req, opt) + } + + pub fn get_snapshot(&self, req: &super::pubsub::GetSnapshotRequest) -> ::grpcio::Result { + self.get_snapshot_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_snapshot_async_opt(&self, req: &super::pubsub::GetSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_GET_SNAPSHOT, req, opt) + } + + pub fn get_snapshot_async(&self, req: &super::pubsub::GetSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_snapshot_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_snapshots_opt(&self, req: &super::pubsub::ListSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_LIST_SNAPSHOTS, req, opt) + } + + pub fn list_snapshots(&self, req: &super::pubsub::ListSnapshotsRequest) -> ::grpcio::Result { + self.list_snapshots_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_snapshots_async_opt(&self, req: &super::pubsub::ListSnapshotsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_LIST_SNAPSHOTS, req, opt) + } + + pub fn list_snapshots_async(&self, req: &super::pubsub::ListSnapshotsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_snapshots_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_snapshot_opt(&self, req: &super::pubsub::CreateSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_CREATE_SNAPSHOT, req, opt) + } + + pub fn create_snapshot(&self, req: &super::pubsub::CreateSnapshotRequest) -> ::grpcio::Result { + self.create_snapshot_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_snapshot_async_opt(&self, req: &super::pubsub::CreateSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_CREATE_SNAPSHOT, req, opt) + } + + pub fn create_snapshot_async(&self, req: &super::pubsub::CreateSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_snapshot_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_snapshot_opt(&self, req: &super::pubsub::UpdateSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_UPDATE_SNAPSHOT, req, opt) + } + + pub fn update_snapshot(&self, req: &super::pubsub::UpdateSnapshotRequest) -> ::grpcio::Result { + self.update_snapshot_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_snapshot_async_opt(&self, req: &super::pubsub::UpdateSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_UPDATE_SNAPSHOT, req, opt) + } + + pub fn update_snapshot_async(&self, req: &super::pubsub::UpdateSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_snapshot_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_snapshot_opt(&self, req: &super::pubsub::DeleteSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_DELETE_SNAPSHOT, req, opt) + } + + pub fn delete_snapshot(&self, req: &super::pubsub::DeleteSnapshotRequest) -> ::grpcio::Result { + self.delete_snapshot_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_snapshot_async_opt(&self, req: &super::pubsub::DeleteSnapshotRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_DELETE_SNAPSHOT, req, opt) + } + + pub fn delete_snapshot_async(&self, req: &super::pubsub::DeleteSnapshotRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_snapshot_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn seek_opt(&self, req: &super::pubsub::SeekRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_SEEK, req, opt) + } + + pub fn seek(&self, req: &super::pubsub::SeekRequest) -> ::grpcio::Result { + self.seek_opt(req, ::grpcio::CallOption::default()) + } + + pub fn seek_async_opt(&self, req: &super::pubsub::SeekRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_SEEK, req, opt) + } + + pub fn seek_async(&self, req: &super::pubsub::SeekRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.seek_async_opt(req, ::grpcio::CallOption::default()) + } + pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait Subscriber { + fn create_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::Subscription, sink: ::grpcio::UnarySink); + fn get_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetSubscriptionRequest, sink: ::grpcio::UnarySink); + fn update_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::UpdateSubscriptionRequest, sink: ::grpcio::UnarySink); + fn list_subscriptions(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListSubscriptionsRequest, sink: ::grpcio::UnarySink); + fn delete_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteSubscriptionRequest, sink: ::grpcio::UnarySink); + fn modify_ack_deadline(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ModifyAckDeadlineRequest, sink: ::grpcio::UnarySink); + fn acknowledge(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::AcknowledgeRequest, sink: ::grpcio::UnarySink); + fn pull(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::PullRequest, sink: ::grpcio::UnarySink); + fn streaming_pull(&mut self, ctx: ::grpcio::RpcContext, stream: ::grpcio::RequestStream, sink: ::grpcio::DuplexSink); + fn modify_push_config(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ModifyPushConfigRequest, sink: ::grpcio::UnarySink); + fn get_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetSnapshotRequest, sink: ::grpcio::UnarySink); + fn list_snapshots(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListSnapshotsRequest, sink: ::grpcio::UnarySink); + fn create_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::CreateSnapshotRequest, sink: ::grpcio::UnarySink); + fn update_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::UpdateSnapshotRequest, sink: ::grpcio::UnarySink); + fn delete_snapshot(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteSnapshotRequest, sink: ::grpcio::UnarySink); + fn seek(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::SeekRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_subscriber(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, move |ctx, req, resp| { + instance.create_subscription(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, move |ctx, req, resp| { + instance.get_subscription(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_UPDATE_SUBSCRIPTION, move |ctx, req, resp| { + instance.update_subscription(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, move |ctx, req, resp| { + instance.list_subscriptions(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, move |ctx, req, resp| { + instance.delete_subscription(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, move |ctx, req, resp| { + instance.modify_ack_deadline(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_ACKNOWLEDGE, move |ctx, req, resp| { + instance.acknowledge(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_PULL, move |ctx, req, resp| { + instance.pull(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_duplex_streaming_handler(&METHOD_SUBSCRIBER_STREAMING_PULL, move |ctx, req, resp| { + instance.streaming_pull(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, move |ctx, req, resp| { + instance.modify_push_config(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_GET_SNAPSHOT, move |ctx, req, resp| { + instance.get_snapshot(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_LIST_SNAPSHOTS, move |ctx, req, resp| { + instance.list_snapshots(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_CREATE_SNAPSHOT, move |ctx, req, resp| { + instance.create_snapshot(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_UPDATE_SNAPSHOT, move |ctx, req, resp| { + instance.update_snapshot(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_DELETE_SNAPSHOT, move |ctx, req, resp| { + instance.delete_snapshot(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_SEEK, move |ctx, req, resp| { + instance.seek(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema.rs new file mode 100644 index 0000000000..33ddb8b042 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema.rs @@ -0,0 +1,2685 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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, + // 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()) + } +} + +impl ::protobuf::Message for Schema { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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 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\"\xf9\x01\n\x06Schema\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\x04type\x12\x1e\n\ndefinition\x18\x03\x20\ + \x01(\tR\ndefinition\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\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/{schem\ + a}\"\xa7\x01\n\x13CreateSchemaRequest\x12<\n\x06parent\x18\x01\x20\x01(\ + \tR\x06parentB$\xe0A\x02\xfaA\x1e\x12\x1cpubsub.googleapis.com/Schema\ + \x125\n\x06schema\x18\x02\x20\x01(\x0b2\x18.google.pubsub.v1.SchemaR\x06\ + schemaB\x03\xe0A\x02\x12\x1b\n\tschema_id\x18\x03\x20\x01(\tR\x08schemaI\ + d\"~\n\x10GetSchemaRequest\x128\n\x04name\x18\x01\x20\x01(\tR\x04nameB$\ + \xe0A\x02\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\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\ + \xe0A\x02\xfaA-\n+cloudresourcemanager.googleapis.com/Project\x120\n\x04\ + view\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_toke\ + n\x18\x04\x20\x01(\tR\tpageToken\"q\n\x13ListSchemasResponse\x122\n\x07s\ + chemas\x18\x01\x20\x03(\x0b2\x18.google.pubsub.v1.SchemaR\x07schemas\x12\ + &\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"O\n\x13Delete\ + SchemaRequest\x128\n\x04name\x18\x01\x20\x01(\tR\x04nameB$\xfaA\x1e\n\ + \x1cpubsub.googleapis.com/Schema\xe0A\x02\"\x9b\x01\n\x15ValidateSchemaR\ + equest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudres\ + ourcemanager.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\x16ValidateMessageRequest\ + \x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudresourcem\ + anager.googleapis.com/Project\xe0A\x02\x127\n\x04name\x18\x02\x20\x01(\t\ + H\0R\x04nameB!\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\x122\n\x06sche\ + ma\x18\x03\x20\x01(\x0b2\x18.google.pubsub.v1.SchemaH\0R\x06schema\x12\ + \x18\n\x07message\x18\x04\x20\x01(\x0cR\x07message\x126\n\x08encoding\ + \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\xf7\x07\n\rSchem\ + aService\x12\x9a\x01\n\x0cCreateSchema\x12%.google.pubsub.v1.CreateSchem\ + aRequest\x1a\x18.google.pubsub.v1.Schema\"I\xdaA\x17parent,schema,schema\ + _id\x82\xd3\xe4\x93\x02)\"\x1f/v1/{parent=projects/*}/schemas:\x06schema\ + \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\xdaA\ + \x06parent\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{parent=projects/*}/schemas\ + \x12}\n\x0cDeleteSchema\x12%.google.pubsub.v1.DeleteSchemaRequest\x1a\ + \x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02!*\x1f/v1/{name=project\ + s/*/schemas/*}\xdaA\x04name\x12\xa8\x01\n\x0eValidateSchema\x12'.google.\ + pubsub.v1.ValidateSchemaRequest\x1a(.google.pubsub.v1.ValidateSchemaResp\ + onse\"C\xdaA\rparent,schema\x82\xd3\xe4\x93\x02-\"(/v1/{parent=projects/\ + *}/schemas:validate:\x01*\x12\xa2\x01\n\x0fValidateMessage\x12(.google.p\ + ubsub.v1.ValidateMessageRequest\x1a).google.pubsub.v1.ValidateMessageRes\ + ponse\":\x82\xd3\xe4\x93\x024\"//v1/{parent=projects/*}/schemas:validate\ + Message:\x01*\x1ap\xcaA\x15pubsub.googleapis.com\xd2AUhttps://www.google\ + apis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\xae\ + \x01\n\x14com.google.pubsub.v1B\x0bSchemaProtoP\x01Z6google.golang.org/g\ + enproto/googleapis/pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cloud.\ + PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud:\ + :PubSub::V1J\x82?\n\x07\x12\x05\x0e\0\xa0\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\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\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\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\03\n\t\n\x02\x08%\x12\x03\x19\03\n\x08\n\x01\x08\x12\ + \x03\x1a\0M\n\t\n\x02\x08\x0b\x12\x03\x1a\0M\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\03\n\t\n\x02\x08)\ + \x12\x03\x1e\03\n\x08\n\x01\x08\x12\x03\x1f\02\n\t\n\x02\x08-\x12\x03\ + \x1f\02\n\x85\x01\n\x02\x06\0\x12\x04%\0]\x012y\x20Service\x20for\x20doi\ + ng\x20schema-related\x20operations.\n\n\x20EXPERIMENTAL:\x20The\x20Schem\ + a\x20service\x20is\x20in\x20development\x20and\x20may\x20not\x20work\x20\ + yet.\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,\x022\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-\x040\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04-\ + \x040\x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x031\x04E\n\x0f\n\x08\x06\0\ + \x02\0\x04\x9b\x08\0\x12\x031\x04E\n\x1e\n\x04\x06\0\x02\x01\x12\x045\ + \x02:\x03\x1a\x10\x20Gets\x20a\x20schema.\n\n\x0c\n\x05\x06\0\x02\x01\ + \x01\x12\x035\x06\x0f\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x035\x10\x20\n\ + \x0c\n\x05\x06\0\x02\x01\x03\x12\x035+1\n\r\n\x05\x06\0\x02\x01\x04\x12\ + \x046\x048\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x046\x048\ + \x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x039\x042\n\x0f\n\x08\x06\0\x02\ + \x01\x04\x9b\x08\0\x12\x039\x042\n+\n\x04\x06\0\x02\x02\x12\x04=\x02B\ + \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\x03A\x044\n\x0f\n\x08\ + \x06\0\x02\x02\x04\x9b\x08\0\x12\x03A\x044\n!\n\x04\x06\0\x02\x03\x12\ + \x04E\x02J\x03\x1a\x13\x20Deletes\x20a\x20schema.\n\n\x0c\n\x05\x06\0\ + \x02\x03\x01\x12\x03E\x06\x12\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03E\x13\ + &\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03E1F\n\r\n\x05\x06\0\x02\x03\x04\ + \x12\x04F\x04H\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04F\ + \x04H\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03I\x042\n\x0f\n\x08\x06\0\ + \x02\x03\x04\x9b\x08\0\x12\x03I\x042\n#\n\x04\x06\0\x02\x04\x12\x04M\x02\ + S\x03\x1a\x15\x20Validates\x20a\x20schema.\n\n\x0c\n\x05\x06\0\x02\x04\ + \x01\x12\x03M\x06\x14\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03M\x15*\n\x0c\ + \n\x05\x06\0\x02\x04\x03\x12\x03M5K\n\r\n\x05\x06\0\x02\x04\x04\x12\x04N\ + \x04Q\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04N\x04Q\x06\n\ + \x0c\n\x05\x06\0\x02\x04\x04\x12\x03R\x04;\n\x0f\n\x08\x06\0\x02\x04\x04\ + \x9b\x08\0\x12\x03R\x04;\n5\n\x04\x06\0\x02\x05\x12\x04V\x02\\\x03\x1a'\ + \x20Validates\x20a\x20message\x20against\x20a\x20schema.\n\n\x0c\n\x05\ + \x06\0\x02\x05\x01\x12\x03V\x06\x15\n\x0c\n\x05\x06\0\x02\x05\x02\x12\ + \x03V\x16,\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03W\x0f&\n\r\n\x05\x06\0\ + \x02\x05\x04\x12\x04X\x04[\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\ + \x12\x04X\x04[\x06\n\x20\n\x02\x04\0\x12\x04`\0}\x01\x1a\x14\x20A\x20sch\ + ema\x20resource.\n\n\n\n\x03\x04\0\x01\x12\x03`\x08\x0e\n\x0b\n\x03\x04\ + \0\x07\x12\x04a\x02d\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04a\x02d\x04\n\ + 1\n\x04\x04\0\x04\0\x12\x04g\x02p\x03\x1a#\x20Possible\x20schema\x20defi\ + nition\x20types.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03g\x07\x0b\n5\n\x06\ + \x04\0\x04\0\x02\0\x12\x03i\x04\x19\x1a&\x20Default\x20value.\x20This\ + \x20value\x20is\x20unused.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03i\ + \x04\x14\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03i\x17\x18\n5\n\x06\x04\ + \0\x04\0\x02\x01\x12\x03l\x04\x18\x1a&\x20A\x20Protocol\x20Buffer\x20sch\ + ema\x20definition.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03l\x04\ + \x13\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03l\x16\x17\n+\n\x06\x04\0\ + \x04\0\x02\x02\x12\x03o\x04\r\x1a\x1c\x20An\x20Avro\x20schema\x20definit\ + ion.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03o\x04\x08\n\x0e\n\x07\ + \x04\0\x04\0\x02\x02\x02\x12\x03o\x0b\x0c\n^\n\x04\x04\0\x02\0\x12\x03t\ + \x02;\x1aQ\x20Required.\x20Name\x20of\x20the\x20schema.\n\x20Format\x20i\ + s\x20`projects/{project}/schemas/{schema}`.\n\n\r\n\x05\x04\0\x02\0\x04\ + \x12\x04t\x02p\x03\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\n\x0c\n\x05\x04\0\x02\0\x08\x12\x03t\x12:\n\x0f\n\x08\x04\0\x02\ + \0\x08\x9c\x08\0\x12\x03t\x139\n1\n\x04\x04\0\x02\x01\x12\x03w\x02\x10\ + \x1a$\x20The\x20type\x20of\x20the\x20schema\x20definition.\n\n\r\n\x05\ + \x04\0\x02\x01\x04\x12\x04w\x02t;\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\x0b\n\x0c\n\x05\x04\ + \0\x02\x01\x03\x12\x03w\x0e\x0f\n\xbe\x01\n\x04\x04\0\x02\x02\x12\x03|\ + \x02\x18\x1a\xb0\x01\x20The\x20definition\x20of\x20the\x20schema.\x20Thi\ + s\x20should\x20contain\x20a\x20string\x20representing\n\x20the\x20full\ + \x20definition\x20of\x20the\x20schema\x20that\x20is\x20a\x20valid\x20sch\ + ema\x20definition\x20of\n\x20the\x20type\x20specified\x20in\x20`type`.\n\ + \n\r\n\x05\x04\0\x02\x02\x04\x12\x04|\x02w\x10\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\x13\n\x0c\ + \n\x05\x04\0\x02\x02\x03\x12\x03|\x16\x17\n4\n\x02\x04\x01\x12\x06\x80\ + \x01\0\x97\x01\x01\x1a&\x20Request\x20for\x20the\x20CreateSchema\x20meth\ + od.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x80\x01\x08\x1b\nv\n\x04\x04\x01\ + \x02\0\x12\x06\x83\x01\x02\x88\x01\x04\x1af\x20Required.\x20The\x20name\ + \x20of\x20the\x20project\x20in\x20which\x20to\x20create\x20the\x20schema\ + .\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04\x01\ + \x02\0\x04\x12\x06\x83\x01\x02\x80\x01\x1d\n\r\n\x05\x04\x01\x02\0\x05\ + \x12\x04\x83\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x83\x01\t\ + \x0f\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x83\x01\x12\x13\n\x0f\n\x05\x04\ + \x01\x02\0\x08\x12\x06\x83\x01\x14\x88\x01\x03\n\x10\n\x08\x04\x01\x02\0\ + \x08\x9c\x08\0\x12\x04\x84\x01\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\ + \x08\x12\x06\x85\x01\x04\x87\x01\x05\n\xd3\x01\n\x04\x04\x01\x02\x01\x12\ + \x04\x8f\x01\x02=\x1a\xc4\x01\x20Required.\x20The\x20schema\x20object\ + \x20to\x20create.\n\n\x20This\x20schema's\x20`name`\x20parameter\x20is\ + \x20ignored.\x20The\x20schema\x20object\x20returned\n\x20by\x20CreateSch\ + ema\x20will\x20have\x20a\x20`name`\x20made\x20using\x20the\x20given\x20`\ + parent`\x20and\n\x20`schema_id`.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\ + \x06\x8f\x01\x02\x88\x01\x04\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\x8f\ + \x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x8f\x01\t\x0f\n\r\n\ + \x05\x04\x01\x02\x01\x03\x12\x04\x8f\x01\x12\x13\n\r\n\x05\x04\x01\x02\ + \x01\x08\x12\x04\x8f\x01\x14<\n\x10\n\x08\x04\x01\x02\x01\x08\x9c\x08\0\ + \x12\x04\x8f\x01\x15;\n\xd4\x01\n\x04\x04\x01\x02\x02\x12\x04\x96\x01\ + \x02\x17\x1a\xc5\x01\x20The\x20ID\x20to\x20use\x20for\x20the\x20schema,\ + \x20which\x20will\x20become\x20the\x20final\x20component\x20of\n\x20the\ + \x20schema's\x20resource\x20name.\n\n\x20See\x20https://cloud.google.com\ + /pubsub/docs/admin#resource_names\x20for\x20resource\n\x20name\x20constr\ + aints.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\x96\x01\x02\x8f\x01=\n\ + \r\n\x05\x04\x01\x02\x02\x05\x12\x04\x96\x01\x02\x08\n\r\n\x05\x04\x01\ + \x02\x02\x01\x12\x04\x96\x01\t\x12\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\ + \x96\x01\x15\x16\nY\n\x02\x05\0\x12\x06\x9a\x01\0\xa4\x01\x01\x1aK\x20Vi\ + ew\x20of\x20Schema\x20object\x20fields\x20to\x20be\x20returned\x20by\x20\ + GetSchema\x20and\x20ListSchemas.\n\n\x0b\n\x03\x05\0\x01\x12\x04\x9a\x01\ + \x05\x0f\nS\n\x04\x05\0\x02\0\x12\x04\x9d\x01\x02\x1e\x1aE\x20The\x20def\ + ault\x20/\x20unset\x20value.\n\x20The\x20API\x20will\x20default\x20to\ + \x20the\x20BASIC\x20view.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\x9d\x01\ + \x02\x19\n\r\n\x05\x05\0\x02\0\x02\x12\x04\x9d\x01\x1c\x1d\nP\n\x04\x05\ + \0\x02\x01\x12\x04\xa0\x01\x02\x0c\x1aB\x20Include\x20the\x20name\x20and\ + \x20type\x20of\x20the\x20schema,\x20but\x20not\x20the\x20definition.\n\n\ + \r\n\x05\x05\0\x02\x01\x01\x12\x04\xa0\x01\x02\x07\n\r\n\x05\x05\0\x02\ + \x01\x02\x12\x04\xa0\x01\n\x0b\n1\n\x04\x05\0\x02\x02\x12\x04\xa3\x01\ + \x02\x0b\x1a#\x20Include\x20all\x20Schema\x20object\x20fields.\n\n\r\n\ + \x05\x05\0\x02\x02\x01\x12\x04\xa3\x01\x02\x06\n\r\n\x05\x05\0\x02\x02\ + \x02\x12\x04\xa3\x01\t\n\n1\n\x02\x04\x02\x12\x06\xa7\x01\0\xb3\x01\x01\ + \x1a#\x20Request\x20for\x20the\x20GetSchema\x20method.\n\n\x0b\n\x03\x04\ + \x02\x01\x12\x04\xa7\x01\x08\x18\nl\n\x04\x04\x02\x02\0\x12\x06\xaa\x01\ + \x02\xad\x01\x04\x1a\\\x20Required.\x20The\x20name\x20of\x20the\x20schem\ + a\x20to\x20get.\n\x20Format\x20is\x20`projects/{project}/schemas/{schema\ + }`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xaa\x01\x02\xa7\x01\x1a\n\r\ + \n\x05\x04\x02\x02\0\x05\x12\x04\xaa\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\ + \x01\x12\x04\xaa\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xaa\x01\x10\ + \x11\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xaa\x01\x12\xad\x01\x03\n\x10\ + \n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xab\x01\x04*\n\x0f\n\x07\x04\ + \x02\x02\0\x08\x9f\x08\x12\x04\xac\x01\x04N\n\xb0\x01\n\x04\x04\x02\x02\ + \x01\x12\x04\xb2\x01\x02\x16\x1a\xa1\x01\x20The\x20set\x20of\x20fields\ + \x20to\x20return\x20in\x20the\x20response.\x20If\x20not\x20set,\x20retur\ + ns\x20a\x20Schema\n\x20with\x20`name`\x20and\x20`type`,\x20but\x20not\ + \x20`definition`.\x20Set\x20to\x20`FULL`\x20to\x20retrieve\x20all\n\x20f\ + ields.\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xb2\x01\x02\xad\x01\x04\ + \n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xb2\x01\x02\x0c\n\r\n\x05\x04\x02\ + \x02\x01\x01\x12\x04\xb2\x01\r\x11\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ + \xb2\x01\x14\x15\n5\n\x02\x04\x03\x12\x06\xb6\x01\0\xcc\x01\x01\x1a'\x20\ + Request\x20for\x20the\x20`ListSchemas`\x20method.\n\n\x0b\n\x03\x04\x03\ + \x01\x12\x04\xb6\x01\x08\x1a\nq\n\x04\x04\x03\x02\0\x12\x06\xb9\x01\x02\ + \xbe\x01\x04\x1aa\x20Required.\x20The\x20name\x20of\x20the\x20project\ + \x20in\x20which\x20to\x20list\x20schemas.\n\x20Format\x20is\x20`projects\ + /{project-id}`.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\x06\xb9\x01\x02\xb6\ + \x01\x1c\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xb9\x01\x02\x08\n\r\n\x05\ + \x04\x03\x02\0\x01\x12\x04\xb9\x01\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\ + \x04\xb9\x01\x12\x13\n\x0f\n\x05\x04\x03\x02\0\x08\x12\x06\xb9\x01\x14\ + \xbe\x01\x03\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\xba\x01\x04\ + *\n\x11\n\x07\x04\x03\x02\0\x08\x9f\x08\x12\x06\xbb\x01\x04\xbd\x01\x05\ + \n\xb6\x01\n\x04\x04\x03\x02\x01\x12\x04\xc3\x01\x02\x16\x1a\xa7\x01\x20\ + The\x20set\x20of\x20Schema\x20fields\x20to\x20return\x20in\x20the\x20res\ + ponse.\x20If\x20not\x20set,\x20returns\n\x20Schemas\x20with\x20`name`\ + \x20and\x20`type`,\x20but\x20not\x20`definition`.\x20Set\x20to\x20`FULL`\ + \x20to\n\x20retrieve\x20all\x20fields.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\ + \x12\x06\xc3\x01\x02\xbe\x01\x04\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\ + \xc3\x01\x02\x0c\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xc3\x01\r\x11\n\r\ + \n\x05\x04\x03\x02\x01\x03\x12\x04\xc3\x01\x14\x15\n4\n\x04\x04\x03\x02\ + \x02\x12\x04\xc6\x01\x02\x16\x1a&\x20Maximum\x20number\x20of\x20schemas\ + \x20to\x20return.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xc6\x01\x02\ + \xc3\x01\x16\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xc6\x01\x02\x07\n\r\n\ + \x05\x04\x03\x02\x02\x01\x12\x04\xc6\x01\x08\x11\n\r\n\x05\x04\x03\x02\ + \x02\x03\x12\x04\xc6\x01\x14\x15\n\xc6\x01\n\x04\x04\x03\x02\x03\x12\x04\ + \xcb\x01\x02\x18\x1a\xb7\x01\x20The\x20value\x20returned\x20by\x20the\ + \x20last\x20`ListSchemasResponse`;\x20indicates\x20that\n\x20this\x20is\ + \x20a\x20continuation\x20of\x20a\x20prior\x20`ListSchemas`\x20call,\x20a\ + nd\x20that\x20the\n\x20system\x20should\x20return\x20the\x20next\x20page\ + \x20of\x20data.\n\n\x0f\n\x05\x04\x03\x02\x03\x04\x12\x06\xcb\x01\x02\ + \xc6\x01\x16\n\r\n\x05\x04\x03\x02\x03\x05\x12\x04\xcb\x01\x02\x08\n\r\n\ + \x05\x04\x03\x02\x03\x01\x12\x04\xcb\x01\t\x13\n\r\n\x05\x04\x03\x02\x03\ + \x03\x12\x04\xcb\x01\x16\x17\n6\n\x02\x04\x04\x12\x06\xcf\x01\0\xd6\x01\ + \x01\x1a(\x20Response\x20for\x20the\x20`ListSchemas`\x20method.\n\n\x0b\ + \n\x03\x04\x04\x01\x12\x04\xcf\x01\x08\x1b\n&\n\x04\x04\x04\x02\0\x12\ + \x04\xd1\x01\x02\x1e\x1a\x18\x20The\x20resulting\x20schemas.\n\n\r\n\x05\ + \x04\x04\x02\0\x04\x12\x04\xd1\x01\x02\n\n\r\n\x05\x04\x04\x02\0\x06\x12\ + \x04\xd1\x01\x0b\x11\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xd1\x01\x12\x19\ + \n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xd1\x01\x1c\x1d\n\x9b\x01\n\x04\x04\ + \x04\x02\x01\x12\x04\xd5\x01\x02\x1d\x1a\x8c\x01\x20If\x20not\x20empty,\ + \x20indicates\x20that\x20there\x20may\x20be\x20more\x20schemas\x20that\ + \x20match\x20the\n\x20request;\x20this\x20value\x20should\x20be\x20passe\ + d\x20in\x20a\x20new\x20`ListSchemasRequest`.\n\n\x0f\n\x05\x04\x04\x02\ + \x01\x04\x12\x06\xd5\x01\x02\xd1\x01\x1e\n\r\n\x05\x04\x04\x02\x01\x05\ + \x12\x04\xd5\x01\x02\x08\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xd5\x01\t\ + \x18\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xd5\x01\x1b\x1c\n6\n\x02\x04\ + \x05\x12\x06\xd9\x01\0\xe0\x01\x01\x1a(\x20Request\x20for\x20the\x20`Del\ + eteSchema`\x20method.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xd9\x01\x08\x1b\ + \nk\n\x04\x04\x05\x02\0\x12\x06\xdc\x01\x02\xdf\x01\x04\x1a[\x20Required\ + .\x20Name\x20of\x20the\x20schema\x20to\x20delete.\n\x20Format\x20is\x20`\ + projects/{project}/schemas/{schema}`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\ + \x12\x06\xdc\x01\x02\xd9\x01\x1d\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xdc\ + \x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xdc\x01\t\r\n\r\n\x05\ + \x04\x05\x02\0\x03\x12\x04\xdc\x01\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\ + \x12\x06\xdc\x01\x12\xdf\x01\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\ + \x12\x04\xdd\x01\x04*\n\x0f\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x04\xde\ + \x01\x04N\n8\n\x02\x04\x06\x12\x06\xe3\x01\0\xef\x01\x01\x1a*\x20Request\ + \x20for\x20the\x20`ValidateSchema`\x20method.\n\n\x0b\n\x03\x04\x06\x01\ + \x12\x04\xe3\x01\x08\x1d\nu\n\x04\x04\x06\x02\0\x12\x06\xe6\x01\x02\xeb\ + \x01\x04\x1ae\x20Required.\x20The\x20name\x20of\x20the\x20project\x20in\ + \x20which\x20to\x20validate\x20schemas.\n\x20Format\x20is\x20`projects/{\ + project-id}`.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xe6\x01\x02\xe3\ + \x01\x1f\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xe6\x01\x02\x08\n\r\n\x05\ + \x04\x06\x02\0\x01\x12\x04\xe6\x01\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\ + \x04\xe6\x01\x12\x13\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xe6\x01\x14\ + \xeb\x01\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xe7\x01\x04\ + *\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xe8\x01\x04\xea\x01\x05\ + \n8\n\x04\x04\x06\x02\x01\x12\x04\xee\x01\x02=\x1a*\x20Required.\x20The\ + \x20schema\x20object\x20to\x20validate.\n\n\x0f\n\x05\x04\x06\x02\x01\ + \x04\x12\x06\xee\x01\x02\xeb\x01\x04\n\r\n\x05\x04\x06\x02\x01\x06\x12\ + \x04\xee\x01\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xee\x01\t\x0f\ + \n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xee\x01\x12\x13\n\r\n\x05\x04\x06\ + \x02\x01\x08\x12\x04\xee\x01\x14<\n\x10\n\x08\x04\x06\x02\x01\x08\x9c\ + \x08\0\x12\x04\xee\x01\x15;\n7\n\x02\x04\x07\x12\x04\xf2\x01\0!\x1a+\x20\ + Response\x20for\x20the\x20`ValidateSchema`\x20method.\n\n\x0b\n\x03\x04\ + \x07\x01\x12\x04\xf2\x01\x08\x1e\n9\n\x02\x04\x08\x12\x06\xf5\x01\0\x90\ + \x02\x01\x1a+\x20Request\x20for\x20the\x20`ValidateMessage`\x20method.\n\ + \n\x0b\n\x03\x04\x08\x01\x12\x04\xf5\x01\x08\x1e\nu\n\x04\x04\x08\x02\0\ + \x12\x06\xf8\x01\x02\xfd\x01\x04\x1ae\x20Required.\x20The\x20name\x20of\ + \x20the\x20project\x20in\x20which\x20to\x20validate\x20schemas.\n\x20For\ + mat\x20is\x20`projects/{project-id}`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\ + \x12\x06\xf8\x01\x02\xf5\x01\x20\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xf8\ + \x01\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xf8\x01\t\x0f\n\r\n\x05\ + \x04\x08\x02\0\x03\x12\x04\xf8\x01\x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\ + \x12\x06\xf8\x01\x14\xfd\x01\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\ + \x12\x04\xf9\x01\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xfa\ + \x01\x04\xfc\x01\x05\n\x0e\n\x04\x04\x08\x08\0\x12\x06\xff\x01\x02\x89\ + \x02\x03\n\r\n\x05\x04\x08\x08\0\x01\x12\x04\xff\x01\x08\x13\nr\n\x04\ + \x04\x08\x02\x01\x12\x06\x83\x02\x04\x85\x02\x06\x1ab\x20Name\x20of\x20t\ + he\x20schema\x20against\x20which\x20to\x20validate.\n\n\x20Format\x20is\ + \x20`projects/{project}/schemas/{schema}`.\n\n\r\n\x05\x04\x08\x02\x01\ + \x05\x12\x04\x83\x02\x04\n\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\x83\x02\ + \x0b\x0f\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\x83\x02\x12\x13\n\x0f\n\ + \x05\x04\x08\x02\x01\x08\x12\x06\x83\x02\x14\x85\x02\x05\n\x0f\n\x07\x04\ + \x08\x02\x01\x08\x9f\x08\x12\x04\x84\x02\x06P\n7\n\x04\x04\x08\x02\x02\ + \x12\x04\x88\x02\x04\x16\x1a)\x20Ad-hoc\x20schema\x20against\x20which\ + \x20to\x20validate\n\n\r\n\x05\x04\x08\x02\x02\x06\x12\x04\x88\x02\x04\n\ + \n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\x88\x02\x0b\x11\n\r\n\x05\x04\x08\ + \x02\x02\x03\x12\x04\x88\x02\x14\x15\nG\n\x04\x04\x08\x02\x03\x12\x04\ + \x8c\x02\x02\x14\x1a9\x20Message\x20to\x20validate\x20against\x20the\x20\ + provided\x20`schema_spec`.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\x12\x06\x8c\ + \x02\x02\x89\x02\x03\n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\x8c\x02\x02\ + \x07\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\x8c\x02\x08\x0f\n\r\n\x05\x04\ + \x08\x02\x03\x03\x12\x04\x8c\x02\x12\x13\n2\n\x04\x04\x08\x02\x04\x12\ + \x04\x8f\x02\x02\x18\x1a$\x20The\x20encoding\x20expected\x20for\x20messa\ + ges\n\n\x0f\n\x05\x04\x08\x02\x04\x04\x12\x06\x8f\x02\x02\x8c\x02\x14\n\ + \r\n\x05\x04\x08\x02\x04\x06\x12\x04\x8f\x02\x02\n\n\r\n\x05\x04\x08\x02\ + \x04\x01\x12\x04\x8f\x02\x0b\x13\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\ + \x8f\x02\x16\x17\n8\n\x02\x04\t\x12\x04\x93\x02\0\"\x1a,\x20Response\x20\ + for\x20the\x20`ValidateMessage`\x20method.\n\n\x0b\n\x03\x04\t\x01\x12\ + \x04\x93\x02\x08\x1f\n5\n\x02\x05\x01\x12\x06\x96\x02\0\xa0\x02\x01\x1a'\ + \x20Possible\x20encoding\x20types\x20for\x20messages.\n\n\x0b\n\x03\x05\ + \x01\x01\x12\x04\x96\x02\x05\r\n\x1b\n\x04\x05\x01\x02\0\x12\x04\x98\x02\ + \x02\x1b\x1a\r\x20Unspecified\n\n\r\n\x05\x05\x01\x02\0\x01\x12\x04\x98\ + \x02\x02\x16\n\r\n\x05\x05\x01\x02\0\x02\x12\x04\x98\x02\x19\x1a\n\x1d\n\ + \x04\x05\x01\x02\x01\x12\x04\x9b\x02\x02\x0b\x1a\x0f\x20JSON\x20encoding\ + \n\n\r\n\x05\x05\x01\x02\x01\x01\x12\x04\x9b\x02\x02\x06\n\r\n\x05\x05\ + \x01\x02\x01\x02\x12\x04\x9b\x02\t\n\n}\n\x04\x05\x01\x02\x02\x12\x04\ + \x9f\x02\x02\r\x1ao\x20Binary\x20encoding,\x20as\x20defined\x20by\x20the\ + \x20schema\x20type.\x20For\x20some\x20schema\x20types,\n\x20binary\x20en\ + coding\x20may\x20not\x20be\x20available.\n\n\r\n\x05\x05\x01\x02\x02\x01\ + \x12\x04\x9f\x02\x02\x08\n\r\n\x05\x05\x01\x02\x02\x02\x12\x04\x9f\x02\ + \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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema_grpc.rs new file mode 100644 index 0000000000..6c0fc45418 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1/schema_grpc.rs @@ -0,0 +1,209 @@ +// 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_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 { + 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 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: ::futures::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); + fn get_schema(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::GetSchemaRequest, sink: ::grpcio::UnarySink); + fn list_schemas(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::ListSchemasRequest, sink: ::grpcio::UnarySink); + fn delete_schema(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::DeleteSchemaRequest, sink: ::grpcio::UnarySink); + fn validate_schema(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::ValidateSchemaRequest, sink: ::grpcio::UnarySink); + fn validate_message(&mut self, ctx: ::grpcio::RpcContext, req: super::schema::ValidateMessageRequest, sink: ::grpcio::UnarySink); +} + +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_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/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub.rs new file mode 100644 index 0000000000..3465882c7d --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub.rs @@ -0,0 +1,5057 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/v1beta2/pubsub.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Topic { + // 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 Topic { + fn default() -> &'a Topic { + ::default_instance() + } +} + +impl Topic { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static Topic { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Topic::new) + } +} + +impl ::protobuf::Clear for Topic { + fn clear(&mut self) { + self.name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PubsubMessage { + // message fields + pub data: ::std::vec::Vec, + pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + pub message_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a PubsubMessage { + fn default() -> &'a PubsubMessage { + ::default_instance() + } +} + +impl PubsubMessage { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message_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.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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static PubsubMessage { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + 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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetTopicRequest { + // 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 GetTopicRequest { + fn default() -> &'a GetTopicRequest { + ::default_instance() + } +} + +impl GetTopicRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static GetTopicRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetTopicRequest::new) + } +} + +impl ::protobuf::Clear for GetTopicRequest { + fn clear(&mut self) { + self.topic.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[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<'a> ::std::default::Default for &'a PublishRequest { + fn default() -> &'a PublishRequest { + ::default_instance() + } +} + +impl PublishRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.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; + 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); + 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)?; + } + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static PublishRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PublishRequest::new) + } +} + +impl ::protobuf::Clear for PublishRequest { + fn clear(&mut self) { + self.topic.clear(); + self.messages.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PublishResponse { + // message fields + pub message_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 PublishResponse { + fn default() -> &'a PublishResponse { + ::default_instance() + } +} + +impl PublishResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + for v in &self.message_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() -> 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 default_instance() -> &'static PublishResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PublishResponse::new) + } +} + +impl ::protobuf::Clear for PublishResponse { + fn clear(&mut self) { + self.message_ids.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicsRequest { + // 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 ListTopicsRequest { + fn default() -> &'a ListTopicsRequest { + ::default_instance() + } +} + +impl ListTopicsRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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() -> 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 default_instance() -> &'static ListTopicsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicsRequest::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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicsResponse { + // message fields + pub topics: ::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 ListTopicsResponse { + fn default() -> &'a ListTopicsResponse { + ::default_instance() + } +} + +impl ListTopicsResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.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.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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 default_instance() -> &'static ListTopicsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicsResponse::new) + } +} + +impl ::protobuf::Clear for ListTopicsResponse { + fn clear(&mut self) { + self.topics.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicSubscriptionsRequest { + // 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, +} + +impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsRequest { + fn default() -> &'a ListTopicSubscriptionsRequest { + ::default_instance() + } +} + +impl ListTopicSubscriptionsRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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.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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + 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() -> 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 default_instance() -> &'static ListTopicSubscriptionsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicSubscriptionsRequest::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListTopicSubscriptionsResponse { + // message fields + pub subscriptions: ::protobuf::RepeatedField<::std::string::String>, + 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 ListTopicSubscriptionsResponse { + fn default() -> &'a ListTopicSubscriptionsResponse { + ::default_instance() + } +} + +impl ListTopicSubscriptionsResponse { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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 { + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + 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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static ListTopicSubscriptionsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListTopicSubscriptionsResponse::new) + } +} + +impl ::protobuf::Clear for ListTopicSubscriptionsResponse { + fn clear(&mut self) { + self.subscriptions.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteTopicRequest { + // 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 DeleteTopicRequest { + fn default() -> &'a DeleteTopicRequest { + ::default_instance() + } +} + +impl DeleteTopicRequest { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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() -> 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 default_instance() -> &'static DeleteTopicRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteTopicRequest::new) + } +} + +impl ::protobuf::Clear for DeleteTopicRequest { + fn clear(&mut self) { + self.topic.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Subscription { + // message fields + pub name: ::std::string::String, + pub topic: ::std::string::String, + pub push_config: ::protobuf::SingularPtrField, + pub ack_deadline_seconds: i32, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Subscription { + fn default() -> &'a Subscription { + ::default_instance() + } +} + +impl Subscription { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 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)?; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 self.ack_deadline_seconds != 0 { + my_size += ::protobuf::rt::value_size(5, 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.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 self.ack_deadline_seconds != 0 { + os.write_int32(5, 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() -> 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 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.ack_deadline_seconds = 0; + 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(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>, + // 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() + } +} + +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.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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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 ReceivedMessage { + // message fields + pub ack_id: ::std::string::String, + pub message: ::protobuf::SingularPtrField, + // 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.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()) + } +} + +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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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 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.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()) + } +} + +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.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()) + } +} + +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.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()) + } +} + +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_id: ::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()) + } + + // 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; + } +} + +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)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ack_id)?; + }, + 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); + } + if !self.ack_id.is_empty() { + 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::unknown_fields_size(self.get_unknown_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.ack_id.is_empty() { + os.write_string(2, &self.ack_id)?; + } + 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_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 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_id.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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\"google/pubsub/v1beta2/pubsub.proto\x12\x15google.pubsub.v1beta2\x1a\ + \x1bgoogle/protobuf/empty.proto\"\x1b\n\x05Topic\x12\x12\n\x04name\x18\ + \x01\x20\x01(\tR\x04name\"\xd7\x01\n\rPubsubMessage\x12\x12\n\x04data\ + \x18\x01\x20\x01(\x0cR\x04data\x12T\n\nattributes\x18\x02\x20\x03(\x0b24\ + .google.pubsub.v1beta2.PubsubMessage.AttributesEntryR\nattributes\x12\ + \x1d\n\nmessage_id\x18\x03\x20\x01(\tR\tmessageId\x1a=\n\x0fAttributesEn\ + try\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\x05topic\"h\n\x0ePublishRequest\x12\x14\n\ + \x05topic\x18\x01\x20\x01(\tR\x05topic\x12@\n\x08messages\x18\x02\x20\ + \x03(\x0b2$.google.pubsub.v1beta2.PubsubMessageR\x08messages\"2\n\x0fPub\ + lishResponse\x12\x1f\n\x0bmessage_ids\x18\x01\x20\x03(\tR\nmessageIds\"i\ + \n\x11ListTopicsRequest\x12\x18\n\x07project\x18\x01\x20\x01(\tR\x07proj\ + ect\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npa\ + ge_token\x18\x03\x20\x01(\tR\tpageToken\"r\n\x12ListTopicsResponse\x124\ + \n\x06topics\x18\x01\x20\x03(\x0b2\x1c.google.pubsub.v1beta2.TopicR\x06t\ + opics\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"q\n\ + \x1dListTopicSubscriptionsRequest\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\"n\n\x1eListTopicSubscript\ + ionsResponse\x12$\n\rsubscriptions\x18\x01\x20\x03(\tR\rsubscriptions\ + \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"*\n\x12De\ + leteTopicRequest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05topic\"\xae\ + \x01\n\x0cSubscription\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\ + \x14\n\x05topic\x18\x02\x20\x01(\tR\x05topic\x12B\n\x0bpush_config\x18\ + \x04\x20\x01(\x0b2!.google.pubsub.v1beta2.PushConfigR\npushConfig\x120\n\ + \x14ack_deadline_seconds\x18\x05\x20\x01(\x05R\x12ackDeadlineSeconds\"\ + \xc3\x01\n\nPushConfig\x12#\n\rpush_endpoint\x18\x01\x20\x01(\tR\x0cpush\ + Endpoint\x12Q\n\nattributes\x18\x02\x20\x03(\x0b21.google.pubsub.v1beta2\ + .PushConfig.AttributesEntryR\nattributes\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\"h\n\x0fReceivedMessage\x12\x15\n\x06ack_id\ + \x18\x01\x20\x01(\tR\x05ackId\x12>\n\x07message\x18\x02\x20\x01(\x0b2$.g\ + oogle.pubsub.v1beta2.PubsubMessageR\x07message\"<\n\x16GetSubscriptionRe\ + quest\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscription\"p\n\ + \x18ListSubscriptionsRequest\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\"\x8e\x01\n\x19ListSub\ + scriptionsResponse\x12I\n\rsubscriptions\x18\x01\x20\x03(\x0b2#.google.p\ + ubsub.v1beta2.SubscriptionR\rsubscriptions\x12&\n\x0fnext_page_token\x18\ + \x02\x20\x01(\tR\rnextPageToken\"?\n\x19DeleteSubscriptionRequest\x12\"\ + \n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscription\"\x81\x01\n\x17Mo\ + difyPushConfigRequest\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csub\ + scription\x12B\n\x0bpush_config\x18\x02\x20\x01(\x0b2!.google.pubsub.v1b\ + eta2.PushConfigR\npushConfig\"\x83\x01\n\x0bPullRequest\x12\"\n\x0csubsc\ + ription\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\"c\n\x0cPullResponse\x12S\n\x11receive\ + d_messages\x18\x01\x20\x03(\x0b2&.google.pubsub.v1beta2.ReceivedMessageR\ + \x10receivedMessages\"\x87\x01\n\x18ModifyAckDeadlineRequest\x12\"\n\x0c\ + subscription\x18\x01\x20\x01(\tR\x0csubscription\x12\x15\n\x06ack_id\x18\ + \x02\x20\x01(\tR\x05ackId\x120\n\x14ack_deadline_seconds\x18\x03\x20\x01\ + (\x05R\x12ackDeadlineSeconds\"Q\n\x12AcknowledgeRequest\x12\"\n\x0csubsc\ + ription\x18\x01\x20\x01(\tR\x0csubscription\x12\x17\n\x07ack_ids\x18\x02\ + \x20\x03(\tR\x06ackIds2\x88\x06\n\nSubscriber\x12^\n\x12CreateSubscripti\ + on\x12#.google.pubsub.v1beta2.Subscription\x1a#.google.pubsub.v1beta2.Su\ + bscription\x12e\n\x0fGetSubscription\x12-.google.pubsub.v1beta2.GetSubsc\ + riptionRequest\x1a#.google.pubsub.v1beta2.Subscription\x12v\n\x11ListSub\ + scriptions\x12/.google.pubsub.v1beta2.ListSubscriptionsRequest\x1a0.goog\ + le.pubsub.v1beta2.ListSubscriptionsResponse\x12^\n\x12DeleteSubscription\ + \x120.google.pubsub.v1beta2.DeleteSubscriptionRequest\x1a\x16.google.pro\ + tobuf.Empty\x12\\\n\x11ModifyAckDeadline\x12/.google.pubsub.v1beta2.Modi\ + fyAckDeadlineRequest\x1a\x16.google.protobuf.Empty\x12P\n\x0bAcknowledge\ + \x12).google.pubsub.v1beta2.AcknowledgeRequest\x1a\x16.google.protobuf.E\ + mpty\x12O\n\x04Pull\x12\".google.pubsub.v1beta2.PullRequest\x1a#.google.\ + pubsub.v1beta2.PullResponse\x12Z\n\x10ModifyPushConfig\x12..google.pubsu\ + b.v1beta2.ModifyPushConfigRequest\x1a\x16.google.protobuf.Empty2\xbf\x04\ + \n\tPublisher\x12I\n\x0bCreateTopic\x12\x1c.google.pubsub.v1beta2.Topic\ + \x1a\x1c.google.pubsub.v1beta2.Topic\x12X\n\x07Publish\x12%.google.pubsu\ + b.v1beta2.PublishRequest\x1a&.google.pubsub.v1beta2.PublishResponse\x12P\ + \n\x08GetTopic\x12&.google.pubsub.v1beta2.GetTopicRequest\x1a\x1c.google\ + .pubsub.v1beta2.Topic\x12a\n\nListTopics\x12(.google.pubsub.v1beta2.List\ + TopicsRequest\x1a).google.pubsub.v1beta2.ListTopicsResponse\x12\x85\x01\ + \n\x16ListTopicSubscriptions\x124.google.pubsub.v1beta2.ListTopicSubscri\ + ptionsRequest\x1a5.google.pubsub.v1beta2.ListTopicSubscriptionsResponse\ + \x12P\n\x0bDeleteTopic\x12).google.pubsub.v1beta2.DeleteTopicRequest\x1a\ + \x16.google.protobuf.EmptyBg\n\x19com.google.pubsub.v1beta2B\x0bPubsubPr\ + otoP\x01Z;google.golang.org/genproto/googleapis/pubsub/v1beta2;pubsubJ\ + \xecx\n\x07\x12\x05\x0e\0\x82\x03\x01\n\xc2\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb7\x04\x20Copyright\x20(c)\x202015,\x20Google\x20Inc.\n\n\x20Lice\ + nsed\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\x20may\x20obtai\ + n\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,\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\x1e\n\t\n\x02\x03\0\x12\x03\x12\0%\n\ + \x08\n\x01\x08\x12\x03\x14\0R\n\t\n\x02\x08\x0b\x12\x03\x14\0R\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\02\n\t\n\x02\x08\x01\x12\x03\x17\02\n\x91\x01\n\x02\x06\0\x12\x04\ + \x1b\0Q\x01\x1a\x84\x01\x20The\x20service\x20that\x20an\x20application\ + \x20uses\x20to\x20manipulate\x20subscriptions\x20and\x20to\n\x20consume\ + \x20messages\x20from\x20a\x20subscription\x20via\x20the\x20Pull\x20metho\ + d.\n\n\n\n\x03\x06\0\x01\x12\x03\x1b\x08\x12\n\xd6\x02\n\x04\x06\0\x02\0\ + \x12\x03\"\x02>\x1a\xc8\x02\x20Creates\x20a\x20subscription\x20to\x20a\ + \x20given\x20topic\x20for\x20a\x20given\x20subscriber.\n\x20If\x20the\ + \x20subscription\x20already\x20exists,\x20returns\x20ALREADY_EXISTS.\n\ + \x20If\x20the\x20corresponding\x20topic\x20doesn't\x20exist,\x20returns\ + \x20NOT_FOUND.\n\n\x20If\x20the\x20name\x20is\x20not\x20provided\x20in\ + \x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\x20random\n\ + \x20name\x20for\x20this\x20subscription\x20on\x20the\x20same\x20project\ + \x20as\x20the\x20topic.\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\"\x19%\n\x0c\n\x05\x06\0\x02\0\x03\ + \x12\x03\"0<\n@\n\x04\x06\0\x02\x01\x12\x03%\x02E\x1a3\x20Gets\x20the\ + \x20configuration\x20details\x20of\x20a\x20subscription.\n\n\x0c\n\x05\ + \x06\0\x02\x01\x01\x12\x03%\x06\x15\n\x0c\n\x05\x06\0\x02\x01\x02\x12\ + \x03%\x16,\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03%7C\n-\n\x04\x06\0\x02\ + \x02\x12\x04(\x02)*\x1a\x1f\x20Lists\x20matching\x20subscriptions.\n\n\ + \x0c\n\x05\x06\0\x02\x02\x01\x12\x03(\x06\x17\n\x0c\n\x05\x06\0\x02\x02\ + \x02\x12\x03(\x180\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03)\x0f(\n\xe9\x02\ + \n\x04\x06\0\x02\x03\x12\x040\x021&\x1a\xda\x02\x20Deletes\x20an\x20exis\ + ting\x20subscription.\x20All\x20pending\x20messages\x20in\x20the\x20subs\ + cription\n\x20are\x20immediately\x20dropped.\x20Calls\x20to\x20Pull\x20a\ + fter\x20deletion\x20will\x20return\n\x20NOT_FOUND.\x20After\x20a\x20subs\ + cription\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\x20\ + its\x20topic\x20unless\x20the\x20same\x20topic\x20is\x20specified.\n\n\ + \x0c\n\x05\x06\0\x02\x03\x01\x12\x030\x06\x18\n\x0c\n\x05\x06\0\x02\x03\ + \x02\x12\x030\x192\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x031\x0f$\n\xfb\x01\ + \n\x04\x06\0\x02\x04\x12\x047\x028&\x1a\xec\x01\x20Modifies\x20the\x20ac\ + k\x20deadline\x20for\x20a\x20specific\x20message.\x20This\x20method\x20i\ + s\x20useful\x20to\n\x20indicate\x20that\x20more\x20time\x20is\x20needed\ + \x20to\x20process\x20a\x20message\x20by\x20the\x20subscriber,\n\x20or\ + \x20to\x20make\x20the\x20message\x20available\x20for\x20redelivery\x20if\ + \x20the\x20processing\x20was\n\x20interrupted.\n\n\x0c\n\x05\x06\0\x02\ + \x04\x01\x12\x037\x06\x17\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x037\x180\n\ + \x0c\n\x05\x06\0\x02\x04\x03\x12\x038\x0f$\n\xe9\x02\n\x04\x06\0\x02\x05\ + \x12\x03A\x02F\x1a\xdb\x02\x20Acknowledges\x20the\x20messages\x20associa\ + ted\x20with\x20the\x20ack\x20tokens\x20in\x20the\n\x20AcknowledgeRequest\ + .\x20The\x20Pub/Sub\x20system\x20can\x20remove\x20the\x20relevant\x20mes\ + sages\n\x20from\x20the\x20subscription.\n\n\x20Acknowledging\x20a\x20mes\ + sage\x20whose\x20ack\x20deadline\x20has\x20expired\x20may\x20succeed,\n\ + \x20but\x20such\x20a\x20message\x20may\x20be\x20redelivered\x20later.\ + \x20Acknowledging\x20a\x20message\x20more\n\x20than\x20once\x20will\x20n\ + ot\x20result\x20in\x20an\x20error.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\ + \x03A\x06\x11\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03A\x12$\n\x0c\n\x05\ + \x06\0\x02\x05\x03\x12\x03A/D\n\xf0\x01\n\x04\x06\0\x02\x06\x12\x03G\x02\ + /\x1a\xe2\x01\x20Pulls\x20messages\x20from\x20the\x20server.\x20Returns\ + \x20an\x20empty\x20list\x20if\x20there\x20are\x20no\n\x20messages\x20ava\ + ilable\x20in\x20the\x20backlog.\x20The\x20server\x20may\x20return\x20UNA\ + VAILABLE\x20if\n\x20there\x20are\x20too\x20many\x20concurrent\x20pull\ + \x20requests\x20pending\x20for\x20the\x20given\n\x20subscription.\n\n\ + \x0c\n\x05\x06\0\x02\x06\x01\x12\x03G\x06\n\n\x0c\n\x05\x06\0\x02\x06\ + \x02\x12\x03G\x0b\x16\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03G!-\n\xef\x02\ + \n\x04\x06\0\x02\x07\x12\x03P\x02P\x1a\xe1\x02\x20Modifies\x20the\x20Pus\ + hConfig\x20for\x20a\x20specified\x20subscription.\n\n\x20This\x20may\x20\ + be\x20used\x20to\x20change\x20a\x20push\x20subscription\x20to\x20a\x20pu\ + ll\x20one\x20(signified\n\x20by\x20an\x20empty\x20PushConfig)\x20or\x20v\ + ice\x20versa,\x20or\x20change\x20the\x20endpoint\x20URL\x20and\x20other\ + \n\x20attributes\x20of\x20a\x20push\x20subscription.\x20Messages\x20will\ + \x20accumulate\x20for\n\x20delivery\x20continuously\x20through\x20the\ + \x20call\x20regardless\x20of\x20changes\x20to\x20the\n\x20PushConfig.\n\ + \n\x0c\n\x05\x06\0\x02\x07\x01\x12\x03P\x06\x16\n\x0c\n\x05\x06\0\x02\ + \x07\x02\x12\x03P\x17.\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03P9N\nj\n\x02\ + \x06\x01\x12\x04U\0m\x01\x1a^\x20The\x20service\x20that\x20an\x20applica\ + tion\x20uses\x20to\x20manipulate\x20topics,\x20and\x20to\x20send\n\x20me\ + ssages\x20to\x20a\x20topic.\n\n\n\n\x03\x06\x01\x01\x12\x03U\x08\x11\n;\ + \n\x04\x06\x01\x02\0\x12\x03W\x02)\x1a.\x20Creates\x20the\x20given\x20to\ + pic\x20with\x20the\x20given\x20name.\n\n\x0c\n\x05\x06\x01\x02\0\x01\x12\ + \x03W\x06\x11\n\x0c\n\x05\x06\x01\x02\0\x02\x12\x03W\x12\x17\n\x0c\n\x05\ + \x06\x01\x02\0\x03\x12\x03W\"'\nf\n\x04\x06\x01\x02\x01\x12\x03[\x028\ + \x1aY\x20Adds\x20one\x20or\x20more\x20messages\x20to\x20the\x20topic.\ + \x20Returns\x20NOT_FOUND\x20if\x20the\x20topic\x20does\n\x20not\x20exist\ + .\n\n\x0c\n\x05\x06\x01\x02\x01\x01\x12\x03[\x06\r\n\x0c\n\x05\x06\x01\ + \x02\x01\x02\x12\x03[\x0e\x1c\n\x0c\n\x05\x06\x01\x02\x01\x03\x12\x03['6\ + \n1\n\x04\x06\x01\x02\x02\x12\x03^\x020\x1a$\x20Gets\x20the\x20configura\ + tion\x20of\x20a\x20topic.\n\n\x0c\n\x05\x06\x01\x02\x02\x01\x12\x03^\x06\ + \x0e\n\x0c\n\x05\x06\x01\x02\x02\x02\x12\x03^\x0f\x1e\n\x0c\n\x05\x06\ + \x01\x02\x02\x03\x12\x03^).\n%\n\x04\x06\x01\x02\x03\x12\x03a\x02A\x1a\ + \x18\x20Lists\x20matching\x20topics.\n\n\x0c\n\x05\x06\x01\x02\x03\x01\ + \x12\x03a\x06\x10\n\x0c\n\x05\x06\x01\x02\x03\x02\x12\x03a\x11\"\n\x0c\n\ + \x05\x06\x01\x02\x03\x03\x12\x03a-?\nC\n\x04\x06\x01\x02\x04\x12\x04d\ + \x02e/\x1a5\x20Lists\x20the\x20name\x20of\x20the\x20subscriptions\x20for\ + \x20this\x20topic.\n\n\x0c\n\x05\x06\x01\x02\x04\x01\x12\x03d\x06\x1c\n\ + \x0c\n\x05\x06\x01\x02\x04\x02\x12\x03d\x1d:\n\x0c\n\x05\x06\x01\x02\x04\ + \x03\x12\x03e\x0f-\n\xbb\x02\n\x04\x06\x01\x02\x05\x12\x03l\x02F\x1a\xad\ + \x02\x20Deletes\x20the\x20topic\x20with\x20the\x20given\x20name.\x20Retu\ + rns\x20NOT_FOUND\x20if\x20the\x20topic\x20does\n\x20not\x20exist.\x20Aft\ + er\x20a\x20topic\x20is\x20deleted,\x20a\x20new\x20topic\x20may\x20be\x20\ + created\x20with\x20the\n\x20same\x20name;\x20this\x20is\x20an\x20entirel\ + y\x20new\x20topic\x20with\x20none\x20of\x20the\x20old\n\x20configuration\ + \x20or\x20subscriptions.\x20Existing\x20subscriptions\x20to\x20this\x20t\ + opic\x20are\n\x20not\x20deleted.\n\n\x0c\n\x05\x06\x01\x02\x05\x01\x12\ + \x03l\x06\x11\n\x0c\n\x05\x06\x01\x02\x05\x02\x12\x03l\x12$\n\x0c\n\x05\ + \x06\x01\x02\x05\x03\x12\x03l/D\n\x1f\n\x02\x04\0\x12\x04p\0s\x01\x1a\ + \x13\x20A\x20topic\x20resource.\n\n\n\n\x03\x04\0\x01\x12\x03p\x08\r\n!\ + \n\x04\x04\0\x02\0\x12\x03r\x02\x12\x1a\x14\x20Name\x20of\x20the\x20topi\ + c.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04r\x02p\x0f\n\x0c\n\x05\x04\0\x02\0\ + \x05\x12\x03r\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03r\t\r\n\x0c\n\ + \x05\x04\0\x02\0\x03\x12\x03r\x10\x11\n1\n\x02\x04\x01\x12\x05v\0\x83\ + \x01\x01\x1a$\x20A\x20message\x20data\x20and\x20its\x20attributes.\n\n\n\ + \n\x03\x04\x01\x01\x12\x03v\x08\x15\ng\n\x04\x04\x01\x02\0\x12\x03y\x02\ + \x11\x1aZ\x20The\x20message\x20payload.\x20For\x20JSON\x20requests,\x20t\ + he\x20value\x20of\x20this\x20field\x20must\x20be\n\x20base64-encoded.\n\ + \n\r\n\x05\x04\x01\x02\0\x04\x12\x04y\x02v\x17\n\x0c\n\x05\x04\x01\x02\0\ + \x05\x12\x03y\x02\x07\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03y\x08\x0c\n\ + \x0c\n\x05\x04\x01\x02\0\x03\x12\x03y\x0f\x10\n4\n\x04\x04\x01\x02\x01\ + \x12\x03|\x02%\x1a'\x20Optional\x20attributes\x20for\x20this\x20message.\ + \n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04|\x02y\x11\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\x20\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03|#$\n\xa0\x02\n\x04\x04\ + \x01\x02\x02\x12\x04\x82\x01\x02\x18\x1a\x91\x02\x20ID\x20of\x20this\x20\ + message\x20assigned\x20by\x20the\x20server\x20at\x20publication\x20time.\ + \x20Guaranteed\n\x20to\x20be\x20unique\x20within\x20the\x20topic.\x20Thi\ + s\x20value\x20may\x20be\x20read\x20by\x20a\x20subscriber\n\x20that\x20re\ + ceives\x20a\x20PubsubMessage\x20via\x20a\x20Pull\x20call\x20or\x20a\x20p\ + ush\x20delivery.\x20It\x20must\n\x20not\x20be\x20populated\x20by\x20a\ + \x20publisher\x20in\x20a\x20Publish\x20call.\n\n\x0e\n\x05\x04\x01\x02\ + \x02\x04\x12\x05\x82\x01\x02|%\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\x82\ + \x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x82\x01\t\x13\n\r\n\ + \x05\x04\x01\x02\x02\x03\x12\x04\x82\x01\x16\x17\n0\n\x02\x04\x02\x12\ + \x06\x86\x01\0\x89\x01\x01\x1a\"\x20Request\x20for\x20the\x20GetTopic\ + \x20method.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\x86\x01\x08\x17\n-\n\x04\ + \x04\x02\x02\0\x12\x04\x88\x01\x02\x13\x1a\x1f\x20The\x20name\x20of\x20t\ + he\x20topic\x20to\x20get.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\x88\ + \x01\x02\x86\x01\x19\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\x88\x01\x02\x08\ + \n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x88\x01\t\x0e\n\r\n\x05\x04\x02\x02\ + \0\x03\x12\x04\x88\x01\x11\x12\n/\n\x02\x04\x03\x12\x06\x8c\x01\0\x92\ + \x01\x01\x1a!\x20Request\x20for\x20the\x20Publish\x20method.\n\n\x0b\n\ + \x03\x04\x03\x01\x12\x04\x8c\x01\x08\x16\nL\n\x04\x04\x03\x02\0\x12\x04\ + \x8e\x01\x02\x13\x1a>\x20The\x20messages\x20in\x20the\x20request\x20will\ + \x20be\x20published\x20on\x20this\x20topic.\n\n\x0f\n\x05\x04\x03\x02\0\ + \x04\x12\x06\x8e\x01\x02\x8c\x01\x18\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\ + \x8e\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x8e\x01\t\x0e\n\r\n\ + \x05\x04\x03\x02\0\x03\x12\x04\x8e\x01\x11\x12\n(\n\x04\x04\x03\x02\x01\ + \x12\x04\x91\x01\x02&\x1a\x1a\x20The\x20messages\x20to\x20publish.\n\n\r\ + \n\x05\x04\x03\x02\x01\x04\x12\x04\x91\x01\x02\n\n\r\n\x05\x04\x03\x02\ + \x01\x06\x12\x04\x91\x01\x0b\x18\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\ + \x91\x01\x19!\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x91\x01$%\n0\n\x02\ + \x04\x04\x12\x06\x95\x01\0\x9a\x01\x01\x1a\"\x20Response\x20for\x20the\ + \x20Publish\x20method.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x95\x01\x08\x17\ + \n\xa8\x01\n\x04\x04\x04\x02\0\x12\x04\x99\x01\x02\"\x1a\x99\x01\x20The\ + \x20server-assigned\x20ID\x20of\x20each\x20published\x20message,\x20in\ + \x20the\x20same\x20order\x20as\n\x20the\x20messages\x20in\x20the\x20requ\ + est.\x20IDs\x20are\x20guaranteed\x20to\x20be\x20unique\x20within\n\x20th\ + e\x20topic.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\x99\x01\x02\n\n\r\n\ + \x05\x04\x04\x02\0\x05\x12\x04\x99\x01\x0b\x11\n\r\n\x05\x04\x04\x02\0\ + \x01\x12\x04\x99\x01\x12\x1d\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x99\x01\ + \x20!\n2\n\x02\x04\x05\x12\x06\x9d\x01\0\xa8\x01\x01\x1a$\x20Request\x20\ + for\x20the\x20ListTopics\x20method.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\ + \x9d\x01\x08\x19\nD\n\x04\x04\x05\x02\0\x12\x04\x9f\x01\x02\x15\x1a6\x20\ + The\x20name\x20of\x20the\x20cloud\x20project\x20that\x20topics\x20belong\ + \x20to.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\x9f\x01\x02\x9d\x01\x1b\ + \n\r\n\x05\x04\x05\x02\0\x05\x12\x04\x9f\x01\x02\x08\n\r\n\x05\x04\x05\ + \x02\0\x01\x12\x04\x9f\x01\t\x10\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x9f\ + \x01\x13\x14\n3\n\x04\x04\x05\x02\x01\x12\x04\xa2\x01\x02\x16\x1a%\x20Ma\ + ximum\x20number\x20of\x20topics\x20to\x20return.\n\n\x0f\n\x05\x04\x05\ + \x02\x01\x04\x12\x06\xa2\x01\x02\x9f\x01\x15\n\r\n\x05\x04\x05\x02\x01\ + \x05\x12\x04\xa2\x01\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xa2\ + \x01\x08\x11\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xa2\x01\x14\x15\n\xc0\ + \x01\n\x04\x04\x05\x02\x02\x12\x04\xa7\x01\x02\x18\x1a\xb1\x01\x20The\ + \x20value\x20returned\x20by\x20the\x20last\x20ListTopicsResponse;\x20ind\ + icates\x20that\x20this\x20is\n\x20a\x20continuation\x20of\x20a\x20prior\ + \x20ListTopics\x20call,\x20and\x20that\x20the\x20system\x20should\n\x20r\ + eturn\x20the\x20next\x20page\x20of\x20data.\n\n\x0f\n\x05\x04\x05\x02\ + \x02\x04\x12\x06\xa7\x01\x02\xa2\x01\x16\n\r\n\x05\x04\x05\x02\x02\x05\ + \x12\x04\xa7\x01\x02\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xa7\x01\t\ + \x13\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\xa7\x01\x16\x17\n3\n\x02\x04\ + \x06\x12\x06\xab\x01\0\xb2\x01\x01\x1a%\x20Response\x20for\x20the\x20Lis\ + tTopics\x20method.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xab\x01\x08\x1a\n%\ + \n\x04\x04\x06\x02\0\x12\x04\xad\x01\x02\x1c\x1a\x17\x20The\x20resulting\ + \x20topics.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xad\x01\x02\n\n\r\n\ + \x05\x04\x06\x02\0\x06\x12\x04\xad\x01\x0b\x10\n\r\n\x05\x04\x06\x02\0\ + \x01\x12\x04\xad\x01\x11\x17\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xad\x01\ + \x1a\x1b\n\x97\x01\n\x04\x04\x06\x02\x01\x12\x04\xb1\x01\x02\x1d\x1a\x88\ + \x01\x20If\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\ + \x20more\x20topics\x20that\x20match\x20the\n\x20request;\x20this\x20valu\ + e\x20should\x20be\x20passed\x20in\x20a\x20new\x20ListTopicsRequest.\n\n\ + \x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xb1\x01\x02\xad\x01\x1c\n\r\n\x05\ + \x04\x06\x02\x01\x05\x12\x04\xb1\x01\x02\x08\n\r\n\x05\x04\x06\x02\x01\ + \x01\x12\x04\xb1\x01\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xb1\x01\ + \x1b\x1c\n>\n\x02\x04\x07\x12\x06\xb5\x01\0\xc0\x01\x01\x1a0\x20Request\ + \x20for\x20the\x20ListTopicSubscriptions\x20method.\n\n\x0b\n\x03\x04\ + \x07\x01\x12\x04\xb5\x01\x08%\nI\n\x04\x04\x07\x02\0\x12\x04\xb7\x01\x02\ + \x13\x1a;\x20The\x20name\x20of\x20the\x20topic\x20that\x20subscriptions\ + \x20are\x20attached\x20to.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xb7\ + \x01\x02\xb5\x01'\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xb7\x01\x02\x08\n\ + \r\n\x05\x04\x07\x02\0\x01\x12\x04\xb7\x01\t\x0e\n\r\n\x05\x04\x07\x02\0\ + \x03\x12\x04\xb7\x01\x11\x12\n?\n\x04\x04\x07\x02\x01\x12\x04\xba\x01\ + \x02\x16\x1a1\x20Maximum\x20number\x20of\x20subscription\x20names\x20to\ + \x20return.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xba\x01\x02\xb7\ + \x01\x13\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xba\x01\x02\x07\n\r\n\x05\ + \x04\x07\x02\x01\x01\x12\x04\xba\x01\x08\x11\n\r\n\x05\x04\x07\x02\x01\ + \x03\x12\x04\xba\x01\x14\x15\n\xd8\x01\n\x04\x04\x07\x02\x02\x12\x04\xbf\ + \x01\x02\x18\x1a\xc9\x01\x20The\x20value\x20returned\x20by\x20the\x20las\ + t\x20ListTopicSubscriptionsResponse;\x20indicates\n\x20that\x20this\x20i\ + s\x20a\x20continuation\x20of\x20a\x20prior\x20ListTopicSubscriptions\x20\ + call,\x20and\n\x20that\x20the\x20system\x20should\x20return\x20the\x20ne\ + xt\x20page\x20of\x20data.\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xbf\ + \x01\x02\xba\x01\x16\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\xbf\x01\x02\ + \x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xbf\x01\t\x13\n\r\n\x05\x04\ + \x07\x02\x02\x03\x12\x04\xbf\x01\x16\x17\n?\n\x02\x04\x08\x12\x06\xc3\ + \x01\0\xcb\x01\x01\x1a1\x20Response\x20for\x20the\x20ListTopicSubscripti\ + ons\x20method.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xc3\x01\x08&\nF\n\x04\ + \x04\x08\x02\0\x12\x04\xc5\x01\x02$\x1a8\x20The\x20names\x20of\x20the\ + \x20subscriptions\x20that\x20match\x20the\x20request.\n\n\r\n\x05\x04\ + \x08\x02\0\x04\x12\x04\xc5\x01\x02\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\ + \xc5\x01\x0b\x11\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xc5\x01\x12\x1f\n\r\ + \n\x05\x04\x08\x02\0\x03\x12\x04\xc5\x01\"#\n\xc5\x01\n\x04\x04\x08\x02\ + \x01\x12\x04\xca\x01\x02\x1d\x1a\xb6\x01\x20If\x20not\x20empty,\x20indic\ + ates\x20that\x20there\x20may\x20be\x20more\x20subscriptions\x20that\x20m\ + atch\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20passed\x20\ + in\x20a\x20new\n\x20ListTopicSubscriptionsRequest\x20to\x20get\x20more\ + \x20subscriptions.\n\n\x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xca\x01\x02\ + \xc5\x01$\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xca\x01\x02\x08\n\r\n\ + \x05\x04\x08\x02\x01\x01\x12\x04\xca\x01\t\x18\n\r\n\x05\x04\x08\x02\x01\ + \x03\x12\x04\xca\x01\x1b\x1c\n3\n\x02\x04\t\x12\x06\xce\x01\0\xd1\x01\ + \x01\x1a%\x20Request\x20for\x20the\x20DeleteTopic\x20method.\n\n\x0b\n\ + \x03\x04\t\x01\x12\x04\xce\x01\x08\x1a\n,\n\x04\x04\t\x02\0\x12\x04\xd0\ + \x01\x02\x13\x1a\x1e\x20Name\x20of\x20the\x20topic\x20to\x20delete.\n\n\ + \x0f\n\x05\x04\t\x02\0\x04\x12\x06\xd0\x01\x02\xce\x01\x1c\n\r\n\x05\x04\ + \t\x02\0\x05\x12\x04\xd0\x01\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\ + \xd0\x01\t\x0e\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xd0\x01\x11\x12\n(\n\ + \x02\x04\n\x12\x06\xd4\x01\0\xf2\x01\x01\x1a\x1a\x20A\x20subscription\ + \x20resource.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xd4\x01\x08\x14\n)\n\x04\ + \x04\n\x02\0\x12\x04\xd6\x01\x02\x12\x1a\x1b\x20Name\x20of\x20the\x20sub\ + scription.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\xd6\x01\x02\xd4\x01\x16\ + \n\r\n\x05\x04\n\x02\0\x05\x12\x04\xd6\x01\x02\x08\n\r\n\x05\x04\n\x02\0\ + \x01\x12\x04\xd6\x01\t\r\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xd6\x01\x10\ + \x11\n\xb7\x01\n\x04\x04\n\x02\x01\x12\x04\xdb\x01\x02\x13\x1a\xa8\x01\ + \x20The\x20name\x20of\x20the\x20topic\x20from\x20which\x20this\x20subscr\ + iption\x20is\x20receiving\x20messages.\n\x20This\x20will\x20be\x20presen\ + t\x20if\x20and\x20only\x20if\x20the\x20subscription\x20has\x20not\x20bee\ + n\x20detached\n\x20from\x20its\x20topic.\n\n\x0f\n\x05\x04\n\x02\x01\x04\ + \x12\x06\xdb\x01\x02\xd6\x01\x12\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\xdb\ + \x01\x02\x08\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xdb\x01\t\x0e\n\r\n\x05\ + \x04\n\x02\x01\x03\x12\x04\xdb\x01\x11\x12\n\xc7\x01\n\x04\x04\n\x02\x02\ + \x12\x04\xe0\x01\x02\x1d\x1a\xb8\x01\x20If\x20push\x20delivery\x20is\x20\ + used\x20with\x20this\x20subscription,\x20this\x20field\x20is\n\x20used\ + \x20to\x20configure\x20it.\x20An\x20empty\x20pushConfig\x20signifies\x20\ + that\x20the\x20subscriber\n\x20will\x20pull\x20and\x20ack\x20messages\ + \x20using\x20API\x20methods.\n\n\x0f\n\x05\x04\n\x02\x02\x04\x12\x06\xe0\ + \x01\x02\xdb\x01\x13\n\r\n\x05\x04\n\x02\x02\x06\x12\x04\xe0\x01\x02\x0c\ + \n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xe0\x01\r\x18\n\r\n\x05\x04\n\x02\ + \x02\x03\x12\x04\xe0\x01\x1b\x1c\n\xd3\x05\n\x04\x04\n\x02\x03\x12\x04\ + \xf1\x01\x02!\x1a\xc4\x05\x20This\x20value\x20is\x20the\x20maximum\x20ti\ + me\x20after\x20a\x20subscriber\x20receives\x20a\x20message\n\x20before\ + \x20the\x20subscriber\x20should\x20acknowledge\x20the\x20message.\x20Aft\ + er\x20message\n\x20delivery\x20but\x20before\x20the\x20ack\x20deadline\ + \x20expires\x20and\x20before\x20the\x20message\x20is\n\x20acknowledged,\ + \x20it\x20is\x20an\x20outstanding\x20message\x20and\x20will\x20not\x20be\ + \x20delivered\n\x20again\x20during\x20that\x20time\x20(on\x20a\x20best-e\ + ffort\x20basis).\n\n\x20For\x20pull\x20delivery\x20this\x20value\n\x20is\ + \x20used\x20as\x20the\x20initial\x20value\x20for\x20the\x20ack\x20deadli\ + ne.\x20It\x20may\x20be\x20overridden\n\x20for\x20a\x20specific\x20messag\ + e\x20by\x20calling\x20ModifyAckDeadline.\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\x0f\n\x05\x04\n\x02\x03\x04\x12\x06\xf1\x01\x02\xe0\ + \x01\x1d\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\xf1\x01\x02\x07\n\r\n\x05\ + \x04\n\x02\x03\x01\x12\x04\xf1\x01\x08\x1c\n\r\n\x05\x04\n\x02\x03\x03\ + \x12\x04\xf1\x01\x1f\x20\n;\n\x02\x04\x0b\x12\x06\xf5\x01\0\x92\x02\x01\ + \x1a-\x20Configuration\x20for\x20a\x20push\x20delivery\x20endpoint.\n\n\ + \x0b\n\x03\x04\x0b\x01\x12\x04\xf5\x01\x08\x12\n\x97\x01\n\x04\x04\x0b\ + \x02\0\x12\x04\xf8\x01\x02\x1b\x1a\x88\x01\x20A\x20URL\x20locating\x20th\ + e\x20endpoint\x20to\x20which\x20messages\x20should\x20be\x20pushed.\n\ + \x20For\x20example,\x20a\x20Webhook\x20endpoint\x20might\x20use\x20\"htt\ + ps://example.com/push\".\n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\xf8\x01\ + \x02\xf5\x01\x14\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xf8\x01\x02\x08\n\r\ + \n\x05\x04\x0b\x02\0\x01\x12\x04\xf8\x01\t\x16\n\r\n\x05\x04\x0b\x02\0\ + \x03\x12\x04\xf8\x01\x19\x1a\n\xfe\x07\n\x04\x04\x0b\x02\x01\x12\x04\x91\ + \x02\x02%\x1a\xef\x07\x20Endpoint\x20configuration\x20attributes.\n\n\ + \x20Every\x20endpoint\x20has\x20a\x20set\x20of\x20API\x20supported\x20at\ + tributes\x20that\x20can\x20be\x20used\x20to\n\x20control\x20different\ + \x20aspects\x20of\x20the\x20message\x20delivery.\n\n\x20The\x20currently\ + \x20supported\x20attribute\x20is\x20`x-goog-version`,\x20which\x20you\ + \x20can\n\x20use\x20to\x20change\x20the\x20format\x20of\x20the\x20push\ + \x20message.\x20This\x20attribute\n\x20indicates\x20the\x20version\x20of\ + \x20the\x20data\x20expected\x20by\x20the\x20endpoint.\x20This\n\x20contr\ + ols\x20the\x20shape\x20of\x20the\x20envelope\x20(i.e.\x20its\x20fields\ + \x20and\x20metadata).\n\x20The\x20endpoint\x20version\x20is\x20based\x20\ + on\x20the\x20version\x20of\x20the\x20Pub/Sub\n\x20API.\n\n\x20If\x20not\ + \x20present\x20during\x20the\x20CreateSubscription\x20call,\x20it\x20wil\ + l\x20default\x20to\n\x20the\x20version\x20of\x20the\x20API\x20used\x20to\ + \x20make\x20such\x20call.\x20If\x20not\x20present\x20during\x20a\n\x20Mo\ + difyPushConfig\x20call,\x20its\x20value\x20will\x20not\x20be\x20changed.\ + \x20GetSubscription\n\x20calls\x20will\x20always\x20return\x20a\x20valid\ + \x20version,\x20even\x20if\x20the\x20subscription\x20was\n\x20created\ + \x20without\x20this\x20attribute.\n\n\x20The\x20possible\x20values\x20fo\ + r\x20this\x20attribute\x20are:\n\n\x20*\x20`v1beta1`:\x20uses\x20the\x20\ + push\x20format\x20defined\x20in\x20the\x20v1beta1\x20Pub/Sub\x20API.\n\ + \x20*\x20`v1beta2`:\x20uses\x20the\x20push\x20format\x20defined\x20in\ + \x20the\x20v1beta2\x20Pub/Sub\x20API.\n\n\n\x0f\n\x05\x04\x0b\x02\x01\ + \x04\x12\x06\x91\x02\x02\xf8\x01\x1b\n\r\n\x05\x04\x0b\x02\x01\x06\x12\ + \x04\x91\x02\x02\x15\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\x91\x02\x16\ + \x20\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x91\x02#$\nB\n\x02\x04\x0c\ + \x12\x06\x95\x02\0\x9b\x02\x01\x1a4\x20A\x20message\x20and\x20its\x20cor\ + responding\x20acknowledgment\x20ID.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\ + \x95\x02\x08\x17\nH\n\x04\x04\x0c\x02\0\x12\x04\x97\x02\x02\x14\x1a:\x20\ + This\x20ID\x20can\x20be\x20used\x20to\x20acknowledge\x20the\x20received\ + \x20message.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\x97\x02\x02\x95\x02\ + \x19\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\x97\x02\x02\x08\n\r\n\x05\x04\ + \x0c\x02\0\x01\x12\x04\x97\x02\t\x0f\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\ + \x97\x02\x12\x13\n\x1c\n\x04\x04\x0c\x02\x01\x12\x04\x9a\x02\x02\x1c\x1a\ + \x0e\x20The\x20message.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\x9a\ + \x02\x02\x97\x02\x14\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\x9a\x02\x02\ + \x0f\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\x9a\x02\x10\x17\n\r\n\x05\x04\ + \x0c\x02\x01\x03\x12\x04\x9a\x02\x1a\x1b\n7\n\x02\x04\r\x12\x06\x9e\x02\ + \0\xa1\x02\x01\x1a)\x20Request\x20for\x20the\x20GetSubscription\x20metho\ + d.\n\n\x0b\n\x03\x04\r\x01\x12\x04\x9e\x02\x08\x1e\n4\n\x04\x04\r\x02\0\ + \x12\x04\xa0\x02\x02\x1a\x1a&\x20The\x20name\x20of\x20the\x20subscriptio\ + n\x20to\x20get.\n\n\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xa0\x02\x02\x9e\ + \x02\x20\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xa0\x02\x02\x08\n\r\n\x05\x04\ + \r\x02\0\x01\x12\x04\xa0\x02\t\x15\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xa0\ + \x02\x18\x19\n9\n\x02\x04\x0e\x12\x06\xa4\x02\0\xaf\x02\x01\x1a+\x20Requ\ + est\x20for\x20the\x20ListSubscriptions\x20method.\n\n\x0b\n\x03\x04\x0e\ + \x01\x12\x04\xa4\x02\x08\x20\nK\n\x04\x04\x0e\x02\0\x12\x04\xa6\x02\x02\ + \x15\x1a=\x20The\x20name\x20of\x20the\x20cloud\x20project\x20that\x20sub\ + scriptions\x20belong\x20to.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xa6\ + \x02\x02\xa4\x02\"\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\xa6\x02\x02\x08\n\ + \r\n\x05\x04\x0e\x02\0\x01\x12\x04\xa6\x02\t\x10\n\r\n\x05\x04\x0e\x02\0\ + \x03\x12\x04\xa6\x02\x13\x14\n:\n\x04\x04\x0e\x02\x01\x12\x04\xa9\x02\ + \x02\x16\x1a,\x20Maximum\x20number\x20of\x20subscriptions\x20to\x20retur\ + n.\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\x12\x06\xa9\x02\x02\xa6\x02\x15\n\r\ + \n\x05\x04\x0e\x02\x01\x05\x12\x04\xa9\x02\x02\x07\n\r\n\x05\x04\x0e\x02\ + \x01\x01\x12\x04\xa9\x02\x08\x11\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\ + \xa9\x02\x14\x15\n\xce\x01\n\x04\x04\x0e\x02\x02\x12\x04\xae\x02\x02\x18\ + \x1a\xbf\x01\x20The\x20value\x20returned\x20by\x20the\x20last\x20ListSub\ + scriptionsResponse;\x20indicates\x20that\n\x20this\x20is\x20a\x20continu\ + ation\x20of\x20a\x20prior\x20ListSubscriptions\x20call,\x20and\x20that\ + \x20the\n\x20system\x20should\x20return\x20the\x20next\x20page\x20of\x20\ + data.\n\n\x0f\n\x05\x04\x0e\x02\x02\x04\x12\x06\xae\x02\x02\xa9\x02\x16\ + \n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xae\x02\x02\x08\n\r\n\x05\x04\x0e\ + \x02\x02\x01\x12\x04\xae\x02\t\x13\n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\ + \xae\x02\x16\x17\n:\n\x02\x04\x0f\x12\x06\xb2\x02\0\xba\x02\x01\x1a,\x20\ + Response\x20for\x20the\x20ListSubscriptions\x20method.\n\n\x0b\n\x03\x04\ + \x0f\x01\x12\x04\xb2\x02\x08!\n9\n\x04\x04\x0f\x02\0\x12\x04\xb4\x02\x02\ + *\x1a+\x20The\x20subscriptions\x20that\x20match\x20the\x20request.\n\n\r\ + \n\x05\x04\x0f\x02\0\x04\x12\x04\xb4\x02\x02\n\n\r\n\x05\x04\x0f\x02\0\ + \x06\x12\x04\xb4\x02\x0b\x17\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xb4\x02\ + \x18%\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xb4\x02()\n\xc0\x01\n\x04\x04\ + \x0f\x02\x01\x12\x04\xb9\x02\x02\x1d\x1a\xb1\x01\x20If\x20not\x20empty,\ + \x20indicates\x20that\x20there\x20may\x20be\x20more\x20subscriptions\x20\ + that\x20match\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20p\ + assed\x20in\x20a\x20new\x20ListSubscriptionsRequest\n\x20to\x20get\x20mo\ + re\x20subscriptions.\n\n\x0f\n\x05\x04\x0f\x02\x01\x04\x12\x06\xb9\x02\ + \x02\xb4\x02*\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\xb9\x02\x02\x08\n\r\ + \n\x05\x04\x0f\x02\x01\x01\x12\x04\xb9\x02\t\x18\n\r\n\x05\x04\x0f\x02\ + \x01\x03\x12\x04\xb9\x02\x1b\x1c\n:\n\x02\x04\x10\x12\x06\xbd\x02\0\xc0\ + \x02\x01\x1a,\x20Request\x20for\x20the\x20DeleteSubscription\x20method.\ + \n\n\x0b\n\x03\x04\x10\x01\x12\x04\xbd\x02\x08!\n+\n\x04\x04\x10\x02\0\ + \x12\x04\xbf\x02\x02\x1a\x1a\x1d\x20The\x20subscription\x20to\x20delete.\ + \n\n\x0f\n\x05\x04\x10\x02\0\x04\x12\x06\xbf\x02\x02\xbd\x02#\n\r\n\x05\ + \x04\x10\x02\0\x05\x12\x04\xbf\x02\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\ + \x12\x04\xbf\x02\t\x15\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xbf\x02\x18\ + \x19\n8\n\x02\x04\x11\x12\x06\xc3\x02\0\xce\x02\x01\x1a*\x20Request\x20f\ + or\x20the\x20ModifyPushConfig\x20method.\n\n\x0b\n\x03\x04\x11\x01\x12\ + \x04\xc3\x02\x08\x1f\n-\n\x04\x04\x11\x02\0\x12\x04\xc5\x02\x02\x1a\x1a\ + \x1f\x20The\x20name\x20of\x20the\x20subscription.\n\n\x0f\n\x05\x04\x11\ + \x02\0\x04\x12\x06\xc5\x02\x02\xc3\x02!\n\r\n\x05\x04\x11\x02\0\x05\x12\ + \x04\xc5\x02\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xc5\x02\t\x15\n\ + \r\n\x05\x04\x11\x02\0\x03\x12\x04\xc5\x02\x18\x19\n\xa1\x02\n\x04\x04\ + \x11\x02\x01\x12\x04\xcd\x02\x02\x1d\x1a\x92\x02\x20The\x20push\x20confi\ + guration\x20for\x20future\x20deliveries.\n\n\x20An\x20empty\x20pushConfi\ + g\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\x20Pull\x20is\ + \x20not\x20called.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\xcd\x02\x02\ + \xc5\x02\x1a\n\r\n\x05\x04\x11\x02\x01\x06\x12\x04\xcd\x02\x02\x0c\n\r\n\ + \x05\x04\x11\x02\x01\x01\x12\x04\xcd\x02\r\x18\n\r\n\x05\x04\x11\x02\x01\ + \x03\x12\x04\xcd\x02\x1b\x1c\n,\n\x02\x04\x12\x12\x06\xd1\x02\0\xdf\x02\ + \x01\x1a\x1e\x20Request\x20for\x20the\x20Pull\x20method.\n\n\x0b\n\x03\ + \x04\x12\x01\x12\x04\xd1\x02\x08\x13\nF\n\x04\x04\x12\x02\0\x12\x04\xd3\ + \x02\x02\x1a\x1a8\x20The\x20subscription\x20from\x20which\x20messages\ + \x20should\x20be\x20pulled.\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\x06\xd3\ + \x02\x02\xd1\x02\x15\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xd3\x02\x02\x08\ + \n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xd3\x02\t\x15\n\r\n\x05\x04\x12\x02\ + \0\x03\x12\x04\xd3\x02\x18\x19\n\xe4\x02\n\x04\x04\x12\x02\x01\x12\x04\ + \xda\x02\x02\x1e\x1a\xd5\x02\x20If\x20this\x20is\x20specified\x20as\x20t\ + rue\x20the\x20system\x20will\x20respond\x20immediately\x20even\x20if\n\ + \x20it\x20is\x20not\x20able\x20to\x20return\x20a\x20message\x20in\x20the\ + \x20Pull\x20response.\x20Otherwise\x20the\n\x20system\x20is\x20allowed\ + \x20to\x20wait\x20until\x20at\x20least\x20one\x20message\x20is\x20availa\ + ble\x20rather\n\x20than\x20returning\x20no\x20messages.\x20The\x20client\ + \x20may\x20cancel\x20the\x20request\x20if\x20it\x20does\n\x20not\x20wish\ + \x20to\x20wait\x20any\x20longer\x20for\x20the\x20response.\n\n\x0f\n\x05\ + \x04\x12\x02\x01\x04\x12\x06\xda\x02\x02\xd3\x02\x1a\n\r\n\x05\x04\x12\ + \x02\x01\x05\x12\x04\xda\x02\x02\x06\n\r\n\x05\x04\x12\x02\x01\x01\x12\ + \x04\xda\x02\x07\x19\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\xda\x02\x1c\ + \x1d\n\x89\x01\n\x04\x04\x12\x02\x02\x12\x04\xde\x02\x02\x19\x1a{\x20The\ + \x20maximum\x20number\x20of\x20messages\x20returned\x20for\x20this\x20re\ + quest.\x20The\x20Pub/Sub\n\x20system\x20may\x20return\x20fewer\x20than\ + \x20the\x20number\x20specified.\n\n\x0f\n\x05\x04\x12\x02\x02\x04\x12\ + \x06\xde\x02\x02\xda\x02\x1e\n\r\n\x05\x04\x12\x02\x02\x05\x12\x04\xde\ + \x02\x02\x07\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\xde\x02\x08\x14\n\r\n\ + \x05\x04\x12\x02\x02\x03\x12\x04\xde\x02\x17\x18\n-\n\x02\x04\x13\x12\ + \x06\xe2\x02\0\xe8\x02\x01\x1a\x1f\x20Response\x20for\x20the\x20Pull\x20\ + method.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xe2\x02\x08\x14\n\x87\x02\n\ + \x04\x04\x13\x02\0\x12\x04\xe7\x02\x021\x1a\xf8\x01\x20Received\x20Pub/S\ + ub\x20messages.\x20The\x20Pub/Sub\x20system\x20will\x20return\x20zero\ + \x20messages\x20if\n\x20there\x20are\x20no\x20more\x20available\x20in\ + \x20the\x20backlog.\x20The\x20Pub/Sub\x20system\x20may\x20return\n\x20fe\ + wer\x20than\x20the\x20maxMessages\x20requested\x20even\x20if\x20there\ + \x20are\x20more\x20messages\n\x20available\x20in\x20the\x20backlog.\n\n\ + \r\n\x05\x04\x13\x02\0\x04\x12\x04\xe7\x02\x02\n\n\r\n\x05\x04\x13\x02\0\ + \x06\x12\x04\xe7\x02\x0b\x1a\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xe7\x02\ + \x1b,\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xe7\x02/0\n9\n\x02\x04\x14\x12\ + \x06\xeb\x02\0\xf8\x02\x01\x1a+\x20Request\x20for\x20the\x20ModifyAckDea\ + dline\x20method.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\xeb\x02\x08\x20\n-\n\ + \x04\x04\x14\x02\0\x12\x04\xed\x02\x02\x1a\x1a\x1f\x20The\x20name\x20of\ + \x20the\x20subscription.\n\n\x0f\n\x05\x04\x14\x02\0\x04\x12\x06\xed\x02\ + \x02\xeb\x02\"\n\r\n\x05\x04\x14\x02\0\x05\x12\x04\xed\x02\x02\x08\n\r\n\ + \x05\x04\x14\x02\0\x01\x12\x04\xed\x02\t\x15\n\r\n\x05\x04\x14\x02\0\x03\ + \x12\x04\xed\x02\x18\x19\n&\n\x04\x04\x14\x02\x01\x12\x04\xf0\x02\x02\ + \x14\x1a\x18\x20The\x20acknowledgment\x20ID.\n\n\x0f\n\x05\x04\x14\x02\ + \x01\x04\x12\x06\xf0\x02\x02\xed\x02\x1a\n\r\n\x05\x04\x14\x02\x01\x05\ + \x12\x04\xf0\x02\x02\x08\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xf0\x02\t\ + \x0f\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xf0\x02\x12\x13\n\xca\x02\n\ + \x04\x04\x14\x02\x02\x12\x04\xf7\x02\x02!\x1a\xbb\x02\x20The\x20new\x20a\ + ck\x20deadline\x20with\x20respect\x20to\x20the\x20time\x20this\x20reques\ + t\x20was\x20sent\x20to\x20the\n\x20Pub/Sub\x20system.\x20Must\x20be\x20>\ + =\x200.\x20For\x20example,\x20if\x20the\x20value\x20is\x2010,\x20the\x20\ + new\x20ack\n\x20deadline\x20will\x20expire\x2010\x20seconds\x20after\x20\ + the\x20ModifyAckDeadline\x20call\x20was\x20made.\n\x20Specifying\x20zero\ + \x20may\x20immediately\x20make\x20the\x20message\x20available\x20for\x20\ + another\x20pull\n\x20request.\n\n\x0f\n\x05\x04\x14\x02\x02\x04\x12\x06\ + \xf7\x02\x02\xf0\x02\x14\n\r\n\x05\x04\x14\x02\x02\x05\x12\x04\xf7\x02\ + \x02\x07\n\r\n\x05\x04\x14\x02\x02\x01\x12\x04\xf7\x02\x08\x1c\n\r\n\x05\ + \x04\x14\x02\x02\x03\x12\x04\xf7\x02\x1f\x20\n3\n\x02\x04\x15\x12\x06\ + \xfb\x02\0\x82\x03\x01\x1a%\x20Request\x20for\x20the\x20Acknowledge\x20m\ + ethod.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xfb\x02\x08\x1a\nE\n\x04\x04\ + \x15\x02\0\x12\x04\xfd\x02\x02\x1a\x1a7\x20The\x20subscription\x20whose\ + \x20message\x20is\x20being\x20acknowledged.\n\n\x0f\n\x05\x04\x15\x02\0\ + \x04\x12\x06\xfd\x02\x02\xfb\x02\x1c\n\r\n\x05\x04\x15\x02\0\x05\x12\x04\ + \xfd\x02\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\xfd\x02\t\x15\n\r\n\ + \x05\x04\x15\x02\0\x03\x12\x04\xfd\x02\x18\x19\n\x9c\x01\n\x04\x04\x15\ + \x02\x01\x12\x04\x81\x03\x02\x1e\x1a\x8d\x01\x20The\x20acknowledgment\ + \x20ID\x20for\x20the\x20messages\x20being\x20acknowledged\x20that\x20was\ + \x20returned\n\x20by\x20the\x20Pub/Sub\x20system\x20in\x20the\x20Pull\ + \x20response.\x20Must\x20not\x20be\x20empty.\n\n\r\n\x05\x04\x15\x02\x01\ + \x04\x12\x04\x81\x03\x02\n\n\r\n\x05\x04\x15\x02\x01\x05\x12\x04\x81\x03\ + \x0b\x11\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\x81\x03\x12\x19\n\r\n\x05\ + \x04\x15\x02\x01\x03\x12\x04\x81\x03\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/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub_grpc.rs new file mode 100644 index 0000000000..f29e7b3a3f --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/pubsub/v1beta2/pubsub_grpc.rs @@ -0,0 +1,457 @@ +// 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_SUBSCRIBER_CREATE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Subscriber/CreateSubscription", + 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_SUBSCRIBER_GET_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Subscriber/GetSubscription", + 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_SUBSCRIBER_LIST_SUBSCRIPTIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Subscriber/ListSubscriptions", + 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_SUBSCRIBER_DELETE_SUBSCRIPTION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Subscriber/DeleteSubscription", + 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_SUBSCRIBER_MODIFY_ACK_DEADLINE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Subscriber/ModifyAckDeadline", + 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_SUBSCRIBER_ACKNOWLEDGE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Subscriber/Acknowledge", + 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_SUBSCRIBER_PULL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Subscriber/Pull", + 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_SUBSCRIBER_MODIFY_PUSH_CONFIG: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Subscriber/ModifyPushConfig", + 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 SubscriberClient { + client: ::grpcio::Client, +} + +impl SubscriberClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + SubscriberClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn create_subscription_opt(&self, req: &super::pubsub::Subscription, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, req, opt) + } + + pub fn create_subscription(&self, req: &super::pubsub::Subscription) -> ::grpcio::Result { + self.create_subscription_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_subscription_async_opt(&self, req: &super::pubsub::Subscription, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, req, opt) + } + + pub fn create_subscription_async(&self, req: &super::pubsub::Subscription) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_subscription_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_subscription_opt(&self, req: &super::pubsub::GetSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, req, opt) + } + + pub fn get_subscription(&self, req: &super::pubsub::GetSubscriptionRequest) -> ::grpcio::Result { + self.get_subscription_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_subscription_async_opt(&self, req: &super::pubsub::GetSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, req, opt) + } + + pub fn get_subscription_async(&self, req: &super::pubsub::GetSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_subscription_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_subscriptions_opt(&self, req: &super::pubsub::ListSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, req, opt) + } + + pub fn list_subscriptions(&self, req: &super::pubsub::ListSubscriptionsRequest) -> ::grpcio::Result { + self.list_subscriptions_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_subscriptions_async_opt(&self, req: &super::pubsub::ListSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, req, opt) + } + + pub fn list_subscriptions_async(&self, req: &super::pubsub::ListSubscriptionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_subscriptions_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_subscription_opt(&self, req: &super::pubsub::DeleteSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, req, opt) + } + + pub fn delete_subscription(&self, req: &super::pubsub::DeleteSubscriptionRequest) -> ::grpcio::Result { + self.delete_subscription_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_subscription_async_opt(&self, req: &super::pubsub::DeleteSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, req, opt) + } + + pub fn delete_subscription_async(&self, req: &super::pubsub::DeleteSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_subscription_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn modify_ack_deadline_opt(&self, req: &super::pubsub::ModifyAckDeadlineRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, req, opt) + } + + pub fn modify_ack_deadline(&self, req: &super::pubsub::ModifyAckDeadlineRequest) -> ::grpcio::Result { + self.modify_ack_deadline_opt(req, ::grpcio::CallOption::default()) + } + + pub fn modify_ack_deadline_async_opt(&self, req: &super::pubsub::ModifyAckDeadlineRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, req, opt) + } + + pub fn modify_ack_deadline_async(&self, req: &super::pubsub::ModifyAckDeadlineRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.modify_ack_deadline_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn acknowledge_opt(&self, req: &super::pubsub::AcknowledgeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_ACKNOWLEDGE, req, opt) + } + + pub fn acknowledge(&self, req: &super::pubsub::AcknowledgeRequest) -> ::grpcio::Result { + self.acknowledge_opt(req, ::grpcio::CallOption::default()) + } + + pub fn acknowledge_async_opt(&self, req: &super::pubsub::AcknowledgeRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_ACKNOWLEDGE, req, opt) + } + + pub fn acknowledge_async(&self, req: &super::pubsub::AcknowledgeRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.acknowledge_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn pull_opt(&self, req: &super::pubsub::PullRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_PULL, req, opt) + } + + pub fn pull(&self, req: &super::pubsub::PullRequest) -> ::grpcio::Result { + self.pull_opt(req, ::grpcio::CallOption::default()) + } + + pub fn pull_async_opt(&self, req: &super::pubsub::PullRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_PULL, req, opt) + } + + pub fn pull_async(&self, req: &super::pubsub::PullRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.pull_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn modify_push_config_opt(&self, req: &super::pubsub::ModifyPushConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, req, opt) + } + + pub fn modify_push_config(&self, req: &super::pubsub::ModifyPushConfigRequest) -> ::grpcio::Result { + self.modify_push_config_opt(req, ::grpcio::CallOption::default()) + } + + pub fn modify_push_config_async_opt(&self, req: &super::pubsub::ModifyPushConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, req, opt) + } + + pub fn modify_push_config_async(&self, req: &super::pubsub::ModifyPushConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.modify_push_config_async_opt(req, ::grpcio::CallOption::default()) + } + pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait Subscriber { + fn create_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::Subscription, sink: ::grpcio::UnarySink); + fn get_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetSubscriptionRequest, sink: ::grpcio::UnarySink); + fn list_subscriptions(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListSubscriptionsRequest, sink: ::grpcio::UnarySink); + fn delete_subscription(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteSubscriptionRequest, sink: ::grpcio::UnarySink); + fn modify_ack_deadline(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ModifyAckDeadlineRequest, sink: ::grpcio::UnarySink); + fn acknowledge(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::AcknowledgeRequest, sink: ::grpcio::UnarySink); + fn pull(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::PullRequest, sink: ::grpcio::UnarySink); + fn modify_push_config(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ModifyPushConfigRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_subscriber(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_CREATE_SUBSCRIPTION, move |ctx, req, resp| { + instance.create_subscription(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_GET_SUBSCRIPTION, move |ctx, req, resp| { + instance.get_subscription(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_LIST_SUBSCRIPTIONS, move |ctx, req, resp| { + instance.list_subscriptions(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_DELETE_SUBSCRIPTION, move |ctx, req, resp| { + instance.delete_subscription(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_MODIFY_ACK_DEADLINE, move |ctx, req, resp| { + instance.modify_ack_deadline(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_ACKNOWLEDGE, move |ctx, req, resp| { + instance.acknowledge(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_PULL, move |ctx, req, resp| { + instance.pull(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_SUBSCRIBER_MODIFY_PUSH_CONFIG, move |ctx, req, resp| { + instance.modify_push_config(ctx, req, resp) + }); + builder.build() +} + +const METHOD_PUBLISHER_CREATE_TOPIC: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Publisher/CreateTopic", + 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_PUBLISHER_PUBLISH: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Publisher/Publish", + 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_PUBLISHER_GET_TOPIC: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Publisher/GetTopic", + 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_PUBLISHER_LIST_TOPICS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Publisher/ListTopics", + 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_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Publisher/ListTopicSubscriptions", + 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_PUBLISHER_DELETE_TOPIC: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.pubsub.v1beta2.Publisher/DeleteTopic", + 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 { + client: ::grpcio::Client, +} + +impl PublisherClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + PublisherClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn create_topic_opt(&self, req: &super::pubsub::Topic, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_CREATE_TOPIC, req, opt) + } + + pub fn create_topic(&self, req: &super::pubsub::Topic) -> ::grpcio::Result { + self.create_topic_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_topic_async_opt(&self, req: &super::pubsub::Topic, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_CREATE_TOPIC, req, opt) + } + + pub fn create_topic_async(&self, req: &super::pubsub::Topic) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_topic_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn publish_opt(&self, req: &super::pubsub::PublishRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_PUBLISH, req, opt) + } + + pub fn publish(&self, req: &super::pubsub::PublishRequest) -> ::grpcio::Result { + self.publish_opt(req, ::grpcio::CallOption::default()) + } + + pub fn publish_async_opt(&self, req: &super::pubsub::PublishRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_PUBLISH, req, opt) + } + + pub fn publish_async(&self, req: &super::pubsub::PublishRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.publish_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_topic_opt(&self, req: &super::pubsub::GetTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_GET_TOPIC, req, opt) + } + + pub fn get_topic(&self, req: &super::pubsub::GetTopicRequest) -> ::grpcio::Result { + self.get_topic_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_topic_async_opt(&self, req: &super::pubsub::GetTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_GET_TOPIC, req, opt) + } + + pub fn get_topic_async(&self, req: &super::pubsub::GetTopicRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_topic_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topics_opt(&self, req: &super::pubsub::ListTopicsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPICS, req, opt) + } + + pub fn list_topics(&self, req: &super::pubsub::ListTopicsRequest) -> ::grpcio::Result { + self.list_topics_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topics_async_opt(&self, req: &super::pubsub::ListTopicsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPICS, req, opt) + } + + pub fn list_topics_async(&self, req: &super::pubsub::ListTopicsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_topics_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topic_subscriptions_opt(&self, req: &super::pubsub::ListTopicSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, req, opt) + } + + pub fn list_topic_subscriptions(&self, req: &super::pubsub::ListTopicSubscriptionsRequest) -> ::grpcio::Result { + self.list_topic_subscriptions_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_topic_subscriptions_async_opt(&self, req: &super::pubsub::ListTopicSubscriptionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, req, opt) + } + + pub fn list_topic_subscriptions_async(&self, req: &super::pubsub::ListTopicSubscriptionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_topic_subscriptions_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_topic_opt(&self, req: &super::pubsub::DeleteTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_PUBLISHER_DELETE_TOPIC, req, opt) + } + + pub fn delete_topic(&self, req: &super::pubsub::DeleteTopicRequest) -> ::grpcio::Result { + self.delete_topic_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_topic_async_opt(&self, req: &super::pubsub::DeleteTopicRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_PUBLISHER_DELETE_TOPIC, req, opt) + } + + 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 spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait Publisher { + fn create_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::Topic, sink: ::grpcio::UnarySink); + fn publish(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::PublishRequest, sink: ::grpcio::UnarySink); + fn get_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::GetTopicRequest, sink: ::grpcio::UnarySink); + fn list_topics(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicsRequest, sink: ::grpcio::UnarySink); + fn list_topic_subscriptions(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::ListTopicSubscriptionsRequest, sink: ::grpcio::UnarySink); + fn delete_topic(&mut self, ctx: ::grpcio::RpcContext, req: super::pubsub::DeleteTopicRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_publisher(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_CREATE_TOPIC, move |ctx, req, resp| { + instance.create_topic(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_PUBLISH, move |ctx, req, resp| { + instance.publish(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_GET_TOPIC, move |ctx, req, resp| { + instance.get_topic(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPICS, move |ctx, req, resp| { + instance.list_topics(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPIC_SUBSCRIPTIONS, move |ctx, req, resp| { + instance.list_topic_subscriptions(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_PUBLISHER_DELETE_TOPIC, move |ctx, req, resp| { + instance.delete_topic(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/code.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/code.rs index 964f6eb0a6..bb04aa8e45 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/code.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/code.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(Clone,PartialEq,Eq,Debug,Hash)] pub enum Code { @@ -129,8 +129,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\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\ + \x02\x03RPCJ\xf35\n\x07\x12\x05\x0e\0\xb9\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\x20e\ xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ @@ -147,8 +147,8 @@ 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\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\ + \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\ \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\ @@ -284,19 +284,21 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\ + \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\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\ + \x20with\n\x20a\x20backoff.\x20Note\x20that\x20it\x20is\x20not\x20always\ + \x20safe\x20to\x20retry\n\x20non-idempotent\x20operations.\n\n\x20See\ + \x20the\x20guidelines\x20above\x20for\x20deciding\x20between\x20`FAILED_\ + PRECONDITION`,\n\x20`ABORTED`,\x20and\x20`UNAVAILABLE`.\n\n\x20HTTP\x20M\ + apping:\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\x20Unrecoverabl\ + e\x20data\x20loss\x20or\x20corruption.\n\n\x20HTTP\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\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/error_details.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/error_details.rs index e36fccbe25..054eefae4e 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/error_details.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/error_details.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct RetryInfo { @@ -764,6 +764,244 @@ impl ::protobuf::reflect::ProtobufValue for QuotaFailure_Violation { } } +#[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)] pub struct PreconditionFailure { // message fields @@ -2602,264 +2840,324 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\xc3@\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\r\n\x05\x04\0\x02\0\x04\ - \x12\x04)\x02'\x13\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\x20de\ - bugging\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\x20ind\ - icating\x20where\x20the\x20error\x20occurred.\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:\x20Addit\ - ional\x20debugging\x20information\x20provided\x20by\x20the\x20server.\n\ - \n\r\n\x05\x04\x01\x02\x01\x04\x12\x042\x02/$\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@\0U\x01\x1a\xf1\x03\x20Describes\x20how\x20a\x20quota\x20ch\ - eck\x20failed.\n\n\x20For\x20example\x20if\x20a\x20daily\x20limit\x20was\ - \x20exceeded\x20for\x20the\x20calling\x20project,\n\x20a\x20service\x20c\ - ould\x20respond\x20with\x20a\x20QuotaFailure\x20detail\x20containing\x20\ - the\x20project\n\x20id\x20and\x20the\x20description\x20of\x20the\x20quot\ - a\x20limit\x20that\x20was\x20exceeded.\x20\x20If\x20the\n\x20calling\x20\ - project\x20hasn't\x20enabled\x20the\x20service\x20in\x20the\x20developer\ - \x20console,\x20then\n\x20a\x20service\x20could\x20respond\x20with\x20th\ - e\x20project\x20id\x20and\x20set\x20`service_disabled`\n\x20to\x20true.\ - \n\n\x20Also\x20see\x20RetryDetail\x20and\x20Help\x20types\x20for\x20oth\ - er\x20details\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\ - \x20single\x20quota\x20violation.\x20\x20For\x20example,\x20a\n\x20daily\ - \x20quota\x20or\x20a\x20custom\x20quota\x20that\x20was\x20exceeded.\n\n\ - \x0c\n\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\x0f\n\x07\x04\x02\x03\0\x02\0\x04\x12\x04G\ - \x04C\x15\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\x20description\ - \x20to\x20find\x20more\x20about\x20the\x20quota\x20configuration\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\x20disabled\"\x20or\x20\ - \"Daily\x20Limit\x20for\x20read\x20operations\n\x20exceeded\".\n\n\x0f\n\ - \x07\x04\x02\x03\0\x02\x01\x04\x12\x04P\x04G\x17\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!\x20Describes\x20all\x20quota\x20\ - violations.\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\x20Describes\x20what\x20preconditi\ - ons\x20have\x20failed.\n\n\x20For\x20example,\x20if\x20an\x20RPC\x20fail\ - ed\x20because\x20it\x20required\x20the\x20Terms\x20of\x20Service\x20to\ - \x20be\n\x20acknowledged,\x20it\x20could\x20list\x20the\x20terms\x20of\ - \x20service\x20violation\x20in\x20the\n\x20PreconditionFailure\x20messag\ - e.\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\x20used\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\x20PreconditionFailure.\x20We\x20recom\ - mend\x20using\x20a\x20service-specific\n\x20enum\x20type\x20to\x20define\ - \x20the\x20supported\x20precondition\x20violation\x20types.\x20For\n\x20\ - example,\x20\"TOS\"\x20for\x20\"Terms\x20of\x20Service\x20violation\".\n\ - \n\x0f\n\x07\x04\x03\x03\0\x02\0\x04\x12\x04b\x04^\x15\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\x20to\x20the\x20type,\x20that\x20failed.\n\x20F\ - or\x20example,\x20\"google.com/cloud\"\x20relative\x20to\x20the\x20\"TOS\ - \"\x20type\x20would\n\x20indicate\x20which\x20terms\x20of\x20service\x20\ - is\x20being\x20referenced.\n\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x04\x12\ - \x04g\x04b\x14\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\x20precondition\x20failed.\x20Developers\x20can\x20use\x20this\n\ - \x20description\x20to\x20understand\x20how\x20to\x20fix\x20the\x20failur\ - e.\n\n\x20For\x20example:\x20\"Terms\x20of\x20service\x20not\x20accepted\ - \".\n\n\x0f\n\x07\x04\x03\x03\0\x02\x02\x04\x12\x04m\x04g\x17\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\x20\ - all\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\x20vi\ - olations\x20in\x20a\x20client\x20request.\x20This\x20error\x20type\x20fo\ - cuses\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\ - \x20request\x20body.\x20The\x20value\x20will\x20be\x20a\n\x20sequence\ - \x20of\x20dot-separated\x20identifiers\x20that\x20identify\x20a\x20proto\ - col\x20buffer\n\x20field.\x20E.g.,\x20\"field_violations.field\"\x20woul\ - d\x20identify\x20this\x20field.\n\n\x0f\n\x07\x04\x04\x03\0\x02\0\x04\ - \x12\x04|\x04x\x1a\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\x20\ - element\x20is\x20bad.\n\n\x0f\n\x07\x04\x04\x03\0\x02\x01\x04\x12\x04\ - \x7f\x04|\x15\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\x20c\ - lient\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\ + ct\x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\"\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.MetadataEntryR\x08metadata\x1a;\n\r\ + MetadataEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05v\ + alue\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xbd\x01\n\x13PreconditionF\ + ailure\x12I\n\nviolations\x18\x01\x20\x03(\x0b2).google.rpc.Precondition\ + Failure.ViolationR\nviolations\x1a[\n\tViolation\x12\x12\n\x04type\x18\ + \x01\x20\x01(\tR\x04type\x12\x18\n\x07subject\x18\x02\x20\x01(\tR\x07sub\ + ject\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\"\xa8\ + \x01\n\nBadRequest\x12P\n\x10field_violations\x18\x01\x20\x03(\x0b2%.goo\ + gle.rpc.BadRequest.FieldViolationR\x0ffieldViolations\x1aH\n\x0eFieldVio\ + lation\x12\x14\n\x05field\x18\x01\x20\x01(\tR\x05field\x12\x20\n\x0bdesc\ + ription\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\rreso\ + urce_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.Lin\ + kR\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\x10Loca\ + lizedMessage\x12\x16\n\x06locale\x18\x01\x20\x01(\tR\x06locale\x12\x18\n\ + \x07message\x18\x02\x20\x01(\tR\x07messageBl\n\x0ecom.google.rpcB\x11Err\ + orDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetail\ + s;errdetails\xa2\x02\x03RPCJ\xf2P\n\x07\x12\x05\x0e\0\xf8\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\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\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\x20Describes\x20when\x20the\x20clients\x20can\ + \x20retry\x20a\x20failed\x20request.\x20Clients\x20could\x20ignore\n\x20\ + the\x20recommendation\x20here\x20or\x20retry\x20when\x20this\x20informat\ + ion\x20is\x20missing\x20from\x20error\n\x20responses.\n\n\x20It's\x20alw\ + ays\x20recommended\x20that\x20clients\x20should\x20use\x20exponential\ + \x20backoff\x20when\n\x20retrying.\n\n\x20Clients\x20should\x20wait\x20u\ + ntil\x20`retry_delay`\x20amount\x20of\x20time\x20has\x20passed\x20since\ + \n\x20receiving\x20the\x20error\x20response\x20before\x20retrying.\x20\ + \x20If\x20retrying\x20requests\x20also\n\x20fail,\x20clients\x20should\ + \x20use\x20an\x20exponential\x20backoff\x20scheme\x20to\x20gradually\x20\ + increase\n\x20the\x20delay\x20between\x20retries\x20based\x20on\x20`retr\ + y_delay`,\x20until\x20either\x20a\x20maximum\n\x20number\x20of\x20retrie\ + s\x20have\x20been\x20reached\x20or\x20a\x20maximum\x20retry\x20delay\x20\ + cap\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\x20between\x20retrying\x20the\x20same\ + \x20request.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04)\x02'\x13\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-\0\ + 3\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\x20er\ + ror\x20occurred.\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\x20informa\ + tion\x20provided\x20by\x20the\x20server.\n\n\r\n\x05\x04\x01\x02\x01\x04\ + \x12\x042\x02/$\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\xfc\x03\n\x02\x04\x02\x12\x04@\0U\x01\x1a\xef\x03\ + \x20Describes\x20how\x20a\x20quota\x20check\x20failed.\n\n\x20For\x20exa\ + mple\x20if\x20a\x20daily\x20limit\x20was\x20exceeded\x20for\x20the\x20ca\ + lling\x20project,\n\x20a\x20service\x20could\x20respond\x20with\x20a\x20\ + QuotaFailure\x20detail\x20containing\x20the\x20project\n\x20id\x20and\ + \x20the\x20description\x20of\x20the\x20quota\x20limit\x20that\x20was\x20\ + exceeded.\x20\x20If\x20the\n\x20calling\x20project\x20hasn'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\x20Ret\ + ryInfo\x20and\x20Help\x20types\x20for\x20other\x20details\x20about\x20ha\ + ndling\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\x20messag\ + e\x20type\x20used\x20to\x20describe\x20a\x20single\x20quota\x20violation\ + .\x20\x20For\x20example,\x20a\n\x20daily\x20quota\x20or\x20a\x20custom\ + \x20quota\x20that\x20was\x20exceeded.\n\n\x0c\n\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\x20fa\ + iled.\n\x20For\x20example,\x20\"clientip:\ + \"\x20or\x20\"project:\".\n\n\ + \x0f\n\x07\x04\x02\x03\0\x02\0\x04\x12\x04G\x04C\x15\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\x20de\ + scription\x20of\x20how\x20the\x20quota\x20check\x20failed.\x20Clients\ + \x20can\x20use\x20this\n\x20description\x20to\x20find\x20more\x20about\ + \x20the\x20quota\x20configuration\x20in\x20the\x20service's\n\x20public\ + \x20documentation,\x20or\x20find\x20the\x20relevant\x20quota\x20limit\ + \x20to\x20adjust\x20through\n\x20developer\x20console.\n\n\x20For\x20exa\ + mple:\x20\"Service\x20disabled\"\x20or\x20\"Daily\x20Limit\x20for\x20rea\ + d\x20operations\n\x20exceeded\".\n\n\x0f\n\x07\x04\x02\x03\0\x02\x01\x04\ + \x12\x04P\x04G\x17\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!\x20Describes\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\xc6\x05\n\x02\x04\x03\x12\x05o\0\x87\x01\x01\ + \x1a\xb8\x05\x20Describes\x20the\x20cause\x20of\x20the\x20error\x20with\ + \x20structured\x20details.\n\n\x20Example\x20of\x20an\x20error\x20when\ + \x20contacting\x20the\x20\"pubsub.googleapis.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\"googleapi\ + s.com\"\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\"resource\":\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\x20that\x20the\x20pubsub.googleapis.com\x20API\x20is\x20no\ + t\x20enabled.\n\n\x20Example\x20of\x20an\x20error\x20that\x20is\x20retur\ + ned\x20when\x20attempting\x20to\x20create\x20a\x20Spanner\n\x20instance\ + \x20in\x20a\x20region\x20that\x20is\x20out\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\"availableR\ + egions\":\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\x03\x01\x12\x03o\x08\x11\n\xf2\x01\ + \n\x04\x04\x03\x02\0\x12\x03t\x02\x14\x1a\xe4\x01\x20The\x20reason\x20of\ + \x20the\x20error.\x20This\x20is\x20a\x20constant\x20value\x20that\x20ide\ + ntifies\x20the\n\x20proximate\x20cause\x20of\x20the\x20error.\x20Error\ + \x20reasons\x20are\x20unique\x20within\x20a\x20particular\n\x20domain\ + \x20of\x20errors.\x20This\x20should\x20be\x20at\x20most\x2063\x20charact\ + ers\x20and\x20match\n\x20/[A-Z0-9_]+/.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\ + \x04t\x02o\x13\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03t\x02\x08\n\x0c\n\ + \x05\x04\x03\x02\0\x01\x12\x03t\t\x0f\n\x0c\n\x05\x04\x03\x02\0\x03\x12\ + \x03t\x12\x13\n\xa8\x03\n\x04\x04\x03\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\r\n\x05\x04\x03\x02\x01\x04\x12\x04|\ + \x02t\x14\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\x0f\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\ + \x03|\x12\x13\n\xdc\x03\n\x04\x04\x03\x02\x02\x12\x04\x86\x01\x02#\x1a\ + \xcd\x03\x20Additional\x20structured\x20details\x20about\x20this\x20erro\ + r.\n\n\x20Keys\x20should\x20match\x20/[a-zA-Z0-9-_]/\x20and\x20be\x20lim\ + ited\x20to\x2064\x20characters\x20in\n\x20length.\x20When\x20identifying\ + \x20the\x20current\x20value\x20of\x20an\x20exceeded\x20limit,\x20the\x20\ + units\n\x20should\x20be\x20contained\x20in\x20the\x20key,\x20not\x20the\ + \x20value.\x20\x20For\x20example,\x20rather\x20than\n\x20{\"instanceLimi\ + t\":\x20\"100/request\"},\x20should\x20be\x20returned\x20as,\n\x20{\"ins\ + tanceLimitPerRequest\":\x20\"100\"},\x20if\x20the\x20client\x20exceeds\ + \x20the\x20number\x20of\n\x20instances\x20that\x20can\x20be\x20created\ + \x20in\x20a\x20single\x20(batch)\x20request.\n\n\x0e\n\x05\x04\x03\x02\ + \x02\x04\x12\x05\x86\x01\x02|\x14\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\ + \x86\x01\x02\x15\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\x86\x01\x16\x1e\n\ + \r\n\x05\x04\x03\x02\x02\x03\x12\x04\x86\x01!\"\n\xea\x01\n\x02\x04\x04\ + \x12\x06\x8e\x01\0\xa4\x01\x01\x1a\xdb\x01\x20Describes\x20what\x20preco\ + nditions\x20have\x20failed.\n\n\x20For\x20example,\x20if\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\x20PreconditionFailure\x20\ + message.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x8e\x01\x08\x1b\nP\n\x04\x04\ + \x04\x03\0\x12\x06\x90\x01\x02\xa0\x01\x03\x1a@\x20A\x20message\x20type\ + \x20used\x20to\x20describe\x20a\x20single\x20precondition\x20failure.\n\ + \n\r\n\x05\x04\x04\x03\0\x01\x12\x04\x90\x01\n\x13\n\xd3\x01\n\x06\x04\ + \x04\x03\0\x02\0\x12\x04\x94\x01\x04\x14\x1a\xc2\x01\x20The\x20type\x20o\ + f\x20PreconditionFailure.\x20We\x20recommend\x20using\x20a\x20service-sp\ + ecific\n\x20enum\x20type\x20to\x20define\x20the\x20supported\x20precondi\ + tion\x20violation\x20subjects.\x20For\n\x20example,\x20\"TOS\"\x20for\ + \x20\"Terms\x20of\x20Service\x20violation\".\n\n\x11\n\x07\x04\x04\x03\0\ + \x02\0\x04\x12\x06\x94\x01\x04\x90\x01\x15\n\x0f\n\x07\x04\x04\x03\0\x02\ + \0\x05\x12\x04\x94\x01\x04\n\n\x0f\n\x07\x04\x04\x03\0\x02\0\x01\x12\x04\ + \x94\x01\x0b\x0f\n\x0f\n\x07\x04\x04\x03\0\x02\0\x03\x12\x04\x94\x01\x12\ + \x13\n\xba\x01\n\x06\x04\x04\x03\0\x02\x01\x12\x04\x99\x01\x04\x17\x1a\ + \xa9\x01\x20The\x20subject,\x20relative\x20to\x20the\x20type,\x20that\ + \x20failed.\n\x20For\x20example,\x20\"google.com/cloud\"\x20relative\x20\ + to\x20the\x20\"TOS\"\x20type\x20would\x20indicate\n\x20which\x20terms\ + \x20of\x20service\x20is\x20being\x20referenced.\n\n\x11\n\x07\x04\x04\ + \x03\0\x02\x01\x04\x12\x06\x99\x01\x04\x94\x01\x14\n\x0f\n\x07\x04\x04\ + \x03\0\x02\x01\x05\x12\x04\x99\x01\x04\n\n\x0f\n\x07\x04\x04\x03\0\x02\ + \x01\x01\x12\x04\x99\x01\x0b\x12\n\x0f\n\x07\x04\x04\x03\0\x02\x01\x03\ + \x12\x04\x99\x01\x15\x16\n\xbb\x01\n\x06\x04\x04\x03\0\x02\x02\x12\x04\ + \x9f\x01\x04\x1b\x1a\xaa\x01\x20A\x20description\x20of\x20how\x20the\x20\ + precondition\x20failed.\x20Developers\x20can\x20use\x20this\n\x20descrip\ + tion\x20to\x20understand\x20how\x20to\x20fix\x20the\x20failure.\n\n\x20F\ + or\x20example:\x20\"Terms\x20of\x20service\x20not\x20accepted\".\n\n\x11\ + \n\x07\x04\x04\x03\0\x02\x02\x04\x12\x06\x9f\x01\x04\x99\x01\x17\n\x0f\n\ + \x07\x04\x04\x03\0\x02\x02\x05\x12\x04\x9f\x01\x04\n\n\x0f\n\x07\x04\x04\ + \x03\0\x02\x02\x01\x12\x04\x9f\x01\x0b\x16\n\x0f\n\x07\x04\x04\x03\0\x02\ + \x02\x03\x12\x04\x9f\x01\x19\x1a\n6\n\x04\x04\x04\x02\0\x12\x04\xa3\x01\ + \x02$\x1a(\x20Describes\x20all\x20precondition\x20violations.\n\n\r\n\ + \x05\x04\x04\x02\0\x04\x12\x04\xa3\x01\x02\n\n\r\n\x05\x04\x04\x02\0\x06\ + \x12\x04\xa3\x01\x0b\x14\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xa3\x01\x15\ + \x1f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xa3\x01\"#\n{\n\x02\x04\x05\x12\ + \x06\xa8\x01\0\xb6\x01\x01\x1am\x20Describes\x20violations\x20in\x20a\ + \x20client\x20request.\x20This\x20error\x20type\x20focuses\x20on\x20the\ + \n\x20syntactic\x20aspects\x20of\x20the\x20request.\n\n\x0b\n\x03\x04\ + \x05\x01\x12\x04\xa8\x01\x08\x12\nM\n\x04\x04\x05\x03\0\x12\x06\xaa\x01\ + \x02\xb2\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\xaa\x01\n\x18\n\xde\x01\n\x06\x04\x05\x03\0\x02\0\x12\x04\ + \xae\x01\x04\x15\x1a\xcd\x01\x20A\x20path\x20leading\x20to\x20a\x20field\ + \x20in\x20the\x20request\x20body.\x20The\x20value\x20will\x20be\x20a\n\ + \x20sequence\x20of\x20dot-separated\x20identifiers\x20that\x20identify\ + \x20a\x20protocol\x20buffer\n\x20field.\x20E.g.,\x20\"field_violations.f\ + ield\"\x20would\x20identify\x20this\x20field.\n\n\x11\n\x07\x04\x05\x03\ + \0\x02\0\x04\x12\x06\xae\x01\x04\xaa\x01\x1a\n\x0f\n\x07\x04\x05\x03\0\ + \x02\0\x05\x12\x04\xae\x01\x04\n\n\x0f\n\x07\x04\x05\x03\0\x02\0\x01\x12\ + \x04\xae\x01\x0b\x10\n\x0f\n\x07\x04\x05\x03\0\x02\0\x03\x12\x04\xae\x01\ + \x13\x14\nB\n\x06\x04\x05\x03\0\x02\x01\x12\x04\xb1\x01\x04\x1b\x1a2\x20\ + A\x20description\x20of\x20why\x20the\x20request\x20element\x20is\x20bad.\ + \n\n\x11\n\x07\x04\x05\x03\0\x02\x01\x04\x12\x06\xb1\x01\x04\xae\x01\x15\ + \n\x0f\n\x07\x04\x05\x03\0\x02\x01\x05\x12\x04\xb1\x01\x04\n\n\x0f\n\x07\ + \x04\x05\x03\0\x02\x01\x01\x12\x04\xb1\x01\x0b\x16\n\x0f\n\x07\x04\x05\ + \x03\0\x02\x01\x03\x12\x04\xb1\x01\x19\x1a\n=\n\x04\x04\x05\x02\0\x12\ + \x04\xb5\x01\x02/\x1a/\x20Describes\x20all\x20violations\x20in\x20a\x20c\ + lient\x20request.\n\n\r\n\x05\x04\x05\x02\0\x04\x12\x04\xb5\x01\x02\n\n\ + \r\n\x05\x04\x05\x02\0\x06\x12\x04\xb5\x01\x0b\x19\n\r\n\x05\x04\x05\x02\ + \0\x01\x12\x04\xb5\x01\x1a*\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xb5\x01-\ + .\n\x84\x01\n\x02\x04\x06\x12\x06\xba\x01\0\xc2\x01\x01\x1av\x20Contains\ \x20metadata\x20about\x20the\x20request\x20that\x20clients\x20can\x20att\ ach\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\ + \x20of\x20feedback.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xba\x01\x08\x13\n\ + \xa8\x01\n\x04\x04\x06\x02\0\x12\x04\xbd\x01\x02\x18\x1a\x99\x01\x20An\ \x20opaque\x20string\x20that\x20should\x20only\x20be\x20interpreted\x20b\ y\x20the\x20service\x20generating\n\x20it.\x20For\x20example,\x20it\x20c\ an\x20be\x20used\x20to\x20identify\x20requests\x20in\x20the\x20service's\ - \x20logs.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\x8b\x01\x02\x88\x01\ - \x15\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\ + \x20logs.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xbd\x01\x02\xba\x01\ + \x15\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xbd\x01\x02\x08\n\r\n\x05\x04\ + \x06\x02\0\x01\x12\x04\xbd\x01\t\x13\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\ + \xbd\x01\x16\x17\n\xa2\x01\n\x04\x04\x06\x02\x01\x12\x04\xc1\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\x0f\n\x05\x04\x05\x02\x01\x04\x12\x06\x8f\x01\ - \x02\x8b\x01\x18\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\ + r\x20for\x20debugging.\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xc1\x01\ + \x02\xbd\x01\x18\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xc1\x01\x02\x08\n\ + \r\n\x05\x04\x06\x02\x01\x01\x12\x04\xc1\x01\t\x15\n\r\n\x05\x04\x06\x02\ + \x01\x03\x12\x04\xc1\x01\x18\x19\n>\n\x02\x04\x07\x12\x06\xc5\x01\0\xd9\ \x01\x01\x1a0\x20Describes\x20the\x20resource\x20that\x20is\x20being\x20\ - accessed.\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\x20f\ + accessed.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xc5\x01\x08\x14\n\xdb\x01\n\ + \x04\x04\x07\x02\0\x12\x04\xc9\x01\x02\x1b\x1a\xcc\x01\x20A\x20name\x20f\ or\x20the\x20type\x20of\x20resource\x20being\x20accessed,\x20e.g.\x20\"s\ ql\x20table\",\n\x20\"cloud\x20storage\x20bucket\",\x20\"file\",\x20\"Go\ ogle\x20calendar\";\x20or\x20the\x20type\x20URL\n\x20of\x20the\x20resour\ ce:\x20e.g.\x20\"type.googleapis.com/google.pubsub.v1.Topic\".\n\n\x0f\n\ - \x05\x04\x06\x02\0\x04\x12\x06\x97\x01\x02\x93\x01\x16\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\ + \x05\x04\x07\x02\0\x04\x12\x06\xc9\x01\x02\xc5\x01\x16\n\r\n\x05\x04\x07\ + \x02\0\x05\x12\x04\xc9\x01\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\ + \xc9\x01\t\x16\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xc9\x01\x19\x1a\n\xf6\ + \x01\n\x04\x04\x07\x02\x01\x12\x04\xce\x01\x02\x1b\x1a\xe7\x01\x20The\ \x20name\x20of\x20the\x20resource\x20being\x20accessed.\x20\x20For\x20ex\ ample,\x20a\x20shared\x20calendar\n\x20name:\x20\"example.com_4fghdhgsrg\ h@group.calendar.google.com\",\x20if\x20the\x20current\n\x20error\x20is\ - \n\x20[google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DEN\ - IED].\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\x9d\x01\x02\x97\x01\x1b\ - \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\ + \x20[google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIE\ + D].\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xce\x01\x02\xc9\x01\x1b\n\ + \r\n\x05\x04\x07\x02\x01\x05\x12\x04\xce\x01\x02\x08\n\r\n\x05\x04\x07\ + \x02\x01\x01\x12\x04\xce\x01\t\x16\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\ + \xce\x01\x19\x1a\n\x85\x01\n\x04\x04\x07\x02\x02\x12\x04\xd3\x01\x02\x13\ \x1aw\x20The\x20owner\x20of\x20the\x20resource\x20(optional).\n\x20For\ \x20example,\x20\"user:\"\x20or\x20\"project:\".\n\n\x0f\n\x05\x04\x06\x02\x02\x04\x12\ - \x06\xa2\x01\x02\x9d\x01\x1b\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\x20err\ + developer\x20project\n\x20id>\".\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\ + \x06\xd3\x01\x02\xce\x01\x1b\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\xd3\ + \x01\x02\x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xd3\x01\t\x0e\n\r\n\ + \x05\x04\x07\x02\x02\x03\x12\x04\xd3\x01\x11\x12\n\xc0\x01\n\x04\x04\x07\ + \x02\x03\x12\x04\xd8\x01\x02\x19\x1a\xb1\x01\x20Describes\x20what\x20err\ or\x20is\x20encountered\x20when\x20accessing\x20this\x20resource.\n\x20F\ or\x20example,\x20updating\x20a\x20cloud\x20project\x20may\x20require\ \x20the\x20`writer`\x20permission\n\x20on\x20the\x20developer\x20console\ - \x20project.\n\n\x0f\n\x05\x04\x06\x02\x03\x04\x12\x06\xa7\x01\x02\xa2\ - \x01\x13\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\ + \x20project.\n\n\x0f\n\x05\x04\x07\x02\x03\x04\x12\x06\xd8\x01\x02\xd3\ + \x01\x13\n\r\n\x05\x04\x07\x02\x03\x05\x12\x04\xd8\x01\x02\x08\n\r\n\x05\ + \x04\x07\x02\x03\x01\x12\x04\xd8\x01\t\x14\n\r\n\x05\x04\x07\x02\x03\x03\ + \x12\x04\xd8\x01\x17\x18\n\xba\x02\n\x02\x04\x08\x12\x06\xe0\x01\0\xec\ \x01\x01\x1a\xab\x02\x20Provides\x20links\x20to\x20documentation\x20or\ \x20for\x20performing\x20an\x20out\x20of\x20band\x20action.\n\n\x20For\ \x20example,\x20if\x20a\x20quota\x20check\x20failed\x20with\x20an\x20err\ or\x20indicating\x20the\x20calling\n\x20project\x20hasn't\x20enabled\x20\ the\x20accessed\x20service,\x20this\x20can\x20contain\x20a\x20URL\x20poi\ nting\n\x20directly\x20to\x20the\x20right\x20place\x20in\x20the\x20devel\ - oper\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\x20offers.\n\n\ - \x11\n\x07\x04\x07\x03\0\x02\0\x04\x12\x06\xb3\x01\x04\xb1\x01\x10\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\ + oper\x20console\x20to\x20flip\x20the\x20bit.\n\n\x0b\n\x03\x04\x08\x01\ + \x12\x04\xe0\x01\x08\x0c\n'\n\x04\x04\x08\x03\0\x12\x06\xe2\x01\x02\xe8\ + \x01\x03\x1a\x17\x20Describes\x20a\x20URL\x20link.\n\n\r\n\x05\x04\x08\ + \x03\0\x01\x12\x04\xe2\x01\n\x0e\n1\n\x06\x04\x08\x03\0\x02\0\x12\x04\ + \xe4\x01\x04\x1b\x1a!\x20Describes\x20what\x20the\x20link\x20offers.\n\n\ + \x11\n\x07\x04\x08\x03\0\x02\0\x04\x12\x06\xe4\x01\x04\xe2\x01\x10\n\x0f\ + \n\x07\x04\x08\x03\0\x02\0\x05\x12\x04\xe4\x01\x04\n\n\x0f\n\x07\x04\x08\ + \x03\0\x02\0\x01\x12\x04\xe4\x01\x0b\x16\n\x0f\n\x07\x04\x08\x03\0\x02\0\ + \x03\x12\x04\xe4\x01\x19\x1a\n&\n\x06\x04\x08\x03\0\x02\x01\x12\x04\xe7\ \x01\x04\x13\x1a\x16\x20The\x20URL\x20of\x20the\x20link.\n\n\x11\n\x07\ - \x04\x07\x03\0\x02\x01\x04\x12\x06\xb6\x01\x04\xb3\x01\x1b\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\ + \x04\x08\x03\0\x02\x01\x04\x12\x06\xe7\x01\x04\xe4\x01\x1b\n\x0f\n\x07\ + \x04\x08\x03\0\x02\x01\x05\x12\x04\xe7\x01\x04\n\n\x0f\n\x07\x04\x08\x03\ + \0\x02\x01\x01\x12\x04\xe7\x01\x0b\x0e\n\x0f\n\x07\x04\x08\x03\0\x02\x01\ + \x03\x12\x04\xe7\x01\x11\x12\nX\n\x04\x04\x08\x02\0\x12\x04\xeb\x01\x02\ \x1a\x1aJ\x20URL(s)\x20pointing\x20to\x20additional\x20information\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\x20following\x20th\ - e\x20specification\x20defined\x20at\n\x20http://www.rfc-editor.org/rfc/b\ - cp/bcp47.txt.\n\x20Examples\x20are:\x20\"en-US\",\x20\"fr-CH\",\x20\"es-\ - MX\"\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xc3\x01\x02\xbf\x01\x1a\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\x20above\x20locale.\n\n\ - \x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xc6\x01\x02\xc3\x01\x14\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\ + \x20handling\x20the\x20current\x20error.\n\n\r\n\x05\x04\x08\x02\0\x04\ + \x12\x04\xeb\x01\x02\n\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\xeb\x01\x0b\ + \x0f\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xeb\x01\x10\x15\n\r\n\x05\x04\ + \x08\x02\0\x03\x12\x04\xeb\x01\x18\x19\n}\n\x02\x04\t\x12\x06\xf0\x01\0\ + \xf8\x01\x01\x1ao\x20Provides\x20a\x20localized\x20error\x20message\x20t\ + hat\x20is\x20safe\x20to\x20return\x20to\x20the\x20user\n\x20which\x20can\ + \x20be\x20attached\x20to\x20an\x20RPC\x20error.\n\n\x0b\n\x03\x04\t\x01\ + \x12\x04\xf0\x01\x08\x18\n\x9e\x01\n\x04\x04\t\x02\0\x12\x04\xf4\x01\x02\ + \x14\x1a\x8f\x01\x20The\x20locale\x20used\x20following\x20the\x20specifi\ + cation\x20defined\x20at\n\x20http://www.rfc-editor.org/rfc/bcp/bcp47.txt\ + .\n\x20Examples\x20are:\x20\"en-US\",\x20\"fr-CH\",\x20\"es-MX\"\n\n\x0f\ + \n\x05\x04\t\x02\0\x04\x12\x06\xf4\x01\x02\xf0\x01\x1a\n\r\n\x05\x04\t\ + \x02\0\x05\x12\x04\xf4\x01\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xf4\ + \x01\t\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xf4\x01\x12\x13\n@\n\x04\ + \x04\t\x02\x01\x12\x04\xf7\x01\x02\x15\x1a2\x20The\x20localized\x20error\ + \x20message\x20in\x20the\x20above\x20locale.\n\n\x0f\n\x05\x04\t\x02\x01\ + \x04\x12\x06\xf7\x01\x02\xf4\x01\x14\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\ + \xf7\x01\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xf7\x01\t\x10\n\r\n\ + \x05\x04\t\x02\x01\x03\x12\x04\xf7\x01\x13\x14b\x06proto3\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/status.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/status.rs index 9ae6689ebf..8cc614b0ad 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/status.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/rpc/status.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct Status { @@ -270,100 +270,57 @@ 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\x07detailsB^\n\x0ecom.go\ + \x18\x03\x20\x03(\x0b2\x14.google.protobuf.AnyR\x07detailsBa\n\x0ecom.go\ ogle.rpcB\x0bStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc\ - /status;status\xa2\x02\x03RPCJ\x9e\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\r\n\x05\x04\0\x02\0\x04\x12\x04R\ - \x02O\x10\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\x20deve\ - loper-facing\x20error\x20message,\x20which\x20should\x20be\x20in\x20Engl\ - ish.\x20Any\n\x20user-facing\x20error\x20message\x20should\x20be\x20loca\ - lized\x20and\x20sent\x20in\x20the\n\x20[google.rpc.Status.details][googl\ - e.rpc.Status.details]\x20field,\x20or\x20localized\n\x20by\x20the\x20cli\ - ent.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04X\x02R\x11\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\ + /status;status\xf8\x01\x01\xa2\x02\x03RPCJ\xa0\x0e\n\x06\x12\x04\x0e\0.\ + \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\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\"\0.\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\nd\n\x04\ + \x04\0\x02\0\x12\x03$\x02\x11\x1aW\x20The\x20status\x20code,\x20which\ + \x20should\x20be\x20an\x20enum\x20value\x20of\x20[google.rpc.Code][googl\ + e.rpc.Code].\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04$\x02\"\x10\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\xeb\x01\n\x04\ + \x04\0\x02\x01\x12\x03)\x02\x15\x1a\xdd\x01\x20A\x20developer-facing\x20\ + error\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\x20by\x20the\x20client.\n\n\r\n\ + \x05\x04\0\x02\x01\x04\x12\x04)\x02$\x11\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\x20list\x20of\x20messages\x20that\x20carry\x20the\x20err\ + or\x20details.\x20\x20There\x20is\x20a\x20common\x20set\x20of\n\x20messa\ + ge\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/backup.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/backup.rs new file mode 100644 index 0000000000..55f3105091 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/backup.rs @@ -0,0 +1,3925 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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, + // 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()) + } +} + +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; + } + }; + true + } + + fn merge_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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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 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)) + } +} + +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\"\xe0\x05\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\"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/Backup\x128pr\ + ojects/{project}/instances/{instance}/backups/{backup}\"\xb1\x02\n\x13Cr\ + eateBackupRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xe0A\ + \x02\xfaA!\n\x1fspanner.googleapis.com/Instance\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.a\ + dmin.database.v1.CreateBackupEncryptionConfigR\x10encryptionConfigB\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.google\ + apis.com/Database\x12O\n\x08progress\x18\x03\x20\x01(\x0b23.google.spann\ + er.admin.database.v1.OperationProgressR\x08progress\x12;\n\x0bcancel_tim\ + e\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncancelTime\"\x9e\ + \x01\n\x13UpdateBackupRequest\x12E\n\x06backup\x18\x01\x20\x01(\x0b2(.go\ + ogle.spanner.admin.database.v1.BackupR\x06backupB\x03\xe0A\x02\x12@\n\ + \x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nup\ + dateMaskB\x03\xe0A\x02\"M\n\x10GetBackupRequest\x129\n\x04name\x18\x01\ + \x20\x01(\tR\x04nameB%\xe0A\x02\xfaA\x1f\n\x1dspanner.googleapis.com/Bac\ + kup\"P\n\x13DeleteBackupRequest\x129\n\x04name\x18\x01\x20\x01(\tR\x04na\ + meB%\xfaA\x1f\n\x1dspanner.googleapis.com/Backup\xe0A\x02\"\xa9\x01\n\ + \x12ListBackupsRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\ + \xe0A\x02\xfaA!\n\x1fspanner.googleapis.com/Instance\x12\x16\n\x06filter\ + \x18\x02\x20\x01(\tR\x06filter\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05\ + R\x08pageSize\x12\x1d\n\npage_token\x18\x04\x20\x01(\tR\tpageToken\"\x81\ + \x01\n\x13ListBackupsResponse\x12B\n\x07backups\x18\x01\x20\x03(\x0b2(.g\ + oogle.spanner.admin.database.v1.BackupR\x07backups\x12&\n\x0fnext_page_t\ + oken\x18\x02\x20\x01(\tR\rnextPageToken\"\xb2\x01\n\x1bListBackupOperati\ + onsRequest\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\"\x85\x01\n\x1cLi\ + stBackupOperationsResponse\x12=\n\noperations\x18\x01\x20\x03(\x0b2\x1d.\ + google.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/B\ + ackup\x12=\n\x0cversion_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.T\ + imestampR\x0bversionTime\x12;\n\x0bcreate_time\x18\x02\x20\x01(\x0b2\x1a\ + .google.protobuf.TimestampR\ncreateTime\x12M\n\x0fsource_database\x18\ + \x03\x20\x01(\tR\x0esourceDatabaseB$\xfaA!\n\x1fspanner.googleapis.com/D\ + atabase\"\xf9\x02\n\x1cCreateBackupEncryptionConfig\x12{\n\x0fencryption\ + _type\x18\x01\x20\x01(\x0e2M.google.spanner.admin.database.v1.CreateBack\ + upEncryptionConfig.EncryptionTypeR\x0eencryptionTypeB\x03\xe0A\x02\x12K\ + \n\x0ckms_key_name\x18\x02\x20\x01(\tR\nkmsKeyNameB)\xfaA#\n!cloudkms.go\ + ogleapis.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\x03B\xff\x01\n$com.google.spanner.admin.d\ + atabase.v1B\x0bBackupProtoP\x01ZHgoogle.golang.org/genproto/googleapis/s\ + panner/admin/database/v1;database\xaa\x02&Google.Cloud.Spanner.Admin.Dat\ + abase.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Goo\ + gle::Cloud::Spanner::Admin::Database::V1J\xf2\x94\x01\n\x07\x12\x05\x0e\ + \0\xcc\x03\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\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\n3\n\x02\ + \x04\0\x12\x04\"\0}\x01\x1a'\x20A\x20backup\x20of\x20a\x20Cloud\x20Spann\ + er\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\x20curren\ + t\x20state\x20of\x20the\x20backup.\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`FAILED_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\x20backup\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<\x05\x1a\xb2\x02\x20Required\x20for\x20the\n\x20[Cre\ + ateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]\ + \n\x20operation.\x20Name\x20of\x20the\x20database\x20from\x20which\x20th\ + is\x20backup\x20was\x20created.\x20This\n\x20needs\x20to\x20be\x20in\x20\ + the\x20same\x20instance\x20as\x20the\x20backup.\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects//instances//databases/\ + `.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04:\x023\x03\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<\x04\n\x0f\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x04:\x17<\ + \x03\n\xf1\x01\n\x04\x04\0\x02\x01\x12\x03B\x02-\x1a\xe3\x01\x20The\x20b\ + ackup\x20will\x20contain\x20an\x20externally\x20consistent\x20copy\x20of\ + \x20the\x20database\x20at\n\x20the\x20timestamp\x20specified\x20by\x20`v\ + ersion_time`.\x20If\x20`version_time`\x20is\x20not\n\x20specified,\x20th\ + e\x20system\x20will\x20set\x20`version_time`\x20to\x20the\x20`create_tim\ + e`\x20of\x20the\n\x20backup.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04B\x02<\ + \x05\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\ + \xb7\x03\n\x04\x04\0\x02\x02\x12\x03K\x02,\x1a\xa9\x03\x20Required\x20fo\ + r\x20the\n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAd\ + min.CreateBackup]\n\x20operation.\x20The\x20expiration\x20time\x20of\x20\ + the\x20backup,\x20with\x20microseconds\n\x20granularity\x20that\x20must\ + \x20be\x20at\x20least\x206\x20hours\x20and\x20at\x20most\x20366\x20days\ + \n\x20from\x20the\x20time\x20the\x20CreateBackup\x20request\x20is\x20pro\ + cessed.\x20Once\x20the\x20`expire_time`\n\x20has\x20passed,\x20the\x20ba\ + ckup\x20is\x20eligible\x20to\x20be\x20automatically\x20deleted\x20by\x20\ + Cloud\n\x20Spanner\x20to\x20free\x20the\x20resources\x20used\x20by\x20th\ + e\x20backup.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04K\x02B-\n\x0c\n\x05\ + \x04\0\x02\x02\x06\x12\x03K\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ + \x03K\x1c'\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03K*+\n\xc0\x05\n\x04\x04\ + \0\x02\x03\x12\x03]\x02\x12\x1a\xb2\x05\x20Output\x20only\x20for\x20the\ + \n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.Crea\ + teBackup]\n\x20operation.\x20Required\x20for\x20the\n\x20[UpdateBackup][\ + google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]\n\x20operat\ + ion.\n\n\x20A\x20globally\x20unique\x20identifier\x20for\x20the\x20backu\ + p\x20which\x20cannot\x20be\n\x20changed.\x20Values\x20are\x20of\x20the\ + \x20form\n\x20`projects//instances//backups/[a-z][a-z\ + 0-9_\\-]*[a-z0-9]`\n\x20The\x20final\x20segment\x20of\x20the\x20name\x20\ + must\x20be\x20between\x202\x20and\x2060\x20characters\n\x20in\x20length.\ + \n\n\x20The\x20backup\x20is\x20stored\x20in\x20the\x20location(s)\x20spe\ + cified\x20in\x20the\x20instance\n\x20configuration\x20of\x20the\x20insta\ + nce\x20containing\x20the\x20backup,\x20identified\n\x20by\x20the\x20pref\ + ix\x20of\x20the\x20backup\x20name\x20of\x20the\x20form\n\x20`projects//instances/`.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04]\ + \x02K,\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\r\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03]\x10\x11\ + \n\x88\x02\n\x04\x04\0\x02\x04\x12\x04c\x02d2\x1a\xf9\x01\x20Output\x20o\ + nly.\x20The\x20time\x20the\n\x20[CreateBackup][google.spanner.admin.data\ + base.v1.DatabaseAdmin.CreateBackup]\n\x20request\x20is\x20received.\x20I\ + f\x20the\x20request\x20does\x20not\x20specify\x20`version_time`,\x20the\ + \n\x20`version_time`\x20of\x20the\x20backup\x20will\x20be\x20equivalent\ + \x20to\x20the\x20`create_time`.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\x04c\ + \x02]\x12\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03c\x02\x1b\n\x0c\n\x05\x04\ + \0\x02\x04\x01\x12\x03c\x1c'\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03c*+\n\ + \x0c\n\x05\x04\0\x02\x04\x08\x12\x03d\x061\n\x0f\n\x08\x04\0\x02\x04\x08\ + \x9c\x08\0\x12\x03d\x070\n8\n\x04\x04\0\x02\x05\x12\x03g\x02C\x1a+\x20Ou\ + tput\x20only.\x20Size\x20of\x20the\x20backup\x20in\x20bytes.\n\n\r\n\x05\ + \x04\0\x02\x05\x04\x12\x04g\x02d2\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03g\ + \x02\x07\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03g\x08\x12\n\x0c\n\x05\x04\ + \0\x02\x05\x03\x12\x03g\x15\x16\n\x0c\n\x05\x04\0\x02\x05\x08\x12\x03g\ + \x17B\n\x0f\n\x08\x04\0\x02\x05\x08\x9c\x08\0\x12\x03g\x18A\n<\n\x04\x04\ + \0\x02\x06\x12\x03j\x02>\x1a/\x20Output\x20only.\x20The\x20current\x20st\ + ate\x20of\x20the\x20backup.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04j\x02gC\ + \n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03j\x02\x07\n\x0c\n\x05\x04\0\x02\ + \x06\x01\x12\x03j\x08\r\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03j\x10\x11\n\ + \x0c\n\x05\x04\0\x02\x06\x08\x12\x03j\x12=\n\x0f\n\x08\x04\0\x02\x06\x08\ + \x9c\x08\0\x12\x03j\x13<\n\xba\x03\n\x04\x04\0\x02\x07\x12\x04s\x02x\x04\ + \x1a\xab\x03\x20Output\x20only.\x20The\x20names\x20of\x20the\x20restored\ + \x20databases\x20that\x20reference\x20the\x20backup.\n\x20The\x20databas\ + e\x20names\x20are\x20of\n\x20the\x20form\x20`projects//instance\ + s//databases/`.\n\x20Referencing\x20databases\x20may\ + \x20exist\x20in\x20different\x20instances.\x20The\x20existence\x20of\n\ + \x20any\x20referencing\x20database\x20prevents\x20the\x20backup\x20from\ + \x20being\x20deleted.\x20When\x20a\n\x20restored\x20database\x20from\x20\ + the\x20backup\x20enters\x20the\x20`READY`\x20state,\x20the\x20reference\ + \n\x20to\x20the\x20backup\x20is\x20removed.\n\n\x0c\n\x05\x04\0\x02\x07\ + \x04\x12\x03s\x02\n\n\x0c\n\x05\x04\0\x02\x07\x05\x12\x03s\x0b\x11\n\x0c\ + \n\x05\x04\0\x02\x07\x01\x12\x03s\x12'\n\x0c\n\x05\x04\0\x02\x07\x03\x12\ + \x03s*+\n\r\n\x05\x04\0\x02\x07\x08\x12\x04s,x\x03\n\x0f\n\x08\x04\0\x02\ + \x07\x08\x9c\x08\0\x12\x03t\x04-\n\x0f\n\x07\x04\0\x02\x07\x08\x9f\x08\ + \x12\x04u\x04w\x05\nG\n\x04\x04\0\x02\x08\x12\x04{\x02|2\x1a9\x20Output\ + \x20only.\x20The\x20encryption\x20information\x20for\x20the\x20backup.\n\ + \n\r\n\x05\x04\0\x02\x08\x04\x12\x04{\x02x\x04\n\x0c\n\x05\x04\0\x02\x08\ + \x06\x12\x03{\x02\x10\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03{\x11\x20\n\ + \x0c\n\x05\x04\0\x02\x08\x03\x12\x03{#$\n\x0c\n\x05\x04\0\x02\x08\x08\ + \x12\x03|\x061\n\x0f\n\x08\x04\0\x02\x08\x08\x9c\x08\0\x12\x03|\x070\nm\ + \n\x02\x04\x01\x12\x06\x81\x01\0\x9e\x01\x01\x1a_\x20The\x20request\x20f\ + or\n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.Cr\ + eateBackup].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x81\x01\x08\x1b\n\xe3\x02\ + \n\x04\x04\x01\x02\0\x12\x06\x88\x01\x02\x8d\x01\x04\x1a\xd2\x02\x20Requ\ + ired.\x20The\x20name\x20of\x20the\x20instance\x20in\x20which\x20the\x20b\ + ackup\x20will\x20be\n\x20created.\x20This\x20must\x20be\x20the\x20same\ + \x20instance\x20that\x20contains\x20the\x20database\x20the\n\x20backup\ + \x20will\x20be\x20created\x20from.\x20The\x20backup\x20will\x20be\x20sto\ + red\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\x0f\ + \n\x05\x04\x01\x02\0\x04\x12\x06\x88\x01\x02\x81\x01\x1d\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\x0f\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x88\x01\x12\x13\n\ + \x0f\n\x05\x04\x01\x02\0\x08\x12\x06\x88\x01\x14\x8d\x01\x03\n\x10\n\x08\ + \x04\x01\x02\0\x08\x9c\x08\0\x12\x04\x89\x01\x04*\n\x11\n\x07\x04\x01\ + \x02\0\x08\x9f\x08\x12\x06\x8a\x01\x04\x8c\x01\x05\n\xcb\x01\n\x04\x04\ + \x01\x02\x01\x12\x04\x92\x01\x02@\x1a\xbc\x01\x20Required.\x20The\x20id\ + \x20of\x20the\x20backup\x20to\x20be\x20created.\x20The\x20`backup_id`\ + \x20appended\x20to\n\x20`parent`\x20forms\x20the\x20full\x20backup\x20na\ + me\x20of\x20the\x20form\n\x20`projects//instances//ba\ + ckups/`.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\x92\x01\ + \x02\x8d\x01\x04\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x92\x01\x02\x08\n\ + \r\n\x05\x04\x01\x02\x01\x01\x12\x04\x92\x01\t\x12\n\r\n\x05\x04\x01\x02\ + \x01\x03\x12\x04\x92\x01\x15\x16\n\r\n\x05\x04\x01\x02\x01\x08\x12\x04\ + \x92\x01\x17?\n\x10\n\x08\x04\x01\x02\x01\x08\x9c\x08\0\x12\x04\x92\x01\ + \x18>\n/\n\x04\x04\x01\x02\x02\x12\x04\x95\x01\x02=\x1a!\x20Required.\ + \x20The\x20backup\x20to\x20create.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\ + \x06\x95\x01\x02\x92\x01@\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\x95\x01\ + \x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x95\x01\t\x0f\n\r\n\x05\ + \x04\x01\x02\x02\x03\x12\x04\x95\x01\x12\x13\n\r\n\x05\x04\x01\x02\x02\ + \x08\x12\x04\x95\x01\x14<\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\x12\ + \x04\x95\x01\x15;\n\xd0\x02\n\x04\x04\x01\x02\x03\x12\x06\x9c\x01\x02\ + \x9d\x01/\x1a\xbf\x02\x20Optional.\x20The\x20encryption\x20configuration\ + \x20used\x20to\x20encrypt\x20the\x20backup.\x20If\x20this\n\x20field\x20\ + is\x20not\x20specified,\x20the\x20backup\x20will\x20use\x20the\x20same\ + \x20encryption\n\x20configuration\x20as\x20the\x20database\x20by\x20defa\ + ult,\x20namely\n\x20[encryption_type][google.spanner.admin.database.v1.C\ + reateBackupEncryptionConfig.encryption_type]\n\x20=\x20`USE_DATABASE_ENC\ + RYPTION`.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x9c\x01\x02\x95\x01=\ + \n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\x9c\x01\x02\x1e\n\r\n\x05\x04\x01\ + \x02\x03\x01\x12\x04\x9c\x01\x1f0\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\ + \x9c\x0134\n\r\n\x05\x04\x01\x02\x03\x08\x12\x04\x9d\x01\x06.\n\x10\n\ + \x08\x04\x01\x02\x03\x08\x9c\x08\0\x12\x04\x9d\x01\x07-\n\x89\x01\n\x02\ + \x04\x02\x12\x06\xa2\x01\0\xbf\x01\x01\x1a{\x20Metadata\x20type\x20for\ + \x20the\x20operation\x20returned\x20by\n\x20[CreateBackup][google.spanne\ + r.admin.database.v1.DatabaseAdmin.CreateBackup].\n\n\x0b\n\x03\x04\x02\ + \x01\x12\x04\xa2\x01\x08\x1c\n7\n\x04\x04\x02\x02\0\x12\x06\xa4\x01\x02\ + \xa6\x01\x04\x1a'\x20The\x20name\x20of\x20the\x20backup\x20being\x20crea\ + ted.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xa4\x01\x02\xa2\x01\x1e\n\r\ + \n\x05\x04\x02\x02\0\x05\x12\x04\xa4\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\ + \x01\x12\x04\xa4\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xa4\x01\x10\ + \x11\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xa4\x01\x12\xa6\x01\x03\n\x0f\ + \n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x04\xa5\x01\x04O\nF\n\x04\x04\x02\ + \x02\x01\x12\x06\xa9\x01\x02\xab\x01\x05\x1a6\x20The\x20name\x20of\x20th\ + e\x20database\x20the\x20backup\x20is\x20created\x20from.\n\n\x0f\n\x05\ + \x04\x02\x02\x01\x04\x12\x06\xa9\x01\x02\xa6\x01\x04\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\x11\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa9\x01\x14\x15\ + \n\x0f\n\x05\x04\x02\x02\x01\x08\x12\x06\xa9\x01\x16\xab\x01\x04\n\x11\n\ + \x07\x04\x02\x02\x01\x08\x9f\x08\x12\x06\xa9\x01\x17\xab\x01\x03\n|\n\ + \x04\x04\x02\x02\x02\x12\x04\xb0\x01\x02!\x1an\x20The\x20progress\x20of\ + \x20the\n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdm\ + in.CreateBackup]\n\x20operation.\n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\ + \x06\xb0\x01\x02\xab\x01\x05\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xb0\ + \x01\x02\x13\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xb0\x01\x14\x1c\n\r\n\ + \x05\x04\x02\x02\x02\x03\x12\x04\xb0\x01\x1f\x20\n\x87\x06\n\x04\x04\x02\ + \x02\x03\x12\x04\xbe\x01\x02,\x1a\xf8\x05\x20The\x20time\x20at\x20which\ + \x20cancellation\x20of\x20this\x20operation\x20was\x20received.\n\x20[Op\ + erations.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\x20guaran\ + teed.\n\x20Clients\x20can\x20use\n\x20[Operations.GetOperation][google.l\ + ongrunning.Operations.GetOperation]\x20or\n\x20other\x20methods\x20to\ + \x20check\x20whether\x20the\x20cancellation\x20succeeded\x20or\x20whethe\ + r\x20the\n\x20operation\x20completed\x20despite\x20cancellation.\x20On\ + \x20successful\x20cancellation,\n\x20the\x20operation\x20is\x20not\x20de\ + leted;\x20instead,\x20it\x20becomes\x20an\x20operation\x20with\n\x20an\ + \x20[Operation.error][google.longrunning.Operation.error]\x20value\x20wi\ + th\x20a\n\x20[google.rpc.Status.code][google.rpc.Status.code]\x20of\x201\ + ,\n\x20corresponding\x20to\x20`Code.CANCELLED`.\n\n\x0f\n\x05\x04\x02\ + \x02\x03\x04\x12\x06\xbe\x01\x02\xb0\x01!\n\r\n\x05\x04\x02\x02\x03\x06\ + \x12\x04\xbe\x01\x02\x1b\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xbe\x01\ + \x1c'\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xbe\x01*+\nm\n\x02\x04\x03\ + \x12\x06\xc3\x01\0\xd1\x01\x01\x1a_\x20The\x20request\x20for\n\x20[Updat\ + eBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup].\n\ + \n\x0b\n\x03\x04\x03\x01\x12\x04\xc3\x01\x08\x1b\n\xf1\x01\n\x04\x04\x03\ + \x02\0\x12\x04\xc8\x01\x02=\x1a\xe2\x01\x20Required.\x20The\x20backup\ + \x20to\x20update.\x20`backup.name`,\x20and\x20the\x20fields\x20to\x20be\ + \x20updated\n\x20as\x20specified\x20by\x20`update_mask`\x20are\x20requir\ + ed.\x20Other\x20fields\x20are\x20ignored.\n\x20Update\x20is\x20only\x20s\ + upported\x20for\x20the\x20following\x20fields:\n\x20\x20*\x20`backup.exp\ + ire_time`.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\x06\xc8\x01\x02\xc3\x01\ + \x1d\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xc8\x01\x02\x08\n\r\n\x05\x04\ + \x03\x02\0\x01\x12\x04\xc8\x01\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\ + \xc8\x01\x12\x13\n\r\n\x05\x04\x03\x02\0\x08\x12\x04\xc8\x01\x14<\n\x10\ + \n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\xc8\x01\x15;\n\xd8\x02\n\x04\ + \x04\x03\x02\x01\x12\x06\xcf\x01\x02\xd0\x01/\x1a\xc7\x02\x20Required.\ + \x20A\x20mask\x20specifying\x20which\x20fields\x20(e.g.\x20`expire_time`\ + )\x20in\x20the\n\x20Backup\x20resource\x20should\x20be\x20updated.\x20Th\ + is\x20mask\x20is\x20relative\x20to\x20the\x20Backup\n\x20resource,\x20no\ + t\x20to\x20the\x20request\x20message.\x20The\x20field\x20mask\x20must\ + \x20always\x20be\n\x20specified;\x20this\x20prevents\x20any\x20future\ + \x20fields\x20from\x20being\x20erased\x20accidentally\n\x20by\x20clients\ + \x20that\x20do\x20not\x20know\x20about\x20them.\n\n\x0f\n\x05\x04\x03\ + \x02\x01\x04\x12\x06\xcf\x01\x02\xc8\x01=\n\r\n\x05\x04\x03\x02\x01\x06\ + \x12\x04\xcf\x01\x02\x1b\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xcf\x01\ + \x1c'\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xcf\x01*+\n\r\n\x05\x04\x03\ + \x02\x01\x08\x12\x04\xd0\x01\x06.\n\x10\n\x08\x04\x03\x02\x01\x08\x9c\ + \x08\0\x12\x04\xd0\x01\x07-\ng\n\x02\x04\x04\x12\x06\xd5\x01\0\xdd\x01\ + \x01\x1aY\x20The\x20request\x20for\n\x20[GetBackup][google.spanner.admin\ + .database.v1.DatabaseAdmin.GetBackup].\n\n\x0b\n\x03\x04\x04\x01\x12\x04\ + \xd5\x01\x08\x18\n\x84\x01\n\x04\x04\x04\x02\0\x12\x06\xd9\x01\x02\xdc\ + \x01\x04\x1at\x20Required.\x20Name\x20of\x20the\x20backup.\n\x20Values\ + \x20are\x20of\x20the\x20form\n\x20`projects//instances//backups/`.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xd9\x01\ + \x02\xd5\x01\x1a\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xd9\x01\x02\x08\n\r\ + \n\x05\x04\x04\x02\0\x01\x12\x04\xd9\x01\t\r\n\r\n\x05\x04\x04\x02\0\x03\ + \x12\x04\xd9\x01\x10\x11\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xd9\x01\ + \x12\xdc\x01\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xda\x01\ + \x04*\n\x0f\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x04\xdb\x01\x04O\nm\n\ + \x02\x04\x05\x12\x06\xe1\x01\0\xe9\x01\x01\x1a_\x20The\x20request\x20for\ + \n\x20[DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.Dele\ + teBackup].\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xe1\x01\x08\x1b\n\x8e\x01\n\ + \x04\x04\x05\x02\0\x12\x06\xe5\x01\x02\xe8\x01\x04\x1a~\x20Required.\x20\ + Name\x20of\x20the\x20backup\x20to\x20delete.\n\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects//instances//backups/`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xe5\x01\x02\xe1\x01\x1d\ + \n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xe5\x01\x02\x08\n\r\n\x05\x04\x05\ + \x02\0\x01\x12\x04\xe5\x01\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xe5\ + \x01\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xe5\x01\x12\xe8\x01\ + \x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xe6\x01\x04*\n\x0f\ + \n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x04\xe7\x01\x04O\nk\n\x02\x04\x06\ + \x12\x06\xed\x01\0\xa8\x02\x01\x1a]\x20The\x20request\x20for\n\x20[ListB\ + ackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].\n\n\ + \x0b\n\x03\x04\x06\x01\x12\x04\xed\x01\x08\x1a\n\x82\x01\n\x04\x04\x06\ + \x02\0\x12\x06\xf0\x01\x02\xf5\x01\x04\x1ar\x20Required.\x20The\x20insta\ + nce\x20to\x20list\x20backups\x20from.\x20\x20Values\x20are\x20of\x20the\ + \n\x20form\x20`projects//instances/`.\n\n\x0f\n\x05\ + \x04\x06\x02\0\x04\x12\x06\xf0\x01\x02\xed\x01\x1c\n\r\n\x05\x04\x06\x02\ + \0\x05\x12\x04\xf0\x01\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xf0\ + \x01\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xf0\x01\x12\x13\n\x0f\n\ + \x05\x04\x06\x02\0\x08\x12\x06\xf0\x01\x14\xf5\x01\x03\n\x10\n\x08\x04\ + \x06\x02\0\x08\x9c\x08\0\x12\x04\xf1\x01\x04*\n\x11\n\x07\x04\x06\x02\0\ + \x08\x9f\x08\x12\x06\xf2\x01\x04\xf4\x01\x05\n\xec\x0c\n\x04\x04\x06\x02\ + \x01\x12\x04\x9c\x02\x02\x14\x1a\xdd\x0c\x20An\x20expression\x20that\x20\ + filters\x20the\x20list\x20of\x20returned\x20backups.\n\n\x20A\x20filter\ + \x20expression\x20consists\x20of\x20a\x20field\x20name,\x20a\x20comparis\ + on\x20operator,\x20and\x20a\n\x20value\x20for\x20filtering.\n\x20The\x20\ + value\x20must\x20be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20boolea\ + n.\x20The\x20comparison\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\x20sensitive.\n\n\x20The\x20following\x20fields\x20in\ + \x20the\n\x20[Backup][google.spanner.admin.database.v1.Backup]\x20are\ + \x20eligible\x20for\n\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\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDT\ + HH:MM:SSZ)\n\x20\x20\x20*\x20`expire_time`\x20\x20(and\x20values\x20are\ + \x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\x20\x20\x20*\x20`vers\ + ion_time`\x20(and\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDT\ + HH:MM:SSZ)\n\x20\x20\x20*\x20`size_bytes`\n\n\x20You\x20can\x20combine\ + \x20multiple\x20expressions\x20by\x20enclosing\x20each\x20expression\x20\ + in\n\x20parentheses.\x20By\x20default,\x20expressions\x20are\x20combined\ + \x20with\x20AND\x20logic,\x20but\n\x20you\x20can\x20specify\x20AND,\x20O\ + R,\x20and\x20NOT\x20logic\x20explicitly.\n\n\x20Here\x20are\x20a\x20few\ + \x20examples:\n\n\x20\x20\x20*\x20`name:Howl`\x20-\x20The\x20backup's\ + \x20name\x20contains\x20the\x20string\x20\"howl\".\n\x20\x20\x20*\x20`da\ + tabase:prod`\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20The\x20databa\ + se's\x20name\x20contains\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\x20contai\ + ns\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`expire_time`\x20is\x20before\x202018-03-28T14\ + :50:00Z.\n\x20\x20\x20*\x20`size_bytes\x20>\x2010000000000`\x20-\x20The\ + \x20backup's\x20size\x20is\x20greater\x20than\x2010GB\n\n\x0f\n\x05\x04\ + \x06\x02\x01\x04\x12\x06\x9c\x02\x02\xf5\x01\x04\n\r\n\x05\x04\x06\x02\ + \x01\x05\x12\x04\x9c\x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\ + \x9c\x02\t\x0f\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x9c\x02\x12\x13\n\ + \x84\x01\n\x04\x04\x06\x02\x02\x12\x04\xa0\x02\x02\x16\x1av\x20Number\ + \x20of\x20backups\x20to\x20be\x20returned\x20in\x20the\x20response.\x20I\ + f\x200\x20or\n\x20less,\x20defaults\x20to\x20the\x20server's\x20maximum\ + \x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x06\x02\x02\x04\x12\x06\ + \xa0\x02\x02\x9c\x02\x14\n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\xa0\x02\ + \x02\x07\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xa0\x02\x08\x11\n\r\n\x05\ + \x04\x06\x02\x02\x03\x12\x04\xa0\x02\x14\x15\n\xa5\x02\n\x04\x04\x06\x02\ + \x03\x12\x04\xa7\x02\x02\x18\x1a\x96\x02\x20If\x20non-empty,\x20`page_to\ + ken`\x20should\x20contain\x20a\n\x20[next_page_token][google.spanner.adm\ + in.database.v1.ListBackupsResponse.next_page_token]\n\x20from\x20a\x20pr\ + evious\n\x20[ListBackupsResponse][google.spanner.admin.database.v1.ListB\ + ackupsResponse]\n\x20to\x20the\x20same\x20`parent`\x20and\x20with\x20the\ + \x20same\x20`filter`.\n\n\x0f\n\x05\x04\x06\x02\x03\x04\x12\x06\xa7\x02\ + \x02\xa0\x02\x16\n\r\n\x05\x04\x06\x02\x03\x05\x12\x04\xa7\x02\x02\x08\n\ + \r\n\x05\x04\x06\x02\x03\x01\x12\x04\xa7\x02\t\x13\n\r\n\x05\x04\x06\x02\ + \x03\x03\x12\x04\xa7\x02\x16\x17\nl\n\x02\x04\x07\x12\x06\xac\x02\0\xb5\ + \x02\x01\x1a^\x20The\x20response\x20for\n\x20[ListBackups][google.spanne\ + r.admin.database.v1.DatabaseAdmin.ListBackups].\n\n\x0b\n\x03\x04\x07\ + \x01\x12\x04\xac\x02\x08\x1b\n\x9f\x01\n\x04\x04\x07\x02\0\x12\x04\xaf\ + \x02\x02\x1e\x1a\x90\x01\x20The\x20list\x20of\x20matching\x20backups.\ + \x20Backups\x20returned\x20are\x20ordered\x20by\x20`create_time`\n\x20in\ + \x20descending\x20order,\x20starting\x20from\x20the\x20most\x20recent\ + \x20`create_time`.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\xaf\x02\x02\n\n\ + \r\n\x05\x04\x07\x02\0\x06\x12\x04\xaf\x02\x0b\x11\n\r\n\x05\x04\x07\x02\ + \0\x01\x12\x04\xaf\x02\x12\x19\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xaf\ + \x02\x1c\x1d\n\xb6\x01\n\x04\x04\x07\x02\x01\x12\x04\xb4\x02\x02\x1d\x1a\ + \xa7\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequ\ + ent\n\x20[ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.Li\ + stBackups]\n\x20call\x20to\x20fetch\x20more\x20of\x20the\x20matching\x20\ + backups.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xb4\x02\x02\xaf\x02\ + \x1e\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xb4\x02\x02\x08\n\r\n\x05\x04\ + \x07\x02\x01\x01\x12\x04\xb4\x02\t\x18\n\r\n\x05\x04\x07\x02\x01\x03\x12\ + \x04\xb4\x02\x1b\x1c\n}\n\x02\x04\x08\x12\x06\xb9\x02\0\xf8\x02\x01\x1ao\ + \x20The\x20request\x20for\n\x20[ListBackupOperations][google.spanner.adm\ + in.database.v1.DatabaseAdmin.ListBackupOperations].\n\n\x0b\n\x03\x04\ + \x08\x01\x12\x04\xb9\x02\x08#\n\x85\x01\n\x04\x04\x08\x02\0\x12\x06\xbc\ + \x02\x02\xc1\x02\x04\x1au\x20Required.\x20The\x20instance\x20of\x20the\ + \x20backup\x20operations.\x20Values\x20are\x20of\n\x20the\x20form\x20`pr\ + ojects//instances/`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\ + \x12\x06\xbc\x02\x02\xb9\x02%\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xbc\ + \x02\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xbc\x02\t\x0f\n\r\n\x05\ + \x04\x08\x02\0\x03\x12\x04\xbc\x02\x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\ + \x12\x06\xbc\x02\x14\xc1\x02\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\ + \x12\x04\xbd\x02\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xbe\ + \x02\x04\xc0\x02\x05\n\xe2\x0f\n\x04\x04\x08\x02\x01\x12\x04\xec\x02\x02\ + \x14\x1a\xd3\x0f\x20An\x20expression\x20that\x20filters\x20the\x20list\ + \x20of\x20returned\x20backup\x20operations.\n\n\x20A\x20filter\x20expres\ + sion\x20consists\x20of\x20a\x20field\x20name,\x20a\n\x20comparison\x20op\ + erator,\x20and\x20a\x20value\x20for\x20filtering.\n\x20The\x20value\x20m\ + ust\x20be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20boolean.\x20The\ + \x20comparison\x20operator\n\x20must\x20be\x20one\x20of:\x20`<`,\x20`>`,\ + \x20`<=`,\x20`>=`,\x20`!=`,\x20`=`,\x20or\x20`:`.\n\x20Colon\x20`:`\x20i\ + s\x20the\x20contains\x20operator.\x20Filter\x20rules\x20are\x20not\x20ca\ + se\x20sensitive.\n\n\x20The\x20following\x20fields\x20in\x20the\x20[oper\ + ation][google.longrunning.Operation]\n\x20are\x20eligible\x20for\x20filt\ + ering:\n\n\x20\x20\x20*\x20`name`\x20-\x20The\x20name\x20of\x20the\x20lo\ + ng-running\x20operation\n\x20\x20\x20*\x20`done`\x20-\x20False\x20if\x20\ + the\x20operation\x20is\x20in\x20progress,\x20else\x20true.\n\x20\x20\x20\ + *\x20`metadata.@type`\x20-\x20the\x20type\x20of\x20metadata.\x20For\x20e\ + xample,\x20the\x20type\x20string\n\x20\x20\x20\x20\x20\x20for\n\x20\x20\ + \x20\x20\x20\x20[CreateBackupMetadata][google.spanner.admin.database.v1.\ + CreateBackupMetadata]\n\x20\x20\x20\x20\x20\x20is\n\x20\x20\x20\x20\x20\ + \x20`type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMe\ + tadata`.\n\x20\x20\x20*\x20`metadata.`\x20-\x20any\x20field\ + \x20in\x20metadata.value.\n\x20\x20\x20*\x20`error`\x20-\x20Error\x20ass\ + ociated\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\x20combine\x20multiple\x20expressions\x20by\x20enclo\ + sing\x20each\x20expression\x20in\n\x20parentheses.\x20By\x20default,\x20\ + expressions\x20are\x20combined\x20with\x20AND\x20logic,\x20but\n\x20you\ + \x20can\x20specify\x20AND,\x20OR,\x20and\x20NOT\x20logic\x20explicitly.\ + \n\n\x20Here\x20are\x20a\x20few\x20examples:\n\n\x20\x20\x20*\x20`done:t\ + rue`\x20-\x20The\x20operation\x20is\x20complete.\n\x20\x20\x20*\x20`meta\ + data.database:prod`\x20-\x20The\x20database\x20the\x20backup\x20was\x20t\ + aken\x20from\x20has\n\x20\x20\x20\x20\x20\x20a\x20name\x20containing\x20\ + the\x20string\x20\"prod\".\n\x20\x20\x20*\x20`(metadata.@type=type.googl\ + eapis.com/google.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-\x20Retu\ + rns\x20operations\x20where:\n\x20\x20\x20\x20\x20*\x20The\x20operation's\ + \x20metadata\x20type\x20is\n\x20\x20\x20\x20\x20[CreateBackupMetadata][g\ + oogle.spanner.admin.database.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\x20error.\n\n\x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xec\x02\ + \x02\xc1\x02\x04\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xec\x02\x02\x08\n\ + \r\n\x05\x04\x08\x02\x01\x01\x12\x04\xec\x02\t\x0f\n\r\n\x05\x04\x08\x02\ + \x01\x03\x12\x04\xec\x02\x12\x13\n\x87\x01\n\x04\x04\x08\x02\x02\x12\x04\ + \xf0\x02\x02\x16\x1ay\x20Number\x20of\x20operations\x20to\x20be\x20retur\ + ned\x20in\x20the\x20response.\x20If\x200\x20or\n\x20less,\x20defaults\ + \x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\x0f\ + \n\x05\x04\x08\x02\x02\x04\x12\x06\xf0\x02\x02\xec\x02\x14\n\r\n\x05\x04\ + \x08\x02\x02\x05\x12\x04\xf0\x02\x02\x07\n\r\n\x05\x04\x08\x02\x02\x01\ + \x12\x04\xf0\x02\x08\x11\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xf0\x02\ + \x14\x15\n\xc0\x02\n\x04\x04\x08\x02\x03\x12\x04\xf7\x02\x02\x18\x1a\xb1\ + \x02\x20If\x20non-empty,\x20`page_token`\x20should\x20contain\x20a\n\x20\ + [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsR\ + esponse.next_page_token]\n\x20from\x20a\x20previous\n\x20[ListBackupOper\ + ationsResponse][google.spanner.admin.database.v1.ListBackupOperationsRes\ + ponse]\n\x20to\x20the\x20same\x20`parent`\x20and\x20with\x20the\x20same\ + \x20`filter`.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\x12\x06\xf7\x02\x02\xf0\ + \x02\x16\n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\xf7\x02\x02\x08\n\r\n\x05\ + \x04\x08\x02\x03\x01\x12\x04\xf7\x02\t\x13\n\r\n\x05\x04\x08\x02\x03\x03\ + \x12\x04\xf7\x02\x16\x17\n~\n\x02\x04\t\x12\x06\xfc\x02\0\x8c\x03\x01\ + \x1ap\x20The\x20response\x20for\n\x20[ListBackupOperations][google.spann\ + er.admin.database.v1.DatabaseAdmin.ListBackupOperations].\n\n\x0b\n\x03\ + \x04\t\x01\x12\x04\xfc\x02\x08$\n\xd4\x04\n\x04\x04\t\x02\0\x12\x04\x86\ + \x03\x027\x1a\xc5\x04\x20The\x20list\x20of\x20matching\x20backup\x20[lon\ + g-running\n\x20operations][google.longrunning.Operation].\x20Each\x20ope\ + ration's\x20name\x20will\x20be\n\x20prefixed\x20by\x20the\x20backup's\ + \x20name\x20and\x20the\x20operation's\n\x20[metadata][google.longrunning\ + .Operation.metadata]\x20will\x20be\x20of\x20type\n\x20[CreateBackupMetad\ + ata][google.spanner.admin.database.v1.CreateBackupMetadata].\n\x20Operat\ + ions\x20returned\x20include\x20those\x20that\x20are\x20pending\x20or\x20\ + have\n\x20completed/failed/canceled\x20within\x20the\x20last\x207\x20day\ + s.\x20Operations\x20returned\x20are\n\x20ordered\x20by\x20`operation.met\ + adata.value.progress.start_time`\x20in\x20descending\n\x20order\x20start\ + ing\x20from\x20the\x20most\x20recently\x20started\x20operation.\n\n\r\n\ + \x05\x04\t\x02\0\x04\x12\x04\x86\x03\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\ + \x04\x86\x03\x0b'\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x86\x03(2\n\r\n\x05\ + \x04\t\x02\0\x03\x12\x04\x86\x0356\n\xc9\x01\n\x04\x04\t\x02\x01\x12\x04\ + \x8b\x03\x02\x1d\x1a\xba\x01\x20`next_page_token`\x20can\x20be\x20sent\ + \x20in\x20a\x20subsequent\n\x20[ListBackupOperations][google.spanner.adm\ + in.database.v1.DatabaseAdmin.ListBackupOperations]\n\x20call\x20to\x20fe\ + tch\x20more\x20of\x20the\x20matching\x20metadata.\n\n\x0f\n\x05\x04\t\ + \x02\x01\x04\x12\x06\x8b\x03\x02\x86\x037\n\r\n\x05\x04\t\x02\x01\x05\ + \x12\x04\x8b\x03\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x8b\x03\t\ + \x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x8b\x03\x1b\x1c\n+\n\x02\x04\n\ + \x12\x06\x8f\x03\0\xa5\x03\x01\x1a\x1d\x20Information\x20about\x20a\x20b\ + ackup.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x8f\x03\x08\x12\n%\n\x04\x04\n\ + \x02\0\x12\x06\x91\x03\x02\x93\x03\x04\x1a\x15\x20Name\x20of\x20the\x20b\ + ackup.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\x91\x03\x02\x8f\x03\x14\n\r\ + \n\x05\x04\n\x02\0\x05\x12\x04\x91\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\ + \x12\x04\x91\x03\t\x0f\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x91\x03\x12\x13\ + \n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\x91\x03\x14\x93\x03\x03\n\x0f\n\x07\ + \x04\n\x02\0\x08\x9f\x08\x12\x04\x92\x03\x04O\n\xc9\x02\n\x04\x04\n\x02\ + \x01\x12\x04\x9a\x03\x02-\x1a\xba\x02\x20The\x20backup\x20contains\x20an\ + \x20externally\x20consistent\x20copy\x20of\x20`source_database`\x20at\n\ + \x20the\x20timestamp\x20specified\x20by\x20`version_time`.\x20If\x20the\ + \n\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.Crea\ + teBackup]\n\x20request\x20did\x20not\x20specify\x20`version_time`,\x20th\ + e\x20`version_time`\x20of\x20the\x20backup\x20is\n\x20equivalent\x20to\ + \x20the\x20`create_time`.\n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\x9a\ + \x03\x02\x93\x03\x04\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\x9a\x03\x02\x1b\ + \n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x9a\x03\x1c(\n\r\n\x05\x04\n\x02\ + \x01\x03\x12\x04\x9a\x03+,\n\x80\x01\n\x04\x04\n\x02\x02\x12\x04\x9f\x03\ + \x02,\x1ar\x20The\x20time\x20the\n\x20[CreateBackup][google.spanner.admi\ + n.database.v1.DatabaseAdmin.CreateBackup]\n\x20request\x20was\x20receive\ + d.\n\n\x0f\n\x05\x04\n\x02\x02\x04\x12\x06\x9f\x03\x02\x9a\x03-\n\r\n\ + \x05\x04\n\x02\x02\x06\x12\x04\x9f\x03\x02\x1b\n\r\n\x05\x04\n\x02\x02\ + \x01\x12\x04\x9f\x03\x1c'\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\x9f\x03*+\ + \nC\n\x04\x04\n\x02\x03\x12\x06\xa2\x03\x02\xa4\x03\x05\x1a3\x20Name\x20\ + of\x20the\x20database\x20the\x20backup\x20was\x20created\x20from.\n\n\ + \x0f\n\x05\x04\n\x02\x03\x04\x12\x06\xa2\x03\x02\x9f\x03,\n\r\n\x05\x04\ + \n\x02\x03\x05\x12\x04\xa2\x03\x02\x08\n\r\n\x05\x04\n\x02\x03\x01\x12\ + \x04\xa2\x03\t\x18\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\xa2\x03\x1b\x1c\n\ + \x0f\n\x05\x04\n\x02\x03\x08\x12\x06\xa2\x03\x1d\xa4\x03\x04\n\x11\n\x07\ + \x04\n\x02\x03\x08\x9f\x08\x12\x06\xa2\x03\x1e\xa4\x03\x03\nB\n\x02\x04\ + \x0b\x12\x06\xa8\x03\0\xcc\x03\x01\x1a4\x20Encryption\x20configuration\ + \x20for\x20the\x20backup\x20to\x20create.\n\n\x0b\n\x03\x04\x0b\x01\x12\ + \x04\xa8\x03\x08$\n2\n\x04\x04\x0b\x04\0\x12\x06\xaa\x03\x02\xbc\x03\x03\ + \x1a\"\x20Encryption\x20types\x20for\x20the\x20backup.\n\n\r\n\x05\x04\ + \x0b\x04\0\x01\x12\x04\xaa\x03\x07\x15\n*\n\x06\x04\x0b\x04\0\x02\0\x12\ + \x04\xac\x03\x04$\x1a\x1a\x20Unspecified.\x20Do\x20not\x20use.\n\n\x0f\n\ + \x07\x04\x0b\x04\0\x02\0\x01\x12\x04\xac\x03\x04\x1f\n\x0f\n\x07\x04\x0b\ + \x04\0\x02\0\x02\x12\x04\xac\x03\"#\n\xd1\x02\n\x06\x04\x0b\x04\0\x02\ + \x01\x12\x04\xb4\x03\x04\x20\x1a\xc0\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]\n\x20is\x20empty.\x20For\ + \x20example,\x20if\x20the\x20database\x20is\x20using\n\x20`Customer_Mana\ + ged_Encryption`,\x20the\x20backup\x20will\x20be\x20using\x20the\x20same\ + \x20Cloud\n\x20KMS\x20key\x20as\x20the\x20database.\n\n\x0f\n\x07\x04\ + \x0b\x04\0\x02\x01\x01\x12\x04\xb4\x03\x04\x1b\n\x0f\n\x07\x04\x0b\x04\0\ + \x02\x01\x02\x12\x04\xb4\x03\x1e\x1f\n0\n\x06\x04\x0b\x04\0\x02\x02\x12\ + \x04\xb7\x03\x04\"\x1a\x20\x20Use\x20Google\x20default\x20encryption.\n\ + \n\x0f\n\x07\x04\x0b\x04\0\x02\x02\x01\x12\x04\xb7\x03\x04\x1d\n\x0f\n\ + \x07\x04\x0b\x04\0\x02\x02\x02\x12\x04\xb7\x03\x20!\nt\n\x06\x04\x0b\x04\ + \0\x02\x03\x12\x04\xbb\x03\x04$\x1ad\x20Use\x20customer\x20managed\x20en\ + cryption.\x20If\x20specified,\x20`kms_key_name`\n\x20must\x20contain\x20\ + a\x20valid\x20Cloud\x20KMS\x20key.\n\n\x0f\n\x07\x04\x0b\x04\0\x02\x03\ + \x01\x12\x04\xbb\x03\x04\x1f\n\x0f\n\x07\x04\x0b\x04\0\x02\x03\x02\x12\ + \x04\xbb\x03\"#\n<\n\x04\x04\x0b\x02\0\x12\x04\xbf\x03\x02N\x1a.\x20Requ\ + ired.\x20The\x20encryption\x20type\x20of\x20the\x20backup.\n\n\x0f\n\x05\ + \x04\x0b\x02\0\x04\x12\x06\xbf\x03\x02\xbc\x03\x03\n\r\n\x05\x04\x0b\x02\ + \0\x06\x12\x04\xbf\x03\x02\x10\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xbf\ + \x03\x11\x20\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xbf\x03#$\n\r\n\x05\x04\ + \x0b\x02\0\x08\x12\x04\xbf\x03%M\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\ + \x12\x04\xbf\x03&L\n\xf1\x02\n\x04\x04\x0b\x02\x01\x12\x06\xc6\x03\x02\ + \xcb\x03\x04\x1a\xe0\x02\x20Optional.\x20The\x20Cloud\x20KMS\x20key\x20t\ + hat\x20will\x20be\x20used\x20to\x20protect\x20the\x20backup.\n\x20This\ + \x20field\x20should\x20be\x20set\x20only\x20when\n\x20[encryption_type][\ + google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption\ + _type]\n\x20is\x20`CUSTOMER_MANAGED_ENCRYPTION`.\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects//locations//keyRings/<\ + key_ring>/cryptoKeys/`.\n\n\x0f\n\x05\x04\x0b\x02\x01\x04\ + \x12\x06\xc6\x03\x02\xbf\x03N\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xc6\ + \x03\x02\x08\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xc6\x03\t\x15\n\r\n\ + \x05\x04\x0b\x02\x01\x03\x12\x04\xc6\x03\x18\x19\n\x0f\n\x05\x04\x0b\x02\ + \x01\x08\x12\x06\xc6\x03\x1a\xcb\x03\x03\n\x10\n\x08\x04\x0b\x02\x01\x08\ + \x9c\x08\0\x12\x04\xc7\x03\x04*\n\x11\n\x07\x04\x0b\x02\x01\x08\x9f\x08\ + \x12\x06\xc8\x03\x04\xca\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/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/common.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/common.rs new file mode 100644 index 0000000000..fbf73e07bf --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/common.rs @@ -0,0 +1,882 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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)) + } +} + +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\x02B\xa4\x04\n$com.google.spanner.admin.database.v1B\ + \x0bCommonProtoP\x01ZHgoogle.golang.org/genproto/googleapis/spanner/admi\ + n/database/v1;database\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\ + \xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Clo\ + ud::Spanner::Admin::Database::V1\xeaAx\n!cloudkms.googleapis.com/CryptoK\ + ey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/crypt\ + oKeys/{crypto_key}\xeaA\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersi\ + on\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/crypt\ + oKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}J\x88\x18\n\x06\ + \x12\x04\x0e\0c\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\ + \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\r\n\x05\x04\0\x02\0\x04\x12\x04,\x02)\x1b\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\r\n\x05\x04\0\x02\x01\x04\x12\x04/\x02,\x1d\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\x20successfu\ + lly.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x043\x02/+\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\x20\ + database.\n\n\n\n\x03\x04\x01\x01\x12\x037\x08\x18\n\xcb\x01\n\x04\x04\ + \x01\x02\0\x12\x04;\x02=\x05\x1a\xbc\x01\x20The\x20Cloud\x20KMS\x20key\ + \x20to\x20be\x20used\x20for\x20encrypting\x20and\x20decrypting\n\x20the\ + \x20database.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//locations//keyRings//cryptoKeys/`\ + .\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04;\x027\x1a\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=\x04\n\x0f\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x04;\ + \x1b=\x03\nL\n\x02\x04\x02\x12\x04A\0c\x01\x1a@\x20Encryption\x20informa\ + tion\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\x20encryption\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\x20encrypted.\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\x20encrypted\x20at\x20rest\x20with\x20\ + a\x20key\x20that\x20is\n\x20fully\x20managed\x20by\x20Google.\x20No\x20k\ + ey\x20version\x20or\x20status\x20will\x20be\x20populated.\n\x20This\x20i\ + s\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\x03O\x04$\x1a\xbb\x01\x20The\ + \x20data\x20is\x20encrypted\x20at\x20rest\x20with\x20a\x20key\x20that\ + \x20is\n\x20managed\x20by\x20the\x20customer.\x20The\x20active\x20versio\ + n\x20of\x20the\x20key.\x20`kms_key_version`\n\x20will\x20be\x20populated\ + ,\x20and\x20`encryption_status`\x20may\x20be\x20populated.\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&\x20Ou\ + tput\x20only.\x20The\x20type\x20of\x20encryption.\n\n\r\n\x05\x04\x02\ + \x02\0\x04\x12\x04S\x02P\x03\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\xbf\x01\n\x04\ + \x04\x02\x02\x01\x12\x04X\x02Y2\x1a\xb0\x01\x20Output\x20only.\x20If\x20\ + present,\x20the\x20status\x20of\x20a\x20recent\x20encrypt/decrypt\x20cal\ + l\x20on\n\x20underlying\x20data\x20for\x20this\x20database\x20or\x20back\ + up.\x20Regardless\x20of\x20status,\x20data\x20is\n\x20always\x20encrypte\ + d\x20at\x20rest.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04X\x02SG\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\x03Y\x061\n\x0f\n\x08\x04\x02\x02\x01\x08\ + \x9c\x08\0\x12\x03Y\x070\nk\n\x04\x04\x02\x02\x02\x12\x04]\x02b\x04\x1a]\ + \x20Output\x20only.\x20A\x20Cloud\x20KMS\x20key\x20version\x20that\x20is\ + \x20being\x20used\x20to\x20protect\x20the\n\x20database\x20or\x20backup.\ + \n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04]\x02Y2\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]\x1db\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_\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/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs index 73b8fd5fc4..0495890b4c 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,73 +21,107 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] -pub struct Database { +pub struct RestoreInfo { // message fields - pub name: ::std::string::String, - pub state: Database_State, + pub source_type: RestoreSourceType, + // message oneof groups + pub source_info: ::std::option::Option, // 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<'a> ::std::default::Default for &'a RestoreInfo { + fn default() -> &'a RestoreInfo { + ::default_instance() } } -impl Database { - pub fn new() -> Database { +#[derive(Clone,PartialEq,Debug)] +pub enum RestoreInfo_oneof_source_info { + backup_info(super::backup::BackupInfo), +} + +impl RestoreInfo { + pub fn new() -> RestoreInfo { ::std::default::Default::default() } - // string name = 1; + // .google.spanner.admin.database.v1.RestoreSourceType source_type = 1; - pub fn get_name(&self) -> &str { - &self.name + pub fn get_source_type(&self) -> RestoreSourceType { + self.source_type } - pub fn clear_name(&mut self) { - self.name.clear(); + pub fn clear_source_type(&mut self) { + self.source_type = RestoreSourceType::TYPE_UNSPECIFIED; } // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; + pub fn set_source_type(&mut self, v: RestoreSourceType) { + self.source_type = 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.spanner.admin.database.v1.BackupInfo backup_info = 2; - // 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_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, + } + } - pub fn get_state(&self) -> Database_State { - self.state + // 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)) } - pub fn clear_state(&mut self) { - self.state = Database_State::STATE_UNSPECIFIED; + + // 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!(), + } } - // Param is passed by value, moved - pub fn set_state(&mut self, v: Database_State) { - self.state = v; + // 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() + } } } -impl ::protobuf::Message for Database { +impl ::protobuf::Message for RestoreInfo { 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 } @@ -96,10 +130,13 @@ impl ::protobuf::Message for Database { let (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_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.source_type, 1, &mut self.unknown_fields)? }, 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 2, &mut self.unknown_fields)? + 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()?)); }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; @@ -113,11 +150,16 @@ impl ::protobuf::Message for Database { #[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_type != RestoreSourceType::TYPE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(1, self.source_type); } - if self.state != Database_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.state); + 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; + }, + }; } my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); self.cached_size.set(my_size); @@ -125,11 +167,17 @@ impl ::protobuf::Message for Database { } 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(1, ::protobuf::ProtobufEnum::value(&self.source_type))?; } - if self.state != Database_State::STATE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.state))?; + 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)?; + }, + }; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -161,223 +209,368 @@ impl ::protobuf::Message for Database { Self::descriptor_static() } - fn new() -> Database { - Database::new() + fn new() -> RestoreInfo { + RestoreInfo::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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>( + "source_type", + |m: &RestoreInfo| { &m.source_type }, + |m: &mut RestoreInfo| { &mut m.source_type }, )); - 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_message_accessor::<_, super::backup::BackupInfo>( + "backup_info", + RestoreInfo::has_backup_info, + RestoreInfo::get_backup_info, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Database", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RestoreInfo", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static Database { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Database::new) + fn default_instance() -> &'static RestoreInfo { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RestoreInfo::new) } } -impl ::protobuf::Clear for Database { +impl ::protobuf::Clear for RestoreInfo { fn clear(&mut self) { - self.name.clear(); - self.state = Database_State::STATE_UNSPECIFIED; + self.source_type = RestoreSourceType::TYPE_UNSPECIFIED; + self.source_info = ::std::option::Option::None; self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for Database { +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 Database { +impl ::protobuf::reflect::ProtobufValue for RestoreInfo { 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, +#[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>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, } -impl ::protobuf::ProtobufEnum for Database_State { - fn value(&self) -> i32 { - *self as i32 +impl<'a> ::std::default::Default for &'a Database { + fn default() -> &'a Database { + ::default_instance() } +} - 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), - _ => ::std::option::Option::None - } +impl Database { + pub fn new() -> Database { + ::std::default::Default::default() } - fn values() -> &'static [Self] { - static values: &'static [Database_State] = &[ - Database_State::STATE_UNSPECIFIED, - Database_State::CREATING, - Database_State::READY, - ]; - values - } + // string name = 1; - 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()) - }) + + pub fn get_name(&self) -> &str { + &self.name + } + pub fn clear_name(&mut self) { + self.name.clear(); } -} -impl ::std::marker::Copy for Database_State { -} + // Param is passed by value, moved + pub fn set_name(&mut self, v: ::std::string::String) { + self.name = v; + } -impl ::std::default::Default for Database_State { - fn default() -> Self { - Database_State::STATE_UNSPECIFIED + // 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::reflect::ProtobufValue for Database_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + // Take field + pub fn take_name(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.name, ::std::string::String::new()) } -} -#[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, -} + // .google.spanner.admin.database.v1.Database.State state = 2; -impl<'a> ::std::default::Default for &'a ListDatabasesRequest { - fn default() -> &'a ListDatabasesRequest { - ::default_instance() + + pub fn get_state(&self) -> Database_State { + self.state + } + pub fn clear_state(&mut self) { + self.state = Database_State::STATE_UNSPECIFIED; } -} -impl ListDatabasesRequest { - pub fn new() -> ListDatabasesRequest { - ::std::default::Default::default() + // Param is passed by value, moved + pub fn set_state(&mut self, v: Database_State) { + self.state = v; } - // string parent = 1; + // .google.protobuf.Timestamp create_time = 3; - pub fn get_parent(&self) -> &str { - &self.parent + 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_parent(&mut self) { - self.parent.clear(); + 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_parent(&mut self, v: ::std::string::String) { - self.parent = v; + 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_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent + 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_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) + 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()) } - // int32 page_size = 3; + // .google.spanner.admin.database.v1.RestoreInfo restore_info = 4; - pub fn get_page_size(&self) -> i32 { - self.page_size + pub fn get_restore_info(&self) -> &RestoreInfo { + self.restore_info.as_ref().unwrap_or_else(|| ::default_instance()) } - pub fn clear_page_size(&mut self) { - self.page_size = 0; + 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_page_size(&mut self, v: i32) { - self.page_size = v; + pub fn set_restore_info(&mut self, v: RestoreInfo) { + self.restore_info = ::protobuf::SingularPtrField::some(v); } - // string page_token = 4; + // 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_page_token(&self) -> &str { - &self.page_token + + pub fn get_encryption_config(&self) -> &super::common::EncryptionConfig { + self.encryption_config.as_ref().unwrap_or_else(|| ::default_instance()) } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); + 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_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; + 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_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token + 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_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + pub fn take_encryption_config(&mut self) -> super::common::EncryptionConfig { + self.encryption_config.take().unwrap_or_else(|| super::common::EncryptionConfig::new()) } -} -impl ::protobuf::Message for ListDatabasesRequest { - fn is_initialized(&self) -> bool { - true + // 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(); } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (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)?; - }, + // 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()) + } +} + +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; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)?; + }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; }, @@ -390,14 +583,34 @@ impl ::protobuf::Message for ListDatabasesRequest { #[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.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); + if self.state != Database_State::STATE_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(2, self.state); } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); + 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; } my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); self.cached_size.set(my_size); @@ -405,14 +618,39 @@ impl ::protobuf::Message for ListDatabasesRequest { } 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.name.is_empty() { + os.write_string(1, &self.name)?; } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; + if self.state != Database_State::STATE_UNSPECIFIED { + os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.state))?; } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; + 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)?; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -444,8 +682,8 @@ impl ::protobuf::Message for ListDatabasesRequest { Self::descriptor_static() } - fn new() -> ListDatabasesRequest { - ListDatabasesRequest::new() + fn new() -> Database { + Database::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -453,135 +691,1777 @@ impl ::protobuf::Message for ListDatabasesRequest { 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 }, + "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 }, + )); + ::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.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, + // 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()) + } +} + +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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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 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 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, + // 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; + } +} + +impl ::protobuf::Message for UpdateDatabaseDdlMetadata { + fn is_initialized(&self) -> bool { + for v in &self.commit_timestamps { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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_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_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "statements", + |m: &UpdateDatabaseDdlMetadata| { &m.statements }, + |m: &mut UpdateDatabaseDdlMetadata| { &mut m.statements }, )); - 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 }, + 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 }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabasesRequest", + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "throttled", + |m: &UpdateDatabaseDdlMetadata| { &m.throttled }, + |m: &mut UpdateDatabaseDdlMetadata| { &mut m.throttled }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateDatabaseDdlMetadata", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static ListDatabasesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabasesRequest::new) + fn default_instance() -> &'static UpdateDatabaseDdlMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateDatabaseDdlMetadata::new) } } -impl ::protobuf::Clear for ListDatabasesRequest { +impl ::protobuf::Clear for UpdateDatabaseDdlMetadata { fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); + self.database.clear(); + self.statements.clear(); + self.commit_timestamps.clear(); + self.throttled = false; self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for ListDatabasesRequest { +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 ListDatabasesRequest { +impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlMetadata { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct ListDatabasesResponse { +pub struct DropDatabaseRequest { // message fields - pub databases: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, + pub database: ::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<'a> ::std::default::Default for &'a DropDatabaseRequest { + fn default() -> &'a DropDatabaseRequest { + ::default_instance() } } -impl ListDatabasesResponse { - pub fn new() -> ListDatabasesResponse { +impl DropDatabaseRequest { + pub fn new() -> DropDatabaseRequest { ::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; + // string database = 1; - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token + pub fn get_database(&self) -> &str { + &self.database } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); + pub fn clear_database(&mut self) { + self.database.clear(); } // 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_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_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token + pub fn mut_database(&mut self) -> &mut ::std::string::String { + &mut self.database } // 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_database(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.database, ::std::string::String::new()) } } -impl ::protobuf::Message for ListDatabasesResponse { +impl ::protobuf::Message for DropDatabaseRequest { fn is_initialized(&self) -> bool { - for v in &self.databases { - if !v.is_initialized() { - return false; - } - }; true } @@ -590,10 +2470,7 @@ impl ::protobuf::Message for ListDatabasesResponse { 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_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())?; @@ -607,12 +2484,8 @@ impl ::protobuf::Message for ListDatabasesResponse { #[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); + 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); @@ -620,13 +2493,8 @@ impl ::protobuf::Message for ListDatabasesResponse { } 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)?; + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -658,159 +2526,100 @@ impl ::protobuf::Message for ListDatabasesResponse { Self::descriptor_static() } - fn new() -> ListDatabasesResponse { - ListDatabasesResponse::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_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 }, + "database", + |m: &DropDatabaseRequest| { &m.database }, + |m: &mut DropDatabaseRequest| { &mut m.database }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabasesResponse", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DropDatabaseRequest", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static ListDatabasesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabasesResponse::new) + fn default_instance() -> &'static DropDatabaseRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DropDatabaseRequest::new) } } -impl ::protobuf::Clear for ListDatabasesResponse { +impl ::protobuf::Clear for DropDatabaseRequest { fn clear(&mut self) { - self.databases.clear(); - self.next_page_token.clear(); + self.database.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for ListDatabasesResponse { +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 ListDatabasesResponse { +impl ::protobuf::reflect::ProtobufValue for DropDatabaseRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct CreateDatabaseRequest { +pub struct GetDatabaseDdlRequest { // message fields - pub parent: ::std::string::String, - pub create_statement: ::std::string::String, - pub extra_statements: ::protobuf::RepeatedField<::std::string::String>, + pub database: ::std::string::String, // 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<'a> ::std::default::Default for &'a GetDatabaseDdlRequest { + fn default() -> &'a GetDatabaseDdlRequest { + ::default_instance() } } -impl CreateDatabaseRequest { - pub fn new() -> CreateDatabaseRequest { +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()) - } - - // string create_statement = 2; + // string database = 1; - pub fn get_create_statement(&self) -> &str { - &self.create_statement + pub fn get_database(&self) -> &str { + &self.database } - pub fn clear_create_statement(&mut self) { - self.create_statement.clear(); + pub fn clear_database(&mut self) { + self.database.clear(); } // Param is passed by value, moved - pub fn set_create_statement(&mut self, v: ::std::string::String) { - self.create_statement = v; + 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_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 + pub fn mut_database(&mut self) -> &mut ::std::string::String { + &mut self.database } // Take field - pub fn take_extra_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.extra_statements, ::protobuf::RepeatedField::new()) + pub fn take_database(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.database, ::std::string::String::new()) } } -impl ::protobuf::Message for CreateDatabaseRequest { +impl ::protobuf::Message for GetDatabaseDdlRequest { fn is_initialized(&self) -> bool { true } @@ -820,13 +2629,7 @@ impl ::protobuf::Message for CreateDatabaseRequest { let (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)?; + ::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())?; @@ -840,30 +2643,18 @@ impl ::protobuf::Message for CreateDatabaseRequest { #[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); + if !self.database.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.database); } - for value in &self.extra_statements { - 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.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.create_statement.is_empty() { - os.write_string(2, &self.create_statement)?; + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } - for v in &self.extra_statements { - os.write_string(3, &v)?; - }; os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -894,8 +2685,8 @@ impl ::protobuf::Message for CreateDatabaseRequest { Self::descriptor_static() } - fn new() -> CreateDatabaseRequest { - CreateDatabaseRequest::new() + fn new() -> GetDatabaseDdlRequest { + GetDatabaseDdlRequest::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -903,103 +2694,90 @@ impl ::protobuf::Message for CreateDatabaseRequest { 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 }, + "database", + |m: &GetDatabaseDdlRequest| { &m.database }, + |m: &mut GetDatabaseDdlRequest| { &mut m.database }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateDatabaseRequest", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetDatabaseDdlRequest", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static CreateDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateDatabaseRequest::new) + fn default_instance() -> &'static GetDatabaseDdlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetDatabaseDdlRequest::new) } } -impl ::protobuf::Clear for CreateDatabaseRequest { +impl ::protobuf::Clear for GetDatabaseDdlRequest { fn clear(&mut self) { - self.parent.clear(); - self.create_statement.clear(); - self.extra_statements.clear(); + self.database.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for CreateDatabaseRequest { +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 CreateDatabaseRequest { +impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct CreateDatabaseMetadata { +pub struct GetDatabaseDdlResponse { // message fields - pub database: ::std::string::String, + 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 CreateDatabaseMetadata { - fn default() -> &'a CreateDatabaseMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetDatabaseDdlResponse { + fn default() -> &'a GetDatabaseDdlResponse { + ::default_instance() } } -impl CreateDatabaseMetadata { - pub fn new() -> CreateDatabaseMetadata { +impl GetDatabaseDdlResponse { + pub fn new() -> GetDatabaseDdlResponse { ::std::default::Default::default() } - // string database = 1; + // repeated string statements = 1; - pub fn get_database(&self) -> &str { - &self.database + pub fn get_statements(&self) -> &[::std::string::String] { + &self.statements } - pub fn clear_database(&mut self) { - self.database.clear(); + pub fn clear_statements(&mut self) { + self.statements.clear(); } // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; + pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.statements = 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 + pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.statements } // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) + pub fn take_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) } } -impl ::protobuf::Message for CreateDatabaseMetadata { +impl ::protobuf::Message for GetDatabaseDdlResponse { fn is_initialized(&self) -> bool { true } @@ -1009,7 +2787,7 @@ impl ::protobuf::Message for CreateDatabaseMetadata { let (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_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())?; @@ -1023,18 +2801,18 @@ impl ::protobuf::Message for CreateDatabaseMetadata { #[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(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.database.is_empty() { - os.write_string(1, &self.database)?; - } + for v in &self.statements { + os.write_string(1, &v)?; + }; os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -1065,100 +2843,170 @@ impl ::protobuf::Message for CreateDatabaseMetadata { Self::descriptor_static() } - fn new() -> CreateDatabaseMetadata { - CreateDatabaseMetadata::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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &CreateDatabaseMetadata| { &m.database }, - |m: &mut CreateDatabaseMetadata| { &mut m.database }, + 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::( - "CreateDatabaseMetadata", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetDatabaseDdlResponse", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static CreateDatabaseMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateDatabaseMetadata::new) + fn default_instance() -> &'static GetDatabaseDdlResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetDatabaseDdlResponse::new) } } -impl ::protobuf::Clear for CreateDatabaseMetadata { +impl ::protobuf::Clear for GetDatabaseDdlResponse { fn clear(&mut self) { - self.database.clear(); + self.statements.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for CreateDatabaseMetadata { +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 CreateDatabaseMetadata { +impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlResponse { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct GetDatabaseRequest { +pub struct ListDatabaseOperationsRequest { // message fields - pub name: ::std::string::String, + 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 GetDatabaseRequest { - fn default() -> &'a GetDatabaseRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListDatabaseOperationsRequest { + fn default() -> &'a ListDatabaseOperationsRequest { + ::default_instance() } } -impl GetDatabaseRequest { - pub fn new() -> GetDatabaseRequest { +impl ListDatabaseOperationsRequest { + pub fn new() -> ListDatabaseOperationsRequest { ::std::default::Default::default() } - // string name = 1; + // string parent = 1; - pub fn get_name(&self) -> &str { - &self.name + pub fn get_parent(&self) -> &str { + &self.parent } - pub fn clear_name(&mut self) { - self.name.clear(); + pub fn clear_parent(&mut self) { + self.parent.clear(); } // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; + 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_name(&mut self) -> &mut ::std::string::String { - &mut self.name + pub fn mut_parent(&mut self) -> &mut ::std::string::String { + &mut self.parent } // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + 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 GetDatabaseRequest { +impl ::protobuf::Message for ListDatabaseOperationsRequest { fn is_initialized(&self) -> bool { true } @@ -1168,7 +3016,20 @@ impl ::protobuf::Message for GetDatabaseRequest { let (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_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())?; @@ -1182,8 +3043,17 @@ impl ::protobuf::Message for GetDatabaseRequest { #[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(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); @@ -1191,8 +3061,17 @@ impl ::protobuf::Message for GetDatabaseRequest { } 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(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(()) @@ -1224,8 +3103,8 @@ impl ::protobuf::Message for GetDatabaseRequest { Self::descriptor_static() } - fn new() -> GetDatabaseRequest { - GetDatabaseRequest::new() + fn new() -> ListDatabaseOperationsRequest { + ListDatabaseOperationsRequest::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -1233,145 +3112,141 @@ impl ::protobuf::Message for GetDatabaseRequest { 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 }, + "parent", + |m: &ListDatabaseOperationsRequest| { &m.parent }, + |m: &mut ListDatabaseOperationsRequest| { &mut m.parent }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetDatabaseRequest", + 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 default_instance() -> &'static GetDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDatabaseRequest::new) + fn default_instance() -> &'static ListDatabaseOperationsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListDatabaseOperationsRequest::new) } } -impl ::protobuf::Clear for GetDatabaseRequest { +impl ::protobuf::Clear for ListDatabaseOperationsRequest { fn clear(&mut self) { - self.name.clear(); + self.parent.clear(); + self.filter.clear(); + self.page_size = 0; + self.page_token.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for GetDatabaseRequest { +impl ::std::fmt::Debug for ListDatabaseOperationsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for GetDatabaseRequest { +impl ::protobuf::reflect::ProtobufValue for ListDatabaseOperationsRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct UpdateDatabaseDdlRequest { +pub struct ListDatabaseOperationsResponse { // message fields - pub database: ::std::string::String, - pub statements: ::protobuf::RepeatedField<::std::string::String>, - pub operation_id: ::std::string::String, + 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 UpdateDatabaseDdlRequest { - fn default() -> &'a UpdateDatabaseDdlRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListDatabaseOperationsResponse { + fn default() -> &'a ListDatabaseOperationsResponse { + ::default_instance() } } -impl UpdateDatabaseDdlRequest { - pub fn new() -> UpdateDatabaseDdlRequest { +impl ListDatabaseOperationsResponse { + pub fn new() -> ListDatabaseOperationsResponse { ::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; + // repeated .google.longrunning.Operation operations = 1; - pub fn get_statements(&self) -> &[::std::string::String] { - &self.statements + pub fn get_operations(&self) -> &[super::operations::Operation] { + &self.operations } - pub fn clear_statements(&mut self) { - self.statements.clear(); + pub fn clear_operations(&mut self) { + self.operations.clear(); } // Param is passed by value, moved - pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.statements = v; + pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { + self.operations = v; } // Mutable pointer to the field. - pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.statements + pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.operations } // Take field - pub fn take_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) + pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) } - // string operation_id = 3; + // string next_page_token = 2; - pub fn get_operation_id(&self) -> &str { - &self.operation_id + pub fn get_next_page_token(&self) -> &str { + &self.next_page_token } - pub fn clear_operation_id(&mut self) { - self.operation_id.clear(); + pub fn clear_next_page_token(&mut self) { + self.next_page_token.clear(); } // Param is passed by value, moved - pub fn set_operation_id(&mut self, v: ::std::string::String) { - self.operation_id = v; + 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_operation_id(&mut self) -> &mut ::std::string::String { - &mut self.operation_id + pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { + &mut self.next_page_token } // Take field - pub fn take_operation_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.operation_id, ::std::string::String::new()) + 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 UpdateDatabaseDdlRequest { +impl ::protobuf::Message for ListDatabaseOperationsResponse { fn is_initialized(&self) -> bool { + for v in &self.operations { + if !v.is_initialized() { + return false; + } + }; true } @@ -1380,13 +3255,10 @@ impl ::protobuf::Message for UpdateDatabaseDdlRequest { let (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_repeated_message_into(wire_type, is, &mut self.operations)?; }, 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_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())?; @@ -1400,14 +3272,12 @@ impl ::protobuf::Message for UpdateDatabaseDdlRequest { #[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.operations { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; }; - if !self.operation_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.operation_id); + 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); @@ -1415,14 +3285,13 @@ impl ::protobuf::Message for UpdateDatabaseDdlRequest { } 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.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.operation_id.is_empty() { - os.write_string(3, &self.operation_id)?; + 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(()) @@ -1454,166 +3323,225 @@ impl ::protobuf::Message for UpdateDatabaseDdlRequest { Self::descriptor_static() } - fn new() -> UpdateDatabaseDdlRequest { - UpdateDatabaseDdlRequest::new() + fn new() -> ListDatabaseOperationsResponse { + ListDatabaseOperationsResponse::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_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>( - "operation_id", - |m: &UpdateDatabaseDdlRequest| { &m.operation_id }, - |m: &mut UpdateDatabaseDdlRequest| { &mut m.operation_id }, + "next_page_token", + |m: &ListDatabaseOperationsResponse| { &m.next_page_token }, + |m: &mut ListDatabaseOperationsResponse| { &mut m.next_page_token }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateDatabaseDdlRequest", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListDatabaseOperationsResponse", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static UpdateDatabaseDdlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateDatabaseDdlRequest::new) + fn default_instance() -> &'static ListDatabaseOperationsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListDatabaseOperationsResponse::new) } } -impl ::protobuf::Clear for UpdateDatabaseDdlRequest { +impl ::protobuf::Clear for ListDatabaseOperationsResponse { fn clear(&mut self) { - self.database.clear(); - self.statements.clear(); - self.operation_id.clear(); + self.operations.clear(); + self.next_page_token.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for UpdateDatabaseDdlRequest { +impl ::std::fmt::Debug for ListDatabaseOperationsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlRequest { +impl ::protobuf::reflect::ProtobufValue for ListDatabaseOperationsResponse { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct UpdateDatabaseDdlMetadata { +pub struct RestoreDatabaseRequest { // 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 parent: ::std::string::String, + pub database_id: ::std::string::String, + pub encryption_config: ::protobuf::SingularPtrField, + // 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 UpdateDatabaseDdlMetadata { - fn default() -> &'a UpdateDatabaseDdlMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a RestoreDatabaseRequest { + fn default() -> &'a RestoreDatabaseRequest { + ::default_instance() } } -impl UpdateDatabaseDdlMetadata { - pub fn new() -> UpdateDatabaseDdlMetadata { +#[derive(Clone,PartialEq,Debug)] +pub enum RestoreDatabaseRequest_oneof_source { + backup(::std::string::String), +} + +impl RestoreDatabaseRequest { + pub fn new() -> RestoreDatabaseRequest { ::std::default::Default::default() } - // string database = 1; + // string parent = 1; - pub fn get_database(&self) -> &str { - &self.database + pub fn get_parent(&self) -> &str { + &self.parent } - pub fn clear_database(&mut self) { - self.database.clear(); + pub fn clear_parent(&mut self) { + self.parent.clear(); } // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; + 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_database(&mut self) -> &mut ::std::string::String { - &mut self.database + pub fn mut_parent(&mut self) -> &mut ::std::string::String { + &mut self.parent } // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) + pub fn take_parent(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.parent, ::std::string::String::new()) } - // repeated string statements = 2; + // string database_id = 2; - pub fn get_statements(&self) -> &[::std::string::String] { - &self.statements + pub fn get_database_id(&self) -> &str { + &self.database_id } - pub fn clear_statements(&mut self) { - self.statements.clear(); + pub fn clear_database_id(&mut self) { + self.database_id.clear(); } // Param is passed by value, moved - pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.statements = v; + pub fn set_database_id(&mut self, v: ::std::string::String) { + self.database_id = v; } // Mutable pointer to the field. - pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.statements + // 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_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) + pub fn take_database_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.database_id, ::std::string::String::new()) } - // repeated .google.protobuf.Timestamp commit_timestamps = 3; + // string backup = 3; - pub fn get_commit_timestamps(&self) -> &[::protobuf::well_known_types::Timestamp] { - &self.commit_timestamps + pub fn get_backup(&self) -> &str { + match self.source { + ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(ref v)) => v, + _ => "", + } } - pub fn clear_commit_timestamps(&mut self) { - self.commit_timestamps.clear(); + 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_commit_timestamps(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp>) { - self.commit_timestamps = v; + 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_commit_timestamps(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp> { - &mut self.commit_timestamps + 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_commit_timestamps(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp> { - ::std::mem::replace(&mut self.commit_timestamps, ::protobuf::RepeatedField::new()) + pub fn take_encryption_config(&mut self) -> RestoreDatabaseEncryptionConfig { + self.encryption_config.take().unwrap_or_else(|| RestoreDatabaseEncryptionConfig::new()) } } -impl ::protobuf::Message for UpdateDatabaseDdlMetadata { +impl ::protobuf::Message for RestoreDatabaseRequest { fn is_initialized(&self) -> bool { - for v in &self.commit_timestamps { + for v in &self.encryption_config { if !v.is_initialized() { return false; } @@ -1626,13 +3554,19 @@ impl ::protobuf::Message for UpdateDatabaseDdlMetadata { let (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_singular_proto3_string_into(wire_type, is, &mut self.parent)?; }, 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.statements)?; + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database_id)?; }, 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.commit_timestamps)?; + 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()?)); + }, + 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())?; @@ -1646,33 +3580,47 @@ impl ::protobuf::Message for UpdateDatabaseDdlMetadata { #[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); + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); } - for value in &self.statements { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.commit_timestamps { - let len = value.compute_size(); + 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); + }, + }; + } my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; } - for v in &self.statements { - os.write_string(2, &v)?; - }; - for v in &self.commit_timestamps { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; + 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)?; + }, + }; + } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -1703,8 +3651,8 @@ impl ::protobuf::Message for UpdateDatabaseDdlMetadata { Self::descriptor_static() } - fn new() -> UpdateDatabaseDdlMetadata { - UpdateDatabaseDdlMetadata::new() + fn new() -> RestoreDatabaseRequest { + RestoreDatabaseRequest::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -1712,103 +3660,125 @@ impl ::protobuf::Message for UpdateDatabaseDdlMetadata { 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 }, + "parent", + |m: &RestoreDatabaseRequest| { &m.parent }, + |m: &mut RestoreDatabaseRequest| { &mut m.parent }, )); - 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_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_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_singular_string_accessor::<_>( + "backup", + RestoreDatabaseRequest::has_backup, + RestoreDatabaseRequest::get_backup, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateDatabaseDdlMetadata", + 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 default_instance() -> &'static UpdateDatabaseDdlMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateDatabaseDdlMetadata::new) + fn default_instance() -> &'static RestoreDatabaseRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RestoreDatabaseRequest::new) } } -impl ::protobuf::Clear for UpdateDatabaseDdlMetadata { +impl ::protobuf::Clear for RestoreDatabaseRequest { fn clear(&mut self) { - self.database.clear(); - self.statements.clear(); - self.commit_timestamps.clear(); + self.parent.clear(); + self.database_id.clear(); + self.source = ::std::option::Option::None; + self.encryption_config.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for UpdateDatabaseDdlMetadata { +impl ::std::fmt::Debug for RestoreDatabaseRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlMetadata { +impl ::protobuf::reflect::ProtobufValue for RestoreDatabaseRequest { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct DropDatabaseRequest { +pub struct RestoreDatabaseEncryptionConfig { // message fields - pub database: ::std::string::String, + 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 DropDatabaseRequest { - fn default() -> &'a DropDatabaseRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a RestoreDatabaseEncryptionConfig { + fn default() -> &'a RestoreDatabaseEncryptionConfig { + ::default_instance() } } -impl DropDatabaseRequest { - pub fn new() -> DropDatabaseRequest { +impl RestoreDatabaseEncryptionConfig { + pub fn new() -> RestoreDatabaseEncryptionConfig { ::std::default::Default::default() } - // string database = 1; + // .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1; - pub fn get_database(&self) -> &str { - &self.database + pub fn get_encryption_type(&self) -> RestoreDatabaseEncryptionConfig_EncryptionType { + self.encryption_type } - pub fn clear_database(&mut self) { - self.database.clear(); + pub fn clear_encryption_type(&mut self) { + self.encryption_type = RestoreDatabaseEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; } // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; + 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(); + } + + // 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_database(&mut self) -> &mut ::std::string::String { - &mut self.database + pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String { + &mut self.kms_key_name } // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) + 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 DropDatabaseRequest { +impl ::protobuf::Message for RestoreDatabaseEncryptionConfig { fn is_initialized(&self) -> bool { true } @@ -1818,7 +3788,10 @@ impl ::protobuf::Message for DropDatabaseRequest { let (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_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())?; @@ -1832,8 +3805,11 @@ impl ::protobuf::Message for DropDatabaseRequest { #[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); + 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); } my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); self.cached_size.set(my_size); @@ -1841,8 +3817,11 @@ impl ::protobuf::Message for DropDatabaseRequest { } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.database.is_empty() { - os.write_string(1, &self.database)?; + 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)?; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -1874,101 +3853,345 @@ impl ::protobuf::Message for DropDatabaseRequest { Self::descriptor_static() } - fn new() -> DropDatabaseRequest { - DropDatabaseRequest::new() + fn new() -> RestoreDatabaseEncryptionConfig { + RestoreDatabaseEncryptionConfig::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( - "database", - |m: &DropDatabaseRequest| { &m.database }, - |m: &mut DropDatabaseRequest| { &mut m.database }, + "kms_key_name", + |m: &RestoreDatabaseEncryptionConfig| { &m.kms_key_name }, + |m: &mut RestoreDatabaseEncryptionConfig| { &mut m.kms_key_name }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DropDatabaseRequest", + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RestoreDatabaseEncryptionConfig", fields, file_descriptor_proto() ) }) } - fn default_instance() -> &'static DropDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DropDatabaseRequest::new) + fn default_instance() -> &'static RestoreDatabaseEncryptionConfig { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RestoreDatabaseEncryptionConfig::new) + } +} + +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 ::std::fmt::Debug for RestoreDatabaseEncryptionConfig { + 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)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct RestoreDatabaseMetadata { + // message fields + 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, +} + +impl<'a> ::std::default::Default for &'a RestoreDatabaseMetadata { + fn default() -> &'a RestoreDatabaseMetadata { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum RestoreDatabaseMetadata_oneof_source_info { + backup_info(super::backup::BackupInfo), +} + +impl RestoreDatabaseMetadata { + pub fn new() -> RestoreDatabaseMetadata { + ::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; + } + + // .google.spanner.admin.database.v1.BackupInfo backup_info = 3; + + + 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; + } + + pub fn has_backup_info(&self) -> bool { + match self.source_info { + ::std::option::Option::Some(RestoreDatabaseMetadata_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(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!(), + } + } + + // 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() + } + } + + // .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() } -} -impl ::protobuf::Clear for DropDatabaseRequest { - fn clear(&mut self) { - self.database.clear(); - self.unknown_fields.clear(); + // Take field + pub fn take_progress(&mut self) -> super::common::OperationProgress { + self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) } -} -impl ::std::fmt::Debug for DropDatabaseRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + // .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(); } -} -impl ::protobuf::reflect::ProtobufValue for DropDatabaseRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + pub fn has_cancel_time(&self) -> bool { + self.cancel_time.is_some() } -} -#[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, -} + // 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); + } -impl<'a> ::std::default::Default for &'a GetDatabaseDdlRequest { - fn default() -> &'a GetDatabaseDdlRequest { - ::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 GetDatabaseDdlRequest { - pub fn new() -> GetDatabaseDdlRequest { - ::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()) } - // string database = 1; + // string optimize_database_operation_name = 6; - pub fn get_database(&self) -> &str { - &self.database + pub fn get_optimize_database_operation_name(&self) -> &str { + &self.optimize_database_operation_name } - pub fn clear_database(&mut self) { - self.database.clear(); + pub fn clear_optimize_database_operation_name(&mut self) { + self.optimize_database_operation_name.clear(); } // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; + pub fn set_optimize_database_operation_name(&mut self, v: ::std::string::String) { + self.optimize_database_operation_name = 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 + pub fn mut_optimize_database_operation_name(&mut self) -> &mut ::std::string::String { + &mut self.optimize_database_operation_name } // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) + 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()) } } -impl ::protobuf::Message for GetDatabaseDdlRequest { +impl ::protobuf::Message for RestoreDatabaseMetadata { 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 } @@ -1977,7 +4200,25 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { let (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_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)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.optimize_database_operation_name)?; }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; @@ -1991,8 +4232,30 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { #[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); + 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 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; + }, + }; } my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); self.cached_size.set(my_size); @@ -2000,8 +4263,33 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.database.is_empty() { - os.write_string(1, &self.database)?; + 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)?; + } + 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)?; + }, + }; } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) @@ -2033,8 +4321,8 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { Self::descriptor_static() } - fn new() -> GetDatabaseDdlRequest { - GetDatabaseDdlRequest::new() + fn new() -> RestoreDatabaseMetadata { + RestoreDatabaseMetadata::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { @@ -2042,91 +4330,161 @@ impl ::protobuf::Message for GetDatabaseDdlRequest { 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 }, + "name", + |m: &RestoreDatabaseMetadata| { &m.name }, + |m: &mut RestoreDatabaseMetadata| { &mut m.name }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetDatabaseDdlRequest", + 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 default_instance() -> &'static GetDatabaseDdlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDatabaseDdlRequest::new) + fn default_instance() -> &'static RestoreDatabaseMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RestoreDatabaseMetadata::new) } } -impl ::protobuf::Clear for GetDatabaseDdlRequest { +impl ::protobuf::Clear for RestoreDatabaseMetadata { fn clear(&mut self) { - self.database.clear(); + 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(); } } -impl ::std::fmt::Debug for GetDatabaseDdlRequest { +impl ::std::fmt::Debug for RestoreDatabaseMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlRequest { +impl ::protobuf::reflect::ProtobufValue for RestoreDatabaseMetadata { fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] -pub struct GetDatabaseDdlResponse { +pub struct OptimizeRestoredDatabaseMetadata { // message fields - pub statements: ::protobuf::RepeatedField<::std::string::String>, + 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 GetDatabaseDdlResponse { - fn default() -> &'a GetDatabaseDdlResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a OptimizeRestoredDatabaseMetadata { + fn default() -> &'a OptimizeRestoredDatabaseMetadata { + ::default_instance() } } -impl GetDatabaseDdlResponse { - pub fn new() -> GetDatabaseDdlResponse { +impl OptimizeRestoredDatabaseMetadata { + pub fn new() -> OptimizeRestoredDatabaseMetadata { ::std::default::Default::default() } - // repeated string statements = 1; + // string name = 1; - pub fn get_statements(&self) -> &[::std::string::String] { - &self.statements + pub fn get_name(&self) -> &str { + &self.name } - pub fn clear_statements(&mut self) { - self.statements.clear(); + pub fn clear_name(&mut self) { + self.name.clear(); } // Param is passed by value, moved - pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.statements = v; + pub fn set_name(&mut self, v: ::std::string::String) { + self.name = v; } // Mutable pointer to the field. - pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.statements + // 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_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) + 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()) } } -impl ::protobuf::Message for GetDatabaseDdlResponse { +impl ::protobuf::Message for OptimizeRestoredDatabaseMetadata { fn is_initialized(&self) -> bool { + for v in &self.progress { + if !v.is_initialized() { + return false; + } + }; true } @@ -2135,7 +4493,10 @@ impl ::protobuf::Message for GetDatabaseDdlResponse { 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_singular_proto3_string_into(wire_type, is, &mut self.name)?; + }, + 2 => { + ::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())?; @@ -2149,18 +4510,27 @@ impl ::protobuf::Message for GetDatabaseDdlResponse { #[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); - }; + 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; + } my_size += ::protobuf::rt::unknown_fields_size(self.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)?; - }; + 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)?; + } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -2191,52 +4561,108 @@ impl ::protobuf::Message for GetDatabaseDdlResponse { Self::descriptor_static() } - fn new() -> GetDatabaseDdlResponse { - GetDatabaseDdlResponse::new() + fn new() -> OptimizeRestoredDatabaseMetadata { + OptimizeRestoredDatabaseMetadata::new() } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::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 }, + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "name", + |m: &OptimizeRestoredDatabaseMetadata| { &m.name }, + |m: &mut OptimizeRestoredDatabaseMetadata| { &mut m.name }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetDatabaseDdlResponse", + 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 default_instance() -> &'static GetDatabaseDdlResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDatabaseDdlResponse::new) + fn default_instance() -> &'static OptimizeRestoredDatabaseMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(OptimizeRestoredDatabaseMetadata::new) } } -impl ::protobuf::Clear for GetDatabaseDdlResponse { +impl ::protobuf::Clear for OptimizeRestoredDatabaseMetadata { fn clear(&mut self) { - self.statements.clear(); + self.name.clear(); + self.progress.clear(); self.unknown_fields.clear(); } } -impl ::std::fmt::Debug for GetDatabaseDdlResponse { +impl ::std::fmt::Debug for OptimizeRestoredDatabaseMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlResponse { +impl ::protobuf::reflect::ProtobufValue for OptimizeRestoredDatabaseMetadata { 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)) + } +} + static file_descriptor_proto_data: &'static [u8] = b"\ \n=google/spanner/admin/database/v1/spanner_database_admin.proto\x12\x20\ google.spanner.admin.database.v1\x1a\x1cgoogle/api/annotations.proto\x1a\ @@ -2244,455 +4670,1065 @@ 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\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=projects/*/i\ - nstances/*}/databases\xdaA\x06parent\x12\xa4\x02\n\x0eCreateDatabase\x12\ - 7.google.spanner.admin.database.v1.CreateDatabaseRequest\x1a\x1d.google.\ - longrunning.Operation\"\xb9\x01\x82\xd3\xe4\x93\x022\"-/v1/{parent=proje\ - cts/*/instances/*}/databases:\x01*\xdaA\x17parent,create_statement\xcaAd\ - \n)google.spanner.admin.database.v1.Database\x127google.spanner.admin.da\ - tabase.v1.CreateDatabaseMetadata\x12\xad\x01\n\x0bGetDatabase\x124.googl\ - e.spanner.admin.database.v1.GetDatabaseRequest\x1a*.google.spanner.admin\ - .database.v1.Database\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/i\ - nstances/*/databases/*}\xdaA\x04name\x12\x9d\x02\n\x11UpdateDatabaseDdl\ - \x12:.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest\x1a\x1d.\ - google.longrunning.Operation\"\xac\x01\xdaA\x13database,statements\xcaAS\ - \n\x15google.protobuf.Empty\x12:google.spanner.admin.database.v1.UpdateD\ - atabaseDdlMetadata\x82\xd3\xe4\x93\x02:25/v1/{database=projects/*/instan\ - ces/*/databases/*}/ddl:\x01*\x12\xa3\x01\n\x0cDropDatabase\x125.google.s\ - panner.admin.database.v1.DropDatabaseRequest\x1a\x16.google.protobuf.Emp\ - ty\"D\x82\xd3\xe4\x93\x023*1/v1/{database=projects/*/instances/*/databas\ - es/*}\xdaA\x08database\x12\xcd\x01\n\x0eGetDatabaseDdl\x127.google.spann\ - er.admin.database.v1.GetDatabaseDdlRequest\x1a8.google.spanner.admin.dat\ - abase.v1.GetDatabaseDdlResponse\"H\xdaA\x08database\x82\xd3\xe4\x93\x027\ - \x125/v1/{database=projects/*/instances/*/databases/*}/ddl\x12\xeb\x01\n\ - \x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.\ - iam.v1.Policy\"\x9f\x01\xdaA\x0fresource,policy\x82\xd3\xe4\x93\x02\x86\ - \x01\">/v1/{resource=projects/*/instances/*/databases/*}:setIamPolicy:\ - \x01*ZA\"/v1/{resource=projects/*/instances/*/databases/*}:get\ - IamPolicy:\x01*ZA\"\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\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\ + to\x1a-google/spanner/admin/database/v1/backup.proto\x1a-google/spanner/\ + admin/database/v1/common.proto\"\xc3\x01\n\x0bRestoreInfo\x12T\n\x0bsour\ + ce_type\x18\x01\x20\x01(\x0e23.google.spanner.admin.database.v1.RestoreS\ + ourceTypeR\nsourceType\x12O\n\x0bbackup_info\x18\x02\x20\x01(\x0b2,.goog\ + le.spanner.admin.database.v1.BackupInfoH\0R\nbackupInfoB\r\n\x0bsource_i\ + nfo\"\x96\x06\n\x08Database\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nam\ + eB\x03\xe0A\x02\x12K\n\x05state\x18\x02\x20\x01(\x0e20.google.spanner.ad\ + min.database.v1.Database.StateR\x05stateB\x03\xe0A\x03\x12@\n\x0bcreate_\ + time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTimeB\ + \x03\xe0A\x03\x12U\n\x0crestore_info\x18\x04\x20\x01(\x0b2-.google.spann\ + er.admin.database.v1.RestoreInfoR\x0brestoreInfoB\x03\xe0A\x03\x12d\n\ + \x11encryption_config\x18\x05\x20\x01(\x0b22.google.spanner.admin.databa\ + se.v1.EncryptionConfigR\x10encryptionConfigB\x03\xe0A\x03\x12^\n\x0fencr\ + yption_info\x18\x08\x20\x03(\x0b20.google.spanner.admin.database.v1.Encr\ + yptionInfoR\x0eencryptionInfoB\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.Ti\ + mestampR\x13earliestVersionTimeB\x03\xe0A\x03\"M\n\x05State\x12\x15\n\ + \x11STATE_UNSPECIFIED\x10\0\x12\x0c\n\x08CREATING\x10\x01\x12\t\n\x05REA\ + DY\x10\x02\x12\x14\n\x10READY_OPTIMIZING\x10\x03:b\xeaA_\n\x1fspanner.go\ + ogleapis.com/Database\x12\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/instances/*}/databas\ + es\xdaA\x06parent\x12\xa4\x02\n\x0eCreateDatabase\x127.google.spanner.ad\ + min.database.v1.CreateDatabaseRequest\x1a\x1d.google.longrunning.Operati\ + on\"\xb9\x01\xcaAd\n)google.spanner.admin.database.v1.Database\x127googl\ + e.spanner.admin.database.v1.CreateDatabaseMetadata\xdaA\x17parent,create\ + _statement\x82\xd3\xe4\x93\x022\"-/v1/{parent=projects/*/instances/*}/da\ + tabases:\x01*\x12\xad\x01\n\x0bGetDatabase\x124.google.spanner.admin.dat\ + abase.v1.GetDatabaseRequest\x1a*.google.spanner.admin.database.v1.Databa\ + se\"<\xdaA\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/instanc\ + es/*/databases/*}\x12\x9d\x02\n\x11UpdateDatabaseDdl\x12:.google.spanner\ + .admin.database.v1.UpdateDatabaseDdlRequest\x1a\x1d.google.longrunning.O\ + peration\"\xac\x01\x82\xd3\xe4\x93\x02:25/v1/{database=projects/*/instan\ + ces/*/databases/*}/ddl:\x01*\xcaAS\n\x15google.protobuf.Empty\x12:google\ + .spanner.admin.database.v1.UpdateDatabaseDdlMetadata\xdaA\x13database,st\ + atements\x12\xa3\x01\n\x0cDropDatabase\x125.google.spanner.admin.databas\ + e.v1.DropDatabaseRequest\x1a\x16.google.protobuf.Empty\"D\xdaA\x08databa\ + se\x82\xd3\xe4\x93\x023*1/v1/{database=projects/*/instances/*/databases/\ + *}\x12\xcd\x01\n\x0eGetDatabaseDdl\x127.google.spanner.admin.database.v1\ + .GetDatabaseDdlRequest\x1a8.google.spanner.admin.database.v1.GetDatabase\ + DdlResponse\"H\x82\xd3\xe4\x93\x027\x125/v1/{database=projects/*/instanc\ + es/*/databases/*}/ddl\xdaA\x08database\x12\xeb\x01\n\x0cSetIamPolicy\x12\ + \".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x9f\ + \x01\x82\xd3\xe4\x93\x02\x86\x01\">/v1/{resource=projects/*/instances/*/\ + databases/*}:setIamPolicy:\x01*ZA\"/v1/{resource=projects\ + /*/instances/*/databases/*}:getIamPolicy:\x01*ZA\".google.spanner.admin.database.v1\ + .ListBackupOperationsResponse\"E\x82\xd3\xe4\x93\x026\x124/v1/{parent=pr\ + ojects/*/instances/*}/backupOperations\xdaA\x06parent\x1ax\xd2A\\https:/\ + /www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/\ + spanner.admin\xcaA\x16spanner.googleapis.comB\xda\x02\n$com.google.spann\ + er.admin.database.v1B\x19SpannerDatabaseAdminProtoP\x01ZHgoogle.golang.o\ + rg/genproto/googleapis/spanner/admin/database/v1;database\xaa\x02&Google\ + .Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\\ + Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1\xeaAJ\n\ + \x1fspanner.googleapis.com/Instance\x12'projects/{project}/instances/{in\ + stance}J\xc0\xff\x01\n\x07\x12\x05\x0e\0\xd4\x06\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\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\07\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\t\n\x01\x08\x12\x04%\0(\x02\n\x0c\n\x04\ + \x08\x9d\x08\0\x12\x04%\0(\x02\n\xb8\x02\n\x02\x06\0\x12\x050\0\xc1\x02\ + \x01\x1a\xaa\x02\x20Cloud\x20Spanner\x20Database\x20Admin\x20API\n\n\x20\ + The\x20Cloud\x20Spanner\x20Database\x20Admin\x20API\x20can\x20be\x20used\ + \x20to\x20create,\x20drop,\x20and\n\x20list\x20databases.\x20It\x20also\ + \x20enables\x20updating\x20the\x20schema\x20of\x20pre-existing\n\x20data\ + bases.\x20It\x20can\x20be\x20also\x20used\x20to\x20create,\x20delete\x20\ + and\x20list\x20backups\x20for\x20a\n\x20database\x20and\x20to\x20restore\ + \x20from\x20an\x20existing\x20backup.\n\n\n\n\x03\x06\0\x01\x12\x030\x08\ + \x15\n\n\n\x03\x06\0\x03\x12\x031\x02>\n\x0c\n\x05\x06\0\x03\x99\x08\x12\ + \x031\x02>\n\x0b\n\x03\x06\0\x03\x12\x042\x0246\n\r\n\x05\x06\0\x03\x9a\ + \x08\x12\x042\x0246\n.\n\x04\x06\0\x02\0\x12\x047\x02<\x03\x1a\x20\x20Li\ + sts\x20Cloud\x20Spanner\x20databases.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\ + \x037\x06\x13\n\x0c\n\x05\x06\0\x02\0\x02\x12\x037\x14(\n\x0c\n\x05\x06\ + \0\x02\0\x03\x12\x0373H\n\r\n\x05\x06\0\x02\0\x04\x12\x048\x04:\x06\n\ + \x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x048\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\x04F\x02Q\x03\x1a\xb9\x04\x20Cr\ + eates\x20a\x20new\x20Cloud\x20Spanner\x20database\x20and\x20starts\x20to\ + \x20prepare\x20it\x20for\x20serving.\n\x20The\x20returned\x20[long-runni\ + ng\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[metadata][google.longrunning.Operation\ + .metadata]\x20field\x20type\x20is\n\x20[CreateDatabaseMetadata][google.s\ + panner.admin.database.v1.CreateDatabaseMetadata].\n\x20The\x20[response]\ + [google.longrunning.Operation.response]\x20field\x20type\x20is\n\x20[Dat\ + abase][google.spanner.admin.database.v1.Database],\x20if\x20successful.\ + \n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03F\x06\x14\n\x0c\n\x05\x06\0\x02\ + \x01\x02\x12\x03F\x15*\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03G\x0f+\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\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03L\x04E\ + \n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03L\x04E\n\r\n\x05\x06\0\ + \x02\x01\x04\x12\x04M\x04P\x06\n\x0f\n\x07\x06\0\x02\x01\x04\x99\x08\x12\ + \x04M\x04P\x06\n;\n\x04\x06\0\x02\x02\x12\x04T\x02Y\x03\x1a-\x20Gets\x20\ + the\x20state\x20of\x20a\x20Cloud\x20Spanner\x20database.\n\n\x0c\n\x05\ + \x06\0\x02\x02\x01\x12\x03T\x06\x11\n\x0c\n\x05\x06\0\x02\x02\x02\x12\ + \x03T\x12$\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03T/7\n\r\n\x05\x06\0\x02\ + \x02\x04\x12\x04U\x04W\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\ + \x04U\x04W\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03X\x042\n\x0f\n\x08\ + \x06\0\x02\x02\x04\x9b\x08\0\x12\x03X\x042\n\x8a\x04\n\x04\x06\0\x02\x03\ + \x12\x04c\x02n\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[lon\ + g-running\x20operation][google.longrunning.Operation]\x20will\x20have\ + \x20a\x20name\x20of\n\x20the\x20format\x20`/operations/`\x20and\x20can\x20be\x20used\x20to\n\x20track\x20execution\ + \x20of\x20the\x20schema\x20change(s).\x20The\n\x20[metadata][google.long\ + running.Operation.metadata]\x20field\x20type\x20is\n\x20[UpdateDatabaseD\ + dlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata].\ + \n\x20The\x20operation\x20has\x20no\x20response.\n\n\x0c\n\x05\x06\0\x02\ + \x03\x01\x12\x03c\x06\x17\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03c\x180\n\ + \x0c\n\x05\x06\0\x02\x03\x03\x12\x03d\x0f+\n\r\n\x05\x06\0\x02\x03\x04\ + \x12\x04e\x04h\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04e\ + \x04h\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03i\x04A\n\x0f\n\x08\x06\0\ + \x02\x03\x04\x9b\x08\0\x12\x03i\x04A\n\r\n\x05\x06\0\x02\x03\x04\x12\x04\ + j\x04m\x06\n\x0f\n\x07\x06\0\x02\x03\x04\x99\x08\x12\x04j\x04m\x06\n\x96\ + \x01\n\x04\x06\0\x02\x04\x12\x04s\x02x\x03\x1a\x87\x01\x20Drops\x20(aka\ + \x20deletes)\x20a\x20Cloud\x20Spanner\x20database.\n\x20Completed\x20bac\ + kups\x20for\x20the\x20database\x20will\x20be\x20retained\x20according\ + \x20to\x20their\n\x20`expire_time`.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\ + \x03s\x06\x12\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03s\x13&\n\x0c\n\x05\ + \x06\0\x02\x04\x03\x12\x03s1F\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\x046\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\ + \x08\0\x12\x03w\x046\n\xeb\x01\n\x04\x06\0\x02\x05\x12\x05}\x02\x82\x01\ + \x03\x1a\xdb\x01\x20Returns\x20the\x20schema\x20of\x20a\x20Cloud\x20Span\ + ner\x20database\x20as\x20a\x20list\x20of\x20formatted\n\x20DDL\x20statem\ + ents.\x20This\x20method\x20does\x20not\x20show\x20pending\x20schema\x20u\ + pdates,\x20those\x20may\n\x20be\x20queried\x20using\x20the\x20[Operation\ + s][google.longrunning.Operations]\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}5K\n\x0e\n\x05\x06\0\x02\x05\x04\x12\ + \x05~\x04\x80\x01\x06\n\x12\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x05~\ + \x04\x80\x01\x06\n\r\n\x05\x06\0\x02\x05\x04\x12\x04\x81\x01\x046\n\x10\ + \n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x04\x81\x01\x046\n\xfe\x02\n\x04\ + \x06\0\x02\x06\x12\x06\x8b\x01\x02\x96\x01\x03\x1a\xed\x02\x20Sets\x20th\ + e\x20access\x20control\x20policy\x20on\x20a\x20database\x20or\x20backup\ + \x20resource.\n\x20Replaces\x20any\x20existing\x20policy.\n\n\x20Authori\ + zation\x20requires\x20`spanner.databases.setIamPolicy`\n\x20permission\ + \x20on\x20[resource][google.iam.v1.SetIamPolicyRequest.resource].\n\x20F\ + or\x20backups,\x20authorization\x20requires\x20`spanner.backups.setIamPo\ + licy`\n\x20permission\x20on\x20[resource][google.iam.v1.SetIamPolicyRequ\ + est.resource].\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\x8b\x01\x06\x12\n\r\ + \n\x05\x06\0\x02\x06\x02\x12\x04\x8b\x01\x134\n\r\n\x05\x06\0\x02\x06\ + \x03\x12\x04\x8c\x01\x0f#\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\x8d\x01\ + \x04\x94\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\x8d\ + \x01\x04\x94\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\x95\x01\x04=\n\ + \x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\x95\x01\x04=\n\xb9\x03\n\ + \x04\x06\0\x02\x07\x12\x06\xa0\x01\x02\xab\x01\x03\x1a\xa8\x03\x20Gets\ + \x20the\x20access\x20control\x20policy\x20for\x20a\x20database\x20or\x20\ + backup\x20resource.\n\x20Returns\x20an\x20empty\x20policy\x20if\x20a\x20\ + database\x20or\x20backup\x20exists\x20but\x20does\x20not\x20have\x20a\n\ + \x20policy\x20set.\n\n\x20Authorization\x20requires\x20`spanner.database\ + s.getIamPolicy`\x20permission\x20on\n\x20[resource][google.iam.v1.GetIam\ + PolicyRequest.resource].\n\x20For\x20backups,\x20authorization\x20requir\ + es\x20`spanner.backups.getIamPolicy`\n\x20permission\x20on\x20[resource]\ + [google.iam.v1.GetIamPolicyRequest.resource].\n\n\r\n\x05\x06\0\x02\x07\ + \x01\x12\x04\xa0\x01\x06\x12\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\xa0\x01\ + \x134\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\xa1\x01\x0f#\n\x0f\n\x05\x06\0\ + \x02\x07\x04\x12\x06\xa2\x01\x04\xa9\x01\x06\n\x13\n\t\x06\0\x02\x07\x04\ + \xb0\xca\xbc\"\x12\x06\xa2\x01\x04\xa9\x01\x06\n\r\n\x05\x06\0\x02\x07\ + \x04\x12\x04\xaa\x01\x046\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\0\x12\ + \x04\xaa\x01\x046\n\xff\x03\n\x04\x06\0\x02\x08\x12\x06\xb7\x01\x02\xc2\ + \x01\x03\x1a\xee\x03\x20Returns\x20permissions\x20that\x20the\x20caller\ + \x20has\x20on\x20the\x20specified\x20database\x20or\x20backup\n\x20resou\ + rce.\n\n\x20Attempting\x20this\x20RPC\x20on\x20a\x20non-existent\x20Clou\ + d\x20Spanner\x20database\x20will\n\x20result\x20in\x20a\x20NOT_FOUND\x20\ + error\x20if\x20the\x20user\x20has\n\x20`spanner.databases.list`\x20permi\ + ssion\x20on\x20the\x20containing\x20Cloud\n\x20Spanner\x20instance.\x20O\ + therwise\x20returns\x20an\x20empty\x20set\x20of\x20permissions.\n\x20Cal\ + ling\x20this\x20method\x20on\x20a\x20backup\x20that\x20does\x20not\x20ex\ + ist\x20will\n\x20result\x20in\x20a\x20NOT_FOUND\x20error\x20if\x20the\ + \x20user\x20has\n\x20`spanner.backups.list`\x20permission\x20on\x20the\ + \x20containing\x20instance.\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\xb7\ + \x01\x06\x18\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\xb7\x01\x19@\n\r\n\x05\ + \x06\0\x02\x08\x03\x12\x04\xb8\x01\x0f7\n\x0f\n\x05\x06\0\x02\x08\x04\ + \x12\x06\xb9\x01\x04\xc0\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\ + \"\x12\x06\xb9\x01\x04\xc0\x01\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\ + \xc1\x01\x04B\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\xc1\x01\ + \x04B\n\x9b\x06\n\x04\x06\0\x02\t\x12\x06\xd0\x01\x02\xda\x01\x03\x1a\ + \x8a\x06\x20Starts\x20creating\x20a\x20new\x20Cloud\x20Spanner\x20Backup\ + .\n\x20The\x20returned\x20backup\x20[long-running\x20operation][google.l\ + ongrunning.Operation]\n\x20will\x20have\x20a\x20name\x20of\x20the\x20for\ + mat\n\x20`projects//instances//backups//opera\ + tions/`\n\x20and\x20can\x20be\x20used\x20to\x20track\x20cr\ + eation\x20of\x20the\x20backup.\x20The\n\x20[metadata][google.longrunning\ + .Operation.metadata]\x20field\x20type\x20is\n\x20[CreateBackupMetadata][\ + google.spanner.admin.database.v1.CreateBackupMetadata].\n\x20The\x20[res\ + ponse][google.longrunning.Operation.response]\x20field\x20type\x20is\n\ + \x20[Backup][google.spanner.admin.database.v1.Backup],\x20if\x20successf\ + ul.\n\x20Cancelling\x20the\x20returned\x20operation\x20will\x20stop\x20t\ + he\x20creation\x20and\x20delete\x20the\n\x20backup.\x20There\x20can\x20b\ + e\x20only\x20one\x20pending\x20backup\x20creation\x20per\x20database.\ + \x20Backup\n\x20creation\x20of\x20different\x20databases\x20can\x20run\ + \x20concurrently.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xd0\x01\x06\x12\n\ + \r\n\x05\x06\0\x02\t\x02\x12\x04\xd0\x01\x13&\n\r\n\x05\x06\0\x02\t\x03\ + \x12\x04\xd0\x011M\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xd1\x01\x04\xd4\ + \x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xd1\x01\x04\xd4\ + \x01\x06\n\r\n\x05\x06\0\x02\t\x04\x12\x04\xd5\x01\x04E\n\x10\n\x08\x06\ + \0\x02\t\x04\x9b\x08\0\x12\x04\xd5\x01\x04E\n\x0f\n\x05\x06\0\x02\t\x04\ + \x12\x06\xd6\x01\x04\xd9\x01\x06\n\x11\n\x07\x06\0\x02\t\x04\x99\x08\x12\ + \x06\xd6\x01\x04\xd9\x01\x06\nm\n\x04\x06\0\x02\n\x12\x06\xde\x01\x02\ + \xe3\x01\x03\x1a]\x20Gets\x20metadata\x20on\x20a\x20pending\x20or\x20com\ + pleted\n\x20[Backup][google.spanner.admin.database.v1.Backup].\n\n\r\n\ + \x05\x06\0\x02\n\x01\x12\x04\xde\x01\x06\x0f\n\r\n\x05\x06\0\x02\n\x02\ + \x12\x04\xde\x01\x10\x20\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xde\x01+1\n\ + \x0f\n\x05\x06\0\x02\n\x04\x12\x06\xdf\x01\x04\xe1\x01\x06\n\x13\n\t\x06\ + \0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xdf\x01\x04\xe1\x01\x06\n\r\n\x05\x06\ + \0\x02\n\x04\x12\x04\xe2\x01\x042\n\x10\n\x08\x06\0\x02\n\x04\x9b\x08\0\ + \x12\x04\xe2\x01\x042\nd\n\x04\x06\0\x02\x0b\x12\x06\xe7\x01\x02\xed\x01\ + \x03\x1aT\x20Updates\x20a\x20pending\x20or\x20completed\n\x20[Backup][go\ + ogle.spanner.admin.database.v1.Backup].\n\n\r\n\x05\x06\0\x02\x0b\x01\ + \x12\x04\xe7\x01\x06\x12\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xe7\x01\x13\ + &\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\xe7\x0117\n\x0f\n\x05\x06\0\x02\ + \x0b\x04\x12\x06\xe8\x01\x04\xeb\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\ + \xca\xbc\"\x12\x06\xe8\x01\x04\xeb\x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\ + \x12\x04\xec\x01\x04@\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\ + \xec\x01\x04@\nd\n\x04\x06\0\x02\x0c\x12\x06\xf1\x01\x02\xf6\x01\x03\x1a\ + T\x20Deletes\x20a\x20pending\x20or\x20completed\n\x20[Backup][google.spa\ + nner.admin.database.v1.Backup].\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\x04\ + \xf1\x01\x06\x12\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xf1\x01\x13&\n\r\n\ + \x05\x06\0\x02\x0c\x03\x12\x04\xf1\x011F\n\x0f\n\x05\x06\0\x02\x0c\x04\ + \x12\x06\xf2\x01\x04\xf4\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\xbc\ + \"\x12\x06\xf2\x01\x04\xf4\x01\x06\n\r\n\x05\x06\0\x02\x0c\x04\x12\x04\ + \xf5\x01\x042\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\x12\x04\xf5\x01\ + \x042\n\xa9\x01\n\x04\x06\0\x02\r\x12\x06\xfb\x01\x02\x80\x02\x03\x1a\ + \x98\x01\x20Lists\x20completed\x20and\x20pending\x20backups.\n\x20Backup\ + s\x20returned\x20are\x20ordered\x20by\x20`create_time`\x20in\x20descendi\ + ng\x20order,\n\x20starting\x20from\x20the\x20most\x20recent\x20`create_t\ + ime`.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\xfb\x01\x06\x11\n\r\n\x05\x06\ + \0\x02\r\x02\x12\x04\xfb\x01\x12$\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xfb\ + \x01/B\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xfc\x01\x04\xfe\x01\x06\n\x13\ + \n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\xfc\x01\x04\xfe\x01\x06\n\r\n\ + \x05\x06\0\x02\r\x04\x12\x04\xff\x01\x044\n\x10\n\x08\x06\0\x02\r\x04\ + \x9b\x08\0\x12\x04\xff\x01\x044\n\xd6\x08\n\x04\x06\0\x02\x0e\x12\x06\ + \x93\x02\x02\x9e\x02\x03\x1a\xc5\x08\x20Create\x20a\x20new\x20database\ + \x20by\x20restoring\x20from\x20a\x20completed\x20backup.\x20The\x20new\n\ + \x20database\x20must\x20be\x20in\x20the\x20same\x20project\x20and\x20in\ + \x20an\x20instance\x20with\x20the\x20same\n\x20instance\x20configuration\ + \x20as\x20the\x20instance\x20containing\n\x20the\x20backup.\x20The\x20re\ + turned\x20database\x20[long-running\n\x20operation][google.longrunning.O\ + peration]\x20has\x20a\x20name\x20of\x20the\x20format\n\x20`projects//instances//databases//operations/`,\n\x20and\x20can\x20be\x20used\x20to\x20track\x20the\x20progress\x20o\ + f\x20the\x20operation,\x20and\x20to\x20cancel\x20it.\n\x20The\x20[metada\ + ta][google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[\ + RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabas\ + eMetadata].\n\x20The\x20[response][google.longrunning.Operation.response\ + ]\x20type\n\x20is\x20[Database][google.spanner.admin.database.v1.Databas\ + e],\x20if\n\x20successful.\x20Cancelling\x20the\x20returned\x20operation\ + \x20will\x20stop\x20the\x20restore\x20and\n\x20delete\x20the\x20database\ + .\n\x20There\x20can\x20be\x20only\x20one\x20database\x20being\x20restore\ + d\x20into\x20an\x20instance\x20at\x20a\x20time.\n\x20Once\x20the\x20rest\ + ore\x20operation\x20completes,\x20a\x20new\x20restore\x20operation\x20ca\ + n\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\x0e\x01\x12\x04\x93\x02\x06\x15\n\r\ + \n\x05\x06\0\x02\x0e\x02\x12\x04\x93\x02\x16,\n\r\n\x05\x06\0\x02\x0e\ + \x03\x12\x04\x94\x02\x0f+\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\x95\x02\ + \x04\x98\x02\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\x95\ + \x02\x04\x98\x02\x06\n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\x99\x02\x04G\n\ + \x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\x99\x02\x04G\n\x0f\n\x05\ + \x06\0\x02\x0e\x04\x12\x06\x9a\x02\x04\x9d\x02\x06\n\x11\n\x07\x06\0\x02\ + \x0e\x04\x99\x08\x12\x06\x9a\x02\x04\x9d\x02\x06\n\xe9\x03\n\x04\x06\0\ + \x02\x0f\x12\x06\xa8\x02\x02\xae\x02\x03\x1a\xd8\x03\x20Lists\x20databas\ + e\x20[longrunning-operations][google.longrunning.Operation].\n\x20A\x20d\ + atabase\x20operation\x20has\x20a\x20name\x20of\x20the\x20form\n\x20`proj\ + ects//instances//databases//operations/`.\n\x20The\x20long-running\x20operation\n\x20[metadata][google.l\ + ongrunning.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\x0f\x01\x12\x04\xa8\x02\x06\x1c\n\r\n\x05\ + \x06\0\x02\x0f\x02\x12\x04\xa8\x02\x1d:\n\r\n\x05\x06\0\x02\x0f\x03\x12\ + \x04\xa9\x02\x0f-\n\x0f\n\x05\x06\0\x02\x0f\x04\x12\x06\xaa\x02\x04\xac\ + \x02\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\xca\xbc\"\x12\x06\xaa\x02\x04\ + \xac\x02\x06\n\r\n\x05\x06\0\x02\x0f\x04\x12\x04\xad\x02\x044\n\x10\n\ + \x08\x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\xad\x02\x044\n\x97\x05\n\x04\ + \x06\0\x02\x10\x12\x06\xba\x02\x02\xc0\x02\x03\x1a\x86\x05\x20Lists\x20t\ + he\x20backup\x20[long-running\x20operations][google.longrunning.Operatio\ + n]\x20in\n\x20the\x20given\x20instance.\x20A\x20backup\x20operation\x20h\ + as\x20a\x20name\x20of\x20the\x20form\n\x20`projects//instances/\ + /backups//operations/`.\n\x20The\x20long-ru\ + nning\x20operation\n\x20[metadata][google.longrunning.Operation.metadata\ + ]\x20field\x20type\n\x20`metadata.type_url`\x20describes\x20the\x20type\ + \x20of\x20the\x20metadata.\x20Operations\x20returned\n\x20include\x20tho\ + se\x20that\x20have\x20completed/failed/canceled\x20within\x20the\x20last\ + \x207\x20days,\n\x20and\x20pending\x20operations.\x20Operations\x20retur\ + ned\x20are\x20ordered\x20by\n\x20`operation.metadata.value.progress.star\ + t_time`\x20in\x20descending\x20order\x20starting\n\x20from\x20the\x20mos\ + t\x20recently\x20started\x20operation.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\ + \x04\xba\x02\x06\x1a\n\r\n\x05\x06\0\x02\x10\x02\x12\x04\xba\x02\x1b6\n\ + \r\n\x05\x06\0\x02\x10\x03\x12\x04\xbb\x02\x0f+\n\x0f\n\x05\x06\0\x02\ + \x10\x04\x12\x06\xbc\x02\x04\xbe\x02\x06\n\x13\n\t\x06\0\x02\x10\x04\xb0\ + \xca\xbc\"\x12\x06\xbc\x02\x04\xbe\x02\x06\n\r\n\x05\x06\0\x02\x10\x04\ + \x12\x04\xbf\x02\x044\n\x10\n\x08\x06\0\x02\x10\x04\x9b\x08\0\x12\x04\ + \xbf\x02\x044\n7\n\x02\x04\0\x12\x06\xc4\x02\0\xce\x02\x01\x1a)\x20Infor\ + mation\x20about\x20the\x20database\x20restore.\n\n\x0b\n\x03\x04\0\x01\ + \x12\x04\xc4\x02\x08\x13\n/\n\x04\x04\0\x02\0\x12\x04\xc6\x02\x02$\x1a!\ + \x20The\x20type\x20of\x20the\x20restore\x20source.\n\n\x0f\n\x05\x04\0\ + \x02\0\x04\x12\x06\xc6\x02\x02\xc4\x02\x15\n\r\n\x05\x04\0\x02\0\x06\x12\ + \x04\xc6\x02\x02\x13\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xc6\x02\x14\x1f\n\ + \r\n\x05\x04\0\x02\0\x03\x12\x04\xc6\x02\"#\nL\n\x04\x04\0\x08\0\x12\x06\ + \xc9\x02\x02\xcd\x02\x03\x1a<\x20Information\x20about\x20the\x20source\ + \x20used\x20to\x20restore\x20the\x20database.\n\n\r\n\x05\x04\0\x08\0\ + \x01\x12\x04\xc9\x02\x08\x13\nk\n\x04\x04\0\x02\x01\x12\x04\xcc\x02\x04\ + \x1f\x1a]\x20Information\x20about\x20the\x20backup\x20used\x20to\x20rest\ + ore\x20the\x20database.\x20The\x20backup\n\x20may\x20no\x20longer\x20exi\ + st.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xcc\x02\x04\x0e\n\r\n\x05\x04\ + \0\x02\x01\x01\x12\x04\xcc\x02\x0f\x1a\n\r\n\x05\x04\0\x02\x01\x03\x12\ + \x04\xcc\x02\x1d\x1e\n)\n\x02\x04\x01\x12\x06\xd1\x02\0\xa2\x03\x01\x1a\ + \x1b\x20A\x20Cloud\x20Spanner\x20database.\n\n\x0b\n\x03\x04\x01\x01\x12\ + \x04\xd1\x02\x08\x10\n\r\n\x03\x04\x01\x07\x12\x06\xd2\x02\x02\xd5\x02\ + \x04\n\x0f\n\x05\x04\x01\x07\x9d\x08\x12\x06\xd2\x02\x02\xd5\x02\x04\n>\ + \n\x04\x04\x01\x04\0\x12\x06\xd8\x02\x02\xec\x02\x03\x1a.\x20Indicates\ + \x20the\x20current\x20state\x20of\x20the\x20database.\n\n\r\n\x05\x04\ + \x01\x04\0\x01\x12\x04\xd8\x02\x07\x0c\n\x20\n\x06\x04\x01\x04\0\x02\0\ + \x12\x04\xda\x02\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0f\n\x07\x04\ + \x01\x04\0\x02\0\x01\x12\x04\xda\x02\x04\x15\n\x0f\n\x07\x04\x01\x04\0\ + \x02\0\x02\x12\x04\xda\x02\x18\x19\n\x85\x01\n\x06\x04\x01\x04\0\x02\x01\ + \x12\x04\xde\x02\x04\x11\x1au\x20The\x20database\x20is\x20still\x20being\ + \x20created.\x20Operations\x20on\x20the\x20database\x20may\x20fail\n\x20\ + with\x20`FAILED_PRECONDITION`\x20in\x20this\x20state.\n\n\x0f\n\x07\x04\ + \x01\x04\0\x02\x01\x01\x12\x04\xde\x02\x04\x0c\n\x0f\n\x07\x04\x01\x04\0\ + \x02\x01\x02\x12\x04\xde\x02\x0f\x10\nB\n\x06\x04\x01\x04\0\x02\x02\x12\ + \x04\xe1\x02\x04\x0e\x1a2\x20The\x20database\x20is\x20fully\x20created\ + \x20and\x20ready\x20for\x20use.\n\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x01\ + \x12\x04\xe1\x02\x04\t\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x04\xe1\ + \x02\x0c\r\n\x96\x03\n\x06\x04\x01\x04\0\x02\x03\x12\x04\xeb\x02\x04\x19\ + \x1a\x85\x03\x20The\x20database\x20is\x20fully\x20created\x20and\x20read\ + y\x20for\x20use,\x20but\x20is\x20still\n\x20being\x20optimized\x20for\ + \x20performance\x20and\x20cannot\x20handle\x20full\x20load.\n\n\x20In\ + \x20this\x20state,\x20the\x20database\x20still\x20references\x20the\x20b\ + ackup\n\x20it\x20was\x20restore\x20from,\x20preventing\x20the\x20backup\ + \n\x20from\x20being\x20deleted.\x20When\x20optimizations\x20are\x20compl\ + ete,\x20the\x20full\x20performance\n\x20of\x20the\x20database\x20will\ + \x20be\x20restored,\x20and\x20the\x20database\x20will\x20transition\x20t\ + o\n\x20`READY`\x20state.\n\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x04\ + \xeb\x02\x04\x14\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x04\xeb\x02\ + \x17\x18\n\x9d\x02\n\x04\x04\x01\x02\0\x12\x04\xf3\x02\x02;\x1a\x8e\x02\ + \x20Required.\x20The\x20name\x20of\x20the\x20database.\x20Values\x20are\ + \x20of\x20the\x20form\n\x20`projects//instances//data\ + bases/`,\n\x20where\x20``\x20is\x20as\x20specified\ + \x20in\x20the\x20`CREATE\x20DATABASE`\n\x20statement.\x20This\x20name\ \x20can\x20be\x20passed\x20to\x20other\x20API\x20methods\x20to\n\x20iden\ - tify\x20the\x20database.\n\n\x0f\n\x05\x04\0\x02\0\x04\x12\x06\xd5\x01\ - \x02\xce\x01\x03\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\x0f\n\ - \x05\x04\0\x02\x01\x04\x12\x06\xd8\x01\x02\xd5\x01\x12\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.Lis\ - tDatabases].\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//instances/\ - `.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xe0\x01\x02\xdd\x01\ - \x1e\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\x20max\ - imum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\ - \x06\xe9\x01\x02\xe5\x01\x04\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`pag\ - e_token`\x20should\x20contain\x20a\n\x20[next_page_token][google.spanner\ - .admin.database.v1.ListDatabasesResponse.next_page_token]\n\x20from\x20a\ - \x20previous\n\x20[ListDatabasesResponse][google.spanner.admin.database.\ - v1.ListDatabasesResponse].\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\xef\ - \x01\x02\xe9\x01\x16\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][g\ - oogle.spanner.admin.database.v1.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%\x20Databases\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\x20sent\x20in\x20a\x20subsequent\n\x20[ListDatabase\ - s][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]\n\x20ca\ - ll\x20to\x20fetch\x20more\x20of\x20the\x20matching\x20databases.\n\n\x0f\ - \n\x05\x04\x02\x02\x01\x04\x12\x06\xfb\x01\x02\xf6\x01\"\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\x20reque\ - st\x20for\n\x20[CreateDatabase][google.spanner.admin.database.v1.Databas\ - eAdmin.CreateDatabase].\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`projects//instances/`.\n\n\x0f\n\ - \x05\x04\x03\x02\0\x04\x12\x06\x83\x02\x02\x80\x02\x1f\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\x20DA\ - TABASE`\x20statement,\x20which\x20specifies\x20the\x20ID\x20of\x20the\n\ - \x20new\x20database.\x20\x20The\x20database\x20ID\x20must\x20conform\x20\ - to\x20the\x20regular\x20expression\n\x20`[a-z][a-z0-9_\\-]*[a-z0-9]`\x20\ - and\x20be\x20between\x202\x20and\x2030\x20characters\x20in\x20length.\n\ - \x20If\x20the\x20database\x20ID\x20is\x20a\x20reserved\x20word\x20or\x20\ - if\x20it\x20contains\x20a\x20hyphen,\x20the\n\x20database\x20ID\x20must\ - \x20be\x20enclosed\x20in\x20backticks\x20(``\x20`\x20``).\n\n\x0f\n\x05\ - \x04\x03\x02\x01\x04\x12\x06\x8f\x02\x02\x88\x02\x04\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\x20statements\x20to\x20run\x20inside\x20the\x20newly\x20created\ - \n\x20database.\x20Statements\x20can\x20create\x20tables,\x20indexes,\ - \x20etc.\x20These\n\x20statements\x20execute\x20atomically\x20with\x20th\ - e\x20creation\x20of\x20the\x20database:\n\x20if\x20there\x20is\x20an\x20\ - error\x20in\x20any\x20statement,\x20the\x20database\x20is\x20not\x20crea\ - ted.\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\x20for\x20the\x20operation\x20returned\x20by\n\x20[CreateDataba\ - se][google.spanner.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\x20\ - created.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\x9c\x02\x02\x9a\x02\x20\ - \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\x20reque\ - st\x20for\n\x20[GetDatabase][google.spanner.admin.database.v1.DatabaseAd\ - min.GetDatabase].\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\ - \x20Required.\x20The\x20name\x20of\x20the\x20requested\x20database.\x20V\ - alues\x20are\x20of\x20the\x20form\n\x20`projects//instances//databases/`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\ - \xa6\x02\x02\xa3\x02\x1c\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(\ - or\n\x20points)\x20in\x20the\x20future.\x20The\x20server\x20checks\x20th\ - at\x20the\x20statements\n\x20are\x20executable\x20(syntactically\x20vali\ - d,\x20name\x20tables\x20that\x20exist,\x20etc.)\n\x20before\x20enqueuein\ - g\x20them,\x20but\x20they\x20may\x20still\x20fail\x20upon\n\x20later\x20\ - execution\x20(e.g.,\x20if\x20a\x20statement\x20from\x20another\x20batch\ - \x20of\n\x20statements\x20is\x20applied\x20first\x20and\x20it\x20conflic\ - ts\x20in\x20some\x20way,\x20or\x20if\n\x20there\x20is\x20some\x20data-re\ - lated\x20problem\x20like\x20a\x20`NULL`\x20value\x20in\x20a\x20column\ - \x20to\n\x20which\x20`NOT\x20NULL`\x20would\x20be\x20added).\x20If\x20a\ - \x20statement\x20fails,\x20all\n\x20subsequent\x20statements\x20in\x20th\ - e\x20batch\x20are\x20automatically\x20cancelled.\n\n\x20Each\x20batch\ - \x20of\x20statements\x20is\x20assigned\x20a\x20name\x20which\x20can\x20b\ - 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]\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\x0f\n\x05\ - \x04\x06\x02\0\x04\x12\x06\xc0\x02\x02\xbe\x02\"\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\x20to\x20be\x20\ - applied\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.\x20Otherwise,\ - \x20`operation_id`\n\x20is\x20used\x20to\x20construct\x20the\x20name\x20\ - of\x20the\x20resulting\n\x20[Operation][google.longrunning.Operation].\n\ - \n\x20Specifying\x20an\x20explicit\x20operation\x20ID\x20simplifies\x20d\ - etermining\n\x20whether\x20the\x20statements\x20were\x20executed\x20in\ - \x20the\x20event\x20that\x20the\n\x20[UpdateDatabaseDdl][google.spanner.\ - admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20call\x20is\x20re\ - played,\x20or\x20the\x20return\x20value\x20is\x20otherwise\x20lost:\x20t\ - he\n\x20[database][google.spanner.admin.database.v1.UpdateDatabaseDdlReq\ - uest.database]\n\x20and\x20`operation_id`\x20fields\x20can\x20be\x20comb\ - ined\x20to\x20form\x20the\n\x20[name][google.longrunning.Operation.name]\ - \x20of\x20the\x20resulting\n\x20[longrunning.Operation][google.longrunni\ - ng.Operation]:\n\x20`/operations/`.\n\n\x20`oper\ - ation_id`\x20should\x20be\x20unique\x20within\x20the\x20database,\x20and\ - \x20must\x20be\n\x20a\x20valid\x20identifier:\x20`[a-z][a-z0-9_]*`.\x20N\ - ote\x20that\n\x20automatically-generated\x20operation\x20IDs\x20always\ - \x20begin\x20with\x20an\n\x20underscore.\x20If\x20the\x20named\x20operat\ - ion\x20already\x20exists,\n\x20[UpdateDatabaseDdl][google.spanner.admin.\ - database.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20returns\x20`ALREADY_EX\ - ISTS`.\n\n\x0f\n\x05\x04\x06\x02\x02\x04\x12\x06\xdf\x02\x02\xc8\x02J\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.Databas\ - eAdmin.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\x0f\n\x05\x04\x07\x02\0\x04\x12\ - \x06\xe6\x02\x02\xe4\x02#\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.\x20For\x20an\n\x20individual\x20statement,\x20thi\ - s\x20list\x20contains\x20only\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\x20commi\ - t\x20timestamps\x20of\x20all\x20statements\x20that\x20have\n\x20succeede\ - d\x20so\x20far,\x20where\x20`commit_timestamps[i]`\x20is\x20the\x20commi\ - t\n\x20timestamp\x20for\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[DropDatab\ - ase][google.spanner.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\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xf8\x02\ - \x02\xf6\x02\x1d\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\x20req\ - uest\x20for\n\x20[GetDatabaseDdl][google.spanner.admin.database.v1.Datab\ - aseAdmin.GetDatabaseDdl].\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\x20Requir\ - ed.\x20The\x20database\x20whose\x20schema\x20we\x20wish\x20to\x20get.\n\ - \n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\x84\x03\x02\x82\x03\x1f\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][\ + tify\x20the\x20database.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xf3\x02\ + \x02\xec\x02\x03\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xf3\x02\x02\x08\n\r\ + \n\x05\x04\x01\x02\0\x01\x12\x04\xf3\x02\t\r\n\r\n\x05\x04\x01\x02\0\x03\ + \x12\x04\xf3\x02\x10\x11\n\r\n\x05\x04\x01\x02\0\x08\x12\x04\xf3\x02\x12\ + :\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x04\xf3\x02\x139\n8\n\x04\ + \x04\x01\x02\x01\x12\x04\xf6\x02\x02>\x1a*\x20Output\x20only.\x20The\x20\ + current\x20database\x20state.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\ + \xf6\x02\x02\xf3\x02;\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xf6\x02\x02\ + \x07\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xf6\x02\x08\r\n\r\n\x05\x04\ + \x01\x02\x01\x03\x12\x04\xf6\x02\x10\x11\n\r\n\x05\x04\x01\x02\x01\x08\ + \x12\x04\xf6\x02\x12=\n\x10\n\x08\x04\x01\x02\x01\x08\x9c\x08\0\x12\x04\ + \xf6\x02\x13<\nZ\n\x04\x04\x01\x02\x02\x12\x06\xf9\x02\x02\xfa\x022\x1aJ\ + \x20Output\x20only.\x20If\x20exists,\x20the\x20time\x20at\x20which\x20th\ + e\x20database\x20creation\x20started.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\ + \x12\x06\xf9\x02\x02\xf6\x02>\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\xf9\ + \x02\x02\x1b\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xf9\x02\x1c'\n\r\n\ + \x05\x04\x01\x02\x02\x03\x12\x04\xf9\x02*+\n\r\n\x05\x04\x01\x02\x02\x08\ + \x12\x04\xfa\x02\x061\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\x12\x04\ + \xfa\x02\x070\nt\n\x04\x04\x01\x02\x03\x12\x04\xfe\x02\x02K\x1af\x20Outp\ + ut\x20only.\x20Applicable\x20only\x20for\x20restored\x20databases.\x20Co\ + ntains\x20information\n\x20about\x20the\x20restore\x20source.\n\n\x0f\n\ + \x05\x04\x01\x02\x03\x04\x12\x06\xfe\x02\x02\xfa\x022\n\r\n\x05\x04\x01\ + \x02\x03\x06\x12\x04\xfe\x02\x02\r\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\ + \xfe\x02\x0e\x1a\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xfe\x02\x1d\x1e\n\ + \r\n\x05\x04\x01\x02\x03\x08\x12\x04\xfe\x02\x1fJ\n\x10\n\x08\x04\x01\ + \x02\x03\x08\x9c\x08\0\x12\x04\xfe\x02\x20I\n\xfe\x01\n\x04\x04\x01\x02\ + \x04\x12\x06\x84\x03\x02\x85\x032\x1a\xed\x01\x20Output\x20only.\x20For\ + \x20databases\x20that\x20are\x20using\x20customer\x20managed\x20encrypti\ + on,\x20this\n\x20field\x20contains\x20the\x20encryption\x20configuration\ + \x20for\x20the\x20database.\n\x20For\x20databases\x20that\x20are\x20usin\ + g\x20Google\x20default\x20or\x20other\x20types\x20of\x20encryption,\n\ + \x20this\x20field\x20is\x20empty.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\ + \x06\x84\x03\x02\xfe\x02K\n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\x84\x03\ + \x02\x12\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\x84\x03\x13$\n\r\n\x05\ + \x04\x01\x02\x04\x03\x12\x04\x84\x03'(\n\r\n\x05\x04\x01\x02\x04\x08\x12\ + \x04\x85\x03\x061\n\x10\n\x08\x04\x01\x02\x04\x08\x9c\x08\0\x12\x04\x85\ + \x03\x070\n\xdc\x03\n\x04\x04\x01\x02\x05\x12\x06\x90\x03\x02\x91\x032\ + \x1a\xcb\x03\x20Output\x20only.\x20For\x20databases\x20that\x20are\x20us\ + ing\x20customer\x20managed\x20encryption,\x20this\n\x20field\x20contains\ + \x20the\x20encryption\x20information\x20for\x20the\x20database,\x20such\ + \x20as\n\x20encryption\x20state\x20and\x20the\x20Cloud\x20KMS\x20key\x20\ + versions\x20that\x20are\x20in\x20use.\n\n\x20For\x20databases\x20that\ + \x20are\x20using\x20Google\x20default\x20or\x20other\x20types\x20of\x20e\ + ncryption,\n\x20this\x20field\x20is\x20empty.\n\n\x20This\x20field\x20is\ + \x20propagated\x20lazily\x20from\x20the\x20backend.\x20There\x20might\ + \x20be\x20a\x20delay\n\x20from\x20when\x20a\x20key\x20version\x20is\x20b\ + eing\x20used\x20and\x20when\x20it\x20appears\x20in\x20this\x20field.\n\n\ + \r\n\x05\x04\x01\x02\x05\x04\x12\x04\x90\x03\x02\n\n\r\n\x05\x04\x01\x02\ + \x05\x06\x12\x04\x90\x03\x0b\x19\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\ + \x90\x03\x1a)\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\x90\x03,-\n\r\n\x05\ + \x04\x01\x02\x05\x08\x12\x04\x91\x03\x061\n\x10\n\x08\x04\x01\x02\x05\ + \x08\x9c\x08\0\x12\x04\x91\x03\x070\n\xbf\x02\n\x04\x04\x01\x02\x06\x12\ + \x06\x98\x03\x02\x99\x032\x1a\xae\x02\x20Output\x20only.\x20The\x20perio\ + d\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\x20opti\ + on\x20set\x20using\n\x20[UpdateDatabaseDdl][google.spanner.admin.databas\ + e.v1.DatabaseAdmin.UpdateDatabaseDdl].\n\x20Defaults\x20to\x201\x20hour,\ + \x20if\x20not\x20set.\n\n\x0f\n\x05\x04\x01\x02\x06\x04\x12\x06\x98\x03\ + \x02\x91\x032\n\r\n\x05\x04\x01\x02\x06\x05\x12\x04\x98\x03\x02\x08\n\r\ + \n\x05\x04\x01\x02\x06\x01\x12\x04\x98\x03\t!\n\r\n\x05\x04\x01\x02\x06\ + \x03\x12\x04\x98\x03$%\n\r\n\x05\x04\x01\x02\x06\x08\x12\x04\x99\x03\x06\ + 1\n\x10\n\x08\x04\x01\x02\x06\x08\x9c\x08\0\x12\x04\x99\x03\x070\n\xee\ + \x02\n\x04\x04\x01\x02\x07\x12\x06\xa0\x03\x02\xa1\x032\x1a\xdd\x02\x20O\ + utput\x20only.\x20Earliest\x20timestamp\x20at\x20which\x20older\x20versi\ + ons\x20of\x20the\x20data\x20can\x20be\n\x20read.\x20This\x20value\x20is\ + \x20continuously\x20updated\x20by\x20Cloud\x20Spanner\x20and\x20becomes\ + \x20stale\n\x20the\x20moment\x20it\x20is\x20queried.\x20If\x20you\x20are\ + \x20using\x20this\x20value\x20to\x20recover\x20data,\x20make\n\x20sure\ + \x20to\x20account\x20for\x20the\x20time\x20from\x20the\x20moment\x20when\ + \x20the\x20value\x20is\x20queried\x20to\n\x20the\x20moment\x20when\x20yo\ + u\x20initiate\x20the\x20recovery.\n\n\x0f\n\x05\x04\x01\x02\x07\x04\x12\ + \x06\xa0\x03\x02\x99\x032\n\r\n\x05\x04\x01\x02\x07\x06\x12\x04\xa0\x03\ + \x02\x1b\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\xa0\x03\x1c1\n\r\n\x05\ + \x04\x01\x02\x07\x03\x12\x04\xa0\x0345\n\r\n\x05\x04\x01\x02\x07\x08\x12\ + \x04\xa1\x03\x061\n\x10\n\x08\x04\x01\x02\x07\x08\x9c\x08\0\x12\x04\xa1\ + \x03\x070\no\n\x02\x04\x02\x12\x06\xa6\x03\0\xb9\x03\x01\x1aa\x20The\x20\ + request\x20for\n\x20[ListDatabases][google.spanner.admin.database.v1.Dat\ + abaseAdmin.ListDatabases].\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xa6\x03\x08\ + \x1c\n\x8d\x01\n\x04\x04\x02\x02\0\x12\x06\xa9\x03\x02\xae\x03\x04\x1a}\ + \x20Required.\x20The\x20instance\x20whose\x20databases\x20should\x20be\ + \x20listed.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects//instances/`.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xa9\ + \x03\x02\xa6\x03\x1e\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xa9\x03\x02\x08\ + \n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xa9\x03\t\x0f\n\r\n\x05\x04\x02\x02\ + \0\x03\x12\x04\xa9\x03\x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xa9\ + \x03\x14\xae\x03\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xaa\ + \x03\x04*\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\xab\x03\x04\xad\ + \x03\x05\n\x86\x01\n\x04\x04\x02\x02\x01\x12\x04\xb2\x03\x02\x16\x1ax\ + \x20Number\x20of\x20databases\x20to\x20be\x20returned\x20in\x20the\x20re\ + sponse.\x20If\x200\x20or\x20less,\n\x20defaults\x20to\x20the\x20server's\ + \x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x02\x02\x01\ + \x04\x12\x06\xb2\x03\x02\xae\x03\x04\n\r\n\x05\x04\x02\x02\x01\x05\x12\ + \x04\xb2\x03\x02\x07\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb2\x03\x08\ + \x11\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xb2\x03\x14\x15\n\xfa\x01\n\ + \x04\x04\x02\x02\x02\x12\x04\xb8\x03\x02\x18\x1a\xeb\x01\x20If\x20non-em\ + pty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][go\ + ogle.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]\n\ + \x20from\x20a\x20previous\n\x20[ListDatabasesResponse][google.spanner.ad\ + min.database.v1.ListDatabasesResponse].\n\n\x0f\n\x05\x04\x02\x02\x02\ + \x04\x12\x06\xb8\x03\x02\xb2\x03\x16\n\r\n\x05\x04\x02\x02\x02\x05\x12\ + \x04\xb8\x03\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xb8\x03\t\x13\ + \n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xb8\x03\x16\x17\np\n\x02\x04\x03\ + \x12\x06\xbd\x03\0\xc5\x03\x01\x1ab\x20The\x20response\x20for\n\x20[List\ + Databases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]\ + .\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xbd\x03\x08\x1d\n3\n\x04\x04\x03\x02\ + \0\x12\x04\xbf\x03\x02\"\x1a%\x20Databases\x20that\x20matched\x20the\x20\ + request.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\xbf\x03\x02\n\n\r\n\x05\ + \x04\x03\x02\0\x06\x12\x04\xbf\x03\x0b\x13\n\r\n\x05\x04\x03\x02\0\x01\ + \x12\x04\xbf\x03\x14\x1d\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xbf\x03\x20\ + !\n\xbc\x01\n\x04\x04\x03\x02\x01\x12\x04\xc4\x03\x02\x1d\x1a\xad\x01\ + \x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\ + \x20[ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListD\ + atabases]\n\x20call\x20to\x20fetch\x20more\x20of\x20the\x20matching\x20d\ + atabases.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xc4\x03\x02\xbf\x03\ + \"\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xc4\x03\x02\x08\n\r\n\x05\x04\ + \x03\x02\x01\x01\x12\x04\xc4\x03\t\x18\n\r\n\x05\x04\x03\x02\x01\x03\x12\ + \x04\xc4\x03\x1b\x1c\nq\n\x02\x04\x04\x12\x06\xc9\x03\0\xe5\x03\x01\x1ac\ + \x20The\x20request\x20for\n\x20[CreateDatabase][google.spanner.admin.dat\ + abase.v1.DatabaseAdmin.CreateDatabase].\n\n\x0b\n\x03\x04\x04\x01\x12\ + \x04\xc9\x03\x08\x1d\n\x9a\x01\n\x04\x04\x04\x02\0\x12\x06\xcc\x03\x02\ + \xd1\x03\x04\x1a\x89\x01\x20Required.\x20The\x20name\x20of\x20the\x20ins\ + tance\x20that\x20will\x20serve\x20the\x20new\x20database.\n\x20Values\ + \x20are\x20of\x20the\x20form\x20`projects//instances/\ + `.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xcc\x03\x02\xc9\x03\x1f\n\r\n\ + \x05\x04\x04\x02\0\x05\x12\x04\xcc\x03\x02\x08\n\r\n\x05\x04\x04\x02\0\ + \x01\x12\x04\xcc\x03\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xcc\x03\ + \x12\x13\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xcc\x03\x14\xd1\x03\x03\n\ + \x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xcd\x03\x04*\n\x11\n\x07\ + \x04\x04\x02\0\x08\x9f\x08\x12\x06\xce\x03\x04\xd0\x03\x05\n\xe6\x02\n\ + \x04\x04\x04\x02\x01\x12\x04\xd8\x03\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\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\xd8\x03\x02\xd1\x03\x04\n\r\ + \n\x05\x04\x04\x02\x01\x05\x12\x04\xd8\x03\x02\x08\n\r\n\x05\x04\x04\x02\ + \x01\x01\x12\x04\xd8\x03\t\x19\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xd8\ + \x03\x1c\x1d\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xd8\x03\x1eF\n\x10\n\ + \x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x04\xd8\x03\x1fE\n\x97\x02\n\x04\ + \x04\x04\x02\x02\x12\x04\xde\x03\x02P\x1a\x88\x02\x20Optional.\x20A\x20l\ + ist\x20of\x20DDL\x20statements\x20to\x20run\x20inside\x20the\x20newly\ + \x20created\n\x20database.\x20Statements\x20can\x20create\x20tables,\x20\ + indexes,\x20etc.\x20These\n\x20statements\x20execute\x20atomically\x20wi\ + th\x20the\x20creation\x20of\x20the\x20database:\n\x20if\x20there\x20is\ + \x20an\x20error\x20in\x20any\x20statement,\x20the\x20database\x20is\x20n\ + ot\x20created.\n\n\r\n\x05\x04\x04\x02\x02\x04\x12\x04\xde\x03\x02\n\n\r\ + \n\x05\x04\x04\x02\x02\x05\x12\x04\xde\x03\x0b\x11\n\r\n\x05\x04\x04\x02\ + \x02\x01\x12\x04\xde\x03\x12\"\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xde\ + \x03%&\n\r\n\x05\x04\x04\x02\x02\x08\x12\x04\xde\x03'O\n\x10\n\x08\x04\ + \x04\x02\x02\x08\x9c\x08\0\x12\x04\xde\x03(N\n\xc2\x01\n\x04\x04\x04\x02\ + \x03\x12\x06\xe3\x03\x02\xe4\x03/\x1a\xb1\x01\x20Optional.\x20The\x20enc\ + ryption\x20configuration\x20for\x20the\x20database.\x20If\x20this\x20fie\ + ld\x20is\n\x20not\x20specified,\x20Cloud\x20Spanner\x20will\x20encrypt/d\ + ecrypt\x20all\x20data\x20at\x20rest\x20using\n\x20Google\x20default\x20e\ + ncryption.\n\n\x0f\n\x05\x04\x04\x02\x03\x04\x12\x06\xe3\x03\x02\xde\x03\ + P\n\r\n\x05\x04\x04\x02\x03\x06\x12\x04\xe3\x03\x02\x12\n\r\n\x05\x04\ + \x04\x02\x03\x01\x12\x04\xe3\x03\x13$\n\r\n\x05\x04\x04\x02\x03\x03\x12\ + \x04\xe3\x03'(\n\r\n\x05\x04\x04\x02\x03\x08\x12\x04\xe4\x03\x06.\n\x10\ + \n\x08\x04\x04\x02\x03\x08\x9c\x08\0\x12\x04\xe4\x03\x07-\n\x8d\x01\n\ + \x02\x04\x05\x12\x06\xe9\x03\0\xee\x03\x01\x1a\x7f\x20Metadata\x20type\ + \x20for\x20the\x20operation\x20returned\x20by\n\x20[CreateDatabase][goog\ + le.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].\n\n\x0b\n\ + \x03\x04\x05\x01\x12\x04\xe9\x03\x08\x1e\n-\n\x04\x04\x05\x02\0\x12\x06\ + \xeb\x03\x02\xed\x03\x05\x1a\x1d\x20The\x20database\x20being\x20created.\ + \n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xeb\x03\x02\xe9\x03\x20\n\r\n\ + \x05\x04\x05\x02\0\x05\x12\x04\xeb\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\ + \x01\x12\x04\xeb\x03\t\x11\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xeb\x03\ + \x14\x15\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xeb\x03\x16\xed\x03\x04\n\ + \x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xeb\x03\x17\xed\x03\x03\nk\ + \n\x02\x04\x06\x12\x06\xf2\x03\0\xfb\x03\x01\x1a]\x20The\x20request\x20f\ + or\n\x20[GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.Get\ + Database].\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xf2\x03\x08\x1a\n\x98\x01\n\ + \x04\x04\x06\x02\0\x12\x06\xf5\x03\x02\xfa\x03\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\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xf5\x03\x02\ + \xf2\x03\x1c\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xf5\x03\x02\x08\n\r\n\ + \x05\x04\x06\x02\0\x01\x12\x04\xf5\x03\t\r\n\r\n\x05\x04\x06\x02\0\x03\ + \x12\x04\xf5\x03\x10\x11\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xf5\x03\ + \x12\xfa\x03\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xf6\x03\ + \x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xf7\x03\x04\xf9\x03\ + \x05\n\x99\x07\n\x02\x04\x07\x12\x06\x8d\x04\0\xaf\x04\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(or\n\x20p\ + oints)\x20in\x20the\x20future.\x20The\x20server\x20checks\x20that\x20the\ + \x20statements\n\x20are\x20executable\x20(syntactically\x20valid,\x20nam\ + e\x20tables\x20that\x20exist,\x20etc.)\n\x20before\x20enqueueing\x20them\ + ,\x20but\x20they\x20may\x20still\x20fail\x20upon\n\x20later\x20execution\ + \x20(e.g.,\x20if\x20a\x20statement\x20from\x20another\x20batch\x20of\n\ + \x20statements\x20is\x20applied\x20first\x20and\x20it\x20conflicts\x20in\ + \x20some\x20way,\x20or\x20if\n\x20there\x20is\x20some\x20data-related\ + \x20problem\x20like\x20a\x20`NULL`\x20value\x20in\x20a\x20column\x20to\n\ + \x20which\x20`NOT\x20NULL`\x20would\x20be\x20added).\x20If\x20a\x20state\ + ment\x20fails,\x20all\n\x20subsequent\x20statements\x20in\x20the\x20batc\ + h\x20are\x20automatically\x20cancelled.\n\n\x20Each\x20batch\x20of\x20st\ + atements\x20is\x20assigned\x20a\x20name\x20which\x20can\x20be\x20used\ + \x20with\n\x20the\x20[Operations][google.longrunning.Operations]\x20API\ + \x20to\x20monitor\n\x20progress.\x20See\x20the\n\x20[operation_id][googl\ + e.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id]\n\x20\ + field\x20for\x20more\x20details.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x8d\ + \x04\x08\x20\n3\n\x04\x04\x07\x02\0\x12\x06\x8f\x04\x02\x94\x04\x04\x1a#\ + \x20Required.\x20The\x20database\x20to\x20update.\n\n\x0f\n\x05\x04\x07\ + \x02\0\x04\x12\x06\x8f\x04\x02\x8d\x04\"\n\r\n\x05\x04\x07\x02\0\x05\x12\ + \x04\x8f\x04\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x8f\x04\t\x11\n\ + \r\n\x05\x04\x07\x02\0\x03\x12\x04\x8f\x04\x14\x15\n\x0f\n\x05\x04\x07\ + \x02\0\x08\x12\x06\x8f\x04\x16\x94\x04\x03\n\x10\n\x08\x04\x07\x02\0\x08\ + \x9c\x08\0\x12\x04\x90\x04\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\ + \x12\x06\x91\x04\x04\x93\x04\x05\nG\n\x04\x04\x07\x02\x01\x12\x04\x97\ + \x04\x02J\x1a9\x20Required.\x20DDL\x20statements\x20to\x20be\x20applied\ + \x20to\x20the\x20database.\n\n\r\n\x05\x04\x07\x02\x01\x04\x12\x04\x97\ + \x04\x02\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\x97\x04\x0b\x11\n\r\n\ + \x05\x04\x07\x02\x01\x01\x12\x04\x97\x04\x12\x1c\n\r\n\x05\x04\x07\x02\ + \x01\x03\x12\x04\x97\x04\x1f\x20\n\r\n\x05\x04\x07\x02\x01\x08\x12\x04\ + \x97\x04!I\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\x97\x04\"H\ + \n\xe6\x08\n\x04\x04\x07\x02\x02\x12\x04\xae\x04\x02\x1a\x1a\xd7\x08\x20\ + If\x20empty,\x20the\x20new\x20update\x20request\x20is\x20assigned\x20an\ + \n\x20automatically-generated\x20operation\x20ID.\x20Otherwise,\x20`oper\ + ation_id`\n\x20is\x20used\x20to\x20construct\x20the\x20name\x20of\x20the\ + \x20resulting\n\x20[Operation][google.longrunning.Operation].\n\n\x20Spe\ + cifying\x20an\x20explicit\x20operation\x20ID\x20simplifies\x20determinin\ + g\n\x20whether\x20the\x20statements\x20were\x20executed\x20in\x20the\x20\ + event\x20that\x20the\n\x20[UpdateDatabaseDdl][google.spanner.admin.datab\ + ase.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20call\x20is\x20replayed,\x20\ + or\x20the\x20return\x20value\x20is\x20otherwise\x20lost:\x20the\n\x20[da\ + tabase][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.databa\ + se]\n\x20and\x20`operation_id`\x20fields\x20can\x20be\x20combined\x20to\ + \x20form\x20the\n\x20[name][google.longrunning.Operation.name]\x20of\x20\ + the\x20resulting\n\x20[longrunning.Operation][google.longrunning.Operati\ + on]:\n\x20`/operations/`.\n\n\x20`operation_id`\ + \x20should\x20be\x20unique\x20within\x20the\x20database,\x20and\x20must\ + \x20be\n\x20a\x20valid\x20identifier:\x20`[a-z][a-z0-9_]*`.\x20Note\x20t\ + hat\n\x20automatically-generated\x20operation\x20IDs\x20always\x20begin\ + \x20with\x20an\n\x20underscore.\x20If\x20the\x20named\x20operation\x20al\ + ready\x20exists,\n\x20[UpdateDatabaseDdl][google.spanner.admin.database.\ + v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20returns\x20`ALREADY_EXISTS`.\n\ + \n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xae\x04\x02\x97\x04J\n\r\n\x05\ + \x04\x07\x02\x02\x05\x12\x04\xae\x04\x02\x08\n\r\n\x05\x04\x07\x02\x02\ + \x01\x12\x04\xae\x04\t\x15\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xae\x04\ + \x18\x19\n\x94\x01\n\x02\x04\x08\x12\x06\xb3\x04\0\xc6\x04\x01\x1a\x85\ + \x01\x20Metadata\x20type\x20for\x20the\x20operation\x20returned\x20by\n\ + \x20[UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.U\ + pdateDatabaseDdl].\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xb3\x04\x08!\n.\n\ + \x04\x04\x08\x02\0\x12\x06\xb5\x04\x02\xb7\x04\x05\x1a\x1e\x20The\x20dat\ + abase\x20being\x20modified.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xb5\ + \x04\x02\xb3\x04#\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xb5\x04\x02\x08\n\ + \r\n\x05\x04\x08\x02\0\x01\x12\x04\xb5\x04\t\x11\n\r\n\x05\x04\x08\x02\0\ + \x03\x12\x04\xb5\x04\x14\x15\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xb5\ + \x04\x16\xb7\x04\x04\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xb5\ + \x04\x17\xb7\x04\x03\n\x8a\x01\n\x04\x04\x08\x02\x01\x12\x04\xbb\x04\x02\ + !\x1a|\x20For\x20an\x20update\x20this\x20list\x20contains\x20all\x20the\ + \x20statements.\x20For\x20an\n\x20individual\x20statement,\x20this\x20li\ + st\x20contains\x20only\x20that\x20statement.\n\n\r\n\x05\x04\x08\x02\x01\ + \x04\x12\x04\xbb\x04\x02\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xbb\x04\ + \x0b\x11\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xbb\x04\x12\x1c\n\r\n\x05\ + \x04\x08\x02\x01\x03\x12\x04\xbb\x04\x1f\x20\n\xb6\x01\n\x04\x04\x08\x02\ + \x02\x12\x04\xc0\x04\x02;\x1a\xa7\x01\x20Reports\x20the\x20commit\x20tim\ + estamps\x20of\x20all\x20statements\x20that\x20have\n\x20succeeded\x20so\ + \x20far,\x20where\x20`commit_timestamps[i]`\x20is\x20the\x20commit\n\x20\ + timestamp\x20for\x20the\x20statement\x20`statements[i]`.\n\n\r\n\x05\x04\ + \x08\x02\x02\x04\x12\x04\xc0\x04\x02\n\n\r\n\x05\x04\x08\x02\x02\x06\x12\ + \x04\xc0\x04\x0b$\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xc0\x04%6\n\r\n\ + \x05\x04\x08\x02\x02\x03\x12\x04\xc0\x049:\n\xd3\x01\n\x04\x04\x08\x02\ + \x03\x12\x04\xc5\x04\x02A\x1a\xc4\x01\x20Output\x20only.\x20When\x20true\ + ,\x20indicates\x20that\x20the\x20operation\x20is\x20throttled\x20e.g\n\ + \x20due\x20to\x20resource\x20constraints.\x20When\x20resources\x20become\ + \x20available\x20the\x20operation\n\x20will\x20resume\x20and\x20this\x20\ + field\x20will\x20be\x20false\x20again.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\ + \x12\x06\xc5\x04\x02\xc0\x04;\n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\xc5\ + \x04\x02\x06\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\xc5\x04\x07\x10\n\r\n\ + \x05\x04\x08\x02\x03\x03\x12\x04\xc5\x04\x13\x14\n\r\n\x05\x04\x08\x02\ + \x03\x08\x12\x04\xc5\x04\x15@\n\x10\n\x08\x04\x08\x02\x03\x08\x9c\x08\0\ + \x12\x04\xc5\x04\x16?\nm\n\x02\x04\t\x12\x06\xca\x04\0\xd2\x04\x01\x1a_\ + \x20The\x20request\x20for\n\x20[DropDatabase][google.spanner.admin.datab\ + ase.v1.DatabaseAdmin.DropDatabase].\n\n\x0b\n\x03\x04\t\x01\x12\x04\xca\ + \x04\x08\x1b\n7\n\x04\x04\t\x02\0\x12\x06\xcc\x04\x02\xd1\x04\x04\x1a'\ + \x20Required.\x20The\x20database\x20to\x20be\x20dropped.\n\n\x0f\n\x05\ + \x04\t\x02\0\x04\x12\x06\xcc\x04\x02\xca\x04\x1d\n\r\n\x05\x04\t\x02\0\ + \x05\x12\x04\xcc\x04\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xcc\x04\t\ + \x11\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xcc\x04\x14\x15\n\x0f\n\x05\x04\t\ + \x02\0\x08\x12\x06\xcc\x04\x16\xd1\x04\x03\n\x10\n\x08\x04\t\x02\0\x08\ + \x9c\x08\0\x12\x04\xcd\x04\x04*\n\x11\n\x07\x04\t\x02\0\x08\x9f\x08\x12\ + \x06\xce\x04\x04\xd0\x04\x05\nq\n\x02\x04\n\x12\x06\xd6\x04\0\xe0\x04\ + \x01\x1ac\x20The\x20request\x20for\n\x20[GetDatabaseDdl][google.spanner.\ + admin.database.v1.DatabaseAdmin.GetDatabaseDdl].\n\n\x0b\n\x03\x04\n\x01\ + \x12\x04\xd6\x04\x08\x1d\n\x9e\x01\n\x04\x04\n\x02\0\x12\x06\xda\x04\x02\ + \xdf\x04\x04\x1a\x8d\x01\x20Required.\x20The\x20database\x20whose\x20sch\ + ema\x20we\x20wish\x20to\x20get.\n\x20Values\x20are\x20of\x20the\x20form\ + \n\x20`projects//instances//databases/`\n\n\ + \x0f\n\x05\x04\n\x02\0\x04\x12\x06\xda\x04\x02\xd6\x04\x1f\n\r\n\x05\x04\ + \n\x02\0\x05\x12\x04\xda\x04\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\ + \xda\x04\t\x11\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xda\x04\x14\x15\n\x0f\n\ + \x05\x04\n\x02\0\x08\x12\x06\xda\x04\x16\xdf\x04\x03\n\x10\n\x08\x04\n\ + \x02\0\x08\x9c\x08\0\x12\x04\xdb\x04\x04*\n\x11\n\x07\x04\n\x02\0\x08\ + \x9f\x08\x12\x06\xdc\x04\x04\xde\x04\x05\nr\n\x02\x04\x0b\x12\x06\xe4\ + \x04\0\xe8\x04\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\ + \n\x03\x04\x0b\x01\x12\x04\xe4\x04\x08\x1e\nq\n\x04\x04\x0b\x02\0\x12\ + \x04\xe7\x04\x02!\x1ac\x20A\x20list\x20of\x20formatted\x20DDL\x20stateme\ + nts\x20defining\x20the\x20schema\x20of\x20the\x20database\n\x20specified\ + \x20in\x20the\x20request.\n\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\xe7\x04\ + \x02\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xe7\x04\x0b\x11\n\r\n\x05\x04\ + \x0b\x02\0\x01\x12\x04\xe7\x04\x12\x1c\n\r\n\x05\x04\x0b\x02\0\x03\x12\ + \x04\xe7\x04\x1f\x20\n\x81\x01\n\x02\x04\x0c\x12\x06\xec\x04\0\xad\x05\ + \x01\x1as\x20The\x20request\x20for\n\x20[ListDatabaseOperations][google.\ + spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations].\n\n\x0b\ + \n\x03\x04\x0c\x01\x12\x04\xec\x04\x08%\n\x87\x01\n\x04\x04\x0c\x02\0\ + \x12\x06\xef\x04\x02\xf4\x04\x04\x1aw\x20Required.\x20The\x20instance\ + \x20of\x20the\x20database\x20operations.\n\x20Values\x20are\x20of\x20the\ + \x20form\x20`projects//instances/`.\n\n\x0f\n\x05\x04\ + \x0c\x02\0\x04\x12\x06\xef\x04\x02\xec\x04'\n\r\n\x05\x04\x0c\x02\0\x05\ + \x12\x04\xef\x04\x02\x08\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xef\x04\t\ + \x0f\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xef\x04\x12\x13\n\x0f\n\x05\x04\ + \x0c\x02\0\x08\x12\x06\xef\x04\x14\xf4\x04\x03\n\x10\n\x08\x04\x0c\x02\0\ + \x08\x9c\x08\0\x12\x04\xf0\x04\x04*\n\x11\n\x07\x04\x0c\x02\0\x08\x9f\ + \x08\x12\x06\xf1\x04\x04\xf3\x04\x05\n\xcf\x10\n\x04\x04\x0c\x02\x01\x12\ + \x04\xa1\x05\x02\x14\x1a\xc0\x10\x20An\x20expression\x20that\x20filters\ + \x20the\x20list\x20of\x20returned\x20operations.\n\n\x20A\x20filter\x20e\ + xpression\x20consists\x20of\x20a\x20field\x20name,\x20a\n\x20comparison\ + \x20operator,\x20and\x20a\x20value\x20for\x20filtering.\n\x20The\x20valu\ + e\x20must\x20be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20boolean.\ + \x20The\x20comparison\x20operator\n\x20must\x20be\x20one\x20of:\x20`<`,\ + \x20`>`,\x20`<=`,\x20`>=`,\x20`!=`,\x20`=`,\x20or\x20`:`.\n\x20Colon\x20\ + `:`\x20is\x20the\x20contains\x20operator.\x20Filter\x20rules\x20are\x20n\ + ot\x20case\x20sensitive.\n\n\x20The\x20following\x20fields\x20in\x20the\ + \x20[Operation][google.longrunning.Operation]\n\x20are\x20eligible\x20fo\ + r\x20filtering:\n\n\x20\x20\x20*\x20`name`\x20-\x20The\x20name\x20of\x20\ + the\x20long-running\x20operation\n\x20\x20\x20*\x20`done`\x20-\x20False\ + \x20if\x20the\x20operation\x20is\x20in\x20progress,\x20else\x20true.\n\ + \x20\x20\x20*\x20`metadata.@type`\x20-\x20the\x20type\x20of\x20metadata.\ + \x20For\x20example,\x20the\x20type\x20string\n\x20\x20\x20\x20\x20\x20fo\ + r\n\x20\x20\x20\x20\x20\x20[RestoreDatabaseMetadata][google.spanner.admi\ + n.database.v1.RestoreDatabaseMetadata]\n\x20\x20\x20\x20\x20\x20is\n\x20\ + \x20\x20\x20\x20\x20`type.googleapis.com/google.spanner.admin.database.v\ + 1.RestoreDatabaseMetadata`.\n\x20\x20\x20*\x20`metadata.`\ + \x20-\x20any\x20field\x20in\x20metadata.value.\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\x20respon\ + se.\n\x20\x20\x20*\x20`response.`\x20-\x20any\x20field\x20in\ + \x20response.value.\n\n\x20You\x20can\x20combine\x20multiple\x20expressi\ + ons\x20by\x20enclosing\x20each\x20expression\x20in\n\x20parentheses.\x20\ + By\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\x20operation\x20is\x20complete.\ + \n\x20\x20\x20*\x20`(metadata.@type=type.googleapis.com/google.spanner.a\ + dmin.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)\x20AND`\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\x20o\ + perations\x20where:\n\x20\x20\x20\x20\x20*\x20The\x20operation's\x20meta\ + data\x20type\x20is\n\x20\x20\x20\x20\x20[RestoreDatabaseMetadata][google\ + .spanner.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\x20c\ + ontains\x20\"restored_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\x20error.\n\n\x0f\n\x05\x04\ + \x0c\x02\x01\x04\x12\x06\xa1\x05\x02\xf4\x04\x04\n\r\n\x05\x04\x0c\x02\ + \x01\x05\x12\x04\xa1\x05\x02\x08\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\ + \xa1\x05\t\x0f\n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xa1\x05\x12\x13\n\ + \x87\x01\n\x04\x04\x0c\x02\x02\x12\x04\xa5\x05\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\x0f\n\x05\x04\x0c\x02\x02\x04\x12\ + \x06\xa5\x05\x02\xa1\x05\x14\n\r\n\x05\x04\x0c\x02\x02\x05\x12\x04\xa5\ + \x05\x02\x07\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\xa5\x05\x08\x11\n\r\n\ + \x05\x04\x0c\x02\x02\x03\x12\x04\xa5\x05\x14\x15\n\xc6\x02\n\x04\x04\x0c\ + \x02\x03\x12\x04\xac\x05\x02\x18\x1a\xb7\x02\x20If\x20non-empty,\x20`pag\ + e_token`\x20should\x20contain\x20a\n\x20[next_page_token][google.spanner\ + .admin.database.v1.ListDatabaseOperationsResponse.next_page_token]\n\x20\ + from\x20a\x20previous\n\x20[ListDatabaseOperationsResponse][google.spann\ + er.admin.database.v1.ListDatabaseOperationsResponse]\n\x20to\x20the\x20s\ + ame\x20`parent`\x20and\x20with\x20the\x20same\x20`filter`.\n\n\x0f\n\x05\ + \x04\x0c\x02\x03\x04\x12\x06\xac\x05\x02\xa5\x05\x16\n\r\n\x05\x04\x0c\ + \x02\x03\x05\x12\x04\xac\x05\x02\x08\n\r\n\x05\x04\x0c\x02\x03\x01\x12\ + \x04\xac\x05\t\x13\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xac\x05\x16\x17\ + \n\x82\x01\n\x02\x04\r\x12\x06\xb1\x05\0\xbd\x05\x01\x1at\x20The\x20resp\ + onse\x20for\n\x20[ListDatabaseOperations][google.spanner.admin.database.\ + v1.DatabaseAdmin.ListDatabaseOperations].\n\n\x0b\n\x03\x04\r\x01\x12\ + \x04\xb1\x05\x08&\n\xaf\x02\n\x04\x04\r\x02\0\x12\x04\xb7\x05\x027\x1a\ + \xa0\x02\x20The\x20list\x20of\x20matching\x20database\x20[long-running\n\ + \x20operations][google.longrunning.Operation].\x20Each\x20operation's\ + \x20name\x20will\x20be\n\x20prefixed\x20by\x20the\x20database's\x20name.\ + \x20The\x20operation's\n\x20[metadata][google.longrunning.Operation.meta\ + data]\x20field\x20type\n\x20`metadata.type_url`\x20describes\x20the\x20t\ + ype\x20of\x20the\x20metadata.\n\n\r\n\x05\x04\r\x02\0\x04\x12\x04\xb7\ + \x05\x02\n\n\r\n\x05\x04\r\x02\0\x06\x12\x04\xb7\x05\x0b'\n\r\n\x05\x04\ + \r\x02\0\x01\x12\x04\xb7\x05(2\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xb7\x05\ + 56\n\xcd\x01\n\x04\x04\r\x02\x01\x12\x04\xbc\x05\x02\x1d\x1a\xbe\x01\x20\ + `next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[Li\ + stDatabaseOperations][google.spanner.admin.database.v1.DatabaseAdmin.Lis\ + tDatabaseOperations]\n\x20call\x20to\x20fetch\x20more\x20of\x20the\x20ma\ + tching\x20metadata.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xbc\x05\x02\ + \xb7\x057\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xbc\x05\x02\x08\n\r\n\x05\ + \x04\r\x02\x01\x01\x12\x04\xbc\x05\t\x18\n\r\n\x05\x04\r\x02\x01\x03\x12\ + \x04\xbc\x05\x1b\x1c\ns\n\x02\x04\x0e\x12\x06\xc1\x05\0\xe5\x05\x01\x1ae\ + \x20The\x20request\x20for\n\x20[RestoreDatabase][google.spanner.admin.da\ + tabase.v1.DatabaseAdmin.RestoreDatabase].\n\n\x0b\n\x03\x04\x0e\x01\x12\ + \x04\xc1\x05\x08\x1e\n\xa6\x02\n\x04\x04\x0e\x02\0\x12\x06\xc7\x05\x02\ + \xcc\x05\x04\x1a\x95\x02\x20Required.\x20The\x20name\x20of\x20the\x20ins\ + tance\x20in\x20which\x20to\x20create\x20the\n\x20restored\x20database.\ + \x20This\x20instance\x20must\x20be\x20in\x20the\x20same\x20project\x20an\ + d\n\x20have\x20the\x20same\x20instance\x20configuration\x20as\x20the\x20\ + instance\x20containing\n\x20the\x20source\x20backup.\x20Values\x20are\ + \x20of\x20the\x20form\n\x20`projects//instances/`.\n\ + \n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xc7\x05\x02\xc1\x05\x20\n\r\n\x05\ + \x04\x0e\x02\0\x05\x12\x04\xc7\x05\x02\x08\n\r\n\x05\x04\x0e\x02\0\x01\ + \x12\x04\xc7\x05\t\x0f\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xc7\x05\x12\ + \x13\n\x0f\n\x05\x04\x0e\x02\0\x08\x12\x06\xc7\x05\x14\xcc\x05\x03\n\x10\ + \n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\xc8\x05\x04*\n\x11\n\x07\x04\ + \x0e\x02\0\x08\x9f\x08\x12\x06\xc9\x05\x04\xcb\x05\x05\n\x87\x02\n\x04\ + \x04\x0e\x02\x01\x12\x04\xd2\x05\x02B\x1a\xf8\x01\x20Required.\x20The\ + \x20id\x20of\x20the\x20database\x20to\x20create\x20and\x20restore\x20to.\ + \x20This\n\x20database\x20must\x20not\x20already\x20exist.\x20The\x20`da\ + tabase_id`\x20appended\x20to\n\x20`parent`\x20forms\x20the\x20full\x20da\ + tabase\x20name\x20of\x20the\x20form\n\x20`projects//instances/<\ + instance>/databases/`.\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\ + \x12\x06\xd2\x05\x02\xcc\x05\x04\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\ + \xd2\x05\x02\x08\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xd2\x05\t\x14\n\r\ + \n\x05\x04\x0e\x02\x01\x03\x12\x04\xd2\x05\x17\x18\n\r\n\x05\x04\x0e\x02\ + \x01\x08\x12\x04\xd2\x05\x19A\n\x10\n\x08\x04\x0e\x02\x01\x08\x9c\x08\0\ + \x12\x04\xd2\x05\x1a@\n=\n\x04\x04\x0e\x08\0\x12\x06\xd5\x05\x02\xdb\x05\ + \x03\x1a-\x20Required.\x20The\x20source\x20from\x20which\x20to\x20restor\ + e.\n\n\r\n\x05\x04\x0e\x08\0\x01\x12\x04\xd5\x05\x08\x0e\n\x91\x01\n\x04\ + \x04\x0e\x02\x02\x12\x06\xd8\x05\x04\xda\x05\x07\x1a\x80\x01\x20Name\x20\ + of\x20the\x20backup\x20from\x20which\x20to\x20restore.\x20\x20Values\x20\ + are\x20of\x20the\x20form\n\x20`projects//instances//b\ + ackups/`.\n\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xd8\x05\x04\n\ + \n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xd8\x05\x0b\x11\n\r\n\x05\x04\x0e\ + \x02\x02\x03\x12\x04\xd8\x05\x14\x15\n\x0f\n\x05\x04\x0e\x02\x02\x08\x12\ + \x06\xd8\x05\x16\xda\x05\x06\n\x11\n\x07\x04\x0e\x02\x02\x08\x9f\x08\x12\ + \x06\xd8\x05\x17\xda\x05\x05\n\xc4\x03\n\x04\x04\x0e\x02\x03\x12\x06\xe3\ + \x05\x02\xe4\x05/\x1a\xb3\x03\x20Optional.\x20An\x20encryption\x20config\ + uration\x20describing\x20the\x20encryption\x20type\x20and\n\x20key\x20re\ + sources\x20in\x20Cloud\x20KMS\x20used\x20to\x20encrypt/decrypt\x20the\ + \x20database\x20to\x20restore\n\x20to.\x20If\x20this\x20field\x20is\x20n\ + ot\x20specified,\x20the\x20restored\x20database\x20will\x20use\x20the\ + \x20same\n\x20encryption\x20configuration\x20as\x20the\x20backup\x20by\ + \x20default,\x20namely\n\x20[encryption_type][google.spanner.admin.datab\ + ase.v1.RestoreDatabaseEncryptionConfig.encryption_type]\n\x20=\x20`USE_C\ + ONFIG_DEFAULT_OR_DATABASE_ENCRYPTION`.\n\n\x0f\n\x05\x04\x0e\x02\x03\x04\ + \x12\x06\xe3\x05\x02\xdb\x05\x03\n\r\n\x05\x04\x0e\x02\x03\x06\x12\x04\ + \xe3\x05\x02!\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\xe3\x05\"3\n\r\n\x05\ + \x04\x0e\x02\x03\x03\x12\x04\xe3\x0567\n\r\n\x05\x04\x0e\x02\x03\x08\x12\ + \x04\xe4\x05\x06.\n\x10\n\x08\x04\x0e\x02\x03\x08\x9c\x08\0\x12\x04\xe4\ + \x05\x07-\nC\n\x02\x04\x0f\x12\x06\xe8\x05\0\x89\x06\x01\x1a5\x20Encrypt\ + ion\x20configuration\x20for\x20the\x20restored\x20database.\n\n\x0b\n\ + \x03\x04\x0f\x01\x12\x04\xe8\x05\x08'\nC\n\x04\x04\x0f\x04\0\x12\x06\xea\ + \x05\x02\xf9\x05\x03\x1a3\x20Encryption\x20types\x20for\x20the\x20databa\ + se\x20to\x20be\x20restored.\n\n\r\n\x05\x04\x0f\x04\0\x01\x12\x04\xea\ + \x05\x07\x15\n*\n\x06\x04\x0f\x04\0\x02\0\x12\x04\xec\x05\x04$\x1a\x1a\ + \x20Unspecified.\x20Do\x20not\x20use.\n\n\x0f\n\x07\x04\x0f\x04\0\x02\0\ + \x01\x12\x04\xec\x05\x04\x1f\n\x0f\n\x07\x04\x0f\x04\0\x02\0\x02\x12\x04\ + \xec\x05\"#\n\x9c\x01\n\x06\x04\x0f\x04\0\x02\x01\x12\x04\xf1\x05\x040\ + \x1a\x8b\x01\x20This\x20is\x20the\x20default\x20option\x20when\n\x20[enc\ + ryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncrypti\ + onConfig]\n\x20is\x20not\x20specified.\n\n\x0f\n\x07\x04\x0f\x04\0\x02\ + \x01\x01\x12\x04\xf1\x05\x04+\n\x0f\n\x07\x04\x0f\x04\0\x02\x01\x02\x12\ + \x04\xf1\x05./\n0\n\x06\x04\x0f\x04\0\x02\x02\x12\x04\xf4\x05\x04\"\x1a\ + \x20\x20Use\x20Google\x20default\x20encryption.\n\n\x0f\n\x07\x04\x0f\ + \x04\0\x02\x02\x01\x12\x04\xf4\x05\x04\x1d\n\x0f\n\x07\x04\x0f\x04\0\x02\ + \x02\x02\x12\x04\xf4\x05\x20!\ny\n\x06\x04\x0f\x04\0\x02\x03\x12\x04\xf8\ + \x05\x04$\x1ai\x20Use\x20customer\x20managed\x20encryption.\x20If\x20spe\ + cified,\x20`kms_key_name`\x20must\n\x20must\x20contain\x20a\x20valid\x20\ + Cloud\x20KMS\x20key.\n\n\x0f\n\x07\x04\x0f\x04\0\x02\x03\x01\x12\x04\xf8\ + \x05\x04\x1f\n\x0f\n\x07\x04\x0f\x04\0\x02\x03\x02\x12\x04\xf8\x05\"#\nG\ + \n\x04\x04\x0f\x02\0\x12\x04\xfc\x05\x02N\x1a9\x20Required.\x20The\x20en\ + cryption\x20type\x20of\x20the\x20restored\x20database.\n\n\x0f\n\x05\x04\ + \x0f\x02\0\x04\x12\x06\xfc\x05\x02\xf9\x05\x03\n\r\n\x05\x04\x0f\x02\0\ + \x06\x12\x04\xfc\x05\x02\x10\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xfc\x05\ + \x11\x20\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xfc\x05#$\n\r\n\x05\x04\x0f\ + \x02\0\x08\x12\x04\xfc\x05%M\n\x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\ + \x04\xfc\x05&L\n\x87\x03\n\x04\x04\x0f\x02\x01\x12\x06\x83\x06\x02\x88\ + \x06\x04\x1a\xf6\x02\x20Optional.\x20The\x20Cloud\x20KMS\x20key\x20that\ + \x20will\x20be\x20used\x20to\x20encrypt/decrypt\x20the\n\x20restored\x20\ + database.\x20This\x20field\x20should\x20be\x20set\x20only\x20when\n\x20[\ + encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncrypt\ + ionConfig.encryption_type]\n\x20is\x20`CUSTOMER_MANAGED_ENCRYPTION`.\x20\ + Values\x20are\x20of\x20the\x20form\n\x20`projects//locations//keyRings//cryptoKeys/`.\n\n\x0f\n\x05\ + \x04\x0f\x02\x01\x04\x12\x06\x83\x06\x02\xfc\x05N\n\r\n\x05\x04\x0f\x02\ + \x01\x05\x12\x04\x83\x06\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\ + \x83\x06\t\x15\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x83\x06\x18\x19\n\ + \x0f\n\x05\x04\x0f\x02\x01\x08\x12\x06\x83\x06\x1a\x88\x06\x03\n\x10\n\ + \x08\x04\x0f\x02\x01\x08\x9c\x08\0\x12\x04\x84\x06\x04*\n\x11\n\x07\x04\ + \x0f\x02\x01\x08\x9f\x08\x12\x06\x85\x06\x04\x87\x06\x05\n\x9d\x01\n\x02\ + \x04\x10\x12\x06\x8d\x06\0\xbd\x06\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\x10\x01\x12\x04\x8d\x06\x08\x1f\nE\n\x04\x04\x10\ + \x02\0\x12\x06\x8f\x06\x02\x91\x06\x05\x1a5\x20Name\x20of\x20the\x20data\ + base\x20being\x20created\x20and\x20restored\x20to.\n\n\x0f\n\x05\x04\x10\ + \x02\0\x04\x12\x06\x8f\x06\x02\x8d\x06!\n\r\n\x05\x04\x10\x02\0\x05\x12\ + \x04\x8f\x06\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\x8f\x06\t\r\n\r\ + \n\x05\x04\x10\x02\0\x03\x12\x04\x8f\x06\x10\x11\n\x0f\n\x05\x04\x10\x02\ + \0\x08\x12\x06\x8f\x06\x12\x91\x06\x04\n\x11\n\x07\x04\x10\x02\0\x08\x9f\ + \x08\x12\x06\x8f\x06\x13\x91\x06\x03\n/\n\x04\x04\x10\x02\x01\x12\x04\ + \x94\x06\x02$\x1a!\x20The\x20type\x20of\x20the\x20restore\x20source.\n\n\ + \x0f\n\x05\x04\x10\x02\x01\x04\x12\x06\x94\x06\x02\x91\x06\x05\n\r\n\x05\ + \x04\x10\x02\x01\x06\x12\x04\x94\x06\x02\x13\n\r\n\x05\x04\x10\x02\x01\ + \x01\x12\x04\x94\x06\x14\x1f\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\x94\ + \x06\"#\n\xbe\x01\n\x04\x04\x10\x08\0\x12\x06\x99\x06\x02\x9c\x06\x03\ + \x1a\xad\x01\x20Information\x20about\x20the\x20source\x20used\x20to\x20r\ + estore\x20the\x20database,\x20as\x20specified\x20by\n\x20`source`\x20in\ + \n\x20[RestoreDatabaseRequest][google.spanner.admin.database.v1.RestoreD\ + atabaseRequest].\n\n\r\n\x05\x04\x10\x08\0\x01\x12\x04\x99\x06\x08\x13\n\ + J\n\x04\x04\x10\x02\x02\x12\x04\x9b\x06\x04\x1f\x1a<\x20Information\x20a\ + bout\x20the\x20backup\x20used\x20to\x20restore\x20the\x20database.\n\n\r\ + \n\x05\x04\x10\x02\x02\x06\x12\x04\x9b\x06\x04\x0e\n\r\n\x05\x04\x10\x02\ + \x02\x01\x12\x04\x9b\x06\x0f\x1a\n\r\n\x05\x04\x10\x02\x02\x03\x12\x04\ + \x9b\x06\x1d\x1e\n\x82\x01\n\x04\x04\x10\x02\x03\x12\x04\xa1\x06\x02!\ + \x1at\x20The\x20progress\x20of\x20the\n\x20[RestoreDatabase][google.span\ + ner.admin.database.v1.DatabaseAdmin.RestoreDatabase]\n\x20operation.\n\n\ + \x0f\n\x05\x04\x10\x02\x03\x04\x12\x06\xa1\x06\x02\x9c\x06\x03\n\r\n\x05\ + \x04\x10\x02\x03\x06\x12\x04\xa1\x06\x02\x13\n\r\n\x05\x04\x10\x02\x03\ + \x01\x12\x04\xa1\x06\x14\x1c\n\r\n\x05\x04\x10\x02\x03\x03\x12\x04\xa1\ + \x06\x1f\x20\n\x87\x06\n\x04\x04\x10\x02\x04\x12\x04\xaf\x06\x02,\x1a\ + \xf8\x05\x20The\x20time\x20at\x20which\x20cancellation\x20of\x20this\x20\ + operation\x20was\x20received.\n\x20[Operations.CancelOperation][google.l\ + ongrunning.Operations.CancelOperation]\n\x20starts\x20asynchronous\x20ca\ + ncellation\x20on\x20a\x20long-running\x20operation.\x20The\x20server\n\ + \x20makes\x20a\x20best\x20effort\x20to\x20cancel\x20the\x20operation,\ + \x20but\x20success\x20is\x20not\x20guaranteed.\n\x20Clients\x20can\x20us\ + e\n\x20[Operations.GetOperation][google.longrunning.Operations.GetOperat\ + ion]\x20or\n\x20other\x20methods\x20to\x20check\x20whether\x20the\x20can\ + cellation\x20succeeded\x20or\x20whether\x20the\n\x20operation\x20complet\ + ed\x20despite\x20cancellation.\x20On\x20successful\x20cancellation,\n\ + \x20the\x20operation\x20is\x20not\x20deleted;\x20instead,\x20it\x20becom\ + es\x20an\x20operation\x20with\n\x20an\x20[Operation.error][google.longru\ + nning.Operation.error]\x20value\x20with\x20a\n\x20[google.rpc.Status.cod\ + e][google.rpc.Status.code]\x20of\x201,\x20corresponding\x20to\n\x20`Code\ + .CANCELLED`.\n\n\x0f\n\x05\x04\x10\x02\x04\x04\x12\x06\xaf\x06\x02\xa1\ + \x06!\n\r\n\x05\x04\x10\x02\x04\x06\x12\x04\xaf\x06\x02\x1b\n\r\n\x05\ + \x04\x10\x02\x04\x01\x12\x04\xaf\x06\x1c'\n\r\n\x05\x04\x10\x02\x04\x03\ + \x12\x04\xaf\x06*+\n\xa0\x06\n\x04\x04\x10\x02\x05\x12\x04\xbc\x06\x02.\ + \x1a\x91\x06\x20If\x20exists,\x20the\x20name\x20of\x20the\x20long-runnin\ + g\x20operation\x20that\x20will\x20be\x20used\x20to\n\x20track\x20the\x20\ + post-restore\x20optimization\x20process\x20to\x20optimize\x20the\x20perf\ + ormance\x20of\n\x20the\x20restored\x20database,\x20and\x20remove\x20the\ + \x20dependency\x20on\x20the\x20restore\x20source.\n\x20The\x20name\x20is\ + \x20of\x20the\x20form\n\x20`projects//instances//data\ + bases//operations/`\n\x20where\x20the\x20\ + \x20is\x20the\x20name\x20of\x20database\x20being\x20created\x20and\x20re\ + stored\x20to.\n\x20The\x20metadata\x20type\x20of\x20the\x20\x20long-runn\ + ing\x20operation\x20is\n\x20[OptimizeRestoredDatabaseMetadata][google.sp\ + anner.admin.database.v1.OptimizeRestoredDatabaseMetadata].\n\x20This\x20\ + long-running\x20operation\x20will\x20be\x20automatically\x20created\x20b\ + y\x20the\x20system\n\x20after\x20the\x20RestoreDatabase\x20long-running\ + \x20operation\x20completes\x20successfully.\n\x20This\x20operation\x20wi\ + ll\x20not\x20be\x20created\x20if\x20the\x20restore\x20was\x20not\x20succ\ + essful.\n\n\x0f\n\x05\x04\x10\x02\x05\x04\x12\x06\xbc\x06\x02\xaf\x06,\n\ + \r\n\x05\x04\x10\x02\x05\x05\x12\x04\xbc\x06\x02\x08\n\r\n\x05\x04\x10\ + \x02\x05\x01\x12\x04\xbc\x06\t)\n\r\n\x05\x04\x10\x02\x05\x03\x12\x04\ + \xbc\x06,-\n\xa7\x02\n\x02\x04\x11\x12\x06\xc3\x06\0\xcb\x06\x01\x1a\x98\ + \x02\x20Metadata\x20type\x20for\x20the\x20long-running\x20operation\x20u\ + sed\x20to\x20track\x20the\x20progress\n\x20of\x20optimizations\x20perfor\ + med\x20on\x20a\x20newly\x20restored\x20database.\x20This\x20long-running\ + \n\x20operation\x20is\x20automatically\x20created\x20by\x20the\x20system\ + \x20after\x20the\x20successful\n\x20completion\x20of\x20a\x20database\ + \x20restore,\x20and\x20cannot\x20be\x20cancelled.\n\n\x0b\n\x03\x04\x11\ + \x01\x12\x04\xc3\x06\x08(\n@\n\x04\x04\x11\x02\0\x12\x06\xc5\x06\x02\xc7\ + \x06\x05\x1a0\x20Name\x20of\x20the\x20restored\x20database\x20being\x20o\ + ptimized.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\xc5\x06\x02\xc3\x06*\n\ + \r\n\x05\x04\x11\x02\0\x05\x12\x04\xc5\x06\x02\x08\n\r\n\x05\x04\x11\x02\ + \0\x01\x12\x04\xc5\x06\t\r\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xc5\x06\ + \x10\x11\n\x0f\n\x05\x04\x11\x02\0\x08\x12\x06\xc5\x06\x12\xc7\x06\x04\n\ + \x11\n\x07\x04\x11\x02\0\x08\x9f\x08\x12\x06\xc5\x06\x13\xc7\x06\x03\n?\ + \n\x04\x04\x11\x02\x01\x12\x04\xca\x06\x02!\x1a1\x20The\x20progress\x20o\ + f\x20the\x20post-restore\x20optimizations.\n\n\x0f\n\x05\x04\x11\x02\x01\ + \x04\x12\x06\xca\x06\x02\xc7\x06\x05\n\r\n\x05\x04\x11\x02\x01\x06\x12\ + \x04\xca\x06\x02\x13\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xca\x06\x14\ + \x1c\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xca\x06\x1f\x20\n9\n\x02\x05\ + \0\x12\x06\xce\x06\0\xd4\x06\x01\x1a+\x20Indicates\x20the\x20type\x20of\ + \x20the\x20restore\x20source.\n\n\x0b\n\x03\x05\0\x01\x12\x04\xce\x06\ + \x05\x16\n&\n\x04\x05\0\x02\0\x12\x04\xd0\x06\x02\x17\x1a\x18\x20No\x20r\ + estore\x20associated.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\xd0\x06\x02\ + \x12\n\r\n\x05\x05\0\x02\0\x02\x12\x04\xd0\x06\x15\x16\n?\n\x04\x05\0\ + \x02\x01\x12\x04\xd3\x06\x02\r\x1a1\x20A\x20backup\x20was\x20used\x20as\ + \x20the\x20source\x20of\x20the\x20restore.\n\n\r\n\x05\x05\0\x02\x01\x01\ + \x12\x04\xd3\x06\x02\x08\n\r\n\x05\x05\0\x02\x01\x02\x12\x04\xd3\x06\x0b\ + \x0cb\x06proto3\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs index ead4135114..4a044903a7 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs @@ -79,6 +79,62 @@ 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_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 }, +}; + #[derive(Clone)] pub struct DatabaseAdminClient { client: ::grpcio::Client, @@ -234,39 +290,157 @@ 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 spawn(&self, f: F) where F: ::futures::Future + Send + 'static { - self.client.spawn(f) + + 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 trait DatabaseAdmin { - fn list_databases(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::ListDatabasesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + 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) } - fn create_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::CreateDatabaseRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + + pub fn create_backup_async(&self, req: &super::backup::CreateBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_backup_async_opt(req, ::grpcio::CallOption::default()) } - fn get_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::GetDatabaseRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + + 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) } - fn update_database_ddl(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::UpdateDatabaseDdlRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + + pub fn get_backup(&self, req: &super::backup::GetBackupRequest) -> ::grpcio::Result { + self.get_backup_opt(req, ::grpcio::CallOption::default()) } - fn drop_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::DropDatabaseRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + + 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) } - fn get_database_ddl(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::GetDatabaseDdlRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + + pub fn get_backup_async(&self, req: &super::backup::GetBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_backup_async_opt(req, ::grpcio::CallOption::default()) } - fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + + 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) } - fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + + pub fn update_backup(&self, req: &super::backup::UpdateBackupRequest) -> ::grpcio::Result { + self.update_backup_opt(req, ::grpcio::CallOption::default()) } - fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) + + 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 spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait DatabaseAdmin { + fn list_databases(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::ListDatabasesRequest, sink: ::grpcio::UnarySink); + fn create_database(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::CreateDatabaseRequest, sink: ::grpcio::UnarySink); + fn get_database(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::GetDatabaseRequest, sink: ::grpcio::UnarySink); + fn update_database_ddl(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::UpdateDatabaseDdlRequest, sink: ::grpcio::UnarySink); + fn drop_database(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::DropDatabaseRequest, sink: ::grpcio::UnarySink); + fn get_database_ddl(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::GetDatabaseDdlRequest, sink: ::grpcio::UnarySink); + fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); + fn create_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::CreateBackupRequest, sink: ::grpcio::UnarySink); + fn get_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::GetBackupRequest, sink: ::grpcio::UnarySink); + fn update_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::UpdateBackupRequest, sink: ::grpcio::UnarySink); + fn delete_backup(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::DeleteBackupRequest, sink: ::grpcio::UnarySink); + fn list_backups(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::ListBackupsRequest, sink: ::grpcio::UnarySink); + fn restore_database(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::RestoreDatabaseRequest, sink: ::grpcio::UnarySink); + fn list_database_operations(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_database_admin::ListDatabaseOperationsRequest, sink: ::grpcio::UnarySink); + fn list_backup_operations(&mut self, ctx: ::grpcio::RpcContext, req: super::backup::ListBackupOperationsRequest, sink: ::grpcio::UnarySink); } pub fn create_database_admin(s: S) -> ::grpcio::Service { @@ -303,9 +477,41 @@ 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; + let mut instance = s.clone(); 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_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; + builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_LIST_BACKUP_OPERATIONS, move |ctx, req, resp| { + instance.list_backup_operations(ctx, req, resp) + }); builder.build() } diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs index 624d1f079b..f3c70ab625 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct ReplicaInfo { @@ -3674,605 +3674,598 @@ static file_descriptor_proto_data: &'static [u8] = b"\ eConfigsResponse\x12[\n\x10instance_configs\x18\x01\x20\x03(\x0b20.googl\ 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-\xe0A\x02\ - \xfaA'\n%spanner.googleapis.com/InstanceConfig\"\x8c\x01\n\x12GetInstanc\ - eRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xe0A\x02\xfaA!\n\ - \x1fspanner.googleapis.com/Instance\x129\n\nfield_mask\x18\x02\x20\x01(\ - \x0b2\x1a.google.protobuf.FieldMaskR\tfieldMask\"\xd7\x01\n\x15CreateIns\ - tanceRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xe0A\x02\ - \xfaA-\n+cloudresourcemanager.googleapis.com/Project\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\x08instan\ - ceB\x03\xe0A\x02\"\xb7\x01\n\x14ListInstancesRequest\x12K\n\x06parent\ - \x18\x01\x20\x01(\tR\x06parentB3\xe0A\x02\xfaA-\n+cloudresourcemanager.g\ - oogleapis.com/Project\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08page\ - Size\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06f\ - ilter\x18\x04\x20\x01(\tR\x06filter\"\x89\x01\n\x15ListInstancesResponse\ - \x12H\n\tinstances\x18\x01\x20\x03(\x0b2*.google.spanner.admin.instance.\ - v1.InstanceR\tinstances\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rn\ - extPageToken\"\xa4\x01\n\x15UpdateInstanceRequest\x12K\n\x08instance\x18\ - \x01\x20\x01(\x0b2*.google.spanner.admin.instance.v1.InstanceR\x08instan\ - ceB\x03\xe0A\x02\x12>\n\nfield_mask\x18\x02\x20\x01(\x0b2\x1a.google.pro\ - tobuf.FieldMaskR\tfieldMaskB\x03\xe0A\x02\"T\n\x15DeleteInstanceRequest\ - \x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xfaA!\n\x1fspanner.googlea\ - pis.com/Instance\xe0A\x02\"\x8f\x02\n\x16CreateInstanceMetadata\x12F\n\ - \x08instance\x18\x01\x20\x01(\x0b2*.google.spanner.admin.instance.v1.Ins\ - tanceR\x08instance\x129\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.p\ - rotobuf.TimestampR\tstartTime\x12;\n\x0bcancel_time\x18\x03\x20\x01(\x0b\ - 2\x1a.google.protobuf.TimestampR\ncancelTime\x125\n\x08end_time\x18\x04\ - \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\"\x8f\x02\n\x16\ - UpdateInstanceMetadata\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\x0bc\ - ancel_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncancelT\ - ime\x125\n\x08end_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.Timesta\ - mpR\x07endTime2\xbf\x10\n\rInstanceAdmin\x12\xcc\x01\n\x13ListInstanceCo\ - nfigs\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.v1.GetInstanceConfigRequest\x1a0.google.spanner.admin.instance.\ - v1.InstanceConfig\"6\xdaA\x04name\x82\xd3\xe4\x93\x02)\x12'/v1/{name=pro\ - jects/*/instanceConfigs/*}\x12\xb4\x01\n\rListInstances\x126.google.span\ - ner.admin.instance.v1.ListInstancesRequest\x1a7.google.spanner.admin.ins\ - tance.v1.ListInstancesResponse\"2\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=p\ - rojects/*}/instances\xdaA\x06parent\x12\xa1\x01\n\x0bGetInstance\x124.go\ - ogle.spanner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.ad\ - min.instance.v1.Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/\ - */instances/*}\xdaA\x04name\x12\x9c\x02\n\x0eCreateInstance\x127.google.\ - spanner.admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunni\ - ng.Operation\"\xb1\x01\x82\xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/in\ - stances:\x01*\xdaA\x1bparent,instance_id,instance\xcaAd\n)google.spanner\ - .admin.instance.v1.Instance\x127google.spanner.admin.instance.v1.CreateI\ - nstanceMetadata\x12\x9d\x02\n\x0eUpdateInstance\x127.google.spanner.admi\ - n.instance.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\ - \"\xb2\x01\xcaAd\n)google.spanner.admin.instance.v1.Instance\x127google.\ - spanner.admin.instance.v1.UpdateInstanceMetadata\x82\xd3\xe4\x93\x02/2*/\ - v1/{instance.name=projects/*/instances/*}:\x01*\xdaA\x13instance,field_m\ - ask\x12\x93\x01\n\x0eDeleteInstance\x127.google.spanner.admin.instance.v\ - 1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\xdaA\x04name\ - \x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/instances/*}\x12\x9a\x01\n\ - \x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.\ - iam.v1.Policy\"O\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/instanc\ - es/*}:setIamPolicy:\x01*\xdaA\x0fresource,policy\x12\x93\x01\n\x0cGetIam\ - Policy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Pol\ - icy\"H\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/instances/*}:getI\ - amPolicy:\x01*\xdaA\x08resource\x12\xc5\x01\n\x12TestIamPermissions\x12(\ - .google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermi\ - ssionsResponse\"Z\x82\xd3\xe4\x93\x02=\"8/v1/{resource=projects/*/instan\ - ces/*}:testIamPermissions:\x01*\xdaA\x14resource,permissions\x1ax\xcaA\ - \x16spanner.googleapis.com\xd2A\\https://www.googleapis.com/auth/cloud-p\ - latform,https://www.googleapis.com/auth/spanner.adminB\xdf\x01\n$com.goo\ - gle.spanner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZHgoogle\ - .golang.org/genproto/googleapis/spanner/admin/instance/v1;instance\xaa\ - \x02&Google.Cloud.Spanner.Admin.Instance.V1\xca\x02&Google\\Cloud\\Spann\ - er\\Admin\\Instance\\V1J\xd4\xb8\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\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)\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\x20Cloud\x20Spanner\x20Instance\x20Admin\x20API\x20can\x20be\x20\ - used\x20to\x20create,\x20delete,\n\x20modify\x20and\x20list\x20instances\ - .\x20Instances\x20are\x20dedicated\x20Cloud\x20Spanner\x20serving\n\x20a\ - nd\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\x04A\x02F\x03\x1aB\x20Lists\x20the\x20supported\x20instance\ - \x20configurations\x20for\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\nK\n\x04\x06\0\x02\x01\x12\x04I\x02N\x03\x1a=\x20Ge\ - ts\x20information\x20about\x20a\x20particular\x20instance\x20configurati\ - on.\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\x04J\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\x02V\x03\x1a+\x20Lists\x20all\x20instances\x20in\x20\ - the\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\x20info\ - rmation\x20about\x20a\x20particular\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\x20ret\ - urned\x20[long-running\x20operation][google.longrunning.Operation]\n\x20\ - can\x20be\x20used\x20to\x20track\x20the\x20progress\x20of\x20preparing\ - \x20the\x20new\n\x20instance.\x20The\x20instance\x20name\x20is\x20assign\ - ed\x20by\x20the\x20caller.\x20If\x20the\n\x20named\x20instance\x20alread\ - y\x20exists,\x20`CreateInstance`\x20returns\n\x20`ALREADY_EXISTS`.\n\n\ - \x20Immediately\x20upon\x20completion\x20of\x20this\x20request:\n\n\x20\ - \x20\x20*\x20The\x20instance\x20is\x20readable\x20via\x20the\x20API,\x20\ - with\x20all\x20requested\x20attributes\n\x20\x20\x20\x20\x20but\x20no\ - \x20allocated\x20resources.\x20Its\x20state\x20is\x20`CREATING`.\n\n\x20\ - Until\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\x20instance\x20can\x20be\x20deleted.\n\x20\x20\x20*\ - \x20All\x20other\x20attempts\x20to\x20modify\x20the\x20instance\x20are\ - \x20rejected.\n\n\x20Upon\x20completion\x20of\x20the\x20returned\x20oper\ - ation:\n\n\x20\x20\x20*\x20Billing\x20for\x20all\x20successfully-allocat\ - ed\x20resources\x20begins\x20(some\x20types\n\x20\x20\x20\x20\x20may\x20\ - have\x20lower\x20than\x20the\x20requested\x20levels).\n\x20\x20\x20*\x20\ - Databases\x20can\x20be\x20created\x20in\x20the\x20instance.\n\x20\x20\ - \x20*\x20The\x20instance's\x20allocated\x20resource\x20levels\x20are\x20\ - readable\x20via\x20the\x20API.\n\x20\x20\x20*\x20The\x20instance's\x20st\ - ate\x20becomes\x20`READY`.\n\n\x20The\x20returned\x20[long-running\x20op\ - eration][google.longrunning.Operation]\x20will\n\x20have\x20a\x20name\ - \x20of\x20the\x20format\x20`/operations/`\ - \x20and\n\x20can\x20be\x20used\x20to\x20track\x20creation\x20of\x20the\ - \x20instance.\x20\x20The\n\x20[metadata][google.longrunning.Operation.me\ - tadata]\x20field\x20type\x20is\n\x20[CreateInstanceMetadata][google.span\ - ner.admin.instance.v1.CreateInstanceMetadata].\n\x20The\x20[response][go\ - ogle.longrunning.Operation.response]\x20field\x20type\x20is\n\x20[Instan\ - ce][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,\x20an\ - d\x20begins\x20allocating\x20or\x20releasing\x20resources\n\x20as\x20req\ - uested.\x20The\x20returned\x20[long-running\n\x20operation][google.longr\ - unning.Operation]\x20can\x20be\x20used\x20to\x20track\x20the\n\x20progre\ - ss\x20of\x20updating\x20the\x20instance.\x20If\x20the\x20named\x20instan\ - ce\x20does\x20not\n\x20exist,\x20returns\x20`NOT_FOUND`.\n\n\x20Immediat\ - ely\x20upon\x20completion\x20of\x20this\x20request:\n\n\x20\x20\x20*\x20\ - For\x20resource\x20types\x20for\x20which\x20a\x20decrease\x20in\x20the\ - \x20instance's\x20allocation\n\x20\x20\x20\x20\x20has\x20been\x20request\ - ed,\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\x20metada\ - ta's\n\x20\x20\x20\x20\x20[cancel_time][google.spanner.admin.instance.v1\ - .UpdateInstanceMetadata.cancel_time],\x20and\x20begins\n\x20\x20\x20\x20\ - \x20restoring\x20resources\x20to\x20their\x20pre-request\x20values.\x20T\ - he\x20operation\n\x20\x20\x20\x20\x20is\x20guaranteed\x20to\x20succeed\ - \x20at\x20undoing\x20all\x20resource\x20changes,\n\x20\x20\x20\x20\x20af\ - ter\x20which\x20point\x20it\x20terminates\x20with\x20a\x20`CANCELLED`\ - \x20status.\n\x20\x20\x20*\x20All\x20other\x20attempts\x20to\x20modify\ - \x20the\x20instance\x20are\x20rejected.\n\x20\x20\x20*\x20Reading\x20the\ - \x20instance\x20via\x20the\x20API\x20continues\x20to\x20give\x20the\x20p\ - re-request\n\x20\x20\x20\x20\x20resource\x20levels.\n\n\x20Upon\x20compl\ - etion\x20of\x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20Billing\ - \x20begins\x20for\x20all\x20successfully-allocated\x20resources\x20(some\ - \x20types\n\x20\x20\x20\x20\x20may\x20have\x20lower\x20than\x20the\x20re\ - quested\x20levels).\n\x20\x20\x20*\x20All\x20newly-reserved\x20resources\ - \x20are\x20available\x20for\x20serving\x20the\x20instance's\n\x20\x20\ - \x20\x20\x20tables.\n\x20\x20\x20*\x20The\x20instance's\x20new\x20resour\ - ce\x20levels\x20are\x20readable\x20via\x20the\x20API.\n\n\x20The\x20retu\ + ceConfigRequest\x12A\n\x04name\x18\x01\x20\x01(\tR\x04nameB-\xfaA'\n%spa\ + nner.googleapis.com/InstanceConfig\xe0A\x02\"\x8c\x01\n\x12GetInstanceRe\ + quest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xe0A\x02\xfaA!\n\x1fs\ + panner.googleapis.com/Instance\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\xe0A\x02\xfaA-\n+cloudresourcemanager.googl\ + eapis.com/Project\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\xdaA\ + \x06parent\x82\xd3\xe4\x93\x02)\x12'/v1/{parent=projects/*}/instanceConf\ + igs\x12\xb9\x01\n\x11GetInstanceConfig\x12:.google.spanner.admin.instanc\ + e.v1.GetInstanceConfigRequest\x1a0.google.spanner.admin.instance.v1.Inst\ + anceConfig\"6\x82\xd3\xe4\x93\x02)\x12'/v1/{name=projects/*/instanceConf\ + igs/*}\xdaA\x04name\x12\xb4\x01\n\rListInstances\x126.google.spanner.adm\ + in.instance.v1.ListInstancesRequest\x1a7.google.spanner.admin.instance.v\ + 1.ListInstancesResponse\"2\xdaA\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{\ + parent=projects/*}/instances\x12\xa1\x01\n\x0bGetInstance\x124.google.sp\ + anner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.admin.ins\ + tance.v1.Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/insta\ + nces/*}\xdaA\x04name\x12\x9c\x02\n\x0eCreateInstance\x127.google.spanner\ + .admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Oper\ + ation\"\xb1\x01\x82\xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/instances\ + :\x01*\xdaA\x1bparent,instance_id,instance\xcaAd\n)google.spanner.admin.\ + instance.v1.Instance\x127google.spanner.admin.instance.v1.CreateInstance\ + Metadata\x12\x9d\x02\n\x0eUpdateInstance\x127.google.spanner.admin.insta\ + nce.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb2\ + \x01\x82\xd3\xe4\x93\x02/2*/v1/{instance.name=projects/*/instances/*}:\ + \x01*\xdaA\x13instance,field_mask\xcaAd\n)google.spanner.admin.instance.\ + v1.Instance\x127google.spanner.admin.instance.v1.UpdateInstanceMetadata\ + \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\xdaA\x08resource\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/insta\ + nces/*}:getIamPolicy:\x01*\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\xcaA\x16spa\ + nner.googleapis.com\xd2A\\https://www.googleapis.com/auth/cloud-platform\ + ,https://www.googleapis.com/auth/spanner.adminB\x8d\x02\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\\V1\xea\x02+Google::Cloud::Spanner::Admin::Instance::V1J\xf7\ + \xb5\x01\n\x07\x12\x05\x0e\0\xdb\x04\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\"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\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\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\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\xfb\x01\x01\x1a\xcf\x08\x20Cloud\x20Span\ + ner\x20Instance\x20Admin\x20API\n\n\x20The\x20Cloud\x20Spanner\x20Instan\ + ce\x20Admin\x20API\x20can\x20be\x20used\x20to\x20create,\x20delete,\n\ + \x20modify\x20and\x20list\x20instances.\x20Instances\x20are\x20dedicated\ + \x20Cloud\x20Spanner\x20serving\n\x20and\x20storage\x20resources\x20to\ + \x20be\x20used\x20by\x20Cloud\x20Spanner\x20databases.\n\n\x20Each\x20in\ + stance\x20has\x20a\x20\"configuration\",\x20which\x20dictates\x20where\ + \x20the\n\x20serving\x20resources\x20for\x20the\x20Cloud\x20Spanner\x20i\ + nstance\x20are\x20located\x20(e.g.,\n\x20US-central,\x20Europe).\x20Conf\ + igurations\x20are\x20created\x20by\x20Google\x20based\x20on\n\x20resourc\ + e\x20availability.\n\n\x20Cloud\x20Spanner\x20billing\x20is\x20based\x20\ + on\x20the\x20instances\x20that\x20exist\x20and\x20their\n\x20sizes.\x20A\ + fter\x20an\x20instance\x20exists,\x20there\x20are\x20no\x20additional\n\ + \x20per-database\x20or\x20per-operation\x20charges\x20for\x20use\x20of\ + \x20the\x20instance\n\x20(though\x20there\x20may\x20be\x20additional\x20\ + network\x20bandwidth\x20charges).\n\x20Instances\x20offer\x20isolation:\ + \x20problems\x20with\x20databases\x20in\x20one\x20instance\n\x20will\x20\ + not\x20affect\x20other\x20instances.\x20However,\x20within\x20an\x20inst\ + ance\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\x20i\ + nstance\x20resources,\x20fewer\x20resources\x20are\x20available\x20for\ + \x20other\n\x20databases\x20in\x20that\x20instance,\x20and\x20their\x20p\ + erformance\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\x20\ + the\x20supported\x20instance\x20configurations\x20for\x20a\x20given\x20p\ + roject.\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\nK\n\x04\x06\0\x02\x01\ + \x12\x04I\x02N\x03\x1a=\x20Gets\x20information\x20about\x20a\x20particul\ + ar\x20instance\x20configuration.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03\ + I\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\x04J\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\x02V\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\x04\ + R\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\x20particular\x20instanc\ + e.\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\x20Create\ + s\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\x20p\ + rogress\x20of\x20preparing\x20the\x20new\n\x20instance.\x20The\x20instan\ + ce\x20name\x20is\x20assigned\x20by\x20the\x20caller.\x20If\x20the\n\x20n\ + amed\x20instance\x20already\x20exists,\x20`CreateInstance`\x20returns\n\ + \x20`ALREADY_EXISTS`.\n\n\x20Immediately\x20upon\x20completion\x20of\x20\ + this\x20request:\n\n\x20\x20\x20*\x20The\x20instance\x20is\x20readable\ + \x20via\x20the\x20API,\x20with\x20all\x20requested\x20attributes\n\x20\ + \x20\x20\x20\x20but\x20no\x20allocated\x20resources.\x20Its\x20state\x20\ + is\x20`CREATING`.\n\n\x20Until\x20completion\x20of\x20the\x20returned\ + \x20operation:\n\n\x20\x20\x20*\x20Cancelling\x20the\x20operation\x20ren\ + ders\x20the\x20instance\x20immediately\x20unreadable\n\x20\x20\x20\x20\ + \x20via\x20the\x20API.\n\x20\x20\x20*\x20The\x20instance\x20can\x20be\ + \x20deleted.\n\x20\x20\x20*\x20All\x20other\x20attempts\x20to\x20modify\ + \x20the\x20instance\x20are\x20rejected.\n\n\x20Upon\x20completion\x20of\ + \x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20Billing\x20for\x20\ + all\x20successfully-allocated\x20resources\x20begins\x20(some\x20types\n\ + \x20\x20\x20\x20\x20may\x20have\x20lower\x20than\x20the\x20requested\x20\ + levels).\n\x20\x20\x20*\x20Databases\x20can\x20be\x20created\x20in\x20th\ + e\x20instance.\n\x20\x20\x20*\x20The\x20instance's\x20allocated\x20resou\ + rce\x20levels\x20are\x20readable\x20via\x20the\x20API.\n\x20\x20\x20*\ + \x20The\x20instance's\x20state\x20becomes\x20`READY`.\n\n\x20The\x20retu\ rned\x20[long-running\x20operation][google.longrunning.Operation]\x20wil\ l\n\x20have\x20a\x20name\x20of\x20the\x20format\x20`/oper\ - ations/`\x20and\n\x20can\x20be\x20used\x20to\x20track\x20t\ - he\x20instance\x20modification.\x20\x20The\n\x20[metadata][google.longru\ - nning.Operation.metadata]\x20field\x20type\x20is\n\x20[UpdateInstanceMet\ - adata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].\n\x20Th\ - e\x20[response][google.longrunning.Operation.response]\x20field\x20type\ - \x20is\n\x20[Instance][google.spanner.admin.instance.v1.Instance],\x20if\ - \x20successful.\n\n\x20Authorization\x20requires\x20`spanner.instances.u\ - pdate`\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\x20Delete\ - s\x20an\x20instance.\n\n\x20Immediately\x20upon\x20completion\x20of\x20t\ - he\x20request:\n\n\x20\x20\x20*\x20Billing\x20ceases\x20for\x20all\x20of\ - \x20the\x20instance's\x20reserved\x20resources.\n\n\x20Soon\x20afterward\ - :\n\n\x20\x20\x20*\x20The\x20instance\x20and\x20*all\x20of\x20its\x20dat\ - abases*\x20immediately\x20and\n\x20\x20\x20\x20\x20irrevocably\x20disapp\ - ear\x20from\x20the\x20API.\x20All\x20data\x20in\x20the\x20databases\n\ - \x20\x20\x20\x20\x20is\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\x20Authorization\x20requires\x20`spanner.instances.setIa\ - mPolicy`\x20on\n\x20[resource][google.iam.v1.SetIamPolicyRequest.resourc\ - e].\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\x20acces\ - s\x20control\x20policy\x20for\x20an\x20instance\x20resource.\x20Returns\ - \x20an\x20empty\n\x20policy\x20if\x20an\x20instance\x20exists\x20but\x20\ - does\x20not\x20have\x20a\x20policy\x20set.\n\n\x20Authorization\x20requi\ - res\x20`spanner.instances.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\x20permissions\x20that\x20the\x20caller\x20has\x20on\ - \x20the\x20specified\x20instance\x20resource.\n\n\x20Attempting\x20this\ - \x20RPC\x20on\x20a\x20non-existent\x20Cloud\x20Spanner\x20instance\x20re\ - source\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\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[replica\x20types\n\x20documentation](https://clou\ - d.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\x20specifi\ - ed.\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\x20repl\ - icas\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\x20to\x20commit\x20\ - a\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\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\x20sup\ - port\x20reads\x20(not\x20writes).\x20Read-only\x20replicas:\n\n\x20*\x20\ - Maintain\x20a\x20full\x20copy\x20of\x20your\x20data.\n\x20*\x20Serve\x20\ - reads.\n\x20*\x20Do\x20not\x20participate\x20in\x20voting\x20to\x20commi\ - t\x20writes.\n\x20*\x20Are\x20not\x20eligible\x20to\x20become\x20a\x20le\ - ader.\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\x20r\ - eplicas\x20don't\x20support\x20reads\x20but\x20do\x20participate\x20in\ - \x20voting\x20to\n\x20commit\x20writes.\x20Witness\x20replicas:\n\n\x20*\ - \x20Do\x20not\x20maintain\x20a\x20full\x20copy\x20of\x20data.\n\x20*\x20\ - Do\x20not\x20serve\x20reads.\n\x20*\x20Vote\x20whether\x20to\x20commit\ - \x20writes.\n\x20*\x20Participate\x20in\x20leader\x20election\x20but\x20\ - are\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\x20location\x20of\x20the\x20serving\x20resources,\ - \x20e.g.\x20\"us-central1\".\n\n\x0f\n\x05\x04\0\x02\0\x04\x12\x06\xa1\ - \x02\x02\x9e\x02\x03\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\x0f\n\x05\x04\0\x02\x01\ - \x04\x12\x06\xa4\x02\x02\xa1\x02\x16\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\x20wh\ - ere\n\x20leader\x20replicas\x20are\x20placed.\x20See\x20the\x20[region\ - \x20types\n\x20documentation](https://cloud.google.com/spanner/docs/inst\ - ances#region_types)\n\x20for\x20more\x20details.\n\n\x0f\n\x05\x04\0\x02\ - \x02\x04\x12\x06\xaa\x02\x02\xa4\x02\x17\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\x20configura\ - tion\x20for\x20a\x20Cloud\x20Spanner\x20instance.\x20Configurations\n\ - \x20define\x20the\x20geographic\x20placement\x20of\x20nodes\x20and\x20th\ - eir\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\x20f\ - or\x20the\x20instance\x20configuration.\x20\x20Values\n\x20are\x20of\x20\ - the\x20form\n\x20`projects//instanceConfigs/[a-z][-a-z0-9]*`\n\ - \n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xb8\x02\x02\xb3\x02\x04\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\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xbb\x02\x02\xb8\x02\ - \x12\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\x20insta\ - nce\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\x20resources\x20on\x20which\x20databases\x20c\ - an\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.\x20Indicates\x20the\x20current\x20stat\ - e\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.\x20Resou\ - rces\x20may\x20not\x20be\n\x20available\x20yet,\x20and\x20operations\x20\ - such\x20as\x20database\x20creation\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\x20do\x20work\x20such\x20as\n\x20creat\ - ing\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\x20Requ\ - ired.\x20A\x20unique\x20identifier\x20for\x20the\x20instance,\x20which\ - \x20cannot\x20be\x20changed\n\x20after\x20the\x20instance\x20is\x20creat\ - ed.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//insta\ - nces/[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\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xdc\x02\x02\xd6\x02\ - \x03\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\x20instanc\ - e's\x20configuration.\x20Values\x20are\x20of\x20the\x20form\n\x20`projec\ - ts//instanceConfigs/`.\x20See\n\x20also\x20[Inst\ - anceConfig][google.spanner.admin.instance.v1.InstanceConfig]\x20and\n\ - \x20[ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin\ - .ListInstanceConfigs].\n\n\x0f\n\x05\x04\x02\x02\x01\x04\x12\x06\xe2\x02\ - \x02\xdc\x02\x12\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\x20instance\x20as\x20it\x20appears\x20in\x20UIs.\n\x20Must\x20b\ - e\x20unique\x20per\x20project\x20and\x20between\x204\x20and\x2030\x20cha\ - racters\x20in\x20length.\n\n\x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xe8\ - \x02\x02\xe4\x02\x05\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\ - \x20nodes\x20allocated\x20to\x20this\x20instance.\x20This\x20may\x20be\ - \x20zero\n\x20in\x20API\x20responses\x20for\x20instances\x20that\x20are\ - \x20not\x20yet\x20in\x20state\x20`READY`.\n\n\x20See\x20[the\n\x20docume\ - ntation](https://cloud.google.com/spanner/docs/instances#node_count)\n\ - \x20for\x20more\x20information\x20about\x20nodes.\n\n\x0f\n\x05\x04\x02\ - \x02\x03\x04\x12\x06\xf0\x02\x02\xe8\x02\x1a\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\ - \x20only.\x20The\x20current\x20instance\x20state.\x20For\n\x20[CreateIns\ - tance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],\ - \x20the\x20state\x20must\x20be\n\x20either\x20omitted\x20or\x20set\x20to\ - \x20`CREATING`.\x20For\n\x20[UpdateInstance][google.spanner.admin.instan\ - ce.v1.InstanceAdmin.UpdateInstance],\x20the\x20state\x20must\x20be\n\x20\ - either\x20omitted\x20or\x20set\x20to\x20`READY`.\n\n\x0f\n\x05\x04\x02\ - \x02\x04\x04\x12\x06\xf7\x02\x02\xf0\x02\x17\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\ - \x0f\n\x05\x04\x02\x02\x05\x04\x12\x06\x8e\x03\x02\xf7\x02\x12\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\x20on\ - \x20the\x20instance\x20config.\n\x20For\x20example,\x20instances\x20loca\ - ted\x20in\x20a\x20specific\x20cloud\x20region\x20(or\x20multi\x20region)\ - \n\x20such\x20as\x20nam3,\x20would\x20have\x20a\x20nam3\x20specific\x20e\ - ndpoint\x20URI.\n\x20This\x20URI\x20is\x20to\x20be\x20used\x20implictly\ - \x20by\x20SDK\x20clients,\x20with\x20fallback\x20to\x20default\n\x20URI.\ - \x20These\x20endpoints\x20are\x20intended\x20to\x20optimize\x20the\x20ne\ - twork\x20routing\x20between\n\x20the\x20client\x20and\x20the\x20instance\ - 's\x20serving\x20resources.\n\x20If\x20multiple\x20endpoints\x20are\x20p\ - resent,\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][google.spann\ - er.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\x20in\ - stance\n\x20configurations\x20is\x20requested.\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects/`.\n\n\x0f\n\x05\x04\x03\x02\0\ - \x04\x12\x06\xa0\x03\x02\x9c\x03$\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\x20configurations\ - \x20to\x20be\x20returned\x20in\x20the\x20response.\x20If\x200\x20or\n\ - \x20less,\x20defaults\x20to\x20the\x20server's\x20maximum\x20allowed\x20\ - page\x20size.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xa9\x03\x02\xa5\ - \x03\x04\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`page_token`\x20should\ - \x20contain\x20a\n\x20[next_page_token][google.spanner.admin.instance.v1\ - .ListInstanceConfigsResponse.next_page_token]\n\x20from\x20a\x20previous\ - \x20[ListInstanceConfigsResponse][google.spanner.admin.instance.v1.ListI\ - nstanceConfigsResponse].\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xae\ - \x03\x02\xa9\x03\x16\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\x20for\x20[ListInstanceConfig\ - s][google.spanner.admin.instance.v1.InstanceAdmin.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\x20requested\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.instance.v1.InstanceAdm\ - in.ListInstanceConfigs]\x20call\x20to\n\x20fetch\x20more\x20of\x20the\ - \x20matching\x20instance\x20configurations.\n\n\x0f\n\x05\x04\x04\x02\ - \x01\x04\x12\x06\xb9\x03\x02\xb4\x03/\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\x20request\x20for\n\x20[GetIn\ - stanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetI\ - nstanceConfig].\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\x20\ - Required.\x20The\x20name\x20of\x20the\x20requested\x20instance\x20config\ - uration.\x20Values\x20are\x20of\n\x20the\x20form\x20`projects//\ - instanceConfigs/`.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xc1\ - \x03\x02\xbe\x03\"\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\x20\ - request\x20for\x20[GetInstance][google.spanner.admin.instance.v1.Instanc\ - eAdmin.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\x20Req\ - uired.\x20The\x20name\x20of\x20the\x20requested\x20instance.\x20Values\ - \x20are\x20of\x20the\x20form\n\x20`projects//instances/`.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xcd\x03\x02\xca\x03\x1c\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,\x20\ - all\x20[][Instance]\x20fields\x20are\x20returned.\n\n\x0f\n\x05\x04\x06\ - \x02\x01\x04\x12\x06\xd7\x03\x02\xd2\x03\x04\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[Cre\ - ateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstan\ - ce].\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\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xde\x03\x02\xdb\x03\x1f\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\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xe8\x03\x02\xe3\x03\x04\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\x20\ - instance\x20to\x20create.\x20\x20The\x20name\x20may\x20be\x20omitted,\ - \x20but\x20if\n\x20specified\x20must\x20be\x20`/instances/`.\n\n\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xec\x03\x02\xe8\x03B\ - \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\x20request\x20for\x20\ - [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInsta\ - nces].\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\x20a\x20list\x20of\x20i\ - nstances\x20is\n\x20requested.\x20Values\x20are\x20of\x20the\x20form\x20\ - `projects/`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\x06\xf3\x03\ - \x02\xf0\x03\x1e\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\x20returned\x20in\x20the\x20re\ - sponse.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\x20the\x20server's\ - \x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x08\x02\x01\ - \x04\x12\x06\xfc\x03\x02\xf8\x03\x04\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-em\ - pty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][go\ - ogle.spanner.admin.instance.v1.ListInstancesResponse.next_page_token]\ + ations/`\x20and\n\x20can\x20be\x20used\x20to\x20track\x20c\ + reation\x20of\x20the\x20instance.\x20\x20The\n\x20[metadata][google.long\ + running.Operation.metadata]\x20field\x20type\x20is\n\x20[CreateInstanceM\ + etadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].\n\x20\ + The\x20[response][google.longrunning.Operation.response]\x20field\x20typ\ + e\x20is\n\x20[Instance][google.spanner.admin.instance.v1.Instance],\x20i\ + f\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\x20ins\ + tance,\x20and\x20begins\x20allocating\x20or\x20releasing\x20resources\n\ + \x20as\x20requested.\x20The\x20returned\x20[long-running\n\x20operation]\ + [google.longrunning.Operation]\x20can\x20be\x20used\x20to\x20track\x20th\ + e\n\x20progress\x20of\x20updating\x20the\x20instance.\x20If\x20the\x20na\ + med\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\x20which\x20a\x20decrea\ + se\x20in\x20the\x20instance's\x20allocation\n\x20\x20\x20\x20\x20has\x20\ + been\x20requested,\x20billing\x20is\x20based\x20on\x20the\x20newly-reque\ + sted\x20level.\n\n\x20Until\x20completion\x20of\x20the\x20returned\x20op\ + eration:\n\n\x20\x20\x20*\x20Cancelling\x20the\x20operation\x20sets\x20i\ + ts\x20metadata's\n\x20\x20\x20\x20\x20[cancel_time][google.spanner.admin\ + .instance.v1.UpdateInstanceMetadata.cancel_time],\x20and\x20begins\n\x20\ + \x20\x20\x20\x20restoring\x20resources\x20to\x20their\x20pre-request\x20\ + values.\x20The\x20operation\n\x20\x20\x20\x20\x20is\x20guaranteed\x20to\ + \x20succeed\x20at\x20undoing\x20all\x20resource\x20changes,\n\x20\x20\ + \x20\x20\x20after\x20which\x20point\x20it\x20terminates\x20with\x20a\x20\ + `CANCELLED`\x20status.\n\x20\x20\x20*\x20All\x20other\x20attempts\x20to\ + \x20modify\x20the\x20instance\x20are\x20rejected.\n\x20\x20\x20*\x20Read\ + ing\x20the\x20instance\x20via\x20the\x20API\x20continues\x20to\x20give\ + \x20the\x20pre-request\n\x20\x20\x20\x20\x20resource\x20levels.\n\n\x20U\ + pon\x20completion\x20of\x20the\x20returned\x20operation:\n\n\x20\x20\x20\ + *\x20Billing\x20begins\x20for\x20all\x20successfully-allocated\x20resour\ + ces\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\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\x20T\ + he\x20returned\x20[long-running\x20operation][google.longrunning.Operati\ + on]\x20will\n\x20have\x20a\x20name\x20of\x20the\x20format\x20`/operations/`\x20and\n\x20can\x20be\x20used\x20to\x20\ + track\x20the\x20instance\x20modification.\x20\x20The\n\x20[metadata][goo\ + gle.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[UpdateI\ + nstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata\ + ].\n\x20The\x20[response][google.longrunning.Operation.response]\x20fiel\ + d\x20type\x20is\n\x20[Instance][google.spanner.admin.instance.v1.Instanc\ + e],\x20if\x20successful.\n\n\x20Authorization\x20requires\x20`spanner.in\ + stances.update`\x20permission\x20on\n\x20resource\x20[name][google.spann\ + er.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\x20instance.\n\n\x20Immediately\x20upon\x20completion\ + \x20of\x20the\x20request:\n\n\x20\x20\x20*\x20Billing\x20ceases\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\x20irrevoc\ + ably\x20disappear\x20from\x20the\x20API.\x20All\x20data\x20in\x20the\x20\ + databases\n\x20\x20\x20\x20\x20is\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\x20con\ + trol\x20policy\x20on\x20an\x20instance\x20resource.\x20Replaces\x20any\n\ + \x20existing\x20policy.\n\n\x20Authorization\x20requires\x20`spanner.ins\ + tances.setIamPolicy`\x20on\n\x20[resource][google.iam.v1.SetIamPolicyReq\ + uest.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\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\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\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\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\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\x81\x02\x07\ + \x12\n\x20\n\x06\x04\0\x04\0\x02\0\x12\x04\x83\x02\x04\x19\x1a\x10\x20No\ + t\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-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\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\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\ + \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\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\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\x20location\x20of\x20the\x20servi\ + ng\x20resources,\x20e.g.\x20\"us-central1\".\n\n\x0f\n\x05\x04\0\x02\0\ + \x04\x12\x06\xa1\x02\x02\x9e\x02\x03\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\x0f\n\ + \x05\x04\0\x02\x01\x04\x12\x06\xa4\x02\x02\xa1\x02\x16\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\x20t\ + rue,\x20this\x20location\x20is\x20designated\x20as\x20the\x20default\x20\ + leader\x20location\x20where\n\x20leader\x20replicas\x20are\x20placed.\ + \x20See\x20the\x20[region\x20types\n\x20documentation](https://cloud.goo\ + gle.com/spanner/docs/instances#region_types)\n\x20for\x20more\x20details\ + .\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\xaa\x02\x02\xa4\x02\x17\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\x20configuration\x20for\x20a\x20Cloud\x20Spanner\x20in\ + stance.\x20Configurations\n\x20define\x20the\x20geographic\x20placement\ + \x20of\x20nodes\x20and\x20their\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\x20of\x20the\x20form\n\x20`projects//i\ + nstanceConfigs/[a-z][-a-z0-9]*`\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\ + \xb8\x02\x02\xb3\x02\x04\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\x20configurat\ + ion\x20as\x20it\x20appears\x20in\x20UIs.\n\n\x0f\n\x05\x04\x01\x02\x01\ + \x04\x12\x06\xbb\x02\x02\xb8\x02\x12\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\x20\ + of\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\x92\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\x0f\n\x05\x04\ + \x02\x02\0\x04\x12\x06\xdc\x02\x02\xd6\x02\x03\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\x18\x1a\xaf\x02\x20Required\ + .\x20The\x20name\x20of\x20the\x20instance's\x20configuration.\x20Values\ + \x20are\x20of\x20the\x20form\n\x20`projects//instanceConfigs/`.\x20See\n\x20also\x20[InstanceConfig][google.spanner.admi\ + n.instance.v1.InstanceConfig]\x20and\n\x20[ListInstanceConfigs][google.s\ + panner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].\n\n\x0f\n\ + \x05\x04\x02\x02\x01\x04\x12\x06\xe2\x02\x02\xdc\x02\x12\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\x17\n\ + \x11\n\x07\x04\x02\x02\x01\x08\x9f\x08\x12\x06\xe2\x02\x15\xe4\x02\x16\n\ + \x9e\x01\n\x04\x04\x02\x02\x02\x12\x04\xe8\x02\x02\x1a\x1a\x8f\x01\x20Re\ + quired.\x20The\x20descriptive\x20name\x20for\x20this\x20instance\x20as\ + \x20it\x20appears\x20in\x20UIs.\n\x20Must\x20be\x20unique\x20per\x20proj\ + ect\x20and\x20between\x204\x20and\x2030\x20characters\x20in\x20length.\n\ + \n\x0f\n\x05\x04\x02\x02\x02\x04\x12\x06\xe8\x02\x02\xe4\x02\x18\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\x20nodes\x20allocated\x20to\ + \x20this\x20instance.\x20This\x20may\x20be\x20zero\n\x20in\x20API\x20res\ + ponses\x20for\x20instances\x20that\x20are\x20not\x20yet\x20in\x20state\ + \x20`READY`.\n\n\x20See\x20[the\n\x20documentation](https://cloud.google\ + .com/spanner/docs/instances#node_count)\n\x20for\x20more\x20information\ + \x20about\x20nodes.\n\n\x0f\n\x05\x04\x02\x02\x03\x04\x12\x06\xf0\x02\ + \x02\xe8\x02\x1a\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\x20only.\x20The\x20current\ + \x20instance\x20state.\x20For\n\x20[CreateInstance][google.spanner.admin\ + .instance.v1.InstanceAdmin.CreateInstance],\x20the\x20state\x20must\x20b\ + e\n\x20either\x20omitted\x20or\x20set\x20to\x20`CREATING`.\x20For\n\x20[\ + UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateIns\ + tance],\x20the\x20state\x20must\x20be\n\x20either\x20omitted\x20or\x20se\ + t\x20to\x20`READY`.\n\n\x0f\n\x05\x04\x02\x02\x04\x04\x12\x06\xf7\x02\ + \x02\xf0\x02\x17\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\x20an\ + d\x20lightweight\x20mechanism\x20for\x20organizing\x20cloud\n\x20resourc\ + es\x20into\x20groups\x20that\x20reflect\x20a\x20customer's\x20organizati\ + onal\x20needs\x20and\n\x20deployment\x20strategies.\x20Cloud\x20Labels\ + \x20can\x20be\x20used\x20to\x20filter\x20collections\x20of\n\x20resource\ + s.\x20They\x20can\x20be\x20used\x20to\x20control\x20how\x20resource\x20m\ + etrics\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\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\x20resource.\n\n\x20See\x20https://goo.gl/xmQnxf\x20for\x20more\x20\ + information\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\x20the\x20future.\x20And\x20so\x20you\x20are\x20advised\x20to\x20\ + use\x20an\n\x20internal\x20label\x20representation,\x20such\x20as\x20JSO\ + N,\x20which\x20doesn't\x20rely\x20upon\n\x20specific\x20characters\x20be\ + ing\x20disallowed.\x20\x20For\x20example,\x20representing\x20labels\n\ + \x20as\x20the\x20string:\x20\x20name\x20+\x20\"_\"\x20+\x20value\x20\x20\ + would\x20prove\x20problematic\x20if\x20we\x20were\x20to\n\x20allow\x20\"\ + _\"\x20in\x20a\x20future\x20release.\n\n\x0f\n\x05\x04\x02\x02\x05\x04\ + \x12\x06\x8e\x03\x02\xf7\x02\x12\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\n8\n\x04\x04\x02\ + \x02\x06\x12\x04\x91\x03\x02$\x1a*\x20Deprecated.\x20This\x20field\x20is\ + \x20not\x20populated.\n\n\r\n\x05\x04\x02\x02\x06\x04\x12\x04\x91\x03\ + \x02\n\n\r\n\x05\x04\x02\x02\x06\x05\x12\x04\x91\x03\x0b\x11\n\r\n\x05\ + \x04\x02\x02\x06\x01\x12\x04\x91\x03\x12\x1f\n\r\n\x05\x04\x02\x02\x06\ + \x03\x12\x04\x91\x03\"#\nz\n\x02\x04\x03\x12\x06\x95\x03\0\xa8\x03\x01\ + \x1al\x20The\x20request\x20for\x20[ListInstanceConfigs][google.spanner.a\ + dmin.instance.v1.InstanceAdmin.ListInstanceConfigs].\n\n\x0b\n\x03\x04\ + \x03\x01\x12\x04\x95\x03\x08\"\n\xa7\x01\n\x04\x04\x03\x02\0\x12\x06\x99\ + \x03\x02\x9e\x03\x04\x1a\x96\x01\x20Required.\x20The\x20name\x20of\x20th\ + e\x20project\x20for\x20which\x20a\x20list\x20of\x20supported\x20instance\ + \n\x20configurations\x20is\x20requested.\x20Values\x20are\x20of\x20the\ + \x20form\n\x20`projects/`.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\ + \x06\x99\x03\x02\x95\x03$\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x99\x03\ + \x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x99\x03\t\x0f\n\r\n\x05\x04\ + \x03\x02\0\x03\x12\x04\x99\x03\x12\x13\n\x0f\n\x05\x04\x03\x02\0\x08\x12\ + \x06\x99\x03\x14\x9e\x03\x03\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\ + \x04\x9a\x03\x04*\n\x11\n\x07\x04\x03\x02\0\x08\x9f\x08\x12\x06\x9b\x03\ + \x04\x9d\x03\x05\n\x95\x01\n\x04\x04\x03\x02\x01\x12\x04\xa2\x03\x02\x16\ + \x1a\x86\x01\x20Number\x20of\x20instance\x20configurations\x20to\x20be\ + \x20returned\x20in\x20the\x20response.\x20If\x200\x20or\n\x20less,\x20de\ + faults\x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\ + \n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xa2\x03\x02\x9e\x03\x04\n\r\n\ + \x05\x04\x03\x02\x01\x05\x12\x04\xa2\x03\x02\x07\n\r\n\x05\x04\x03\x02\ + \x01\x01\x12\x04\xa2\x03\x08\x11\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\ + \xa2\x03\x14\x15\n\x8b\x02\n\x04\x04\x03\x02\x02\x12\x04\xa7\x03\x02\x18\ + \x1a\xfc\x01\x20If\x20non-empty,\x20`page_token`\x20should\x20contain\ + \x20a\n\x20[next_page_token][google.spanner.admin.instance.v1.ListInstan\ + ceConfigsResponse.next_page_token]\n\x20from\x20a\x20previous\x20[ListIn\ + stanceConfigsResponse][google.spanner.admin.instance.v1.ListInstanceConf\ + igsResponse].\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xa7\x03\x02\xa2\ + \x03\x16\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xa7\x03\x02\x08\n\r\n\x05\ + \x04\x03\x02\x02\x01\x12\x04\xa7\x03\t\x13\n\r\n\x05\x04\x03\x02\x02\x03\ + \x12\x04\xa7\x03\x16\x17\n{\n\x02\x04\x04\x12\x06\xab\x03\0\xb3\x03\x01\ + \x1am\x20The\x20response\x20for\x20[ListInstanceConfigs][google.spanner.\ + admin.instance.v1.InstanceAdmin.ListInstanceConfigs].\n\n\x0b\n\x03\x04\ + \x04\x01\x12\x04\xab\x03\x08#\n>\n\x04\x04\x04\x02\0\x12\x04\xad\x03\x02\ + /\x1a0\x20The\x20list\x20of\x20requested\x20instance\x20configurations.\ + \n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\xad\x03\x02\n\n\r\n\x05\x04\x04\ + \x02\0\x06\x12\x04\xad\x03\x0b\x19\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\ + \xad\x03\x1a*\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xad\x03-.\n\xd6\x01\n\ + \x04\x04\x04\x02\x01\x12\x04\xb2\x03\x02\x1d\x1a\xc7\x01\x20`next_page_t\ + oken`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[ListInstanceCo\ + nfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfig\ + s]\x20call\x20to\n\x20fetch\x20more\x20of\x20the\x20matching\x20instance\ + \x20configurations.\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\xb2\x03\ + \x02\xad\x03/\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xb2\x03\x02\x08\n\r\ + \n\x05\x04\x04\x02\x01\x01\x12\x04\xb2\x03\t\x18\n\r\n\x05\x04\x04\x02\ + \x01\x03\x12\x04\xb2\x03\x1b\x1c\n~\n\x02\x04\x05\x12\x06\xb7\x03\0\xc0\ + \x03\x01\x1ap\x20The\x20request\x20for\n\x20[GetInstanceConfigRequest][g\ + oogle.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig].\n\n\ + \x0b\n\x03\x04\x05\x01\x12\x04\xb7\x03\x08\x20\n\x95\x01\n\x04\x04\x05\ + \x02\0\x12\x06\xba\x03\x02\xbf\x03\x04\x1a\x84\x01\x20Required.\x20The\ + \x20name\x20of\x20the\x20requested\x20instance\x20configuration.\x20Valu\ + es\x20are\x20of\n\x20the\x20form\x20`projects//instanceConfigs/\ + `.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xba\x03\x02\xb7\x03\"\ + \n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xba\x03\x02\x08\n\r\n\x05\x04\x05\ + \x02\0\x01\x12\x04\xba\x03\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xba\ + \x03\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xba\x03\x12\xbf\x03\ + \x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xbb\x03\x04*\n\x11\ + \n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xbc\x03\x04\xbe\x03\x05\nj\n\ + \x02\x04\x06\x12\x06\xc3\x03\0\xd1\x03\x01\x1a\\\x20The\x20request\x20fo\ + r\x20[GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetIns\ + tance].\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xc3\x03\x08\x1a\n\x82\x01\n\ + \x04\x04\x06\x02\0\x12\x06\xc6\x03\x02\xcb\x03\x04\x1ar\x20Required.\x20\ + The\x20name\x20of\x20the\x20requested\x20instance.\x20Values\x20are\x20o\ + f\x20the\x20form\n\x20`projects//instances/`.\n\n\x0f\ + \n\x05\x04\x06\x02\0\x04\x12\x06\xc6\x03\x02\xc3\x03\x1c\n\r\n\x05\x04\ + \x06\x02\0\x05\x12\x04\xc6\x03\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\ + \x04\xc6\x03\t\r\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xc6\x03\x10\x11\n\ + \x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xc6\x03\x12\xcb\x03\x03\n\x10\n\x08\ + \x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xc7\x03\x04*\n\x11\n\x07\x04\x06\ + \x02\0\x08\x9f\x08\x12\x06\xc8\x03\x04\xca\x03\x05\n\xf4\x01\n\x04\x04\ + \x06\x02\x01\x12\x04\xd0\x03\x02+\x1a\xe5\x01\x20If\x20field_mask\x20is\ + \x20present,\x20specifies\x20the\x20subset\x20of\x20[Instance][google.sp\ + anner.admin.instance.v1.Instance]\x20fields\x20that\n\x20should\x20be\ + \x20returned.\n\x20If\x20absent,\x20all\x20[Instance][google.spanner.adm\ + in.instance.v1.Instance]\x20fields\x20are\x20returned.\n\n\x0f\n\x05\x04\ + \x06\x02\x01\x04\x12\x06\xd0\x03\x02\xcb\x03\x04\n\r\n\x05\x04\x06\x02\ + \x01\x06\x12\x04\xd0\x03\x02\x1b\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\ + \xd0\x03\x1c&\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xd0\x03)*\np\n\x02\ + \x04\x07\x12\x06\xd4\x03\0\xe6\x03\x01\x1ab\x20The\x20request\x20for\x20\ + [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateIn\ + stance].\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xd4\x03\x08\x1d\n\x82\x01\n\ + \x04\x04\x07\x02\0\x12\x06\xd7\x03\x02\xdc\x03\x04\x1ar\x20Required.\x20\ + The\x20name\x20of\x20the\x20project\x20in\x20which\x20to\x20create\x20th\ + e\x20instance.\x20Values\n\x20are\x20of\x20the\x20form\x20`projects/`.\n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xd7\x03\x02\xd4\x03\x1f\ + \n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xd7\x03\x02\x08\n\r\n\x05\x04\x07\ + \x02\0\x01\x12\x04\xd7\x03\t\x0f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xd7\ + \x03\x12\x13\n\x0f\n\x05\x04\x07\x02\0\x08\x12\x06\xd7\x03\x14\xdc\x03\ + \x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xd8\x03\x04*\n\x11\ + \n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xd9\x03\x04\xdb\x03\x05\n\xae\ + \x01\n\x04\x04\x07\x02\x01\x12\x04\xe1\x03\x02B\x1a\x9f\x01\x20Required.\ + \x20The\x20ID\x20of\x20the\x20instance\x20to\x20create.\x20\x20Valid\x20\ + identifiers\x20are\x20of\x20the\n\x20form\x20`[a-z][-a-z0-9]*[a-z0-9]`\ + \x20and\x20must\x20be\x20between\x202\x20and\x2064\x20characters\x20in\n\ + \x20length.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xe1\x03\x02\xdc\ + \x03\x04\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xe1\x03\x02\x08\n\r\n\x05\ + \x04\x07\x02\x01\x01\x12\x04\xe1\x03\t\x14\n\r\n\x05\x04\x07\x02\x01\x03\ + \x12\x04\xe1\x03\x17\x18\n\r\n\x05\x04\x07\x02\x01\x08\x12\x04\xe1\x03\ + \x19A\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\xe1\x03\x1a@\n\ + \x89\x01\n\x04\x04\x07\x02\x02\x12\x04\xe5\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\x0f\n\x05\x04\x07\x02\x02\x04\x12\x06\xe5\x03\x02\ + \xe1\x03B\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xe5\x03\x02\n\n\r\n\x05\ + \x04\x07\x02\x02\x01\x12\x04\xe5\x03\x0b\x13\n\r\n\x05\x04\x07\x02\x02\ + \x03\x12\x04\xe5\x03\x16\x17\n\r\n\x05\x04\x07\x02\x02\x08\x12\x04\xe5\ + \x03\x18@\n\x10\n\x08\x04\x07\x02\x02\x08\x9c\x08\0\x12\x04\xe5\x03\x19?\ + \nn\n\x02\x04\x08\x12\x06\xe9\x03\0\x90\x04\x01\x1a`\x20The\x20request\ + \x20for\x20[ListInstances][google.spanner.admin.instance.v1.InstanceAdmi\ + n.ListInstances].\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xe9\x03\x08\x1c\n\ + \x8d\x01\n\x04\x04\x08\x02\0\x12\x06\xec\x03\x02\xf1\x03\x04\x1a}\x20Req\ + uired.\x20The\x20name\x20of\x20the\x20project\x20for\x20which\x20a\x20li\ + st\x20of\x20instances\x20is\n\x20requested.\x20Values\x20are\x20of\x20th\ + e\x20form\x20`projects/`.\n\n\x0f\n\x05\x04\x08\x02\0\x04\x12\ + \x06\xec\x03\x02\xe9\x03\x1e\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xec\x03\ + \x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xec\x03\t\x0f\n\r\n\x05\x04\ + \x08\x02\0\x03\x12\x04\xec\x03\x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\x12\ + \x06\xec\x03\x14\xf1\x03\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\ + \x04\xed\x03\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xee\x03\ + \x04\xf0\x03\x05\n\x86\x01\n\x04\x04\x08\x02\x01\x12\x04\xf5\x03\x02\x16\ + \x1ax\x20Number\x20of\x20instances\x20to\x20be\x20returned\x20in\x20the\ + \x20response.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\x20the\x20se\ + rver's\x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x08\x02\ + \x01\x04\x12\x06\xf5\x03\x02\xf1\x03\x04\n\r\n\x05\x04\x08\x02\x01\x05\ + \x12\x04\xf5\x03\x02\x07\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xf5\x03\ + \x08\x11\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xf5\x03\x14\x15\n\xf9\x01\ + \n\x04\x04\x08\x02\x02\x12\x04\xfa\x03\x02\x18\x1a\xea\x01\x20If\x20non-\ + empty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][\ + google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token]\ \x20from\x20a\n\x20previous\x20[ListInstancesResponse][google.spanner.ad\ min.instance.v1.ListInstancesResponse].\n\n\x0f\n\x05\x04\x08\x02\x02\ - \x04\x12\x06\x81\x04\x02\xfc\x03\x16\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\ + \x04\x12\x06\xfa\x03\x02\xf5\x03\x16\n\r\n\x05\x04\x08\x02\x02\x05\x12\ + \x04\xfa\x03\x02\x08\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xfa\x03\t\x13\ + \n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xfa\x03\x16\x17\n\xdd\x06\n\x04\ + \x04\x08\x02\x03\x12\x04\x8f\x04\x02\x14\x1a\xce\x06\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`name`\n\x20\x20\x20*\ @@ -4295,112 +4288,112 @@ static file_descriptor_proto_data: &'static [u8] = b"\ nv\"\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\x20\x20\x20\x20containing\x20\"dev\".\n\n\x0f\n\x05\x04\x08\x02\ - \x03\x04\x12\x06\x96\x04\x02\x81\x04\x18\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\x20The\x20response\x20for\x20[List\ + \x03\x04\x12\x06\x8f\x04\x02\xfa\x03\x18\n\r\n\x05\x04\x08\x02\x03\x05\ + \x12\x04\x8f\x04\x02\x08\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\x8f\x04\t\ + \x0f\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\x8f\x04\x12\x13\no\n\x02\x04\ + \t\x12\x06\x93\x04\0\x9b\x04\x01\x1aa\x20The\x20response\x20for\x20[List\ Instances][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\x20instan\ - ces.\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_tok\ + .\n\n\x0b\n\x03\x04\t\x01\x12\x04\x93\x04\x08\x1d\n0\n\x04\x04\t\x02\0\ + \x12\x04\x95\x04\x02\"\x1a\"\x20The\x20list\x20of\x20requested\x20instan\ + ces.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\x95\x04\x02\n\n\r\n\x05\x04\t\ + \x02\0\x06\x12\x04\x95\x04\x0b\x13\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x95\ + \x04\x14\x1d\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x95\x04\x20!\n\xbc\x01\n\ + \x04\x04\t\x02\x01\x12\x04\x9a\x04\x02\x1d\x1a\xad\x01\x20`next_page_tok\ en`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[ListInstances][g\ oogle.spanner.admin.instance.v1.InstanceAdmin.ListInstances]\x20call\x20\ to\x20fetch\x20more\n\x20of\x20the\x20matching\x20instances.\n\n\x0f\n\ - \x05\x04\t\x02\x01\x04\x12\x06\xa1\x04\x02\x9c\x04\"\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[U\ + \x05\x04\t\x02\x01\x04\x12\x06\x9a\x04\x02\x95\x04\"\n\r\n\x05\x04\t\x02\ + \x01\x05\x12\x04\x9a\x04\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x9a\ + \x04\t\x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x9a\x04\x1b\x1c\np\n\x02\ + \x04\n\x12\x06\x9e\x04\0\xa8\x04\x01\x1ab\x20The\x20request\x20for\x20[U\ pdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInst\ - ance].\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\x20ins\ + ance].\n\n\x0b\n\x03\x04\n\x01\x12\x04\x9e\x04\x08\x1d\n\xe7\x01\n\x04\ + \x04\n\x02\0\x12\x04\xa1\x04\x02A\x1a\xd8\x01\x20Required.\x20The\x20ins\ tance\x20to\x20update,\x20which\x20must\x20always\x20include\x20the\x20i\ nstance\n\x20name.\x20\x20Otherwise,\x20only\x20fields\x20mentioned\x20i\ - n\x20[][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mas\ - k]\x20need\x20be\x20included.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\xa8\ - \x04\x02\xa5\x04\x1f\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.adm\ - in.instance.v1.UpdateInstanceRequest.instance]\x20should\x20be\x20update\ + n\x20[field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest\ + .field_mask]\x20need\x20be\x20included.\n\n\x0f\n\x05\x04\n\x02\0\x04\ + \x12\x06\xa1\x04\x02\x9e\x04\x1f\n\r\n\x05\x04\n\x02\0\x06\x12\x04\xa1\ + \x04\x02\n\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xa1\x04\x0b\x13\n\r\n\x05\ + \x04\n\x02\0\x03\x12\x04\xa1\x04\x16\x17\n\r\n\x05\x04\n\x02\0\x08\x12\ + \x04\xa1\x04\x18@\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\xa1\x04\ + \x19?\n\xd1\x02\n\x04\x04\n\x02\x01\x12\x04\xa7\x04\x02T\x1a\xc2\x02\x20\ + Required.\x20A\x20mask\x20specifying\x20which\x20fields\x20in\x20[Instan\ + ce][google.spanner.admin.instance.v1.Instance]\x20should\x20be\x20update\ d.\n\x20The\x20field\x20mask\x20must\x20always\x20be\x20specified;\x20th\ - is\x20prevents\x20any\x20future\x20fields\x20in\n\x20[][google.spanner.a\ - dmin.instance.v1.Instance]\x20from\x20being\x20erased\x20accidentally\ - \x20by\x20clients\x20that\x20do\x20not\x20know\n\x20about\x20them.\n\n\ - \x0f\n\x05\x04\n\x02\x01\x04\x12\x06\xae\x04\x02\xa8\x04A\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\ + is\x20prevents\x20any\x20future\x20fields\x20in\n\x20[Instance][google.s\ + panner.admin.instance.v1.Instance]\x20from\x20being\x20erased\x20acciden\ + tally\x20by\x20clients\x20that\x20do\x20not\x20know\n\x20about\x20them.\ + \n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\xa7\x04\x02\xa1\x04A\n\r\n\x05\ + \x04\n\x02\x01\x06\x12\x04\xa7\x04\x02\x1b\n\r\n\x05\x04\n\x02\x01\x01\ + \x12\x04\xa7\x04\x1c&\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xa7\x04)*\n\r\ + \n\x05\x04\n\x02\x01\x08\x12\x04\xa7\x04+S\n\x10\n\x08\x04\n\x02\x01\x08\ + \x9c\x08\0\x12\x04\xa7\x04,R\np\n\x02\x04\x0b\x12\x06\xab\x04\0\xb4\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\ + \x12\x04\xab\x04\x08\x1d\n\x85\x01\n\x04\x04\x0b\x02\0\x12\x06\xae\x04\ + \x02\xb3\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\x0f\n\x05\x04\x0b\x02\0\x04\ - \x12\x06\xb5\x04\x02\xb2\x04\x1f\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\ + \x12\x06\xae\x04\x02\xab\x04\x1f\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xae\ + \x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xae\x04\t\r\n\r\n\x05\ + \x04\x0b\x02\0\x03\x12\x04\xae\x04\x10\x11\n\x0f\n\x05\x04\x0b\x02\0\x08\ + \x12\x06\xae\x04\x12\xb3\x04\x03\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\ + \x12\x04\xaf\x04\x04*\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\x06\xb0\ + \x04\x04\xb2\x04\x05\n\x8d\x01\n\x02\x04\x0c\x12\x06\xb8\x04\0\xc8\x04\ \x01\x1a\x7f\x20Metadata\x20type\x20for\x20the\x20operation\x20returned\ \x20by\n\x20[CreateInstance][google.spanner.admin.instance.v1.InstanceAd\ - min.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\x20The\x20instance\ - \x20being\x20created.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xc1\x04\ - \x02\xbf\x04\x20\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\ + min.CreateInstance].\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xb8\x04\x08\x1e\n\ + +\n\x04\x04\x0c\x02\0\x12\x04\xba\x04\x02\x18\x1a\x1d\x20The\x20instance\ + \x20being\x20created.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xba\x04\ + \x02\xb8\x04\x20\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\xba\x04\x02\n\n\r\n\ + \x05\x04\x0c\x02\0\x01\x12\x04\xba\x04\x0b\x13\n\r\n\x05\x04\x0c\x02\0\ + \x03\x12\x04\xba\x04\x16\x17\n\x8d\x01\n\x04\x04\x0c\x02\x01\x12\x04\xbf\ \x04\x02+\x1a\x7f\x20The\x20time\x20at\x20which\x20the\n\x20[CreateInsta\ nce][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]\x20r\ equest\x20was\n\x20received.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\ - \xc6\x04\x02\xc1\x04\x18\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\ + \xbf\x04\x02\xba\x04\x18\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\xbf\x04\ + \x02\x1b\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xbf\x04\x1c&\n\r\n\x05\ + \x04\x0c\x02\x01\x03\x12\x04\xbf\x04)*\n\xbd\x01\n\x04\x04\x0c\x02\x02\ + \x12\x04\xc4\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\x20to\x20succeed)\x20and\n\x20cannot\x20be\x20cance\ - lled\x20again.\n\n\x0f\n\x05\x04\x0c\x02\x02\x04\x12\x06\xcb\x04\x02\xc6\ - \x04+\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\ + lled\x20again.\n\n\x0f\n\x05\x04\x0c\x02\x02\x04\x12\x06\xc4\x04\x02\xbf\ + \x04+\n\r\n\x05\x04\x0c\x02\x02\x06\x12\x04\xc4\x04\x02\x1b\n\r\n\x05\ + \x04\x0c\x02\x02\x01\x12\x04\xc4\x04\x1c'\n\r\n\x05\x04\x0c\x02\x02\x03\ + \x12\x04\xc4\x04*+\nV\n\x04\x04\x0c\x02\x03\x12\x04\xc7\x04\x02)\x1aH\ \x20The\x20time\x20at\x20which\x20this\x20operation\x20failed\x20or\x20w\ as\x20completed\x20successfully.\n\n\x0f\n\x05\x04\x0c\x02\x03\x04\x12\ - \x06\xce\x04\x02\xcb\x04,\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\x20operatio\ + \x06\xc7\x04\x02\xc4\x04,\n\r\n\x05\x04\x0c\x02\x03\x06\x12\x04\xc7\x04\ + \x02\x1b\n\r\n\x05\x04\x0c\x02\x03\x01\x12\x04\xc7\x04\x1c$\n\r\n\x05\ + \x04\x0c\x02\x03\x03\x12\x04\xc7\x04'(\n\x8d\x01\n\x02\x04\r\x12\x06\xcc\ + \x04\0\xdb\x04\x01\x1a\x7f\x20Metadata\x20type\x20for\x20the\x20operatio\ n\x20returned\x20by\n\x20[UpdateInstance][google.spanner.admin.instance.\ - v1.InstanceAdmin.UpdateInstance].\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\ + v1.InstanceAdmin.UpdateInstance].\n\n\x0b\n\x03\x04\r\x01\x12\x04\xcc\ + \x04\x08\x1e\n4\n\x04\x04\r\x02\0\x12\x04\xce\x04\x02\x18\x1a&\x20The\ \x20desired\x20end\x20state\x20of\x20the\x20update.\n\n\x0f\n\x05\x04\r\ - \x02\0\x04\x12\x06\xd5\x04\x02\xd3\x04\x20\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[UpdateI\ + \x02\0\x04\x12\x06\xce\x04\x02\xcc\x04\x20\n\r\n\x05\x04\r\x02\0\x06\x12\ + \x04\xce\x04\x02\n\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xce\x04\x0b\x13\n\r\ + \n\x05\x04\r\x02\0\x03\x12\x04\xce\x04\x16\x17\n\x88\x01\n\x04\x04\r\x02\ + \x01\x12\x04\xd2\x04\x02+\x1az\x20The\x20time\x20at\x20which\x20[UpdateI\ nstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]\ \n\x20request\x20was\x20received.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\ - \x06\xd9\x04\x02\xd5\x04\x18\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\x20opera\ + \x06\xd2\x04\x02\xce\x04\x18\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xd2\x04\ + \x02\x1b\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xd2\x04\x1c&\n\r\n\x05\x04\ + \r\x02\x01\x03\x12\x04\xd2\x04)*\n\xbd\x01\n\x04\x04\r\x02\x02\x12\x04\ + \xd7\x04\x02,\x1a\xae\x01\x20The\x20time\x20at\x20which\x20this\x20opera\ tion\x20was\x20cancelled.\x20If\x20set,\x20this\x20operation\x20is\n\x20\ in\x20the\x20process\x20of\x20undoing\x20itself\x20(which\x20is\x20guara\ nteed\x20to\x20succeed)\x20and\n\x20cannot\x20be\x20cancelled\x20again.\ - \n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xde\x04\x02\xd9\x04+\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\x20whi\ + \n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xd7\x04\x02\xd2\x04+\n\r\n\x05\ + \x04\r\x02\x02\x06\x12\x04\xd7\x04\x02\x1b\n\r\n\x05\x04\r\x02\x02\x01\ + \x12\x04\xd7\x04\x1c'\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\xd7\x04*+\nV\n\ + \x04\x04\r\x02\x03\x12\x04\xda\x04\x02)\x1aH\x20The\x20time\x20at\x20whi\ ch\x20this\x20operation\x20failed\x20or\x20was\x20completed\x20successfu\ - lly.\n\n\x0f\n\x05\x04\r\x02\x03\x04\x12\x06\xe1\x04\x02\xde\x04,\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\ + lly.\n\n\x0f\n\x05\x04\r\x02\x03\x04\x12\x06\xda\x04\x02\xd7\x04,\n\r\n\ + \x05\x04\r\x02\x03\x06\x12\x04\xda\x04\x02\x1b\n\r\n\x05\x04\r\x02\x03\ + \x01\x12\x04\xda\x04\x1c$\n\r\n\x05\x04\r\x02\x03\x03\x12\x04\xda\x04'(b\ \x06proto3\ "; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs index 9d395ead21..95a98aae0a 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs @@ -263,36 +263,16 @@ impl InstanceAdminClient { } pub trait InstanceAdmin { - fn list_instance_configs(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::ListInstanceConfigsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_instance_config(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::GetInstanceConfigRequest, 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) - } - fn get_instance(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::GetInstanceRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn create_instance(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::CreateInstanceRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_instance(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::UpdateInstanceRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_instance(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::DeleteInstanceRequest, 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) - } + fn list_instance_configs(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::ListInstanceConfigsRequest, sink: ::grpcio::UnarySink); + fn get_instance_config(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::GetInstanceConfigRequest, sink: ::grpcio::UnarySink); + fn list_instances(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::ListInstancesRequest, sink: ::grpcio::UnarySink); + fn get_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::GetInstanceRequest, sink: ::grpcio::UnarySink); + fn create_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::CreateInstanceRequest, sink: ::grpcio::UnarySink); + fn update_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::UpdateInstanceRequest, sink: ::grpcio::UnarySink); + fn delete_instance(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner_instance_admin::DeleteInstanceRequest, sink: ::grpcio::UnarySink); + fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); } pub fn create_instance_admin(s: S) -> ::grpcio::Service { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/keys.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/keys.rs index aa939e5547..a7911fe63b 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/keys.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/keys.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct KeyRange { @@ -732,152 +732,153 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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/\ + \xaf\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\x85,\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\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\xa2\x01\x02\x9d\x01\x1f\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\ + 1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanne\ + r::V1J\x98,\n\x07\x12\x05\x0e\0\xa3\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\ + \x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\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\x08\n\x01\x08\ + \x12\x03\x1b\03\n\t\n\x02\x08-\x12\x03\x1b\03\n\xb5\x15\n\x02\x04\0\x12\ + \x05u\0\x8b\x01\x01\x1a\xa7\x15\x20KeyRange\x20represents\x20a\x20range\ + \x20of\x20rows\x20in\x20a\x20table\x20or\x20index.\n\n\x20A\x20range\x20\ + has\x20a\x20start\x20key\x20and\x20an\x20end\x20key.\x20These\x20keys\ + \x20can\x20be\x20open\x20or\n\x20closed,\x20indicating\x20if\x20the\x20r\ + ange\x20includes\x20rows\x20with\x20that\x20key.\n\n\x20Keys\x20are\x20r\ + epresented\x20by\x20lists,\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.Type\ + Code].\n\n\x20For\x20example,\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)\x20PRIMAR\ + Y\x20KEY(UserName,\x20EventDate);\n\n\x20The\x20following\x20keys\x20nam\ + e\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`UserEvents`\x20table's\x20`PRIMARY\x20KEY`\x20claus\ + e\x20names\x20two\n\x20columns,\x20each\x20`UserEvents`\x20key\x20has\ + \x20two\x20elements;\x20the\x20first\x20is\x20the\n\x20`UserName`,\x20an\ + d\x20the\x20second\x20is\x20the\x20`EventDate`.\n\n\x20Key\x20ranges\x20\ + with\x20multiple\x20components\x20are\x20interpreted\n\x20lexicographica\ + lly\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\"`\x20t\ + hat\x20occurred\x20in\x20the\x20year\x202015:\n\n\x20\x20\x20\x20\x20\"s\ + tart_closed\":\x20[\"Bob\",\x20\"2015-01-01\"]\n\x20\x20\x20\x20\x20\"en\ + d_closed\":\x20[\"Bob\",\x20\"2015-12-31\"]\n\n\x20Start\x20and\x20end\ + \x20keys\x20can\x20omit\x20trailing\x20key\x20components.\x20This\x20aff\ + ects\x20the\n\x20inclusion\x20and\x20exclusion\x20of\x20rows\x20that\x20\ + exactly\x20match\x20the\x20provided\x20key\n\x20components:\x20if\x20the\ + \x20key\x20is\x20closed,\x20then\x20rows\x20that\x20exactly\x20match\x20\ + the\n\x20provided\x20components\x20are\x20included;\x20if\x20the\x20key\ + \x20is\x20open,\x20then\x20rows\n\x20that\x20exactly\x20match\x20are\x20\ + not\x20included.\n\n\x20For\x20example,\x20the\x20following\x20range\x20\ + includes\x20all\x20events\x20for\x20`\"Bob\"`\x20that\n\x20occurred\x20d\ + uring\x20and\x20after\x20the\x20year\x202000:\n\n\x20\x20\x20\x20\x20\"s\ + tart_closed\":\x20[\"Bob\",\x20\"2000-01-01\"]\n\x20\x20\x20\x20\x20\"en\ + d_closed\":\x20[\"Bob\"]\n\n\x20The\x20next\x20example\x20retrieves\x20a\ + ll\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\"start_closed\":\x20[\"Bob\"]\n\x20\x20\x20\x20\x20\"en\ + d_open\":\x20[\"Bob\",\x20\"2000-01-01\"]\n\n\x20The\x20following\x20ran\ + ge\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\x03u\x08\x10\nP\n\x04\x04\0\x08\0\x12\x04w\x02\x7f\x03\ + \x1aB\x20The\x20start\x20key\x20must\x20be\x20provided.\x20It\x20can\x20\ + be\x20either\x20closed\x20or\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\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\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\x03z-.\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\x82\ + \x01\x02\x8a\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\x82\x01\x08\x14\n\x8d\x01\n\x04\x04\0\x02\x02\x12\ + \x04\x85\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\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\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\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`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\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\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\ + \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.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\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\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\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\ + \xa2\x01\x02\x9d\x01\x1f\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/mutation.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/mutation.rs index 41fd6a2a69..b95f12436e 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/mutation.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/mutation.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct Mutation { @@ -1013,120 +1013,132 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\ + \n\toperationB\xb3\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\xde!\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\x15\x1a1\x20Required.\x20The\x20table\x20whose\x20ro\ - ws\x20will\x20be\x20written.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04\ - &\x04$\x11\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\x20columns\x20in\x20[table\ - ][google.spanner.v1.Mutation.Write.table]\x20to\x20be\x20written.\n\n\ - \x20The\x20list\x20of\x20columns\x20must\x20contain\x20enough\x20columns\ - \x20to\x20allow\n\x20Cloud\x20Spanner\x20to\x20derive\x20values\x20for\ - \x20all\x20primary\x20key\x20columns\x20in\x20the\n\x20row(s)\x20to\x20b\ - e\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\x20cont\ - ain\x20more\x20than\x20one\n\x20list\x20of\x20values.\x20If\x20it\x20doe\ - s,\x20then\x20multiple\x20rows\x20are\x20written,\x20one\n\x20for\x20eac\ - h\x20entry\x20in\x20`values`.\x20Each\x20list\x20in\x20`values`\x20must\ - \x20have\n\x20exactly\x20as\x20many\x20entries\x20as\x20there\x20are\x20\ - entries\x20in\x20[columns][google.spanner.v1.Mutation.Write.columns]\n\ - \x20above.\x20Sending\x20multiple\x20lists\x20is\x20equivalent\x20to\x20\ - sending\x20multiple\n\x20`Mutation`s,\x20each\x20containing\x20one\x20`v\ - alues`\x20entry\x20and\x20repeating\n\x20[table][google.spanner.v1.Mutat\ - ion.Write.table]\x20and\x20[columns][google.spanner.v1.Mutation.Write.co\ - lumns].\x20Individual\x20values\x20in\x20each\x20list\x20are\n\x20encode\ - d\x20as\x20described\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;\x02C\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\x15\x1a1\x20Required.\ - \x20The\x20table\x20whose\x20rows\x20will\x20be\x20deleted.\n\n\x0f\n\ - \x07\x04\0\x03\x01\x02\0\x04\x12\x04=\x04;\x12\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][goo\ - gle.spanner.v1.Mutation.Delete.table]\x20to\x20delete.\n\x20Delete\x20is\ - \x20idempotent.\x20The\x20transaction\x20will\x20succeed\x20even\x20if\ - \x20some\x20or\x20all\n\x20rows\x20do\x20not\x20exist.\n\n\x0f\n\x07\x04\ - \0\x03\x01\x02\x01\x04\x12\x04B\x04=\x15\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\x20\ - to\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.\x20If\x20any\x20of\x20the\x20rows\x20already\x20exist,\n\ - \x20the\x20write\x20or\x20transaction\x20fails\x20with\x20error\x20`ALRE\ - ADY_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\x20ex\ - isting\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.inse\ - rt],\x20except\x20that\x20if\x20the\x20row\x20already\x20exists,\x20then\ - \n\x20its\x20column\x20values\x20are\x20overwritten\x20with\x20the\x20on\ - es\x20provided.\x20Any\n\x20column\x20values\x20not\x20explicitly\x20wri\ - tten\x20are\x20preserved.\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],\x20exce\ - pt\x20that\x20if\x20the\x20row\x20already\x20exists,\x20it\x20is\n\x20de\ - leted,\x20and\x20the\x20column\x20values\x20provided\x20are\x20inserted\ - \n\x20instead.\x20Unlike\x20[insert_or_update][google.spanner.v1.Mutatio\ - n.insert_or_update],\x20this\x20means\x20any\x20values\x20not\n\x20expli\ - citly\x20written\x20become\x20`NULL`.\n\n\x20In\x20an\x20interleaved\x20\ - table,\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\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\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\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\ + le.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoo\ + gle::Cloud::Spanner::V1J\xd2%\n\x06\x12\x04\x0e\0j\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\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\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\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\x20\ + rows.\x20\x20Mutations\x20can\x20be\n\x20applied\x20to\x20a\x20Cloud\x20\ + Spanner\x20database\x20by\x20sending\x20them\x20in\x20a\n\x20[Commit][go\ + ogle.spanner.v1.Spanner.Commit]\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\x20Ar\ + guments\x20to\x20[insert][google.spanner.v1.Mutation.insert],\x20[update\ + ][google.spanner.v1.Mutation.update],\x20[insert_or_update][google.spann\ + er.v1.Mutation.insert_or_update],\x20and\n\x20[replace][google.spanner.v\ + 1.Mutation.replace]\x20operations.\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\x15\x1a1\x20Required.\ + \x20The\x20table\x20whose\x20rows\x20will\x20be\x20written.\n\n\x0f\n\ + \x07\x04\0\x03\0\x02\0\x04\x12\x04&\x04$\x11\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\x20t\ + he\x20columns\x20in\x20[table][google.spanner.v1.Mutation.Write.table]\ + \x20to\x20be\x20written.\n\n\x20The\x20list\x20of\x20columns\x20must\x20\ + contain\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\x20values\x20to\x20be\x20wri\ + tten.\x20`values`\x20can\x20contain\x20more\x20than\x20one\n\x20list\x20\ + of\x20values.\x20If\x20it\x20does,\x20then\x20multiple\x20rows\x20are\ + \x20written,\x20one\n\x20for\x20each\x20entry\x20in\x20`values`.\x20Each\ + \x20list\x20in\x20`values`\x20must\x20have\n\x20exactly\x20as\x20many\ + \x20entries\x20as\x20there\x20are\x20entries\x20in\x20[columns][google.s\ + panner.v1.Mutation.Write.columns]\n\x20above.\x20Sending\x20multiple\x20\ + lists\x20is\x20equivalent\x20to\x20sending\x20multiple\n\x20`Mutation`s,\ + \x20each\x20containing\x20one\x20`values`\x20entry\x20and\x20repeating\n\ + \x20[table][google.spanner.v1.Mutation.Write.table]\x20and\x20[columns][\ + google.spanner.v1.Mutation.Write.columns].\x20Individual\x20values\x20in\ + \x20each\x20list\x20are\n\x20encoded\x20as\x20described\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\x15\x1a1\x20Required.\x20The\x20table\x20whose\x20rows\x20will\ + \x20be\x20deleted.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\x04\x12\x04=\x04;\ + \x12\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\x94\x03\n\x06\x04\0\x03\x01\x02\x01\x12\x03E\x04\ + \x17\x1a\x84\x03\x20Required.\x20The\x20primary\x20keys\x20of\x20the\x20\ + rows\x20within\x20[table][google.spanner.v1.Mutation.Delete.table]\x20to\ + \x20delete.\x20\x20The\n\x20primary\x20keys\x20must\x20be\x20specified\ + \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\x0f\n\x07\x04\0\x03\x01\x02\x01\x04\x12\x04E\x04=\ + \x15\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\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|\x20Insert\x20new\x20rows\x20in\x20a\x20table.\x20If\x20any\x20of\ + \x20the\x20rows\x20already\x20exist,\n\x20the\x20write\x20or\x20transact\ + ion\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\x20t\ + able.\x20If\x20any\x20of\x20the\x20rows\x20does\x20not\n\x20already\x20e\ + xist,\x20the\x20transaction\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\x20\ + row\x20already\x20exists,\x20then\n\x20its\x20column\x20values\x20are\ + \x20overwritten\x20with\x20the\x20ones\x20provided.\x20Any\n\x20column\ + \x20values\x20not\x20explicitly\x20written\x20are\x20preserved.\n\n\x20W\ + hen\x20using\x20[insert_or_update][google.spanner.v1.Mutation.insert_or_\ + update],\x20just\x20as\x20when\x20using\x20[insert][google.spanner.v1.Mu\ + tation.insert],\x20all\x20`NOT\n\x20NULL`\x20columns\x20in\x20the\x20tab\ + le\x20must\x20be\x20given\x20a\x20value.\x20This\x20holds\x20true\n\x20e\ + ven\x20when\x20the\x20row\x20already\x20exists\x20and\x20will\x20therefo\ + re\x20actually\x20be\x20updated.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\ + Y\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\x20deleted,\x20and\x20the\x20column\x20values\x20provided\x20are\x20i\ + nserted\n\x20instead.\x20Unlike\x20[insert_or_update][google.spanner.v1.\ + Mutation.insert_or_update],\x20this\x20means\x20any\x20values\x20not\n\ + \x20explicitly\x20written\x20become\x20`NULL`.\n\n\x20In\x20an\x20interl\ + eaved\x20table,\x20if\x20you\x20create\x20the\x20child\x20table\x20with\ + \x20the\n\x20`ON\x20DELETE\x20CASCADE`\x20annotation,\x20then\x20replaci\ + ng\x20a\x20parent\x20row\n\x20also\x20deletes\x20the\x20child\x20rows.\ + \x20Otherwise,\x20you\x20must\x20delete\x20the\n\x20child\x20rows\x20bef\ + ore\x20you\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\ + \x20whether\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\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/query_plan.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/query_plan.rs index dddbd02434..362f1417d7 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/query_plan.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/query_plan.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct PlanNode { @@ -1140,158 +1140,159 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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.\ + \x03(\x0b2\x1b.google.spanner.v1.PlanNodeR\tplanNodesB\xb4\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\xc8*\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\x0f\n\x07\x04\0\x03\0\ - \x02\0\x04\x12\x04#\x04!\x15\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.\x20Fo\ - r\x20example,\x20in\x20Hash\x20Joins\x20this\x20could\x20be\x20used\x20t\ - o\n\x20distinguish\x20between\x20the\x20build\x20child\x20and\x20the\x20\ - probe\x20child,\x20or\x20in\x20the\x20case\n\x20of\x20the\x20child\x20be\ - ing\x20an\x20output\x20variable,\x20to\x20represent\x20the\x20tag\x20ass\ - ociated\n\x20with\x20the\x20output\x20variable.\n\n\x0f\n\x07\x04\0\x03\ - \0\x02\x01\x04\x12\x04)\x04#\x1a\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.SCAL\ - AR]\x20and\x20corresponds\n\x20to\x20an\x20output\x20variable\x20of\x20t\ - he\x20parent\x20node.\x20The\x20field\x20carries\x20the\x20name\x20of\n\ - \x20the\x20output\x20variable.\n\x20For\x20example,\x20a\x20`TableScan`\ - \x20operator\x20that\x20reads\x20rows\x20from\x20a\x20table\x20will\n\ - \x20have\x20child\x20links\x20to\x20the\x20`SCALAR`\x20nodes\x20represen\ - ting\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\x0f\n\x07\x04\0\x03\ - \0\x02\x02\x04\x12\x043\x04)\x14\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`SCALA\ - R`\x20[PlanNode(s)][google.spanner.v1.PlanNode].\n\n\x0c\n\x05\x04\0\x03\ - \x01\x01\x12\x038\n\x1d\nW\n\x06\x04\0\x03\x01\x02\0\x12\x03:\x04\x1b\ - \x1aH\x20A\x20string\x20representation\x20of\x20the\x20expression\x20sub\ - tree\x20rooted\x20at\x20this\x20node.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\ - \x04\x12\x04:\x048\x1f\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\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(subquery\x20var\ - iable\x20name)\x20->\x20(subquery\x20node\x20id)\x20for\x20cases\n\x20wh\ - ere\x20the\x20`description`\x20string\x20of\x20this\x20node\x20reference\ - s\x20a\x20`SCALAR`\n\x20subquery\x20contained\x20in\x20the\x20expression\ - \x20subtree\x20rooted\x20at\x20this\x20node.\x20The\n\x20referenced\x20`\ - SCALAR`\x20subquery\x20may\x20not\x20necessarily\x20be\x20a\x20direct\ - \x20child\x20of\n\x20this\x20node.\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\ - \x04\x12\x04A\x04:\x1b\n\x0e\n\x07\x04\0\x03\x01\x02\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[PlanNode][google.spa\ - nner.v1.PlanNode].\x20Distinguishes\x20between\x20the\x20two\x20differen\ - t\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\x20specified.\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\x20operator\x20node\x20in\ - \x20the\x20expression\x20tree.\x20Relational\n\x20operators\x20represent\ - \x20iterative\x20processing\x20of\x20rows\x20during\x20query\x20executio\ - n.\n\x20For\x20example,\x20a\x20`TableScan`\x20operation\x20that\x20read\ - s\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\x20Denot\ - es\x20a\x20Scalar\x20node\x20in\x20the\x20expression\x20tree.\x20Scalar\ - \x20nodes\x20represent\n\x20non-iterable\x20entities\x20in\x20the\x20que\ - ry\x20plan.\x20For\x20example,\x20constants\x20or\n\x20arithmetic\x20ope\ - rators\x20appearing\x20inside\x20predicate\x20expressions\x20or\x20refer\ - ences\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.QueryPlan.plan_nodes].\n\n\r\ - \n\x05\x04\0\x02\0\x04\x12\x04W\x02T\x03\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]\x20nod\ - e,\x20it\x20will\x20have\x20a\x20condensed\x20representation\n\x20which\ - \x20can\x20be\x20used\x20to\x20directly\x20embed\x20a\x20description\x20\ - of\x20the\x20node\x20in\x20its\n\x20parent.\n\n\r\n\x05\x04\0\x02\x01\ - \x04\x12\x04^\x02W\x12\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\r\n\x05\x04\0\x02\ - \x02\x04\x12\x04a\x02^\x10\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\x20L\ - ist\x20of\x20child\x20node\x20`index`es\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\x20Condensed\x20representation\x20\ - for\x20[SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR]\x20nodes.\n\n\r\ - \n\x05\x04\0\x02\x04\x04\x12\x04g\x02d%\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\x20cont\ - ained\x20in\x20a\x20group\x20of\x20key-value\x20pairs.\n\x20For\x20examp\ - le,\x20a\x20Parameter\x20Reference\x20node\x20could\x20have\x20the\x20fo\ - llowing\n\x20information\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\r\n\x05\x04\0\x02\x05\x04\x12\x04q\x02g/\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\x20execution\x20statisti\ - cs\x20associated\x20with\x20the\x20node,\x20contained\x20in\x20a\x20grou\ - p\x20of\n\x20key-value\x20pairs.\x20Only\x20present\x20if\x20the\x20plan\ - \x20was\x20returned\x20as\x20a\x20result\x20of\x20a\n\x20profile\x20quer\ - y.\x20For\x20example,\x20number\x20of\x20executions,\x20number\x20of\x20\ - rows/time\x20per\n\x20execution\x20etc.\n\n\r\n\x05\x04\0\x02\x06\x04\ - \x12\x04w\x02q&\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\x20\ - query\x20plan.\x20Plan\x20nodes\x20are\x20returned\x20in\x20pre-order\ - \x20starting\n\x20with\x20the\x20plan\x20root.\x20Each\x20[PlanNode][goo\ - gle.spanner.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\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\ + \x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1J\ + \xdb*\n\x07\x12\x05\x0e\0\x80\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb1\x04\x20Copyright\x202020\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\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\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\x08\n\x01\x08\x12\x03\x1b\03\n\t\ + \n\x02\x08-\x12\x03\x1b\03\nw\n\x02\x04\0\x12\x04\x1e\0x\x01\x1ak\x20Nod\ + e\x20information\x20for\x20nodes\x20appearing\x20in\x20a\x20[QueryPlan.p\ + lan_nodes][google.spanner.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\x20\ + Metadata\x20associated\x20with\x20a\x20parent-child\x20relationship\x20a\ + ppearing\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\x20node\x20to\x20which\x20the\x20link\x20points.\n\ + \n\x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04#\x04!\x15\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\ + \x20could\x20be\x20used\x20to\n\x20distinguish\x20between\x20the\x20buil\ + d\x20child\x20and\x20the\x20probe\x20child,\x20or\x20in\x20the\x20case\n\ + \x20of\x20the\x20child\x20being\x20an\x20output\x20variable,\x20to\x20re\ + present\x20the\x20tag\x20associated\n\x20with\x20the\x20output\x20variab\ + le.\n\n\x0f\n\x07\x04\0\x03\0\x02\x01\x04\x12\x04)\x04#\x1a\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][goog\ + le.spanner.v1.PlanNode.Kind.SCALAR]\x20and\x20corresponds\n\x20to\x20an\ + \x20output\x20variable\x20of\x20the\x20parent\x20node.\x20The\x20field\ + \x20carries\x20the\x20name\x20of\n\x20the\x20output\x20variable.\n\x20Fo\ + r\x20example,\x20a\x20`TableScan`\x20operator\x20that\x20reads\x20rows\ + \x20from\x20a\x20table\x20will\n\x20have\x20child\x20links\x20to\x20the\ + \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\x0f\n\x07\x04\0\x03\0\x02\x02\x04\x12\x043\x04)\x14\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{\x20Co\ + ndensed\x20representation\x20of\x20a\x20node\x20and\x20its\x20subtree.\ + \x20Only\x20present\x20for\n\x20`SCALAR`\x20[PlanNode(s)][google.spanner\ + .v1.PlanNode].\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x038\n\x1d\nW\n\x06\ + \x04\0\x03\x01\x02\0\x12\x03:\x04\x1b\x1aH\x20A\x20string\x20representat\ + ion\x20of\x20the\x20expression\x20subtree\x20rooted\x20at\x20this\x20nod\ + e.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\x04\x12\x04:\x048\x1f\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\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\x20\ + A\x20mapping\x20of\x20(subquery\x20variable\x20name)\x20->\x20(subquery\ + \x20node\x20id)\x20for\x20cases\n\x20where\x20the\x20`description`\x20st\ + ring\x20of\x20this\x20node\x20references\x20a\x20`SCALAR`\n\x20subquery\ + \x20contained\x20in\x20the\x20expression\x20subtree\x20rooted\x20at\x20t\ + his\x20node.\x20The\n\x20referenced\x20`SCALAR`\x20subquery\x20may\x20no\ + t\x20necessarily\x20be\x20a\x20direct\x20child\x20of\n\x20this\x20node.\ + \n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x04\x12\x04A\x04:\x1b\n\x0e\n\x07\ + \x04\0\x03\x01\x02\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\x03\ + A$%\n\x9d\x01\n\x04\x04\0\x04\0\x12\x04F\x02T\x03\x1a\x8e\x01\x20The\x20\ + kind\x20of\x20[PlanNode][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\x20specified.\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\x20operator\x20node\x20in\x20the\x20expression\x20tree.\ + \x20Relational\n\x20operators\x20represent\x20iterative\x20processing\ + \x20of\x20rows\x20during\x20query\x20execution.\n\x20For\x20example,\x20\ + a\x20`TableScan`\x20operation\x20that\x20reads\x20rows\x20from\x20a\x20t\ + able.\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\x20expression\x20tree.\x20Scalar\x20nodes\x20represent\n\ + \x20non-iterable\x20entities\x20in\x20the\x20query\x20plan.\x20For\x20ex\ + ample,\x20constants\x20or\n\x20arithmetic\x20operators\x20appearing\x20i\ + nside\x20predicate\x20expressions\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\x03\ + W\x02\x12\x1aP\x20The\x20`PlanNode`'s\x20index\x20in\x20[node\x20list][g\ + oogle.spanner.v1.QueryPlan.plan_nodes].\n\n\r\n\x05\x04\0\x02\0\x04\x12\ + \x04W\x02T\x03\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\x20differe\ + ntly.\x20For\x20example,\x20If\x20the\x20node\x20is\x20a\n\x20[SCALAR][g\ + oogle.spanner.v1.PlanNode.Kind.SCALAR]\x20node,\x20it\x20will\x20have\ + \x20a\x20condensed\x20representation\n\x20which\x20can\x20be\x20used\x20\ + to\x20directly\x20embed\x20a\x20description\x20of\x20the\x20node\x20in\ + \x20its\n\x20parent.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04^\x02W\x12\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\r\n\x05\x04\0\x02\x02\x04\x12\x04a\x02^\x10\ + \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\n\ + R\n\x04\x04\0\x02\x03\x12\x03d\x02%\x1aE\x20List\x20of\x20child\x20node\ + \x20`index`es\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\x20Condensed\x20representation\x20for\x20[SCALAR][google.span\ + ner.v1.PlanNode.Kind.SCALAR]\x20nodes.\n\n\r\n\x05\x04\0\x02\x04\x04\x12\ + \x04g\x02d%\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\x20Parameter\x20Refere\ + nce\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_reference\":\x20\"param1\",\n\x20\x20\x20\x20\x20\x20\ + \x20\"parameter_type\":\x20\"array\"\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\ + \x04\0\x02\x05\x04\x12\x04q\x02g/\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\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\x20example,\x20numbe\ + r\x20of\x20executions,\x20number\x20of\x20rows/time\x20per\n\x20executio\ + n\x20etc.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04w\x02q&\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; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/result_set.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/result_set.rs index 005c864548..8b787bc34d 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/result_set.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/result_set.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct ResultSet { @@ -1246,176 +1246,177 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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\ + \xb7\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\xd2@\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\r\n\x05\x04\0\x02\0\x04\x12\ - \x04%\x02#\x13\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][google.spanner.v1.ResultSetMe\ - tadata.row_type].\x20The\x20ith\x20element\n\x20in\x20each\x20row\x20mat\ - ches\x20the\x20ith\x20field\x20in\n\x20[metadata.row_type][google.spanne\ - r.v1.ResultSetMetadata.row_type].\x20Elements\x20are\n\x20encoded\x20bas\ - ed\x20on\x20type\x20as\x20described\n\x20[here][google.spanner.v1.TypeCo\ - de].\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\x20st\ - atistics\x20for\x20the\x20SQL\x20statement\x20that\n\x20produced\x20this\ - \x20result\x20set.\x20These\x20can\x20be\x20requested\x20by\x20setting\n\ - \x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.q\ - uery_mode].\n\x20DML\x20statements\x20always\x20produce\x20stats\x20cont\ - aining\x20the\x20number\x20of\x20rows\n\x20modified,\x20unless\x20execut\ - ed\x20using\x20the\n\x20[ExecuteSqlRequest.QueryMode.PLAN][google.spanne\ - r.v1.ExecuteSqlRequest.QueryMode.PLAN]\x20[ExecuteSqlRequest.query_mode]\ - [google.spanner.v1.ExecuteSqlRequest.query_mode].\n\x20Other\x20fields\ - \x20may\x20or\x20may\x20not\x20be\x20populated,\x20based\x20on\x20the\n\ - \x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.q\ - uery_mode].\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x047\x02-.\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\x20fro\ - m\x20a\x20streaming\x20read\x20or\x20SQL\x20query.\x20Streaming\x20reads\ - \x20and\n\x20SQL\x20queries\x20better\x20tolerate\x20large\x20result\x20\ - sets,\x20large\x20rows,\x20and\x20large\n\x20values,\x20but\x20are\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\x20information.\n\ - \x20Only\x20present\x20in\x20the\x20first\x20response.\n\n\r\n\x05\x04\ - \x01\x02\0\x04\x12\x04@\x02=\x1a\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\x20consists\ - \x20of\x20a\x20stream\x20of\x20values,\x20which\x20might\n\x20be\x20spli\ - t\x20into\x20many\x20`PartialResultSet`\x20messages\x20to\x20accommodate\ - \n\x20large\x20rows\x20and/or\x20large\x20values.\x20Every\x20N\x20compl\ - ete\x20values\x20defines\x20a\n\x20row,\x20where\x20N\x20is\x20equal\x20\ - to\x20the\x20number\x20of\x20entries\x20in\n\x20[metadata.row_type.field\ - s][google.spanner.v1.StructType.fields].\n\n\x20Most\x20values\x20are\ + gle.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGo\ + ogle::Cloud::Spanner::V1J\xe5@\n\x07\x12\x05\x0e\0\xcc\x01\x01\n\xbc\x04\ + \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\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\04\n\t\n\x02\x08%\x12\x03\x19\04\n\x08\n\ + \x01\x08\x12\x03\x1a\0O\n\t\n\x02\x08\x0b\x12\x03\x1a\0O\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\04\n\t\n\ + \x02\x08)\x12\x03\x1e\04\n\x08\n\x01\x08\x12\x03\x1f\03\n\t\n\x02\x08-\ + \x12\x03\x1f\03\ny\n\x02\x04\0\x12\x04#\08\x01\x1am\x20Results\x20from\ + \x20[Read][google.spanner.v1.Spanner.Read]\x20or\n\x20[ExecuteSql][googl\ + e.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\x20\ + result\x20set,\x20such\x20as\x20row\x20type\x20information.\n\n\r\n\x05\ + \x04\0\x02\0\x04\x12\x04%\x02#\x13\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\x20who\ + se\x20format\x20is\x20defined\x20by\n\x20[metadata.row_type][google.span\ + ner.v1.ResultSetMetadata.row_type].\x20The\x20ith\x20element\n\x20in\x20\ + each\x20row\x20matches\x20the\x20ith\x20field\x20in\n\x20[metadata.row_t\ + ype][google.spanner.v1.ResultSetMetadata.row_type].\x20Elements\x20are\n\ \x20encoded\x20based\x20on\x20type\x20as\x20described\n\x20[here][google\ - .spanner.v1.TypeCode].\n\n\x20It\x20is\x20possible\x20that\x20the\x20las\ - t\x20value\x20in\x20values\x20is\x20\"chunked\",\n\x20meaning\x20that\ - \x20the\x20rest\x20of\x20the\x20value\x20is\x20sent\x20in\x20subsequent\ - \n\x20`PartialResultSet`(s).\x20This\x20is\x20denoted\x20by\x20the\x20[c\ - hunked_value][google.spanner.v1.PartialResultSet.chunked_value]\n\x20fie\ - ld.\x20Two\x20or\x20more\x20chunked\x20values\x20can\x20be\x20merged\x20\ - to\x20form\x20a\n\x20complete\x20value\x20as\x20follows:\n\n\x20\x20\x20\ - *\x20`bool/number/null`:\x20cannot\x20be\x20chunked\n\x20\x20\x20*\x20`s\ - tring`:\x20concatenate\x20the\x20strings\n\x20\x20\x20*\x20`list`:\x20co\ - ncatenate\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\x20these\x20rules\ - \x20recursively.\n\x20\x20\x20*\x20`object`:\x20concatenate\x20the\x20(f\ - ield\x20name,\x20field\x20value)\x20pairs.\x20If\x20a\n\x20\x20\x20\x20\ - \x20field\x20name\x20is\x20duplicated,\x20then\x20apply\x20these\x20rule\ - s\x20recursively\n\x20\x20\x20\x20\x20to\x20merge\x20the\x20field\x20val\ - ues.\n\n\x20Some\x20examples\x20of\x20merging:\n\n\x20\x20\x20\x20\x20#\ - \x20Strings\x20are\x20concatenated.\n\x20\x20\x20\x20\x20\"foo\",\x20\"b\ - ar\"\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\x20co\ - ncatenated,\x20but\x20the\x20last\x20and\x20first\x20elements\x20are\x20\ - merged\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#\x20Lists\x20are\x20co\ - ncatenated,\x20but\x20the\x20last\x20and\x20first\x20elements\x20are\x20\ - merged\n\x20\x20\x20\x20\x20#\x20because\x20they\x20are\x20lists.\x20Rec\ - ursively,\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\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\x20fields\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#\x20Examples\x20of\x20merging\x20objects\x20con\ - taining\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\x20a\x20streaming\x20SQ\ - L\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[\"orl\"]\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`PartialResultSet`s\x20en\ - codes\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.spanner.v1.P\ - artialResultSet.values]\x20is\x20chunked,\x20and\x20must\n\x20be\x20comb\ - ined\x20with\x20more\x20values\x20from\x20subsequent\x20`PartialResultSe\ - t`s\n\x20to\x20obtain\x20a\x20complete\x20field\x20value.\n\n\x0f\n\x05\ - \x04\x01\x02\x02\x04\x12\x06\x90\x01\x02\x8b\x01,\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\x20St\ - reaming\x20calls\x20might\x20be\x20interrupted\x20for\x20a\x20variety\ - \x20of\x20reasons,\x20such\n\x20as\x20TCP\x20connection\x20loss.\x20If\ - \x20this\x20occurs,\x20the\x20stream\x20of\x20results\x20can\n\x20be\x20\ - resumed\x20by\x20re-sending\x20the\x20original\x20request\x20and\x20incl\ - uding\n\x20`resume_token`.\x20Note\x20that\x20executing\x20any\x20other\ - \x20transaction\x20in\x20the\n\x20same\x20session\x20invalidates\x20the\ - \x20token.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x97\x01\x02\x90\x01\ - \x19\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\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.q\ - uery_mode]\x20and\x20are\x20sent\n\x20only\x20once\x20with\x20the\x20las\ - t\x20response\x20in\x20the\x20stream.\n\x20This\x20field\x20will\x20also\ - \x20be\x20present\x20in\x20the\x20last\x20response\x20for\x20DML\n\x20st\ - atements.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\x9f\x01\x02\x97\x01\ - \x19\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\x20a\x20[ResultSet][google.spanner.v1\ - .ResultSet]\x20or\x20[PartialResultSet][google.spanner.v1.PartialResultS\ - et].\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\x20for\x20the\x20rows\x20in\x20the\ + .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\x20execu\ + tion\x20statistics\x20for\x20the\x20SQL\x20statement\x20that\n\x20produc\ + ed\x20this\x20result\x20set.\x20These\x20can\x20be\x20requested\x20by\ + \x20setting\n\x20[ExecuteSqlRequest.query_mode][google.spanner.v1.Execut\ + eSqlRequest.query_mode].\n\x20DML\x20statements\x20always\x20produce\x20\ + stats\x20containing\x20the\x20number\x20of\x20rows\n\x20modified,\x20unl\ + ess\x20executed\x20using\x20the\n\x20[ExecuteSqlRequest.QueryMode.PLAN][\ + google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]\x20[ExecuteSqlReques\ + t.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].\n\x20Othe\ + r\x20fields\x20may\x20or\x20may\x20not\x20be\x20populated,\x20based\x20o\ + n\x20the\n\x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSq\ + lRequest.query_mode].\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x047\x02-.\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\x20resu\ + lts\x20from\x20a\x20streaming\x20read\x20or\x20SQL\x20query.\x20Streamin\ + g\x20reads\x20and\n\x20SQL\x20queries\x20better\x20tolerate\x20large\x20\ + result\x20sets,\x20large\x20rows,\x20and\x20large\n\x20values,\x20but\ + \x20are\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\x20Metad\ + ata\x20about\x20the\x20result\x20set,\x20such\x20as\x20row\x20type\x20in\ + formation.\n\x20Only\x20present\x20in\x20the\x20first\x20response.\n\n\r\ + \n\x05\x04\x01\x02\0\x04\x12\x04@\x02=\x1a\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\ + \x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\x90\x01\x02\x8b\x01,\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\x20lo\ + ss.\x20If\x20this\x20occurs,\x20the\x20stream\x20of\x20results\x20can\n\ + \x20be\x20resumed\x20by\x20re-sending\x20the\x20original\x20request\x20a\ + nd\x20including\n\x20`resume_token`.\x20Note\x20that\x20executing\x20any\ + \x20other\x20transaction\x20in\x20the\n\x20same\x20session\x20invalidate\ + s\x20the\x20token.\n\n\x0f\n\x05\x04\x01\x02\x03\x04\x12\x06\x97\x01\x02\ + \x90\x01\x19\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\x20execution\x20sta\ + tistics\x20for\x20the\x20statement\x20that\x20produced\x20this\n\x20stre\ + aming\x20result\x20set.\x20These\x20can\x20be\x20requested\x20by\x20sett\ + ing\n\x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequ\ + est.query_mode]\x20and\x20are\x20sent\n\x20only\x20once\x20with\x20the\ + \x20last\x20response\x20in\x20the\x20stream.\n\x20This\x20field\x20will\ + \x20also\x20be\x20present\x20in\x20the\x20last\x20response\x20for\x20DML\ + \n\x20statements.\n\n\x0f\n\x05\x04\x01\x02\x04\x04\x12\x06\x9f\x01\x02\ + \x97\x01\x19\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\x20a\x20[ResultSet][google.span\ + ner.v1.ResultSet]\x20or\x20[PartialResultSet][google.spanner.v1.PartialR\ + esultSet].\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\x20t\ + he\x20field\x20names\x20and\x20types\x20for\x20the\x20rows\x20in\x20the\ \x20result\n\x20set.\x20\x20For\x20example,\x20a\x20SQL\x20query\x20like\ \x20`\"SELECT\x20UserId,\x20UserName\x20FROM\n\x20Users\"`\x20could\x20r\ eturn\x20a\x20`row_type`\x20value\x20like:\n\n\x20\x20\x20\x20\x20\"fiel\ diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner.rs index 38ee00224d..af44244c09 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct CreateSessionRequest { @@ -1782,6 +1782,7 @@ pub struct ExecuteSqlRequest { pub query_mode: ExecuteSqlRequest_QueryMode, pub partition_token: ::std::vec::Vec, pub seqno: i64, + pub query_options: ::protobuf::SingularPtrField, // special fields pub unknown_fields: ::protobuf::UnknownFields, pub cached_size: ::protobuf::CachedSize, @@ -2022,6 +2023,39 @@ impl ExecuteSqlRequest { pub fn set_seqno(&mut self, v: i64) { self.seqno = v; } + + // .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(); + } + + pub fn has_query_options(&self) -> bool { + self.query_options.is_some() + } + + // Param is passed by value, moved + pub fn set_query_options(&mut self, v: ExecuteSqlRequest_QueryOptions) { + self.query_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_query_options(&mut self) -> &mut ExecuteSqlRequest_QueryOptions { + if self.query_options.is_none() { + self.query_options.set_default(); + } + self.query_options.as_mut().unwrap() + } + + // Take field + pub fn take_query_options(&mut self) -> ExecuteSqlRequest_QueryOptions { + self.query_options.take().unwrap_or_else(|| ExecuteSqlRequest_QueryOptions::new()) + } } impl ::protobuf::Message for ExecuteSqlRequest { @@ -2036,6 +2070,11 @@ impl ::protobuf::Message for ExecuteSqlRequest { return false; } }; + for v in &self.query_options { + if !v.is_initialized() { + return false; + } + }; true } @@ -2074,6 +2113,9 @@ impl ::protobuf::Message for ExecuteSqlRequest { let tmp = is.read_int64()?; self.seqno = tmp; }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.query_options)?; + }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; }, @@ -2113,6 +2155,10 @@ impl ::protobuf::Message for ExecuteSqlRequest { 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() { + 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 @@ -2148,6 +2194,11 @@ impl ::protobuf::Message for ExecuteSqlRequest { 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)?; + } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -2231,6 +2282,11 @@ impl ::protobuf::Message for ExecuteSqlRequest { |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 }, + )); ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ExecuteSqlRequest", fields, @@ -2256,6 +2312,7 @@ impl ::protobuf::Clear for ExecuteSqlRequest { self.query_mode = ExecuteSqlRequest_QueryMode::NORMAL; self.partition_token.clear(); self.seqno = 0; + self.query_options.clear(); self.unknown_fields.clear(); } } @@ -2272,6 +2329,165 @@ impl ::protobuf::reflect::ProtobufValue for ExecuteSqlRequest { } } +#[derive(PartialEq,Clone,Default)] +pub struct ExecuteSqlRequest_QueryOptions { + // message fields + pub optimizer_version: ::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()) + } +} + +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)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::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 }, + )); + ::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.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, @@ -5272,6 +5488,7 @@ pub struct CommitRequest { // message fields pub session: ::std::string::String, pub mutations: ::protobuf::RepeatedField, + pub return_commit_stats: bool, // message oneof groups pub transaction: ::std::option::Option, // special fields @@ -5444,6 +5661,21 @@ impl CommitRequest { pub fn take_mutations(&mut self) -> ::protobuf::RepeatedField { ::std::mem::replace(&mut self.mutations, ::protobuf::RepeatedField::new()) } + + // 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; + } + + // Param is passed by value, moved + pub fn set_return_commit_stats(&mut self, v: bool) { + self.return_commit_stats = v; + } } impl ::protobuf::Message for CommitRequest { @@ -5483,6 +5715,13 @@ impl ::protobuf::Message for CommitRequest { 4 => { ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.mutations)?; }, + 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; + }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; }, @@ -5502,6 +5741,9 @@ impl ::protobuf::Message for CommitRequest { 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 ::std::option::Option::Some(ref v) = self.transaction { match v { &CommitRequest_oneof_transaction::transaction_id(ref v) => { @@ -5527,6 +5769,9 @@ impl ::protobuf::Message for CommitRequest { os.write_raw_varint32(v.get_cached_size())?; v.write_to_with_cached_sizes(os)?; }; + if self.return_commit_stats != false { + os.write_bool(5, self.return_commit_stats)?; + } if let ::std::option::Option::Some(ref v) = self.transaction { match v { &CommitRequest_oneof_transaction::transaction_id(ref v) => { @@ -5597,6 +5842,11 @@ impl ::protobuf::Message for CommitRequest { |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 }, + )); ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CommitRequest", fields, @@ -5617,6 +5867,7 @@ impl ::protobuf::Clear for CommitRequest { self.transaction = ::std::option::Option::None; self.transaction = ::std::option::Option::None; self.mutations.clear(); + self.return_commit_stats = false; self.unknown_fields.clear(); } } @@ -5637,6 +5888,7 @@ impl ::protobuf::reflect::ProtobufValue for CommitRequest { 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, @@ -5685,6 +5937,39 @@ impl CommitResponse { 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 { @@ -5694,6 +5979,11 @@ impl ::protobuf::Message for CommitResponse { return false; } }; + for v in &self.commit_stats { + if !v.is_initialized() { + return false; + } + }; true } @@ -5704,6 +5994,9 @@ impl ::protobuf::Message for CommitResponse { 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())?; }, @@ -5720,6 +6013,10 @@ impl ::protobuf::Message for CommitResponse { 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 @@ -5731,6 +6028,11 @@ impl ::protobuf::Message for CommitResponse { 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(()) } @@ -5774,6 +6076,11 @@ impl ::protobuf::Message for CommitResponse { |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, @@ -5791,6 +6098,7 @@ impl ::protobuf::Message for CommitResponse { impl ::protobuf::Clear for CommitResponse { fn clear(&mut self) { self.commit_timestamp.clear(); + self.commit_stats.clear(); self.unknown_fields.clear(); } } @@ -5807,6 +6115,158 @@ impl ::protobuf::reflect::ProtobufValue for CommitResponse { } } +#[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) + } +} + #[derive(PartialEq,Clone,Default)] pub struct RollbackRequest { // message fields @@ -6011,32 +6471,33 @@ impl ::protobuf::reflect::ProtobufValue for RollbackRequest { static file_descriptor_proto_data: &'static [u8] = b"\ \n\x1fgoogle/spanner/v1/spanner.proto\x12\x11google.spanner.v1\x1a\x1cgo\ 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\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'\xe0A\x02\xfaA!\n\x1fsp\ - anner.googleapis.com/Database\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\ + api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/\ + protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle\ + /protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17goo\ + gle/rpc/status.proto\x1a\x1cgoogle/spanner/v1/keys.proto\x1a\x20google/s\ + panner/v1/mutation.proto\x1a\"google/spanner/v1/result_set.proto\x1a#goo\ + gle/spanner/v1/transaction.proto\x1a\x1cgoogle/spanner/v1/type.proto\"\ + \x91\x01\n\x14CreateSessionRequest\x12C\n\x08database\x18\x01\x20\x01(\t\ + R\x08databaseB'\xe0A\x02\xfaA!\n\x1fspanner.googleapis.com/Database\x124\ + \n\x07session\x18\x02\x20\x01(\x0b2\x1a.google.spanner.v1.SessionR\x07se\ + ssion\"\xd2\x01\n\x1aBatchCreateSessionsRequest\x12C\n\x08database\x18\ + \x01\x20\x01(\tR\x08databaseB'\xe0A\x02\xfaA!\n\x1fspanner.googleapis.co\ + m/Database\x12E\n\x10session_template\x18\x02\x20\x01(\x0b2\x1a.google.s\ + panner.v1.SessionR\x0fsessionTemplate\x12(\n\rsession_count\x18\x03\x20\ + \x01(\x05R\x0csessionCountB\x03\xe0A\x02\"S\n\x1bBatchCreateSessionsResp\ + onse\x124\n\x07session\x18\x01\x20\x03(\x0b2\x1a.google.spanner.v1.Sessi\ + onR\x07session\"\xb1\x03\n\x07Session\x12\x17\n\x04name\x18\x01\x20\x01(\ + \tR\x04nameB\x03\xe0A\x03\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\ncreateTimeB\x03\xe0A\x03\ + \x12Z\n\x19approximate_last_use_time\x18\x04\x20\x01(\x0b2\x1a.google.pr\ + otobuf.TimestampR\x16approximateLastUseTimeB\x03\xe0A\x03\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&\xe0A\x02\xfaA\x20\n\x1espanner.googleapis.com/Ses\ - sion\"\xae\x01\n\x13ListSessionsRequest\x12C\n\x08database\x18\x01\x20\ + \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'\xe0A\x02\xfaA!\n\x1fspanner.googleapis.com/Databa\ se\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npag\ e_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06filter\x18\x04\x20\ @@ -6044,7 +6505,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \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&\xe0A\x02\xfaA\x20\n\ - \x1espanner.googleapis.com/Session\"\xf7\x04\n\x11ExecuteSqlRequest\x12@\ + \x1espanner.googleapis.com/Session\"\x8c\x06\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\ @@ -6055,133 +6516,140 @@ static file_descriptor_proto_data: &'static [u8] = b"\ 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\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&\xe0A\ - \x02\xfaA\x20\n\x1espanner.googleapis.com/Session\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&\xe0A\ - \x02\xfaA\x20\n\x1espanner.googleapis.com/Session\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\ + eqno\x12V\n\rquery_options\x18\n\x20\x01(\x0b21.google.spanner.v1.Execut\ + eSqlRequest.QueryOptionsR\x0cqueryOptions\x1a;\n\x0cQueryOptions\x12+\n\ + \x11optimizer_version\x18\x01\x20\x01(\tR\x10optimizerVersion\x1aV\n\x0f\ + ParamTypesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12-\n\x05va\ + lue\x18\x02\x20\x01(\x0b2\x17.google.spanner.v1.TypeR\x05value:\x028\x01\ + \".\n\tQueryMode\x12\n\n\x06NORMAL\x10\0\x12\x08\n\x04PLAN\x10\x01\x12\ + \x0b\n\x07PROFILE\x10\x02\"\xad\x04\n\x16ExecuteBatchDmlRequest\x12@\n\ \x07session\x18\x01\x20\x01(\tR\x07sessionB&\xe0A\x02\xfaA\x20\n\x1espan\ - ner.googleapis.com/Session\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&\xe0A\ - \x02\xfaA\x20\n\x1espanner.googleapis.com/Session\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&\xe0A\x02\xfaA\x20\n\x1espanner.google\ - apis.com/Session\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\xdaA\x08database\x82\xd3\xe4\x93\x02?\":/v1/{database=projects\ - /*/instances/*/databases/*}/sessions:\x01*\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\xdaA\x0fs\ - ession,options\x82\xd3\xe4\x93\x02Q\"L/v1/{session=projects/*/instances/\ - */databases/*/sessions/*}:beginTransaction:\x01*\x12\xeb\x01\n\x06Commit\ - \x12\x20.google.spanner.v1.CommitRequest\x1a!.google.spanner.v1.CommitRe\ - sponse\"\x9b\x01\x82\xd3\xe4\x93\x02G\"B/v1/{session=projects/*/instance\ - s/*/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.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\xcaA\x16spanner.googleapis.com\xd2A[https://www.goo\ - gleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/spanner.\ - dataB\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\ + e\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\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&\n\x08\n\x01\x08\x12\x03!\04\n\t\n\x02\x08%\x12\x03!\04\n\x08\n\ + \x01\x08\x12\x03\"\0O\n\t\n\x02\x08\x0b\x12\x03\"\0O\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&\04\n\t\n\x02\x08)\x12\x03&\04\n\ + \x08\n\x01\x08\x12\x03'\03\n\t\n\x02\x08-\x12\x03'\03\n\t\n\x01\x08\x12\ + \x04(\0+\x02\n\x0c\n\x04\x08\x9d\x08\0\x12\x04(\0+\x02\n\x9d\x01\n\x02\ + \x06\0\x12\x051\0\xa2\x02\x01\x1a\x8f\x01\x20Cloud\x20Spanner\x20API\n\n\ + \x20The\x20Cloud\x20Spanner\x20API\x20can\x20be\x20used\x20to\x20manage\ + \x20sessions\x20and\x20execute\n\x20transactions\x20on\x20data\x20stored\ + \x20in\x20Cloud\x20Spanner\x20databases.\n\n\n\n\x03\x06\0\x01\x12\x031\ + \x08\x0f\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\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\x20perform\n\x20transactions\x20that\x20read\x20and\ + /or\x20modify\x20data\x20in\x20a\x20Cloud\x20Spanner\x20database.\n\x20S\ + essions\x20are\x20meant\x20to\x20be\x20reused\x20for\x20many\x20consecut\ + ive\n\x20transactions.\n\n\x20Sessions\x20can\x20only\x20execute\x20one\ + \x20transaction\x20at\x20a\x20time.\x20To\x20execute\n\x20multiple\x20co\ + ncurrent\x20read-write/write-only\x20transactions,\x20create\n\x20multip\ + le\x20sessions.\x20Note\x20that\x20standalone\x20reads\x20and\x20queries\ + \x20use\x20a\n\x20transaction\x20internally,\x20and\x20count\x20toward\ + \x20the\x20one\x20transaction\n\x20limit.\n\n\x20Active\x20sessions\x20u\ + se\x20additional\x20server\x20resources,\x20so\x20it\x20is\x20a\x20good\ + \x20idea\x20to\n\x20delete\x20idle\x20and\x20unneeded\x20sessions.\n\x20\ + Aside\x20from\x20explicit\x20deletes,\x20Cloud\x20Spanner\x20may\x20dele\ + te\x20sessions\x20for\x20which\x20no\n\x20operations\x20are\x20sent\x20f\ + or\x20more\x20than\x20an\x20hour.\x20If\x20a\x20session\x20is\x20deleted\ + ,\n\x20requests\x20to\x20it\x20return\x20`NOT_FOUND`.\n\n\x20Idle\x20ses\ + sions\x20can\x20be\x20kept\x20alive\x20by\x20sending\x20a\x20trivial\x20\ + SQL\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\x04\ + V\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\x20\ + for\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\x04W\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.\x20Ret\ + urns\x20`NOT_FOUND`\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\ + \x20asynchronously\x20trigger\x20cancellation\x20of\x20any\x20operations\ + \x20that\x20are\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,\x20returning\x20all\x20results\x20in\x20a\x20single\x20re\ + ply.\x20This\n\x20method\x20cannot\x20be\x20used\x20to\x20return\x20a\ + \x20result\x20set\x20larger\x20than\x2010\x20MiB;\n\x20if\x20the\x20quer\ + y\x20yields\x20more\x20data\x20than\x20that,\x20the\x20query\x20fails\ + \x20with\n\x20a\x20`FAILED_PRECONDITION`\x20error.\n\n\x20Operations\x20\ + inside\x20read-write\x20transactions\x20might\x20return\x20`ABORTED`.\ + \x20If\n\x20this\x20occurs,\x20the\x20application\x20should\x20restart\ + \x20the\x20transaction\x20from\n\x20the\x20beginning.\x20See\x20[Transac\ + tion][google.spanner.v1.Transaction]\x20for\x20more\x20details.\n\n\x20L\ + arger\x20result\x20sets\x20can\x20be\x20fetched\x20in\x20streaming\x20fa\ + shion\x20by\x20calling\n\x20[ExecuteStreamingSql][google.spanner.v1.Span\ + ner.ExecuteStreamingSql]\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.ExecuteSql],\x20except\x20returns\x20the\x20result\n\ + \x20set\x20as\x20a\x20stream.\x20Unlike\x20[ExecuteSql][google.spanner.v\ + 1.Spanner.ExecuteSql],\x20there\n\x20is\x20no\x20limit\x20on\x20the\x20s\ + ize\x20of\x20the\x20returned\x20result\x20set.\x20However,\x20no\n\x20in\ + dividual\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\x20SQL\x20DML\x20statements.\x20This\x20method\x20allows\ + \x20many\x20statements\n\x20to\x20be\x20run\x20with\x20lower\x20latency\ + \x20than\x20submitting\x20them\x20sequentially\x20with\n\x20[ExecuteSql]\ + [google.spanner.v1.Spanner.ExecuteSql].\n\n\x20Statements\x20are\x20exec\ + uted\x20in\x20sequential\x20order.\x20A\x20request\x20can\x20succeed\x20\ + even\x20if\n\x20a\x20statement\x20fails.\x20The\x20[ExecuteBatchDmlRespo\ + nse.status][google.spanner.v1.ExecuteBatchDmlResponse.status]\x20field\ + \x20in\x20the\n\x20response\x20provides\x20information\x20about\x20the\ + \x20statement\x20that\x20failed.\x20Clients\x20must\n\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\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\x20\ + Reads\x20rows\x20from\x20the\x20database\x20using\x20key\x20lookups\x20a\ + nd\x20scans,\x20as\x20a\n\x20simple\x20key/value\x20style\x20alternative\ + \x20to\n\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].\x20\x20T\ + his\x20method\x20cannot\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_PRECONDITION`\n\x20error.\n\n\x20Reads\x20inside\x20read-wri\ + te\x20transactions\x20might\x20return\x20`ABORTED`.\x20If\n\x20this\x20o\ + ccurs,\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\x20yielded\x20in\x20streaming\x20fashion\x20by\x20calling\ + \n\x20[StreamingRead][google.spanner.v1.Spanner.StreamingRead]\x20instea\ + d.\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\x20ret\ + urns\x20the\x20result\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\x20individual\x20row\x20in\n\x20the\x20result\x20set\x20can\x20ex\ + ceed\x20100\x20MiB,\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\x20n\ + ew\x20transaction.\x20This\x20step\x20can\x20often\x20be\x20skipped:\n\ + \x20[Read][google.spanner.v1.Spanner.Read],\x20[ExecuteSql][google.spann\ + er.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\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\x20appl\ + ied\x20to\x20rows\x20in\x20the\x20database.\n\n\x20`Commit`\x20might\x20\ + return\x20an\x20`ABORTED`\x20error.\x20This\x20can\x20occur\x20at\x20any\ + \x20time;\n\x20commonly,\x20the\x20cause\x20is\x20conflicts\x20with\x20c\ + oncurrent\n\x20transactions.\x20However,\x20it\x20can\x20also\x20happen\ + \x20for\x20a\x20variety\x20of\x20other\n\x20reasons.\x20If\x20`Commit`\ + \x20returns\x20`ABORTED`,\x20the\x20caller\x20should\x20re-attempt\n\x20\ + the\x20transaction\x20from\x20the\x20beginning,\x20re-using\x20the\x20sa\ + me\x20session.\n\n\x20On\x20very\x20rare\x20occasions,\x20`Commit`\x20mi\ + ght\x20return\x20`UNKNOWN`.\x20This\x20can\x20happen,\n\x20for\x20exampl\ + e,\x20if\x20the\x20client\x20job\x20experiences\x20a\x201+\x20hour\x20ne\ + tworking\x20failure.\n\x20At\x20that\x20point,\x20Cloud\x20Spanner\x20ha\ + s\x20lost\x20track\x20of\x20the\x20transaction\x20outcome\x20and\n\x20we\ + \x20recommend\x20that\x20you\x20perform\x20another\x20read\x20from\x20th\ + e\x20database\x20to\x20see\x20the\n\x20state\x20of\x20things\x20as\x20th\ + ey\x20are\x20now.\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\x20transactio\ + n,\x20releasing\x20any\x20locks\x20it\x20holds.\x20It\x20is\x20a\x20good\ + \n\x20idea\x20to\x20call\x20this\x20for\x20any\x20transaction\x20that\ + \x20includes\x20one\x20or\x20more\n\x20[Read][google.spanner.v1.Spanner.\ + Read]\x20or\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]\x20req\ + uests\x20and\n\x20ultimately\x20decides\x20not\x20to\x20commit.\n\n\x20`\ + Rollback`\x20returns\x20`OK`\x20if\x20it\x20successfully\x20aborts\x20th\ + e\x20transaction,\x20the\n\x20transaction\x20was\x20already\x20aborted,\ + \x20or\x20the\x20transaction\x20is\x20not\n\x20found.\x20`Rollback`\x20n\ + ever\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\x20\ + can\x20be\x20used\x20to\x20execute\x20a\x20query\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\x0f\n\x05\x04\0\x02\0\x04\x12\x06\ - \xaf\x02\x02\xad\x02\x1e\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\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\xb7\ - \x02\x02\xb4\x02\x04\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[BatchCreateSessions][google.spa\ - nner.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\x20which\x20the\x20new\x20se\ - ssions\x20are\x20created.\n\n\x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xbe\ - \x02\x02\xbc\x02$\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\x20Parame\ - ters\x20to\x20be\x20applied\x20to\x20each\x20created\x20session.\n\n\x0f\ - \n\x05\x04\x01\x02\x01\x04\x12\x06\xc6\x02\x02\xc3\x02\x04\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\x20Req\ - uired.\x20The\x20number\x20of\x20sessions\x20to\x20be\x20created\x20in\ - \x20this\x20batch\x20call.\n\x20The\x20API\x20may\x20return\x20fewer\x20\ - than\x20the\x20requested\x20number\x20of\x20sessions.\x20If\x20a\n\x20sp\ - ecific\x20number\x20of\x20sessions\x20are\x20desired,\x20the\x20client\ - \x20can\x20make\x20additional\n\x20calls\x20to\x20BatchCreateSessions\ - \x20(adjusting\n\x20[session_count][google.spanner.v1.BatchCreateSession\ - sRequest.session_count]\n\x20as\x20necessary).\n\n\x0f\n\x05\x04\x01\x02\ - \x02\x04\x12\x06\xce\x02\x02\xc6\x02\x1f\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][g\ - oogle.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\x20freshly\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\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\x20The\x20name\x20of\x20the\x20session.\x20This\x20is\x20a\ - lways\x20system-assigned;\x20values\x20provided\n\x20when\x20creating\ - \x20a\x20session\x20are\x20ignored.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\ - \x06\xe1\x02\x02\xdd\x02\x04\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\x20sess\ - ion.\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\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\x20more\x20than\x2064\x20labels\x20can\x20be\x20\ - associated\x20with\x20a\x20given\x20session.\n\n\x20See\x20https://goo.g\ - l/xmQnxf\x20for\x20more\x20information\x20on\x20and\x20examples\x20of\ - \x20labels.\n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xec\x02\x02\xe1\ - \x02\x12\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\x20sess\ - ion\x20is\x20created.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xef\x02\ - \x02\xec\x02!\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\x20timestamp\ - \x20when\x20the\x20session\x20is\x20last\x20used.\x20It\x20is\n\x20typic\ - ally\x20earlier\x20than\x20the\x20actual\x20last\x20use\x20time.\n\n\x0f\ - \n\x05\x04\x03\x02\x03\x04\x12\x06\xf3\x02\x02\xef\x02,\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\x20The\x20request\x20f\ - or\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\x20se\ - ssion\x20to\x20retrieve.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xf9\x02\ - \x02\xf7\x02\x1b\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.Spanner.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.\x20The\x20database\x20in\x20w\ - hich\x20to\x20list\x20sessions.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\ - \x82\x03\x02\x80\x03\x1d\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\x1a\ - w\x20Number\x20of\x20sessions\x20to\x20be\x20returned\x20in\x20the\x20re\ - sponse.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\x20the\x20server's\ - \x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\x04\x05\x02\x01\ - \x04\x12\x06\x8b\x03\x02\x87\x03\x04\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-em\ - pty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][go\ - ogle.spanner.v1.ListSessionsResponse.next_page_token]\n\x20from\x20a\x20\ - previous\n\x20[ListSessionsResponse][google.spanner.v1.ListSessionsRespo\ - nse].\n\n\x0f\n\x05\x04\x05\x02\x02\x04\x12\x06\x91\x03\x02\x8b\x03\x16\ - \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\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`labels.key`\x20where\x20key\x20is\x20the\x20name\x20of\x20\ - a\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\x20label\x20\"env\"\x20and\x20the\x20value\x20\ - of\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\x0f\n\x05\x04\x05\x02\x03\x04\x12\x06\x9d\x03\x02\x91\ - \x03\x18\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.Span\ - ner.ListSessions].\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\ - \x20requested\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.ListSession\ - s]\x20call\x20to\x20fetch\x20more\n\x20of\x20the\x20matching\x20sessions\ - .\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xa8\x03\x02\xa3\x03\x20\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\ + s\x20can\x20be\x20used\n\x20by\x20[ExecuteStreamingSql][google.spanner.v\ + 1.Spanner.ExecuteStreamingSql]\x20to\x20specify\x20a\x20subset\n\x20of\ + \x20the\x20query\x20result\x20to\x20read.\x20\x20The\x20same\x20session\ + \x20and\x20read-only\x20transaction\n\x20must\x20be\x20used\x20by\x20the\ + \x20PartitionQueryRequest\x20used\x20to\x20create\x20the\n\x20partition\ + \x20tokens\x20and\x20the\x20ExecuteSqlRequests\x20that\x20use\x20the\x20\ + partition\x20tokens.\n\n\x20Partition\x20tokens\x20become\x20invalid\x20\ + when\x20the\x20session\x20used\x20to\x20create\x20them\n\x20is\x20delete\ + d,\x20is\x20idle\x20for\x20too\x20long,\x20begins\x20a\x20new\x20transac\ + tion,\x20or\x20becomes\x20too\n\x20old.\x20\x20When\x20any\x20of\x20thes\ + e\x20happen,\x20it\x20is\x20not\x20possible\x20to\x20resume\x20the\x20qu\ + ery,\x20and\n\x20the\x20whole\x20operation\x20must\x20be\x20restarted\ + \x20from\x20the\x20beginning.\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\x20Creates\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\x20be\x20used\n\x20by\x20[StreamingRead][\ + google.spanner.v1.Spanner.StreamingRead]\x20to\x20specify\x20a\x20subset\ + \x20of\x20the\x20read\n\x20result\x20to\x20read.\x20\x20The\x20same\x20s\ + ession\x20and\x20read-only\x20transaction\x20must\x20be\x20used\x20by\n\ + \x20the\x20PartitionReadRequest\x20used\x20to\x20create\x20the\x20partit\ + ion\x20tokens\x20and\x20the\n\x20ReadRequests\x20that\x20use\x20the\x20p\ + artition\x20tokens.\x20\x20There\x20are\x20no\x20ordering\n\x20guarantee\ + s\x20on\x20rows\x20returned\x20among\x20the\x20returned\x20partition\x20\ + tokens,\x20or\x20even\n\x20within\x20each\x20individual\x20StreamingRead\ + \x20call\x20issued\x20with\x20a\x20partition_token.\n\n\x20Partition\x20\ + tokens\x20become\x20invalid\x20when\x20the\x20session\x20used\x20to\x20c\ + reate\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\x20poss\ + ible\x20to\x20resume\x20the\x20read,\x20and\n\x20the\x20whole\x20operati\ + on\x20must\x20be\x20restarted\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\nY\n\ + \x02\x04\0\x12\x06\xa5\x02\0\xb0\x02\x01\x1aK\x20The\x20request\x20for\ + \x20[CreateSession][google.spanner.v1.Spanner.CreateSession].\n\n\x0b\n\ + \x03\x04\0\x01\x12\x04\xa5\x02\x08\x1c\nM\n\x04\x04\0\x02\0\x12\x06\xa7\ + \x02\x02\xac\x02\x04\x1a=\x20Required.\x20The\x20database\x20in\x20which\ + \x20the\x20new\x20session\x20is\x20created.\n\n\x0f\n\x05\x04\0\x02\0\ + \x04\x12\x06\xa7\x02\x02\xa5\x02\x1e\n\r\n\x05\x04\0\x02\0\x05\x12\x04\ + \xa7\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa7\x02\t\x11\n\r\n\ + \x05\x04\0\x02\0\x03\x12\x04\xa7\x02\x14\x15\n\x0f\n\x05\x04\0\x02\0\x08\ + \x12\x06\xa7\x02\x16\xac\x02\x03\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\ + \x12\x04\xa8\x02\x04*\n\x11\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x06\xa9\ + \x02\x04\xab\x02\x05\n&\n\x04\x04\0\x02\x01\x12\x04\xaf\x02\x02\x16\x1a\ + \x18\x20The\x20session\x20to\x20create.\n\n\x0f\n\x05\x04\0\x02\x01\x04\ + \x12\x06\xaf\x02\x02\xac\x02\x04\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xaf\ + \x02\x02\t\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xaf\x02\n\x11\n\r\n\x05\ + \x04\0\x02\x01\x03\x12\x04\xaf\x02\x14\x15\ne\n\x02\x04\x01\x12\x06\xb3\ + \x02\0\xc5\x02\x01\x1aW\x20The\x20request\x20for\x20[BatchCreateSessions\ + ][google.spanner.v1.Spanner.BatchCreateSessions].\n\n\x0b\n\x03\x04\x01\ + \x01\x12\x04\xb3\x02\x08\"\nO\n\x04\x04\x01\x02\0\x12\x06\xb5\x02\x02\ + \xba\x02\x04\x1a?\x20Required.\x20The\x20database\x20in\x20which\x20the\ + \x20new\x20sessions\x20are\x20created.\n\n\x0f\n\x05\x04\x01\x02\0\x04\ + \x12\x06\xb5\x02\x02\xb3\x02$\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xb5\ + \x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xb5\x02\t\x11\n\r\n\x05\ + \x04\x01\x02\0\x03\x12\x04\xb5\x02\x14\x15\n\x0f\n\x05\x04\x01\x02\0\x08\ + \x12\x06\xb5\x02\x16\xba\x02\x03\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\ + \x12\x04\xb6\x02\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x06\xb7\ + \x02\x04\xb9\x02\x05\nA\n\x04\x04\x01\x02\x01\x12\x04\xbd\x02\x02\x1f\ + \x1a3\x20Parameters\x20to\x20be\x20applied\x20to\x20each\x20created\x20s\ + ession.\n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xbd\x02\x02\xba\x02\ + \x04\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xbd\x02\x02\t\n\r\n\x05\x04\ + \x01\x02\x01\x01\x12\x04\xbd\x02\n\x1a\n\r\n\x05\x04\x01\x02\x01\x03\x12\ + \x04\xbd\x02\x1d\x1e\n\xe7\x02\n\x04\x04\x01\x02\x02\x12\x04\xc4\x02\x02\ + C\x1a\xd8\x02\x20Required.\x20The\x20number\x20of\x20sessions\x20to\x20b\ + e\x20created\x20in\x20this\x20batch\x20call.\n\x20The\x20API\x20may\x20r\ + eturn\x20fewer\x20than\x20the\x20requested\x20number\x20of\x20sessions.\ + \x20If\x20a\n\x20specific\x20number\x20of\x20sessions\x20are\x20desired,\ + \x20the\x20client\x20can\x20make\x20additional\n\x20calls\x20to\x20Batch\ + CreateSessions\x20(adjusting\n\x20[session_count][google.spanner.v1.Batc\ + hCreateSessionsRequest.session_count]\x20as\x20necessary).\n\n\x0f\n\x05\ + \x04\x01\x02\x02\x04\x12\x06\xc4\x02\x02\xbd\x02\x1f\n\r\n\x05\x04\x01\ + \x02\x02\x05\x12\x04\xc4\x02\x02\x07\n\r\n\x05\x04\x01\x02\x02\x01\x12\ + \x04\xc4\x02\x08\x15\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xc4\x02\x18\ + \x19\n\r\n\x05\x04\x01\x02\x02\x08\x12\x04\xc4\x02\x1aB\n\x10\n\x08\x04\ + \x01\x02\x02\x08\x9c\x08\0\x12\x04\xc4\x02\x1bA\nf\n\x02\x04\x02\x12\x06\ + \xc8\x02\0\xcb\x02\x01\x1aX\x20The\x20response\x20for\x20[BatchCreateSes\ + sions][google.spanner.v1.Spanner.BatchCreateSessions].\n\n\x0b\n\x03\x04\ + \x02\x01\x12\x04\xc8\x02\x08#\n-\n\x04\x04\x02\x02\0\x12\x04\xca\x02\x02\ + \x1f\x1a\x1f\x20The\x20freshly\x20created\x20sessions.\n\n\r\n\x05\x04\ + \x02\x02\0\x04\x12\x04\xca\x02\x02\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\ + \xca\x02\x0b\x12\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xca\x02\x13\x1a\n\r\ + \n\x05\x04\x02\x02\0\x03\x12\x04\xca\x02\x1d\x1e\n3\n\x02\x04\x03\x12\ + \x06\xce\x02\0\xe8\x02\x01\x1a%\x20A\x20session\x20in\x20the\x20Cloud\ + \x20Spanner\x20API.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xce\x02\x08\x0f\n\ + \r\n\x03\x04\x03\x07\x12\x06\xcf\x02\x02\xd2\x02\x04\n\x0f\n\x05\x04\x03\ + \x07\x9d\x08\x12\x06\xcf\x02\x02\xd2\x02\x04\nU\n\x04\x04\x03\x02\0\x12\ + \x04\xd5\x02\x02>\x1aG\x20Output\x20only.\x20The\x20name\x20of\x20the\ + \x20session.\x20This\x20is\x20always\x20system-assigned.\n\n\x0f\n\x05\ + \x04\x03\x02\0\x04\x12\x06\xd5\x02\x02\xd2\x02\x04\n\r\n\x05\x04\x03\x02\ + \0\x05\x12\x04\xd5\x02\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xd5\ + \x02\t\r\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xd5\x02\x10\x11\n\r\n\x05\ + \x04\x03\x02\0\x08\x12\x04\xd5\x02\x12=\n\x10\n\x08\x04\x03\x02\0\x08\ + \x9c\x08\0\x12\x04\xd5\x02\x13<\n\xd6\x03\n\x04\x04\x03\x02\x01\x12\x04\ + \xe0\x02\x02!\x1a\xc7\x03\x20The\x20labels\x20for\x20the\x20session.\n\n\ + \x20\x20*\x20Label\x20keys\x20must\x20be\x20between\x201\x20and\x2063\ + \x20characters\x20long\x20and\x20must\x20conform\x20to\n\x20\x20\x20\x20\ + the\x20following\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\x20\ + to\x20the\x20regular\x20expression\x20`([a-z]([-a-z0-9]*[a-z0-9])?)?`.\n\ + \x20\x20*\x20No\x20more\x20than\x2064\x20labels\x20can\x20be\x20associat\ + ed\x20with\x20a\x20given\x20session.\n\n\x20See\x20https://goo.gl/xmQnxf\ + \x20for\x20more\x20information\x20on\x20and\x20examples\x20of\x20labels.\ + \n\n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\xe0\x02\x02\xd5\x02>\n\r\n\ + \x05\x04\x03\x02\x01\x06\x12\x04\xe0\x02\x02\x15\n\r\n\x05\x04\x03\x02\ + \x01\x01\x12\x04\xe0\x02\x16\x1c\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\ + \xe0\x02\x1f\x20\nG\n\x04\x04\x03\x02\x02\x12\x04\xe3\x02\x02X\x1a9\x20O\ + utput\x20only.\x20The\x20timestamp\x20when\x20the\x20session\x20is\x20cr\ + eated.\n\n\x0f\n\x05\x04\x03\x02\x02\x04\x12\x06\xe3\x02\x02\xe0\x02!\n\ + \r\n\x05\x04\x03\x02\x02\x06\x12\x04\xe3\x02\x02\x1b\n\r\n\x05\x04\x03\ + \x02\x02\x01\x12\x04\xe3\x02\x1c'\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\ + \xe3\x02*+\n\r\n\x05\x04\x03\x02\x02\x08\x12\x04\xe3\x02,W\n\x10\n\x08\ + \x04\x03\x02\x02\x08\x9c\x08\0\x12\x04\xe3\x02-V\n\x8d\x01\n\x04\x04\x03\ + \x02\x03\x12\x04\xe7\x02\x02f\x1a\x7f\x20Output\x20only.\x20The\x20appro\ + ximate\x20timestamp\x20when\x20the\x20session\x20is\x20last\x20used.\x20\ + It\x20is\n\x20typically\x20earlier\x20than\x20the\x20actual\x20last\x20u\ + se\x20time.\n\n\x0f\n\x05\x04\x03\x02\x03\x04\x12\x06\xe7\x02\x02\xe3\ + \x02X\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xe7\x02\x02\x1b\n\r\n\x05\ + \x04\x03\x02\x03\x01\x12\x04\xe7\x02\x1c5\n\r\n\x05\x04\x03\x02\x03\x03\ + \x12\x04\xe7\x0289\n\r\n\x05\x04\x03\x02\x03\x08\x12\x04\xe7\x02:e\n\x10\ + \n\x08\x04\x03\x02\x03\x08\x9c\x08\0\x12\x04\xe7\x02;d\nS\n\x02\x04\x04\ + \x12\x06\xeb\x02\0\xf3\x02\x01\x1aE\x20The\x20request\x20for\x20[GetSess\ + ion][google.spanner.v1.Spanner.GetSession].\n\n\x0b\n\x03\x04\x04\x01\ + \x12\x04\xeb\x02\x08\x19\n@\n\x04\x04\x04\x02\0\x12\x06\xed\x02\x02\xf2\ + \x02\x04\x1a0\x20Required.\x20The\x20name\x20of\x20the\x20session\x20to\ + \x20retrieve.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\xed\x02\x02\xeb\ + \x02\x1b\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xed\x02\x02\x08\n\r\n\x05\ + \x04\x04\x02\0\x01\x12\x04\xed\x02\t\r\n\r\n\x05\x04\x04\x02\0\x03\x12\ + \x04\xed\x02\x10\x11\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xed\x02\x12\ + \xf2\x02\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xee\x02\x04\ + *\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\xef\x02\x04\xf1\x02\x05\ + \nW\n\x02\x04\x05\x12\x06\xf6\x02\0\x93\x03\x01\x1aI\x20The\x20request\ + \x20for\x20[ListSessions][google.spanner.v1.Spanner.ListSessions].\n\n\ + \x0b\n\x03\x04\x05\x01\x12\x04\xf6\x02\x08\x1b\nC\n\x04\x04\x05\x02\0\ + \x12\x06\xf8\x02\x02\xfd\x02\x04\x1a3\x20Required.\x20The\x20database\ + \x20in\x20which\x20to\x20list\x20sessions.\n\n\x0f\n\x05\x04\x05\x02\0\ + \x04\x12\x06\xf8\x02\x02\xf6\x02\x1d\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\ + \xf8\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xf8\x02\t\x11\n\r\n\ + \x05\x04\x05\x02\0\x03\x12\x04\xf8\x02\x14\x15\n\x0f\n\x05\x04\x05\x02\0\ + \x08\x12\x06\xf8\x02\x16\xfd\x02\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\ + \x08\0\x12\x04\xf9\x02\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\ + \x06\xfa\x02\x04\xfc\x02\x05\n\x85\x01\n\x04\x04\x05\x02\x01\x12\x04\x81\ + \x03\x02\x16\x1aw\x20Number\x20of\x20sessions\x20to\x20be\x20returned\ + \x20in\x20the\x20response.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\ + \x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\x0f\n\x05\ + \x04\x05\x02\x01\x04\x12\x06\x81\x03\x02\xfd\x02\x04\n\r\n\x05\x04\x05\ + \x02\x01\x05\x12\x04\x81\x03\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\ + \x04\x81\x03\x08\x11\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\x81\x03\x14\ + \x15\n\xd8\x01\n\x04\x04\x05\x02\x02\x12\x04\x86\x03\x02\x18\x1a\xc9\x01\ + \x20If\x20non-empty,\x20`page_token`\x20should\x20contain\x20a\n\x20[nex\ + t_page_token][google.spanner.v1.ListSessionsResponse.next_page_token]\ + \x20from\x20a\x20previous\n\x20[ListSessionsResponse][google.spanner.v1.\ + ListSessionsResponse].\n\n\x0f\n\x05\x04\x05\x02\x02\x04\x12\x06\x86\x03\ + \x02\x81\x03\x16\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\x86\x03\x02\x08\n\ + \r\n\x05\x04\x05\x02\x02\x01\x12\x04\x86\x03\t\x13\n\r\n\x05\x04\x05\x02\ + \x02\x03\x12\x04\x86\x03\x16\x17\n\xaf\x03\n\x04\x04\x05\x02\x03\x12\x04\ + \x92\x03\x02\x14\x1a\xa0\x03\x20An\x20expression\x20for\x20filtering\x20\ + the\x20results\x20of\x20the\x20request.\x20Filter\x20rules\x20are\n\x20c\ + ase\x20insensitive.\x20The\x20fields\x20eligible\x20for\x20filtering\x20\ + are:\n\n\x20\x20\x20*\x20`labels.key`\x20where\x20key\x20is\x20the\x20na\ + me\x20of\x20a\x20label\n\n\x20Some\x20examples\x20of\x20using\x20filters\ + \x20are:\n\n\x20\x20\x20*\x20`labels.env:*`\x20-->\x20The\x20session\x20\ + has\x20the\x20label\x20\"env\".\n\x20\x20\x20*\x20`labels.env:dev`\x20--\ + >\x20The\x20session\x20has\x20the\x20label\x20\"env\"\x20and\x20the\x20v\ + alue\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\x20s\ + tring\x20\"dev\".\n\n\x0f\n\x05\x04\x05\x02\x03\x04\x12\x06\x92\x03\x02\ + \x86\x03\x18\n\r\n\x05\x04\x05\x02\x03\x05\x12\x04\x92\x03\x02\x08\n\r\n\ + \x05\x04\x05\x02\x03\x01\x12\x04\x92\x03\t\x0f\n\r\n\x05\x04\x05\x02\x03\ + \x03\x12\x04\x92\x03\x12\x13\nX\n\x02\x04\x06\x12\x06\x96\x03\0\x9e\x03\ + \x01\x1aJ\x20The\x20response\x20for\x20[ListSessions][google.spanner.v1.\ + Spanner.ListSessions].\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x96\x03\x08\x1c\ + \n/\n\x04\x04\x06\x02\0\x12\x04\x98\x03\x02\x20\x1a!\x20The\x20list\x20o\ + f\x20requested\x20sessions.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\x98\ + \x03\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\x98\x03\x0b\x12\n\r\n\x05\ + \x04\x06\x02\0\x01\x12\x04\x98\x03\x13\x1b\n\r\n\x05\x04\x06\x02\0\x03\ + \x12\x04\x98\x03\x1e\x1f\n\xa4\x01\n\x04\x04\x06\x02\x01\x12\x04\x9d\x03\ + \x02\x1d\x1a\x95\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20\ + a\x20subsequent\n\x20[ListSessions][google.spanner.v1.Spanner.ListSessio\ + ns]\x20call\x20to\x20fetch\x20more\x20of\x20the\x20matching\n\x20session\ + s.\n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\x9d\x03\x02\x98\x03\x20\n\r\ + \n\x05\x04\x06\x02\x01\x05\x12\x04\x9d\x03\x02\x08\n\r\n\x05\x04\x06\x02\ + \x01\x01\x12\x04\x9d\x03\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x9d\ + \x03\x1b\x1c\nY\n\x02\x04\x07\x12\x06\xa1\x03\0\xa9\x03\x01\x1aK\x20The\ \x20request\x20for\x20[DeleteSession][google.spanner.v1.Spanner.DeleteSe\ - ssion].\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\x20n\ + ssion].\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xa1\x03\x08\x1c\n>\n\x04\x04\ + \x07\x02\0\x12\x06\xa3\x03\x02\xa8\x03\x04\x1a.\x20Required.\x20The\x20n\ ame\x20of\x20the\x20session\x20to\x20delete.\n\n\x0f\n\x05\x04\x07\x02\0\ - \x04\x12\x06\xae\x03\x02\xac\x03\x1e\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\x20\ - Mode\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.\x20Only\ - \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\x20pl\ - an,\x20without\x20any\x20results\x20or\n\x20execution\x20statistics\x20i\ - nformation.\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\x20execution\ - \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\x0f\n\x05\x04\ - \x08\x02\0\x04\x12\x06\xc6\x03\x02\xc3\x03\x03\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\ + \x04\x12\x06\xa3\x03\x02\xa1\x03\x1e\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\ + \xa3\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xa3\x03\t\r\n\r\n\ + \x05\x04\x07\x02\0\x03\x12\x04\xa3\x03\x10\x11\n\x0f\n\x05\x04\x07\x02\0\ + \x08\x12\x06\xa3\x03\x12\xa8\x03\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\ + \x08\0\x12\x04\xa4\x03\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\ + \x06\xa5\x03\x04\xa7\x03\x05\n\x9e\x01\n\x02\x04\x08\x12\x06\xad\x03\0\ + \xa5\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\xad\x03\x08\x19\n0\n\x04\x04\x08\x03\0\x12\x06\xaf\x03\x02\xc4\x03\ + \x03\x1a\x20\x20Query\x20optimizer\x20configuration.\n\n\r\n\x05\x04\x08\ + \x03\0\x01\x12\x04\xaf\x03\n\x16\n\xae\x07\n\x06\x04\x08\x03\0\x02\0\x12\ + \x04\xc3\x03\x04!\x1a\x9d\x07\x20An\x20option\x20to\x20control\x20the\ + \x20selection\x20of\x20optimizer\x20version.\n\n\x20This\x20parameter\ + \x20allows\x20individual\x20queries\x20to\x20pick\x20different\x20query\ + \n\x20optimizer\x20versions.\n\n\x20Specifying\x20\"latest\"\x20as\x20a\ + \x20value\x20instructs\x20Cloud\x20Spanner\x20to\x20use\x20the\n\x20late\ + st\x20supported\x20query\x20optimizer\x20version.\x20If\x20not\x20specif\ + ied,\x20Cloud\x20Spanner\n\x20uses\x20optimizer\x20version\x20set\x20at\ + \x20the\x20database\x20level\x20options.\x20Any\x20other\n\x20positive\ + \x20integer\x20(from\x20the\x20list\x20of\x20supported\x20optimizer\x20v\ + ersions)\n\x20overrides\x20the\x20default\x20optimizer\x20version\x20for\ + \x20query\x20execution.\n\x20The\x20list\x20of\x20supported\x20optimizer\ + \x20versions\x20can\x20be\x20queried\x20from\n\x20SPANNER_SYS.SUPPORTED_\ + OPTIMIZER_VERSIONS.\x20Executing\x20a\x20SQL\x20statement\n\x20with\x20a\ + n\x20invalid\x20optimizer\x20version\x20will\x20fail\x20with\x20a\x20syn\ + tax\x20error\n\x20(`INVALID_ARGUMENT`)\x20status.\n\x20See\n\x20https://\ + cloud.google.com/spanner/docs/query-optimizer/manage-query-optimizer\n\ + \x20for\x20more\x20information\x20on\x20managing\x20the\x20query\x20opti\ + mizer.\n\n\x20The\x20`optimizer_version`\x20statement\x20hint\x20has\x20\ + precedence\x20over\x20this\x20setting.\n\n\x11\n\x07\x04\x08\x03\0\x02\0\ + \x04\x12\x06\xc3\x03\x04\xaf\x03\x18\n\x0f\n\x07\x04\x08\x03\0\x02\0\x05\ + \x12\x04\xc3\x03\x04\n\n\x0f\n\x07\x04\x08\x03\0\x02\0\x01\x12\x04\xc3\ + \x03\x0b\x1c\n\x0f\n\x07\x04\x08\x03\0\x02\0\x03\x12\x04\xc3\x03\x1f\x20\ + \n@\n\x04\x04\x08\x04\0\x12\x06\xc7\x03\x02\xd2\x03\x03\x1a0\x20Mode\x20\ + in\x20which\x20the\x20statement\x20must\x20be\x20processed.\n\n\r\n\x05\ + \x04\x08\x04\0\x01\x12\x04\xc7\x03\x07\x10\nL\n\x06\x04\x08\x04\0\x02\0\ + \x12\x04\xc9\x03\x04\x0f\x1a<\x20The\x20default\x20mode.\x20Only\x20the\ + \x20statement\x20results\x20are\x20returned.\n\n\x0f\n\x07\x04\x08\x04\0\ + \x02\0\x01\x12\x04\xc9\x03\x04\n\n\x0f\n\x07\x04\x08\x04\0\x02\0\x02\x12\ + \x04\xc9\x03\r\x0e\nr\n\x06\x04\x08\x04\0\x02\x01\x12\x04\xcd\x03\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\x08\x04\0\x02\x01\x01\x12\x04\xcd\x03\x04\x08\n\x0f\ + \n\x07\x04\x08\x04\0\x02\x01\x02\x12\x04\xcd\x03\x0b\x0c\nm\n\x06\x04\ + \x08\x04\0\x02\x02\x12\x04\xd1\x03\x04\x10\x1a]\x20This\x20mode\x20retur\ + ns\x20both\x20the\x20query\x20plan\x20and\x20the\x20execution\x20statist\ + ics\x20along\n\x20with\x20the\x20results.\n\n\x0f\n\x07\x04\x08\x04\0\ + \x02\x02\x01\x12\x04\xd1\x03\x04\x0b\n\x0f\n\x07\x04\x08\x04\0\x02\x02\ + \x02\x12\x04\xd1\x03\x0e\x0f\nS\n\x04\x04\x08\x02\0\x12\x06\xd5\x03\x02\ + \xda\x03\x04\x1aC\x20Required.\x20The\x20session\x20in\x20which\x20the\ + \x20SQL\x20query\x20should\x20be\x20performed.\n\n\x0f\n\x05\x04\x08\x02\ + \0\x04\x12\x06\xd5\x03\x02\xd2\x03\x03\n\r\n\x05\x04\x08\x02\0\x05\x12\ + \x04\xd5\x03\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xd5\x03\t\x10\n\ + \r\n\x05\x04\x08\x02\0\x03\x12\x04\xd5\x03\x13\x14\n\x0f\n\x05\x04\x08\ + \x02\0\x08\x12\x06\xd5\x03\x15\xda\x03\x03\n\x10\n\x08\x04\x08\x02\0\x08\ + \x9c\x08\0\x12\x04\xd6\x03\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\ + \x12\x06\xd7\x03\x04\xd9\x03\x05\n\xb9\x03\n\x04\x04\x08\x02\x01\x12\x04\ + \xe6\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\x20with\x20strong\x20co\ ncurrency.\n\n\x20Standard\x20DML\x20statements\x20require\x20a\x20read-\ @@ -6626,571 +7127,611 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20must\x20either\x20supply\x20an\x20existing\x20transaction\x20ID\x20o\ r\x20begin\x20a\x20new\x20transaction.\n\n\x20Partitioned\x20DML\x20requ\ ires\x20an\x20existing\x20Partitioned\x20DML\x20transaction\x20ID.\n\n\ - \x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xd5\x03\x02\xc9\x03\x04\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.\x20\ - The\x20SQL\x20string.\n\n\x0f\n\x05\x04\x08\x02\x02\x04\x12\x06\xd8\x03\ - \x02\xd5\x03&\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\ + \x0f\n\x05\x04\x08\x02\x01\x04\x12\x06\xe6\x03\x02\xda\x03\x04\n\r\n\x05\ + \x04\x08\x02\x01\x06\x12\x04\xe6\x03\x02\x15\n\r\n\x05\x04\x08\x02\x01\ + \x01\x12\x04\xe6\x03\x16!\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xe6\x03$\ + %\n)\n\x04\x04\x08\x02\x02\x12\x04\xe9\x03\x02:\x1a\x1b\x20Required.\x20\ + The\x20SQL\x20string.\n\n\x0f\n\x05\x04\x08\x02\x02\x04\x12\x06\xe9\x03\ + \x02\xe6\x03&\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\xe9\x03\x02\x08\n\r\ + \n\x05\x04\x08\x02\x02\x01\x12\x04\xe9\x03\t\x0c\n\r\n\x05\x04\x08\x02\ + \x02\x03\x12\x04\xe9\x03\x0f\x10\n\r\n\x05\x04\x08\x02\x02\x08\x12\x04\ + \xe9\x03\x119\n\x10\n\x08\x04\x08\x02\x02\x08\x9c\x08\0\x12\x04\xe9\x03\ + \x128\n\xdc\x04\n\x04\x04\x08\x02\x03\x12\x04\xf8\x03\x02$\x1a\xcd\x04\ \x20Parameter\x20names\x20and\x20values\x20that\x20bind\x20to\x20placeho\ lders\x20in\x20the\x20SQL\x20string.\n\n\x20A\x20parameter\x20placeholde\ r\x20consists\x20of\x20the\x20`@`\x20character\x20followed\x20by\x20the\ \n\x20parameter\x20name\x20(for\x20example,\x20`@firstName`).\x20Paramet\ - er\x20names\x20can\x20contain\n\x20letters,\x20numbers,\x20and\x20unders\ - cores.\n\n\x20Parameters\x20can\x20appear\x20anywhere\x20that\x20a\x20li\ - teral\x20value\x20is\x20expected.\x20\x20The\x20same\n\x20parameter\x20n\ - ame\x20can\x20be\x20used\x20more\x20than\x20once,\x20for\x20example:\n\n\ + er\x20names\x20must\x20conform\n\x20to\x20the\x20naming\x20requirements\ + \x20of\x20identifiers\x20as\x20specified\x20at\n\x20https://cloud.google\ + .com/spanner/docs/lexical#identifiers.\n\n\x20Parameters\x20can\x20appea\ + r\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\x0f\n\x05\x04\x08\x02\x03\x04\x12\x06\xf8\x03\x02\xe9\x03:\n\ + \r\n\x05\x04\x08\x02\x03\x06\x12\x04\xf8\x03\x02\x18\n\r\n\x05\x04\x08\ + \x02\x03\x01\x12\x04\xf8\x03\x19\x1f\n\r\n\x05\x04\x08\x02\x03\x03\x12\ + \x04\xf8\x03\"#\n\xdc\x03\n\x04\x04\x08\x02\x04\x12\x04\x82\x04\x02$\x1a\ + \xcd\x03\x20It\x20is\x20not\x20always\x20possible\x20for\x20Cloud\x20Spa\ + nner\x20to\x20infer\x20the\x20right\x20SQL\x20type\n\x20from\x20a\x20JSO\ + N\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\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\x05\x04\ + \x08\x02\x04\x04\x12\x06\x82\x04\x02\xf8\x03$\n\r\n\x05\x04\x08\x02\x04\ + \x06\x12\x04\x82\x04\x02\x13\n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\x82\ + \x04\x14\x1f\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\x82\x04\"#\n\x9e\x03\ + \n\x04\x04\x08\x02\x05\x12\x04\x8a\x04\x02\x19\x1a\x8f\x03\x20If\x20this\ + \x20request\x20is\x20resuming\x20a\x20previously\x20interrupted\x20SQL\ + \x20statement\n\x20execution,\x20`resume_token`\x20should\x20be\x20copie\ + d\x20from\x20the\x20last\n\x20[PartialResultSet][google.spanner.v1.Parti\ + alResultSet]\x20yielded\x20before\x20the\x20interruption.\x20Doing\x20th\ + is\n\x20enables\x20the\x20new\x20SQL\x20statement\x20execution\x20to\x20\ + resume\x20where\x20the\x20last\x20one\x20left\n\x20off.\x20The\x20rest\ + \x20of\x20the\x20request\x20parameters\x20must\x20exactly\x20match\x20th\ + e\n\x20request\x20that\x20yielded\x20this\x20token.\n\n\x0f\n\x05\x04\ + \x08\x02\x05\x04\x12\x06\x8a\x04\x02\x82\x04$\n\r\n\x05\x04\x08\x02\x05\ + \x05\x12\x04\x8a\x04\x02\x07\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\x8a\ + \x04\x08\x14\n\r\n\x05\x04\x08\x02\x05\x03\x12\x04\x8a\x04\x17\x18\n\xf2\ + \x02\n\x04\x04\x08\x02\x06\x12\x04\x8f\x04\x02\x1b\x1a\xe3\x02\x20Used\ + \x20to\x20control\x20the\x20amount\x20of\x20debugging\x20information\x20\ + returned\x20in\n\x20[ResultSetStats][google.spanner.v1.ResultSetStats].\ + \x20If\x20[partition_token][google.spanner.v1.ExecuteSqlRequest.partitio\ + n_token]\x20is\x20set,\x20[query_mode][google.spanner.v1.ExecuteSqlReque\ + st.query_mode]\x20can\x20only\n\x20be\x20set\x20to\x20[QueryMode.NORMAL]\ + [google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].\n\n\x0f\n\x05\ + \x04\x08\x02\x06\x04\x12\x06\x8f\x04\x02\x8a\x04\x19\n\r\n\x05\x04\x08\ + \x02\x06\x06\x12\x04\x8f\x04\x02\x0b\n\r\n\x05\x04\x08\x02\x06\x01\x12\ + \x04\x8f\x04\x0c\x16\n\r\n\x05\x04\x08\x02\x06\x03\x12\x04\x8f\x04\x19\ + \x1a\n\x99\x02\n\x04\x04\x08\x02\x07\x12\x04\x95\x04\x02\x1c\x1a\x8a\x02\ + \x20If\x20present,\x20results\x20will\x20be\x20restricted\x20to\x20the\ + \x20specified\x20partition\n\x20previously\x20created\x20using\x20Partit\ + ionQuery().\x20\x20There\x20must\x20be\x20an\x20exact\n\x20match\x20for\ + \x20the\x20values\x20of\x20fields\x20common\x20to\x20this\x20message\x20\ + and\x20the\n\x20PartitionQueryRequest\x20message\x20used\x20to\x20create\ + \x20this\x20partition_token.\n\n\x0f\n\x05\x04\x08\x02\x07\x04\x12\x06\ + \x95\x04\x02\x8f\x04\x1b\n\r\n\x05\x04\x08\x02\x07\x05\x12\x04\x95\x04\ + \x02\x07\n\r\n\x05\x04\x08\x02\x07\x01\x12\x04\x95\x04\x08\x17\n\r\n\x05\ + \x04\x08\x02\x07\x03\x12\x04\x95\x04\x1a\x1b\n\x9b\x04\n\x04\x04\x08\x02\ + \x08\x12\x04\xa1\x04\x02\x12\x1a\x8c\x04\x20A\x20per-transaction\x20sequ\ + ence\x20number\x20used\x20to\x20identify\x20this\x20request.\x20This\x20\ + field\n\x20makes\x20each\x20request\x20idempotent\x20such\x20that\x20if\ + \x20the\x20request\x20is\x20received\x20multiple\n\x20times,\x20at\x20mo\ + st\x20one\x20will\x20succeed.\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\x20yield\x20the\x20same\x20response\x20as\x20the\ + \x20first\x20execution.\n\n\x20Required\x20for\x20DML\x20statements.\x20\ + Ignored\x20for\x20queries.\n\n\x0f\n\x05\x04\x08\x02\x08\x04\x12\x06\xa1\ + \x04\x02\x95\x04\x1c\n\r\n\x05\x04\x08\x02\x08\x05\x12\x04\xa1\x04\x02\ + \x07\n\r\n\x05\x04\x08\x02\x08\x01\x12\x04\xa1\x04\x08\r\n\r\n\x05\x04\ + \x08\x02\x08\x03\x12\x04\xa1\x04\x10\x11\nI\n\x04\x04\x08\x02\t\x12\x04\ + \xa4\x04\x02\"\x1a;\x20Query\x20optimizer\x20configuration\x20to\x20use\ + \x20for\x20the\x20given\x20query.\n\n\x0f\n\x05\x04\x08\x02\t\x04\x12\ + \x06\xa4\x04\x02\xa1\x04\x12\n\r\n\x05\x04\x08\x02\t\x06\x12\x04\xa4\x04\ + \x02\x0e\n\r\n\x05\x04\x08\x02\t\x01\x12\x04\xa4\x04\x0f\x1c\n\r\n\x05\ + \x04\x08\x02\t\x03\x12\x04\xa4\x04\x1f!\n]\n\x02\x04\t\x12\x06\xa8\x04\0\ + \xe7\x04\x01\x1aO\x20The\x20request\x20for\x20[ExecuteBatchDml][google.s\ + panner.v1.Spanner.ExecuteBatchDml].\n\n\x0b\n\x03\x04\t\x01\x12\x04\xa8\ + \x04\x08\x1e\n)\n\x04\x04\t\x03\0\x12\x06\xaa\x04\x02\xc5\x04\x03\x1a\ + \x19\x20A\x20single\x20DML\x20statement.\n\n\r\n\x05\x04\t\x03\0\x01\x12\ + \x04\xaa\x04\n\x13\n+\n\x06\x04\t\x03\0\x02\0\x12\x04\xac\x04\x04\x13\ + \x1a\x1b\x20Required.\x20The\x20DML\x20string.\n\n\x11\n\x07\x04\t\x03\0\ + \x02\0\x04\x12\x06\xac\x04\x04\xaa\x04\x15\n\x0f\n\x07\x04\t\x03\0\x02\0\ + \x05\x12\x04\xac\x04\x04\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x01\x12\x04\xac\ + \x04\x0b\x0e\n\x0f\n\x07\x04\t\x03\0\x02\0\x03\x12\x04\xac\x04\x11\x12\n\ + \x8a\x04\n\x06\x04\t\x03\0\x02\x01\x12\x04\xba\x04\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\x05\x04\x08\x02\x03\ - \x04\x12\x06\xe6\x03\x02\xd8\x03:\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\x20from\x20a\x20JSON\x20value.\x20\x20For\x20example,\ - \x20values\x20of\x20type\x20`BYTES`\x20and\x20values\n\x20of\x20type\x20\ - `STRING`\x20both\x20appear\x20in\n\x20[params][google.spanner.v1.Execute\ - SqlRequest.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\x20sta\ - tement\x20parameters.\x20See\x20the\n\x20definition\x20of\x20[Type][goog\ - le.spanner.v1.Type]\x20for\x20more\x20information\n\x20about\x20SQL\x20t\ - ypes.\n\n\x0f\n\x05\x04\x08\x02\x04\x04\x12\x06\xf1\x03\x02\xe6\x03$\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\ - \x20interrupted\x20SQL\x20statement\n\x20execution,\x20`resume_token`\ - \x20should\x20be\x20copied\x20from\x20the\x20last\n\x20[PartialResultSet\ - ][google.spanner.v1.PartialResultSet]\x20yielded\x20before\x20the\n\x20i\ - nterruption.\x20Doing\x20this\x20enables\x20the\x20new\x20SQL\x20stateme\ - nt\x20execution\x20to\x20resume\n\x20where\x20the\x20last\x20one\x20left\ - \x20off.\x20The\x20rest\x20of\x20the\x20request\x20parameters\x20must\n\ - \x20exactly\x20match\x20the\x20request\x20that\x20yielded\x20this\x20tok\ - en.\n\n\x0f\n\x05\x04\x08\x02\x05\x04\x12\x06\xf9\x03\x02\xf1\x03$\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\x0f\n\x05\x04\x08\x02\x06\x04\x12\x06\x81\x04\x02\xf9\x03\ - \x19\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\x20restr\ - icted\x20to\x20the\x20specified\x20partition\n\x20previously\x20created\ - \x20using\x20PartitionQuery().\x20\x20There\x20must\x20be\x20an\x20exact\ - \n\x20match\x20for\x20the\x20values\x20of\x20fields\x20common\x20to\x20t\ - his\x20message\x20and\x20the\n\x20PartitionQueryRequest\x20message\x20us\ - ed\x20to\x20create\x20this\x20partition_token.\n\n\x0f\n\x05\x04\x08\x02\ - \x07\x04\x12\x06\x87\x04\x02\x81\x04\x1b\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-t\ - ransaction\x20sequence\x20number\x20used\x20to\x20identify\x20this\x20re\ - quest.\x20This\x20field\n\x20makes\x20each\x20request\x20idempotent\x20s\ - uch\x20that\x20if\x20the\x20request\x20is\x20received\x20multiple\n\x20t\ - imes,\x20at\x20most\x20one\x20will\x20succeed.\n\n\x20The\x20sequence\ - \x20number\x20must\x20be\x20monotonically\x20increasing\x20within\x20the\ - \n\x20transaction.\x20If\x20a\x20request\x20arrives\x20for\x20the\x20fir\ - st\x20time\x20with\x20an\x20out-of-order\n\x20sequence\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\x20st\ - atements.\x20Ignored\x20for\x20queries.\n\n\x0f\n\x05\x04\x08\x02\x08\ - \x04\x12\x06\x93\x04\x02\x87\x04\x1c\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\x20request\x20for\x20[Execute\ - BatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].\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\x20statement.\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\x11\n\ - \x07\x04\t\x03\0\x02\0\x04\x12\x06\x9b\x04\x04\x99\x04\x15\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\x20\ - to\x20placeholders\x20in\x20the\x20DML\x20string.\n\n\x20A\x20parameter\ + atement\x20with\x20unbound\x20parameters.\n\n\x11\n\x07\x04\t\x03\0\x02\ + \x01\x04\x12\x06\xba\x04\x04\xac\x04\x13\n\x0f\n\x07\x04\t\x03\0\x02\x01\ + \x06\x12\x04\xba\x04\x04\x1a\n\x0f\n\x07\x04\t\x03\0\x02\x01\x01\x12\x04\ + \xba\x04\x1b!\n\x0f\n\x07\x04\t\x03\0\x02\x01\x03\x12\x04\xba\x04$%\n\ + \xed\x03\n\x06\x04\t\x03\0\x02\x02\x12\x04\xc4\x04\x04&\x1a\xdc\x03\x20I\ + t\x20is\x20not\x20always\x20possible\x20for\x20Cloud\x20Spanner\x20to\ + \x20infer\x20the\x20right\x20SQL\x20type\n\x20from\x20a\x20JSON\x20value\ + .\x20\x20For\x20example,\x20values\x20of\x20type\x20`BYTES`\x20and\x20va\ + lues\n\x20of\x20type\x20`STRING`\x20both\x20appear\x20in\x20[params][goo\ + gle.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\x11\n\x07\x04\t\ + \x03\0\x02\x02\x04\x12\x06\xc4\x04\x04\xba\x04&\n\x0f\n\x07\x04\t\x03\0\ + \x02\x02\x06\x12\x04\xc4\x04\x04\x15\n\x0f\n\x07\x04\t\x03\0\x02\x02\x01\ + \x12\x04\xc4\x04\x16!\n\x0f\n\x07\x04\t\x03\0\x02\x02\x03\x12\x04\xc4\ + \x04$%\nX\n\x04\x04\t\x02\0\x12\x06\xc8\x04\x02\xcd\x04\x04\x1aH\x20Requ\ + ired.\x20The\x20session\x20in\x20which\x20the\x20DML\x20statements\x20sh\ + ould\x20be\x20performed.\n\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\xc8\x04\ + \x02\xc5\x04\x03\n\r\n\x05\x04\t\x02\0\x05\x12\x04\xc8\x04\x02\x08\n\r\n\ + \x05\x04\t\x02\0\x01\x12\x04\xc8\x04\t\x10\n\r\n\x05\x04\t\x02\0\x03\x12\ + \x04\xc8\x04\x13\x14\n\x0f\n\x05\x04\t\x02\0\x08\x12\x06\xc8\x04\x15\xcd\ + \x04\x03\n\x10\n\x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xc9\x04\x04*\n\ + \x11\n\x07\x04\t\x02\0\x08\x9f\x08\x12\x06\xca\x04\x04\xcc\x04\x05\n\xf4\ + \x01\n\x04\x04\t\x02\x01\x12\x04\xd4\x04\x02O\x1a\xe5\x01\x20Required.\ + \x20The\x20transaction\x20to\x20use.\x20Must\x20be\x20a\x20read-write\ + \x20transaction.\n\n\x20To\x20protect\x20against\x20replays,\x20single-u\ + se\x20transactions\x20are\x20not\x20supported.\x20The\n\x20caller\x20mus\ + t\x20either\x20supply\x20an\x20existing\x20transaction\x20ID\x20or\x20be\ + gin\x20a\x20new\n\x20transaction.\n\n\x0f\n\x05\x04\t\x02\x01\x04\x12\ + \x06\xd4\x04\x02\xcd\x04\x04\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\xd4\x04\ + \x02\x15\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xd4\x04\x16!\n\r\n\x05\x04\ + \t\x02\x01\x03\x12\x04\xd4\x04$%\n\r\n\x05\x04\t\x02\x01\x08\x12\x04\xd4\ + \x04&N\n\x10\n\x08\x04\t\x02\x01\x08\x9c\x08\0\x12\x04\xd4\x04'M\n\xe8\ + \x02\n\x04\x04\t\x02\x02\x12\x04\xdc\x04\x02M\x1a\xd9\x02\x20Required.\ + \x20The\x20list\x20of\x20statements\x20to\x20execute\x20in\x20this\x20ba\ + tch.\x20Statements\x20are\x20executed\n\x20serially,\x20such\x20that\x20\ + the\x20effects\x20of\x20statement\x20`i`\x20are\x20visible\x20to\x20stat\ + ement\n\x20`i+1`.\x20Each\x20statement\x20must\x20be\x20a\x20DML\x20stat\ + ement.\x20Execution\x20stops\x20at\x20the\n\x20first\x20failed\x20statem\ + ent;\x20the\x20remaining\x20statements\x20are\x20not\x20executed.\n\n\ + \x20Callers\x20must\x20provide\x20at\x20least\x20one\x20statement.\n\n\r\ + \n\x05\x04\t\x02\x02\x04\x12\x04\xdc\x04\x02\n\n\r\n\x05\x04\t\x02\x02\ + \x06\x12\x04\xdc\x04\x0b\x14\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xdc\x04\ + \x15\x1f\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xdc\x04\"#\n\r\n\x05\x04\t\ + \x02\x02\x08\x12\x04\xdc\x04$L\n\x10\n\x08\x04\t\x02\x02\x08\x9c\x08\0\ + \x12\x04\xdc\x04%K\n\xf1\x03\n\x04\x04\t\x02\x03\x12\x04\xe6\x04\x02;\ + \x1a\xe2\x03\x20Required.\x20A\x20per-transaction\x20sequence\x20number\ + \x20used\x20to\x20identify\x20this\x20request.\x20This\x20field\n\x20mak\ + es\x20each\x20request\x20idempotent\x20such\x20that\x20if\x20the\x20requ\ + est\x20is\x20received\x20multiple\n\x20times,\x20at\x20most\x20one\x20wi\ + ll\x20succeed.\n\n\x20The\x20sequence\x20number\x20must\x20be\x20monoton\ + ically\x20increasing\x20within\x20the\n\x20transaction.\x20If\x20a\x20re\ + quest\x20arrives\x20for\x20the\x20first\x20time\x20with\x20an\x20out-of-\ + order\n\x20sequence\x20number,\x20the\x20transaction\x20may\x20be\x20abo\ + rted.\x20Replays\x20of\x20previously\n\x20handled\x20requests\x20will\ + \x20yield\x20the\x20same\x20response\x20as\x20the\x20first\x20execution.\ + \n\n\x0f\n\x05\x04\t\x02\x03\x04\x12\x06\xe6\x04\x02\xdc\x04M\n\r\n\x05\ + \x04\t\x02\x03\x05\x12\x04\xe6\x04\x02\x07\n\r\n\x05\x04\t\x02\x03\x01\ + \x12\x04\xe6\x04\x08\r\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xe6\x04\x10\ + \x11\n\r\n\x05\x04\t\x02\x03\x08\x12\x04\xe6\x04\x12:\n\x10\n\x08\x04\t\ + \x02\x03\x08\x9c\x08\0\x12\x04\xe6\x04\x139\n\xbf\n\n\x02\x04\n\x12\x06\ + \x81\x05\0\x8e\x05\x01\x1a\xb0\n\x20The\x20response\x20for\x20[ExecuteBa\ + tchDml][google.spanner.v1.Spanner.ExecuteBatchDml].\x20Contains\x20a\x20\ + list\n\x20of\x20[ResultSet][google.spanner.v1.ResultSet]\x20messages,\ + \x20one\x20for\x20each\x20DML\x20statement\x20that\x20has\x20successfull\ + y\n\x20executed,\x20in\x20the\x20same\x20order\x20as\x20the\x20statement\ + s\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\n\x01\x12\x04\x81\x05\x08\x1f\n\xa8\x04\ + \n\x04\x04\n\x02\0\x12\x04\x89\x05\x02%\x1a\x99\x04\x20One\x20[ResultSet\ + ][google.spanner.v1.ResultSet]\x20for\x20each\x20statement\x20in\x20the\ + \x20request\x20that\x20ran\x20successfully,\n\x20in\x20the\x20same\x20or\ + der\x20as\x20the\x20statements\x20in\x20the\x20request.\x20Each\x20[Resu\ + ltSet][google.spanner.v1.ResultSet]\x20does\n\x20not\x20contain\x20any\ + \x20rows.\x20The\x20[ResultSetStats][google.spanner.v1.ResultSetStats]\ + \x20in\x20each\x20[ResultSet][google.spanner.v1.ResultSet]\x20contain\n\ + \x20the\x20number\x20of\x20rows\x20modified\x20by\x20the\x20statement.\n\ + \n\x20Only\x20the\x20first\x20[ResultSet][google.spanner.v1.ResultSet]\ + \x20in\x20the\x20response\x20contains\x20valid\n\x20[ResultSetMetadata][\ + google.spanner.v1.ResultSetMetadata].\n\n\r\n\x05\x04\n\x02\0\x04\x12\ + \x04\x89\x05\x02\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\x89\x05\x0b\x14\n\r\ + \n\x05\x04\n\x02\0\x01\x12\x04\x89\x05\x15\x20\n\r\n\x05\x04\n\x02\0\x03\ + \x12\x04\x89\x05#$\n\x91\x01\n\x04\x04\n\x02\x01\x12\x04\x8d\x05\x02\x1f\ + \x1a\x82\x01\x20If\x20all\x20DML\x20statements\x20are\x20executed\x20suc\ + cessfully,\x20the\x20status\x20is\x20`OK`.\n\x20Otherwise,\x20the\x20err\ + or\x20status\x20of\x20the\x20first\x20failed\x20statement.\n\n\x0f\n\x05\ + \x04\n\x02\x01\x04\x12\x06\x8d\x05\x02\x89\x05%\n\r\n\x05\x04\n\x02\x01\ + \x06\x12\x04\x8d\x05\x02\x13\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x8d\x05\ + \x14\x1a\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\x8d\x05\x1d\x1e\nN\n\x02\ + \x04\x0b\x12\x06\x92\x05\0\xa4\x05\x01\x1a@\x20Options\x20for\x20a\x20Pa\ + rtitionQueryRequest\x20and\n\x20PartitionReadRequest.\n\n\x0b\n\x03\x04\ + \x0b\x01\x12\x04\x92\x05\x08\x18\n\xba\x02\n\x04\x04\x0b\x02\0\x12\x04\ + \x99\x05\x02!\x1a\xab\x02\x20**Note:**\x20This\x20hint\x20is\x20currentl\ + y\x20ignored\x20by\x20PartitionQuery\x20and\n\x20PartitionRead\x20reques\ + ts.\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.\x20Th\ + e\x20actual\x20size\x20of\x20each\n\x20partition\x20may\x20be\x20smaller\ + \x20or\x20larger\x20than\x20this\x20size\x20request.\n\n\x0f\n\x05\x04\ + \x0b\x02\0\x04\x12\x06\x99\x05\x02\x92\x05\x1a\n\r\n\x05\x04\x0b\x02\0\ + \x05\x12\x04\x99\x05\x02\x07\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x99\x05\ + \x08\x1c\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x99\x05\x1f\x20\n\xb8\x03\n\ + \x04\x04\x0b\x02\x01\x12\x04\xa3\x05\x02\x1b\x1a\xa9\x03\x20**Note:**\ + \x20This\x20hint\x20is\x20currently\x20ignored\x20by\x20PartitionQuery\ + \x20and\n\x20PartitionRead\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,000.\x20The\x20maximum\x20value\x20is\x20currently\ + \x20200,000.\x20\x20This\x20is\x20only\n\x20a\x20hint.\x20\x20The\x20act\ + ual\x20number\x20of\x20partitions\x20returned\x20may\x20be\x20smaller\ + \x20or\x20larger\n\x20than\x20this\x20maximum\x20count\x20request.\n\n\ + \x0f\n\x05\x04\x0b\x02\x01\x04\x12\x06\xa3\x05\x02\x99\x05!\n\r\n\x05\ + \x04\x0b\x02\x01\x05\x12\x04\xa3\x05\x02\x07\n\r\n\x05\x04\x0b\x02\x01\ + \x01\x12\x04\xa3\x05\x08\x16\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xa3\ + \x05\x19\x1a\nZ\n\x02\x04\x0c\x12\x06\xa7\x05\0\xda\x05\x01\x1aL\x20The\ + \x20request\x20for\x20[PartitionQuery][google.spanner.v1.Spanner.Partiti\ + onQuery]\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xa7\x05\x08\x1d\nF\n\x04\x04\ + \x0c\x02\0\x12\x06\xa9\x05\x02\xae\x05\x04\x1a6\x20Required.\x20The\x20s\ + ession\x20used\x20to\x20create\x20the\x20partitions.\n\n\x0f\n\x05\x04\ + \x0c\x02\0\x04\x12\x06\xa9\x05\x02\xa7\x05\x1f\n\r\n\x05\x04\x0c\x02\0\ + \x05\x12\x04\xa9\x05\x02\x08\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xa9\x05\ + \t\x10\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xa9\x05\x13\x14\n\x0f\n\x05\ + \x04\x0c\x02\0\x08\x12\x06\xa9\x05\x15\xae\x05\x03\n\x10\n\x08\x04\x0c\ + \x02\0\x08\x9c\x08\0\x12\x04\xaa\x05\x04*\n\x11\n\x07\x04\x0c\x02\0\x08\ + \x9f\x08\x12\x06\xab\x05\x04\xad\x05\x05\no\n\x04\x04\x0c\x02\x01\x12\ + \x04\xb2\x05\x02&\x1aa\x20Read\x20only\x20snapshot\x20transactions\x20ar\ + e\x20supported,\x20read/write\x20and\x20single\x20use\n\x20transactions\ + \x20are\x20not.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\xb2\x05\x02\ + \xae\x05\x04\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\xb2\x05\x02\x15\n\r\n\ + \x05\x04\x0c\x02\x01\x01\x12\x04\xb2\x05\x16!\n\r\n\x05\x04\x0c\x02\x01\ + \x03\x12\x04\xb2\x05$%\n\xf8\x04\n\x04\x04\x0c\x02\x02\x12\x04\xbe\x05\ + \x02:\x1a\xe9\x04\x20Required.\x20The\x20query\x20request\x20to\x20gener\ + ate\x20partitions\x20for.\x20The\x20request\x20will\x20fail\x20if\n\x20t\ + he\x20query\x20is\x20not\x20root\x20partitionable.\x20The\x20query\x20pl\ + an\x20of\x20a\x20root\n\x20partitionable\x20query\x20has\x20a\x20single\ + \x20distributed\x20union\x20operator.\x20A\x20distributed\n\x20union\x20\ + operator\x20conceptually\x20divides\x20one\x20or\x20more\x20tables\x20in\ + to\x20multiple\n\x20splits,\x20remotely\x20evaluates\x20a\x20subquery\ + \x20independently\x20on\x20each\x20split,\x20and\n\x20then\x20unions\x20\ + all\x20results.\n\n\x20This\x20must\x20not\x20contain\x20DML\x20commands\ + ,\x20such\x20as\x20INSERT,\x20UPDATE,\x20or\n\x20DELETE.\x20Use\x20[Exec\ + uteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql]\x20with\ + \x20a\n\x20PartitionedDml\x20transaction\x20for\x20large,\x20partition-f\ + riendly\x20DML\x20operations.\n\n\x0f\n\x05\x04\x0c\x02\x02\x04\x12\x06\ + \xbe\x05\x02\xb2\x05&\n\r\n\x05\x04\x0c\x02\x02\x05\x12\x04\xbe\x05\x02\ + \x08\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\xbe\x05\t\x0c\n\r\n\x05\x04\ + \x0c\x02\x02\x03\x12\x04\xbe\x05\x0f\x10\n\r\n\x05\x04\x0c\x02\x02\x08\ + \x12\x04\xbe\x05\x119\n\x10\n\x08\x04\x0c\x02\x02\x08\x9c\x08\0\x12\x04\ + \xbe\x05\x128\n\x88\x04\n\x04\x04\x0c\x02\x03\x12\x04\xcc\x05\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`@`\x20character\x20followed\ \x20by\x20the\n\x20parameter\x20name\x20(for\x20example,\x20`@firstName`\ ).\x20Parameter\x20names\x20can\x20contain\n\x20letters,\x20numbers,\x20\ and\x20underscores.\n\n\x20Parameters\x20can\x20appear\x20anywhere\x20th\ - at\x20a\x20literal\x20value\x20is\x20expected.\x20\x20The\n\x20same\x20p\ + at\x20a\x20literal\x20value\x20is\x20expected.\x20\x20The\x20same\n\x20p\ arameter\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\x20unbound\x20parameters.\n\n\x11\n\ - \x07\x04\t\x03\0\x02\x01\x04\x12\x06\xa9\x04\x04\x9b\x04\x13\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\x20always\x20possible\x20for\x20Clo\ - ud\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\x20appe\ - ar\x20in\n\x20[params][google.spanner.v1.ExecuteBatchDmlRequest.Statemen\ - t.params]\x20as\n\x20JSON\x20strings.\n\n\x20In\x20these\x20cases,\x20`p\ - aram_types`\x20can\x20be\x20used\x20to\x20specify\x20the\x20exact\n\x20S\ - QL\x20type\x20for\x20some\x20or\x20all\x20of\x20the\x20SQL\x20statement\ - \x20parameters.\x20See\x20the\n\x20definition\x20of\x20[Type][google.spa\ - nner.v1.Type]\x20for\x20more\x20information\n\x20about\x20SQL\x20types.\ - \n\n\x11\n\x07\x04\t\x03\0\x02\x02\x04\x12\x06\xb5\x04\x04\xa9\x04&\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\x0f\n\x05\x04\t\ - \x02\0\x04\x12\x06\xb9\x04\x02\xb6\x04\x03\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\x20transaction\x20to\x20use.\x20Must\x20be\x20a\x20\ - read-write\x20transaction.\n\n\x20To\x20protect\x20against\x20replays,\ - \x20single-use\x20transactions\x20are\x20not\x20supported.\x20The\n\x20c\ - aller\x20must\x20either\x20supply\x20an\x20existing\x20transaction\x20ID\ - \x20or\x20begin\x20a\x20new\n\x20transaction.\n\n\x0f\n\x05\x04\t\x02\ - \x01\x04\x12\x06\xc3\x04\x02\xbc\x04\x04\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,\x20su\ - ch\x20that\x20the\x20effects\x20of\x20statement\x20`i`\x20are\x20visible\ - \x20to\n\x20statement\x20`i+1`.\x20Each\x20statement\x20must\x20be\x20a\ - \x20DML\x20statement.\x20Execution\x20stops\x20at\n\x20the\x20first\x20f\ - ailed\x20statement;\x20the\x20remaining\x20statements\x20are\x20not\x20e\ - xecuted.\n\n\x20Callers\x20must\x20provide\x20at\x20least\x20one\x20stat\ - ement.\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\x20fi\ - eld\x20makes\x20each\x20request\x20idempotent\x20such\x20that\x20if\x20t\ - he\x20request\x20is\n\x20received\x20multiple\x20times,\x20at\x20most\ - \x20one\x20will\x20succeed.\n\n\x20The\x20sequence\x20number\x20must\x20\ - be\x20monotonically\x20increasing\x20within\x20the\n\x20transaction.\x20\ - If\x20a\x20request\x20arrives\x20for\x20the\x20first\x20time\x20with\x20\ - an\x20out-of-order\n\x20sequence\x20number,\x20the\x20transaction\x20may\ - \x20be\x20aborted.\x20Replays\x20of\x20previously\n\x20handled\x20reques\ - ts\x20will\x20yield\x20the\x20same\x20response\x20as\x20the\x20first\x20\ - execution.\n\n\x0f\n\x05\x04\t\x02\x03\x04\x12\x06\xd5\x04\x02\xcb\x04M\ - \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].\x20Con\ - tains\x20a\x20list\n\x20of\x20[ResultSet][google.spanner.v1.ResultSet]\ - \x20messages,\x20one\x20for\x20each\x20DML\n\x20statement\x20that\x20has\ - \x20successfully\x20executed,\x20in\x20the\x20same\x20order\x20as\x20the\ - \x20statements\n\x20in\x20the\x20request.\x20If\x20a\x20statement\x20fai\ - ls,\x20the\x20status\x20in\x20the\x20response\x20body\n\x20identifies\ - \x20the\x20cause\x20of\x20the\x20failure.\n\n\x20To\x20check\x20for\x20D\ - ML\x20statements\x20that\x20failed,\x20use\x20the\x20following\x20approa\ - ch:\n\n\x201.\x20Check\x20the\x20status\x20in\x20the\x20response\x20mess\ - age.\x20The\n\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\x20n\ - ot\x20`OK`,\x20check\x20the\x20number\x20of\x20result\x20sets\x20in\x20t\ - he\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\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\x85\x05\x02\ - \x81\x05%\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\x20Partit\ - ionReadRequest.\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\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\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\x91\x05\x02\ - \x8a\x05\x1a\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\x20hint\x20is\x20currently\ - \x20ignored\x20by\x20PartitionQuery\x20and\n\x20PartitionRead\x20request\ - s.\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,000.\x20The\x20maxi\ - mum\x20value\x20is\x20currently\x20200,000.\x20\x20This\x20is\x20only\n\ - \x20a\x20hint.\x20\x20The\x20actual\x20number\x20of\x20partitions\x20ret\ - urned\x20may\x20be\x20smaller\x20or\x20larger\n\x20than\x20this\x20maxim\ - um\x20count\x20request.\n\n\x0f\n\x05\x04\x0b\x02\x01\x04\x12\x06\x9b\ - \x05\x02\x91\x05!\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.sp\ - anner.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\x20partit\ - ions.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xa1\x05\x02\x9f\x05\x1f\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\x20Read\x20only\x20snapshot\x20transactions\ - \x20are\x20supported,\x20read/write\x20and\x20single\x20use\n\x20transac\ - tions\x20are\x20not.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\xa8\x05\ - \x02\xa4\x05\x04\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\x20Required.\x20The\x20query\x20request\x20to\x20g\ - enerate\x20partitions\x20for.\x20The\x20request\x20will\n\x20fail\x20if\ - \x20the\x20query\x20is\x20not\x20root\x20partitionable.\x20The\x20query\ - \x20plan\x20of\x20a\x20root\n\x20partitionable\x20query\x20has\x20a\x20s\ - ingle\x20distributed\x20union\x20operator.\x20A\x20distributed\n\x20unio\ - n\x20operator\x20conceptually\x20divides\x20one\x20or\x20more\x20tables\ - \x20into\x20multiple\n\x20splits,\x20remotely\x20evaluates\x20a\x20subqu\ - ery\x20independently\x20on\x20each\x20split,\x20and\n\x20then\x20unions\ - \x20all\x20results.\n\n\x20This\x20must\x20not\x20contain\x20DML\x20comm\ - ands,\x20such\x20as\x20INSERT,\x20UPDATE,\x20or\n\x20DELETE.\x20Use\n\ - \x20[ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql]\ - \x20with\x20a\n\x20PartitionedDml\x20transaction\x20for\x20large,\x20par\ - tition-friendly\x20DML\x20operations.\n\n\x0f\n\x05\x04\x0c\x02\x02\x04\ - \x12\x06\xb5\x05\x02\xa8\x05&\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\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\x20can\x20contain\n\x20letters,\x20numbers,\ - \x20and\x20underscores.\n\n\x20Parameters\x20can\x20appear\x20anywhere\ - \x20that\x20a\x20literal\x20value\x20is\x20expected.\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\x20\ - execute\x20a\x20SQL\x20statement\x20with\x20unbound\x20parameters.\n\n\ - \x0f\n\x05\x04\x0c\x02\x03\x04\x12\x06\xc3\x05\x02\xb5\x05:\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\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\n\x20[params]\ - [google.spanner.v1.PartitionQueryRequest.params]\x20as\x20JSON\x20string\ - s.\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\x20query\x20parameters.\x20See\x20the\n\x20d\ - efinition\x20of\x20[Type][google.spanner.v1.Type]\x20for\x20more\x20info\ - rmation\n\x20about\x20SQL\x20types.\n\n\x0f\n\x05\x04\x0c\x02\x04\x04\ - \x12\x06\xce\x05\x02\xc3\x05$\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\x20partitions\x20are\x20created.\n\n\x0f\n\x05\x04\x0c\x02\x05\ - \x04\x12\x06\xd1\x05\x02\xce\x05$\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\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xd7\x05\x02\xd5\x05\x1e\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\x20are\x20support\ - ed,\x20read/write\x20and\x20single\x20use\n\x20transactions\x20are\x20no\ - t.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xde\x05\x02\xda\x05\x04\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\x20database\x20to\x20be\x20r\ - ead.\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xe1\x05\x02\xde\x05&\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.Parti\ - tionReadRequest.table].\x20This\x20index\x20is\x20used\n\x20instead\x20o\ - f\x20the\x20table\x20primary\x20key\x20when\x20interpreting\n\x20[key_se\ - t][google.spanner.v1.PartitionReadRequest.key_set]\x20and\x20sorting\n\ - \x20result\x20rows.\x20See\x20[key_set][google.spanner.v1.PartitionReadR\ - equest.key_set]\n\x20for\x20further\x20information.\n\n\x0f\n\x05\x04\r\ - \x02\x03\x04\x12\x06\xe9\x05\x02\xe1\x05<\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.PartitionReadRequest.table]\x20to\x20be\n\x20re\ - turned\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`\ + \x20a\x20SQL\x20statement\x20with\x20unbound\x20parameters.\n\n\x0f\n\ + \x05\x04\x0c\x02\x03\x04\x12\x06\xcc\x05\x02\xbe\x05:\n\r\n\x05\x04\x0c\ + \x02\x03\x06\x12\x04\xcc\x05\x02\x18\n\r\n\x05\x04\x0c\x02\x03\x01\x12\ + \x04\xcc\x05\x19\x1f\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xcc\x05\"#\n\ + \xdc\x03\n\x04\x04\x0c\x02\x04\x12\x04\xd6\x05\x02$\x1a\xcd\x03\x20It\ + \x20is\x20not\x20always\x20possible\x20for\x20Cloud\x20Spanner\x20to\x20\ + infer\x20the\x20right\x20SQL\x20type\n\x20from\x20a\x20JSON\x20value.\ + \x20\x20For\x20example,\x20values\x20of\x20type\x20`BYTES`\x20and\x20val\ + ues\n\x20of\x20type\x20`STRING`\x20both\x20appear\x20in\x20[params][goog\ + le.spanner.v1.PartitionQueryRequest.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\x20query\x20parameters.\x20See\x20the\n\x20definiti\ + on\x20of\x20[Type][google.spanner.v1.Type]\x20for\x20more\x20information\ + \n\x20about\x20SQL\x20types.\n\n\x0f\n\x05\x04\x0c\x02\x04\x04\x12\x06\ + \xd6\x05\x02\xcc\x05$\n\r\n\x05\x04\x0c\x02\x04\x06\x12\x04\xd6\x05\x02\ + \x13\n\r\n\x05\x04\x0c\x02\x04\x01\x12\x04\xd6\x05\x14\x1f\n\r\n\x05\x04\ + \x0c\x02\x04\x03\x12\x04\xd6\x05\"#\nO\n\x04\x04\x0c\x02\x05\x12\x04\xd9\ + \x05\x02)\x1aA\x20Additional\x20options\x20that\x20affect\x20how\x20many\ + \x20partitions\x20are\x20created.\n\n\x0f\n\x05\x04\x0c\x02\x05\x04\x12\ + \x06\xd9\x05\x02\xd6\x05$\n\r\n\x05\x04\x0c\x02\x05\x06\x12\x04\xd9\x05\ + \x02\x12\n\r\n\x05\x04\x0c\x02\x05\x01\x12\x04\xd9\x05\x13$\n\r\n\x05\ + \x04\x0c\x02\x05\x03\x12\x04\xd9\x05'(\nX\n\x02\x04\r\x12\x06\xdd\x05\0\ + \x81\x06\x01\x1aJ\x20The\x20request\x20for\x20[PartitionRead][google.spa\ + nner.v1.Spanner.PartitionRead]\n\n\x0b\n\x03\x04\r\x01\x12\x04\xdd\x05\ + \x08\x1c\nF\n\x04\x04\r\x02\0\x12\x06\xdf\x05\x02\xe4\x05\x04\x1a6\x20Re\ + quired.\x20The\x20session\x20used\x20to\x20create\x20the\x20partitions.\ + \n\n\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xdf\x05\x02\xdd\x05\x1e\n\r\n\x05\ + \x04\r\x02\0\x05\x12\x04\xdf\x05\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\ + \x04\xdf\x05\t\x10\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xdf\x05\x13\x14\n\ + \x0f\n\x05\x04\r\x02\0\x08\x12\x06\xdf\x05\x15\xe4\x05\x03\n\x10\n\x08\ + \x04\r\x02\0\x08\x9c\x08\0\x12\x04\xe0\x05\x04*\n\x11\n\x07\x04\r\x02\0\ + \x08\x9f\x08\x12\x06\xe1\x05\x04\xe3\x05\x05\no\n\x04\x04\r\x02\x01\x12\ + \x04\xe8\x05\x02&\x1aa\x20Read\x20only\x20snapshot\x20transactions\x20ar\ + e\x20supported,\x20read/write\x20and\x20single\x20use\n\x20transactions\ + \x20are\x20not.\n\n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xe8\x05\x02\xe4\ + \x05\x04\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xe8\x05\x02\x15\n\r\n\x05\ + \x04\r\x02\x01\x01\x12\x04\xe8\x05\x16!\n\r\n\x05\x04\r\x02\x01\x03\x12\ + \x04\xe8\x05$%\nK\n\x04\x04\r\x02\x02\x12\x04\xeb\x05\x02<\x1a=\x20Requi\ + red.\x20The\x20name\x20of\x20the\x20table\x20in\x20the\x20database\x20to\ + \x20be\x20read.\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xeb\x05\x02\xe8\ + \x05&\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xeb\x05\x02\x08\n\r\n\x05\x04\ + \r\x02\x02\x01\x12\x04\xeb\x05\t\x0e\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\ + \xeb\x05\x11\x12\n\r\n\x05\x04\r\x02\x02\x08\x12\x04\xeb\x05\x13;\n\x10\ + \n\x08\x04\r\x02\x02\x08\x9c\x08\0\x12\x04\xeb\x05\x14:\n\xdf\x02\n\x04\ + \x04\r\x02\x03\x12\x04\xf0\x05\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\x20primary\x20key\x20when\x20interpreting\x20[key\ + _set][google.spanner.v1.PartitionReadRequest.key_set]\n\x20and\x20sortin\ + g\x20result\x20rows.\x20See\x20[key_set][google.spanner.v1.PartitionRead\ + Request.key_set]\x20for\x20further\x20information.\n\n\x0f\n\x05\x04\r\ + \x02\x03\x04\x12\x06\xf0\x05\x02\xeb\x05<\n\r\n\x05\x04\r\x02\x03\x05\ + \x12\x04\xf0\x05\x02\x08\n\r\n\x05\x04\r\x02\x03\x01\x12\x04\xf0\x05\t\ + \x0e\n\r\n\x05\x04\r\x02\x03\x03\x12\x04\xf0\x05\x11\x12\n\x88\x01\n\x04\ + \x04\r\x02\x04\x12\x04\xf4\x05\x02\x1e\x1az\x20The\x20columns\x20of\x20[\ + table][google.spanner.v1.PartitionReadRequest.table]\x20to\x20be\x20retu\ + rned\x20for\x20each\x20row\x20matching\n\x20this\x20request.\n\n\r\n\x05\ + \x04\r\x02\x04\x04\x12\x04\xf4\x05\x02\n\n\r\n\x05\x04\r\x02\x04\x05\x12\ + \x04\xf4\x05\x0b\x11\n\r\n\x05\x04\r\x02\x04\x01\x12\x04\xf4\x05\x12\x19\ + \n\r\n\x05\x04\r\x02\x04\x03\x12\x04\xf4\x05\x1c\x1d\n\xe1\x04\n\x04\x04\ + \r\x02\x05\x12\x04\xfd\x05\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\n\x20[table][\ - google.spanner.v1.PartitionReadRequest.table]\x20to\x20be\x20yielded,\ - \x20unless\n\x20[index][google.spanner.v1.PartitionReadRequest.index]\ - \x20is\x20present.\x20If\n\x20[index][google.spanner.v1.PartitionReadReq\ - uest.index]\x20is\x20present,\x20then\n\x20[key_set][google.spanner.v1.P\ - artitionReadRequest.key_set]\x20instead\x20names\n\x20index\x20keys\x20i\ - n\x20[index][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.\x20Re\ - ad\x20yields\x20nothing\x20for\x20nonexistent\x20rows.\n\n\x0f\n\x05\x04\ - \r\x02\x05\x04\x12\x06\xf9\x05\x02\xed\x05\x1e\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\x20parti\ - tions\x20are\x20created.\n\n\x0f\n\x05\x04\r\x02\x06\x04\x12\x06\xfc\x05\ - \x02\xf9\x05>\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\ - \x20Information\x20returned\x20for\x20each\x20partition\x20returned\x20i\ - n\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,\x20Streaming\ - Read,\x20ExecuteSql,\x20or\n\x20ExecuteStreamingSql\x20requests\x20to\ - \x20restrict\x20the\x20results\x20to\x20those\x20identified\x20by\n\x20t\ - his\x20partition\x20token.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\x85\ - \x06\x02\x81\x06\x13\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[PartitionQu\ - ery][google.spanner.v1.Spanner.PartitionQuery]\n\x20or\x20[PartitionRead\ - ][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\x0f\n\x05\x04\x0f\x02\x01\x04\x12\x06\x8f\x06\x02\x8c\x06$\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.Spanner.Read]\ - \x20and\n\x20[StreamingRead][google.spanner.v1.Spanner.StreamingRead].\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\x20\ - in\x20which\x20the\x20read\x20should\x20be\x20performed.\n\n\x0f\n\x05\ - \x04\x10\x02\0\x04\x12\x06\x96\x06\x02\x94\x06\x15\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\ + 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\x0f\n\x05\x04\r\x02\x05\x04\ + \x12\x06\xfd\x05\x02\xf4\x05\x1e\n\r\n\x05\x04\r\x02\x05\x06\x12\x04\xfd\ + \x05\x02\x08\n\r\n\x05\x04\r\x02\x05\x01\x12\x04\xfd\x05\t\x10\n\r\n\x05\ + \x04\r\x02\x05\x03\x12\x04\xfd\x05\x13\x14\n\r\n\x05\x04\r\x02\x05\x08\ + \x12\x04\xfd\x05\x15=\n\x10\n\x08\x04\r\x02\x05\x08\x9c\x08\0\x12\x04\ + \xfd\x05\x16<\nO\n\x04\x04\r\x02\x06\x12\x04\x80\x06\x02)\x1aA\x20Additi\ + onal\x20options\x20that\x20affect\x20how\x20many\x20partitions\x20are\ + \x20created.\n\n\x0f\n\x05\x04\r\x02\x06\x04\x12\x06\x80\x06\x02\xfd\x05\ + >\n\r\n\x05\x04\r\x02\x06\x06\x12\x04\x80\x06\x02\x12\n\r\n\x05\x04\r\ + \x02\x06\x01\x12\x04\x80\x06\x13$\n\r\n\x05\x04\r\x02\x06\x03\x12\x04\ + \x80\x06'(\nY\n\x02\x04\x0e\x12\x06\x85\x06\0\x8a\x06\x01\x1aK\x20Inform\ + ation\x20returned\x20for\x20each\x20partition\x20returned\x20in\x20a\n\ + \x20PartitionResponse.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x85\x06\x08\x11\ + \n\xb4\x01\n\x04\x04\x0e\x02\0\x12\x04\x89\x06\x02\x1c\x1a\xa5\x01\x20Th\ + is\x20token\x20can\x20be\x20passed\x20to\x20Read,\x20StreamingRead,\x20E\ + xecuteSql,\x20or\n\x20ExecuteStreamingSql\x20requests\x20to\x20restrict\ + \x20the\x20results\x20to\x20those\x20identified\x20by\n\x20this\x20parti\ + tion\x20token.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\x89\x06\x02\x85\ + \x06\x13\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\x89\x06\x02\x07\n\r\n\x05\ + \x04\x0e\x02\0\x01\x12\x04\x89\x06\x08\x17\n\r\n\x05\x04\x0e\x02\0\x03\ + \x12\x04\x89\x06\x1a\x1b\n\x99\x01\n\x02\x04\x0f\x12\x06\x8e\x06\0\x94\ + \x06\x01\x1a\x8a\x01\x20The\x20response\x20for\x20[PartitionQuery][googl\ + e.spanner.v1.Spanner.PartitionQuery]\n\x20or\x20[PartitionRead][google.s\ + panner.v1.Spanner.PartitionRead]\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\x8e\ + \x06\x08\x19\n3\n\x04\x04\x0f\x02\0\x12\x04\x90\x06\x02$\x1a%\x20Partiti\ + ons\x20created\x20by\x20this\x20request.\n\n\r\n\x05\x04\x0f\x02\0\x04\ + \x12\x04\x90\x06\x02\n\n\r\n\x05\x04\x0f\x02\0\x06\x12\x04\x90\x06\x0b\ + \x14\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x90\x06\x15\x1f\n\r\n\x05\x04\ + \x0f\x02\0\x03\x12\x04\x90\x06\"#\n4\n\x04\x04\x0f\x02\x01\x12\x04\x93\ + \x06\x02\x1e\x1a&\x20Transaction\x20created\x20by\x20this\x20request.\n\ + \n\x0f\n\x05\x04\x0f\x02\x01\x04\x12\x06\x93\x06\x02\x90\x06$\n\r\n\x05\ + \x04\x0f\x02\x01\x06\x12\x04\x93\x06\x02\r\n\r\n\x05\x04\x0f\x02\x01\x01\ + \x12\x04\x93\x06\x0e\x19\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x93\x06\ + \x1c\x1d\n\x85\x01\n\x02\x04\x10\x12\x06\x98\x06\0\xd1\x06\x01\x1aw\x20T\ + he\x20request\x20for\x20[Read][google.spanner.v1.Spanner.Read]\x20and\n\ + \x20[StreamingRead][google.spanner.v1.Spanner.StreamingRead].\n\n\x0b\n\ + \x03\x04\x10\x01\x12\x04\x98\x06\x08\x13\nN\n\x04\x04\x10\x02\0\x12\x06\ + \x9a\x06\x02\x9f\x06\x04\x1a>\x20Required.\x20The\x20session\x20in\x20wh\ + ich\x20the\x20read\x20should\x20be\x20performed.\n\n\x0f\n\x05\x04\x10\ + \x02\0\x04\x12\x06\x9a\x06\x02\x98\x06\x15\n\r\n\x05\x04\x10\x02\0\x05\ + \x12\x04\x9a\x06\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\x9a\x06\t\ + \x10\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x9a\x06\x13\x14\n\x0f\n\x05\x04\ + \x10\x02\0\x08\x12\x06\x9a\x06\x15\x9f\x06\x03\n\x10\n\x08\x04\x10\x02\0\ + \x08\x9c\x08\0\x12\x04\x9b\x06\x04*\n\x11\n\x07\x04\x10\x02\0\x08\x9f\ + \x08\x12\x06\x9c\x06\x04\x9e\x06\x05\n\x87\x01\n\x04\x04\x10\x02\x01\x12\ + \x04\xa3\x06\x02&\x1ay\x20The\x20transaction\x20to\x20use.\x20If\x20none\ \x20is\x20provided,\x20the\x20default\x20is\x20a\n\x20temporary\x20read-\ only\x20transaction\x20with\x20strong\x20concurrency.\n\n\x0f\n\x05\x04\ - \x10\x02\x01\x04\x12\x06\x9d\x06\x02\x99\x06\x04\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\ + \x10\x02\x01\x04\x12\x06\xa3\x06\x02\x9f\x06\x04\n\r\n\x05\x04\x10\x02\ + \x01\x06\x12\x04\xa3\x06\x02\x15\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\ + \xa3\x06\x16!\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xa3\x06$%\nK\n\x04\ + \x04\x10\x02\x02\x12\x04\xa6\x06\x02<\x1a=\x20Required.\x20The\x20name\ \x20of\x20the\x20table\x20in\x20the\x20database\x20to\x20be\x20read.\n\n\ - \x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\xa0\x06\x02\x9d\x06&\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,\x20\ - the\x20name\x20of\x20an\x20index\x20on\n\x20[table][google.spanner.v1.Re\ - adRequest.table].\x20This\x20index\x20is\x20used\x20instead\x20of\n\x20t\ - he\x20table\x20primary\x20key\x20when\x20interpreting\n\x20[key_set][goo\ - gle.spanner.v1.ReadRequest.key_set]\x20and\x20sorting\x20result\x20rows.\ - \n\x20See\x20[key_set][google.spanner.v1.ReadRequest.key_set]\x20for\x20\ - further\n\x20information.\n\n\x0f\n\x05\x04\x10\x02\x03\x04\x12\x06\xa8\ - \x06\x02\xa0\x06<\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][g\ - oogle.spanner.v1.ReadRequest.table]\x20to\x20be\n\x20returned\x20for\x20\ - each\x20row\x20matching\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\x20t\ + \x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\xa6\x06\x02\xa3\x06&\n\r\n\x05\ + \x04\x10\x02\x02\x05\x12\x04\xa6\x06\x02\x08\n\r\n\x05\x04\x10\x02\x02\ + \x01\x12\x04\xa6\x06\t\x0e\n\r\n\x05\x04\x10\x02\x02\x03\x12\x04\xa6\x06\ + \x11\x12\n\r\n\x05\x04\x10\x02\x02\x08\x12\x04\xa6\x06\x13;\n\x10\n\x08\ + \x04\x10\x02\x02\x08\x9c\x08\0\x12\x04\xa6\x06\x14:\n\xc4\x02\n\x04\x04\ + \x10\x02\x03\x12\x04\xab\x06\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\x0f\n\x05\x04\x10\x02\x03\x04\x12\x06\xab\x06\ + \x02\xa6\x06<\n\r\n\x05\x04\x10\x02\x03\x05\x12\x04\xab\x06\x02\x08\n\r\ + \n\x05\x04\x10\x02\x03\x01\x12\x04\xab\x06\t\x0e\n\r\n\x05\x04\x10\x02\ + \x03\x03\x12\x04\xab\x06\x11\x12\n\x89\x01\n\x04\x04\x10\x02\x04\x12\x04\ + \xaf\x06\x02G\x1a{\x20Required.\x20The\x20columns\x20of\x20[table][googl\ + e.spanner.v1.ReadRequest.table]\x20to\x20be\x20returned\x20for\x20each\ + \x20row\x20matching\n\x20this\x20request.\n\n\r\n\x05\x04\x10\x02\x04\ + \x04\x12\x04\xaf\x06\x02\n\n\r\n\x05\x04\x10\x02\x04\x05\x12\x04\xaf\x06\ + \x0b\x11\n\r\n\x05\x04\x10\x02\x04\x01\x12\x04\xaf\x06\x12\x19\n\r\n\x05\ + \x04\x10\x02\x04\x03\x12\x04\xaf\x06\x1c\x1d\n\r\n\x05\x04\x10\x02\x04\ + \x08\x12\x04\xaf\x06\x1eF\n\x10\n\x08\x04\x10\x02\x04\x08\x9c\x08\0\x12\ + \x04\xaf\x06\x1fE\n\xd6\x07\n\x04\x04\x10\x02\x05\x12\x04\xbd\x06\x02>\ + \x1a\xc7\x07\x20Required.\x20`key_set`\x20identifies\x20the\x20rows\x20t\ o\x20be\x20yielded.\x20`key_set`\x20names\x20the\n\x20primary\x20keys\ \x20of\x20the\x20rows\x20in\x20[table][google.spanner.v1.ReadRequest.tab\ - le]\x20to\n\x20be\x20yielded,\x20unless\x20[index][google.spanner.v1.Rea\ - dRequest.index]\x20is\x20present.\n\x20If\x20[index][google.spanner.v1.R\ - eadRequest.index]\x20is\x20present,\x20then\n\x20[key_set][google.spanne\ - r.v1.ReadRequest.key_set]\x20instead\x20names\x20index\x20keys\n\x20in\ - \x20[index][google.spanner.v1.ReadRequest.index].\n\n\x20If\x20the\x20[p\ - artition_token][google.spanner.v1.ReadRequest.partition_token]\n\x20fiel\ - d\x20is\x20empty,\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][goo\ - gle.spanner.v1.ReadRequest.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\x20i\ - n\x20an\x20unspecified\x20order.\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\x0f\n\x05\x04\x10\x02\x05\x04\x12\x06\xbe\ - \x06\x02\xac\x06G\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`l\ - imit`\x20rows\x20are\x20yielded.\x20If\x20`limit`\n\x20is\x20zero,\x20th\ - e\x20default\x20is\x20no\x20limit.\x20A\x20limit\x20cannot\x20be\x20spec\ - ified\x20if\n\x20`partition_token`\x20is\x20set.\n\n\x0f\n\x05\x04\x10\ - \x02\x06\x04\x12\x06\xc3\x06\x02\xbe\x06>\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\x0f\n\x05\x04\x10\x02\x07\x04\x12\x06\xcb\x06\x02\xc3\x06\x12\ - \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\x20restricte\ - d\x20to\x20the\x20specified\x20partition\n\x20previously\x20created\x20u\ - sing\x20PartitionRead().\x20\x20\x20\x20There\x20must\x20be\x20an\x20exa\ - ct\n\x20match\x20for\x20the\x20values\x20of\x20fields\x20common\x20to\ - \x20this\x20message\x20and\x20the\n\x20PartitionReadRequest\x20message\ - \x20used\x20to\x20create\x20this\x20partition_token.\n\n\x0f\n\x05\x04\ - \x10\x02\x08\x04\x12\x06\xd1\x06\x02\xcb\x06\x19\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\x20request\x20\ - for\n\x20[BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].\ - \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\x0f\n\x05\x04\x11\x02\ - \0\x04\x12\x06\xd8\x06\x02\xd6\x06!\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,\x20\ - Required.\x20Options\x20for\x20the\x20new\x20transaction.\n\n\x0f\n\x05\ - \x04\x11\x02\x01\x04\x12\x06\xde\x06\x02\xdb\x06\x04\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.span\ - ner.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\x20Req\ - uired.\x20The\x20session\x20in\x20which\x20the\x20transaction\x20to\x20b\ - e\x20committed\x20is\x20running.\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\x06\ - \xe4\x06\x02\xe2\x06\x17\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\x20in\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*\x20Commit\x20a\x20previously-started\x20transactio\ - n.\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\x04\ - 2\x1a\x95\x04\x20Execute\x20mutations\x20in\x20a\x20temporary\x20transac\ - tion.\x20Note\x20that\x20unlike\n\x20commit\x20of\x20a\x20previously-sta\ - rted\x20transaction,\x20commit\x20with\x20a\n\x20temporary\x20transactio\ - n\x20is\x20non-idempotent.\x20That\x20is,\x20if\x20the\n\x20`CommitReque\ - st`\x20is\x20sent\x20to\x20Cloud\x20Spanner\x20more\x20than\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\x20more\x20than\x20onc\ - e.\x20If\x20this\x20is\x20undesirable,\x20use\n\x20[BeginTransaction][go\ - ogle.spanner.v1.Spanner.BeginTransaction]\x20and\n\x20[Commit][google.sp\ - anner.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\x20\ - be\x20executed\x20when\x20this\x20transaction\x20commits.\x20All\n\x20mu\ - tations\x20are\x20applied\x20atomically,\x20in\x20the\x20order\x20they\ - \x20appear\x20in\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.Sp\ - anner.Commit].\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\ - \x20timestamp\x20at\x20which\x20the\x20transaction\x20committed.\n\n\x0f\ - \n\x05\x04\x13\x02\0\x04\x12\x06\x83\x07\x02\x81\x07\x18\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\x0f\n\x05\ - \x04\x14\x02\0\x04\x12\x06\x89\x07\x02\x87\x07\x19\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\x20back.\ - \n\n\x0f\n\x05\x04\x14\x02\x01\x04\x12\x06\x8f\x07\x02\x8c\x07\x04\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\x1cBb\x06proto3\ + le]\x20to\x20be\x20yielded,\x20unless\x20[index][google.spanner.v1.ReadR\ + equest.index]\n\x20is\x20present.\x20If\x20[index][google.spanner.v1.Rea\ + dRequest.index]\x20is\x20present,\x20then\x20[key_set][google.spanner.v1\ + .ReadRequest.key_set]\x20instead\x20names\n\x20index\x20keys\x20in\x20[i\ + ndex][google.spanner.v1.ReadRequest.index].\n\n\x20If\x20the\x20[partiti\ + on_token][google.spanner.v1.ReadRequest.partition_token]\x20field\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][google.spa\ + nner.v1.ReadRequest.index]\x20is\x20non-empty).\x20\x20If\x20the\x20[par\ + tition_token][google.spanner.v1.ReadRequest.partition_token]\x20field\ + \x20is\x20not\n\x20empty,\x20rows\x20will\x20be\x20yielded\x20in\x20an\ + \x20unspecified\x20order.\n\n\x20It\x20is\x20not\x20an\x20error\x20for\ + \x20the\x20`key_set`\x20to\x20name\x20rows\x20that\x20do\x20not\n\x20exi\ + st\x20in\x20the\x20database.\x20Read\x20yields\x20nothing\x20for\x20none\ + xistent\x20rows.\n\n\x0f\n\x05\x04\x10\x02\x05\x04\x12\x06\xbd\x06\x02\ + \xaf\x06G\n\r\n\x05\x04\x10\x02\x05\x06\x12\x04\xbd\x06\x02\x08\n\r\n\ + \x05\x04\x10\x02\x05\x01\x12\x04\xbd\x06\t\x10\n\r\n\x05\x04\x10\x02\x05\ + \x03\x12\x04\xbd\x06\x13\x14\n\r\n\x05\x04\x10\x02\x05\x08\x12\x04\xbd\ + \x06\x15=\n\x10\n\x08\x04\x10\x02\x05\x08\x9c\x08\0\x12\x04\xbd\x06\x16<\ + \n\xb7\x01\n\x04\x04\x10\x02\x06\x12\x04\xc2\x06\x02\x12\x1a\xa8\x01\x20\ + If\x20greater\x20than\x20zero,\x20only\x20the\x20first\x20`limit`\x20row\ + s\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\x0f\n\x05\x04\x10\x02\x06\x04\ + \x12\x06\xc2\x06\x02\xbd\x06>\n\r\n\x05\x04\x10\x02\x06\x05\x12\x04\xc2\ + \x06\x02\x07\n\r\n\x05\x04\x10\x02\x06\x01\x12\x04\xc2\x06\x08\r\n\r\n\ + \x05\x04\x10\x02\x06\x03\x12\x04\xc2\x06\x10\x11\n\xf9\x02\n\x04\x04\x10\ + \x02\x07\x12\x04\xca\x06\x02\x19\x1a\xea\x02\x20If\x20this\x20request\ + \x20is\x20resuming\x20a\x20previously\x20interrupted\x20read,\n\x20`resu\ + me_token`\x20should\x20be\x20copied\x20from\x20the\x20last\n\x20[Partial\ + ResultSet][google.spanner.v1.PartialResultSet]\x20yielded\x20before\x20t\ + he\x20interruption.\x20Doing\x20this\n\x20enables\x20the\x20new\x20read\ + \x20to\x20resume\x20where\x20the\x20last\x20read\x20left\x20off.\x20The\ + \n\x20rest\x20of\x20the\x20request\x20parameters\x20must\x20exactly\x20m\ + atch\x20the\x20request\n\x20that\x20yielded\x20this\x20token.\n\n\x0f\n\ + \x05\x04\x10\x02\x07\x04\x12\x06\xca\x06\x02\xc2\x06\x12\n\r\n\x05\x04\ + \x10\x02\x07\x05\x12\x04\xca\x06\x02\x07\n\r\n\x05\x04\x10\x02\x07\x01\ + \x12\x04\xca\x06\x08\x14\n\r\n\x05\x04\x10\x02\x07\x03\x12\x04\xca\x06\ + \x17\x18\n\x99\x02\n\x04\x04\x10\x02\x08\x12\x04\xd0\x06\x02\x1d\x1a\x8a\ + \x02\x20If\x20present,\x20results\x20will\x20be\x20restricted\x20to\x20t\ + he\x20specified\x20partition\n\x20previously\x20created\x20using\x20Part\ + itionRead().\x20\x20\x20\x20There\x20must\x20be\x20an\x20exact\n\x20matc\ + h\x20for\x20the\x20values\x20of\x20fields\x20common\x20to\x20this\x20mes\ + sage\x20and\x20the\n\x20PartitionReadRequest\x20message\x20used\x20to\ + \x20create\x20this\x20partition_token.\n\n\x0f\n\x05\x04\x10\x02\x08\x04\ + \x12\x06\xd0\x06\x02\xca\x06\x19\n\r\n\x05\x04\x10\x02\x08\x05\x12\x04\ + \xd0\x06\x02\x07\n\r\n\x05\x04\x10\x02\x08\x01\x12\x04\xd0\x06\x08\x17\n\ + \r\n\x05\x04\x10\x02\x08\x03\x12\x04\xd0\x06\x1a\x1c\n_\n\x02\x04\x11\ + \x12\x06\xd4\x06\0\xdf\x06\x01\x1aQ\x20The\x20request\x20for\x20[BeginTr\ + ansaction][google.spanner.v1.Spanner.BeginTransaction].\n\n\x0b\n\x03\ + \x04\x11\x01\x12\x04\xd4\x06\x08\x1f\nF\n\x04\x04\x11\x02\0\x12\x06\xd6\ + \x06\x02\xdb\x06\x04\x1a6\x20Required.\x20The\x20session\x20in\x20which\ + \x20the\x20transaction\x20runs.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\ + \xd6\x06\x02\xd4\x06!\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xd6\x06\x02\ + \x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xd6\x06\t\x10\n\r\n\x05\x04\x11\ + \x02\0\x03\x12\x04\xd6\x06\x13\x14\n\x0f\n\x05\x04\x11\x02\0\x08\x12\x06\ + \xd6\x06\x15\xdb\x06\x03\n\x10\n\x08\x04\x11\x02\0\x08\x9c\x08\0\x12\x04\ + \xd7\x06\x04*\n\x11\n\x07\x04\x11\x02\0\x08\x9f\x08\x12\x06\xd8\x06\x04\ + \xda\x06\x05\n:\n\x04\x04\x11\x02\x01\x12\x04\xde\x06\x02J\x1a,\x20Requi\ + red.\x20Options\x20for\x20the\x20new\x20transaction.\n\n\x0f\n\x05\x04\ + \x11\x02\x01\x04\x12\x06\xde\x06\x02\xdb\x06\x04\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\ + \x85\x07\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\xe9\x06\x04\x1aL\x20Required.\ + \x20The\x20session\x20in\x20which\x20the\x20transaction\x20to\x20be\x20c\ + ommitted\x20is\x20running.\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\x06\xe4\ + \x06\x02\xe2\x06\x17\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\xe9\x06\x03\n\x10\n\x08\x04\x12\x02\0\x08\x9c\x08\0\x12\x04\xe5\ + \x06\x04*\n\x11\n\x07\x04\x12\x02\0\x08\x9f\x08\x12\x06\xe6\x06\x04\xe8\ + \x06\x05\n?\n\x04\x04\x12\x08\0\x12\x06\xec\x06\x02\xfa\x06\x03\x1a/\x20\ + Required.\x20The\x20transaction\x20in\x20which\x20to\x20commit.\n\n\r\n\ + \x05\x04\x12\x08\0\x01\x12\x04\xec\x06\x08\x13\n8\n\x04\x04\x12\x02\x01\ + \x12\x04\xee\x06\x04\x1d\x1a*\x20Commit\x20a\x20previously-started\x20tr\ + ansaction.\n\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\xee\x06\x04\t\n\r\n\ + \x05\x04\x12\x02\x01\x01\x12\x04\xee\x06\n\x18\n\r\n\x05\x04\x12\x02\x01\ + \x03\x12\x04\xee\x06\x1b\x1c\n\xa4\x04\n\x04\x04\x12\x02\x02\x12\x04\xf9\ + \x06\x042\x1a\x95\x04\x20Execute\x20mutations\x20in\x20a\x20temporary\ + \x20transaction.\x20Note\x20that\x20unlike\n\x20commit\x20of\x20a\x20pre\ + viously-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\ + \x12\x02\x02\x06\x12\x04\xf9\x06\x04\x16\n\r\n\x05\x04\x12\x02\x02\x01\ + \x12\x04\xf9\x06\x17-\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xf9\x0601\n\ + \x9b\x01\n\x04\x04\x12\x02\x03\x12\x04\xff\x06\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\x12\x02\x03\x04\x12\x04\xff\x06\x02\n\n\r\n\x05\x04\x12\x02\x03\x06\ + \x12\x04\xff\x06\x0b\x13\n\r\n\x05\x04\x12\x02\x03\x01\x12\x04\xff\x06\ + \x14\x1d\n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\xff\x06\x20!\n\xbb\x01\n\ + \x04\x04\x12\x02\x04\x12\x04\x84\x07\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\x0f\n\x05\x04\x12\x02\x04\x04\x12\x06\x84\x07\x02\xff\x06\"\n\r\n\x05\ + \x04\x12\x02\x04\x05\x12\x04\x84\x07\x02\x06\n\r\n\x05\x04\x12\x02\x04\ + \x01\x12\x04\x84\x07\x07\x1a\n\r\n\x05\x04\x12\x02\x04\x03\x12\x04\x84\ + \x07\x1d\x1e\nL\n\x02\x04\x13\x12\x06\x88\x07\0\x9c\x07\x01\x1a>\x20The\ + \x20response\x20for\x20[Commit][google.spanner.v1.Spanner.Commit].\n\n\ + \x0b\n\x03\x04\x13\x01\x12\x04\x88\x07\x08\x16\n7\n\x04\x04\x13\x03\0\ + \x12\x06\x8a\x07\x02\x93\x07\x03\x1a'\x20Additional\x20statistics\x20abo\ + ut\x20a\x20commit.\n\n\r\n\x05\x04\x13\x03\0\x01\x12\x04\x8a\x07\n\x15\n\ + \xc2\x04\n\x06\x04\x13\x03\0\x02\0\x12\x04\x92\x07\x04\x1d\x1a\xb1\x04\ + \x20The\x20total\x20number\x20of\x20mutations\x20for\x20the\x20transacti\ + on.\x20Knowing\x20the\n\x20`mutation_count`\x20value\x20can\x20help\x20y\ + ou\x20maximize\x20the\x20number\x20of\x20mutations\n\x20in\x20a\x20trans\ + action\x20and\x20minimize\x20the\x20number\x20of\x20API\x20round\x20trip\ + s.\x20You\x20can\n\x20also\x20monitor\x20this\x20value\x20to\x20prevent\ + \x20transactions\x20from\x20exceeding\x20the\x20system\n\x20[limit](http\ + ://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_\ + and_deleting_data).\n\x20If\x20the\x20number\x20of\x20mutations\x20excee\ + ds\x20the\x20limit,\x20the\x20server\x20returns\n\x20[INVALID_ARGUMENT](\ + http://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.\ + INVALID_ARGUMENT).\n\n\x11\n\x07\x04\x13\x03\0\x02\0\x04\x12\x06\x92\x07\ + \x04\x8a\x07\x17\n\x0f\n\x07\x04\x13\x03\0\x02\0\x05\x12\x04\x92\x07\x04\ + \t\n\x0f\n\x07\x04\x13\x03\0\x02\0\x01\x12\x04\x92\x07\n\x18\n\x0f\n\x07\ + \x04\x13\x03\0\x02\0\x03\x12\x04\x92\x07\x1b\x1c\nO\n\x04\x04\x13\x02\0\ + \x12\x04\x96\x07\x021\x1aA\x20The\x20Cloud\x20Spanner\x20timestamp\x20at\ + \x20which\x20the\x20transaction\x20committed.\n\n\x0f\n\x05\x04\x13\x02\ + \0\x04\x12\x06\x96\x07\x02\x93\x07\x03\n\r\n\x05\x04\x13\x02\0\x06\x12\ + \x04\x96\x07\x02\x1b\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\x96\x07\x1c,\n\ + \r\n\x05\x04\x13\x02\0\x03\x12\x04\x96\x07/0\n\xc1\x01\n\x04\x04\x13\x02\ + \x01\x12\x04\x9b\x07\x02\x1f\x1a\xb2\x01\x20The\x20statistics\x20about\ + \x20this\x20Commit.\x20Not\x20returned\x20by\x20default.\n\x20For\x20mor\ + e\x20information,\x20see\n\x20[CommitRequest.return_commit_stats][google\ + .spanner.v1.CommitRequest.return_commit_stats].\n\n\x0f\n\x05\x04\x13\ + \x02\x01\x04\x12\x06\x9b\x07\x02\x96\x071\n\r\n\x05\x04\x13\x02\x01\x06\ + \x12\x04\x9b\x07\x02\r\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\x9b\x07\x0e\ + \x1a\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\x9b\x07\x1d\x1e\nO\n\x02\x04\ + \x14\x12\x06\x9f\x07\0\xaa\x07\x01\x1aA\x20The\x20request\x20for\x20[Rol\ + lback][google.spanner.v1.Spanner.Rollback].\n\n\x0b\n\x03\x04\x14\x01\ + \x12\x04\x9f\x07\x08\x17\nY\n\x04\x04\x14\x02\0\x12\x06\xa1\x07\x02\xa6\ + \x07\x04\x1aI\x20Required.\x20The\x20session\x20in\x20which\x20the\x20tr\ + ansaction\x20to\x20roll\x20back\x20is\x20running.\n\n\x0f\n\x05\x04\x14\ + \x02\0\x04\x12\x06\xa1\x07\x02\x9f\x07\x19\n\r\n\x05\x04\x14\x02\0\x05\ + \x12\x04\xa1\x07\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xa1\x07\t\ + \x10\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\xa1\x07\x13\x14\n\x0f\n\x05\x04\ + \x14\x02\0\x08\x12\x06\xa1\x07\x15\xa6\x07\x03\n\x10\n\x08\x04\x14\x02\0\ + \x08\x9c\x08\0\x12\x04\xa2\x07\x04*\n\x11\n\x07\x04\x14\x02\0\x08\x9f\ + \x08\x12\x06\xa3\x07\x04\xa5\x07\x05\n7\n\x04\x04\x14\x02\x01\x12\x04\ + \xa9\x07\x02D\x1a)\x20Required.\x20The\x20transaction\x20to\x20roll\x20b\ + ack.\n\n\x0f\n\x05\x04\x14\x02\x01\x04\x12\x06\xa9\x07\x02\xa6\x07\x04\n\ + \r\n\x05\x04\x14\x02\x01\x05\x12\x04\xa9\x07\x02\x07\n\r\n\x05\x04\x14\ + \x02\x01\x01\x12\x04\xa9\x07\x08\x16\n\r\n\x05\x04\x14\x02\x01\x03\x12\ + \x04\xa9\x07\x19\x1a\n\r\n\x05\x04\x14\x02\x01\x08\x12\x04\xa9\x07\x1bC\ + \n\x10\n\x08\x04\x14\x02\x01\x08\x9c\x08\0\x12\x04\xa9\x07\x1cBb\x06prot\ + o3\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner_grpc.rs index b23081f116..7fd860c39e 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner_grpc.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/spanner_grpc.rs @@ -362,51 +362,21 @@ impl SpannerClient { } pub trait Spanner { - fn create_session(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::CreateSessionRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn batch_create_sessions(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::BatchCreateSessionsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_session(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::GetSessionRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_sessions(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ListSessionsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_session(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::DeleteSessionRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn execute_sql(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ExecuteSqlRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn execute_streaming_sql(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ExecuteSqlRequest, sink: ::grpcio::ServerStreamingSink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn execute_batch_dml(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ExecuteBatchDmlRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn read(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ReadRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn streaming_read(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::ReadRequest, sink: ::grpcio::ServerStreamingSink) { - grpcio::unimplemented_call!(ctx, sink) - } - 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) { - grpcio::unimplemented_call!(ctx, sink) - } - fn rollback(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::RollbackRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn partition_query(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::PartitionQueryRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn partition_read(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::PartitionReadRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } + fn create_session(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::CreateSessionRequest, sink: ::grpcio::UnarySink); + fn batch_create_sessions(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::BatchCreateSessionsRequest, sink: ::grpcio::UnarySink); + fn get_session(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::GetSessionRequest, sink: ::grpcio::UnarySink); + fn list_sessions(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ListSessionsRequest, sink: ::grpcio::UnarySink); + fn delete_session(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::DeleteSessionRequest, sink: ::grpcio::UnarySink); + fn execute_sql(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ExecuteSqlRequest, sink: ::grpcio::UnarySink); + fn execute_streaming_sql(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ExecuteSqlRequest, sink: ::grpcio::ServerStreamingSink); + fn execute_batch_dml(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ExecuteBatchDmlRequest, sink: ::grpcio::UnarySink); + fn read(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ReadRequest, sink: ::grpcio::UnarySink); + fn streaming_read(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::ReadRequest, sink: ::grpcio::ServerStreamingSink); + fn begin_transaction(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::BeginTransactionRequest, sink: ::grpcio::UnarySink); + fn commit(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::CommitRequest, sink: ::grpcio::UnarySink); + fn rollback(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::RollbackRequest, sink: ::grpcio::UnarySink); + fn partition_query(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::PartitionQueryRequest, sink: ::grpcio::UnarySink); + fn partition_read(&mut self, ctx: ::grpcio::RpcContext, req: super::spanner::PartitionReadRequest, sink: ::grpcio::UnarySink); } pub fn create_spanner(s: S) -> ::grpcio::Service { diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/transaction.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/transaction.rs index 0937d463d3..afebccc4e8 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/transaction.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/transaction.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct TransactionOptions { @@ -1716,162 +1716,166 @@ static file_descriptor_proto_data: &'static [u8] = b"\ 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\ + TransactionOptionsH\0R\x05beginB\n\n\x08selectorB\xb6\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\xd0\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\ + oogle\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1J\xd9\x9a\ + \x01\n\x07\x12\x05\x0e\0\xc8\x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb1\x04\x20Copyright\x202020\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\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\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\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\xf6e\n\x02\ + \x04\0\x12\x06\xb4\x02\0\x9b\x03\x01\x1a\xe7e\x20#\x20Transactions\n\n\n\ + \x20Each\x20session\x20can\x20have\x20at\x20most\x20one\x20active\x20tra\ + nsaction\x20at\x20a\x20time\x20(note\x20that\n\x20standalone\x20reads\ + \x20and\x20queries\x20use\x20a\x20transaction\x20internally\x20and\x20do\ + \x20count\n\x20towards\x20the\x20one\x20transaction\x20limit).\x20After\ + \x20the\x20active\x20transaction\x20is\n\x20completed,\x20the\x20session\ + \x20can\x20immediately\x20be\x20re-used\x20for\x20the\x20next\x20transac\ + tion.\n\x20It\x20is\x20not\x20necessary\x20to\x20create\x20a\x20new\x20s\ + ession\x20for\x20each\x20transaction.\n\n\x20#\x20Transaction\x20Modes\n\ + \n\x20Cloud\x20Spanner\x20supports\x20three\x20transaction\x20modes:\n\n\ + \x20\x20\x201.\x20Locking\x20read-write.\x20This\x20type\x20of\x20transa\ + ction\x20is\x20the\x20only\x20way\n\x20\x20\x20\x20\x20\x20to\x20write\ + \x20data\x20into\x20Cloud\x20Spanner.\x20These\x20transactions\x20rely\ + \x20on\n\x20\x20\x20\x20\x20\x20pessimistic\x20locking\x20and,\x20if\x20\ + necessary,\x20two-phase\x20commit.\n\x20\x20\x20\x20\x20\x20Locking\x20r\ + ead-write\x20transactions\x20may\x20abort,\x20requiring\x20the\n\x20\x20\ + \x20\x20\x20\x20application\x20to\x20retry.\n\n\x20\x20\x202.\x20Snapsho\ + t\x20read-only.\x20This\x20transaction\x20type\x20provides\x20guaranteed\ + \n\x20\x20\x20\x20\x20\x20consistency\x20across\x20several\x20reads,\x20\ + but\x20does\x20not\x20allow\n\x20\x20\x20\x20\x20\x20writes.\x20Snapshot\ + \x20read-only\x20transactions\x20can\x20be\x20configured\x20to\n\x20\x20\ + \x20\x20\x20\x20read\x20at\x20timestamps\x20in\x20the\x20past.\x20Snapsh\ + ot\x20read-only\n\x20\x20\x20\x20\x20\x20transactions\x20do\x20not\x20ne\ + ed\x20to\x20be\x20committed.\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.\ + \x20Partitioned\x20DML\x20partitions\n\x20\x20\x20\x20\x20\x20the\x20key\ + \x20space\x20and\x20runs\x20the\x20DML\x20statement\x20over\x20each\x20p\ + artition\n\x20\x20\x20\x20\x20\x20in\x20parallel\x20using\x20separate,\ + \x20internal\x20transactions\x20that\x20commit\n\x20\x20\x20\x20\x20\x20\ + independently.\x20Partitioned\x20DML\x20transactions\x20do\x20not\x20nee\ + d\x20to\x20be\n\x20\x20\x20\x20\x20\x20committed.\n\n\x20For\x20transact\ + ions\x20that\x20only\x20read,\x20snapshot\x20read-only\x20transactions\n\ + \x20provide\x20simpler\x20semantics\x20and\x20are\x20almost\x20always\ + \x20faster.\x20In\n\x20particular,\x20read-only\x20transactions\x20do\ + \x20not\x20take\x20locks,\x20so\x20they\x20do\n\x20not\x20conflict\x20wi\ + th\x20read-write\x20transactions.\x20As\x20a\x20consequence\x20of\x20not\ + \n\x20taking\x20locks,\x20they\x20also\x20do\x20not\x20abort,\x20so\x20r\ + etry\x20loops\x20are\x20not\x20needed.\n\n\x20Transactions\x20may\x20onl\ + y\x20read/write\x20data\x20in\x20a\x20single\x20database.\x20They\n\x20m\ + ay,\x20however,\x20read/write\x20data\x20in\x20different\x20tables\x20wi\ + thin\x20that\n\x20database.\n\n\x20##\x20Locking\x20Read-Write\x20Transa\ + ctions\n\n\x20Locking\x20transactions\x20may\x20be\x20used\x20to\x20atom\ + ically\x20read-modify-write\n\x20data\x20anywhere\x20in\x20a\x20database\ + .\x20This\x20type\x20of\x20transaction\x20is\x20externally\n\x20consiste\ + nt.\n\n\x20Clients\x20should\x20attempt\x20to\x20minimize\x20the\x20amou\ + nt\x20of\x20time\x20a\x20transaction\n\x20is\x20active.\x20Faster\x20tra\ + nsactions\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\x20transaction\x20ha\ + s\x20not\x20been\x20terminated\x20by\n\x20[Commit][google.spanner.v1.Spa\ + nner.Commit]\x20or\n\x20[Rollback][google.spanner.v1.Spanner.Rollback].\ + \x20\x20Long\x20periods\x20of\n\x20inactivity\x20at\x20the\x20client\x20\ + may\x20cause\x20Cloud\x20Spanner\x20to\x20release\x20a\n\x20transaction'\ + s\x20locks\x20and\x20abort\x20it.\n\n\x20Conceptually,\x20a\x20read-writ\ + e\x20transaction\x20consists\x20of\x20zero\x20or\x20more\n\x20reads\x20o\ + r\x20SQL\x20statements\x20followed\x20by\n\x20[Commit][google.spanner.v1\ + .Spanner.Commit].\x20At\x20any\x20time\x20before\n\x20[Commit][google.sp\ + anner.v1.Spanner.Commit],\x20the\x20client\x20can\x20send\x20a\n\x20[Rol\ + lback][google.spanner.v1.Spanner.Rollback]\x20request\x20to\x20abort\x20\ + the\n\x20transaction.\n\n\x20###\x20Semantics\n\n\x20Cloud\x20Spanner\ + \x20can\x20commit\x20the\x20transaction\x20if\x20all\x20read\x20locks\ + \x20it\x20acquired\n\x20are\x20still\x20valid\x20at\x20commit\x20time,\ + \x20and\x20it\x20is\x20able\x20to\x20acquire\x20write\n\x20locks\x20for\ + \x20all\x20writes.\x20Cloud\x20Spanner\x20can\x20abort\x20the\x20transac\ + tion\x20for\x20any\n\x20reason.\x20If\x20a\x20commit\x20attempt\x20retur\ + ns\x20`ABORTED`,\x20Cloud\x20Spanner\x20guarantees\n\x20that\x20the\x20t\ + ransaction\x20has\x20not\x20modified\x20any\x20user\x20data\x20in\x20Clo\ + ud\x20Spanner.\n\n\x20Unless\x20the\x20transaction\x20commits,\x20Cloud\ + \x20Spanner\x20makes\x20no\x20guarantees\x20about\n\x20how\x20long\x20th\ + e\x20transaction's\x20locks\x20were\x20held\x20for.\x20It\x20is\x20an\ + \x20error\x20to\n\x20use\x20Cloud\x20Spanner\x20locks\x20for\x20any\x20s\ + ort\x20of\x20mutual\x20exclusion\x20other\x20than\n\x20between\x20Cloud\ + \x20Spanner\x20transactions\x20themselves.\n\n\x20###\x20Retrying\x20Abo\ + rted\x20Transactions\n\n\x20When\x20a\x20transaction\x20aborts,\x20the\ + \x20application\x20can\x20choose\x20to\x20retry\x20the\n\x20whole\x20tra\ + nsaction\x20again.\x20To\x20maximize\x20the\x20chances\x20of\x20successf\ + ully\n\x20committing\x20the\x20retry,\x20the\x20client\x20should\x20exec\ + ute\x20the\x20retry\x20in\x20the\n\x20same\x20session\x20as\x20the\x20or\ + iginal\x20attempt.\x20The\x20original\x20session's\x20lock\n\x20priority\ + \x20increases\x20with\x20each\x20consecutive\x20abort,\x20meaning\x20tha\ + t\x20each\n\x20attempt\x20has\x20a\x20slightly\x20better\x20chance\x20of\ + \x20success\x20than\x20the\x20previous.\n\n\x20Under\x20some\x20circumst\ + ances\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\x20successfully\x20c\ + ommitting.\x20Thus,\x20it\x20is\x20not\x20a\x20good\n\x20idea\x20to\x20c\ + ap\x20the\x20number\x20of\x20retries\x20a\x20transaction\x20can\x20attem\ + pt;\n\x20instead,\x20it\x20is\x20better\x20to\x20limit\x20the\x20total\ + \x20amount\x20of\x20wall\x20time\x20spent\n\x20retrying.\n\n\x20###\x20I\ + dle\x20Transactions\n\n\x20A\x20transaction\x20is\x20considered\x20idle\ + \x20if\x20it\x20has\x20no\x20outstanding\x20reads\x20or\n\x20SQL\x20quer\ + ies\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\x20error\x20`ABORTE\ + D`.\n\n\x20If\x20this\x20behavior\x20is\x20undesirable,\x20periodically\ + \x20executing\x20a\x20simple\n\x20SQL\x20query\x20in\x20the\x20transacti\ + on\x20(e.g.,\x20`SELECT\x201`)\x20prevents\x20the\n\x20transaction\x20fr\ + om\x20becoming\x20idle.\n\n\x20##\x20Snapshot\x20Read-Only\x20Transactio\ + ns\n\n\x20Snapshot\x20read-only\x20transactions\x20provides\x20a\x20simp\ + ler\x20method\x20than\n\x20locking\x20read-write\x20transactions\x20for\ + \x20doing\x20several\x20consistent\n\x20reads.\x20However,\x20this\x20ty\ + pe\x20of\x20transaction\x20does\x20not\x20support\x20writes.\n\n\x20Snap\ + shot\x20transactions\x20do\x20not\x20take\x20locks.\x20Instead,\x20they\ + \x20work\x20by\n\x20choosing\x20a\x20Cloud\x20Spanner\x20timestamp,\x20t\ + hen\x20executing\x20all\x20reads\x20at\x20that\n\x20timestamp.\x20Since\ + \x20they\x20do\x20not\x20acquire\x20locks,\x20they\x20do\x20not\x20block\ + \n\x20concurrent\x20read-write\x20transactions.\n\n\x20Unlike\x20locking\ + \x20read-write\x20transactions,\x20snapshot\x20read-only\n\x20transactio\ + ns\x20never\x20abort.\x20They\x20can\x20fail\x20if\x20the\x20chosen\x20r\ + ead\n\x20timestamp\x20is\x20garbage\x20collected;\x20however,\x20the\x20\ + default\x20garbage\n\x20collection\x20policy\x20is\x20generous\x20enough\ + \x20that\x20most\x20applications\x20do\x20not\n\x20need\x20to\x20worry\ + \x20about\x20this\x20in\x20practice.\n\n\x20Snapshot\x20read-only\x20tra\ + nsactions\x20do\x20not\x20need\x20to\x20call\n\x20[Commit][google.spanne\ + r.v1.Spanner.Commit]\x20or\n\x20[Rollback][google.spanner.v1.Spanner.Rol\ + lback]\x20(and\x20in\x20fact\x20are\x20not\n\x20permitted\x20to\x20do\ + \x20so).\n\n\x20To\x20execute\x20a\x20snapshot\x20transaction,\x20the\ + \x20client\x20specifies\x20a\x20timestamp\n\x20bound,\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\x20If\x20the\x20Cloud\x20Span\ + ner\x20database\x20to\x20be\x20read\x20is\x20geographically\x20distribut\ + ed,\n\x20stale\x20read-only\x20transactions\x20can\x20execute\x20more\ + \x20quickly\x20than\x20strong\n\x20or\x20read-write\x20transaction,\x20b\ + ecause\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\x20###\x20Strong\n\n\ + \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\x20read\x20o\ bserves\x20a\x20transaction,\x20all\x20parts\x20of\x20the\x20read\n\x20s\ @@ -2008,25 +2012,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\xb3\x02\x08\x1a\nu\n\x04\x04\0\x03\0\x12\ - \x06\xb6\x02\x02\xb8\x02\x03\x1ae\x20Message\x20type\x20to\x20initiate\ + \n\x0b\n\x03\x04\0\x01\x12\x04\xb4\x02\x08\x1a\nu\n\x04\x04\0\x03\0\x12\ + \x06\xb7\x02\x02\xb9\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\ - \xb6\x02\n\x13\nI\n\x04\x04\0\x03\x01\x12\x06\xbb\x02\x02\xbd\x02\x03\ + \xb7\x02\n\x13\nI\n\x04\x04\0\x03\x01\x12\x06\xbc\x02\x02\xbe\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\ + \x20transaction.\n\n\r\n\x05\x04\0\x03\x01\x01\x12\x04\xbc\x02\n\x18\nC\ + \n\x04\x04\0\x03\x02\x12\x06\xc1\x02\x02\x82\x03\x03\x1a3\x20Message\x20\ type\x20to\x20initiate\x20a\x20read-only\x20transaction.\n\n\r\n\x05\x04\ - \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\ + \0\x03\x02\x01\x12\x04\xc1\x02\n\x12\nN\n\x06\x04\0\x03\x02\x08\0\x12\ + \x06\xc3\x02\x04\xfd\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\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\ + \x02\x08\0\x01\x12\x04\xc3\x02\n\x19\n_\n\x06\x04\0\x03\x02\x02\0\x12\ + \x04\xc6\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\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\ + \x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\xc6\x02\x06\n\n\x0f\n\x07\x04\ + \0\x03\x02\x02\0\x01\x12\x04\xc6\x02\x0b\x11\n\x0f\n\x07\x04\0\x03\x02\ + \x02\0\x03\x12\x04\xc6\x02\x14\x15\n\xc6\x03\n\x06\x04\0\x03\x02\x02\x01\ + \x12\x04\xd2\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\ @@ -2036,9 +2040,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\ - \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\ + \xd2\x02\x06\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\x12\x04\xd2\x02\ + \x202\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\xd2\x0256\n\xba\x04\ + \n\x06\x04\0\x03\x02\x02\x02\x12\x04\xe1\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\ @@ -2051,9 +2055,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\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\ + \x06\x12\x04\xe1\x02\x06\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x01\x12\ + \x04\xe1\x02\x1f,\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x03\x12\x04\xe1\x02/\ + 0\n\xb6\x04\n\x06\x04\0\x03\x02\x02\x03\x12\x04\xef\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\ @@ -2065,10 +2069,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\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\ + :23.045123456Z\"`.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x06\x12\x04\xef\ + \x02\x06\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x01\x12\x04\xef\x02\x20.\ + \n\x0f\n\x07\x04\0\x03\x02\x02\x03\x03\x12\x04\xef\x0212\n\x92\x04\n\x06\ + \x04\0\x03\x02\x02\x04\x12\x04\xfc\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\ @@ -2079,40 +2083,40 @@ 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\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,\ + \x20`max_staleness`.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x06\x12\x04\xfc\ + \x02\x06\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x01\x12\x04\xfc\x02\x1f.\ + \n\x0f\n\x07\x04\0\x03\x02\x02\x04\x03\x12\x04\xfc\x0212\n\xae\x01\n\x06\ + \x04\0\x03\x02\x02\x05\x12\x04\x81\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\x20the\x20transaction.\n\n\x11\n\x07\x04\0\ - \x03\x02\x02\x05\x04\x12\x06\x80\x03\x04\xfc\x02\x05\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\ + \x03\x02\x02\x05\x04\x12\x06\x81\x03\x04\xfd\x02\x05\n\x0f\n\x07\x04\0\ + \x03\x02\x02\x05\x05\x12\x04\x81\x03\x04\x08\n\x0f\n\x07\x04\0\x03\x02\ + \x02\x05\x01\x12\x04\x81\x03\t\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x05\x03\ + \x12\x04\x81\x03!\"\n4\n\x04\x04\0\x08\0\x12\x06\x85\x03\x02\x9a\x03\x03\ \x1a$\x20Required.\x20The\x20type\x20of\x20transaction.\n\n\r\n\x05\x04\ - \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\ + \0\x08\0\x01\x12\x04\x85\x03\x08\x0c\n\xc2\x01\n\x04\x04\0\x02\0\x12\x04\ + \x8b\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\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\ + \x12\x04\x8b\x03\x04\r\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x8b\x03\x0e\x18\ + \n\r\n\x05\x04\0\x02\0\x03\x12\x04\x8b\x03\x1b\x1c\n\xc8\x01\n\x04\x04\0\ + \x02\x01\x12\x04\x92\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\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\ + \n\x05\x04\0\x02\x01\x06\x12\x04\x92\x03\x04\x12\n\r\n\x05\x04\0\x02\x01\ + \x01\x12\x04\x92\x03\x13\"\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x92\x03%&\ + \n\xbb\x01\n\x04\x04\0\x02\x02\x12\x04\x99\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\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\ + ource.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x99\x03\x04\x0c\n\r\n\x05\ + \x04\0\x02\x02\x01\x12\x04\x99\x03\r\x16\n\r\n\x05\x04\0\x02\x02\x03\x12\ + \x04\x99\x03\x19\x1a\n\x1e\n\x02\x04\x01\x12\x06\x9e\x03\0\xb0\x03\x01\ + \x1a\x10\x20A\x20transaction.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x9e\x03\ + \x08\x13\n\x88\x03\n\x04\x04\x01\x02\0\x12\x04\xa7\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\ @@ -2120,48 +2124,48 @@ 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\x0f\n\x05\x04\x01\ - \x02\0\x04\x12\x06\xa6\x03\x02\x9d\x03\x15\n\r\n\x05\x04\x01\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\x20snapshot\x20read\ + \x02\0\x04\x12\x06\xa7\x03\x02\x9e\x03\x15\n\r\n\x05\x04\x01\x02\0\x05\ + \x12\x04\xa7\x03\x02\x07\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xa7\x03\x08\ + \n\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xa7\x03\r\x0e\n\xf2\x02\n\x04\x04\ + \x01\x02\x01\x12\x04\xaf\x03\x02/\x1a\xe3\x02\x20For\x20snapshot\x20read\ -only\x20transactions,\x20the\x20read\x20timestamp\x20chosen\n\x20for\ \x20the\x20transaction.\x20Not\x20returned\x20by\x20default:\x20see\n\ \x20[TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v\ 1.TransactionOptions.ReadOnly.return_read_timestamp].\n\n\x20A\x20timest\ amp\x20in\x20RFC3339\x20UTC\x20\\\"Zulu\\\"\x20format,\x20accurate\x20to\ \x20nanoseconds.\n\x20Example:\x20`\"2014-10-02T15:01:23.045123456Z\"`.\ - \n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xae\x03\x02\xa6\x03\x0f\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\ + \n\n\x0f\n\x05\x04\x01\x02\x01\x04\x12\x06\xaf\x03\x02\xa7\x03\x0f\n\r\n\ + \x05\x04\x01\x02\x01\x06\x12\x04\xaf\x03\x02\x1b\n\r\n\x05\x04\x01\x02\ + \x01\x01\x12\x04\xaf\x03\x1c*\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xaf\ + \x03-.\n\x9e\x02\n\x02\x04\x02\x12\x06\xb7\x03\0\xc8\x03\x01\x1a\x8f\x02\ \x20This\x20message\x20is\x20used\x20to\x20select\x20the\x20transaction\ \x20in\x20which\x20a\n\x20[Read][google.spanner.v1.Spanner.Read]\x20or\n\ \x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]\x20call\x20runs.\ \n\n\x20See\x20[TransactionOptions][google.spanner.v1.TransactionOptions\ ]\x20for\x20more\x20information\x20about\x20transactions.\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\ + \x04\x02\x01\x12\x04\xb7\x03\x08\x1b\ni\n\x04\x04\x02\x08\0\x12\x06\xba\ + \x03\x02\xc7\x03\x03\x1aY\x20If\x20no\x20fields\x20are\x20set,\x20the\ \x20default\x20is\x20a\x20single\x20use\x20transaction\n\x20with\x20stro\ - ng\x20concurrency.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\xb9\x03\x08\x10\ - \n\xa9\x01\n\x04\x04\x02\x02\0\x12\x04\xbd\x03\x04&\x1a\x9a\x01\x20Execu\ + ng\x20concurrency.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\xba\x03\x08\x10\ + \n\xa9\x01\n\x04\x04\x02\x02\0\x12\x04\xbe\x03\x04&\x1a\x9a\x01\x20Execu\ te\x20the\x20read\x20or\x20SQL\x20query\x20in\x20a\x20temporary\x20trans\ action.\n\x20This\x20is\x20the\x20most\x20efficient\x20way\x20to\x20exec\ ute\x20a\x20transaction\x20that\n\x20consists\x20of\x20a\x20single\x20SQ\ - L\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\ + L\x20query.\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xbe\x03\x04\x16\n\r\n\ + \x05\x04\x02\x02\0\x01\x12\x04\xbe\x03\x17!\n\r\n\x05\x04\x02\x02\0\x03\ + \x12\x04\xbe\x03$%\nR\n\x04\x04\x02\x02\x01\x12\x04\xc1\x03\x04\x11\x1aD\ \x20Execute\x20the\x20read\x20or\x20SQL\x20query\x20in\x20a\x20previousl\ - y-started\x20transaction.\n\n\r\n\x05\x04\x02\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\x20transactio\ + y-started\x20transaction.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xc1\ + \x03\x04\t\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xc1\x03\n\x0c\n\r\n\x05\ + \x04\x02\x02\x01\x03\x12\x04\xc1\x03\x0f\x10\n\x98\x02\n\x04\x04\x02\x02\ + \x02\x12\x04\xc6\x03\x04!\x1a\x89\x02\x20Begin\x20a\x20new\x20transactio\ n\x20and\x20execute\x20this\x20read\x20or\x20SQL\x20query\x20in\n\x20it.\ \x20The\x20transaction\x20ID\x20of\x20the\x20new\x20transaction\x20is\ \x20returned\x20in\n\x20[ResultSetMetadata.transaction][google.spanner.v\ 1.ResultSetMetadata.transaction],\x20which\x20is\x20a\x20[Transaction][g\ oogle.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\ + \xc6\x03\x04\x16\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xc6\x03\x17\x1c\n\ + \r\n\x05\x04\x02\x02\x02\x03\x12\x04\xc6\x03\x1f\x20b\x06proto3\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/type_pb.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/type_pb.rs index 0020480ca7..154f4e261f 100644 --- a/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/type_pb.rs +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/spanner/v1/type_pb.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.23.0. Do not edit +// This file is generated by rust-protobuf 2.22.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -6,7 +6,7 @@ #![allow(clippy::all)] #![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] +#![rustfmt::skip] #![allow(box_pointers)] #![allow(dead_code)] @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_23_0; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; #[derive(PartialEq,Clone,Default)] pub struct Type { @@ -679,6 +679,7 @@ pub enum TypeCode { BYTES = 7, ARRAY = 8, STRUCT = 9, + NUMERIC = 10, } impl ::protobuf::ProtobufEnum for TypeCode { @@ -698,6 +699,7 @@ impl ::protobuf::ProtobufEnum for TypeCode { 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), _ => ::std::option::Option::None } } @@ -714,6 +716,7 @@ impl ::protobuf::ProtobufEnum for TypeCode { TypeCode::BYTES, TypeCode::ARRAY, TypeCode::STRUCT, + TypeCode::NUMERIC, ]; values } @@ -742,141 +745,154 @@ impl ::protobuf::reflect::ProtobufValue for 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\xcb\"\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\r\n\x05\x04\0\x02\0\x04\ - \x12\x04S\x02Q\x0e\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.sp\ - anner.v1.TypeCode.ARRAY],\x20then\x20`array_element_type`\n\x20is\x20the\ - \x20type\x20of\x20the\x20array\x20elements.\n\n\r\n\x05\x04\0\x02\x01\ - \x04\x12\x04W\x02S\x14\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][google.spanner.v1.Type.code]\x20==\x20[STRUCT][\ - google.spanner.v1.TypeCode.STRUCT],\x20then\x20`struct_type`\n\x20provid\ - es\x20type\x20information\x20for\x20the\x20struct's\x20fields.\n\n\r\n\ - \x05\x04\0\x02\x02\x04\x12\x04[\x02W\x1e\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\ - \x0f\n\x07\x04\x01\x03\0\x02\0\x04\x12\x04i\x04a\x11\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\x0f\n\x07\x04\x01\x03\0\x02\x01\x04\x12\x04l\x04i\ - \x14\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\x20of\x20fields\x20that\x20make\x20up\x20thi\ - s\x20struct.\x20Order\x20is\n\x20significant,\x20because\x20values\x20of\ - \x20this\x20struct\x20type\x20are\x20represented\x20as\n\x20lists,\x20wh\ - ere\x20the\x20order\x20of\x20field\x20values\x20matches\x20the\x20order\ - \x20of\n\x20fields\x20in\x20the\x20[StructType][google.spanner.v1.Struct\ - Type].\x20In\x20turn,\x20the\x20order\x20of\x20fields\n\x20matches\x20th\ - e\x20order\x20of\x20columns\x20in\x20a\x20read\x20request,\x20or\x20the\ - \x20order\x20of\n\x20fields\x20in\x20the\x20`SELECT`\x20clause\x20of\x20\ - a\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\ + \n\x1cgoogle/spanner/v1/type.proto\x12\x11google.spanner.v1\x1a\x1fgoogl\ + e/api/field_behavior.proto\x1a\x1cgoogle/api/annotations.proto\"\xc3\x01\ + \n\x04Type\x124\n\x04code\x18\x01\x20\x01(\x0e2\x1b.google.spanner.v1.Ty\ + peCodeR\x04codeB\x03\xe0A\x02\x12E\n\x12array_element_type\x18\x02\x20\ + \x01(\x0b2\x17.google.spanner.v1.TypeR\x10arrayElementType\x12>\n\x0bstr\ + uct_type\x18\x03\x20\x01(\x0b2\x1d.google.spanner.v1.StructTypeR\nstruct\ + Type\"\x93\x01\n\nStructType\x12;\n\x06fields\x18\x01\x20\x03(\x0b2#.goo\ + gle.spanner.v1.StructType.FieldR\x06fields\x1aH\n\x05Field\x12\x12\n\x04\ + name\x18\x01\x20\x01(\tR\x04name\x12+\n\x04type\x18\x02\x20\x01(\x0b2\ + \x17.google.spanner.v1.TypeR\x04type*\x9b\x01\n\x08TypeCode\x12\x19\n\ + \x15TYPE_CODE_UNSPECIFIED\x10\0\x12\x08\n\x04BOOL\x10\x01\x12\t\n\x05INT\ + 64\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\x07NUMER\ + IC\x10\nB\xaf\x01\n\x15com.google.spanner.v1B\tTypeProtoP\x01Z8google.go\ + lang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.\ + Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Clou\ + d::Spanner::V1J\x88&\n\x07\x12\x05\x0e\0\x82\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\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\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\x08\n\ + \x01\x08\x12\x03\x1b\03\n\t\n\x02\x08-\x12\x03\x1b\03\n\x84\x01\n\x02\ + \x04\0\x12\x04\x1f\0*\x01\x1ax\x20`Type`\x20indicates\x20the\x20type\x20\ + of\x20a\x20Cloud\x20Spanner\x20value,\x20as\x20might\x20be\x20stored\x20\ + in\x20a\n\x20table\x20cell\x20or\x20returned\x20from\x20an\x20SQL\x20que\ + ry.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x0c\nR\n\x04\x04\0\x02\0\x12\ + \x03!\x02=\x1aE\x20Required.\x20The\x20[TypeCode][google.spanner.v1.Type\ + Code]\x20for\x20this\x20type.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04!\x02\ + \x1f\x0e\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03!\x02\n\n\x0c\n\x05\x04\0\ + \x02\0\x01\x12\x03!\x0b\x0f\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x12\x13\ + \n\x0c\n\x05\x04\0\x02\0\x08\x12\x03!\x14<\n\x0f\n\x08\x04\0\x02\0\x08\ + \x9c\x08\0\x12\x03!\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[ARRA\ + Y][google.spanner.v1.TypeCode.ARRAY],\x20then\x20`array_element_type`\n\ + \x20is\x20the\x20type\x20of\x20the\x20array\x20elements.\n\n\r\n\x05\x04\ + \0\x02\x01\x04\x12\x04%\x02!=\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[code][google.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\r\n\x05\x04\0\x02\x02\x04\x12\x04)\x02%\x1e\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-\ + \0D\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\x04/\x02;\x03\x1a2\x20M\ + essage\x20representing\x20a\x20single\x20field\x20of\x20a\x20struct.\n\n\ + \x0c\n\x05\x04\x01\x03\0\x01\x12\x03/\n\x0f\n\x99\x03\n\x06\x04\x01\x03\ + \0\x02\0\x12\x037\x04\x14\x1a\x89\x03\x20The\x20name\x20of\x20the\x20fie\ + ld.\x20For\x20reads,\x20this\x20is\x20the\x20column\x20name.\x20For\n\ + \x20SQL\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\ + \x20the\x20query\x20`\"SELECT\x20ColName\x20FROM\x20Table\"`).\x20Some\n\ + \x20columns\x20might\x20have\x20an\x20empty\x20name\x20(e.g.,\x20`\"SELE\ + CT\n\x20UPPER(ColName)\"`).\x20Note\x20that\x20a\x20query\x20result\x20c\ + an\x20contain\n\x20multiple\x20fields\x20with\x20the\x20same\x20name.\n\ + \n\x0f\n\x07\x04\x01\x03\0\x02\0\x04\x12\x047\x04/\x11\n\x0e\n\x07\x04\ + \x01\x03\0\x02\0\x05\x12\x037\x04\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x01\ + \x12\x037\x0b\x0f\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\x12\x037\x12\x13\n\ + '\n\x06\x04\x01\x03\0\x02\x01\x12\x03:\x04\x12\x1a\x18\x20The\x20type\ + \x20of\x20the\x20field.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x04\x12\x04:\ + \x047\x14\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x06\x12\x03:\x04\x08\n\x0e\n\ + \x07\x04\x01\x03\0\x02\x01\x01\x12\x03:\t\r\n\x0e\n\x07\x04\x01\x03\0\ + \x02\x01\x03\x12\x03:\x10\x11\n\x8a\x03\n\x04\x04\x01\x02\0\x12\x03C\x02\ + \x1c\x1a\xfc\x02\x20The\x20list\x20of\x20fields\x20that\x20make\x20up\ + \x20this\x20struct.\x20Order\x20is\n\x20significant,\x20because\x20value\ + s\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\x20matc\ + hes\x20the\x20order\x20of\x20columns\x20in\x20a\x20read\x20request,\x20o\ + r\x20the\x20order\x20of\n\x20fields\x20in\x20the\x20`SELECT`\x20clause\ + \x20of\x20a\x20query.\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03C\x02\n\n\ + \x0c\n\x05\x04\x01\x02\0\x06\x12\x03C\x0b\x10\n\x0c\n\x05\x04\x01\x02\0\ + \x01\x12\x03C\x11\x17\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03C\x1a\x1b\n\ + \xda\x02\n\x02\x05\0\x12\x05M\0\x82\x01\x01\x1a\xcc\x02\x20`TypeCode`\ + \x20is\x20used\x20as\x20part\x20of\x20[Type][google.spanner.v1.Type]\x20\ + to\n\x20indicate\x20the\x20type\x20of\x20a\x20Cloud\x20Spanner\x20value.\ + \n\n\x20Each\x20legal\x20value\x20of\x20a\x20type\x20can\x20be\x20encode\ + d\x20to\x20or\x20decoded\x20from\x20a\x20JSON\n\x20value,\x20using\x20th\ + e\x20encodings\x20described\x20below.\x20All\x20Cloud\x20Spanner\x20valu\ + es\x20can\n\x20be\x20`null`,\x20regardless\x20of\x20type;\x20`null`s\x20\ + are\x20always\x20encoded\x20as\x20a\x20JSON\n\x20`null`.\n\n\n\n\x03\x05\ + \0\x01\x12\x03M\x05\r\n\x1d\n\x04\x05\0\x02\0\x12\x03O\x02\x1c\x1a\x10\ + \x20Not\x20specified.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03O\x02\x17\n\ + \x0c\n\x05\x05\0\x02\0\x02\x12\x03O\x1a\x1b\n1\n\x04\x05\0\x02\x01\x12\ + \x03R\x02\x0b\x1a$\x20Encoded\x20as\x20JSON\x20`true`\x20or\x20`false`.\ + \n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03R\x02\x06\n\x0c\n\x05\x05\0\x02\ + \x01\x02\x12\x03R\t\n\n6\n\x04\x05\0\x02\x02\x12\x03U\x02\x0c\x1a)\x20En\ + coded\x20as\x20`string`,\x20in\x20decimal\x20format.\n\n\x0c\n\x05\x05\0\ + \x02\x02\x01\x12\x03U\x02\x07\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03U\n\ + \x0b\n\\\n\x04\x05\0\x02\x03\x12\x03Y\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\x03Y\x02\t\n\ + \x0c\n\x05\x05\0\x02\x03\x02\x12\x03Y\x0c\r\n\xdd\x02\n\x04\x05\0\x02\ + \x04\x12\x03c\x02\x10\x1a\xcf\x02\x20Encoded\x20as\x20`string`\x20in\x20\ + RFC\x203339\x20timestamp\x20format.\x20The\x20time\x20zone\n\x20must\x20\ + be\x20present,\x20and\x20must\x20be\x20`\"Z\"`.\n\n\x20If\x20the\x20sche\ + ma\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\x20inse\ + rt\x20the\x20commit\x20timestamp\x20associated\x20with\x20the\x20transac\ + tion\n\x20commit.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03c\x02\x0b\n\x0c\ + \n\x05\x05\0\x02\x04\x02\x12\x03c\x0e\x0f\n;\n\x04\x05\0\x02\x05\x12\x03\ + f\x02\x0b\x1a.\x20Encoded\x20as\x20`string`\x20in\x20RFC\x203339\x20date\ + \x20format.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03f\x02\x06\n\x0c\n\x05\ + \x05\0\x02\x05\x02\x12\x03f\t\n\n#\n\x04\x05\0\x02\x06\x12\x03i\x02\r\ + \x1a\x16\x20Encoded\x20as\x20`string`.\n\n\x0c\n\x05\x05\0\x02\x06\x01\ + \x12\x03i\x02\x08\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03i\x0b\x0c\nZ\n\ + \x04\x05\0\x02\x07\x12\x03m\x02\x0c\x1aM\x20Encoded\x20as\x20a\x20base64\ + -encoded\x20`string`,\x20as\x20described\x20in\x20RFC\x204648,\n\x20sect\ + ion\x204.\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x03m\x02\x07\n\x0c\n\x05\ + \x05\0\x02\x07\x02\x12\x03m\n\x0b\n\x9a\x01\n\x04\x05\0\x02\x08\x12\x03r\ + \x02\x0c\x1a\x8c\x01\x20Encoded\x20as\x20`list`,\x20where\x20the\x20list\ + \x20elements\x20are\x20represented\n\x20according\x20to\n\x20[array_elem\ + ent_type][google.spanner.v1.Type.array_element_type].\n\n\x0c\n\x05\x05\ + \0\x02\x08\x01\x12\x03r\x02\x07\n\x0c\n\x05\x05\0\x02\x08\x02\x12\x03r\n\ + \x0b\n\x94\x01\n\x04\x05\0\x02\t\x12\x03v\x02\r\x1a\x86\x01\x20Encoded\ + \x20as\x20`list`,\x20where\x20list\x20element\x20`i`\x20is\x20represente\ + d\x20according\n\x20to\x20[struct_type.fields[i]][google.spanner.v1.Stru\ + ctType.fields].\n\n\x0c\n\x05\x05\0\x02\t\x01\x12\x03v\x02\x08\n\x0c\n\ + \x05\x05\0\x02\t\x02\x12\x03v\x0b\x0c\n\xdd\x02\n\x04\x05\0\x02\n\x12\ + \x04\x81\x01\x02\x0f\x1a\xce\x02\x20Encoded\x20as\x20`string`,\x20in\x20\ + decimal\x20format\x20or\x20scientific\x20notation\x20format.\n\x20
De\ + cimal\x20format:\n\x20
`[+-]Digits[.[Digits]]`\x20or\n\x20
`[+-][D\ + igits].Digits`\n\n\x20Scientific\x20notation:\n\x20
`[+-]Digits[.[Dig\ + its]][ExponentIndicator[+-]Digits]`\x20or\n\x20
`[+-][Digits].Digits[\ + ExponentIndicator[+-]Digits]`\n\x20
(ExponentIndicator\x20is\x20`\"e\ + \"`\x20or\x20`\"E\"`)\n\n\r\n\x05\x05\0\x02\n\x01\x12\x04\x81\x01\x02\t\ + \n\r\n\x05\x05\0\x02\n\x02\x12\x04\x81\x01\x0c\x0eb\x06proto3\ "; static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage.rs new file mode 100644 index 0000000000..a0db55df1d --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage.rs @@ -0,0 +1,27040 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/storage/v1/storage.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteBucketAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DeleteBucketAccessControlRequest { + fn default() -> &'a DeleteBucketAccessControlRequest { + ::default_instance() + } +} + +impl DeleteBucketAccessControlRequest { + pub fn new() -> DeleteBucketAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for DeleteBucketAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if let Some(ref v) = self.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> DeleteBucketAccessControlRequest { + DeleteBucketAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteBucketAccessControlRequest| { &m.bucket }, + |m: &mut DeleteBucketAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &DeleteBucketAccessControlRequest| { &m.entity }, + |m: &mut DeleteBucketAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &DeleteBucketAccessControlRequest| { &m.common_request_params }, + |m: &mut DeleteBucketAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DeleteBucketAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DeleteBucketAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteBucketAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for DeleteBucketAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DeleteBucketAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DeleteBucketAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetBucketAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetBucketAccessControlRequest { + fn default() -> &'a GetBucketAccessControlRequest { + ::default_instance() + } +} + +impl GetBucketAccessControlRequest { + pub fn new() -> GetBucketAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetBucketAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if let Some(ref v) = self.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> GetBucketAccessControlRequest { + GetBucketAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetBucketAccessControlRequest| { &m.bucket }, + |m: &mut GetBucketAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &GetBucketAccessControlRequest| { &m.entity }, + |m: &mut GetBucketAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetBucketAccessControlRequest| { &m.common_request_params }, + |m: &mut GetBucketAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetBucketAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetBucketAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetBucketAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for GetBucketAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetBucketAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetBucketAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct InsertBucketAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub bucket_access_control: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a InsertBucketAccessControlRequest { + fn default() -> &'a InsertBucketAccessControlRequest { + ::default_instance() + } +} + +impl InsertBucketAccessControlRequest { + pub fn new() -> InsertBucketAccessControlRequest { + ::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()) + } + + // .google.storage.v1.BucketAccessControl bucket_access_control = 3; + + + pub fn get_bucket_access_control(&self) -> &super::storage_resources::BucketAccessControl { + self.bucket_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_bucket_access_control(&mut self) { + self.bucket_access_control.clear(); + } + + pub fn has_bucket_access_control(&self) -> bool { + self.bucket_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_bucket_access_control(&mut self, v: super::storage_resources::BucketAccessControl) { + self.bucket_access_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_bucket_access_control(&mut self) -> &mut super::storage_resources::BucketAccessControl { + if self.bucket_access_control.is_none() { + self.bucket_access_control.set_default(); + } + self.bucket_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_bucket_access_control(&mut self) -> super::storage_resources::BucketAccessControl { + self.bucket_access_control.take().unwrap_or_else(|| super::storage_resources::BucketAccessControl::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for InsertBucketAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.bucket_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_access_control)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.bucket_access_control.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.bucket_access_control.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.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> InsertBucketAccessControlRequest { + InsertBucketAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &InsertBucketAccessControlRequest| { &m.bucket }, + |m: &mut InsertBucketAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "bucket_access_control", + |m: &InsertBucketAccessControlRequest| { &m.bucket_access_control }, + |m: &mut InsertBucketAccessControlRequest| { &mut m.bucket_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &InsertBucketAccessControlRequest| { &m.common_request_params }, + |m: &mut InsertBucketAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "InsertBucketAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static InsertBucketAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(InsertBucketAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for InsertBucketAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.bucket_access_control.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for InsertBucketAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for InsertBucketAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListBucketAccessControlsRequest { + // message fields + pub bucket: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListBucketAccessControlsRequest { + fn default() -> &'a ListBucketAccessControlsRequest { + ::default_instance() + } +} + +impl ListBucketAccessControlsRequest { + pub fn new() -> ListBucketAccessControlsRequest { + ::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()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 3; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ListBucketAccessControlsRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.common_request_params.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() -> ListBucketAccessControlsRequest { + ListBucketAccessControlsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListBucketAccessControlsRequest| { &m.bucket }, + |m: &mut ListBucketAccessControlsRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ListBucketAccessControlsRequest| { &m.common_request_params }, + |m: &mut ListBucketAccessControlsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListBucketAccessControlsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListBucketAccessControlsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListBucketAccessControlsRequest::new) + } +} + +impl ::protobuf::Clear for ListBucketAccessControlsRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListBucketAccessControlsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListBucketAccessControlsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PatchBucketAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub bucket_access_control: ::protobuf::SingularPtrField, + pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a PatchBucketAccessControlRequest { + fn default() -> &'a PatchBucketAccessControlRequest { + ::default_instance() + } +} + +impl PatchBucketAccessControlRequest { + pub fn new() -> PatchBucketAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // .google.storage.v1.BucketAccessControl bucket_access_control = 4; + + + pub fn get_bucket_access_control(&self) -> &super::storage_resources::BucketAccessControl { + self.bucket_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_bucket_access_control(&mut self) { + self.bucket_access_control.clear(); + } + + pub fn has_bucket_access_control(&self) -> bool { + self.bucket_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_bucket_access_control(&mut self, v: super::storage_resources::BucketAccessControl) { + self.bucket_access_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_bucket_access_control(&mut self) -> &mut super::storage_resources::BucketAccessControl { + if self.bucket_access_control.is_none() { + self.bucket_access_control.set_default(); + } + self.bucket_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_bucket_access_control(&mut self) -> super::storage_resources::BucketAccessControl { + self.bucket_access_control.take().unwrap_or_else(|| super::storage_resources::BucketAccessControl::new()) + } + + // .google.protobuf.FieldMask update_mask = 5; + + + 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()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 6; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for PatchBucketAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.bucket_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.update_mask { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_access_control)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if let Some(ref v) = self.bucket_access_control.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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if let Some(ref v) = self.bucket_access_control.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_mask.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.common_request_params.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() -> PatchBucketAccessControlRequest { + PatchBucketAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchBucketAccessControlRequest| { &m.bucket }, + |m: &mut PatchBucketAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &PatchBucketAccessControlRequest| { &m.entity }, + |m: &mut PatchBucketAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "bucket_access_control", + |m: &PatchBucketAccessControlRequest| { &m.bucket_access_control }, + |m: &mut PatchBucketAccessControlRequest| { &mut m.bucket_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( + "update_mask", + |m: &PatchBucketAccessControlRequest| { &m.update_mask }, + |m: &mut PatchBucketAccessControlRequest| { &mut m.update_mask }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &PatchBucketAccessControlRequest| { &m.common_request_params }, + |m: &mut PatchBucketAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "PatchBucketAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static PatchBucketAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PatchBucketAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for PatchBucketAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.bucket_access_control.clear(); + self.update_mask.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for PatchBucketAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for PatchBucketAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateBucketAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub bucket_access_control: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UpdateBucketAccessControlRequest { + fn default() -> &'a UpdateBucketAccessControlRequest { + ::default_instance() + } +} + +impl UpdateBucketAccessControlRequest { + pub fn new() -> UpdateBucketAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // .google.storage.v1.BucketAccessControl bucket_access_control = 4; + + + pub fn get_bucket_access_control(&self) -> &super::storage_resources::BucketAccessControl { + self.bucket_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_bucket_access_control(&mut self) { + self.bucket_access_control.clear(); + } + + pub fn has_bucket_access_control(&self) -> bool { + self.bucket_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_bucket_access_control(&mut self, v: super::storage_resources::BucketAccessControl) { + self.bucket_access_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_bucket_access_control(&mut self) -> &mut super::storage_resources::BucketAccessControl { + if self.bucket_access_control.is_none() { + self.bucket_access_control.set_default(); + } + self.bucket_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_bucket_access_control(&mut self) -> super::storage_resources::BucketAccessControl { + self.bucket_access_control.take().unwrap_or_else(|| super::storage_resources::BucketAccessControl::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 5; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for UpdateBucketAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.bucket_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_access_control)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if let Some(ref v) = self.bucket_access_control.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if let Some(ref v) = self.bucket_access_control.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.common_request_params.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() -> UpdateBucketAccessControlRequest { + UpdateBucketAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateBucketAccessControlRequest| { &m.bucket }, + |m: &mut UpdateBucketAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &UpdateBucketAccessControlRequest| { &m.entity }, + |m: &mut UpdateBucketAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "bucket_access_control", + |m: &UpdateBucketAccessControlRequest| { &m.bucket_access_control }, + |m: &mut UpdateBucketAccessControlRequest| { &mut m.bucket_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &UpdateBucketAccessControlRequest| { &m.common_request_params }, + |m: &mut UpdateBucketAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateBucketAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UpdateBucketAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateBucketAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for UpdateBucketAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.bucket_access_control.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateBucketAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UpdateBucketAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteBucketRequest { + // message fields + pub bucket: ::std::string::String, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DeleteBucketRequest { + fn default() -> &'a DeleteBucketRequest { + ::default_instance() + } +} + +impl DeleteBucketRequest { + pub fn new() -> DeleteBucketRequest { + ::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()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 2; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 3; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 5; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for DeleteBucketRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.common_request_params.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() -> DeleteBucketRequest { + DeleteBucketRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteBucketRequest| { &m.bucket }, + |m: &mut DeleteBucketRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &DeleteBucketRequest| { &m.if_metageneration_match }, + |m: &mut DeleteBucketRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &DeleteBucketRequest| { &m.if_metageneration_not_match }, + |m: &mut DeleteBucketRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &DeleteBucketRequest| { &m.common_request_params }, + |m: &mut DeleteBucketRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DeleteBucketRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DeleteBucketRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteBucketRequest::new) + } +} + +impl ::protobuf::Clear for DeleteBucketRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DeleteBucketRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DeleteBucketRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetBucketRequest { + // message fields + pub bucket: ::std::string::String, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub projection: super::storage_resources::CommonEnums_Projection, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetBucketRequest { + fn default() -> &'a GetBucketRequest { + ::default_instance() + } +} + +impl GetBucketRequest { + pub fn new() -> GetBucketRequest { + ::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()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 2; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 3; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonEnums.Projection projection = 4; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.CommonRequestParams common_request_params = 6; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetBucketRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 4, &mut self.unknown_fields)? + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(4, self.projection); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.common_request_params.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() -> GetBucketRequest { + GetBucketRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetBucketRequest| { &m.bucket }, + |m: &mut GetBucketRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &GetBucketRequest| { &m.if_metageneration_match }, + |m: &mut GetBucketRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &GetBucketRequest| { &m.if_metageneration_not_match }, + |m: &mut GetBucketRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &GetBucketRequest| { &m.projection }, + |m: &mut GetBucketRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetBucketRequest| { &m.common_request_params }, + |m: &mut GetBucketRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetBucketRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetBucketRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetBucketRequest::new) + } +} + +impl ::protobuf::Clear for GetBucketRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetBucketRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetBucketRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct InsertBucketRequest { + // message fields + pub predefined_acl: super::storage_resources::CommonEnums_PredefinedBucketAcl, + pub predefined_default_object_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub project: ::std::string::String, + pub projection: super::storage_resources::CommonEnums_Projection, + pub bucket: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a InsertBucketRequest { + fn default() -> &'a InsertBucketRequest { + ::default_instance() + } +} + +impl InsertBucketRequest { + pub fn new() -> InsertBucketRequest { + ::std::default::Default::default() + } + + // .google.storage.v1.CommonEnums.PredefinedBucketAcl predefined_acl = 1; + + + pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedBucketAcl { + self.predefined_acl + } + pub fn clear_predefined_acl(&mut self) { + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedBucketAcl) { + self.predefined_acl = v; + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_default_object_acl = 2; + + + pub fn get_predefined_default_object_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.predefined_default_object_acl + } + pub fn clear_predefined_default_object_acl(&mut self) { + self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_default_object_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.predefined_default_object_acl = v; + } + + // 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()) + } + + // .google.storage.v1.CommonEnums.Projection projection = 4; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.Bucket bucket = 6; + + + pub fn get_bucket(&self) -> &super::storage_resources::Bucket { + self.bucket.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_bucket(&mut self) { + self.bucket.clear(); + } + + pub fn has_bucket(&self) -> bool { + self.bucket.is_some() + } + + // Param is passed by value, moved + pub fn set_bucket(&mut self, v: super::storage_resources::Bucket) { + self.bucket = ::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(&mut self) -> &mut super::storage_resources::Bucket { + if self.bucket.is_none() { + self.bucket.set_default(); + } + self.bucket.as_mut().unwrap() + } + + // Take field + pub fn take_bucket(&mut self) -> super::storage_resources::Bucket { + self.bucket.take().unwrap_or_else(|| super::storage_resources::Bucket::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 7; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for InsertBucketRequest { + fn is_initialized(&self) -> bool { + for v in &self.bucket { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 1, &mut self.unknown_fields)? + }, + 2 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_default_object_acl, 2, &mut self.unknown_fields)? + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 4, &mut self.unknown_fields)? + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(1, self.predefined_acl); + } + if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(2, self.predefined_default_object_acl); + } + if !self.project.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.project); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(4, self.projection); + } + if let Some(ref v) = self.bucket.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { + os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; + } + if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.predefined_default_object_acl))?; + } + if !self.project.is_empty() { + os.write_string(3, &self.project)?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.bucket.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.common_request_params.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> InsertBucketRequest { + InsertBucketRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( + "predefined_acl", + |m: &InsertBucketRequest| { &m.predefined_acl }, + |m: &mut InsertBucketRequest| { &mut m.predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "predefined_default_object_acl", + |m: &InsertBucketRequest| { &m.predefined_default_object_acl }, + |m: &mut InsertBucketRequest| { &mut m.predefined_default_object_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "project", + |m: &InsertBucketRequest| { &m.project }, + |m: &mut InsertBucketRequest| { &mut m.project }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &InsertBucketRequest| { &m.projection }, + |m: &mut InsertBucketRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "bucket", + |m: &InsertBucketRequest| { &m.bucket }, + |m: &mut InsertBucketRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &InsertBucketRequest| { &m.common_request_params }, + |m: &mut InsertBucketRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "InsertBucketRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static InsertBucketRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(InsertBucketRequest::new) + } +} + +impl ::protobuf::Clear for InsertBucketRequest { + fn clear(&mut self) { + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; + self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.project.clear(); + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.bucket.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for InsertBucketRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for InsertBucketRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListChannelsRequest { + // message fields + pub bucket: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListChannelsRequest { + fn default() -> &'a ListChannelsRequest { + ::default_instance() + } +} + +impl ListChannelsRequest { + pub fn new() -> ListChannelsRequest { + ::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()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 3; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ListChannelsRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.common_request_params.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() -> ListChannelsRequest { + ListChannelsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListChannelsRequest| { &m.bucket }, + |m: &mut ListChannelsRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ListChannelsRequest| { &m.common_request_params }, + |m: &mut ListChannelsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListChannelsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListChannelsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListChannelsRequest::new) + } +} + +impl ::protobuf::Clear for ListChannelsRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListChannelsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListChannelsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListBucketsRequest { + // message fields + pub max_results: i32, + pub page_token: ::std::string::String, + pub prefix: ::std::string::String, + pub project: ::std::string::String, + pub projection: super::storage_resources::CommonEnums_Projection, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListBucketsRequest { + fn default() -> &'a ListBucketsRequest { + ::default_instance() + } +} + +impl ListBucketsRequest { + pub fn new() -> ListBucketsRequest { + ::std::default::Default::default() + } + + // int32 max_results = 1; + + + pub fn get_max_results(&self) -> i32 { + self.max_results + } + pub fn clear_max_results(&mut self) { + self.max_results = 0; + } + + // Param is passed by value, moved + pub fn set_max_results(&mut self, v: i32) { + self.max_results = 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()) + } + + // string prefix = 3; + + + pub fn get_prefix(&self) -> &str { + &self.prefix + } + pub fn clear_prefix(&mut self) { + self.prefix.clear(); + } + + // Param is passed by value, moved + pub fn set_prefix(&mut self, v: ::std::string::String) { + self.prefix = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_prefix(&mut self) -> &mut ::std::string::String { + &mut self.prefix + } + + // Take field + pub fn take_prefix(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.prefix, ::std::string::String::new()) + } + + // string project = 4; + + + 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()) + } + + // .google.storage.v1.CommonEnums.Projection projection = 5; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.CommonRequestParams common_request_params = 7; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ListBucketsRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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 => { + 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_results = tmp; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.prefix)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; + }, + 5 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 5, &mut self.unknown_fields)? + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.max_results != 0 { + my_size += ::protobuf::rt::value_size(1, self.max_results, ::protobuf::wire_format::WireTypeVarint); + } + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.page_token); + } + if !self.prefix.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.prefix); + } + if !self.project.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.project); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(5, self.projection); + } + if let Some(ref v) = self.common_request_params.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.max_results != 0 { + os.write_int32(1, self.max_results)?; + } + if !self.page_token.is_empty() { + os.write_string(2, &self.page_token)?; + } + if !self.prefix.is_empty() { + os.write_string(3, &self.prefix)?; + } + if !self.project.is_empty() { + os.write_string(4, &self.project)?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.common_request_params.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> ListBucketsRequest { + ListBucketsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( + "max_results", + |m: &ListBucketsRequest| { &m.max_results }, + |m: &mut ListBucketsRequest| { &mut m.max_results }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "page_token", + |m: &ListBucketsRequest| { &m.page_token }, + |m: &mut ListBucketsRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "prefix", + |m: &ListBucketsRequest| { &m.prefix }, + |m: &mut ListBucketsRequest| { &mut m.prefix }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "project", + |m: &ListBucketsRequest| { &m.project }, + |m: &mut ListBucketsRequest| { &mut m.project }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &ListBucketsRequest| { &m.projection }, + |m: &mut ListBucketsRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ListBucketsRequest| { &m.common_request_params }, + |m: &mut ListBucketsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListBucketsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListBucketsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListBucketsRequest::new) + } +} + +impl ::protobuf::Clear for ListBucketsRequest { + fn clear(&mut self) { + self.max_results = 0; + self.page_token.clear(); + self.prefix.clear(); + self.project.clear(); + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListBucketsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListBucketsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct LockRetentionPolicyRequest { + // message fields + pub bucket: ::std::string::String, + pub if_metageneration_match: i64, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a LockRetentionPolicyRequest { + fn default() -> &'a LockRetentionPolicyRequest { + ::default_instance() + } +} + +impl LockRetentionPolicyRequest { + pub fn new() -> LockRetentionPolicyRequest { + ::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()) + } + + // int64 if_metageneration_match = 2; + + + pub fn get_if_metageneration_match(&self) -> i64 { + self.if_metageneration_match + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match = 0; + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: i64) { + self.if_metageneration_match = v; + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for LockRetentionPolicyRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 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.if_metageneration_match = tmp; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.if_metageneration_match != 0 { + my_size += ::protobuf::rt::value_size(2, self.if_metageneration_match, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if self.if_metageneration_match != 0 { + os.write_int64(2, self.if_metageneration_match)?; + } + if let Some(ref v) = self.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> LockRetentionPolicyRequest { + LockRetentionPolicyRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &LockRetentionPolicyRequest| { &m.bucket }, + |m: &mut LockRetentionPolicyRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "if_metageneration_match", + |m: &LockRetentionPolicyRequest| { &m.if_metageneration_match }, + |m: &mut LockRetentionPolicyRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &LockRetentionPolicyRequest| { &m.common_request_params }, + |m: &mut LockRetentionPolicyRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "LockRetentionPolicyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static LockRetentionPolicyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(LockRetentionPolicyRequest::new) + } +} + +impl ::protobuf::Clear for LockRetentionPolicyRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.if_metageneration_match = 0; + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for LockRetentionPolicyRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for LockRetentionPolicyRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PatchBucketRequest { + // message fields + pub bucket: ::std::string::String, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub predefined_acl: super::storage_resources::CommonEnums_PredefinedBucketAcl, + pub predefined_default_object_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub projection: super::storage_resources::CommonEnums_Projection, + pub metadata: ::protobuf::SingularPtrField, + pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a PatchBucketRequest { + fn default() -> &'a PatchBucketRequest { + ::default_instance() + } +} + +impl PatchBucketRequest { + pub fn new() -> PatchBucketRequest { + ::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()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 2; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 3; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonEnums.PredefinedBucketAcl predefined_acl = 4; + + + pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedBucketAcl { + self.predefined_acl + } + pub fn clear_predefined_acl(&mut self) { + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedBucketAcl) { + self.predefined_acl = v; + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_default_object_acl = 5; + + + pub fn get_predefined_default_object_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.predefined_default_object_acl + } + pub fn clear_predefined_default_object_acl(&mut self) { + self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_default_object_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.predefined_default_object_acl = v; + } + + // .google.storage.v1.CommonEnums.Projection projection = 6; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.Bucket metadata = 8; + + + pub fn get_metadata(&self) -> &super::storage_resources::Bucket { + 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: super::storage_resources::Bucket) { + 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 super::storage_resources::Bucket { + if self.metadata.is_none() { + self.metadata.set_default(); + } + self.metadata.as_mut().unwrap() + } + + // Take field + pub fn take_metadata(&mut self) -> super::storage_resources::Bucket { + self.metadata.take().unwrap_or_else(|| super::storage_resources::Bucket::new()) + } + + // .google.protobuf.FieldMask update_mask = 9; + + + 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()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 10; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for PatchBucketRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.metadata { + if !v.is_initialized() { + return false; + } + }; + for v in &self.update_mask { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 4, &mut self.unknown_fields)? + }, + 5 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_default_object_acl, 5, &mut self.unknown_fields)? + }, + 6 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 6, &mut self.unknown_fields)? + }, + 8 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(4, self.predefined_acl); + } + if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(5, self.predefined_default_object_acl); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(6, self.projection); + } + if let Some(ref v) = self.metadata.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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { + os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; + } + if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.predefined_default_object_acl))?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.metadata.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_mask.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.common_request_params.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() -> PatchBucketRequest { + PatchBucketRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchBucketRequest| { &m.bucket }, + |m: &mut PatchBucketRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &PatchBucketRequest| { &m.if_metageneration_match }, + |m: &mut PatchBucketRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &PatchBucketRequest| { &m.if_metageneration_not_match }, + |m: &mut PatchBucketRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "predefined_acl", + |m: &PatchBucketRequest| { &m.predefined_acl }, + |m: &mut PatchBucketRequest| { &mut m.predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "predefined_default_object_acl", + |m: &PatchBucketRequest| { &m.predefined_default_object_acl }, + |m: &mut PatchBucketRequest| { &mut m.predefined_default_object_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &PatchBucketRequest| { &m.projection }, + |m: &mut PatchBucketRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "metadata", + |m: &PatchBucketRequest| { &m.metadata }, + |m: &mut PatchBucketRequest| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( + "update_mask", + |m: &PatchBucketRequest| { &m.update_mask }, + |m: &mut PatchBucketRequest| { &mut m.update_mask }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &PatchBucketRequest| { &m.common_request_params }, + |m: &mut PatchBucketRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "PatchBucketRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static PatchBucketRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PatchBucketRequest::new) + } +} + +impl ::protobuf::Clear for PatchBucketRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; + self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.metadata.clear(); + self.update_mask.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for PatchBucketRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for PatchBucketRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateBucketRequest { + // message fields + pub bucket: ::std::string::String, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub predefined_acl: super::storage_resources::CommonEnums_PredefinedBucketAcl, + pub predefined_default_object_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub projection: super::storage_resources::CommonEnums_Projection, + pub metadata: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UpdateBucketRequest { + fn default() -> &'a UpdateBucketRequest { + ::default_instance() + } +} + +impl UpdateBucketRequest { + pub fn new() -> UpdateBucketRequest { + ::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()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 2; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 3; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonEnums.PredefinedBucketAcl predefined_acl = 4; + + + pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedBucketAcl { + self.predefined_acl + } + pub fn clear_predefined_acl(&mut self) { + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedBucketAcl) { + self.predefined_acl = v; + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_default_object_acl = 5; + + + pub fn get_predefined_default_object_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.predefined_default_object_acl + } + pub fn clear_predefined_default_object_acl(&mut self) { + self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_default_object_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.predefined_default_object_acl = v; + } + + // .google.storage.v1.CommonEnums.Projection projection = 6; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.Bucket metadata = 8; + + + pub fn get_metadata(&self) -> &super::storage_resources::Bucket { + 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: super::storage_resources::Bucket) { + 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 super::storage_resources::Bucket { + if self.metadata.is_none() { + self.metadata.set_default(); + } + self.metadata.as_mut().unwrap() + } + + // Take field + pub fn take_metadata(&mut self) -> super::storage_resources::Bucket { + self.metadata.take().unwrap_or_else(|| super::storage_resources::Bucket::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 9; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for UpdateBucketRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.metadata { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 4, &mut self.unknown_fields)? + }, + 5 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_default_object_acl, 5, &mut self.unknown_fields)? + }, + 6 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 6, &mut self.unknown_fields)? + }, + 8 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(4, self.predefined_acl); + } + if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(5, self.predefined_default_object_acl); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(6, self.projection); + } + if let Some(ref v) = self.metadata.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED { + os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; + } + if self.predefined_default_object_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.predefined_default_object_acl))?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.metadata.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.common_request_params.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() -> UpdateBucketRequest { + UpdateBucketRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateBucketRequest| { &m.bucket }, + |m: &mut UpdateBucketRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &UpdateBucketRequest| { &m.if_metageneration_match }, + |m: &mut UpdateBucketRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &UpdateBucketRequest| { &m.if_metageneration_not_match }, + |m: &mut UpdateBucketRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "predefined_acl", + |m: &UpdateBucketRequest| { &m.predefined_acl }, + |m: &mut UpdateBucketRequest| { &mut m.predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "predefined_default_object_acl", + |m: &UpdateBucketRequest| { &m.predefined_default_object_acl }, + |m: &mut UpdateBucketRequest| { &mut m.predefined_default_object_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &UpdateBucketRequest| { &m.projection }, + |m: &mut UpdateBucketRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "metadata", + |m: &UpdateBucketRequest| { &m.metadata }, + |m: &mut UpdateBucketRequest| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &UpdateBucketRequest| { &m.common_request_params }, + |m: &mut UpdateBucketRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateBucketRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UpdateBucketRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateBucketRequest::new) + } +} + +impl ::protobuf::Clear for UpdateBucketRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED; + self.predefined_default_object_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.metadata.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateBucketRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UpdateBucketRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct StopChannelRequest { + // message fields + pub channel: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a StopChannelRequest { + fn default() -> &'a StopChannelRequest { + ::default_instance() + } +} + +impl StopChannelRequest { + pub fn new() -> StopChannelRequest { + ::std::default::Default::default() + } + + // .google.storage.v1.Channel channel = 1; + + + pub fn get_channel(&self) -> &super::storage_resources::Channel { + self.channel.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_channel(&mut self) { + self.channel.clear(); + } + + pub fn has_channel(&self) -> bool { + self.channel.is_some() + } + + // Param is passed by value, moved + pub fn set_channel(&mut self, v: super::storage_resources::Channel) { + self.channel = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_channel(&mut self) -> &mut super::storage_resources::Channel { + if self.channel.is_none() { + self.channel.set_default(); + } + self.channel.as_mut().unwrap() + } + + // Take field + pub fn take_channel(&mut self) -> super::storage_resources::Channel { + self.channel.take().unwrap_or_else(|| super::storage_resources::Channel::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 2; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for StopChannelRequest { + fn is_initialized(&self) -> bool { + for v in &self.channel { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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_message_into(wire_type, is, &mut self.channel)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.channel.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.channel.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.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> StopChannelRequest { + StopChannelRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "channel", + |m: &StopChannelRequest| { &m.channel }, + |m: &mut StopChannelRequest| { &mut m.channel }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &StopChannelRequest| { &m.common_request_params }, + |m: &mut StopChannelRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "StopChannelRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static StopChannelRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(StopChannelRequest::new) + } +} + +impl ::protobuf::Clear for StopChannelRequest { + fn clear(&mut self) { + self.channel.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for StopChannelRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for StopChannelRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteDefaultObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DeleteDefaultObjectAccessControlRequest { + fn default() -> &'a DeleteDefaultObjectAccessControlRequest { + ::default_instance() + } +} + +impl DeleteDefaultObjectAccessControlRequest { + pub fn new() -> DeleteDefaultObjectAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for DeleteDefaultObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if let Some(ref v) = self.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> DeleteDefaultObjectAccessControlRequest { + DeleteDefaultObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteDefaultObjectAccessControlRequest| { &m.bucket }, + |m: &mut DeleteDefaultObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &DeleteDefaultObjectAccessControlRequest| { &m.entity }, + |m: &mut DeleteDefaultObjectAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &DeleteDefaultObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut DeleteDefaultObjectAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DeleteDefaultObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DeleteDefaultObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteDefaultObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for DeleteDefaultObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DeleteDefaultObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DeleteDefaultObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetDefaultObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetDefaultObjectAccessControlRequest { + fn default() -> &'a GetDefaultObjectAccessControlRequest { + ::default_instance() + } +} + +impl GetDefaultObjectAccessControlRequest { + pub fn new() -> GetDefaultObjectAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetDefaultObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if let Some(ref v) = self.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> GetDefaultObjectAccessControlRequest { + GetDefaultObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetDefaultObjectAccessControlRequest| { &m.bucket }, + |m: &mut GetDefaultObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &GetDefaultObjectAccessControlRequest| { &m.entity }, + |m: &mut GetDefaultObjectAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetDefaultObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut GetDefaultObjectAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetDefaultObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetDefaultObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetDefaultObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for GetDefaultObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetDefaultObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetDefaultObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct InsertDefaultObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub object_access_control: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a InsertDefaultObjectAccessControlRequest { + fn default() -> &'a InsertDefaultObjectAccessControlRequest { + ::default_instance() + } +} + +impl InsertDefaultObjectAccessControlRequest { + pub fn new() -> InsertDefaultObjectAccessControlRequest { + ::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()) + } + + // .google.storage.v1.ObjectAccessControl object_access_control = 3; + + + pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { + self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_access_control(&mut self) { + self.object_access_control.clear(); + } + + pub fn has_object_access_control(&self) -> bool { + self.object_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { + self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { + if self.object_access_control.is_none() { + self.object_access_control.set_default(); + } + self.object_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { + self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for InsertDefaultObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.object_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.object_access_control.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.object_access_control.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.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> InsertDefaultObjectAccessControlRequest { + InsertDefaultObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &InsertDefaultObjectAccessControlRequest| { &m.bucket }, + |m: &mut InsertDefaultObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_access_control", + |m: &InsertDefaultObjectAccessControlRequest| { &m.object_access_control }, + |m: &mut InsertDefaultObjectAccessControlRequest| { &mut m.object_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &InsertDefaultObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut InsertDefaultObjectAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "InsertDefaultObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static InsertDefaultObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(InsertDefaultObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for InsertDefaultObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.object_access_control.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for InsertDefaultObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for InsertDefaultObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListDefaultObjectAccessControlsRequest { + // message fields + pub bucket: ::std::string::String, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListDefaultObjectAccessControlsRequest { + fn default() -> &'a ListDefaultObjectAccessControlsRequest { + ::default_instance() + } +} + +impl ListDefaultObjectAccessControlsRequest { + pub fn new() -> ListDefaultObjectAccessControlsRequest { + ::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()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 2; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 3; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 5; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ListDefaultObjectAccessControlsRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.if_metageneration_match.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.if_metageneration_not_match.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.common_request_params.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() -> ListDefaultObjectAccessControlsRequest { + ListDefaultObjectAccessControlsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListDefaultObjectAccessControlsRequest| { &m.bucket }, + |m: &mut ListDefaultObjectAccessControlsRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &ListDefaultObjectAccessControlsRequest| { &m.if_metageneration_match }, + |m: &mut ListDefaultObjectAccessControlsRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &ListDefaultObjectAccessControlsRequest| { &m.if_metageneration_not_match }, + |m: &mut ListDefaultObjectAccessControlsRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ListDefaultObjectAccessControlsRequest| { &m.common_request_params }, + |m: &mut ListDefaultObjectAccessControlsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListDefaultObjectAccessControlsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListDefaultObjectAccessControlsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListDefaultObjectAccessControlsRequest::new) + } +} + +impl ::protobuf::Clear for ListDefaultObjectAccessControlsRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListDefaultObjectAccessControlsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListDefaultObjectAccessControlsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PatchDefaultObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub object_access_control: ::protobuf::SingularPtrField, + pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a PatchDefaultObjectAccessControlRequest { + fn default() -> &'a PatchDefaultObjectAccessControlRequest { + ::default_instance() + } +} + +impl PatchDefaultObjectAccessControlRequest { + pub fn new() -> PatchDefaultObjectAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // .google.storage.v1.ObjectAccessControl object_access_control = 4; + + + pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { + self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_access_control(&mut self) { + self.object_access_control.clear(); + } + + pub fn has_object_access_control(&self) -> bool { + self.object_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { + self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { + if self.object_access_control.is_none() { + self.object_access_control.set_default(); + } + self.object_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { + self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) + } + + // .google.protobuf.FieldMask update_mask = 5; + + + 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()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 6; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for PatchDefaultObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.object_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.update_mask { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if let Some(ref v) = self.object_access_control.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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if let Some(ref v) = self.object_access_control.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_mask.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.common_request_params.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() -> PatchDefaultObjectAccessControlRequest { + PatchDefaultObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchDefaultObjectAccessControlRequest| { &m.bucket }, + |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &PatchDefaultObjectAccessControlRequest| { &m.entity }, + |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_access_control", + |m: &PatchDefaultObjectAccessControlRequest| { &m.object_access_control }, + |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.object_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( + "update_mask", + |m: &PatchDefaultObjectAccessControlRequest| { &m.update_mask }, + |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.update_mask }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &PatchDefaultObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut PatchDefaultObjectAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "PatchDefaultObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static PatchDefaultObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PatchDefaultObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for PatchDefaultObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.object_access_control.clear(); + self.update_mask.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for PatchDefaultObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for PatchDefaultObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateDefaultObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub object_access_control: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UpdateDefaultObjectAccessControlRequest { + fn default() -> &'a UpdateDefaultObjectAccessControlRequest { + ::default_instance() + } +} + +impl UpdateDefaultObjectAccessControlRequest { + pub fn new() -> UpdateDefaultObjectAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // .google.storage.v1.ObjectAccessControl object_access_control = 4; + + + pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { + self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_access_control(&mut self) { + self.object_access_control.clear(); + } + + pub fn has_object_access_control(&self) -> bool { + self.object_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { + self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { + if self.object_access_control.is_none() { + self.object_access_control.set_default(); + } + self.object_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { + self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 5; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for UpdateDefaultObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.object_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if let Some(ref v) = self.object_access_control.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if let Some(ref v) = self.object_access_control.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.common_request_params.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() -> UpdateDefaultObjectAccessControlRequest { + UpdateDefaultObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateDefaultObjectAccessControlRequest| { &m.bucket }, + |m: &mut UpdateDefaultObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &UpdateDefaultObjectAccessControlRequest| { &m.entity }, + |m: &mut UpdateDefaultObjectAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_access_control", + |m: &UpdateDefaultObjectAccessControlRequest| { &m.object_access_control }, + |m: &mut UpdateDefaultObjectAccessControlRequest| { &mut m.object_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &UpdateDefaultObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut UpdateDefaultObjectAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateDefaultObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UpdateDefaultObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateDefaultObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for UpdateDefaultObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.object_access_control.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateDefaultObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UpdateDefaultObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteNotificationRequest { + // message fields + pub bucket: ::std::string::String, + pub notification: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DeleteNotificationRequest { + fn default() -> &'a DeleteNotificationRequest { + ::default_instance() + } +} + +impl DeleteNotificationRequest { + pub fn new() -> DeleteNotificationRequest { + ::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 notification = 2; + + + pub fn get_notification(&self) -> &str { + &self.notification + } + pub fn clear_notification(&mut self) { + self.notification.clear(); + } + + // Param is passed by value, moved + pub fn set_notification(&mut self, v: ::std::string::String) { + self.notification = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_notification(&mut self) -> &mut ::std::string::String { + &mut self.notification + } + + // Take field + pub fn take_notification(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.notification, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for DeleteNotificationRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.notification)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.notification.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.notification); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.notification.is_empty() { + os.write_string(2, &self.notification)?; + } + if let Some(ref v) = self.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> DeleteNotificationRequest { + DeleteNotificationRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteNotificationRequest| { &m.bucket }, + |m: &mut DeleteNotificationRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "notification", + |m: &DeleteNotificationRequest| { &m.notification }, + |m: &mut DeleteNotificationRequest| { &mut m.notification }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &DeleteNotificationRequest| { &m.common_request_params }, + |m: &mut DeleteNotificationRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DeleteNotificationRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DeleteNotificationRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteNotificationRequest::new) + } +} + +impl ::protobuf::Clear for DeleteNotificationRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.notification.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DeleteNotificationRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DeleteNotificationRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetNotificationRequest { + // message fields + pub bucket: ::std::string::String, + pub notification: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetNotificationRequest { + fn default() -> &'a GetNotificationRequest { + ::default_instance() + } +} + +impl GetNotificationRequest { + pub fn new() -> GetNotificationRequest { + ::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 notification = 2; + + + pub fn get_notification(&self) -> &str { + &self.notification + } + pub fn clear_notification(&mut self) { + self.notification.clear(); + } + + // Param is passed by value, moved + pub fn set_notification(&mut self, v: ::std::string::String) { + self.notification = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_notification(&mut self) -> &mut ::std::string::String { + &mut self.notification + } + + // Take field + pub fn take_notification(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.notification, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetNotificationRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.notification)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.notification.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.notification); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.notification.is_empty() { + os.write_string(2, &self.notification)?; + } + if let Some(ref v) = self.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> GetNotificationRequest { + GetNotificationRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetNotificationRequest| { &m.bucket }, + |m: &mut GetNotificationRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "notification", + |m: &GetNotificationRequest| { &m.notification }, + |m: &mut GetNotificationRequest| { &mut m.notification }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetNotificationRequest| { &m.common_request_params }, + |m: &mut GetNotificationRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetNotificationRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetNotificationRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetNotificationRequest::new) + } +} + +impl ::protobuf::Clear for GetNotificationRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.notification.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetNotificationRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetNotificationRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct InsertNotificationRequest { + // message fields + pub bucket: ::std::string::String, + pub notification: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a InsertNotificationRequest { + fn default() -> &'a InsertNotificationRequest { + ::default_instance() + } +} + +impl InsertNotificationRequest { + pub fn new() -> InsertNotificationRequest { + ::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()) + } + + // .google.storage.v1.Notification notification = 3; + + + pub fn get_notification(&self) -> &super::storage_resources::Notification { + self.notification.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_notification(&mut self) { + self.notification.clear(); + } + + pub fn has_notification(&self) -> bool { + self.notification.is_some() + } + + // Param is passed by value, moved + pub fn set_notification(&mut self, v: super::storage_resources::Notification) { + self.notification = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_notification(&mut self) -> &mut super::storage_resources::Notification { + if self.notification.is_none() { + self.notification.set_default(); + } + self.notification.as_mut().unwrap() + } + + // Take field + pub fn take_notification(&mut self) -> super::storage_resources::Notification { + self.notification.take().unwrap_or_else(|| super::storage_resources::Notification::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for InsertNotificationRequest { + fn is_initialized(&self) -> bool { + for v in &self.notification { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.notification)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.notification.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.notification.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.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> InsertNotificationRequest { + InsertNotificationRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &InsertNotificationRequest| { &m.bucket }, + |m: &mut InsertNotificationRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "notification", + |m: &InsertNotificationRequest| { &m.notification }, + |m: &mut InsertNotificationRequest| { &mut m.notification }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &InsertNotificationRequest| { &m.common_request_params }, + |m: &mut InsertNotificationRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "InsertNotificationRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static InsertNotificationRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(InsertNotificationRequest::new) + } +} + +impl ::protobuf::Clear for InsertNotificationRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.notification.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for InsertNotificationRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for InsertNotificationRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListNotificationsRequest { + // message fields + pub bucket: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListNotificationsRequest { + fn default() -> &'a ListNotificationsRequest { + ::default_instance() + } +} + +impl ListNotificationsRequest { + pub fn new() -> ListNotificationsRequest { + ::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()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 3; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ListNotificationsRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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 let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if let Some(ref v) = self.common_request_params.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() -> ListNotificationsRequest { + ListNotificationsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListNotificationsRequest| { &m.bucket }, + |m: &mut ListNotificationsRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ListNotificationsRequest| { &m.common_request_params }, + |m: &mut ListNotificationsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListNotificationsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListNotificationsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListNotificationsRequest::new) + } +} + +impl ::protobuf::Clear for ListNotificationsRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListNotificationsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListNotificationsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DeleteObjectAccessControlRequest { + fn default() -> &'a DeleteObjectAccessControlRequest { + ::default_instance() + } +} + +impl DeleteObjectAccessControlRequest { + pub fn new() -> DeleteObjectAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // string object = 3; + + + 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 = 4; + + + 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; + } + + // .google.storage.v1.CommonRequestParams common_request_params = 6; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for DeleteObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; + }, + 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.generation = tmp; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if !self.object.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.object); + } + if self.generation != 0 { + my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if !self.object.is_empty() { + os.write_string(3, &self.object)?; + } + if self.generation != 0 { + os.write_int64(4, self.generation)?; + } + if let Some(ref v) = self.common_request_params.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() -> DeleteObjectAccessControlRequest { + DeleteObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteObjectAccessControlRequest| { &m.bucket }, + |m: &mut DeleteObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &DeleteObjectAccessControlRequest| { &m.entity }, + |m: &mut DeleteObjectAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &DeleteObjectAccessControlRequest| { &m.object }, + |m: &mut DeleteObjectAccessControlRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &DeleteObjectAccessControlRequest| { &m.generation }, + |m: &mut DeleteObjectAccessControlRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &DeleteObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut DeleteObjectAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DeleteObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DeleteObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for DeleteObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.object.clear(); + self.generation = 0; + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DeleteObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DeleteObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetObjectAccessControlRequest { + fn default() -> &'a GetObjectAccessControlRequest { + ::default_instance() + } +} + +impl GetObjectAccessControlRequest { + pub fn new() -> GetObjectAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // string object = 3; + + + 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 = 4; + + + 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; + } + + // .google.storage.v1.CommonRequestParams common_request_params = 6; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; + }, + 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.generation = tmp; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if !self.object.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.object); + } + if self.generation != 0 { + my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if !self.object.is_empty() { + os.write_string(3, &self.object)?; + } + if self.generation != 0 { + os.write_int64(4, self.generation)?; + } + if let Some(ref v) = self.common_request_params.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() -> GetObjectAccessControlRequest { + GetObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetObjectAccessControlRequest| { &m.bucket }, + |m: &mut GetObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &GetObjectAccessControlRequest| { &m.entity }, + |m: &mut GetObjectAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &GetObjectAccessControlRequest| { &m.object }, + |m: &mut GetObjectAccessControlRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &GetObjectAccessControlRequest| { &m.generation }, + |m: &mut GetObjectAccessControlRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut GetObjectAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for GetObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.object.clear(); + self.generation = 0; + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct InsertObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub object_access_control: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a InsertObjectAccessControlRequest { + fn default() -> &'a InsertObjectAccessControlRequest { + ::default_instance() + } +} + +impl InsertObjectAccessControlRequest { + pub fn new() -> InsertObjectAccessControlRequest { + ::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; + } + + // .google.storage.v1.ObjectAccessControl object_access_control = 5; + + + pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { + self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_access_control(&mut self) { + self.object_access_control.clear(); + } + + pub fn has_object_access_control(&self) -> bool { + self.object_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { + self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { + if self.object_access_control.is_none() { + self.object_access_control.set_default(); + } + self.object_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { + self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 6; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for InsertObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.object_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.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; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if let Some(ref v) = self.object_access_control.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.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)?; + } + if let Some(ref v) = self.object_access_control.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.common_request_params.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() -> InsertObjectAccessControlRequest { + InsertObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &InsertObjectAccessControlRequest| { &m.bucket }, + |m: &mut InsertObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &InsertObjectAccessControlRequest| { &m.object }, + |m: &mut InsertObjectAccessControlRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &InsertObjectAccessControlRequest| { &m.generation }, + |m: &mut InsertObjectAccessControlRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_access_control", + |m: &InsertObjectAccessControlRequest| { &m.object_access_control }, + |m: &mut InsertObjectAccessControlRequest| { &mut m.object_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &InsertObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut InsertObjectAccessControlRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "InsertObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static InsertObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(InsertObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for InsertObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.object.clear(); + self.generation = 0; + self.object_access_control.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for InsertObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for InsertObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListObjectAccessControlsRequest { + // message fields + pub bucket: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListObjectAccessControlsRequest { + fn default() -> &'a ListObjectAccessControlsRequest { + ::default_instance() + } +} + +impl ListObjectAccessControlsRequest { + pub fn new() -> ListObjectAccessControlsRequest { + ::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; + } + + // .google.storage.v1.CommonRequestParams common_request_params = 5; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ListObjectAccessControlsRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.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; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if let Some(ref v) = self.common_request_params.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.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)?; + } + if let Some(ref v) = self.common_request_params.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() -> ListObjectAccessControlsRequest { + ListObjectAccessControlsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListObjectAccessControlsRequest| { &m.bucket }, + |m: &mut ListObjectAccessControlsRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &ListObjectAccessControlsRequest| { &m.object }, + |m: &mut ListObjectAccessControlsRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &ListObjectAccessControlsRequest| { &m.generation }, + |m: &mut ListObjectAccessControlsRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ListObjectAccessControlsRequest| { &m.common_request_params }, + |m: &mut ListObjectAccessControlsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListObjectAccessControlsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListObjectAccessControlsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListObjectAccessControlsRequest::new) + } +} + +impl ::protobuf::Clear for ListObjectAccessControlsRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.object.clear(); + self.generation = 0; + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListObjectAccessControlsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListObjectAccessControlsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PatchObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub object_access_control: ::protobuf::SingularPtrField, + pub common_request_params: ::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 PatchObjectAccessControlRequest { + fn default() -> &'a PatchObjectAccessControlRequest { + ::default_instance() + } +} + +impl PatchObjectAccessControlRequest { + pub fn new() -> PatchObjectAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // string object = 3; + + + 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 = 4; + + + 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; + } + + // .google.storage.v1.ObjectAccessControl object_access_control = 5; + + + pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { + self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_access_control(&mut self) { + self.object_access_control.clear(); + } + + pub fn has_object_access_control(&self) -> bool { + self.object_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { + self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { + if self.object_access_control.is_none() { + self.object_access_control.set_default(); + } + self.object_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { + self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 6; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } + + // .google.protobuf.FieldMask update_mask = 7; + + + 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 PatchObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.object_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_params { + 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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; + }, + 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.generation = tmp; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + 7 => { + ::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 !self.bucket.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.bucket); + } + if !self.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if !self.object.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.object); + } + if self.generation != 0 { + my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.object_access_control.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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 !self.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if !self.object.is_empty() { + os.write_string(3, &self.object)?; + } + if self.generation != 0 { + os.write_int64(4, self.generation)?; + } + if let Some(ref v) = self.object_access_control.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.common_request_params.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_mask.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> PatchObjectAccessControlRequest { + PatchObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchObjectAccessControlRequest| { &m.bucket }, + |m: &mut PatchObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &PatchObjectAccessControlRequest| { &m.entity }, + |m: &mut PatchObjectAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &PatchObjectAccessControlRequest| { &m.object }, + |m: &mut PatchObjectAccessControlRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &PatchObjectAccessControlRequest| { &m.generation }, + |m: &mut PatchObjectAccessControlRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_access_control", + |m: &PatchObjectAccessControlRequest| { &m.object_access_control }, + |m: &mut PatchObjectAccessControlRequest| { &mut m.object_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &PatchObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut PatchObjectAccessControlRequest| { &mut m.common_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( + "update_mask", + |m: &PatchObjectAccessControlRequest| { &m.update_mask }, + |m: &mut PatchObjectAccessControlRequest| { &mut m.update_mask }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "PatchObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static PatchObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PatchObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for PatchObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.object.clear(); + self.generation = 0; + self.object_access_control.clear(); + self.common_request_params.clear(); + self.update_mask.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for PatchObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for PatchObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateObjectAccessControlRequest { + // message fields + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub object_access_control: ::protobuf::SingularPtrField, + pub common_request_params: ::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 UpdateObjectAccessControlRequest { + fn default() -> &'a UpdateObjectAccessControlRequest { + ::default_instance() + } +} + +impl UpdateObjectAccessControlRequest { + pub fn new() -> UpdateObjectAccessControlRequest { + ::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 entity = 2; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // string object = 3; + + + 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 = 4; + + + 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; + } + + // .google.storage.v1.ObjectAccessControl object_access_control = 6; + + + pub fn get_object_access_control(&self) -> &super::storage_resources::ObjectAccessControl { + self.object_access_control.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_access_control(&mut self) { + self.object_access_control.clear(); + } + + pub fn has_object_access_control(&self) -> bool { + self.object_access_control.is_some() + } + + // Param is passed by value, moved + pub fn set_object_access_control(&mut self, v: super::storage_resources::ObjectAccessControl) { + self.object_access_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_object_access_control(&mut self) -> &mut super::storage_resources::ObjectAccessControl { + if self.object_access_control.is_none() { + self.object_access_control.set_default(); + } + self.object_access_control.as_mut().unwrap() + } + + // Take field + pub fn take_object_access_control(&mut self) -> super::storage_resources::ObjectAccessControl { + self.object_access_control.take().unwrap_or_else(|| super::storage_resources::ObjectAccessControl::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 7; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } + + // .google.protobuf.FieldMask update_mask = 8; + + + 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 UpdateObjectAccessControlRequest { + fn is_initialized(&self) -> bool { + for v in &self.object_access_control { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_params { + 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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; + }, + 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.generation = tmp; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_access_control)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + 8 => { + ::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 !self.bucket.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.bucket); + } + if !self.entity.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity); + } + if !self.object.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.object); + } + if self.generation != 0 { + my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.object_access_control.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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 !self.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(2, &self.entity)?; + } + if !self.object.is_empty() { + os.write_string(3, &self.object)?; + } + if self.generation != 0 { + os.write_int64(4, self.generation)?; + } + if let Some(ref v) = self.object_access_control.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.common_request_params.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.update_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() -> UpdateObjectAccessControlRequest { + UpdateObjectAccessControlRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateObjectAccessControlRequest| { &m.bucket }, + |m: &mut UpdateObjectAccessControlRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &UpdateObjectAccessControlRequest| { &m.entity }, + |m: &mut UpdateObjectAccessControlRequest| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &UpdateObjectAccessControlRequest| { &m.object }, + |m: &mut UpdateObjectAccessControlRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &UpdateObjectAccessControlRequest| { &m.generation }, + |m: &mut UpdateObjectAccessControlRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_access_control", + |m: &UpdateObjectAccessControlRequest| { &m.object_access_control }, + |m: &mut UpdateObjectAccessControlRequest| { &mut m.object_access_control }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &UpdateObjectAccessControlRequest| { &m.common_request_params }, + |m: &mut UpdateObjectAccessControlRequest| { &mut m.common_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( + "update_mask", + |m: &UpdateObjectAccessControlRequest| { &m.update_mask }, + |m: &mut UpdateObjectAccessControlRequest| { &mut m.update_mask }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateObjectAccessControlRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UpdateObjectAccessControlRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateObjectAccessControlRequest::new) + } +} + +impl ::protobuf::Clear for UpdateObjectAccessControlRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.entity.clear(); + self.object.clear(); + self.generation = 0; + self.object_access_control.clear(); + self.common_request_params.clear(); + self.update_mask.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateObjectAccessControlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UpdateObjectAccessControlRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ComposeObjectRequest { + // message fields + pub destination_bucket: ::std::string::String, + pub destination_object: ::std::string::String, + pub destination_predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub destination: ::protobuf::SingularPtrField, + pub source_objects: ::protobuf::RepeatedField, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub kms_key_name: ::std::string::String, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ComposeObjectRequest { + fn default() -> &'a ComposeObjectRequest { + ::default_instance() + } +} + +impl ComposeObjectRequest { + pub fn new() -> ComposeObjectRequest { + ::std::default::Default::default() + } + + // string destination_bucket = 1; + + + pub fn get_destination_bucket(&self) -> &str { + &self.destination_bucket + } + pub fn clear_destination_bucket(&mut self) { + self.destination_bucket.clear(); + } + + // Param is passed by value, moved + pub fn set_destination_bucket(&mut self, v: ::std::string::String) { + self.destination_bucket = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_destination_bucket(&mut self) -> &mut ::std::string::String { + &mut self.destination_bucket + } + + // Take field + pub fn take_destination_bucket(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.destination_bucket, ::std::string::String::new()) + } + + // string destination_object = 2; + + + pub fn get_destination_object(&self) -> &str { + &self.destination_object + } + pub fn clear_destination_object(&mut self) { + self.destination_object.clear(); + } + + // Param is passed by value, moved + pub fn set_destination_object(&mut self, v: ::std::string::String) { + self.destination_object = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_destination_object(&mut self) -> &mut ::std::string::String { + &mut self.destination_object + } + + // Take field + pub fn take_destination_object(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.destination_object, ::std::string::String::new()) + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl destination_predefined_acl = 3; + + + pub fn get_destination_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.destination_predefined_acl + } + pub fn clear_destination_predefined_acl(&mut self) { + self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_destination_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.destination_predefined_acl = v; + } + + // .google.storage.v1.Object destination = 11; + + + pub fn get_destination(&self) -> &super::storage_resources::Object { + self.destination.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_destination(&mut self) { + self.destination.clear(); + } + + pub fn has_destination(&self) -> bool { + self.destination.is_some() + } + + // Param is passed by value, moved + pub fn set_destination(&mut self, v: super::storage_resources::Object) { + self.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_destination(&mut self) -> &mut super::storage_resources::Object { + if self.destination.is_none() { + self.destination.set_default(); + } + self.destination.as_mut().unwrap() + } + + // Take field + pub fn take_destination(&mut self) -> super::storage_resources::Object { + self.destination.take().unwrap_or_else(|| super::storage_resources::Object::new()) + } + + // repeated .google.storage.v1.ComposeObjectRequest.SourceObjects source_objects = 12; + + + pub fn get_source_objects(&self) -> &[ComposeObjectRequest_SourceObjects] { + &self.source_objects + } + pub fn clear_source_objects(&mut self) { + self.source_objects.clear(); + } + + // Param is passed by value, moved + pub fn set_source_objects(&mut self, v: ::protobuf::RepeatedField) { + self.source_objects = v; + } + + // Mutable pointer to the field. + pub fn mut_source_objects(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.source_objects + } + + // Take field + pub fn take_source_objects(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.source_objects, ::protobuf::RepeatedField::new()) + } + + // .google.protobuf.Int64Value if_generation_match = 4; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 5; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // string kms_key_name = 6; + + + 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()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 9; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 10; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ComposeObjectRequest { + fn is_initialized(&self) -> bool { + for v in &self.destination { + if !v.is_initialized() { + return false; + } + }; + for v in &self.source_objects { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.destination_bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_object)?; + }, + 3 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.destination_predefined_acl, 3, &mut self.unknown_fields)? + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.destination)?; + }, + 12 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.source_objects)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; + }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.destination_bucket.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.destination_bucket); + } + if !self.destination_object.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.destination_object); + } + if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(3, self.destination_predefined_acl); + } + if let Some(ref v) = self.destination.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + for value in &self.source_objects { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.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(6, &self.kms_key_name); + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.destination_bucket.is_empty() { + os.write_string(1, &self.destination_bucket)?; + } + if !self.destination_object.is_empty() { + os.write_string(2, &self.destination_object)?; + } + if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.destination_predefined_acl))?; + } + if let Some(ref v) = self.destination.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)?; + } + for v in &self.source_objects { + 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(ref v) = self.if_generation_match.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.if_metageneration_match.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.kms_key_name.is_empty() { + os.write_string(6, &self.kms_key_name)?; + } + if let Some(ref v) = self.common_object_request_params.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.common_request_params.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() -> ComposeObjectRequest { + ComposeObjectRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "destination_bucket", + |m: &ComposeObjectRequest| { &m.destination_bucket }, + |m: &mut ComposeObjectRequest| { &mut m.destination_bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "destination_object", + |m: &ComposeObjectRequest| { &m.destination_object }, + |m: &mut ComposeObjectRequest| { &mut m.destination_object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "destination_predefined_acl", + |m: &ComposeObjectRequest| { &m.destination_predefined_acl }, + |m: &mut ComposeObjectRequest| { &mut m.destination_predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "destination", + |m: &ComposeObjectRequest| { &m.destination }, + |m: &mut ComposeObjectRequest| { &mut m.destination }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "source_objects", + |m: &ComposeObjectRequest| { &m.source_objects }, + |m: &mut ComposeObjectRequest| { &mut m.source_objects }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &ComposeObjectRequest| { &m.if_generation_match }, + |m: &mut ComposeObjectRequest| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &ComposeObjectRequest| { &m.if_metageneration_match }, + |m: &mut ComposeObjectRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "kms_key_name", + |m: &ComposeObjectRequest| { &m.kms_key_name }, + |m: &mut ComposeObjectRequest| { &mut m.kms_key_name }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &ComposeObjectRequest| { &m.common_object_request_params }, + |m: &mut ComposeObjectRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ComposeObjectRequest| { &m.common_request_params }, + |m: &mut ComposeObjectRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ComposeObjectRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ComposeObjectRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ComposeObjectRequest::new) + } +} + +impl ::protobuf::Clear for ComposeObjectRequest { + fn clear(&mut self) { + self.destination_bucket.clear(); + self.destination_object.clear(); + self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.destination.clear(); + self.source_objects.clear(); + self.if_generation_match.clear(); + self.if_metageneration_match.clear(); + self.kms_key_name.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ComposeObjectRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ComposeObjectRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ComposeObjectRequest_SourceObjects { + // message fields + pub name: ::std::string::String, + pub generation: i64, + pub object_preconditions: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ComposeObjectRequest_SourceObjects { + fn default() -> &'a ComposeObjectRequest_SourceObjects { + ::default_instance() + } +} + +impl ComposeObjectRequest_SourceObjects { + pub fn new() -> ComposeObjectRequest_SourceObjects { + ::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()) + } + + // int64 generation = 2; + + + 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; + } + + // .google.storage.v1.ComposeObjectRequest.SourceObjects.ObjectPreconditions object_preconditions = 3; + + + pub fn get_object_preconditions(&self) -> &ComposeObjectRequest_SourceObjects_ObjectPreconditions { + self.object_preconditions.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_preconditions(&mut self) { + self.object_preconditions.clear(); + } + + pub fn has_object_preconditions(&self) -> bool { + self.object_preconditions.is_some() + } + + // Param is passed by value, moved + pub fn set_object_preconditions(&mut self, v: ComposeObjectRequest_SourceObjects_ObjectPreconditions) { + self.object_preconditions = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_object_preconditions(&mut self) -> &mut ComposeObjectRequest_SourceObjects_ObjectPreconditions { + if self.object_preconditions.is_none() { + self.object_preconditions.set_default(); + } + self.object_preconditions.as_mut().unwrap() + } + + // Take field + pub fn take_object_preconditions(&mut self) -> ComposeObjectRequest_SourceObjects_ObjectPreconditions { + self.object_preconditions.take().unwrap_or_else(|| ComposeObjectRequest_SourceObjects_ObjectPreconditions::new()) + } +} + +impl ::protobuf::Message for ComposeObjectRequest_SourceObjects { + fn is_initialized(&self) -> bool { + for v in &self.object_preconditions { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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_int64()?; + self.generation = tmp; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_preconditions)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.generation != 0 { + my_size += ::protobuf::rt::value_size(2, self.generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.object_preconditions.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.generation != 0 { + os.write_int64(2, self.generation)?; + } + if let Some(ref v) = self.object_preconditions.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() -> ComposeObjectRequest_SourceObjects { + ComposeObjectRequest_SourceObjects::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ComposeObjectRequest_SourceObjects| { &m.name }, + |m: &mut ComposeObjectRequest_SourceObjects| { &mut m.name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &ComposeObjectRequest_SourceObjects| { &m.generation }, + |m: &mut ComposeObjectRequest_SourceObjects| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_preconditions", + |m: &ComposeObjectRequest_SourceObjects| { &m.object_preconditions }, + |m: &mut ComposeObjectRequest_SourceObjects| { &mut m.object_preconditions }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ComposeObjectRequest.SourceObjects", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ComposeObjectRequest_SourceObjects { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ComposeObjectRequest_SourceObjects::new) + } +} + +impl ::protobuf::Clear for ComposeObjectRequest_SourceObjects { + fn clear(&mut self) { + self.name.clear(); + self.generation = 0; + self.object_preconditions.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ComposeObjectRequest_SourceObjects { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ComposeObjectRequest_SourceObjects { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ComposeObjectRequest_SourceObjects_ObjectPreconditions { + // message fields + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ComposeObjectRequest_SourceObjects_ObjectPreconditions { + fn default() -> &'a ComposeObjectRequest_SourceObjects_ObjectPreconditions { + ::default_instance() + } +} + +impl ComposeObjectRequest_SourceObjects_ObjectPreconditions { + pub fn new() -> ComposeObjectRequest_SourceObjects_ObjectPreconditions { + ::std::default::Default::default() + } + + // .google.protobuf.Int64Value if_generation_match = 1; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } +} + +impl ::protobuf::Message for ComposeObjectRequest_SourceObjects_ObjectPreconditions { + fn is_initialized(&self) -> bool { + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::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.if_generation_match)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.if_generation_match.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.if_generation_match.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() -> ComposeObjectRequest_SourceObjects_ObjectPreconditions { + ComposeObjectRequest_SourceObjects_ObjectPreconditions::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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::Int64Value>>( + "if_generation_match", + |m: &ComposeObjectRequest_SourceObjects_ObjectPreconditions| { &m.if_generation_match }, + |m: &mut ComposeObjectRequest_SourceObjects_ObjectPreconditions| { &mut m.if_generation_match }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ComposeObjectRequest.SourceObjects.ObjectPreconditions", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ComposeObjectRequest_SourceObjects_ObjectPreconditions { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ComposeObjectRequest_SourceObjects_ObjectPreconditions::new) + } +} + +impl ::protobuf::Clear for ComposeObjectRequest_SourceObjects_ObjectPreconditions { + fn clear(&mut self) { + self.if_generation_match.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ComposeObjectRequest_SourceObjects_ObjectPreconditions { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ComposeObjectRequest_SourceObjects_ObjectPreconditions { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CopyObjectRequest { + // message fields + pub destination_bucket: ::std::string::String, + pub destination_object: ::std::string::String, + pub destination_predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_source_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_source_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_source_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_source_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub projection: super::storage_resources::CommonEnums_Projection, + pub source_bucket: ::std::string::String, + pub source_object: ::std::string::String, + pub source_generation: i64, + pub destination: ::protobuf::SingularPtrField, + pub destination_kms_key_name: ::std::string::String, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CopyObjectRequest { + fn default() -> &'a CopyObjectRequest { + ::default_instance() + } +} + +impl CopyObjectRequest { + pub fn new() -> CopyObjectRequest { + ::std::default::Default::default() + } + + // string destination_bucket = 1; + + + pub fn get_destination_bucket(&self) -> &str { + &self.destination_bucket + } + pub fn clear_destination_bucket(&mut self) { + self.destination_bucket.clear(); + } + + // Param is passed by value, moved + pub fn set_destination_bucket(&mut self, v: ::std::string::String) { + self.destination_bucket = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_destination_bucket(&mut self) -> &mut ::std::string::String { + &mut self.destination_bucket + } + + // Take field + pub fn take_destination_bucket(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.destination_bucket, ::std::string::String::new()) + } + + // string destination_object = 2; + + + pub fn get_destination_object(&self) -> &str { + &self.destination_object + } + pub fn clear_destination_object(&mut self) { + self.destination_object.clear(); + } + + // Param is passed by value, moved + pub fn set_destination_object(&mut self, v: ::std::string::String) { + self.destination_object = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_destination_object(&mut self) -> &mut ::std::string::String { + &mut self.destination_object + } + + // Take field + pub fn take_destination_object(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.destination_object, ::std::string::String::new()) + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl destination_predefined_acl = 3; + + + pub fn get_destination_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.destination_predefined_acl + } + pub fn clear_destination_predefined_acl(&mut self) { + self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_destination_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.destination_predefined_acl = v; + } + + // .google.protobuf.Int64Value if_generation_match = 4; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_generation_not_match = 5; + + + pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_not_match(&mut self) { + self.if_generation_not_match.clear(); + } + + pub fn has_if_generation_not_match(&self) -> bool { + self.if_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_not_match.is_none() { + self.if_generation_not_match.set_default(); + } + self.if_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 6; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 7; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_source_generation_match = 8; + + + pub fn get_if_source_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_source_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_source_generation_match(&mut self) { + self.if_source_generation_match.clear(); + } + + pub fn has_if_source_generation_match(&self) -> bool { + self.if_source_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_source_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_source_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_source_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_source_generation_match.is_none() { + self.if_source_generation_match.set_default(); + } + self.if_source_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_source_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_source_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_source_generation_not_match = 9; + + + pub fn get_if_source_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_source_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_source_generation_not_match(&mut self) { + self.if_source_generation_not_match.clear(); + } + + pub fn has_if_source_generation_not_match(&self) -> bool { + self.if_source_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_source_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_source_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_source_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_source_generation_not_match.is_none() { + self.if_source_generation_not_match.set_default(); + } + self.if_source_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_source_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_source_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_source_metageneration_match = 10; + + + pub fn get_if_source_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_source_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_source_metageneration_match(&mut self) { + self.if_source_metageneration_match.clear(); + } + + pub fn has_if_source_metageneration_match(&self) -> bool { + self.if_source_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_source_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_source_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_source_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_source_metageneration_match.is_none() { + self.if_source_metageneration_match.set_default(); + } + self.if_source_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_source_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_source_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_source_metageneration_not_match = 11; + + + pub fn get_if_source_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_source_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_source_metageneration_not_match(&mut self) { + self.if_source_metageneration_not_match.clear(); + } + + pub fn has_if_source_metageneration_not_match(&self) -> bool { + self.if_source_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_source_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_source_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_source_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_source_metageneration_not_match.is_none() { + self.if_source_metageneration_not_match.set_default(); + } + self.if_source_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_source_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_source_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonEnums.Projection projection = 12; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // string source_bucket = 13; + + + pub fn get_source_bucket(&self) -> &str { + &self.source_bucket + } + pub fn clear_source_bucket(&mut self) { + self.source_bucket.clear(); + } + + // Param is passed by value, moved + pub fn set_source_bucket(&mut self, v: ::std::string::String) { + self.source_bucket = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_source_bucket(&mut self) -> &mut ::std::string::String { + &mut self.source_bucket + } + + // Take field + pub fn take_source_bucket(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.source_bucket, ::std::string::String::new()) + } + + // string source_object = 14; + + + pub fn get_source_object(&self) -> &str { + &self.source_object + } + pub fn clear_source_object(&mut self) { + self.source_object.clear(); + } + + // Param is passed by value, moved + pub fn set_source_object(&mut self, v: ::std::string::String) { + self.source_object = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_source_object(&mut self) -> &mut ::std::string::String { + &mut self.source_object + } + + // Take field + pub fn take_source_object(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.source_object, ::std::string::String::new()) + } + + // int64 source_generation = 15; + + + pub fn get_source_generation(&self) -> i64 { + self.source_generation + } + pub fn clear_source_generation(&mut self) { + self.source_generation = 0; + } + + // Param is passed by value, moved + pub fn set_source_generation(&mut self, v: i64) { + self.source_generation = v; + } + + // .google.storage.v1.Object destination = 17; + + + pub fn get_destination(&self) -> &super::storage_resources::Object { + self.destination.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_destination(&mut self) { + self.destination.clear(); + } + + pub fn has_destination(&self) -> bool { + self.destination.is_some() + } + + // Param is passed by value, moved + pub fn set_destination(&mut self, v: super::storage_resources::Object) { + self.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_destination(&mut self) -> &mut super::storage_resources::Object { + if self.destination.is_none() { + self.destination.set_default(); + } + self.destination.as_mut().unwrap() + } + + // Take field + pub fn take_destination(&mut self) -> super::storage_resources::Object { + self.destination.take().unwrap_or_else(|| super::storage_resources::Object::new()) + } + + // string destination_kms_key_name = 20; + + + pub fn get_destination_kms_key_name(&self) -> &str { + &self.destination_kms_key_name + } + pub fn clear_destination_kms_key_name(&mut self) { + self.destination_kms_key_name.clear(); + } + + // Param is passed by value, moved + pub fn set_destination_kms_key_name(&mut self, v: ::std::string::String) { + self.destination_kms_key_name = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_destination_kms_key_name(&mut self) -> &mut ::std::string::String { + &mut self.destination_kms_key_name + } + + // Take field + pub fn take_destination_kms_key_name(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.destination_kms_key_name, ::std::string::String::new()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 18; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 19; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for CopyObjectRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_source_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_source_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_source_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_source_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.destination { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.destination_bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_object)?; + }, + 3 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.destination_predefined_acl, 3, &mut self.unknown_fields)? + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 8 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_generation_match)?; + }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_generation_not_match)?; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_metageneration_match)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_metageneration_not_match)?; + }, + 12 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 12, &mut self.unknown_fields)? + }, + 13 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_bucket)?; + }, + 14 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_object)?; + }, + 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.source_generation = tmp; + }, + 17 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.destination)?; + }, + 20 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_kms_key_name)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 19 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.destination_bucket.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.destination_bucket); + } + if !self.destination_object.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.destination_object); + } + if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(3, self.destination_predefined_acl); + } + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_source_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_source_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_source_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_source_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(12, self.projection); + } + if !self.source_bucket.is_empty() { + my_size += ::protobuf::rt::string_size(13, &self.source_bucket); + } + if !self.source_object.is_empty() { + my_size += ::protobuf::rt::string_size(14, &self.source_object); + } + if self.source_generation != 0 { + my_size += ::protobuf::rt::value_size(15, self.source_generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.destination.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.destination_kms_key_name.is_empty() { + my_size += ::protobuf::rt::string_size(20, &self.destination_kms_key_name); + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.destination_bucket.is_empty() { + os.write_string(1, &self.destination_bucket)?; + } + if !self.destination_object.is_empty() { + os.write_string(2, &self.destination_object)?; + } + if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.destination_predefined_acl))?; + } + if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.if_source_generation_match.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.if_source_generation_not_match.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.if_source_metageneration_match.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.if_source_metageneration_not_match.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.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if !self.source_bucket.is_empty() { + os.write_string(13, &self.source_bucket)?; + } + if !self.source_object.is_empty() { + os.write_string(14, &self.source_object)?; + } + if self.source_generation != 0 { + os.write_int64(15, self.source_generation)?; + } + if let Some(ref v) = self.destination.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.destination_kms_key_name.is_empty() { + os.write_string(20, &self.destination_kms_key_name)?; + } + if let Some(ref v) = self.common_object_request_params.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.common_request_params.as_ref() { + os.write_tag(19, ::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() -> CopyObjectRequest { + CopyObjectRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "destination_bucket", + |m: &CopyObjectRequest| { &m.destination_bucket }, + |m: &mut CopyObjectRequest| { &mut m.destination_bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "destination_object", + |m: &CopyObjectRequest| { &m.destination_object }, + |m: &mut CopyObjectRequest| { &mut m.destination_object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "destination_predefined_acl", + |m: &CopyObjectRequest| { &m.destination_predefined_acl }, + |m: &mut CopyObjectRequest| { &mut m.destination_predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &CopyObjectRequest| { &m.if_generation_match }, + |m: &mut CopyObjectRequest| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_not_match", + |m: &CopyObjectRequest| { &m.if_generation_not_match }, + |m: &mut CopyObjectRequest| { &mut m.if_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &CopyObjectRequest| { &m.if_metageneration_match }, + |m: &mut CopyObjectRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &CopyObjectRequest| { &m.if_metageneration_not_match }, + |m: &mut CopyObjectRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_source_generation_match", + |m: &CopyObjectRequest| { &m.if_source_generation_match }, + |m: &mut CopyObjectRequest| { &mut m.if_source_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_source_generation_not_match", + |m: &CopyObjectRequest| { &m.if_source_generation_not_match }, + |m: &mut CopyObjectRequest| { &mut m.if_source_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_source_metageneration_match", + |m: &CopyObjectRequest| { &m.if_source_metageneration_match }, + |m: &mut CopyObjectRequest| { &mut m.if_source_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_source_metageneration_not_match", + |m: &CopyObjectRequest| { &m.if_source_metageneration_not_match }, + |m: &mut CopyObjectRequest| { &mut m.if_source_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &CopyObjectRequest| { &m.projection }, + |m: &mut CopyObjectRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "source_bucket", + |m: &CopyObjectRequest| { &m.source_bucket }, + |m: &mut CopyObjectRequest| { &mut m.source_bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "source_object", + |m: &CopyObjectRequest| { &m.source_object }, + |m: &mut CopyObjectRequest| { &mut m.source_object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "source_generation", + |m: &CopyObjectRequest| { &m.source_generation }, + |m: &mut CopyObjectRequest| { &mut m.source_generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "destination", + |m: &CopyObjectRequest| { &m.destination }, + |m: &mut CopyObjectRequest| { &mut m.destination }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "destination_kms_key_name", + |m: &CopyObjectRequest| { &m.destination_kms_key_name }, + |m: &mut CopyObjectRequest| { &mut m.destination_kms_key_name }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &CopyObjectRequest| { &m.common_object_request_params }, + |m: &mut CopyObjectRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &CopyObjectRequest| { &m.common_request_params }, + |m: &mut CopyObjectRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CopyObjectRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CopyObjectRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CopyObjectRequest::new) + } +} + +impl ::protobuf::Clear for CopyObjectRequest { + fn clear(&mut self) { + self.destination_bucket.clear(); + self.destination_object.clear(); + self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.if_generation_match.clear(); + self.if_generation_not_match.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.if_source_generation_match.clear(); + self.if_source_generation_not_match.clear(); + self.if_source_metageneration_match.clear(); + self.if_source_metageneration_not_match.clear(); + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.source_bucket.clear(); + self.source_object.clear(); + self.source_generation = 0; + self.destination.clear(); + self.destination_kms_key_name.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CopyObjectRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CopyObjectRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteObjectRequest { + // message fields + pub bucket: ::std::string::String, + pub object: ::std::string::String, + pub upload_id: ::std::string::String, + pub generation: i64, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DeleteObjectRequest { + fn default() -> &'a DeleteObjectRequest { + ::default_instance() + } +} + +impl DeleteObjectRequest { + pub fn new() -> DeleteObjectRequest { + ::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()) + } + + // string upload_id = 3; + + + pub fn get_upload_id(&self) -> &str { + &self.upload_id + } + pub fn clear_upload_id(&mut self) { + self.upload_id.clear(); + } + + // Param is passed by value, moved + pub fn set_upload_id(&mut self, v: ::std::string::String) { + self.upload_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_upload_id(&mut self) -> &mut ::std::string::String { + &mut self.upload_id + } + + // Take field + pub fn take_upload_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.upload_id, ::std::string::String::new()) + } + + // int64 generation = 4; + + + 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; + } + + // .google.protobuf.Int64Value if_generation_match = 5; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_generation_not_match = 6; + + + pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_not_match(&mut self) { + self.if_generation_not_match.clear(); + } + + pub fn has_if_generation_not_match(&self) -> bool { + self.if_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_not_match.is_none() { + self.if_generation_not_match.set_default(); + } + self.if_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 7; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 8; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 10; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 11; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for DeleteObjectRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.upload_id)?; + }, + 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.generation = tmp; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 8 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.upload_id.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.upload_id); + } + if self.generation != 0 { + my_size += ::protobuf::rt::value_size(4, self.generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.object.is_empty() { + os.write_string(2, &self.object)?; + } + if !self.upload_id.is_empty() { + os.write_string(3, &self.upload_id)?; + } + if self.generation != 0 { + os.write_int64(4, self.generation)?; + } + if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.common_object_request_params.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.common_request_params.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> DeleteObjectRequest { + DeleteObjectRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &DeleteObjectRequest| { &m.bucket }, + |m: &mut DeleteObjectRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &DeleteObjectRequest| { &m.object }, + |m: &mut DeleteObjectRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "upload_id", + |m: &DeleteObjectRequest| { &m.upload_id }, + |m: &mut DeleteObjectRequest| { &mut m.upload_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &DeleteObjectRequest| { &m.generation }, + |m: &mut DeleteObjectRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &DeleteObjectRequest| { &m.if_generation_match }, + |m: &mut DeleteObjectRequest| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_not_match", + |m: &DeleteObjectRequest| { &m.if_generation_not_match }, + |m: &mut DeleteObjectRequest| { &mut m.if_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &DeleteObjectRequest| { &m.if_metageneration_match }, + |m: &mut DeleteObjectRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &DeleteObjectRequest| { &m.if_metageneration_not_match }, + |m: &mut DeleteObjectRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &DeleteObjectRequest| { &m.common_object_request_params }, + |m: &mut DeleteObjectRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &DeleteObjectRequest| { &m.common_request_params }, + |m: &mut DeleteObjectRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DeleteObjectRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DeleteObjectRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteObjectRequest::new) + } +} + +impl ::protobuf::Clear for DeleteObjectRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.object.clear(); + self.upload_id.clear(); + self.generation = 0; + self.if_generation_match.clear(); + self.if_generation_not_match.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DeleteObjectRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DeleteObjectRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetObjectMediaRequest { + // message fields + pub bucket: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub read_offset: i64, + pub read_limit: i64, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetObjectMediaRequest { + fn default() -> &'a GetObjectMediaRequest { + ::default_instance() + } +} + +impl GetObjectMediaRequest { + pub fn new() -> GetObjectMediaRequest { + ::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; + } + + // int64 read_offset = 4; + + + pub fn get_read_offset(&self) -> i64 { + self.read_offset + } + pub fn clear_read_offset(&mut self) { + self.read_offset = 0; + } + + // Param is passed by value, moved + pub fn set_read_offset(&mut self, v: i64) { + self.read_offset = v; + } + + // int64 read_limit = 5; + + + pub fn get_read_limit(&self) -> i64 { + self.read_limit + } + pub fn clear_read_limit(&mut self) { + self.read_limit = 0; + } + + // Param is passed by value, moved + pub fn set_read_limit(&mut self, v: i64) { + self.read_limit = v; + } + + // .google.protobuf.Int64Value if_generation_match = 6; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_generation_not_match = 7; + + + pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_not_match(&mut self) { + self.if_generation_not_match.clear(); + } + + pub fn has_if_generation_not_match(&self) -> bool { + self.if_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_not_match.is_none() { + self.if_generation_not_match.set_default(); + } + self.if_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 8; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 9; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 11; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 12; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetObjectMediaRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.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; + }, + 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.read_offset = 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.read_limit = tmp; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; + }, + 8 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 12 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if self.read_offset != 0 { + my_size += ::protobuf::rt::value_size(4, self.read_offset, ::protobuf::wire_format::WireTypeVarint); + } + if self.read_limit != 0 { + my_size += ::protobuf::rt::value_size(5, self.read_limit, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.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)?; + } + if self.read_offset != 0 { + os.write_int64(4, self.read_offset)?; + } + if self.read_limit != 0 { + os.write_int64(5, self.read_limit)?; + } + if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.common_object_request_params.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.common_request_params.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() -> GetObjectMediaRequest { + GetObjectMediaRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetObjectMediaRequest| { &m.bucket }, + |m: &mut GetObjectMediaRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &GetObjectMediaRequest| { &m.object }, + |m: &mut GetObjectMediaRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &GetObjectMediaRequest| { &m.generation }, + |m: &mut GetObjectMediaRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "read_offset", + |m: &GetObjectMediaRequest| { &m.read_offset }, + |m: &mut GetObjectMediaRequest| { &mut m.read_offset }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "read_limit", + |m: &GetObjectMediaRequest| { &m.read_limit }, + |m: &mut GetObjectMediaRequest| { &mut m.read_limit }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &GetObjectMediaRequest| { &m.if_generation_match }, + |m: &mut GetObjectMediaRequest| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_not_match", + |m: &GetObjectMediaRequest| { &m.if_generation_not_match }, + |m: &mut GetObjectMediaRequest| { &mut m.if_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &GetObjectMediaRequest| { &m.if_metageneration_match }, + |m: &mut GetObjectMediaRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &GetObjectMediaRequest| { &m.if_metageneration_not_match }, + |m: &mut GetObjectMediaRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &GetObjectMediaRequest| { &m.common_object_request_params }, + |m: &mut GetObjectMediaRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetObjectMediaRequest| { &m.common_request_params }, + |m: &mut GetObjectMediaRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetObjectMediaRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetObjectMediaRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetObjectMediaRequest::new) + } +} + +impl ::protobuf::Clear for GetObjectMediaRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.object.clear(); + self.generation = 0; + self.read_offset = 0; + self.read_limit = 0; + self.if_generation_match.clear(); + self.if_generation_not_match.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetObjectMediaRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetObjectMediaRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetObjectRequest { + // message fields + pub bucket: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub projection: super::storage_resources::CommonEnums_Projection, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetObjectRequest { + fn default() -> &'a GetObjectRequest { + ::default_instance() + } +} + +impl GetObjectRequest { + pub fn new() -> GetObjectRequest { + ::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; + } + + // .google.protobuf.Int64Value if_generation_match = 4; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_generation_not_match = 5; + + + pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_not_match(&mut self) { + self.if_generation_not_match.clear(); + } + + pub fn has_if_generation_not_match(&self) -> bool { + self.if_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_not_match.is_none() { + self.if_generation_not_match.set_default(); + } + self.if_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 6; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 7; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonEnums.Projection projection = 8; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 10; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 11; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetObjectRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.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; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 8 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 8, &mut self.unknown_fields)? + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(8, self.projection); + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.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)?; + } + if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.common_object_request_params.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.common_request_params.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> GetObjectRequest { + GetObjectRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &GetObjectRequest| { &m.bucket }, + |m: &mut GetObjectRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &GetObjectRequest| { &m.object }, + |m: &mut GetObjectRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &GetObjectRequest| { &m.generation }, + |m: &mut GetObjectRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &GetObjectRequest| { &m.if_generation_match }, + |m: &mut GetObjectRequest| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_not_match", + |m: &GetObjectRequest| { &m.if_generation_not_match }, + |m: &mut GetObjectRequest| { &mut m.if_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &GetObjectRequest| { &m.if_metageneration_match }, + |m: &mut GetObjectRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &GetObjectRequest| { &m.if_metageneration_not_match }, + |m: &mut GetObjectRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &GetObjectRequest| { &m.projection }, + |m: &mut GetObjectRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &GetObjectRequest| { &m.common_object_request_params }, + |m: &mut GetObjectRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetObjectRequest| { &m.common_request_params }, + |m: &mut GetObjectRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetObjectRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetObjectRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetObjectRequest::new) + } +} + +impl ::protobuf::Clear for GetObjectRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.object.clear(); + self.generation = 0; + self.if_generation_match.clear(); + self.if_generation_not_match.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetObjectRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetObjectRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetObjectMediaResponse { + // message fields + pub checksummed_data: ::protobuf::SingularPtrField, + pub object_checksums: ::protobuf::SingularPtrField, + pub content_range: ::protobuf::SingularPtrField, + pub metadata: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetObjectMediaResponse { + fn default() -> &'a GetObjectMediaResponse { + ::default_instance() + } +} + +impl GetObjectMediaResponse { + pub fn new() -> GetObjectMediaResponse { + ::std::default::Default::default() + } + + // .google.storage.v1.ChecksummedData checksummed_data = 1; + + + pub fn get_checksummed_data(&self) -> &super::storage_resources::ChecksummedData { + self.checksummed_data.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_checksummed_data(&mut self) { + self.checksummed_data.clear(); + } + + pub fn has_checksummed_data(&self) -> bool { + self.checksummed_data.is_some() + } + + // Param is passed by value, moved + pub fn set_checksummed_data(&mut self, v: super::storage_resources::ChecksummedData) { + self.checksummed_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_checksummed_data(&mut self) -> &mut super::storage_resources::ChecksummedData { + if self.checksummed_data.is_none() { + self.checksummed_data.set_default(); + } + self.checksummed_data.as_mut().unwrap() + } + + // Take field + pub fn take_checksummed_data(&mut self) -> super::storage_resources::ChecksummedData { + self.checksummed_data.take().unwrap_or_else(|| super::storage_resources::ChecksummedData::new()) + } + + // .google.storage.v1.ObjectChecksums object_checksums = 2; + + + pub fn get_object_checksums(&self) -> &super::storage_resources::ObjectChecksums { + self.object_checksums.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_checksums(&mut self) { + self.object_checksums.clear(); + } + + pub fn has_object_checksums(&self) -> bool { + self.object_checksums.is_some() + } + + // Param is passed by value, moved + pub fn set_object_checksums(&mut self, v: super::storage_resources::ObjectChecksums) { + self.object_checksums = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_object_checksums(&mut self) -> &mut super::storage_resources::ObjectChecksums { + if self.object_checksums.is_none() { + self.object_checksums.set_default(); + } + self.object_checksums.as_mut().unwrap() + } + + // Take field + pub fn take_object_checksums(&mut self) -> super::storage_resources::ObjectChecksums { + self.object_checksums.take().unwrap_or_else(|| super::storage_resources::ObjectChecksums::new()) + } + + // .google.storage.v1.ContentRange content_range = 3; + + + pub fn get_content_range(&self) -> &super::storage_resources::ContentRange { + self.content_range.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_content_range(&mut self) { + self.content_range.clear(); + } + + pub fn has_content_range(&self) -> bool { + self.content_range.is_some() + } + + // Param is passed by value, moved + pub fn set_content_range(&mut self, v: super::storage_resources::ContentRange) { + self.content_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_content_range(&mut self) -> &mut super::storage_resources::ContentRange { + if self.content_range.is_none() { + self.content_range.set_default(); + } + self.content_range.as_mut().unwrap() + } + + // Take field + pub fn take_content_range(&mut self) -> super::storage_resources::ContentRange { + self.content_range.take().unwrap_or_else(|| super::storage_resources::ContentRange::new()) + } + + // .google.storage.v1.Object metadata = 4; + + + pub fn get_metadata(&self) -> &super::storage_resources::Object { + 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: super::storage_resources::Object) { + 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 super::storage_resources::Object { + if self.metadata.is_none() { + self.metadata.set_default(); + } + self.metadata.as_mut().unwrap() + } + + // Take field + pub fn take_metadata(&mut self) -> super::storage_resources::Object { + self.metadata.take().unwrap_or_else(|| super::storage_resources::Object::new()) + } +} + +impl ::protobuf::Message for GetObjectMediaResponse { + fn is_initialized(&self) -> bool { + for v in &self.checksummed_data { + if !v.is_initialized() { + return false; + } + }; + for v in &self.object_checksums { + if !v.is_initialized() { + return false; + } + }; + for v in &self.content_range { + 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_message_into(wire_type, is, &mut self.checksummed_data)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_checksums)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.content_range)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(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 let Some(ref v) = self.checksummed_data.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.object_checksums.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.content_range.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.metadata.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.checksummed_data.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.object_checksums.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.content_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)?; + } + if let Some(ref v) = self.metadata.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() -> GetObjectMediaResponse { + GetObjectMediaResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "checksummed_data", + |m: &GetObjectMediaResponse| { &m.checksummed_data }, + |m: &mut GetObjectMediaResponse| { &mut m.checksummed_data }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_checksums", + |m: &GetObjectMediaResponse| { &m.object_checksums }, + |m: &mut GetObjectMediaResponse| { &mut m.object_checksums }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "content_range", + |m: &GetObjectMediaResponse| { &m.content_range }, + |m: &mut GetObjectMediaResponse| { &mut m.content_range }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "metadata", + |m: &GetObjectMediaResponse| { &m.metadata }, + |m: &mut GetObjectMediaResponse| { &mut m.metadata }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetObjectMediaResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetObjectMediaResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetObjectMediaResponse::new) + } +} + +impl ::protobuf::Clear for GetObjectMediaResponse { + fn clear(&mut self) { + self.checksummed_data.clear(); + self.object_checksums.clear(); + self.content_range.clear(); + self.metadata.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetObjectMediaResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetObjectMediaResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct InsertObjectSpec { + // message fields + pub resource: ::protobuf::SingularPtrField, + pub predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub projection: super::storage_resources::CommonEnums_Projection, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a InsertObjectSpec { + fn default() -> &'a InsertObjectSpec { + ::default_instance() + } +} + +impl InsertObjectSpec { + pub fn new() -> InsertObjectSpec { + ::std::default::Default::default() + } + + // .google.storage.v1.Object resource = 1; + + + pub fn get_resource(&self) -> &super::storage_resources::Object { + self.resource.as_ref().unwrap_or_else(|| ::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: super::storage_resources::Object) { + 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 super::storage_resources::Object { + if self.resource.is_none() { + self.resource.set_default(); + } + self.resource.as_mut().unwrap() + } + + // Take field + pub fn take_resource(&mut self) -> super::storage_resources::Object { + self.resource.take().unwrap_or_else(|| super::storage_resources::Object::new()) + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_acl = 2; + + + pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.predefined_acl + } + pub fn clear_predefined_acl(&mut self) { + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.predefined_acl = v; + } + + // .google.protobuf.Int64Value if_generation_match = 3; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_generation_not_match = 4; + + + pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_not_match(&mut self) { + self.if_generation_not_match.clear(); + } + + pub fn has_if_generation_not_match(&self) -> bool { + self.if_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_not_match.is_none() { + self.if_generation_not_match.set_default(); + } + self.if_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 5; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 6; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonEnums.Projection projection = 7; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } +} + +impl ::protobuf::Message for InsertObjectSpec { + fn is_initialized(&self) -> bool { + for v in &self.resource { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::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.resource)?; + }, + 2 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 2, &mut self.unknown_fields)? + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 7 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 7, &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 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.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(2, self.predefined_acl); + } + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(7, self.projection); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_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.resource.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; + } + if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> InsertObjectSpec { + InsertObjectSpec::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "resource", + |m: &InsertObjectSpec| { &m.resource }, + |m: &mut InsertObjectSpec| { &mut m.resource }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "predefined_acl", + |m: &InsertObjectSpec| { &m.predefined_acl }, + |m: &mut InsertObjectSpec| { &mut m.predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &InsertObjectSpec| { &m.if_generation_match }, + |m: &mut InsertObjectSpec| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_not_match", + |m: &InsertObjectSpec| { &m.if_generation_not_match }, + |m: &mut InsertObjectSpec| { &mut m.if_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &InsertObjectSpec| { &m.if_metageneration_match }, + |m: &mut InsertObjectSpec| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &InsertObjectSpec| { &m.if_metageneration_not_match }, + |m: &mut InsertObjectSpec| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &InsertObjectSpec| { &m.projection }, + |m: &mut InsertObjectSpec| { &mut m.projection }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "InsertObjectSpec", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static InsertObjectSpec { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(InsertObjectSpec::new) + } +} + +impl ::protobuf::Clear for InsertObjectSpec { + fn clear(&mut self) { + self.resource.clear(); + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.if_generation_match.clear(); + self.if_generation_not_match.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for InsertObjectSpec { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for InsertObjectSpec { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct InsertObjectRequest { + // message fields + pub write_offset: i64, + pub object_checksums: ::protobuf::SingularPtrField, + pub finish_write: bool, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // message oneof groups + pub first_message: ::std::option::Option, + pub data: ::std::option::Option, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a InsertObjectRequest { + fn default() -> &'a InsertObjectRequest { + ::default_instance() + } +} + +#[derive(Clone,PartialEq,Debug)] +pub enum InsertObjectRequest_oneof_first_message { + upload_id(::std::string::String), + insert_object_spec(InsertObjectSpec), +} + +#[derive(Clone,PartialEq,Debug)] +pub enum InsertObjectRequest_oneof_data { + checksummed_data(super::storage_resources::ChecksummedData), + reference(GetObjectMediaRequest), +} + +impl InsertObjectRequest { + pub fn new() -> InsertObjectRequest { + ::std::default::Default::default() + } + + // string upload_id = 1; + + + pub fn get_upload_id(&self) -> &str { + match self.first_message { + ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(ref v)) => v, + _ => "", + } + } + pub fn clear_upload_id(&mut self) { + self.first_message = ::std::option::Option::None; + } + + pub fn has_upload_id(&self) -> bool { + match self.first_message { + ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_upload_id(&mut self, v: ::std::string::String) { + self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(v)) + } + + // Mutable pointer to the field. + pub fn mut_upload_id(&mut self) -> &mut ::std::string::String { + if let ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(_)) = self.first_message { + } else { + self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(::std::string::String::new())); + } + match self.first_message { + ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_upload_id(&mut self) -> ::std::string::String { + if self.has_upload_id() { + match self.first_message.take() { + ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_id(v)) => v, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // .google.storage.v1.InsertObjectSpec insert_object_spec = 2; + + + pub fn get_insert_object_spec(&self) -> &InsertObjectSpec { + match self.first_message { + ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(ref v)) => v, + _ => ::default_instance(), + } + } + pub fn clear_insert_object_spec(&mut self) { + self.first_message = ::std::option::Option::None; + } + + pub fn has_insert_object_spec(&self) -> bool { + match self.first_message { + ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_insert_object_spec(&mut self, v: InsertObjectSpec) { + self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(v)) + } + + // Mutable pointer to the field. + pub fn mut_insert_object_spec(&mut self) -> &mut InsertObjectSpec { + if let ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(_)) = self.first_message { + } else { + self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(InsertObjectSpec::new())); + } + match self.first_message { + ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_insert_object_spec(&mut self) -> InsertObjectSpec { + if self.has_insert_object_spec() { + match self.first_message.take() { + ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(v)) => v, + _ => panic!(), + } + } else { + InsertObjectSpec::new() + } + } + + // int64 write_offset = 3; + + + pub fn get_write_offset(&self) -> i64 { + self.write_offset + } + pub fn clear_write_offset(&mut self) { + self.write_offset = 0; + } + + // Param is passed by value, moved + pub fn set_write_offset(&mut self, v: i64) { + self.write_offset = v; + } + + // .google.storage.v1.ChecksummedData checksummed_data = 4; + + + pub fn get_checksummed_data(&self) -> &super::storage_resources::ChecksummedData { + match self.data { + ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(ref v)) => v, + _ => ::default_instance(), + } + } + pub fn clear_checksummed_data(&mut self) { + self.data = ::std::option::Option::None; + } + + pub fn has_checksummed_data(&self) -> bool { + match self.data { + ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_checksummed_data(&mut self, v: super::storage_resources::ChecksummedData) { + self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(v)) + } + + // Mutable pointer to the field. + pub fn mut_checksummed_data(&mut self) -> &mut super::storage_resources::ChecksummedData { + if let ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(_)) = self.data { + } else { + self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(super::storage_resources::ChecksummedData::new())); + } + match self.data { + ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_checksummed_data(&mut self) -> super::storage_resources::ChecksummedData { + if self.has_checksummed_data() { + match self.data.take() { + ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(v)) => v, + _ => panic!(), + } + } else { + super::storage_resources::ChecksummedData::new() + } + } + + // .google.storage.v1.GetObjectMediaRequest reference = 5; + + + pub fn get_reference(&self) -> &GetObjectMediaRequest { + match self.data { + ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(ref v)) => v, + _ => ::default_instance(), + } + } + pub fn clear_reference(&mut self) { + self.data = ::std::option::Option::None; + } + + pub fn has_reference(&self) -> bool { + match self.data { + ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_reference(&mut self, v: GetObjectMediaRequest) { + self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(v)) + } + + // Mutable pointer to the field. + pub fn mut_reference(&mut self) -> &mut GetObjectMediaRequest { + if let ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(_)) = self.data { + } else { + self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(GetObjectMediaRequest::new())); + } + match self.data { + ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_reference(&mut self) -> GetObjectMediaRequest { + if self.has_reference() { + match self.data.take() { + ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(v)) => v, + _ => panic!(), + } + } else { + GetObjectMediaRequest::new() + } + } + + // .google.storage.v1.ObjectChecksums object_checksums = 6; + + + pub fn get_object_checksums(&self) -> &super::storage_resources::ObjectChecksums { + self.object_checksums.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object_checksums(&mut self) { + self.object_checksums.clear(); + } + + pub fn has_object_checksums(&self) -> bool { + self.object_checksums.is_some() + } + + // Param is passed by value, moved + pub fn set_object_checksums(&mut self, v: super::storage_resources::ObjectChecksums) { + self.object_checksums = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_object_checksums(&mut self) -> &mut super::storage_resources::ObjectChecksums { + if self.object_checksums.is_none() { + self.object_checksums.set_default(); + } + self.object_checksums.as_mut().unwrap() + } + + // Take field + pub fn take_object_checksums(&mut self) -> super::storage_resources::ObjectChecksums { + self.object_checksums.take().unwrap_or_else(|| super::storage_resources::ObjectChecksums::new()) + } + + // bool finish_write = 7; + + + pub fn get_finish_write(&self) -> bool { + self.finish_write + } + pub fn clear_finish_write(&mut self) { + self.finish_write = false; + } + + // Param is passed by value, moved + pub fn set_finish_write(&mut self, v: bool) { + self.finish_write = v; + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 8; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 9; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for InsertObjectRequest { + fn is_initialized(&self) -> bool { + if let Some(InsertObjectRequest_oneof_first_message::insert_object_spec(ref v)) = self.first_message { + if !v.is_initialized() { + return false; + } + } + if let Some(InsertObjectRequest_oneof_data::checksummed_data(ref v)) = self.data { + if !v.is_initialized() { + return false; + } + } + if let Some(InsertObjectRequest_oneof_data::reference(ref v)) = self.data { + if !v.is_initialized() { + return false; + } + } + for v in &self.object_checksums { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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 => { + if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { + return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + } + self.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::upload_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.first_message = ::std::option::Option::Some(InsertObjectRequest_oneof_first_message::insert_object_spec(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_int64()?; + self.write_offset = tmp; + }, + 4 => { + if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { + return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + } + self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::checksummed_data(is.read_message()?)); + }, + 5 => { + if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { + return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + } + self.data = ::std::option::Option::Some(InsertObjectRequest_oneof_data::reference(is.read_message()?)); + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_checksums)?; + }, + 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.finish_write = tmp; + }, + 8 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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_offset != 0 { + my_size += ::protobuf::rt::value_size(3, self.write_offset, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.object_checksums.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.finish_write != false { + my_size += 2; + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.first_message { + match v { + &InsertObjectRequest_oneof_first_message::upload_id(ref v) => { + my_size += ::protobuf::rt::string_size(1, &v); + }, + &InsertObjectRequest_oneof_first_message::insert_object_spec(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.data { + match v { + &InsertObjectRequest_oneof_data::checksummed_data(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }, + &InsertObjectRequest_oneof_data::reference(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.write_offset != 0 { + os.write_int64(3, self.write_offset)?; + } + if let Some(ref v) = self.object_checksums.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.finish_write != false { + os.write_bool(7, self.finish_write)?; + } + if let Some(ref v) = self.common_object_request_params.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.common_request_params.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.first_message { + match v { + &InsertObjectRequest_oneof_first_message::upload_id(ref v) => { + os.write_string(1, v)?; + }, + &InsertObjectRequest_oneof_first_message::insert_object_spec(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 let ::std::option::Option::Some(ref v) = self.data { + match v { + &InsertObjectRequest_oneof_data::checksummed_data(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)?; + }, + &InsertObjectRequest_oneof_data::reference(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() -> InsertObjectRequest { + InsertObjectRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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::<_>( + "upload_id", + InsertObjectRequest::has_upload_id, + InsertObjectRequest::get_upload_id, + )); + fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, InsertObjectSpec>( + "insert_object_spec", + InsertObjectRequest::has_insert_object_spec, + InsertObjectRequest::get_insert_object_spec, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "write_offset", + |m: &InsertObjectRequest| { &m.write_offset }, + |m: &mut InsertObjectRequest| { &mut m.write_offset }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::storage_resources::ChecksummedData>( + "checksummed_data", + InsertObjectRequest::has_checksummed_data, + InsertObjectRequest::get_checksummed_data, + )); + fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, GetObjectMediaRequest>( + "reference", + InsertObjectRequest::has_reference, + InsertObjectRequest::get_reference, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object_checksums", + |m: &InsertObjectRequest| { &m.object_checksums }, + |m: &mut InsertObjectRequest| { &mut m.object_checksums }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "finish_write", + |m: &InsertObjectRequest| { &m.finish_write }, + |m: &mut InsertObjectRequest| { &mut m.finish_write }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &InsertObjectRequest| { &m.common_object_request_params }, + |m: &mut InsertObjectRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &InsertObjectRequest| { &m.common_request_params }, + |m: &mut InsertObjectRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "InsertObjectRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static InsertObjectRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(InsertObjectRequest::new) + } +} + +impl ::protobuf::Clear for InsertObjectRequest { + fn clear(&mut self) { + self.first_message = ::std::option::Option::None; + self.first_message = ::std::option::Option::None; + self.write_offset = 0; + self.data = ::std::option::Option::None; + self.data = ::std::option::Option::None; + self.object_checksums.clear(); + self.finish_write = false; + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for InsertObjectRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for InsertObjectRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListObjectsRequest { + // message fields + pub bucket: ::std::string::String, + pub delimiter: ::std::string::String, + pub include_trailing_delimiter: bool, + pub max_results: i32, + pub page_token: ::std::string::String, + pub prefix: ::std::string::String, + pub projection: super::storage_resources::CommonEnums_Projection, + pub versions: bool, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListObjectsRequest { + fn default() -> &'a ListObjectsRequest { + ::default_instance() + } +} + +impl ListObjectsRequest { + pub fn new() -> ListObjectsRequest { + ::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 delimiter = 2; + + + pub fn get_delimiter(&self) -> &str { + &self.delimiter + } + pub fn clear_delimiter(&mut self) { + self.delimiter.clear(); + } + + // Param is passed by value, moved + pub fn set_delimiter(&mut self, v: ::std::string::String) { + self.delimiter = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_delimiter(&mut self) -> &mut ::std::string::String { + &mut self.delimiter + } + + // Take field + pub fn take_delimiter(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.delimiter, ::std::string::String::new()) + } + + // bool include_trailing_delimiter = 3; + + + pub fn get_include_trailing_delimiter(&self) -> bool { + self.include_trailing_delimiter + } + pub fn clear_include_trailing_delimiter(&mut self) { + self.include_trailing_delimiter = false; + } + + // Param is passed by value, moved + pub fn set_include_trailing_delimiter(&mut self, v: bool) { + self.include_trailing_delimiter = v; + } + + // int32 max_results = 4; + + + pub fn get_max_results(&self) -> i32 { + self.max_results + } + pub fn clear_max_results(&mut self) { + self.max_results = 0; + } + + // Param is passed by value, moved + pub fn set_max_results(&mut self, v: i32) { + self.max_results = 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 prefix = 6; + + + pub fn get_prefix(&self) -> &str { + &self.prefix + } + pub fn clear_prefix(&mut self) { + self.prefix.clear(); + } + + // Param is passed by value, moved + pub fn set_prefix(&mut self, v: ::std::string::String) { + self.prefix = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_prefix(&mut self) -> &mut ::std::string::String { + &mut self.prefix + } + + // Take field + pub fn take_prefix(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.prefix, ::std::string::String::new()) + } + + // .google.storage.v1.CommonEnums.Projection projection = 7; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // bool versions = 9; + + + pub fn get_versions(&self) -> bool { + self.versions + } + pub fn clear_versions(&mut self) { + self.versions = false; + } + + // Param is passed by value, moved + pub fn set_versions(&mut self, v: bool) { + self.versions = v; + } + + // .google.storage.v1.CommonRequestParams common_request_params = 10; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ListObjectsRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.delimiter)?; + }, + 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.include_trailing_delimiter = 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.max_results = 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.prefix)?; + }, + 7 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 7, &mut self.unknown_fields)? + }, + 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.versions = tmp; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.delimiter.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.delimiter); + } + if self.include_trailing_delimiter != false { + my_size += 2; + } + if self.max_results != 0 { + my_size += ::protobuf::rt::value_size(4, self.max_results, ::protobuf::wire_format::WireTypeVarint); + } + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.page_token); + } + if !self.prefix.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.prefix); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(7, self.projection); + } + if self.versions != false { + my_size += 2; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if !self.delimiter.is_empty() { + os.write_string(2, &self.delimiter)?; + } + if self.include_trailing_delimiter != false { + os.write_bool(3, self.include_trailing_delimiter)?; + } + if self.max_results != 0 { + os.write_int32(4, self.max_results)?; + } + if !self.page_token.is_empty() { + os.write_string(5, &self.page_token)?; + } + if !self.prefix.is_empty() { + os.write_string(6, &self.prefix)?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if self.versions != false { + os.write_bool(9, self.versions)?; + } + if let Some(ref v) = self.common_request_params.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() -> ListObjectsRequest { + ListObjectsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ListObjectsRequest| { &m.bucket }, + |m: &mut ListObjectsRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "delimiter", + |m: &ListObjectsRequest| { &m.delimiter }, + |m: &mut ListObjectsRequest| { &mut m.delimiter }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "include_trailing_delimiter", + |m: &ListObjectsRequest| { &m.include_trailing_delimiter }, + |m: &mut ListObjectsRequest| { &mut m.include_trailing_delimiter }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + "max_results", + |m: &ListObjectsRequest| { &m.max_results }, + |m: &mut ListObjectsRequest| { &mut m.max_results }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "page_token", + |m: &ListObjectsRequest| { &m.page_token }, + |m: &mut ListObjectsRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "prefix", + |m: &ListObjectsRequest| { &m.prefix }, + |m: &mut ListObjectsRequest| { &mut m.prefix }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &ListObjectsRequest| { &m.projection }, + |m: &mut ListObjectsRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "versions", + |m: &ListObjectsRequest| { &m.versions }, + |m: &mut ListObjectsRequest| { &mut m.versions }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ListObjectsRequest| { &m.common_request_params }, + |m: &mut ListObjectsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListObjectsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListObjectsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListObjectsRequest::new) + } +} + +impl ::protobuf::Clear for ListObjectsRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.delimiter.clear(); + self.include_trailing_delimiter = false; + self.max_results = 0; + self.page_token.clear(); + self.prefix.clear(); + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.versions = false; + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListObjectsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListObjectsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct QueryWriteStatusRequest { + // message fields + pub upload_id: ::std::string::String, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a QueryWriteStatusRequest { + fn default() -> &'a QueryWriteStatusRequest { + ::default_instance() + } +} + +impl QueryWriteStatusRequest { + pub fn new() -> QueryWriteStatusRequest { + ::std::default::Default::default() + } + + // string upload_id = 1; + + + pub fn get_upload_id(&self) -> &str { + &self.upload_id + } + pub fn clear_upload_id(&mut self) { + self.upload_id.clear(); + } + + // Param is passed by value, moved + pub fn set_upload_id(&mut self, v: ::std::string::String) { + self.upload_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_upload_id(&mut self) -> &mut ::std::string::String { + &mut self.upload_id + } + + // Take field + pub fn take_upload_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.upload_id, ::std::string::String::new()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 2; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 3; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for QueryWriteStatusRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.upload_id)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.upload_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.upload_id); + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.upload_id.is_empty() { + os.write_string(1, &self.upload_id)?; + } + if let Some(ref v) = self.common_object_request_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)?; + } + if let Some(ref v) = self.common_request_params.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() -> QueryWriteStatusRequest { + QueryWriteStatusRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "upload_id", + |m: &QueryWriteStatusRequest| { &m.upload_id }, + |m: &mut QueryWriteStatusRequest| { &mut m.upload_id }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &QueryWriteStatusRequest| { &m.common_object_request_params }, + |m: &mut QueryWriteStatusRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &QueryWriteStatusRequest| { &m.common_request_params }, + |m: &mut QueryWriteStatusRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "QueryWriteStatusRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static QueryWriteStatusRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(QueryWriteStatusRequest::new) + } +} + +impl ::protobuf::Clear for QueryWriteStatusRequest { + fn clear(&mut self) { + self.upload_id.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for QueryWriteStatusRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for QueryWriteStatusRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct QueryWriteStatusResponse { + // message fields + pub committed_size: i64, + pub complete: bool, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a QueryWriteStatusResponse { + fn default() -> &'a QueryWriteStatusResponse { + ::default_instance() + } +} + +impl QueryWriteStatusResponse { + pub fn new() -> QueryWriteStatusResponse { + ::std::default::Default::default() + } + + // int64 committed_size = 1; + + + pub fn get_committed_size(&self) -> i64 { + self.committed_size + } + pub fn clear_committed_size(&mut self) { + self.committed_size = 0; + } + + // Param is passed by value, moved + pub fn set_committed_size(&mut self, v: i64) { + self.committed_size = v; + } + + // bool complete = 2; + + + pub fn get_complete(&self) -> bool { + self.complete + } + pub fn clear_complete(&mut self) { + self.complete = false; + } + + // Param is passed by value, moved + pub fn set_complete(&mut self, v: bool) { + self.complete = v; + } +} + +impl ::protobuf::Message for QueryWriteStatusResponse { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&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.committed_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_bool()?; + self.complete = 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.committed_size != 0 { + my_size += ::protobuf::rt::value_size(1, self.committed_size, ::protobuf::wire_format::WireTypeVarint); + } + if self.complete != 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.committed_size != 0 { + os.write_int64(1, self.committed_size)?; + } + if self.complete != false { + os.write_bool(2, self.complete)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> QueryWriteStatusResponse { + QueryWriteStatusResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( + "committed_size", + |m: &QueryWriteStatusResponse| { &m.committed_size }, + |m: &mut QueryWriteStatusResponse| { &mut m.committed_size }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "complete", + |m: &QueryWriteStatusResponse| { &m.complete }, + |m: &mut QueryWriteStatusResponse| { &mut m.complete }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "QueryWriteStatusResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static QueryWriteStatusResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(QueryWriteStatusResponse::new) + } +} + +impl ::protobuf::Clear for QueryWriteStatusResponse { + fn clear(&mut self) { + self.committed_size = 0; + self.complete = false; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for QueryWriteStatusResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for QueryWriteStatusResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct RewriteObjectRequest { + // message fields + pub destination_bucket: ::std::string::String, + pub destination_object: ::std::string::String, + pub destination_kms_key_name: ::std::string::String, + pub destination_predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_source_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_source_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_source_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_source_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub max_bytes_rewritten_per_call: i64, + pub projection: super::storage_resources::CommonEnums_Projection, + pub rewrite_token: ::std::string::String, + pub source_bucket: ::std::string::String, + pub source_object: ::std::string::String, + pub source_generation: i64, + pub object: ::protobuf::SingularPtrField, + pub copy_source_encryption_algorithm: ::std::string::String, + pub copy_source_encryption_key: ::std::string::String, + pub copy_source_encryption_key_sha256: ::std::string::String, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RewriteObjectRequest { + fn default() -> &'a RewriteObjectRequest { + ::default_instance() + } +} + +impl RewriteObjectRequest { + pub fn new() -> RewriteObjectRequest { + ::std::default::Default::default() + } + + // string destination_bucket = 1; + + + pub fn get_destination_bucket(&self) -> &str { + &self.destination_bucket + } + pub fn clear_destination_bucket(&mut self) { + self.destination_bucket.clear(); + } + + // Param is passed by value, moved + pub fn set_destination_bucket(&mut self, v: ::std::string::String) { + self.destination_bucket = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_destination_bucket(&mut self) -> &mut ::std::string::String { + &mut self.destination_bucket + } + + // Take field + pub fn take_destination_bucket(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.destination_bucket, ::std::string::String::new()) + } + + // string destination_object = 2; + + + pub fn get_destination_object(&self) -> &str { + &self.destination_object + } + pub fn clear_destination_object(&mut self) { + self.destination_object.clear(); + } + + // Param is passed by value, moved + pub fn set_destination_object(&mut self, v: ::std::string::String) { + self.destination_object = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_destination_object(&mut self) -> &mut ::std::string::String { + &mut self.destination_object + } + + // Take field + pub fn take_destination_object(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.destination_object, ::std::string::String::new()) + } + + // string destination_kms_key_name = 3; + + + pub fn get_destination_kms_key_name(&self) -> &str { + &self.destination_kms_key_name + } + pub fn clear_destination_kms_key_name(&mut self) { + self.destination_kms_key_name.clear(); + } + + // Param is passed by value, moved + pub fn set_destination_kms_key_name(&mut self, v: ::std::string::String) { + self.destination_kms_key_name = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_destination_kms_key_name(&mut self) -> &mut ::std::string::String { + &mut self.destination_kms_key_name + } + + // Take field + pub fn take_destination_kms_key_name(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.destination_kms_key_name, ::std::string::String::new()) + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl destination_predefined_acl = 4; + + + pub fn get_destination_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.destination_predefined_acl + } + pub fn clear_destination_predefined_acl(&mut self) { + self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_destination_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.destination_predefined_acl = v; + } + + // .google.protobuf.Int64Value if_generation_match = 5; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_generation_not_match = 6; + + + pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_not_match(&mut self) { + self.if_generation_not_match.clear(); + } + + pub fn has_if_generation_not_match(&self) -> bool { + self.if_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_not_match.is_none() { + self.if_generation_not_match.set_default(); + } + self.if_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 7; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 8; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_source_generation_match = 9; + + + pub fn get_if_source_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_source_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_source_generation_match(&mut self) { + self.if_source_generation_match.clear(); + } + + pub fn has_if_source_generation_match(&self) -> bool { + self.if_source_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_source_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_source_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_source_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_source_generation_match.is_none() { + self.if_source_generation_match.set_default(); + } + self.if_source_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_source_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_source_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_source_generation_not_match = 10; + + + pub fn get_if_source_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_source_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_source_generation_not_match(&mut self) { + self.if_source_generation_not_match.clear(); + } + + pub fn has_if_source_generation_not_match(&self) -> bool { + self.if_source_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_source_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_source_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_source_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_source_generation_not_match.is_none() { + self.if_source_generation_not_match.set_default(); + } + self.if_source_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_source_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_source_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_source_metageneration_match = 11; + + + pub fn get_if_source_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_source_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_source_metageneration_match(&mut self) { + self.if_source_metageneration_match.clear(); + } + + pub fn has_if_source_metageneration_match(&self) -> bool { + self.if_source_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_source_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_source_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_source_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_source_metageneration_match.is_none() { + self.if_source_metageneration_match.set_default(); + } + self.if_source_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_source_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_source_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_source_metageneration_not_match = 12; + + + pub fn get_if_source_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_source_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_source_metageneration_not_match(&mut self) { + self.if_source_metageneration_not_match.clear(); + } + + pub fn has_if_source_metageneration_not_match(&self) -> bool { + self.if_source_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_source_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_source_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_source_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_source_metageneration_not_match.is_none() { + self.if_source_metageneration_not_match.set_default(); + } + self.if_source_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_source_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_source_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // int64 max_bytes_rewritten_per_call = 13; + + + pub fn get_max_bytes_rewritten_per_call(&self) -> i64 { + self.max_bytes_rewritten_per_call + } + pub fn clear_max_bytes_rewritten_per_call(&mut self) { + self.max_bytes_rewritten_per_call = 0; + } + + // Param is passed by value, moved + pub fn set_max_bytes_rewritten_per_call(&mut self, v: i64) { + self.max_bytes_rewritten_per_call = v; + } + + // .google.storage.v1.CommonEnums.Projection projection = 14; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // string rewrite_token = 15; + + + pub fn get_rewrite_token(&self) -> &str { + &self.rewrite_token + } + pub fn clear_rewrite_token(&mut self) { + self.rewrite_token.clear(); + } + + // Param is passed by value, moved + pub fn set_rewrite_token(&mut self, v: ::std::string::String) { + self.rewrite_token = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_rewrite_token(&mut self) -> &mut ::std::string::String { + &mut self.rewrite_token + } + + // Take field + pub fn take_rewrite_token(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.rewrite_token, ::std::string::String::new()) + } + + // string source_bucket = 16; + + + pub fn get_source_bucket(&self) -> &str { + &self.source_bucket + } + pub fn clear_source_bucket(&mut self) { + self.source_bucket.clear(); + } + + // Param is passed by value, moved + pub fn set_source_bucket(&mut self, v: ::std::string::String) { + self.source_bucket = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_source_bucket(&mut self) -> &mut ::std::string::String { + &mut self.source_bucket + } + + // Take field + pub fn take_source_bucket(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.source_bucket, ::std::string::String::new()) + } + + // string source_object = 17; + + + pub fn get_source_object(&self) -> &str { + &self.source_object + } + pub fn clear_source_object(&mut self) { + self.source_object.clear(); + } + + // Param is passed by value, moved + pub fn set_source_object(&mut self, v: ::std::string::String) { + self.source_object = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_source_object(&mut self) -> &mut ::std::string::String { + &mut self.source_object + } + + // Take field + pub fn take_source_object(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.source_object, ::std::string::String::new()) + } + + // int64 source_generation = 18; + + + pub fn get_source_generation(&self) -> i64 { + self.source_generation + } + pub fn clear_source_generation(&mut self) { + self.source_generation = 0; + } + + // Param is passed by value, moved + pub fn set_source_generation(&mut self, v: i64) { + self.source_generation = v; + } + + // .google.storage.v1.Object object = 20; + + + pub fn get_object(&self) -> &super::storage_resources::Object { + self.object.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_object(&mut self) { + self.object.clear(); + } + + pub fn has_object(&self) -> bool { + self.object.is_some() + } + + // Param is passed by value, moved + pub fn set_object(&mut self, v: super::storage_resources::Object) { + self.object = ::protobuf::SingularPtrField::some(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 super::storage_resources::Object { + if self.object.is_none() { + self.object.set_default(); + } + self.object.as_mut().unwrap() + } + + // Take field + pub fn take_object(&mut self) -> super::storage_resources::Object { + self.object.take().unwrap_or_else(|| super::storage_resources::Object::new()) + } + + // string copy_source_encryption_algorithm = 21; + + + pub fn get_copy_source_encryption_algorithm(&self) -> &str { + &self.copy_source_encryption_algorithm + } + pub fn clear_copy_source_encryption_algorithm(&mut self) { + self.copy_source_encryption_algorithm.clear(); + } + + // Param is passed by value, moved + pub fn set_copy_source_encryption_algorithm(&mut self, v: ::std::string::String) { + self.copy_source_encryption_algorithm = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_copy_source_encryption_algorithm(&mut self) -> &mut ::std::string::String { + &mut self.copy_source_encryption_algorithm + } + + // Take field + pub fn take_copy_source_encryption_algorithm(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.copy_source_encryption_algorithm, ::std::string::String::new()) + } + + // string copy_source_encryption_key = 22; + + + pub fn get_copy_source_encryption_key(&self) -> &str { + &self.copy_source_encryption_key + } + pub fn clear_copy_source_encryption_key(&mut self) { + self.copy_source_encryption_key.clear(); + } + + // Param is passed by value, moved + pub fn set_copy_source_encryption_key(&mut self, v: ::std::string::String) { + self.copy_source_encryption_key = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_copy_source_encryption_key(&mut self) -> &mut ::std::string::String { + &mut self.copy_source_encryption_key + } + + // Take field + pub fn take_copy_source_encryption_key(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.copy_source_encryption_key, ::std::string::String::new()) + } + + // string copy_source_encryption_key_sha256 = 23; + + + pub fn get_copy_source_encryption_key_sha256(&self) -> &str { + &self.copy_source_encryption_key_sha256 + } + pub fn clear_copy_source_encryption_key_sha256(&mut self) { + self.copy_source_encryption_key_sha256.clear(); + } + + // Param is passed by value, moved + pub fn set_copy_source_encryption_key_sha256(&mut self, v: ::std::string::String) { + self.copy_source_encryption_key_sha256 = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_copy_source_encryption_key_sha256(&mut self) -> &mut ::std::string::String { + &mut self.copy_source_encryption_key_sha256 + } + + // Take field + pub fn take_copy_source_encryption_key_sha256(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.copy_source_encryption_key_sha256, ::std::string::String::new()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 24; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 25; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for RewriteObjectRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_source_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_source_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_source_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_source_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.object { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.destination_bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_object)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_kms_key_name)?; + }, + 4 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.destination_predefined_acl, 4, &mut self.unknown_fields)? + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 8 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 9 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_generation_match)?; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_generation_not_match)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_metageneration_match)?; + }, + 12 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_source_metageneration_not_match)?; + }, + 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.max_bytes_rewritten_per_call = tmp; + }, + 14 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 14, &mut self.unknown_fields)? + }, + 15 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.rewrite_token)?; + }, + 16 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_bucket)?; + }, + 17 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_object)?; + }, + 18 => { + 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.source_generation = tmp; + }, + 20 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object)?; + }, + 21 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.copy_source_encryption_algorithm)?; + }, + 22 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.copy_source_encryption_key)?; + }, + 23 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.copy_source_encryption_key_sha256)?; + }, + 24 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 25 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.destination_bucket.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.destination_bucket); + } + if !self.destination_object.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.destination_object); + } + if !self.destination_kms_key_name.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.destination_kms_key_name); + } + if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(4, self.destination_predefined_acl); + } + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_source_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_source_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_source_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_source_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.max_bytes_rewritten_per_call != 0 { + my_size += ::protobuf::rt::value_size(13, self.max_bytes_rewritten_per_call, ::protobuf::wire_format::WireTypeVarint); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(14, self.projection); + } + if !self.rewrite_token.is_empty() { + my_size += ::protobuf::rt::string_size(15, &self.rewrite_token); + } + if !self.source_bucket.is_empty() { + my_size += ::protobuf::rt::string_size(16, &self.source_bucket); + } + if !self.source_object.is_empty() { + my_size += ::protobuf::rt::string_size(17, &self.source_object); + } + if self.source_generation != 0 { + my_size += ::protobuf::rt::value_size(18, self.source_generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.object.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.copy_source_encryption_algorithm.is_empty() { + my_size += ::protobuf::rt::string_size(21, &self.copy_source_encryption_algorithm); + } + if !self.copy_source_encryption_key.is_empty() { + my_size += ::protobuf::rt::string_size(22, &self.copy_source_encryption_key); + } + if !self.copy_source_encryption_key_sha256.is_empty() { + my_size += ::protobuf::rt::string_size(23, &self.copy_source_encryption_key_sha256); + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.destination_bucket.is_empty() { + os.write_string(1, &self.destination_bucket)?; + } + if !self.destination_object.is_empty() { + os.write_string(2, &self.destination_object)?; + } + if !self.destination_kms_key_name.is_empty() { + os.write_string(3, &self.destination_kms_key_name)?; + } + if self.destination_predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.destination_predefined_acl))?; + } + if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.if_source_generation_match.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.if_source_generation_not_match.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.if_source_metageneration_match.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.if_source_metageneration_not_match.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.max_bytes_rewritten_per_call != 0 { + os.write_int64(13, self.max_bytes_rewritten_per_call)?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(14, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if !self.rewrite_token.is_empty() { + os.write_string(15, &self.rewrite_token)?; + } + if !self.source_bucket.is_empty() { + os.write_string(16, &self.source_bucket)?; + } + if !self.source_object.is_empty() { + os.write_string(17, &self.source_object)?; + } + if self.source_generation != 0 { + os.write_int64(18, self.source_generation)?; + } + if let Some(ref v) = self.object.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)?; + } + if !self.copy_source_encryption_algorithm.is_empty() { + os.write_string(21, &self.copy_source_encryption_algorithm)?; + } + if !self.copy_source_encryption_key.is_empty() { + os.write_string(22, &self.copy_source_encryption_key)?; + } + if !self.copy_source_encryption_key_sha256.is_empty() { + os.write_string(23, &self.copy_source_encryption_key_sha256)?; + } + if let Some(ref v) = self.common_object_request_params.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.common_request_params.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> RewriteObjectRequest { + RewriteObjectRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "destination_bucket", + |m: &RewriteObjectRequest| { &m.destination_bucket }, + |m: &mut RewriteObjectRequest| { &mut m.destination_bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "destination_object", + |m: &RewriteObjectRequest| { &m.destination_object }, + |m: &mut RewriteObjectRequest| { &mut m.destination_object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "destination_kms_key_name", + |m: &RewriteObjectRequest| { &m.destination_kms_key_name }, + |m: &mut RewriteObjectRequest| { &mut m.destination_kms_key_name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "destination_predefined_acl", + |m: &RewriteObjectRequest| { &m.destination_predefined_acl }, + |m: &mut RewriteObjectRequest| { &mut m.destination_predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &RewriteObjectRequest| { &m.if_generation_match }, + |m: &mut RewriteObjectRequest| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_not_match", + |m: &RewriteObjectRequest| { &m.if_generation_not_match }, + |m: &mut RewriteObjectRequest| { &mut m.if_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &RewriteObjectRequest| { &m.if_metageneration_match }, + |m: &mut RewriteObjectRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &RewriteObjectRequest| { &m.if_metageneration_not_match }, + |m: &mut RewriteObjectRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_source_generation_match", + |m: &RewriteObjectRequest| { &m.if_source_generation_match }, + |m: &mut RewriteObjectRequest| { &mut m.if_source_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_source_generation_not_match", + |m: &RewriteObjectRequest| { &m.if_source_generation_not_match }, + |m: &mut RewriteObjectRequest| { &mut m.if_source_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_source_metageneration_match", + |m: &RewriteObjectRequest| { &m.if_source_metageneration_match }, + |m: &mut RewriteObjectRequest| { &mut m.if_source_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_source_metageneration_not_match", + |m: &RewriteObjectRequest| { &m.if_source_metageneration_not_match }, + |m: &mut RewriteObjectRequest| { &mut m.if_source_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "max_bytes_rewritten_per_call", + |m: &RewriteObjectRequest| { &m.max_bytes_rewritten_per_call }, + |m: &mut RewriteObjectRequest| { &mut m.max_bytes_rewritten_per_call }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &RewriteObjectRequest| { &m.projection }, + |m: &mut RewriteObjectRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "rewrite_token", + |m: &RewriteObjectRequest| { &m.rewrite_token }, + |m: &mut RewriteObjectRequest| { &mut m.rewrite_token }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "source_bucket", + |m: &RewriteObjectRequest| { &m.source_bucket }, + |m: &mut RewriteObjectRequest| { &mut m.source_bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "source_object", + |m: &RewriteObjectRequest| { &m.source_object }, + |m: &mut RewriteObjectRequest| { &mut m.source_object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "source_generation", + |m: &RewriteObjectRequest| { &m.source_generation }, + |m: &mut RewriteObjectRequest| { &mut m.source_generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "object", + |m: &RewriteObjectRequest| { &m.object }, + |m: &mut RewriteObjectRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "copy_source_encryption_algorithm", + |m: &RewriteObjectRequest| { &m.copy_source_encryption_algorithm }, + |m: &mut RewriteObjectRequest| { &mut m.copy_source_encryption_algorithm }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "copy_source_encryption_key", + |m: &RewriteObjectRequest| { &m.copy_source_encryption_key }, + |m: &mut RewriteObjectRequest| { &mut m.copy_source_encryption_key }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "copy_source_encryption_key_sha256", + |m: &RewriteObjectRequest| { &m.copy_source_encryption_key_sha256 }, + |m: &mut RewriteObjectRequest| { &mut m.copy_source_encryption_key_sha256 }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &RewriteObjectRequest| { &m.common_object_request_params }, + |m: &mut RewriteObjectRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &RewriteObjectRequest| { &m.common_request_params }, + |m: &mut RewriteObjectRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RewriteObjectRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static RewriteObjectRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RewriteObjectRequest::new) + } +} + +impl ::protobuf::Clear for RewriteObjectRequest { + fn clear(&mut self) { + self.destination_bucket.clear(); + self.destination_object.clear(); + self.destination_kms_key_name.clear(); + self.destination_predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.if_generation_match.clear(); + self.if_generation_not_match.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.if_source_generation_match.clear(); + self.if_source_generation_not_match.clear(); + self.if_source_metageneration_match.clear(); + self.if_source_metageneration_not_match.clear(); + self.max_bytes_rewritten_per_call = 0; + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.rewrite_token.clear(); + self.source_bucket.clear(); + self.source_object.clear(); + self.source_generation = 0; + self.object.clear(); + self.copy_source_encryption_algorithm.clear(); + self.copy_source_encryption_key.clear(); + self.copy_source_encryption_key_sha256.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for RewriteObjectRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for RewriteObjectRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct RewriteResponse { + // message fields + pub total_bytes_rewritten: i64, + pub object_size: i64, + pub done: bool, + pub rewrite_token: ::std::string::String, + pub resource: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a RewriteResponse { + fn default() -> &'a RewriteResponse { + ::default_instance() + } +} + +impl RewriteResponse { + pub fn new() -> RewriteResponse { + ::std::default::Default::default() + } + + // int64 total_bytes_rewritten = 1; + + + pub fn get_total_bytes_rewritten(&self) -> i64 { + self.total_bytes_rewritten + } + pub fn clear_total_bytes_rewritten(&mut self) { + self.total_bytes_rewritten = 0; + } + + // Param is passed by value, moved + pub fn set_total_bytes_rewritten(&mut self, v: i64) { + self.total_bytes_rewritten = v; + } + + // int64 object_size = 2; + + + pub fn get_object_size(&self) -> i64 { + self.object_size + } + pub fn clear_object_size(&mut self) { + self.object_size = 0; + } + + // Param is passed by value, moved + pub fn set_object_size(&mut self, v: i64) { + self.object_size = v; + } + + // 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; + } + + // string rewrite_token = 4; + + + pub fn get_rewrite_token(&self) -> &str { + &self.rewrite_token + } + pub fn clear_rewrite_token(&mut self) { + self.rewrite_token.clear(); + } + + // Param is passed by value, moved + pub fn set_rewrite_token(&mut self, v: ::std::string::String) { + self.rewrite_token = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_rewrite_token(&mut self) -> &mut ::std::string::String { + &mut self.rewrite_token + } + + // Take field + pub fn take_rewrite_token(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.rewrite_token, ::std::string::String::new()) + } + + // .google.storage.v1.Object resource = 5; + + + pub fn get_resource(&self) -> &super::storage_resources::Object { + self.resource.as_ref().unwrap_or_else(|| ::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: super::storage_resources::Object) { + 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 super::storage_resources::Object { + if self.resource.is_none() { + self.resource.set_default(); + } + self.resource.as_mut().unwrap() + } + + // Take field + pub fn take_resource(&mut self) -> super::storage_resources::Object { + self.resource.take().unwrap_or_else(|| super::storage_resources::Object::new()) + } +} + +impl ::protobuf::Message for RewriteResponse { + 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 => { + 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_bytes_rewritten = 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.object_size = 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.done = tmp; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.rewrite_token)?; + }, + 5 => { + ::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.total_bytes_rewritten != 0 { + my_size += ::protobuf::rt::value_size(1, self.total_bytes_rewritten, ::protobuf::wire_format::WireTypeVarint); + } + if self.object_size != 0 { + my_size += ::protobuf::rt::value_size(2, self.object_size, ::protobuf::wire_format::WireTypeVarint); + } + if self.done != false { + my_size += 2; + } + if !self.rewrite_token.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.rewrite_token); + } + 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.total_bytes_rewritten != 0 { + os.write_int64(1, self.total_bytes_rewritten)?; + } + if self.object_size != 0 { + os.write_int64(2, self.object_size)?; + } + if self.done != false { + os.write_bool(3, self.done)?; + } + if !self.rewrite_token.is_empty() { + os.write_string(4, &self.rewrite_token)?; + } + if let Some(ref v) = self.resource.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() -> RewriteResponse { + RewriteResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( + "total_bytes_rewritten", + |m: &RewriteResponse| { &m.total_bytes_rewritten }, + |m: &mut RewriteResponse| { &mut m.total_bytes_rewritten }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "object_size", + |m: &RewriteResponse| { &m.object_size }, + |m: &mut RewriteResponse| { &mut m.object_size }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "done", + |m: &RewriteResponse| { &m.done }, + |m: &mut RewriteResponse| { &mut m.done }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "rewrite_token", + |m: &RewriteResponse| { &m.rewrite_token }, + |m: &mut RewriteResponse| { &mut m.rewrite_token }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "resource", + |m: &RewriteResponse| { &m.resource }, + |m: &mut RewriteResponse| { &mut m.resource }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "RewriteResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static RewriteResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(RewriteResponse::new) + } +} + +impl ::protobuf::Clear for RewriteResponse { + fn clear(&mut self) { + self.total_bytes_rewritten = 0; + self.object_size = 0; + self.done = false; + self.rewrite_token.clear(); + self.resource.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for RewriteResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for RewriteResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct StartResumableWriteRequest { + // message fields + pub insert_object_spec: ::protobuf::SingularPtrField, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a StartResumableWriteRequest { + fn default() -> &'a StartResumableWriteRequest { + ::default_instance() + } +} + +impl StartResumableWriteRequest { + pub fn new() -> StartResumableWriteRequest { + ::std::default::Default::default() + } + + // .google.storage.v1.InsertObjectSpec insert_object_spec = 1; + + + pub fn get_insert_object_spec(&self) -> &InsertObjectSpec { + self.insert_object_spec.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_insert_object_spec(&mut self) { + self.insert_object_spec.clear(); + } + + pub fn has_insert_object_spec(&self) -> bool { + self.insert_object_spec.is_some() + } + + // Param is passed by value, moved + pub fn set_insert_object_spec(&mut self, v: InsertObjectSpec) { + self.insert_object_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_insert_object_spec(&mut self) -> &mut InsertObjectSpec { + if self.insert_object_spec.is_none() { + self.insert_object_spec.set_default(); + } + self.insert_object_spec.as_mut().unwrap() + } + + // Take field + pub fn take_insert_object_spec(&mut self) -> InsertObjectSpec { + self.insert_object_spec.take().unwrap_or_else(|| InsertObjectSpec::new()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 3; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 4; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for StartResumableWriteRequest { + fn is_initialized(&self) -> bool { + for v in &self.insert_object_spec { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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_message_into(wire_type, is, &mut self.insert_object_spec)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.insert_object_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.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.insert_object_spec.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.common_object_request_params.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.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> StartResumableWriteRequest { + StartResumableWriteRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "insert_object_spec", + |m: &StartResumableWriteRequest| { &m.insert_object_spec }, + |m: &mut StartResumableWriteRequest| { &mut m.insert_object_spec }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &StartResumableWriteRequest| { &m.common_object_request_params }, + |m: &mut StartResumableWriteRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &StartResumableWriteRequest| { &m.common_request_params }, + |m: &mut StartResumableWriteRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "StartResumableWriteRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static StartResumableWriteRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(StartResumableWriteRequest::new) + } +} + +impl ::protobuf::Clear for StartResumableWriteRequest { + fn clear(&mut self) { + self.insert_object_spec.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for StartResumableWriteRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for StartResumableWriteRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct StartResumableWriteResponse { + // message fields + pub upload_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a StartResumableWriteResponse { + fn default() -> &'a StartResumableWriteResponse { + ::default_instance() + } +} + +impl StartResumableWriteResponse { + pub fn new() -> StartResumableWriteResponse { + ::std::default::Default::default() + } + + // string upload_id = 1; + + + pub fn get_upload_id(&self) -> &str { + &self.upload_id + } + pub fn clear_upload_id(&mut self) { + self.upload_id.clear(); + } + + // Param is passed by value, moved + pub fn set_upload_id(&mut self, v: ::std::string::String) { + self.upload_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_upload_id(&mut self) -> &mut ::std::string::String { + &mut self.upload_id + } + + // Take field + pub fn take_upload_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.upload_id, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for StartResumableWriteResponse { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (field_number, wire_type) = is.read_tag_unpack()?; + match field_number { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.upload_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.upload_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.upload_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.upload_id.is_empty() { + os.write_string(1, &self.upload_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() -> StartResumableWriteResponse { + StartResumableWriteResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "upload_id", + |m: &StartResumableWriteResponse| { &m.upload_id }, + |m: &mut StartResumableWriteResponse| { &mut m.upload_id }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "StartResumableWriteResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static StartResumableWriteResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(StartResumableWriteResponse::new) + } +} + +impl ::protobuf::Clear for StartResumableWriteResponse { + fn clear(&mut self) { + self.upload_id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for StartResumableWriteResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for StartResumableWriteResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct PatchObjectRequest { + // message fields + pub bucket: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub projection: super::storage_resources::CommonEnums_Projection, + pub metadata: ::protobuf::SingularPtrField, + pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a PatchObjectRequest { + fn default() -> &'a PatchObjectRequest { + ::default_instance() + } +} + +impl PatchObjectRequest { + pub fn new() -> PatchObjectRequest { + ::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; + } + + // .google.protobuf.Int64Value if_generation_match = 4; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_generation_not_match = 5; + + + pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_not_match(&mut self) { + self.if_generation_not_match.clear(); + } + + pub fn has_if_generation_not_match(&self) -> bool { + self.if_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_not_match.is_none() { + self.if_generation_not_match.set_default(); + } + self.if_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 6; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 7; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_acl = 8; + + + pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.predefined_acl + } + pub fn clear_predefined_acl(&mut self) { + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.predefined_acl = v; + } + + // .google.storage.v1.CommonEnums.Projection projection = 9; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.Object metadata = 11; + + + pub fn get_metadata(&self) -> &super::storage_resources::Object { + 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: super::storage_resources::Object) { + 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 super::storage_resources::Object { + if self.metadata.is_none() { + self.metadata.set_default(); + } + self.metadata.as_mut().unwrap() + } + + // Take field + pub fn take_metadata(&mut self) -> super::storage_resources::Object { + self.metadata.take().unwrap_or_else(|| super::storage_resources::Object::new()) + } + + // .google.protobuf.FieldMask update_mask = 12; + + + 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()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 13; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 14; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for PatchObjectRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.metadata { + if !v.is_initialized() { + return false; + } + }; + for v in &self.update_mask { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.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; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 8 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 8, &mut self.unknown_fields)? + }, + 9 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 9, &mut self.unknown_fields)? + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + }, + 12 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; + }, + 13 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 14 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(8, self.predefined_acl); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(9, self.projection); + } + if let Some(ref v) = self.metadata.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 let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.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)?; + } + if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.metadata.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_mask.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(ref v) = self.common_object_request_params.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.common_request_params.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> PatchObjectRequest { + PatchObjectRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &PatchObjectRequest| { &m.bucket }, + |m: &mut PatchObjectRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &PatchObjectRequest| { &m.object }, + |m: &mut PatchObjectRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &PatchObjectRequest| { &m.generation }, + |m: &mut PatchObjectRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &PatchObjectRequest| { &m.if_generation_match }, + |m: &mut PatchObjectRequest| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_not_match", + |m: &PatchObjectRequest| { &m.if_generation_not_match }, + |m: &mut PatchObjectRequest| { &mut m.if_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &PatchObjectRequest| { &m.if_metageneration_match }, + |m: &mut PatchObjectRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &PatchObjectRequest| { &m.if_metageneration_not_match }, + |m: &mut PatchObjectRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "predefined_acl", + |m: &PatchObjectRequest| { &m.predefined_acl }, + |m: &mut PatchObjectRequest| { &mut m.predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &PatchObjectRequest| { &m.projection }, + |m: &mut PatchObjectRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "metadata", + |m: &PatchObjectRequest| { &m.metadata }, + |m: &mut PatchObjectRequest| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( + "update_mask", + |m: &PatchObjectRequest| { &m.update_mask }, + |m: &mut PatchObjectRequest| { &mut m.update_mask }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &PatchObjectRequest| { &m.common_object_request_params }, + |m: &mut PatchObjectRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &PatchObjectRequest| { &m.common_request_params }, + |m: &mut PatchObjectRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "PatchObjectRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static PatchObjectRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(PatchObjectRequest::new) + } +} + +impl ::protobuf::Clear for PatchObjectRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.object.clear(); + self.generation = 0; + self.if_generation_match.clear(); + self.if_generation_not_match.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.metadata.clear(); + self.update_mask.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for PatchObjectRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for PatchObjectRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateObjectRequest { + // message fields + pub bucket: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub if_generation_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_generation_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub if_metageneration_not_match: ::protobuf::SingularPtrField<::protobuf::well_known_types::Int64Value>, + pub predefined_acl: super::storage_resources::CommonEnums_PredefinedObjectAcl, + pub projection: super::storage_resources::CommonEnums_Projection, + pub metadata: ::protobuf::SingularPtrField, + pub common_object_request_params: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UpdateObjectRequest { + fn default() -> &'a UpdateObjectRequest { + ::default_instance() + } +} + +impl UpdateObjectRequest { + pub fn new() -> UpdateObjectRequest { + ::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; + } + + // .google.protobuf.Int64Value if_generation_match = 4; + + + pub fn get_if_generation_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_match(&mut self) { + self.if_generation_match.clear(); + } + + pub fn has_if_generation_match(&self) -> bool { + self.if_generation_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_match.is_none() { + self.if_generation_match.set_default(); + } + self.if_generation_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_generation_not_match = 5; + + + pub fn get_if_generation_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_generation_not_match(&mut self) { + self.if_generation_not_match.clear(); + } + + pub fn has_if_generation_not_match(&self) -> bool { + self.if_generation_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_generation_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_generation_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_generation_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_generation_not_match.is_none() { + self.if_generation_not_match.set_default(); + } + self.if_generation_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_generation_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_generation_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_match = 6; + + + pub fn get_if_metageneration_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_match(&mut self) { + self.if_metageneration_match.clear(); + } + + pub fn has_if_metageneration_match(&self) -> bool { + self.if_metageneration_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_match.is_none() { + self.if_metageneration_match.set_default(); + } + self.if_metageneration_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.protobuf.Int64Value if_metageneration_not_match = 7; + + + pub fn get_if_metageneration_not_match(&self) -> &::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Int64Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_if_metageneration_not_match(&mut self) { + self.if_metageneration_not_match.clear(); + } + + pub fn has_if_metageneration_not_match(&self) -> bool { + self.if_metageneration_not_match.is_some() + } + + // Param is passed by value, moved + pub fn set_if_metageneration_not_match(&mut self, v: ::protobuf::well_known_types::Int64Value) { + self.if_metageneration_not_match = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_if_metageneration_not_match(&mut self) -> &mut ::protobuf::well_known_types::Int64Value { + if self.if_metageneration_not_match.is_none() { + self.if_metageneration_not_match.set_default(); + } + self.if_metageneration_not_match.as_mut().unwrap() + } + + // Take field + pub fn take_if_metageneration_not_match(&mut self) -> ::protobuf::well_known_types::Int64Value { + self.if_metageneration_not_match.take().unwrap_or_else(|| ::protobuf::well_known_types::Int64Value::new()) + } + + // .google.storage.v1.CommonEnums.PredefinedObjectAcl predefined_acl = 8; + + + pub fn get_predefined_acl(&self) -> super::storage_resources::CommonEnums_PredefinedObjectAcl { + self.predefined_acl + } + pub fn clear_predefined_acl(&mut self) { + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_predefined_acl(&mut self, v: super::storage_resources::CommonEnums_PredefinedObjectAcl) { + self.predefined_acl = v; + } + + // .google.storage.v1.CommonEnums.Projection projection = 9; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.Object metadata = 11; + + + pub fn get_metadata(&self) -> &super::storage_resources::Object { + 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: super::storage_resources::Object) { + 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 super::storage_resources::Object { + if self.metadata.is_none() { + self.metadata.set_default(); + } + self.metadata.as_mut().unwrap() + } + + // Take field + pub fn take_metadata(&mut self) -> super::storage_resources::Object { + self.metadata.take().unwrap_or_else(|| super::storage_resources::Object::new()) + } + + // .google.storage.v1.CommonObjectRequestParams common_object_request_params = 12; + + + pub fn get_common_object_request_params(&self) -> &CommonObjectRequestParams { + self.common_object_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_object_request_params(&mut self) { + self.common_object_request_params.clear(); + } + + pub fn has_common_object_request_params(&self) -> bool { + self.common_object_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_object_request_params(&mut self, v: CommonObjectRequestParams) { + self.common_object_request_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_common_object_request_params(&mut self) -> &mut CommonObjectRequestParams { + if self.common_object_request_params.is_none() { + self.common_object_request_params.set_default(); + } + self.common_object_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_object_request_params(&mut self) -> CommonObjectRequestParams { + self.common_object_request_params.take().unwrap_or_else(|| CommonObjectRequestParams::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 13; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for UpdateObjectRequest { + fn is_initialized(&self) -> bool { + for v in &self.if_generation_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_generation_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.if_metageneration_not_match { + if !v.is_initialized() { + return false; + } + }; + for v in &self.metadata { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_object_request_params { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.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; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_match)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_generation_not_match)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_match)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.if_metageneration_not_match)?; + }, + 8 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.predefined_acl, 8, &mut self.unknown_fields)? + }, + 9 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 9, &mut self.unknown_fields)? + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + }, + 12 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_object_request_params)?; + }, + 13 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if let Some(ref v) = self.if_generation_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_generation_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.if_metageneration_not_match.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(8, self.predefined_acl); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(9, self.projection); + } + if let Some(ref v) = self.metadata.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_object_request_params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.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)?; + } + if let Some(ref v) = self.if_generation_match.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.if_generation_not_match.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.if_metageneration_match.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.if_metageneration_not_match.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.predefined_acl != super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED { + os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.predefined_acl))?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.metadata.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.common_object_request_params.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(ref v) = self.common_request_params.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> UpdateObjectRequest { + UpdateObjectRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &UpdateObjectRequest| { &m.bucket }, + |m: &mut UpdateObjectRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &UpdateObjectRequest| { &m.object }, + |m: &mut UpdateObjectRequest| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &UpdateObjectRequest| { &m.generation }, + |m: &mut UpdateObjectRequest| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_match", + |m: &UpdateObjectRequest| { &m.if_generation_match }, + |m: &mut UpdateObjectRequest| { &mut m.if_generation_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_generation_not_match", + |m: &UpdateObjectRequest| { &m.if_generation_not_match }, + |m: &mut UpdateObjectRequest| { &mut m.if_generation_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_match", + |m: &UpdateObjectRequest| { &m.if_metageneration_match }, + |m: &mut UpdateObjectRequest| { &mut m.if_metageneration_match }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Int64Value>>( + "if_metageneration_not_match", + |m: &UpdateObjectRequest| { &m.if_metageneration_not_match }, + |m: &mut UpdateObjectRequest| { &mut m.if_metageneration_not_match }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "predefined_acl", + |m: &UpdateObjectRequest| { &m.predefined_acl }, + |m: &mut UpdateObjectRequest| { &mut m.predefined_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &UpdateObjectRequest| { &m.projection }, + |m: &mut UpdateObjectRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "metadata", + |m: &UpdateObjectRequest| { &m.metadata }, + |m: &mut UpdateObjectRequest| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_object_request_params", + |m: &UpdateObjectRequest| { &m.common_object_request_params }, + |m: &mut UpdateObjectRequest| { &mut m.common_object_request_params }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &UpdateObjectRequest| { &m.common_request_params }, + |m: &mut UpdateObjectRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateObjectRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UpdateObjectRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateObjectRequest::new) + } +} + +impl ::protobuf::Clear for UpdateObjectRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.object.clear(); + self.generation = 0; + self.if_generation_match.clear(); + self.if_generation_not_match.clear(); + self.if_metageneration_match.clear(); + self.if_metageneration_not_match.clear(); + self.predefined_acl = super::storage_resources::CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED; + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.metadata.clear(); + self.common_object_request_params.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateObjectRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UpdateObjectRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct WatchAllObjectsRequest { + // message fields + pub bucket: ::std::string::String, + pub versions: bool, + pub delimiter: ::std::string::String, + pub max_results: i32, + pub prefix: ::std::string::String, + pub include_trailing_delimiter: bool, + pub page_token: ::std::string::String, + pub projection: super::storage_resources::CommonEnums_Projection, + pub channel: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a WatchAllObjectsRequest { + fn default() -> &'a WatchAllObjectsRequest { + ::default_instance() + } +} + +impl WatchAllObjectsRequest { + pub fn new() -> WatchAllObjectsRequest { + ::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()) + } + + // bool versions = 2; + + + pub fn get_versions(&self) -> bool { + self.versions + } + pub fn clear_versions(&mut self) { + self.versions = false; + } + + // Param is passed by value, moved + pub fn set_versions(&mut self, v: bool) { + self.versions = v; + } + + // string delimiter = 3; + + + pub fn get_delimiter(&self) -> &str { + &self.delimiter + } + pub fn clear_delimiter(&mut self) { + self.delimiter.clear(); + } + + // Param is passed by value, moved + pub fn set_delimiter(&mut self, v: ::std::string::String) { + self.delimiter = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_delimiter(&mut self) -> &mut ::std::string::String { + &mut self.delimiter + } + + // Take field + pub fn take_delimiter(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.delimiter, ::std::string::String::new()) + } + + // int32 max_results = 4; + + + pub fn get_max_results(&self) -> i32 { + self.max_results + } + pub fn clear_max_results(&mut self) { + self.max_results = 0; + } + + // Param is passed by value, moved + pub fn set_max_results(&mut self, v: i32) { + self.max_results = v; + } + + // string prefix = 5; + + + pub fn get_prefix(&self) -> &str { + &self.prefix + } + pub fn clear_prefix(&mut self) { + self.prefix.clear(); + } + + // Param is passed by value, moved + pub fn set_prefix(&mut self, v: ::std::string::String) { + self.prefix = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_prefix(&mut self) -> &mut ::std::string::String { + &mut self.prefix + } + + // Take field + pub fn take_prefix(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.prefix, ::std::string::String::new()) + } + + // bool include_trailing_delimiter = 6; + + + pub fn get_include_trailing_delimiter(&self) -> bool { + self.include_trailing_delimiter + } + pub fn clear_include_trailing_delimiter(&mut self) { + self.include_trailing_delimiter = false; + } + + // Param is passed by value, moved + pub fn set_include_trailing_delimiter(&mut self, v: bool) { + self.include_trailing_delimiter = v; + } + + // string page_token = 7; + + + 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.storage.v1.CommonEnums.Projection projection = 8; + + + pub fn get_projection(&self) -> super::storage_resources::CommonEnums_Projection { + self.projection + } + pub fn clear_projection(&mut self) { + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + } + + // Param is passed by value, moved + pub fn set_projection(&mut self, v: super::storage_resources::CommonEnums_Projection) { + self.projection = v; + } + + // .google.storage.v1.Channel channel = 10; + + + pub fn get_channel(&self) -> &super::storage_resources::Channel { + self.channel.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_channel(&mut self) { + self.channel.clear(); + } + + pub fn has_channel(&self) -> bool { + self.channel.is_some() + } + + // Param is passed by value, moved + pub fn set_channel(&mut self, v: super::storage_resources::Channel) { + self.channel = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_channel(&mut self) -> &mut super::storage_resources::Channel { + if self.channel.is_none() { + self.channel.set_default(); + } + self.channel.as_mut().unwrap() + } + + // Take field + pub fn take_channel(&mut self) -> super::storage_resources::Channel { + self.channel.take().unwrap_or_else(|| super::storage_resources::Channel::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 11; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for WatchAllObjectsRequest { + fn is_initialized(&self) -> bool { + for v in &self.channel { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.bucket)?; + }, + 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.versions = tmp; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.delimiter)?; + }, + 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.max_results = tmp; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.prefix)?; + }, + 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.include_trailing_delimiter = tmp; + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + }, + 8 => { + ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.projection, 8, &mut self.unknown_fields)? + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.channel)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.versions != false { + my_size += 2; + } + if !self.delimiter.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.delimiter); + } + if self.max_results != 0 { + my_size += ::protobuf::rt::value_size(4, self.max_results, ::protobuf::wire_format::WireTypeVarint); + } + if !self.prefix.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.prefix); + } + if self.include_trailing_delimiter != false { + my_size += 2; + } + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.page_token); + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + my_size += ::protobuf::rt::enum_size(8, self.projection); + } + if let Some(ref v) = self.channel.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.bucket.is_empty() { + os.write_string(1, &self.bucket)?; + } + if self.versions != false { + os.write_bool(2, self.versions)?; + } + if !self.delimiter.is_empty() { + os.write_string(3, &self.delimiter)?; + } + if self.max_results != 0 { + os.write_int32(4, self.max_results)?; + } + if !self.prefix.is_empty() { + os.write_string(5, &self.prefix)?; + } + if self.include_trailing_delimiter != false { + os.write_bool(6, self.include_trailing_delimiter)?; + } + if !self.page_token.is_empty() { + os.write_string(7, &self.page_token)?; + } + if self.projection != super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED { + os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.projection))?; + } + if let Some(ref v) = self.channel.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.common_request_params.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> WatchAllObjectsRequest { + WatchAllObjectsRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &WatchAllObjectsRequest| { &m.bucket }, + |m: &mut WatchAllObjectsRequest| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "versions", + |m: &WatchAllObjectsRequest| { &m.versions }, + |m: &mut WatchAllObjectsRequest| { &mut m.versions }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "delimiter", + |m: &WatchAllObjectsRequest| { &m.delimiter }, + |m: &mut WatchAllObjectsRequest| { &mut m.delimiter }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + "max_results", + |m: &WatchAllObjectsRequest| { &m.max_results }, + |m: &mut WatchAllObjectsRequest| { &mut m.max_results }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "prefix", + |m: &WatchAllObjectsRequest| { &m.prefix }, + |m: &mut WatchAllObjectsRequest| { &mut m.prefix }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "include_trailing_delimiter", + |m: &WatchAllObjectsRequest| { &m.include_trailing_delimiter }, + |m: &mut WatchAllObjectsRequest| { &mut m.include_trailing_delimiter }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "page_token", + |m: &WatchAllObjectsRequest| { &m.page_token }, + |m: &mut WatchAllObjectsRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( + "projection", + |m: &WatchAllObjectsRequest| { &m.projection }, + |m: &mut WatchAllObjectsRequest| { &mut m.projection }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "channel", + |m: &WatchAllObjectsRequest| { &m.channel }, + |m: &mut WatchAllObjectsRequest| { &mut m.channel }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &WatchAllObjectsRequest| { &m.common_request_params }, + |m: &mut WatchAllObjectsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "WatchAllObjectsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static WatchAllObjectsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(WatchAllObjectsRequest::new) + } +} + +impl ::protobuf::Clear for WatchAllObjectsRequest { + fn clear(&mut self) { + self.bucket.clear(); + self.versions = false; + self.delimiter.clear(); + self.max_results = 0; + self.prefix.clear(); + self.include_trailing_delimiter = false; + self.page_token.clear(); + self.projection = super::storage_resources::CommonEnums_Projection::PROJECTION_UNSPECIFIED; + self.channel.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for WatchAllObjectsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for WatchAllObjectsRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetProjectServiceAccountRequest { + // message fields + pub project_id: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetProjectServiceAccountRequest { + fn default() -> &'a GetProjectServiceAccountRequest { + ::default_instance() + } +} + +impl GetProjectServiceAccountRequest { + pub fn new() -> GetProjectServiceAccountRequest { + ::std::default::Default::default() + } + + // string project_id = 1; + + + pub fn get_project_id(&self) -> &str { + &self.project_id + } + pub fn clear_project_id(&mut self) { + self.project_id.clear(); + } + + // Param is passed by value, moved + pub fn set_project_id(&mut self, v: ::std::string::String) { + self.project_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_id(&mut self) -> &mut ::std::string::String { + &mut self.project_id + } + + // Take field + pub fn take_project_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 3; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetProjectServiceAccountRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.project_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.project_id); + } + if let Some(ref v) = self.common_request_params.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.project_id.is_empty() { + os.write_string(1, &self.project_id)?; + } + if let Some(ref v) = self.common_request_params.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() -> GetProjectServiceAccountRequest { + GetProjectServiceAccountRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_id", + |m: &GetProjectServiceAccountRequest| { &m.project_id }, + |m: &mut GetProjectServiceAccountRequest| { &mut m.project_id }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetProjectServiceAccountRequest| { &m.common_request_params }, + |m: &mut GetProjectServiceAccountRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetProjectServiceAccountRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetProjectServiceAccountRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetProjectServiceAccountRequest::new) + } +} + +impl ::protobuf::Clear for GetProjectServiceAccountRequest { + fn clear(&mut self) { + self.project_id.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetProjectServiceAccountRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetProjectServiceAccountRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateHmacKeyRequest { + // message fields + pub project_id: ::std::string::String, + pub service_account_email: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateHmacKeyRequest { + fn default() -> &'a CreateHmacKeyRequest { + ::default_instance() + } +} + +impl CreateHmacKeyRequest { + pub fn new() -> CreateHmacKeyRequest { + ::std::default::Default::default() + } + + // string project_id = 1; + + + pub fn get_project_id(&self) -> &str { + &self.project_id + } + pub fn clear_project_id(&mut self) { + self.project_id.clear(); + } + + // Param is passed by value, moved + pub fn set_project_id(&mut self, v: ::std::string::String) { + self.project_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_id(&mut self) -> &mut ::std::string::String { + &mut self.project_id + } + + // Take field + pub fn take_project_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) + } + + // string service_account_email = 2; + + + 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()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 3; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for CreateHmacKeyRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.project_id)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_account_email)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.project_id); + } + if !self.service_account_email.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.service_account_email); + } + if let Some(ref v) = self.common_request_params.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.project_id.is_empty() { + os.write_string(1, &self.project_id)?; + } + if !self.service_account_email.is_empty() { + os.write_string(2, &self.service_account_email)?; + } + if let Some(ref v) = self.common_request_params.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() -> CreateHmacKeyRequest { + CreateHmacKeyRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_id", + |m: &CreateHmacKeyRequest| { &m.project_id }, + |m: &mut CreateHmacKeyRequest| { &mut m.project_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "service_account_email", + |m: &CreateHmacKeyRequest| { &m.service_account_email }, + |m: &mut CreateHmacKeyRequest| { &mut m.service_account_email }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &CreateHmacKeyRequest| { &m.common_request_params }, + |m: &mut CreateHmacKeyRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CreateHmacKeyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CreateHmacKeyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateHmacKeyRequest::new) + } +} + +impl ::protobuf::Clear for CreateHmacKeyRequest { + fn clear(&mut self) { + self.project_id.clear(); + self.service_account_email.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CreateHmacKeyRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CreateHmacKeyRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CreateHmacKeyResponse { + // message fields + pub metadata: ::protobuf::SingularPtrField, + pub secret: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CreateHmacKeyResponse { + fn default() -> &'a CreateHmacKeyResponse { + ::default_instance() + } +} + +impl CreateHmacKeyResponse { + pub fn new() -> CreateHmacKeyResponse { + ::std::default::Default::default() + } + + // .google.storage.v1.HmacKeyMetadata metadata = 1; + + + pub fn get_metadata(&self) -> &super::storage_resources::HmacKeyMetadata { + 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: super::storage_resources::HmacKeyMetadata) { + 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 super::storage_resources::HmacKeyMetadata { + if self.metadata.is_none() { + self.metadata.set_default(); + } + self.metadata.as_mut().unwrap() + } + + // Take field + pub fn take_metadata(&mut self) -> super::storage_resources::HmacKeyMetadata { + self.metadata.take().unwrap_or_else(|| super::storage_resources::HmacKeyMetadata::new()) + } + + // string secret = 2; + + + pub fn get_secret(&self) -> &str { + &self.secret + } + pub fn clear_secret(&mut self) { + self.secret.clear(); + } + + // Param is passed by value, moved + pub fn set_secret(&mut self, v: ::std::string::String) { + self.secret = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_secret(&mut self) -> &mut ::std::string::String { + &mut self.secret + } + + // Take field + pub fn take_secret(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.secret, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for CreateHmacKeyResponse { + fn is_initialized(&self) -> bool { + 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_message_into(wire_type, is, &mut self.metadata)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.secret)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.metadata.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.secret.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.secret); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_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.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)?; + } + if !self.secret.is_empty() { + os.write_string(2, &self.secret)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> CreateHmacKeyResponse { + CreateHmacKeyResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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: &CreateHmacKeyResponse| { &m.metadata }, + |m: &mut CreateHmacKeyResponse| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "secret", + |m: &CreateHmacKeyResponse| { &m.secret }, + |m: &mut CreateHmacKeyResponse| { &mut m.secret }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CreateHmacKeyResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CreateHmacKeyResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CreateHmacKeyResponse::new) + } +} + +impl ::protobuf::Clear for CreateHmacKeyResponse { + fn clear(&mut self) { + self.metadata.clear(); + self.secret.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CreateHmacKeyResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CreateHmacKeyResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct DeleteHmacKeyRequest { + // message fields + pub access_id: ::std::string::String, + pub project_id: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a DeleteHmacKeyRequest { + fn default() -> &'a DeleteHmacKeyRequest { + ::default_instance() + } +} + +impl DeleteHmacKeyRequest { + pub fn new() -> DeleteHmacKeyRequest { + ::std::default::Default::default() + } + + // string access_id = 1; + + + pub fn get_access_id(&self) -> &str { + &self.access_id + } + pub fn clear_access_id(&mut self) { + self.access_id.clear(); + } + + // Param is passed by value, moved + pub fn set_access_id(&mut self, v: ::std::string::String) { + self.access_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_access_id(&mut self) -> &mut ::std::string::String { + &mut self.access_id + } + + // Take field + pub fn take_access_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.access_id, ::std::string::String::new()) + } + + // string project_id = 2; + + + pub fn get_project_id(&self) -> &str { + &self.project_id + } + pub fn clear_project_id(&mut self) { + self.project_id.clear(); + } + + // Param is passed by value, moved + pub fn set_project_id(&mut self, v: ::std::string::String) { + self.project_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_id(&mut self) -> &mut ::std::string::String { + &mut self.project_id + } + + // Take field + pub fn take_project_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 3; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for DeleteHmacKeyRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.access_id)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.access_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.access_id); + } + if !self.project_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.project_id); + } + if let Some(ref v) = self.common_request_params.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.access_id.is_empty() { + os.write_string(1, &self.access_id)?; + } + if !self.project_id.is_empty() { + os.write_string(2, &self.project_id)?; + } + if let Some(ref v) = self.common_request_params.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() -> DeleteHmacKeyRequest { + DeleteHmacKeyRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "access_id", + |m: &DeleteHmacKeyRequest| { &m.access_id }, + |m: &mut DeleteHmacKeyRequest| { &mut m.access_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "project_id", + |m: &DeleteHmacKeyRequest| { &m.project_id }, + |m: &mut DeleteHmacKeyRequest| { &mut m.project_id }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &DeleteHmacKeyRequest| { &m.common_request_params }, + |m: &mut DeleteHmacKeyRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "DeleteHmacKeyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static DeleteHmacKeyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(DeleteHmacKeyRequest::new) + } +} + +impl ::protobuf::Clear for DeleteHmacKeyRequest { + fn clear(&mut self) { + self.access_id.clear(); + self.project_id.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for DeleteHmacKeyRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DeleteHmacKeyRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetHmacKeyRequest { + // message fields + pub access_id: ::std::string::String, + pub project_id: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetHmacKeyRequest { + fn default() -> &'a GetHmacKeyRequest { + ::default_instance() + } +} + +impl GetHmacKeyRequest { + pub fn new() -> GetHmacKeyRequest { + ::std::default::Default::default() + } + + // string access_id = 1; + + + pub fn get_access_id(&self) -> &str { + &self.access_id + } + pub fn clear_access_id(&mut self) { + self.access_id.clear(); + } + + // Param is passed by value, moved + pub fn set_access_id(&mut self, v: ::std::string::String) { + self.access_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_access_id(&mut self) -> &mut ::std::string::String { + &mut self.access_id + } + + // Take field + pub fn take_access_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.access_id, ::std::string::String::new()) + } + + // string project_id = 2; + + + pub fn get_project_id(&self) -> &str { + &self.project_id + } + pub fn clear_project_id(&mut self) { + self.project_id.clear(); + } + + // Param is passed by value, moved + pub fn set_project_id(&mut self, v: ::std::string::String) { + self.project_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_id(&mut self) -> &mut ::std::string::String { + &mut self.project_id + } + + // Take field + pub fn take_project_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 3; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetHmacKeyRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.access_id)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.access_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.access_id); + } + if !self.project_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.project_id); + } + if let Some(ref v) = self.common_request_params.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.access_id.is_empty() { + os.write_string(1, &self.access_id)?; + } + if !self.project_id.is_empty() { + os.write_string(2, &self.project_id)?; + } + if let Some(ref v) = self.common_request_params.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() -> GetHmacKeyRequest { + GetHmacKeyRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "access_id", + |m: &GetHmacKeyRequest| { &m.access_id }, + |m: &mut GetHmacKeyRequest| { &mut m.access_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "project_id", + |m: &GetHmacKeyRequest| { &m.project_id }, + |m: &mut GetHmacKeyRequest| { &mut m.project_id }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetHmacKeyRequest| { &m.common_request_params }, + |m: &mut GetHmacKeyRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetHmacKeyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetHmacKeyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetHmacKeyRequest::new) + } +} + +impl ::protobuf::Clear for GetHmacKeyRequest { + fn clear(&mut self) { + self.access_id.clear(); + self.project_id.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for GetHmacKeyRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GetHmacKeyRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListHmacKeysRequest { + // message fields + pub project_id: ::std::string::String, + pub service_account_email: ::std::string::String, + pub show_deleted_keys: bool, + pub max_results: i32, + pub page_token: ::std::string::String, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListHmacKeysRequest { + fn default() -> &'a ListHmacKeysRequest { + ::default_instance() + } +} + +impl ListHmacKeysRequest { + pub fn new() -> ListHmacKeysRequest { + ::std::default::Default::default() + } + + // string project_id = 1; + + + pub fn get_project_id(&self) -> &str { + &self.project_id + } + pub fn clear_project_id(&mut self) { + self.project_id.clear(); + } + + // Param is passed by value, moved + pub fn set_project_id(&mut self, v: ::std::string::String) { + self.project_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_id(&mut self) -> &mut ::std::string::String { + &mut self.project_id + } + + // Take field + pub fn take_project_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) + } + + // string service_account_email = 2; + + + 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()) + } + + // bool show_deleted_keys = 3; + + + pub fn get_show_deleted_keys(&self) -> bool { + self.show_deleted_keys + } + pub fn clear_show_deleted_keys(&mut self) { + self.show_deleted_keys = false; + } + + // Param is passed by value, moved + pub fn set_show_deleted_keys(&mut self, v: bool) { + self.show_deleted_keys = v; + } + + // int32 max_results = 4; + + + pub fn get_max_results(&self) -> i32 { + self.max_results + } + pub fn clear_max_results(&mut self) { + self.max_results = 0; + } + + // Param is passed by value, moved + pub fn set_max_results(&mut self, v: i32) { + self.max_results = 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.storage.v1.CommonRequestParams common_request_params = 6; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for ListHmacKeysRequest { + fn is_initialized(&self) -> bool { + for v in &self.common_request_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.project_id)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_account_email)?; + }, + 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.show_deleted_keys = 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.max_results = 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.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.project_id); + } + if !self.service_account_email.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.service_account_email); + } + if self.show_deleted_keys != false { + my_size += 2; + } + if self.max_results != 0 { + my_size += ::protobuf::rt::value_size(4, self.max_results, ::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.common_request_params.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.project_id.is_empty() { + os.write_string(1, &self.project_id)?; + } + if !self.service_account_email.is_empty() { + os.write_string(2, &self.service_account_email)?; + } + if self.show_deleted_keys != false { + os.write_bool(3, self.show_deleted_keys)?; + } + if self.max_results != 0 { + os.write_int32(4, self.max_results)?; + } + if !self.page_token.is_empty() { + os.write_string(5, &self.page_token)?; + } + if let Some(ref v) = self.common_request_params.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() -> ListHmacKeysRequest { + ListHmacKeysRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_id", + |m: &ListHmacKeysRequest| { &m.project_id }, + |m: &mut ListHmacKeysRequest| { &mut m.project_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "service_account_email", + |m: &ListHmacKeysRequest| { &m.service_account_email }, + |m: &mut ListHmacKeysRequest| { &mut m.service_account_email }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "show_deleted_keys", + |m: &ListHmacKeysRequest| { &m.show_deleted_keys }, + |m: &mut ListHmacKeysRequest| { &mut m.show_deleted_keys }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + "max_results", + |m: &ListHmacKeysRequest| { &m.max_results }, + |m: &mut ListHmacKeysRequest| { &mut m.max_results }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "page_token", + |m: &ListHmacKeysRequest| { &m.page_token }, + |m: &mut ListHmacKeysRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &ListHmacKeysRequest| { &m.common_request_params }, + |m: &mut ListHmacKeysRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListHmacKeysRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListHmacKeysRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListHmacKeysRequest::new) + } +} + +impl ::protobuf::Clear for ListHmacKeysRequest { + fn clear(&mut self) { + self.project_id.clear(); + self.service_account_email.clear(); + self.show_deleted_keys = false; + self.max_results = 0; + self.page_token.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListHmacKeysRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListHmacKeysRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListHmacKeysResponse { + // message fields + pub next_page_token: ::std::string::String, + pub items: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListHmacKeysResponse { + fn default() -> &'a ListHmacKeysResponse { + ::default_instance() + } +} + +impl ListHmacKeysResponse { + pub fn new() -> ListHmacKeysResponse { + ::std::default::Default::default() + } + + // string next_page_token = 1; + + + 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 .google.storage.v1.HmacKeyMetadata items = 2; + + + pub fn get_items(&self) -> &[super::storage_resources::HmacKeyMetadata] { + &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 ListHmacKeysResponse { + fn is_initialized(&self) -> bool { + 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_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + }, + 2 => { + ::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 !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.next_page_token); + } + 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 !self.next_page_token.is_empty() { + os.write_string(1, &self.next_page_token)?; + } + for v in &self.items { + 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() -> ListHmacKeysResponse { + ListHmacKeysResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "next_page_token", + |m: &ListHmacKeysResponse| { &m.next_page_token }, + |m: &mut ListHmacKeysResponse| { &mut m.next_page_token }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "items", + |m: &ListHmacKeysResponse| { &m.items }, + |m: &mut ListHmacKeysResponse| { &mut m.items }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListHmacKeysResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListHmacKeysResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListHmacKeysResponse::new) + } +} + +impl ::protobuf::Clear for ListHmacKeysResponse { + fn clear(&mut self) { + self.next_page_token.clear(); + self.items.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListHmacKeysResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListHmacKeysResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct UpdateHmacKeyRequest { + // message fields + pub access_id: ::std::string::String, + pub project_id: ::std::string::String, + pub metadata: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a UpdateHmacKeyRequest { + fn default() -> &'a UpdateHmacKeyRequest { + ::default_instance() + } +} + +impl UpdateHmacKeyRequest { + pub fn new() -> UpdateHmacKeyRequest { + ::std::default::Default::default() + } + + // string access_id = 1; + + + pub fn get_access_id(&self) -> &str { + &self.access_id + } + pub fn clear_access_id(&mut self) { + self.access_id.clear(); + } + + // Param is passed by value, moved + pub fn set_access_id(&mut self, v: ::std::string::String) { + self.access_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_access_id(&mut self) -> &mut ::std::string::String { + &mut self.access_id + } + + // Take field + pub fn take_access_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.access_id, ::std::string::String::new()) + } + + // string project_id = 2; + + + pub fn get_project_id(&self) -> &str { + &self.project_id + } + pub fn clear_project_id(&mut self) { + self.project_id.clear(); + } + + // Param is passed by value, moved + pub fn set_project_id(&mut self, v: ::std::string::String) { + self.project_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_id(&mut self) -> &mut ::std::string::String { + &mut self.project_id + } + + // Take field + pub fn take_project_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) + } + + // .google.storage.v1.HmacKeyMetadata metadata = 3; + + + pub fn get_metadata(&self) -> &super::storage_resources::HmacKeyMetadata { + 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: super::storage_resources::HmacKeyMetadata) { + 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 super::storage_resources::HmacKeyMetadata { + if self.metadata.is_none() { + self.metadata.set_default(); + } + self.metadata.as_mut().unwrap() + } + + // Take field + pub fn take_metadata(&mut self) -> super::storage_resources::HmacKeyMetadata { + self.metadata.take().unwrap_or_else(|| super::storage_resources::HmacKeyMetadata::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 5; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for UpdateHmacKeyRequest { + fn is_initialized(&self) -> bool { + for v in &self.metadata { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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.access_id)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.access_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.access_id); + } + if !self.project_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.project_id); + } + if let Some(ref v) = self.metadata.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.common_request_params.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.access_id.is_empty() { + os.write_string(1, &self.access_id)?; + } + if !self.project_id.is_empty() { + os.write_string(2, &self.project_id)?; + } + if let Some(ref v) = self.metadata.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.common_request_params.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() -> UpdateHmacKeyRequest { + UpdateHmacKeyRequest::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "access_id", + |m: &UpdateHmacKeyRequest| { &m.access_id }, + |m: &mut UpdateHmacKeyRequest| { &mut m.access_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "project_id", + |m: &UpdateHmacKeyRequest| { &m.project_id }, + |m: &mut UpdateHmacKeyRequest| { &mut m.project_id }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "metadata", + |m: &UpdateHmacKeyRequest| { &m.metadata }, + |m: &mut UpdateHmacKeyRequest| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &UpdateHmacKeyRequest| { &m.common_request_params }, + |m: &mut UpdateHmacKeyRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "UpdateHmacKeyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static UpdateHmacKeyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(UpdateHmacKeyRequest::new) + } +} + +impl ::protobuf::Clear for UpdateHmacKeyRequest { + fn clear(&mut self) { + self.access_id.clear(); + self.project_id.clear(); + self.metadata.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for UpdateHmacKeyRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for UpdateHmacKeyRequest { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct GetIamPolicyRequest { + // message fields + pub iam_request: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a GetIamPolicyRequest { + fn default() -> &'a GetIamPolicyRequest { + ::default_instance() + } +} + +impl GetIamPolicyRequest { + pub fn new() -> GetIamPolicyRequest { + ::std::default::Default::default() + } + + // .google.iam.v1.GetIamPolicyRequest iam_request = 1; + + + pub fn get_iam_request(&self) -> &super::iam_policy::GetIamPolicyRequest { + self.iam_request.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_iam_request(&mut self) { + self.iam_request.clear(); + } + + pub fn has_iam_request(&self) -> bool { + self.iam_request.is_some() + } + + // Param is passed by value, moved + pub fn set_iam_request(&mut self, v: super::iam_policy::GetIamPolicyRequest) { + self.iam_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_iam_request(&mut self) -> &mut super::iam_policy::GetIamPolicyRequest { + if self.iam_request.is_none() { + self.iam_request.set_default(); + } + self.iam_request.as_mut().unwrap() + } + + // Take field + pub fn take_iam_request(&mut self) -> super::iam_policy::GetIamPolicyRequest { + self.iam_request.take().unwrap_or_else(|| super::iam_policy::GetIamPolicyRequest::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 2; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for GetIamPolicyRequest { + fn is_initialized(&self) -> bool { + for v in &self.iam_request { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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_message_into(wire_type, is, &mut self.iam_request)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.iam_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.common_request_params.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.iam_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.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "iam_request", + |m: &GetIamPolicyRequest| { &m.iam_request }, + |m: &mut GetIamPolicyRequest| { &mut m.iam_request }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &GetIamPolicyRequest| { &m.common_request_params }, + |m: &mut GetIamPolicyRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "GetIamPolicyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static GetIamPolicyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(GetIamPolicyRequest::new) + } +} + +impl ::protobuf::Clear for GetIamPolicyRequest { + fn clear(&mut self) { + self.iam_request.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct SetIamPolicyRequest { + // message fields + pub iam_request: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a SetIamPolicyRequest { + fn default() -> &'a SetIamPolicyRequest { + ::default_instance() + } +} + +impl SetIamPolicyRequest { + pub fn new() -> SetIamPolicyRequest { + ::std::default::Default::default() + } + + // .google.iam.v1.SetIamPolicyRequest iam_request = 1; + + + pub fn get_iam_request(&self) -> &super::iam_policy::SetIamPolicyRequest { + self.iam_request.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_iam_request(&mut self) { + self.iam_request.clear(); + } + + pub fn has_iam_request(&self) -> bool { + self.iam_request.is_some() + } + + // Param is passed by value, moved + pub fn set_iam_request(&mut self, v: super::iam_policy::SetIamPolicyRequest) { + self.iam_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_iam_request(&mut self) -> &mut super::iam_policy::SetIamPolicyRequest { + if self.iam_request.is_none() { + self.iam_request.set_default(); + } + self.iam_request.as_mut().unwrap() + } + + // Take field + pub fn take_iam_request(&mut self) -> super::iam_policy::SetIamPolicyRequest { + self.iam_request.take().unwrap_or_else(|| super::iam_policy::SetIamPolicyRequest::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 2; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for SetIamPolicyRequest { + fn is_initialized(&self) -> bool { + for v in &self.iam_request { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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_message_into(wire_type, is, &mut self.iam_request)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.iam_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.common_request_params.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.iam_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.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "iam_request", + |m: &SetIamPolicyRequest| { &m.iam_request }, + |m: &mut SetIamPolicyRequest| { &mut m.iam_request }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &SetIamPolicyRequest| { &m.common_request_params }, + |m: &mut SetIamPolicyRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "SetIamPolicyRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static SetIamPolicyRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(SetIamPolicyRequest::new) + } +} + +impl ::protobuf::Clear for SetIamPolicyRequest { + fn clear(&mut self) { + self.iam_request.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct TestIamPermissionsRequest { + // message fields + pub iam_request: ::protobuf::SingularPtrField, + pub common_request_params: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a TestIamPermissionsRequest { + fn default() -> &'a TestIamPermissionsRequest { + ::default_instance() + } +} + +impl TestIamPermissionsRequest { + pub fn new() -> TestIamPermissionsRequest { + ::std::default::Default::default() + } + + // .google.iam.v1.TestIamPermissionsRequest iam_request = 1; + + + pub fn get_iam_request(&self) -> &super::iam_policy::TestIamPermissionsRequest { + self.iam_request.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_iam_request(&mut self) { + self.iam_request.clear(); + } + + pub fn has_iam_request(&self) -> bool { + self.iam_request.is_some() + } + + // Param is passed by value, moved + pub fn set_iam_request(&mut self, v: super::iam_policy::TestIamPermissionsRequest) { + self.iam_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_iam_request(&mut self) -> &mut super::iam_policy::TestIamPermissionsRequest { + if self.iam_request.is_none() { + self.iam_request.set_default(); + } + self.iam_request.as_mut().unwrap() + } + + // Take field + pub fn take_iam_request(&mut self) -> super::iam_policy::TestIamPermissionsRequest { + self.iam_request.take().unwrap_or_else(|| super::iam_policy::TestIamPermissionsRequest::new()) + } + + // .google.storage.v1.CommonRequestParams common_request_params = 2; + + + pub fn get_common_request_params(&self) -> &CommonRequestParams { + self.common_request_params.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_common_request_params(&mut self) { + self.common_request_params.clear(); + } + + pub fn has_common_request_params(&self) -> bool { + self.common_request_params.is_some() + } + + // Param is passed by value, moved + pub fn set_common_request_params(&mut self, v: CommonRequestParams) { + self.common_request_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_common_request_params(&mut self) -> &mut CommonRequestParams { + if self.common_request_params.is_none() { + self.common_request_params.set_default(); + } + self.common_request_params.as_mut().unwrap() + } + + // Take field + pub fn take_common_request_params(&mut self) -> CommonRequestParams { + self.common_request_params.take().unwrap_or_else(|| CommonRequestParams::new()) + } +} + +impl ::protobuf::Message for TestIamPermissionsRequest { + fn is_initialized(&self) -> bool { + for v in &self.iam_request { + if !v.is_initialized() { + return false; + } + }; + for v in &self.common_request_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_message_into(wire_type, is, &mut self.iam_request)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common_request_params)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.iam_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.common_request_params.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.iam_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.common_request_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "iam_request", + |m: &TestIamPermissionsRequest| { &m.iam_request }, + |m: &mut TestIamPermissionsRequest| { &mut m.iam_request }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "common_request_params", + |m: &TestIamPermissionsRequest| { &m.common_request_params }, + |m: &mut TestIamPermissionsRequest| { &mut m.common_request_params }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "TestIamPermissionsRequest", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static TestIamPermissionsRequest { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(TestIamPermissionsRequest::new) + } +} + +impl ::protobuf::Clear for TestIamPermissionsRequest { + fn clear(&mut self) { + self.iam_request.clear(); + self.common_request_params.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CommonObjectRequestParams { + // message fields + pub encryption_algorithm: ::std::string::String, + pub encryption_key: ::std::string::String, + pub encryption_key_sha256: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CommonObjectRequestParams { + fn default() -> &'a CommonObjectRequestParams { + ::default_instance() + } +} + +impl CommonObjectRequestParams { + pub fn new() -> CommonObjectRequestParams { + ::std::default::Default::default() + } + + // string encryption_algorithm = 1; + + + pub fn get_encryption_algorithm(&self) -> &str { + &self.encryption_algorithm + } + pub fn clear_encryption_algorithm(&mut self) { + self.encryption_algorithm.clear(); + } + + // Param is passed by value, moved + pub fn set_encryption_algorithm(&mut self, v: ::std::string::String) { + self.encryption_algorithm = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_encryption_algorithm(&mut self) -> &mut ::std::string::String { + &mut self.encryption_algorithm + } + + // Take field + pub fn take_encryption_algorithm(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.encryption_algorithm, ::std::string::String::new()) + } + + // string encryption_key = 2; + + + pub fn get_encryption_key(&self) -> &str { + &self.encryption_key + } + pub fn clear_encryption_key(&mut self) { + self.encryption_key.clear(); + } + + // Param is passed by value, moved + pub fn set_encryption_key(&mut self, v: ::std::string::String) { + self.encryption_key = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_encryption_key(&mut self) -> &mut ::std::string::String { + &mut self.encryption_key + } + + // Take field + pub fn take_encryption_key(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.encryption_key, ::std::string::String::new()) + } + + // string encryption_key_sha256 = 3; + + + pub fn get_encryption_key_sha256(&self) -> &str { + &self.encryption_key_sha256 + } + pub fn clear_encryption_key_sha256(&mut self) { + self.encryption_key_sha256.clear(); + } + + // Param is passed by value, moved + pub fn set_encryption_key_sha256(&mut self, v: ::std::string::String) { + self.encryption_key_sha256 = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_encryption_key_sha256(&mut self) -> &mut ::std::string::String { + &mut self.encryption_key_sha256 + } + + // Take field + pub fn take_encryption_key_sha256(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.encryption_key_sha256, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for CommonObjectRequestParams { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (field_number, wire_type) = is.read_tag_unpack()?; + match field_number { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.encryption_algorithm)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.encryption_key)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.encryption_key_sha256)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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_algorithm.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.encryption_algorithm); + } + if !self.encryption_key.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.encryption_key); + } + if !self.encryption_key_sha256.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.encryption_key_sha256); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_algorithm.is_empty() { + os.write_string(1, &self.encryption_algorithm)?; + } + if !self.encryption_key.is_empty() { + os.write_string(2, &self.encryption_key)?; + } + if !self.encryption_key_sha256.is_empty() { + os.write_string(3, &self.encryption_key_sha256)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> CommonObjectRequestParams { + CommonObjectRequestParams::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "encryption_algorithm", + |m: &CommonObjectRequestParams| { &m.encryption_algorithm }, + |m: &mut CommonObjectRequestParams| { &mut m.encryption_algorithm }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "encryption_key", + |m: &CommonObjectRequestParams| { &m.encryption_key }, + |m: &mut CommonObjectRequestParams| { &mut m.encryption_key }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "encryption_key_sha256", + |m: &CommonObjectRequestParams| { &m.encryption_key_sha256 }, + |m: &mut CommonObjectRequestParams| { &mut m.encryption_key_sha256 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CommonObjectRequestParams", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CommonObjectRequestParams { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CommonObjectRequestParams::new) + } +} + +impl ::protobuf::Clear for CommonObjectRequestParams { + fn clear(&mut self) { + self.encryption_algorithm.clear(); + self.encryption_key.clear(); + self.encryption_key_sha256.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CommonObjectRequestParams { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CommonObjectRequestParams { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CommonRequestParams { + // message fields + pub user_project: ::std::string::String, + pub quota_user: ::std::string::String, + pub fields: ::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 CommonRequestParams { + fn default() -> &'a CommonRequestParams { + ::default_instance() + } +} + +impl CommonRequestParams { + pub fn new() -> CommonRequestParams { + ::std::default::Default::default() + } + + // string user_project = 1; + + + pub fn get_user_project(&self) -> &str { + &self.user_project + } + pub fn clear_user_project(&mut self) { + self.user_project.clear(); + } + + // Param is passed by value, moved + pub fn set_user_project(&mut self, v: ::std::string::String) { + self.user_project = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_user_project(&mut self) -> &mut ::std::string::String { + &mut self.user_project + } + + // Take field + pub fn take_user_project(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.user_project, ::std::string::String::new()) + } + + // string quota_user = 2; + + + pub fn get_quota_user(&self) -> &str { + &self.quota_user + } + pub fn clear_quota_user(&mut self) { + self.quota_user.clear(); + } + + // Param is passed by value, moved + pub fn set_quota_user(&mut self, v: ::std::string::String) { + self.quota_user = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_quota_user(&mut self) -> &mut ::std::string::String { + &mut self.quota_user + } + + // Take field + pub fn take_quota_user(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.quota_user, ::std::string::String::new()) + } + + // .google.protobuf.FieldMask fields = 4; + + + pub fn get_fields(&self) -> &::protobuf::well_known_types::FieldMask { + self.fields.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) + } + pub fn clear_fields(&mut self) { + self.fields.clear(); + } + + pub fn has_fields(&self) -> bool { + self.fields.is_some() + } + + // Param is passed by value, moved + pub fn set_fields(&mut self, v: ::protobuf::well_known_types::FieldMask) { + self.fields = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_fields(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { + if self.fields.is_none() { + self.fields.set_default(); + } + self.fields.as_mut().unwrap() + } + + // Take field + pub fn take_fields(&mut self) -> ::protobuf::well_known_types::FieldMask { + self.fields.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) + } +} + +impl ::protobuf::Message for CommonRequestParams { + 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.user_project)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.quota_user)?; + }, + 4 => { + ::protobuf::rt::read_singular_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.user_project.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.user_project); + } + if !self.quota_user.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.quota_user); + } + if let Some(ref v) = self.fields.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.user_project.is_empty() { + os.write_string(1, &self.user_project)?; + } + if !self.quota_user.is_empty() { + os.write_string(2, &self.quota_user)?; + } + if let Some(ref v) = self.fields.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() -> CommonRequestParams { + CommonRequestParams::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "user_project", + |m: &CommonRequestParams| { &m.user_project }, + |m: &mut CommonRequestParams| { &mut m.user_project }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "quota_user", + |m: &CommonRequestParams| { &m.quota_user }, + |m: &mut CommonRequestParams| { &mut m.quota_user }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( + "fields", + |m: &CommonRequestParams| { &m.fields }, + |m: &mut CommonRequestParams| { &mut m.fields }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "CommonRequestParams", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CommonRequestParams { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CommonRequestParams::new) + } +} + +impl ::protobuf::Clear for CommonRequestParams { + fn clear(&mut self) { + self.user_project.clear(); + self.quota_user.clear(); + self.fields.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CommonRequestParams { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CommonRequestParams { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ServiceConstants { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ServiceConstants { + fn default() -> &'a ServiceConstants { + ::default_instance() + } +} + +impl ServiceConstants { + pub fn new() -> ServiceConstants { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for ServiceConstants { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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() -> ServiceConstants { + ServiceConstants::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::( + "ServiceConstants", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ServiceConstants { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ServiceConstants::new) + } +} + +impl ::protobuf::Clear for ServiceConstants { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ServiceConstants { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ServiceConstants { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +// Note: you cannot use pattern matching for enums with allow_alias option +#[derive(Clone,Eq,Debug)] +pub enum ServiceConstants_Values { + VALUES_UNSPECIFIED, // 0 + MAX_READ_CHUNK_BYTES, // 2097152 + MAX_WRITE_CHUNK_BYTES, // 2097152 + MAX_OBJECT_SIZE_MB, // 5242880 + MAX_CUSTOM_METADATA_FIELD_NAME_BYTES, // 1024 + MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES, // 4096 + MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES, // 8192 + MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES, // 20480 + MAX_NOTIFICATION_CONFIGS_PER_BUCKET, // 100 + MAX_LIFECYCLE_RULES_PER_BUCKET, // 100 + MAX_NOTIFICATION_CUSTOM_ATTRIBUTES, // 5 + MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH, // 256 + MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH, // 1024 + MAX_LABELS_ENTRIES_COUNT, // 64 + MAX_LABELS_KEY_VALUE_LENGTH, // 63 + MAX_LABELS_KEY_VALUE_BYTES, // 128 + MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST, // 1000 + SPLIT_TOKEN_MAX_VALID_DAYS, // 14 +} + +impl ::std::cmp::PartialEq for ServiceConstants_Values { + fn eq(&self, other: &Self) -> bool { + ::protobuf::ProtobufEnum::value(self) == ::protobuf::ProtobufEnum::value(other) + } +} + +impl ::std::hash::Hash for ServiceConstants_Values { + fn hash(&self, state: &mut H) { + state.write_i32(::protobuf::ProtobufEnum::value(self)) + } +} + +impl ::protobuf::ProtobufEnum for ServiceConstants_Values { + fn value(&self) -> i32 { + match *self { + ServiceConstants_Values::VALUES_UNSPECIFIED => 0, + ServiceConstants_Values::MAX_READ_CHUNK_BYTES => 2097152, + ServiceConstants_Values::MAX_WRITE_CHUNK_BYTES => 2097152, + ServiceConstants_Values::MAX_OBJECT_SIZE_MB => 5242880, + ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_NAME_BYTES => 1024, + ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES => 4096, + ServiceConstants_Values::MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES => 8192, + ServiceConstants_Values::MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES => 20480, + ServiceConstants_Values::MAX_NOTIFICATION_CONFIGS_PER_BUCKET => 100, + ServiceConstants_Values::MAX_LIFECYCLE_RULES_PER_BUCKET => 100, + ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTES => 5, + ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH => 256, + ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH => 1024, + ServiceConstants_Values::MAX_LABELS_ENTRIES_COUNT => 64, + ServiceConstants_Values::MAX_LABELS_KEY_VALUE_LENGTH => 63, + ServiceConstants_Values::MAX_LABELS_KEY_VALUE_BYTES => 128, + ServiceConstants_Values::MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST => 1000, + ServiceConstants_Values::SPLIT_TOKEN_MAX_VALID_DAYS => 14, + } + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ServiceConstants_Values::VALUES_UNSPECIFIED), + 2097152 => ::std::option::Option::Some(ServiceConstants_Values::MAX_READ_CHUNK_BYTES), + 5242880 => ::std::option::Option::Some(ServiceConstants_Values::MAX_OBJECT_SIZE_MB), + 1024 => ::std::option::Option::Some(ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_NAME_BYTES), + 4096 => ::std::option::Option::Some(ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES), + 8192 => ::std::option::Option::Some(ServiceConstants_Values::MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES), + 20480 => ::std::option::Option::Some(ServiceConstants_Values::MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES), + 100 => ::std::option::Option::Some(ServiceConstants_Values::MAX_NOTIFICATION_CONFIGS_PER_BUCKET), + 5 => ::std::option::Option::Some(ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTES), + 256 => ::std::option::Option::Some(ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH), + 64 => ::std::option::Option::Some(ServiceConstants_Values::MAX_LABELS_ENTRIES_COUNT), + 63 => ::std::option::Option::Some(ServiceConstants_Values::MAX_LABELS_KEY_VALUE_LENGTH), + 128 => ::std::option::Option::Some(ServiceConstants_Values::MAX_LABELS_KEY_VALUE_BYTES), + 1000 => ::std::option::Option::Some(ServiceConstants_Values::MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST), + 14 => ::std::option::Option::Some(ServiceConstants_Values::SPLIT_TOKEN_MAX_VALID_DAYS), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [ServiceConstants_Values] = &[ + ServiceConstants_Values::VALUES_UNSPECIFIED, + ServiceConstants_Values::MAX_READ_CHUNK_BYTES, + ServiceConstants_Values::MAX_WRITE_CHUNK_BYTES, + ServiceConstants_Values::MAX_OBJECT_SIZE_MB, + ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_NAME_BYTES, + ServiceConstants_Values::MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES, + ServiceConstants_Values::MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES, + ServiceConstants_Values::MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES, + ServiceConstants_Values::MAX_NOTIFICATION_CONFIGS_PER_BUCKET, + ServiceConstants_Values::MAX_LIFECYCLE_RULES_PER_BUCKET, + ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTES, + ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH, + ServiceConstants_Values::MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH, + ServiceConstants_Values::MAX_LABELS_ENTRIES_COUNT, + ServiceConstants_Values::MAX_LABELS_KEY_VALUE_LENGTH, + ServiceConstants_Values::MAX_LABELS_KEY_VALUE_BYTES, + ServiceConstants_Values::MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST, + ServiceConstants_Values::SPLIT_TOKEN_MAX_VALID_DAYS, + ]; + 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::("ServiceConstants.Values", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for ServiceConstants_Values { +} + +impl ::std::default::Default for ServiceConstants_Values { + fn default() -> Self { + ServiceConstants_Values::VALUES_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for ServiceConstants_Values { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1fgoogle/storage/v1/storage.proto\x12\x11google.storage.v1\x1a\x1fgo\ + ogle/api/field_behavior.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\ + \x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\ + \x20google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.pro\ + to\x1a)google/storage/v1/storage_resources.proto\x1a\x17google/api/clien\ + t.proto\"\xb8\x01\n\x20DeleteBucketAccessControlRequest\x12\x1b\n\x06buc\ + ket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\x18\ + \x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15common_request_params\ + \x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13common\ + RequestParams\"\xb5\x01\n\x1dGetBucketAccessControlRequest\x12\x1b\n\x06\ + bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\ + \x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15common_request_pa\ + rams\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13co\ + mmonRequestParams\"\xf7\x01\n\x20InsertBucketAccessControlRequest\x12\ + \x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12Z\n\x15b\ + ucket_access_control\x18\x03\x20\x01(\x0b2&.google.storage.v1.BucketAcce\ + ssControlR\x13bucketAccessControl\x12Z\n\x15common_request_params\x18\ + \x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequ\ + estParams\"\x9a\x01\n\x1fListBucketAccessControlsRequest\x12\x1b\n\x06bu\ + cket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12Z\n\x15common_reques\ + t_params\x18\x03\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\ + \x13commonRequestParams\"\xd0\x02\n\x1fPatchBucketAccessControlRequest\ + \x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\ + \n\x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15bucke\ + t_access_control\x18\x04\x20\x01(\x0b2&.google.storage.v1.BucketAccessCo\ + ntrolR\x13bucketAccessControl\x12;\n\x0bupdate_mask\x18\x05\x20\x01(\x0b\ + 2\x1a.google.protobuf.FieldMaskR\nupdateMask\x12Z\n\x15common_request_pa\ + rams\x18\x06\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13co\ + mmonRequestParams\"\x94\x02\n\x20UpdateBucketAccessControlRequest\x12\ + \x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\ + \x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15bucket_\ + access_control\x18\x04\x20\x01(\x0b2&.google.storage.v1.BucketAccessCont\ + rolR\x13bucketAccessControl\x12Z\n\x15common_request_params\x18\x05\x20\ + \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ + s\"\xbf\x02\n\x13DeleteBucketRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01\ + (\tR\x06bucketB\x03\xe0A\x02\x12S\n\x17if_metageneration_match\x18\x02\ + \x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerationMatch\ + \x12Z\n\x1bif_metageneration_not_match\x18\x03\x20\x01(\x0b2\x1b.google.\ + protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12Z\n\x15common_reques\ + t_params\x18\x05\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\ + \x13commonRequestParams\"\x87\x03\n\x10GetBucketRequest\x12\x1b\n\x06buc\ + ket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12S\n\x17if_metagenerat\ + ion_match\x18\x02\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMet\ + agenerationMatch\x12Z\n\x1bif_metageneration_not_match\x18\x03\x20\x01(\ + \x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12I\n\ + \nprojection\x18\x04\x20\x01(\x0e2).google.storage.v1.CommonEnums.Projec\ + tionR\nprojection\x12Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&\ + .google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xe0\x03\ + \n\x13InsertBucketRequest\x12Y\n\x0epredefined_acl\x18\x01\x20\x01(\x0e2\ + 2.google.storage.v1.CommonEnums.PredefinedBucketAclR\rpredefinedAcl\x12u\ + \n\x1dpredefined_default_object_acl\x18\x02\x20\x01(\x0e22.google.storag\ + e.v1.CommonEnums.PredefinedObjectAclR\x1apredefinedDefaultObjectAcl\x12\ + \x1d\n\x07project\x18\x03\x20\x01(\tR\x07projectB\x03\xe0A\x02\x12I\n\np\ + rojection\x18\x04\x20\x01(\x0e2).google.storage.v1.CommonEnums.Projectio\ + nR\nprojection\x121\n\x06bucket\x18\x06\x20\x01(\x0b2\x19.google.storage\ + .v1.BucketR\x06bucket\x12Z\n\x15common_request_params\x18\x07\x20\x01(\ + \x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\ + \x8e\x01\n\x13ListChannelsRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\t\ + R\x06bucketB\x03\xe0A\x02\x12Z\n\x15common_request_params\x18\x03\x20\ + \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ + s\"\xb2\x02\n\x12ListBucketsRequest\x12\x1f\n\x0bmax_results\x18\x01\x20\ + \x01(\x05R\nmaxResults\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageTo\ + ken\x12\x16\n\x06prefix\x18\x03\x20\x01(\tR\x06prefix\x12\x1d\n\x07proje\ + ct\x18\x04\x20\x01(\tR\x07projectB\x03\xe0A\x02\x12I\n\nprojection\x18\ + \x05\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\nprojectio\ + n\x12Z\n\x15common_request_params\x18\x07\x20\x01(\x0b2&.google.storage.\ + v1.CommonRequestParamsR\x13commonRequestParams\"\xcd\x01\n\x1aLockRetent\ + ionPolicyRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\ + \xe0A\x02\x126\n\x17if_metageneration_match\x18\x02\x20\x01(\x03R\x15ifM\ + etagenerationMatch\x12Z\n\x15common_request_params\x18\x04\x20\x01(\x0b2\ + &.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xcf\ + \x05\n\x12PatchBucketRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06\ + bucketB\x03\xe0A\x02\x12S\n\x17if_metageneration_match\x18\x02\x20\x01(\ + \x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerationMatch\x12Z\n\ + \x1bif_metageneration_not_match\x18\x03\x20\x01(\x0b2\x1b.google.protobu\ + f.Int64ValueR\x18ifMetagenerationNotMatch\x12Y\n\x0epredefined_acl\x18\ + \x04\x20\x01(\x0e22.google.storage.v1.CommonEnums.PredefinedBucketAclR\r\ + predefinedAcl\x12u\n\x1dpredefined_default_object_acl\x18\x05\x20\x01(\ + \x0e22.google.storage.v1.CommonEnums.PredefinedObjectAclR\x1apredefinedD\ + efaultObjectAcl\x12I\n\nprojection\x18\x06\x20\x01(\x0e2).google.storage\ + .v1.CommonEnums.ProjectionR\nprojection\x125\n\x08metadata\x18\x08\x20\ + \x01(\x0b2\x19.google.storage.v1.BucketR\x08metadata\x12;\n\x0bupdate_ma\ + sk\x18\t\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMask\x12Z\n\ + \x15common_request_params\x18\n\x20\x01(\x0b2&.google.storage.v1.CommonR\ + equestParamsR\x13commonRequestParams\"\x93\x05\n\x13UpdateBucketRequest\ + \x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12S\n\ + \x17if_metageneration_match\x18\x02\x20\x01(\x0b2\x1b.google.protobuf.In\ + t64ValueR\x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_not_match\ + \x18\x03\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerati\ + onNotMatch\x12Y\n\x0epredefined_acl\x18\x04\x20\x01(\x0e22.google.storag\ + e.v1.CommonEnums.PredefinedBucketAclR\rpredefinedAcl\x12u\n\x1dpredefine\ + d_default_object_acl\x18\x05\x20\x01(\x0e22.google.storage.v1.CommonEnum\ + s.PredefinedObjectAclR\x1apredefinedDefaultObjectAcl\x12I\n\nprojection\ + \x18\x06\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\nproje\ + ction\x125\n\x08metadata\x18\x08\x20\x01(\x0b2\x19.google.storage.v1.Buc\ + ketR\x08metadata\x12Z\n\x15common_request_params\x18\t\x20\x01(\x0b2&.go\ + ogle.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xa6\x01\n\ + \x12StopChannelRequest\x124\n\x07channel\x18\x01\x20\x01(\x0b2\x1a.googl\ + e.storage.v1.ChannelR\x07channel\x12Z\n\x15common_request_params\x18\x02\ + \x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestP\ + arams\"\xbf\x01\n'DeleteDefaultObjectAccessControlRequest\x12\x1b\n\x06b\ + ucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\ + \x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15common_request_pa\ + rams\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13co\ + mmonRequestParams\"\xbc\x01\n$GetDefaultObjectAccessControlRequest\x12\ + \x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\ + \x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12Z\n\x15common_\ + request_params\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestPar\ + amsR\x13commonRequestParams\"\xfe\x01\n'InsertDefaultObjectAccessControl\ + Request\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\ + \x12Z\n\x15object_access_control\x18\x03\x20\x01(\x0b2&.google.storage.v\ + 1.ObjectAccessControlR\x13objectAccessControl\x12Z\n\x15common_request_p\ + arams\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13c\ + ommonRequestParams\"\xd2\x02\n&ListDefaultObjectAccessControlsRequest\ + \x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12S\n\ + \x17if_metageneration_match\x18\x02\x20\x01(\x0b2\x1b.google.protobuf.In\ + t64ValueR\x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_not_match\ + \x18\x03\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerati\ + onNotMatch\x12Z\n\x15common_request_params\x18\x05\x20\x01(\x0b2&.google\ + .storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xd7\x02\n&Patc\ + hDefaultObjectAccessControlRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\ + \tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\x18\x02\x20\x01(\tR\x06e\ + ntityB\x03\xe0A\x02\x12Z\n\x15object_access_control\x18\x04\x20\x01(\x0b\ + 2&.google.storage.v1.ObjectAccessControlR\x13objectAccessControl\x12;\n\ + \x0bupdate_mask\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nup\ + dateMask\x12Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&.google.s\ + torage.v1.CommonRequestParamsR\x13commonRequestParams\"\x9b\x02\n'Update\ + DefaultObjectAccessControlRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\t\ + R\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\x18\x02\x20\x01(\tR\x06ent\ + ityB\x03\xe0A\x02\x12Z\n\x15object_access_control\x18\x04\x20\x01(\x0b2&\ + .google.storage.v1.ObjectAccessControlR\x13objectAccessControl\x12Z\n\ + \x15common_request_params\x18\x05\x20\x01(\x0b2&.google.storage.v1.Commo\ + nRequestParamsR\x13commonRequestParams\"\xbd\x01\n\x19DeleteNotification\ + Request\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\ + \x12'\n\x0cnotification\x18\x02\x20\x01(\tR\x0cnotificationB\x03\xe0A\ + \x02\x12Z\n\x15common_request_params\x18\x04\x20\x01(\x0b2&.google.stora\ + ge.v1.CommonRequestParamsR\x13commonRequestParams\"\xba\x01\n\x16GetNoti\ + ficationRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\ + \xe0A\x02\x12'\n\x0cnotification\x18\x02\x20\x01(\tR\x0cnotificationB\ + \x03\xe0A\x02\x12Z\n\x15common_request_params\x18\x04\x20\x01(\x0b2&.goo\ + gle.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xd9\x01\n\ + \x19InsertNotificationRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\ + \x06bucketB\x03\xe0A\x02\x12C\n\x0cnotification\x18\x03\x20\x01(\x0b2\ + \x1f.google.storage.v1.NotificationR\x0cnotification\x12Z\n\x15common_re\ + quest_params\x18\x04\x20\x01(\x0b2&.google.storage.v1.CommonRequestParam\ + sR\x13commonRequestParams\"\x93\x01\n\x18ListNotificationsRequest\x12\ + \x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12Z\n\x15c\ + ommon_request_params\x18\x03\x20\x01(\x0b2&.google.storage.v1.CommonRequ\ + estParamsR\x13commonRequestParams\"\xf5\x01\n\x20DeleteObjectAccessContr\ + olRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\ + \x02\x12\x1b\n\x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12\ + \x1b\n\x06object\x18\x03\x20\x01(\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\n\ + generation\x18\x04\x20\x01(\x03R\ngeneration\x12Z\n\x15common_request_pa\ + rams\x18\x06\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13co\ + mmonRequestParams\"\xf2\x01\n\x1dGetObjectAccessControlRequest\x12\x1b\n\ + \x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06enti\ + ty\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12\x1b\n\x06object\x18\ + \x03\x20\x01(\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\ngeneration\x18\x04\ + \x20\x01(\x03R\ngeneration\x12Z\n\x15common_request_params\x18\x06\x20\ + \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ + s\"\xb4\x02\n\x20InsertObjectAccessControlRequest\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\x12\x1e\n\ngeneration\x18\x03\x20\ + \x01(\x03R\ngeneration\x12Z\n\x15object_access_control\x18\x05\x20\x01(\ + \x0b2&.google.storage.v1.ObjectAccessControlR\x13objectAccessControl\x12\ + Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&.google.storage.v1.Co\ + mmonRequestParamsR\x13commonRequestParams\"\xd7\x01\n\x1fListObjectAcces\ + sControlsRequest\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\x12\x1e\n\ngeneration\x18\x03\x20\x01(\x03R\ngeneration\x12Z\n\x15c\ + ommon_request_params\x18\x05\x20\x01(\x0b2&.google.storage.v1.CommonRequ\ + estParamsR\x13commonRequestParams\"\x8d\x03\n\x1fPatchObjectAccessContro\ + lRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\ + \x12\x1b\n\x06entity\x18\x02\x20\x01(\tR\x06entityB\x03\xe0A\x02\x12\x1b\ + \n\x06object\x18\x03\x20\x01(\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\ngene\ + ration\x18\x04\x20\x01(\x03R\ngeneration\x12Z\n\x15object_access_control\ + \x18\x05\x20\x01(\x0b2&.google.storage.v1.ObjectAccessControlR\x13object\ + AccessControl\x12Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&.goo\ + gle.storage.v1.CommonRequestParamsR\x13commonRequestParams\x12;\n\x0bupd\ + ate_mask\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMas\ + k\"\x8e\x03\n\x20UpdateObjectAccessControlRequest\x12\x1b\n\x06bucket\ + \x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06entity\x18\x02\ + \x20\x01(\tR\x06entityB\x03\xe0A\x02\x12\x1b\n\x06object\x18\x03\x20\x01\ + (\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\ngeneration\x18\x04\x20\x01(\x03R\ + \ngeneration\x12Z\n\x15object_access_control\x18\x06\x20\x01(\x0b2&.goog\ + le.storage.v1.ObjectAccessControlR\x13objectAccessControl\x12Z\n\x15comm\ + on_request_params\x18\x07\x20\x01(\x0b2&.google.storage.v1.CommonRequest\ + ParamsR\x13commonRequestParams\x12;\n\x0bupdate_mask\x18\x08\x20\x01(\ + \x0b2\x1a.google.protobuf.FieldMaskR\nupdateMask\"\xc2\x08\n\x14ComposeO\ + bjectRequest\x122\n\x12destination_bucket\x18\x01\x20\x01(\tR\x11destina\ + tionBucketB\x03\xe0A\x02\x122\n\x12destination_object\x18\x02\x20\x01(\t\ + R\x11destinationObjectB\x03\xe0A\x02\x12p\n\x1adestination_predefined_ac\ + l\x18\x03\x20\x01(\x0e22.google.storage.v1.CommonEnums.PredefinedObjectA\ + clR\x18destinationPredefinedAcl\x12;\n\x0bdestination\x18\x0b\x20\x01(\ + \x0b2\x19.google.storage.v1.ObjectR\x0bdestination\x12\\\n\x0esource_obj\ + ects\x18\x0c\x20\x03(\x0b25.google.storage.v1.ComposeObjectRequest.Sourc\ + eObjectsR\rsourceObjects\x12K\n\x13if_generation_match\x18\x04\x20\x01(\ + \x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\x12S\n\x17if_\ + metageneration_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64Valu\ + eR\x15ifMetagenerationMatch\x12\x20\n\x0ckms_key_name\x18\x06\x20\x01(\t\ + R\nkmsKeyName\x12m\n\x1ccommon_object_request_params\x18\t\x20\x01(\x0b2\ + ,.google.storage.v1.CommonObjectRequestParamsR\x19commonObjectRequestPar\ + ams\x12Z\n\x15common_request_params\x18\n\x20\x01(\x0b2&.google.storage.\ + v1.CommonRequestParamsR\x13commonRequestParams\x1a\xa5\x02\n\rSourceObje\ + cts\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1e\n\ngeneration\ + \x18\x02\x20\x01(\x03R\ngeneration\x12|\n\x14object_preconditions\x18\ + \x03\x20\x01(\x0b2I.google.storage.v1.ComposeObjectRequest.SourceObjects\ + .ObjectPreconditionsR\x13objectPreconditions\x1ab\n\x13ObjectPreconditio\ + ns\x12K\n\x13if_generation_match\x18\x01\x20\x01(\x0b2\x1b.google.protob\ + uf.Int64ValueR\x11ifGenerationMatch\"\xd2\x0b\n\x11CopyObjectRequest\x12\ + 2\n\x12destination_bucket\x18\x01\x20\x01(\tR\x11destinationBucketB\x03\ + \xe0A\x02\x122\n\x12destination_object\x18\x02\x20\x01(\tR\x11destinatio\ + nObjectB\x03\xe0A\x02\x12p\n\x1adestination_predefined_acl\x18\x03\x20\ + \x01(\x0e22.google.storage.v1.CommonEnums.PredefinedObjectAclR\x18destin\ + ationPredefinedAcl\x12K\n\x13if_generation_match\x18\x04\x20\x01(\x0b2\ + \x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\x12R\n\x17if_gener\ + ation_not_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\ + \x14ifGenerationNotMatch\x12S\n\x17if_metageneration_match\x18\x06\x20\ + \x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerationMatch\x12Z\ + \n\x1bif_metageneration_not_match\x18\x07\x20\x01(\x0b2\x1b.google.proto\ + buf.Int64ValueR\x18ifMetagenerationNotMatch\x12X\n\x1aif_source_generati\ + on_match\x18\x08\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x17ifSour\ + ceGenerationMatch\x12_\n\x1eif_source_generation_not_match\x18\t\x20\x01\ + (\x0b2\x1b.google.protobuf.Int64ValueR\x1aifSourceGenerationNotMatch\x12\ + `\n\x1eif_source_metageneration_match\x18\n\x20\x01(\x0b2\x1b.google.pro\ + tobuf.Int64ValueR\x1bifSourceMetagenerationMatch\x12g\n\"if_source_metag\ + eneration_not_match\x18\x0b\x20\x01(\x0b2\x1b.google.protobuf.Int64Value\ + R\x1eifSourceMetagenerationNotMatch\x12I\n\nprojection\x18\x0c\x20\x01(\ + \x0e2).google.storage.v1.CommonEnums.ProjectionR\nprojection\x12(\n\rsou\ + rce_bucket\x18\r\x20\x01(\tR\x0csourceBucketB\x03\xe0A\x02\x12(\n\rsourc\ + e_object\x18\x0e\x20\x01(\tR\x0csourceObjectB\x03\xe0A\x02\x12+\n\x11sou\ + rce_generation\x18\x0f\x20\x01(\x03R\x10sourceGeneration\x12;\n\x0bdesti\ + nation\x18\x11\x20\x01(\x0b2\x19.google.storage.v1.ObjectR\x0bdestinatio\ + n\x127\n\x18destination_kms_key_name\x18\x14\x20\x01(\tR\x15destinationK\ + msKeyName\x12m\n\x1ccommon_object_request_params\x18\x12\x20\x01(\x0b2,.\ + google.storage.v1.CommonObjectRequestParamsR\x19commonObjectRequestParam\ + s\x12Z\n\x15common_request_params\x18\x13\x20\x01(\x0b2&.google.storage.\ + v1.CommonRequestParamsR\x13commonRequestParams\"\xa9\x05\n\x13DeleteObje\ + ctRequest\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\x12\ + \x1b\n\tupload_id\x18\x03\x20\x01(\tR\x08uploadId\x12\x1e\n\ngeneration\ + \x18\x04\x20\x01(\x03R\ngeneration\x12K\n\x13if_generation_match\x18\x05\ + \x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\x12R\ + \n\x17if_generation_not_match\x18\x06\x20\x01(\x0b2\x1b.google.protobuf.\ + Int64ValueR\x14ifGenerationNotMatch\x12S\n\x17if_metageneration_match\ + \x18\x07\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerati\ + onMatch\x12Z\n\x1bif_metageneration_not_match\x18\x08\x20\x01(\x0b2\x1b.\ + google.protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12m\n\x1ccommon\ + _object_request_params\x18\n\x20\x01(\x0b2,.google.storage.v1.CommonObje\ + ctRequestParamsR\x19commonObjectRequestParams\x12Z\n\x15common_request_p\ + arams\x18\x0b\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13c\ + ommonRequestParams\"\xc4\x05\n\x15GetObjectMediaRequest\x12\x16\n\x06buc\ + ket\x18\x01\x20\x01(\tR\x06bucket\x12\x16\n\x06object\x18\x02\x20\x01(\t\ + R\x06object\x12\x1e\n\ngeneration\x18\x03\x20\x01(\x03R\ngeneration\x12\ + \x1f\n\x0bread_offset\x18\x04\x20\x01(\x03R\nreadOffset\x12\x1d\n\nread_\ + limit\x18\x05\x20\x01(\x03R\treadLimit\x12K\n\x13if_generation_match\x18\ + \x06\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\ + \x12R\n\x17if_generation_not_match\x18\x07\x20\x01(\x0b2\x1b.google.prot\ + obuf.Int64ValueR\x14ifGenerationNotMatch\x12S\n\x17if_metageneration_mat\ + ch\x18\x08\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenera\ + tionMatch\x12Z\n\x1bif_metageneration_not_match\x18\t\x20\x01(\x0b2\x1b.\ + google.protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12m\n\x1ccommon\ + _object_request_params\x18\x0b\x20\x01(\x0b2,.google.storage.v1.CommonOb\ + jectRequestParamsR\x19commonObjectRequestParams\x12Z\n\x15common_request\ + _params\x18\x0c\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\ + \x13commonRequestParams\"\xd4\x05\n\x10GetObjectRequest\x12\x1b\n\x06buc\ + ket\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\ngeneration\x12K\n\x13if_generation_match\x18\x04\x20\x01\ + (\x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenerationMatch\x12R\n\x17if\ + _generation_not_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64Val\ + ueR\x14ifGenerationNotMatch\x12S\n\x17if_metageneration_match\x18\x06\ + \x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifMetagenerationMatch\ + \x12Z\n\x1bif_metageneration_not_match\x18\x07\x20\x01(\x0b2\x1b.google.\ + protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12I\n\nprojection\x18\ + \x08\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\nprojectio\ + n\x12m\n\x1ccommon_object_request_params\x18\n\x20\x01(\x0b2,.google.sto\ + rage.v1.CommonObjectRequestParamsR\x19commonObjectRequestParams\x12Z\n\ + \x15common_request_params\x18\x0b\x20\x01(\x0b2&.google.storage.v1.Commo\ + nRequestParamsR\x13commonRequestParams\"\xb3\x02\n\x16GetObjectMediaResp\ + onse\x12M\n\x10checksummed_data\x18\x01\x20\x01(\x0b2\".google.storage.v\ + 1.ChecksummedDataR\x0fchecksummedData\x12M\n\x10object_checksums\x18\x02\ + \x20\x01(\x0b2\".google.storage.v1.ObjectChecksumsR\x0fobjectChecksums\ + \x12D\n\rcontent_range\x18\x03\x20\x01(\x0b2\x1f.google.storage.v1.Conte\ + ntRangeR\x0ccontentRange\x125\n\x08metadata\x18\x04\x20\x01(\x0b2\x19.go\ + ogle.storage.v1.ObjectR\x08metadata\"\xc1\x04\n\x10InsertObjectSpec\x125\ + \n\x08resource\x18\x01\x20\x01(\x0b2\x19.google.storage.v1.ObjectR\x08re\ + source\x12Y\n\x0epredefined_acl\x18\x02\x20\x01(\x0e22.google.storage.v1\ + .CommonEnums.PredefinedObjectAclR\rpredefinedAcl\x12K\n\x13if_generation\ + _match\x18\x03\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x11ifGenera\ + tionMatch\x12R\n\x17if_generation_not_match\x18\x04\x20\x01(\x0b2\x1b.go\ + ogle.protobuf.Int64ValueR\x14ifGenerationNotMatch\x12S\n\x17if_metagener\ + ation_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x15ifM\ + etagenerationMatch\x12Z\n\x1bif_metageneration_not_match\x18\x06\x20\x01\ + (\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerationNotMatch\x12I\ + \n\nprojection\x18\x07\x20\x01(\x0e2).google.storage.v1.CommonEnums.Proj\ + ectionR\nprojection\"\xa2\x05\n\x13InsertObjectRequest\x12\x1d\n\tupload\ + _id\x18\x01\x20\x01(\tH\0R\x08uploadId\x12S\n\x12insert_object_spec\x18\ + \x02\x20\x01(\x0b2#.google.storage.v1.InsertObjectSpecH\0R\x10insertObje\ + ctSpec\x12&\n\x0cwrite_offset\x18\x03\x20\x01(\x03R\x0bwriteOffsetB\x03\ + \xe0A\x02\x12O\n\x10checksummed_data\x18\x04\x20\x01(\x0b2\".google.stor\ + age.v1.ChecksummedDataH\x01R\x0fchecksummedData\x12H\n\treference\x18\ + \x05\x20\x01(\x0b2(.google.storage.v1.GetObjectMediaRequestH\x01R\trefer\ + ence\x12M\n\x10object_checksums\x18\x06\x20\x01(\x0b2\".google.storage.v\ + 1.ObjectChecksumsR\x0fobjectChecksums\x12!\n\x0cfinish_write\x18\x07\x20\ + \x01(\x08R\x0bfinishWrite\x12m\n\x1ccommon_object_request_params\x18\x08\ + \x20\x01(\x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19commonOb\ + jectRequestParams\x12Z\n\x15common_request_params\x18\t\x20\x01(\x0b2&.g\ + oogle.storage.v1.CommonRequestParamsR\x13commonRequestParamsB\x0f\n\rfir\ + st_messageB\x06\n\x04data\"\xa8\x03\n\x12ListObjectsRequest\x12\x1b\n\ + \x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1c\n\tdelimi\ + ter\x18\x02\x20\x01(\tR\tdelimiter\x12<\n\x1ainclude_trailing_delimiter\ + \x18\x03\x20\x01(\x08R\x18includeTrailingDelimiter\x12\x1f\n\x0bmax_resu\ + lts\x18\x04\x20\x01(\x05R\nmaxResults\x12\x1d\n\npage_token\x18\x05\x20\ + \x01(\tR\tpageToken\x12\x16\n\x06prefix\x18\x06\x20\x01(\tR\x06prefix\ + \x12I\n\nprojection\x18\x07\x20\x01(\x0e2).google.storage.v1.CommonEnums\ + .ProjectionR\nprojection\x12\x1a\n\x08versions\x18\t\x20\x01(\x08R\x08ve\ + rsions\x12Z\n\x15common_request_params\x18\n\x20\x01(\x0b2&.google.stora\ + ge.v1.CommonRequestParamsR\x13commonRequestParams\"\x86\x02\n\x17QueryWr\ + iteStatusRequest\x12\x20\n\tupload_id\x18\x01\x20\x01(\tR\x08uploadIdB\ + \x03\xe0A\x02\x12m\n\x1ccommon_object_request_params\x18\x02\x20\x01(\ + \x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19commonObjectReque\ + stParams\x12Z\n\x15common_request_params\x18\x03\x20\x01(\x0b2&.google.s\ + torage.v1.CommonRequestParamsR\x13commonRequestParams\"]\n\x18QueryWrite\ + StatusResponse\x12%\n\x0ecommitted_size\x18\x01\x20\x01(\x03R\rcommitted\ + Size\x12\x1a\n\x08complete\x18\x02\x20\x01(\x08R\x08complete\"\x80\x0e\n\ + \x14RewriteObjectRequest\x122\n\x12destination_bucket\x18\x01\x20\x01(\t\ + R\x11destinationBucketB\x03\xe0A\x02\x122\n\x12destination_object\x18\ + \x02\x20\x01(\tR\x11destinationObjectB\x03\xe0A\x02\x127\n\x18destinatio\ + n_kms_key_name\x18\x03\x20\x01(\tR\x15destinationKmsKeyName\x12p\n\x1ade\ + stination_predefined_acl\x18\x04\x20\x01(\x0e22.google.storage.v1.Common\ + Enums.PredefinedObjectAclR\x18destinationPredefinedAcl\x12K\n\x13if_gene\ + ration_match\x18\x05\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x11if\ + GenerationMatch\x12R\n\x17if_generation_not_match\x18\x06\x20\x01(\x0b2\ + \x1b.google.protobuf.Int64ValueR\x14ifGenerationNotMatch\x12S\n\x17if_me\ + tageneration_match\x18\x07\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\ + \x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_not_match\x18\x08\ + \x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenerationNotMat\ + ch\x12X\n\x1aif_source_generation_match\x18\t\x20\x01(\x0b2\x1b.google.p\ + rotobuf.Int64ValueR\x17ifSourceGenerationMatch\x12_\n\x1eif_source_gener\ + ation_not_match\x18\n\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x1ai\ + fSourceGenerationNotMatch\x12`\n\x1eif_source_metageneration_match\x18\ + \x0b\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x1bifSourceMetagenera\ + tionMatch\x12g\n\"if_source_metageneration_not_match\x18\x0c\x20\x01(\ + \x0b2\x1b.google.protobuf.Int64ValueR\x1eifSourceMetagenerationNotMatch\ + \x12>\n\x1cmax_bytes_rewritten_per_call\x18\r\x20\x01(\x03R\x18maxBytesR\ + ewrittenPerCall\x12I\n\nprojection\x18\x0e\x20\x01(\x0e2).google.storage\ + .v1.CommonEnums.ProjectionR\nprojection\x12#\n\rrewrite_token\x18\x0f\ + \x20\x01(\tR\x0crewriteToken\x12(\n\rsource_bucket\x18\x10\x20\x01(\tR\ + \x0csourceBucketB\x03\xe0A\x02\x12(\n\rsource_object\x18\x11\x20\x01(\tR\ + \x0csourceObjectB\x03\xe0A\x02\x12+\n\x11source_generation\x18\x12\x20\ + \x01(\x03R\x10sourceGeneration\x121\n\x06object\x18\x14\x20\x01(\x0b2\ + \x19.google.storage.v1.ObjectR\x06object\x12G\n\x20copy_source_encryptio\ + n_algorithm\x18\x15\x20\x01(\tR\x1dcopySourceEncryptionAlgorithm\x12;\n\ + \x1acopy_source_encryption_key\x18\x16\x20\x01(\tR\x17copySourceEncrypti\ + onKey\x12H\n!copy_source_encryption_key_sha256\x18\x17\x20\x01(\tR\x1dco\ + pySourceEncryptionKeySha256\x12m\n\x1ccommon_object_request_params\x18\ + \x18\x20\x01(\x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19comm\ + onObjectRequestParams\x12Z\n\x15common_request_params\x18\x19\x20\x01(\ + \x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\ + \xd6\x01\n\x0fRewriteResponse\x122\n\x15total_bytes_rewritten\x18\x01\ + \x20\x01(\x03R\x13totalBytesRewritten\x12\x1f\n\x0bobject_size\x18\x02\ + \x20\x01(\x03R\nobjectSize\x12\x12\n\x04done\x18\x03\x20\x01(\x08R\x04do\ + ne\x12#\n\rrewrite_token\x18\x04\x20\x01(\tR\x0crewriteToken\x125\n\x08r\ + esource\x18\x05\x20\x01(\x0b2\x19.google.storage.v1.ObjectR\x08resource\ + \"\xba\x02\n\x1aStartResumableWriteRequest\x12Q\n\x12insert_object_spec\ + \x18\x01\x20\x01(\x0b2#.google.storage.v1.InsertObjectSpecR\x10insertObj\ + ectSpec\x12m\n\x1ccommon_object_request_params\x18\x03\x20\x01(\x0b2,.go\ + ogle.storage.v1.CommonObjectRequestParamsR\x19commonObjectRequestParams\ + \x12Z\n\x15common_request_params\x18\x04\x20\x01(\x0b2&.google.storage.v\ + 1.CommonRequestParamsR\x13commonRequestParams\":\n\x1bStartResumableWrit\ + eResponse\x12\x1b\n\tupload_id\x18\x01\x20\x01(\tR\x08uploadId\"\xa5\x07\ + \n\x12PatchObjectRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06buck\ + etB\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\ngeneration\x12K\n\ + \x13if_generation_match\x18\x04\x20\x01(\x0b2\x1b.google.protobuf.Int64V\ + alueR\x11ifGenerationMatch\x12R\n\x17if_generation_not_match\x18\x05\x20\ + \x01(\x0b2\x1b.google.protobuf.Int64ValueR\x14ifGenerationNotMatch\x12S\ + \n\x17if_metageneration_match\x18\x06\x20\x01(\x0b2\x1b.google.protobuf.\ + Int64ValueR\x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_not_mat\ + ch\x18\x07\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMetagenera\ + tionNotMatch\x12Y\n\x0epredefined_acl\x18\x08\x20\x01(\x0e22.google.stor\ + age.v1.CommonEnums.PredefinedObjectAclR\rpredefinedAcl\x12I\n\nprojectio\ + n\x18\t\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\nprojec\ + tion\x125\n\x08metadata\x18\x0b\x20\x01(\x0b2\x19.google.storage.v1.Obje\ + ctR\x08metadata\x12;\n\x0bupdate_mask\x18\x0c\x20\x01(\x0b2\x1a.google.p\ + rotobuf.FieldMaskR\nupdateMask\x12m\n\x1ccommon_object_request_params\ + \x18\r\x20\x01(\x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19co\ + mmonObjectRequestParams\x12Z\n\x15common_request_params\x18\x0e\x20\x01(\ + \x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\ + \xe9\x06\n\x13UpdateObjectRequest\x12\x1b\n\x06bucket\x18\x01\x20\x01(\t\ + R\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06object\x18\x02\x20\x01(\tR\x06obj\ + ectB\x03\xe0A\x02\x12\x1e\n\ngeneration\x18\x03\x20\x01(\x03R\ngeneratio\ + n\x12K\n\x13if_generation_match\x18\x04\x20\x01(\x0b2\x1b.google.protobu\ + f.Int64ValueR\x11ifGenerationMatch\x12R\n\x17if_generation_not_match\x18\ + \x05\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x14ifGenerationNotMat\ + ch\x12S\n\x17if_metageneration_match\x18\x06\x20\x01(\x0b2\x1b.google.pr\ + otobuf.Int64ValueR\x15ifMetagenerationMatch\x12Z\n\x1bif_metageneration_\ + not_match\x18\x07\x20\x01(\x0b2\x1b.google.protobuf.Int64ValueR\x18ifMet\ + agenerationNotMatch\x12Y\n\x0epredefined_acl\x18\x08\x20\x01(\x0e22.goog\ + le.storage.v1.CommonEnums.PredefinedObjectAclR\rpredefinedAcl\x12I\n\npr\ + ojection\x18\t\x20\x01(\x0e2).google.storage.v1.CommonEnums.ProjectionR\ + \nprojection\x125\n\x08metadata\x18\x0b\x20\x01(\x0b2\x19.google.storage\ + .v1.ObjectR\x08metadata\x12m\n\x1ccommon_object_request_params\x18\x0c\ + \x20\x01(\x0b2,.google.storage.v1.CommonObjectRequestParamsR\x19commonOb\ + jectRequestParams\x12Z\n\x15common_request_params\x18\r\x20\x01(\x0b2&.g\ + oogle.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\xdd\x03\n\ + \x16WatchAllObjectsRequest\x12\x16\n\x06bucket\x18\x01\x20\x01(\tR\x06bu\ + cket\x12\x1a\n\x08versions\x18\x02\x20\x01(\x08R\x08versions\x12\x1c\n\t\ + delimiter\x18\x03\x20\x01(\tR\tdelimiter\x12\x1f\n\x0bmax_results\x18\ + \x04\x20\x01(\x05R\nmaxResults\x12\x16\n\x06prefix\x18\x05\x20\x01(\tR\ + \x06prefix\x12<\n\x1ainclude_trailing_delimiter\x18\x06\x20\x01(\x08R\ + \x18includeTrailingDelimiter\x12\x1d\n\npage_token\x18\x07\x20\x01(\tR\t\ + pageToken\x12I\n\nprojection\x18\x08\x20\x01(\x0e2).google.storage.v1.Co\ + mmonEnums.ProjectionR\nprojection\x124\n\x07channel\x18\n\x20\x01(\x0b2\ + \x1a.google.storage.v1.ChannelR\x07channel\x12Z\n\x15common_request_para\ + ms\x18\x0b\x20\x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13comm\ + onRequestParams\"\xa1\x01\n\x1fGetProjectServiceAccountRequest\x12\"\n\n\ + project_id\x18\x01\x20\x01(\tR\tprojectIdB\x03\xe0A\x02\x12Z\n\x15common\ + _request_params\x18\x03\x20\x01(\x0b2&.google.storage.v1.CommonRequestPa\ + ramsR\x13commonRequestParams\"\xcf\x01\n\x14CreateHmacKeyRequest\x12\"\n\ + \nproject_id\x18\x01\x20\x01(\tR\tprojectIdB\x03\xe0A\x02\x127\n\x15serv\ + ice_account_email\x18\x02\x20\x01(\tR\x13serviceAccountEmailB\x03\xe0A\ + \x02\x12Z\n\x15common_request_params\x18\x03\x20\x01(\x0b2&.google.stora\ + ge.v1.CommonRequestParamsR\x13commonRequestParams\"o\n\x15CreateHmacKeyR\ + esponse\x12>\n\x08metadata\x18\x01\x20\x01(\x0b2\".google.storage.v1.Hma\ + cKeyMetadataR\x08metadata\x12\x16\n\x06secret\x18\x02\x20\x01(\tR\x06sec\ + ret\"\xb8\x01\n\x14DeleteHmacKeyRequest\x12\x20\n\taccess_id\x18\x01\x20\ + \x01(\tR\x08accessIdB\x03\xe0A\x02\x12\"\n\nproject_id\x18\x02\x20\x01(\ + \tR\tprojectIdB\x03\xe0A\x02\x12Z\n\x15common_request_params\x18\x03\x20\ + \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ + s\"\xb5\x01\n\x11GetHmacKeyRequest\x12\x20\n\taccess_id\x18\x01\x20\x01(\ + \tR\x08accessIdB\x03\xe0A\x02\x12\"\n\nproject_id\x18\x02\x20\x01(\tR\tp\ + rojectIdB\x03\xe0A\x02\x12Z\n\x15common_request_params\x18\x03\x20\x01(\ + \x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParams\"\ + \xb5\x02\n\x13ListHmacKeysRequest\x12\"\n\nproject_id\x18\x01\x20\x01(\t\ + R\tprojectIdB\x03\xe0A\x02\x122\n\x15service_account_email\x18\x02\x20\ + \x01(\tR\x13serviceAccountEmail\x12*\n\x11show_deleted_keys\x18\x03\x20\ + \x01(\x08R\x0fshowDeletedKeys\x12\x1f\n\x0bmax_results\x18\x04\x20\x01(\ + \x05R\nmaxResults\x12\x1d\n\npage_token\x18\x05\x20\x01(\tR\tpageToken\ + \x12Z\n\x15common_request_params\x18\x06\x20\x01(\x0b2&.google.storage.v\ + 1.CommonRequestParamsR\x13commonRequestParams\"x\n\x14ListHmacKeysRespon\ + se\x12&\n\x0fnext_page_token\x18\x01\x20\x01(\tR\rnextPageToken\x128\n\ + \x05items\x18\x02\x20\x03(\x0b2\".google.storage.v1.HmacKeyMetadataR\x05\ + items\"\xfd\x01\n\x14UpdateHmacKeyRequest\x12\x20\n\taccess_id\x18\x01\ + \x20\x01(\tR\x08accessIdB\x03\xe0A\x02\x12\"\n\nproject_id\x18\x02\x20\ + \x01(\tR\tprojectIdB\x03\xe0A\x02\x12C\n\x08metadata\x18\x03\x20\x01(\ + \x0b2\".google.storage.v1.HmacKeyMetadataR\x08metadataB\x03\xe0A\x02\x12\ + Z\n\x15common_request_params\x18\x05\x20\x01(\x0b2&.google.storage.v1.Co\ + mmonRequestParamsR\x13commonRequestParams\"\xb6\x01\n\x13GetIamPolicyReq\ + uest\x12C\n\x0biam_request\x18\x01\x20\x01(\x0b2\".google.iam.v1.GetIamP\ + olicyRequestR\niamRequest\x12Z\n\x15common_request_params\x18\x02\x20\ + \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ + s\"\xb6\x01\n\x13SetIamPolicyRequest\x12C\n\x0biam_request\x18\x01\x20\ + \x01(\x0b2\".google.iam.v1.SetIamPolicyRequestR\niamRequest\x12Z\n\x15co\ + mmon_request_params\x18\x02\x20\x01(\x0b2&.google.storage.v1.CommonReque\ + stParamsR\x13commonRequestParams\"\xc2\x01\n\x19TestIamPermissionsReques\ + t\x12I\n\x0biam_request\x18\x01\x20\x01(\x0b2(.google.iam.v1.TestIamPerm\ + issionsRequestR\niamRequest\x12Z\n\x15common_request_params\x18\x02\x20\ + \x01(\x0b2&.google.storage.v1.CommonRequestParamsR\x13commonRequestParam\ + s\"\xa9\x01\n\x19CommonObjectRequestParams\x121\n\x14encryption_algorith\ + m\x18\x01\x20\x01(\tR\x13encryptionAlgorithm\x12%\n\x0eencryption_key\ + \x18\x02\x20\x01(\tR\rencryptionKey\x122\n\x15encryption_key_sha256\x18\ + \x03\x20\x01(\tR\x13encryptionKeySha256\"\x90\x01\n\x13CommonRequestPara\ + ms\x12&\n\x0cuser_project\x18\x01\x20\x01(\tR\x0buserProjectB\x03\xe0A\ + \x02\x12\x1d\n\nquota_user\x18\x02\x20\x01(\tR\tquotaUser\x122\n\x06fiel\ + ds\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\x06fields\"\xca\ + \x05\n\x10ServiceConstants\"\xb5\x05\n\x06Values\x12\x16\n\x12VALUES_UNS\ + PECIFIED\x10\0\x12\x1b\n\x14MAX_READ_CHUNK_BYTES\x10\x80\x80\x80\x01\x12\ + \x1c\n\x15MAX_WRITE_CHUNK_BYTES\x10\x80\x80\x80\x01\x12\x19\n\x12MAX_OBJ\ + ECT_SIZE_MB\x10\x80\x80\xc0\x02\x12)\n$MAX_CUSTOM_METADATA_FIELD_NAME_BY\ + TES\x10\x80\x08\x12*\n%MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES\x10\x80\x20\ + \x12)\n$MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES\x10\x80@\x12*\n$MAX_BUCKET_\ + METADATA_TOTAL_SIZE_BYTES\x10\x80\xa0\x01\x12'\n#MAX_NOTIFICATION_CONFIG\ + S_PER_BUCKET\x10d\x12\"\n\x1eMAX_LIFECYCLE_RULES_PER_BUCKET\x10d\x12&\n\ + \"MAX_NOTIFICATION_CUSTOM_ATTRIBUTES\x10\x05\x121\n,MAX_NOTIFICATION_CUS\ + TOM_ATTRIBUTE_KEY_LENGTH\x10\x80\x02\x123\n.MAX_NOTIFICATION_CUSTOM_ATTR\ + IBUTE_VALUE_LENGTH\x10\x80\x08\x12\x1c\n\x18MAX_LABELS_ENTRIES_COUNT\x10\ + @\x12\x1f\n\x1bMAX_LABELS_KEY_VALUE_LENGTH\x10?\x12\x1f\n\x1aMAX_LABELS_\ + KEY_VALUE_BYTES\x10\x80\x01\x12.\n)MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQ\ + UEST\x10\xe8\x07\x12\x1e\n\x1aSPLIT_TOKEN_MAX_VALID_DAYS\x10\x0e\x1a\x02\ + \x10\x012\x960\n\x07Storage\x12j\n\x19DeleteBucketAccessControl\x123.goo\ + gle.storage.v1.DeleteBucketAccessControlRequest\x1a\x16.google.protobuf.\ + Empty\"\0\x12t\n\x16GetBucketAccessControl\x120.google.storage.v1.GetBuc\ + ketAccessControlRequest\x1a&.google.storage.v1.BucketAccessControl\"\0\ + \x12z\n\x19InsertBucketAccessControl\x123.google.storage.v1.InsertBucket\ + AccessControlRequest\x1a&.google.storage.v1.BucketAccessControl\"\0\x12\ + \x85\x01\n\x18ListBucketAccessControls\x122.google.storage.v1.ListBucket\ + AccessControlsRequest\x1a3.google.storage.v1.ListBucketAccessControlsRes\ + ponse\"\0\x12z\n\x19UpdateBucketAccessControl\x123.google.storage.v1.Upd\ + ateBucketAccessControlRequest\x1a&.google.storage.v1.BucketAccessControl\ + \"\0\x12x\n\x18PatchBucketAccessControl\x122.google.storage.v1.PatchBuck\ + etAccessControlRequest\x1a&.google.storage.v1.BucketAccessControl\"\0\ + \x12P\n\x0cDeleteBucket\x12&.google.storage.v1.DeleteBucketRequest\x1a\ + \x16.google.protobuf.Empty\"\0\x12M\n\tGetBucket\x12#.google.storage.v1.\ + GetBucketRequest\x1a\x19.google.storage.v1.Bucket\"\0\x12S\n\x0cInsertBu\ + cket\x12&.google.storage.v1.InsertBucketRequest\x1a\x19.google.storage.v\ + 1.Bucket\"\0\x12a\n\x0cListChannels\x12&.google.storage.v1.ListChannelsR\ + equest\x1a'.google.storage.v1.ListChannelsResponse\"\0\x12^\n\x0bListBuc\ + kets\x12%.google.storage.v1.ListBucketsRequest\x1a&.google.storage.v1.Li\ + stBucketsResponse\"\0\x12g\n\x19LockBucketRetentionPolicy\x12-.google.st\ + orage.v1.LockRetentionPolicyRequest\x1a\x19.google.storage.v1.Bucket\"\0\ + \x12U\n\x12GetBucketIamPolicy\x12&.google.storage.v1.GetIamPolicyRequest\ + \x1a\x15.google.iam.v1.Policy\"\0\x12U\n\x12SetBucketIamPolicy\x12&.goog\ + le.storage.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\0\x12u\ + \n\x18TestBucketIamPermissions\x12,.google.storage.v1.TestIamPermissions\ + Request\x1a).google.iam.v1.TestIamPermissionsResponse\"\0\x12Q\n\x0bPatc\ + hBucket\x12%.google.storage.v1.PatchBucketRequest\x1a\x19.google.storage\ + .v1.Bucket\"\0\x12S\n\x0cUpdateBucket\x12&.google.storage.v1.UpdateBucke\ + tRequest\x1a\x19.google.storage.v1.Bucket\"\0\x12N\n\x0bStopChannel\x12%\ + .google.storage.v1.StopChannelRequest\x1a\x16.google.protobuf.Empty\"\0\ + \x12x\n\x20DeleteDefaultObjectAccessControl\x12:.google.storage.v1.Delet\ + eDefaultObjectAccessControlRequest\x1a\x16.google.protobuf.Empty\"\0\x12\ + \x82\x01\n\x1dGetDefaultObjectAccessControl\x127.google.storage.v1.GetDe\ + faultObjectAccessControlRequest\x1a&.google.storage.v1.ObjectAccessContr\ + ol\"\0\x12\x88\x01\n\x20InsertDefaultObjectAccessControl\x12:.google.sto\ + rage.v1.InsertDefaultObjectAccessControlRequest\x1a&.google.storage.v1.O\ + bjectAccessControl\"\0\x12\x93\x01\n\x1fListDefaultObjectAccessControls\ + \x129.google.storage.v1.ListDefaultObjectAccessControlsRequest\x1a3.goog\ + le.storage.v1.ListObjectAccessControlsResponse\"\0\x12\x86\x01\n\x1fPatc\ + hDefaultObjectAccessControl\x129.google.storage.v1.PatchDefaultObjectAcc\ + essControlRequest\x1a&.google.storage.v1.ObjectAccessControl\"\0\x12\x88\ + \x01\n\x20UpdateDefaultObjectAccessControl\x12:.google.storage.v1.Update\ + DefaultObjectAccessControlRequest\x1a&.google.storage.v1.ObjectAccessCon\ + trol\"\0\x12\\\n\x12DeleteNotification\x12,.google.storage.v1.DeleteNoti\ + ficationRequest\x1a\x16.google.protobuf.Empty\"\0\x12_\n\x0fGetNotificat\ + ion\x12).google.storage.v1.GetNotificationRequest\x1a\x1f.google.storage\ + .v1.Notification\"\0\x12e\n\x12InsertNotification\x12,.google.storage.v1\ + .InsertNotificationRequest\x1a\x1f.google.storage.v1.Notification\"\0\ + \x12p\n\x11ListNotifications\x12+.google.storage.v1.ListNotificationsReq\ + uest\x1a,.google.storage.v1.ListNotificationsResponse\"\0\x12j\n\x19Dele\ + teObjectAccessControl\x123.google.storage.v1.DeleteObjectAccessControlRe\ + quest\x1a\x16.google.protobuf.Empty\"\0\x12t\n\x16GetObjectAccessControl\ + \x120.google.storage.v1.GetObjectAccessControlRequest\x1a&.google.storag\ + e.v1.ObjectAccessControl\"\0\x12z\n\x19InsertObjectAccessControl\x123.go\ + ogle.storage.v1.InsertObjectAccessControlRequest\x1a&.google.storage.v1.\ + ObjectAccessControl\"\0\x12\x85\x01\n\x18ListObjectAccessControls\x122.g\ + oogle.storage.v1.ListObjectAccessControlsRequest\x1a3.google.storage.v1.\ + ListObjectAccessControlsResponse\"\0\x12x\n\x18PatchObjectAccessControl\ + \x122.google.storage.v1.PatchObjectAccessControlRequest\x1a&.google.stor\ + age.v1.ObjectAccessControl\"\0\x12z\n\x19UpdateObjectAccessControl\x123.\ + google.storage.v1.UpdateObjectAccessControlRequest\x1a&.google.storage.v\ + 1.ObjectAccessControl\"\0\x12U\n\rComposeObject\x12'.google.storage.v1.C\ + omposeObjectRequest\x1a\x19.google.storage.v1.Object\"\0\x12O\n\nCopyObj\ + ect\x12$.google.storage.v1.CopyObjectRequest\x1a\x19.google.storage.v1.O\ + bject\"\0\x12P\n\x0cDeleteObject\x12&.google.storage.v1.DeleteObjectRequ\ + est\x1a\x16.google.protobuf.Empty\"\0\x12M\n\tGetObject\x12#.google.stor\ + age.v1.GetObjectRequest\x1a\x19.google.storage.v1.Object\"\0\x12i\n\x0eG\ + etObjectMedia\x12(.google.storage.v1.GetObjectMediaRequest\x1a).google.s\ + torage.v1.GetObjectMediaResponse\"\00\x01\x12U\n\x0cInsertObject\x12&.go\ + ogle.storage.v1.InsertObjectRequest\x1a\x19.google.storage.v1.Object\"\0\ + (\x01\x12^\n\x0bListObjects\x12%.google.storage.v1.ListObjectsRequest\ + \x1a&.google.storage.v1.ListObjectsResponse\"\0\x12^\n\rRewriteObject\ + \x12'.google.storage.v1.RewriteObjectRequest\x1a\".google.storage.v1.Rew\ + riteResponse\"\0\x12v\n\x13StartResumableWrite\x12-.google.storage.v1.St\ + artResumableWriteRequest\x1a..google.storage.v1.StartResumableWriteRespo\ + nse\"\0\x12m\n\x10QueryWriteStatus\x12*.google.storage.v1.QueryWriteStat\ + usRequest\x1a+.google.storage.v1.QueryWriteStatusResponse\"\0\x12Q\n\x0b\ + PatchObject\x12%.google.storage.v1.PatchObjectRequest\x1a\x19.google.sto\ + rage.v1.Object\"\0\x12S\n\x0cUpdateObject\x12&.google.storage.v1.UpdateO\ + bjectRequest\x1a\x19.google.storage.v1.Object\"\0\x12U\n\x12GetObjectIam\ + Policy\x12&.google.storage.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.\ + Policy\"\0\x12U\n\x12SetObjectIamPolicy\x12&.google.storage.v1.SetIamPol\ + icyRequest\x1a\x15.google.iam.v1.Policy\"\0\x12u\n\x18TestObjectIamPermi\ + ssions\x12,.google.storage.v1.TestIamPermissionsRequest\x1a).google.iam.\ + v1.TestIamPermissionsResponse\"\0\x12Z\n\x0fWatchAllObjects\x12).google.\ + storage.v1.WatchAllObjectsRequest\x1a\x1a.google.storage.v1.Channel\"\0\ + \x12l\n\x11GetServiceAccount\x122.google.storage.v1.GetProjectServiceAcc\ + ountRequest\x1a!.google.storage.v1.ServiceAccount\"\0\x12d\n\rCreateHmac\ + Key\x12'.google.storage.v1.CreateHmacKeyRequest\x1a(.google.storage.v1.C\ + reateHmacKeyResponse\"\0\x12R\n\rDeleteHmacKey\x12'.google.storage.v1.De\ + leteHmacKeyRequest\x1a\x16.google.protobuf.Empty\"\0\x12X\n\nGetHmacKey\ + \x12$.google.storage.v1.GetHmacKeyRequest\x1a\".google.storage.v1.HmacKe\ + yMetadata\"\0\x12a\n\x0cListHmacKeys\x12&.google.storage.v1.ListHmacKeys\ + Request\x1a'.google.storage.v1.ListHmacKeysResponse\"\0\x12^\n\rUpdateHm\ + acKey\x12'.google.storage.v1.UpdateHmacKeyRequest\x1a\".google.storage.v\ + 1.HmacKeyMetadata\"\0\x1a\xa7\x02\xcaA\x16storage.googleapis.com\xd2A\ + \x8a\x02https://www.googleapis.com/auth/cloud-platform,https://www.googl\ + eapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/\ + devstorage.full_control,https://www.googleapis.com/auth/devstorage.read_\ + only,https://www.googleapis.com/auth/devstorage.read_writeBS\n\x15com.go\ + ogle.storage.v1P\x01Z8google.golang.org/genproto/googleapis/storage/v1;s\ + torageJ\xe5\x84\x05\n\x07\x12\x05\x0e\0\xbc\x0f\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\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\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\03\n\t\n\x02\x03\ + \x07\x12\x03\x19\0!\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\x01\x12\x03\x1d\0.\n6\ + \n\x02\x06\0\x12\x05\x20\0\xcd\x02\x01\x1a)\x20Manages\x20Google\x20Clou\ + d\x20Storage\x20resources.\n\n\n\n\x03\x06\0\x01\x12\x03\x20\x08\x0f\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'>\nd\n\x04\x06\0\x02\0\x12\x04+\x02,\x03\x1aV\x20Permanen\ + tly\x20deletes\x20the\x20ACL\x20entry\x20for\x20the\x20specified\x20enti\ + ty\x20on\x20the\x20specified\n\x20bucket.\n\n\x0c\n\x05\x06\0\x02\0\x01\ + \x12\x03+\x06\x1f\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03+\x20@\n\x0c\n\x05\ + \x06\0\x02\0\x03\x12\x03+K`\nW\n\x04\x06\0\x02\x01\x12\x04/\x020\x03\x1a\ + I\x20Returns\x20the\x20ACL\x20entry\x20for\x20the\x20specified\x20entity\ + \x20on\x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x01\x01\ + \x12\x03/\x06\x1c\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03/\x1d:\n\x0c\n\ + \x05\x06\0\x02\x01\x03\x12\x03/EX\n@\n\x04\x06\0\x02\x02\x12\x043\x024\ + \x03\x1a2\x20Creates\x20a\x20new\x20ACL\x20entry\x20on\x20the\x20specifi\ + ed\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x033\x06\x1f\n\x0c\n\ + \x05\x06\0\x02\x02\x02\x12\x033\x20@\n\x0c\n\x05\x06\0\x02\x02\x03\x12\ + \x033K^\n>\n\x04\x06\0\x02\x03\x12\x047\x028\x03\x1a0\x20Retrieves\x20AC\ + L\x20entries\x20on\x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\0\ + \x02\x03\x01\x12\x037\x06\x1e\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x037\x1f\ + >\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x037Ii\n\xaa\x01\n\x04\x06\0\x02\x04\ + \x12\x04=\x02>\x03\x1a\x9b\x01\x20Updates\x20an\x20ACL\x20entry\x20on\ + \x20the\x20specified\x20bucket.\x20Equivalent\x20to\n\x20PatchBucketAcce\ + ssControl,\x20but\x20all\x20unspecified\x20fields\x20will\x20be\n\x20res\ + et\x20to\x20their\x20default\x20values.\n\n\x0c\n\x05\x06\0\x02\x04\x01\ + \x12\x03=\x06\x1f\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03=\x20@\n\x0c\n\ + \x05\x06\0\x02\x04\x03\x12\x03=K^\n=\n\x04\x06\0\x02\x05\x12\x04A\x02B\ + \x03\x1a/\x20Updates\x20an\x20ACL\x20entry\x20on\x20the\x20specified\x20\ + bucket.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03A\x06\x1e\n\x0c\n\x05\x06\ + \0\x02\x05\x02\x12\x03A\x1f>\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03AI\\\n\ + 4\n\x04\x06\0\x02\x06\x12\x04E\x02F\x03\x1a&\x20Permanently\x20deletes\ + \x20an\x20empty\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03E\x06\ + \x12\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03E\x13&\n\x0c\n\x05\x06\0\x02\ + \x06\x03\x12\x03E1F\n:\n\x04\x06\0\x02\x07\x12\x04I\x02J\x03\x1a,\x20Ret\ + urns\x20metadata\x20for\x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\ + \0\x02\x07\x01\x12\x03I\x06\x0f\n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03I\ + \x10\x20\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03I+1\n%\n\x04\x06\0\x02\x08\ + \x12\x04M\x02N\x03\x1a\x17\x20Creates\x20a\x20new\x20bucket.\n\n\x0c\n\ + \x05\x06\0\x02\x08\x01\x12\x03M\x06\x12\n\x0c\n\x05\x06\0\x02\x08\x02\ + \x12\x03M\x13&\n\x0c\n\x05\x06\0\x02\x08\x03\x12\x03M17\nP\n\x04\x06\0\ + \x02\t\x12\x04Q\x02R\x03\x1aB\x20List\x20active\x20object\x20change\x20n\ + otification\x20channels\x20for\x20this\x20bucket.\n\n\x0c\n\x05\x06\0\ + \x02\t\x01\x12\x03Q\x06\x12\n\x0c\n\x05\x06\0\x02\t\x02\x12\x03Q\x13&\n\ + \x0c\n\x05\x06\0\x02\t\x03\x12\x03Q1E\n@\n\x04\x06\0\x02\n\x12\x04U\x02V\ + \x03\x1a2\x20Retrieves\x20a\x20list\x20of\x20buckets\x20for\x20a\x20give\ + n\x20project.\n\n\x0c\n\x05\x06\0\x02\n\x01\x12\x03U\x06\x11\n\x0c\n\x05\ + \x06\0\x02\n\x02\x12\x03U\x12$\n\x0c\n\x05\x06\0\x02\n\x03\x12\x03U/B\n3\ + \n\x04\x06\0\x02\x0b\x12\x04Y\x02Z\x03\x1a%\x20Locks\x20retention\x20pol\ + icy\x20on\x20a\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x0b\x01\x12\x03Y\x06\ + \x1f\n\x0c\n\x05\x06\0\x02\x0b\x02\x12\x03Y\x20:\n\x0c\n\x05\x06\0\x02\ + \x0b\x03\x12\x03YEK\n=\n\x04\x06\0\x02\x0c\x12\x04]\x02^\x03\x1a/\x20Get\ + s\x20the\x20IAM\x20policy\x20for\x20the\x20specified\x20bucket.\n\n\x0c\ + \n\x05\x06\0\x02\x0c\x01\x12\x03]\x06\x18\n\x0c\n\x05\x06\0\x02\x0c\x02\ + \x12\x03]\x19,\n\x0c\n\x05\x06\0\x02\x0c\x03\x12\x03]7K\n?\n\x04\x06\0\ + \x02\r\x12\x04a\x02b\x03\x1a1\x20Updates\x20an\x20IAM\x20policy\x20for\ + \x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\0\x02\r\x01\x12\x03a\ + \x06\x18\n\x0c\n\x05\x06\0\x02\r\x02\x12\x03a\x19,\n\x0c\n\x05\x06\0\x02\ + \r\x03\x12\x03a7K\nm\n\x04\x06\0\x02\x0e\x12\x04f\x02g\x03\x1a_\x20Tests\ + \x20a\x20set\x20of\x20permissions\x20on\x20the\x20given\x20bucket\x20to\ + \x20see\x20which,\x20if\n\x20any,\x20are\x20held\x20by\x20the\x20caller.\ + \n\n\x0c\n\x05\x06\0\x02\x0e\x01\x12\x03f\x06\x1e\n\x0c\n\x05\x06\0\x02\ + \x0e\x02\x12\x03f\x1f8\n\x0c\n\x05\x06\0\x02\x0e\x03\x12\x03fCk\n\x9b\ + \x01\n\x04\x06\0\x02\x0f\x12\x04k\x02l\x03\x1a\x8c\x01\x20Updates\x20a\ + \x20bucket.\x20Changes\x20to\x20the\x20bucket\x20will\x20be\x20readable\ + \x20immediately\x20after\n\x20writing,\x20but\x20configuration\x20change\ + s\x20may\x20take\x20time\x20to\x20propagate.\n\n\x0c\n\x05\x06\0\x02\x0f\ + \x01\x12\x03k\x06\x11\n\x0c\n\x05\x06\0\x02\x0f\x02\x12\x03k\x12$\n\x0c\ + \n\x05\x06\0\x02\x0f\x03\x12\x03k/5\n\xcd\x02\n\x04\x06\0\x02\x10\x12\ + \x04s\x02t\x03\x1a\xbe\x02\x20Updates\x20a\x20bucket.\x20Equivalent\x20t\ + o\x20PatchBucket,\x20but\x20always\x20replaces\x20all\n\x20mutatable\x20\ + fields\x20of\x20the\x20bucket\x20with\x20new\x20values,\x20reverting\x20\ + all\n\x20unspecified\x20fields\x20to\x20their\x20default\x20values.\n\ + \x20Like\x20PatchBucket,\x20Changes\x20to\x20the\x20bucket\x20will\x20be\ + \x20readable\x20immediately\x20after\n\x20writing,\x20but\x20configurati\ + on\x20changes\x20may\x20take\x20time\x20to\x20propagate.\n\n\x0c\n\x05\ + \x06\0\x02\x10\x01\x12\x03s\x06\x12\n\x0c\n\x05\x06\0\x02\x10\x02\x12\ + \x03s\x13&\n\x0c\n\x05\x06\0\x02\x10\x03\x12\x03s17\n\xf9\x01\n\x04\x06\ + \0\x02\x11\x12\x04z\x02{\x03\x1a\xea\x01\x20Halts\x20\"Object\x20Change\ + \x20Notification\"\x20push\x20messagages.\n\x20See\x20https://cloud.goog\ + le.com/storage/docs/object-change-notification\n\x20Note:\x20this\x20is\ + \x20not\x20related\x20to\x20the\x20newer\x20\"Notifications\"\x20resourc\ + e,\x20which\n\x20are\x20stopped\x20using\x20DeleteNotification.\n\n\x0c\ + \n\x05\x06\0\x02\x11\x01\x12\x03z\x06\x11\n\x0c\n\x05\x06\0\x02\x11\x02\ + \x12\x03z\x12$\n\x0c\n\x05\x06\0\x02\x11\x03\x12\x03z/D\nt\n\x04\x06\0\ + \x02\x12\x12\x05\x7f\x02\x80\x01\x03\x1ae\x20Permanently\x20deletes\x20t\ + he\x20default\x20object\x20ACL\x20entry\x20for\x20the\x20specified\x20en\ + tity\n\x20on\x20the\x20specified\x20bucket.\n\n\x0c\n\x05\x06\0\x02\x12\ + \x01\x12\x03\x7f\x06&\n\x0c\n\x05\x06\0\x02\x12\x02\x12\x03\x7f'N\n\x0c\ + \n\x05\x06\0\x02\x12\x03\x12\x03\x7fYn\ni\n\x04\x06\0\x02\x13\x12\x06\ + \x84\x01\x02\x85\x01\x03\x1aY\x20Returns\x20the\x20default\x20object\x20\ + ACL\x20entry\x20for\x20the\x20specified\x20entity\x20on\x20the\n\x20spec\ + ified\x20bucket.\n\n\r\n\x05\x06\0\x02\x13\x01\x12\x04\x84\x01\x06#\n\r\ + \n\x05\x06\0\x02\x13\x02\x12\x04\x84\x01$H\n\r\n\x05\x06\0\x02\x13\x03\ + \x12\x04\x84\x01Sf\nQ\n\x04\x06\0\x02\x14\x12\x06\x88\x01\x02\x89\x01\ + \x03\x1aA\x20Creates\x20a\x20new\x20default\x20object\x20ACL\x20entry\ + \x20on\x20the\x20specified\x20bucket.\n\n\r\n\x05\x06\0\x02\x14\x01\x12\ + \x04\x88\x01\x06&\n\r\n\x05\x06\0\x02\x14\x02\x12\x04\x88\x01'N\n\r\n\ + \x05\x06\0\x02\x14\x03\x12\x04\x88\x01Yl\nO\n\x04\x06\0\x02\x15\x12\x06\ + \x8c\x01\x02\x8d\x01\x03\x1a?\x20Retrieves\x20default\x20object\x20ACL\ + \x20entries\x20on\x20the\x20specified\x20bucket.\n\n\r\n\x05\x06\0\x02\ + \x15\x01\x12\x04\x8c\x01\x06%\n\r\n\x05\x06\0\x02\x15\x02\x12\x04\x8c\ + \x01&L\n\r\n\x05\x06\0\x02\x15\x03\x12\x04\x8c\x01Ww\nM\n\x04\x06\0\x02\ + \x16\x12\x06\x90\x01\x02\x91\x01\x03\x1a=\x20Updates\x20a\x20default\x20\ + object\x20ACL\x20entry\x20on\x20the\x20specified\x20bucket.\n\n\r\n\x05\ + \x06\0\x02\x16\x01\x12\x04\x90\x01\x06%\n\r\n\x05\x06\0\x02\x16\x02\x12\ + \x04\x90\x01&L\n\r\n\x05\x06\0\x02\x16\x03\x12\x04\x90\x01Wj\n\xbc\x01\n\ + \x04\x06\0\x02\x17\x12\x06\x96\x01\x02\x97\x01\x03\x1a\xab\x01\x20Update\ + s\x20a\x20default\x20object\x20ACL\x20entry\x20on\x20the\x20specified\ + \x20bucket.\x20Equivalent\x20to\n\x20PatchDefaultObjectAccessControl,\ + \x20but\x20modifies\x20all\x20unspecified\x20fields\x20to\n\x20their\x20\ + default\x20values.\n\n\r\n\x05\x06\0\x02\x17\x01\x12\x04\x96\x01\x06&\n\ + \r\n\x05\x06\0\x02\x17\x02\x12\x04\x96\x01'N\n\r\n\x05\x06\0\x02\x17\x03\ + \x12\x04\x96\x01Yl\n\xaf\x01\n\x04\x06\0\x02\x18\x12\x06\x9c\x01\x02\x9d\ + \x01\x03\x1a\x9e\x01\x20Permanently\x20deletes\x20a\x20notification\x20s\ + ubscription.\n\x20Note:\x20Older,\x20\"Object\x20Change\x20Notification\ + \"\x20push\x20subscriptions\x20should\x20be\n\x20deleted\x20using\x20Sto\ + pChannel\x20instead.\n\n\r\n\x05\x06\0\x02\x18\x01\x12\x04\x9c\x01\x06\ + \x18\n\r\n\x05\x06\0\x02\x18\x02\x12\x04\x9c\x01\x192\n\r\n\x05\x06\0\ + \x02\x18\x03\x12\x04\x9c\x01=R\n4\n\x04\x06\0\x02\x19\x12\x06\xa0\x01\ + \x02\xa1\x01\x03\x1a$\x20View\x20a\x20notification\x20configuration.\n\n\ + \r\n\x05\x06\0\x02\x19\x01\x12\x04\xa0\x01\x06\x15\n\r\n\x05\x06\0\x02\ + \x19\x02\x12\x04\xa0\x01\x16,\n\r\n\x05\x06\0\x02\x19\x03\x12\x04\xa0\ + \x017C\n\xea\x01\n\x04\x06\0\x02\x1a\x12\x06\xa7\x01\x02\xa8\x01\x03\x1a\ + \xd9\x01\x20Creates\x20a\x20notification\x20subscription\x20for\x20a\x20\ + given\x20bucket.\n\x20These\x20notifications,\x20when\x20triggered,\x20p\ + ublish\x20messages\x20to\x20the\x20specified\n\x20Cloud\x20Pub/Sub\x20to\ + pics.\n\x20See\x20https://cloud.google.com/storage/docs/pubsub-notificat\ + ions.\n\n\r\n\x05\x06\0\x02\x1a\x01\x12\x04\xa7\x01\x06\x18\n\r\n\x05\ + \x06\0\x02\x1a\x02\x12\x04\xa7\x01\x192\n\r\n\x05\x06\0\x02\x1a\x03\x12\ + \x04\xa7\x01=I\nT\n\x04\x06\0\x02\x1b\x12\x06\xab\x01\x02\xac\x01\x03\ + \x1aD\x20Retrieves\x20a\x20list\x20of\x20notification\x20subscriptions\ + \x20for\x20a\x20given\x20bucket.\n\n\r\n\x05\x06\0\x02\x1b\x01\x12\x04\ + \xab\x01\x06\x17\n\r\n\x05\x06\0\x02\x1b\x02\x12\x04\xab\x01\x180\n\r\n\ + \x05\x06\0\x02\x1b\x03\x12\x04\xab\x01;T\nf\n\x04\x06\0\x02\x1c\x12\x06\ + \xb0\x01\x02\xb1\x01\x03\x1aV\x20Permanently\x20deletes\x20the\x20ACL\ + \x20entry\x20for\x20the\x20specified\x20entity\x20on\x20the\x20specified\ + \n\x20object.\n\n\r\n\x05\x06\0\x02\x1c\x01\x12\x04\xb0\x01\x06\x1f\n\r\ + \n\x05\x06\0\x02\x1c\x02\x12\x04\xb0\x01\x20@\n\r\n\x05\x06\0\x02\x1c\ + \x03\x12\x04\xb0\x01K`\nY\n\x04\x06\0\x02\x1d\x12\x06\xb4\x01\x02\xb5\ + \x01\x03\x1aI\x20Returns\x20the\x20ACL\x20entry\x20for\x20the\x20specifi\ + ed\x20entity\x20on\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\x02\ + \x1d\x01\x12\x04\xb4\x01\x06\x1c\n\r\n\x05\x06\0\x02\x1d\x02\x12\x04\xb4\ + \x01\x1d:\n\r\n\x05\x06\0\x02\x1d\x03\x12\x04\xb4\x01EX\nB\n\x04\x06\0\ + \x02\x1e\x12\x06\xb8\x01\x02\xb9\x01\x03\x1a2\x20Creates\x20a\x20new\x20\ + ACL\x20entry\x20on\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\x02\ + \x1e\x01\x12\x04\xb8\x01\x06\x1f\n\r\n\x05\x06\0\x02\x1e\x02\x12\x04\xb8\ + \x01\x20@\n\r\n\x05\x06\0\x02\x1e\x03\x12\x04\xb8\x01K^\n@\n\x04\x06\0\ + \x02\x1f\x12\x06\xbc\x01\x02\xbd\x01\x03\x1a0\x20Retrieves\x20ACL\x20ent\ + ries\x20on\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\x02\x1f\x01\ + \x12\x04\xbc\x01\x06\x1e\n\r\n\x05\x06\0\x02\x1f\x02\x12\x04\xbc\x01\x1f\ + >\n\r\n\x05\x06\0\x02\x1f\x03\x12\x04\xbc\x01Ii\n\xd3\x01\n\x04\x06\0\ + \x02\x20\x12\x06\xc2\x01\x02\xc3\x01\x03\x1a\xc2\x01\x20Patches\x20an\ + \x20ACL\x20entry\x20on\x20the\x20specified\x20object.\x20\x20Patch\x20is\ + \x20similar\x20to\x20update,\n\x20but\x20only\x20applies\x20or\x20append\ + s\x20the\x20specified\x20fields\x20in\x20the\n\x20object_access_control\ + \x20object.\x20\x20Other\x20fields\x20are\x20unaffected.\n\n\r\n\x05\x06\ + \0\x02\x20\x01\x12\x04\xc2\x01\x06\x1e\n\r\n\x05\x06\0\x02\x20\x02\x12\ + \x04\xc2\x01\x1f>\n\r\n\x05\x06\0\x02\x20\x03\x12\x04\xc2\x01I\\\n?\n\ + \x04\x06\0\x02!\x12\x06\xc6\x01\x02\xc7\x01\x03\x1a/\x20Updates\x20an\ + \x20ACL\x20entry\x20on\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\ + \x02!\x01\x12\x04\xc6\x01\x06\x1f\n\r\n\x05\x06\0\x02!\x02\x12\x04\xc6\ + \x01\x20@\n\r\n\x05\x06\0\x02!\x03\x12\x04\xc6\x01K^\n`\n\x04\x06\0\x02\ + \"\x12\x06\xcb\x01\x02\xcc\x01\x03\x1aP\x20Concatenates\x20a\x20list\x20\ + of\x20existing\x20objects\x20into\x20a\x20new\x20object\x20in\x20the\x20\ + same\n\x20bucket.\n\n\r\n\x05\x06\0\x02\"\x01\x12\x04\xcb\x01\x06\x13\n\ + \r\n\x05\x06\0\x02\"\x02\x12\x04\xcb\x01\x14(\n\r\n\x05\x06\0\x02\"\x03\ + \x12\x04\xcb\x0139\na\n\x04\x06\0\x02#\x12\x06\xd0\x01\x02\xd1\x01\x03\ + \x1aQ\x20Copies\x20a\x20source\x20object\x20to\x20a\x20destination\x20ob\ + ject.\x20Optionally\x20overrides\n\x20metadata.\n\n\r\n\x05\x06\0\x02#\ + \x01\x12\x04\xd0\x01\x06\x10\n\r\n\x05\x06\0\x02#\x02\x12\x04\xd0\x01\ + \x11\"\n\r\n\x05\x06\0\x02#\x03\x12\x04\xd0\x01-3\n\xa7\x01\n\x04\x06\0\ + \x02$\x12\x06\xd6\x01\x02\xd7\x01\x03\x1a\x96\x01\x20Deletes\x20an\x20ob\ + ject\x20and\x20its\x20metadata.\x20Deletions\x20are\x20permanent\x20if\ + \x20versioning\n\x20is\x20not\x20enabled\x20for\x20the\x20bucket,\x20or\ + \x20if\x20the\x20`generation`\x20parameter\n\x20is\x20used.\n\n\r\n\x05\ + \x06\0\x02$\x01\x12\x04\xd6\x01\x06\x12\n\r\n\x05\x06\0\x02$\x02\x12\x04\ + \xd6\x01\x13&\n\r\n\x05\x06\0\x02$\x03\x12\x04\xd6\x011F\n1\n\x04\x06\0\ + \x02%\x12\x06\xda\x01\x02\xdb\x01\x03\x1a!\x20Retrieves\x20an\x20object'\ + s\x20metadata.\n\n\r\n\x05\x06\0\x02%\x01\x12\x04\xda\x01\x06\x0f\n\r\n\ + \x05\x06\0\x02%\x02\x12\x04\xda\x01\x10\x20\n\r\n\x05\x06\0\x02%\x03\x12\ + \x04\xda\x01+1\n)\n\x04\x06\0\x02&\x12\x06\xde\x01\x02\xdf\x01\x03\x1a\ + \x19\x20Reads\x20an\x20object's\x20data.\n\n\r\n\x05\x06\0\x02&\x01\x12\ + \x04\xde\x01\x06\x14\n\r\n\x05\x06\0\x02&\x02\x12\x04\xde\x01\x15*\n\r\n\ + \x05\x06\0\x02&\x06\x12\x04\xde\x015;\n\r\n\x05\x06\0\x02&\x03\x12\x04\ + \xde\x01\nD\n\x04\x06\0\x02(\x12\x06\xfd\x01\x02\xfe\x01\x03\x1a4\ + \x20Retrieves\x20a\x20list\x20of\x20objects\x20matching\x20the\x20criter\ + ia.\n\n\r\n\x05\x06\0\x02(\x01\x12\x04\xfd\x01\x06\x11\n\r\n\x05\x06\0\ + \x02(\x02\x12\x04\xfd\x01\x12$\n\r\n\x05\x06\0\x02(\x03\x12\x04\xfd\x01/\ + B\nc\n\x04\x06\0\x02)\x12\x06\x82\x02\x02\x83\x02\x03\x1aS\x20Rewrites\ + \x20a\x20source\x20object\x20to\x20a\x20destination\x20object.\x20Option\ + ally\x20overrides\n\x20metadata.\n\n\r\n\x05\x06\0\x02)\x01\x12\x04\x82\ + \x02\x06\x13\n\r\n\x05\x06\0\x02)\x02\x12\x04\x82\x02\x14(\n\r\n\x05\x06\ + \0\x02)\x03\x12\x04\x82\x023B\n\xac\x01\n\x04\x06\0\x02*\x12\x06\x88\x02\ + \x02\x89\x02\x03\x1a\x9b\x01\x20Starts\x20a\x20resumable\x20write.\x20Ho\ + w\x20long\x20the\x20write\x20operation\x20remains\x20valid,\x20and\n\x20\ + what\x20happens\x20when\x20the\x20write\x20operation\x20becomes\x20inval\ + id,\x20are\n\x20service-dependent.\n\n\r\n\x05\x06\0\x02*\x01\x12\x04\ + \x88\x02\x06\x19\n\r\n\x05\x06\0\x02*\x02\x12\x04\x88\x02\x1a4\n\r\n\x05\ + \x06\0\x02*\x03\x12\x04\x88\x02?Z\n\xbe\x05\n\x04\x06\0\x02+\x12\x06\x98\ + \x02\x02\x99\x02\x03\x1a\xad\x05\x20Determines\x20the\x20`committed_size\ + `\x20for\x20an\x20object\x20that\x20is\x20being\x20written,\x20which\n\ + \x20can\x20then\x20be\x20used\x20as\x20the\x20`write_offset`\x20for\x20t\ + he\x20next\x20`Write()`\x20call.\n\n\x20If\x20the\x20object\x20does\x20n\ + ot\x20exist\x20(i.e.,\x20the\x20object\x20has\x20been\x20deleted,\x20or\ + \x20the\n\x20first\x20`Write()`\x20has\x20not\x20yet\x20reached\x20the\ + \x20service),\x20this\x20method\x20returns\x20the\n\x20error\x20`NOT_FOU\ + ND`.\n\n\x20The\x20client\x20**may**\x20call\x20`QueryWriteStatus()`\x20\ + at\x20any\x20time\x20to\x20determine\x20how\n\x20much\x20data\x20has\x20\ + been\x20processed\x20for\x20this\x20object.\x20This\x20is\x20useful\x20i\ + f\x20the\n\x20client\x20is\x20buffering\x20data\x20and\x20needs\x20to\ + \x20know\x20which\x20data\x20can\x20be\x20safely\n\x20evicted.\x20For\ + \x20any\x20sequence\x20of\x20`QueryWriteStatus()`\x20calls\x20for\x20a\ + \x20given\n\x20object\x20name,\x20the\x20sequence\x20of\x20returned\x20`\ + committed_size`\x20values\x20will\x20be\n\x20non-decreasing.\n\n\r\n\x05\ + \x06\0\x02+\x01\x12\x04\x98\x02\x06\x16\n\r\n\x05\x06\0\x02+\x02\x12\x04\ + \x98\x02\x17.\n\r\n\x05\x06\0\x02+\x03\x12\x04\x98\x029Q\n/\n\x04\x06\0\ + \x02,\x12\x06\x9c\x02\x02\x9d\x02\x03\x1a\x1f\x20Updates\x20an\x20object\ + 's\x20metadata.\n\n\r\n\x05\x06\0\x02,\x01\x12\x04\x9c\x02\x06\x11\n\r\n\ + \x05\x06\0\x02,\x02\x12\x04\x9c\x02\x12$\n\r\n\x05\x06\0\x02,\x03\x12\ + \x04\x9c\x02/5\n\xcf\x01\n\x04\x06\0\x02-\x12\x06\xa2\x02\x02\xa3\x02\ + \x03\x1a\xbe\x01\x20Updates\x20an\x20object's\x20metadata.\x20Equivalent\ + \x20to\x20PatchObject,\x20but\x20always\n\x20replaces\x20all\x20mutatabl\ + e\x20fields\x20of\x20the\x20bucket\x20with\x20new\x20values,\x20revertin\ + g\x20all\n\x20unspecified\x20fields\x20to\x20their\x20default\x20values.\ + \n\n\r\n\x05\x06\0\x02-\x01\x12\x04\xa2\x02\x06\x12\n\r\n\x05\x06\0\x02-\ + \x02\x12\x04\xa2\x02\x13&\n\r\n\x05\x06\0\x02-\x03\x12\x04\xa2\x0217\n?\ + \n\x04\x06\0\x02.\x12\x06\xa6\x02\x02\xa7\x02\x03\x1a/\x20Gets\x20the\ + \x20IAM\x20policy\x20for\x20the\x20specified\x20object.\n\n\r\n\x05\x06\ + \0\x02.\x01\x12\x04\xa6\x02\x06\x18\n\r\n\x05\x06\0\x02.\x02\x12\x04\xa6\ + \x02\x19,\n\r\n\x05\x06\0\x02.\x03\x12\x04\xa6\x027K\nA\n\x04\x06\0\x02/\ + \x12\x06\xaa\x02\x02\xab\x02\x03\x1a1\x20Updates\x20an\x20IAM\x20policy\ + \x20for\x20the\x20specified\x20object.\n\n\r\n\x05\x06\0\x02/\x01\x12\ + \x04\xaa\x02\x06\x18\n\r\n\x05\x06\0\x02/\x02\x12\x04\xaa\x02\x19,\n\r\n\ + \x05\x06\0\x02/\x03\x12\x04\xaa\x027K\no\n\x04\x06\0\x020\x12\x06\xaf\ + \x02\x02\xb0\x02\x03\x1a_\x20Tests\x20a\x20set\x20of\x20permissions\x20o\ + n\x20the\x20given\x20object\x20to\x20see\x20which,\x20if\n\x20any,\x20ar\ + e\x20held\x20by\x20the\x20caller.\n\n\r\n\x05\x06\0\x020\x01\x12\x04\xaf\ + \x02\x06\x1e\n\r\n\x05\x06\0\x020\x02\x12\x04\xaf\x02\x1f8\n\r\n\x05\x06\ + \0\x020\x03\x12\x04\xaf\x02Ck\n?\n\x04\x06\0\x021\x12\x06\xb3\x02\x02\ + \xb4\x02\x03\x1a/\x20Watch\x20for\x20changes\x20on\x20all\x20objects\x20\ + in\x20a\x20bucket.\n\n\r\n\x05\x06\0\x021\x01\x12\x04\xb3\x02\x06\x15\n\ + \r\n\x05\x06\0\x021\x02\x12\x04\xb3\x02\x16,\n\r\n\x05\x06\0\x021\x03\ + \x12\x04\xb3\x027>\nY\n\x04\x06\0\x022\x12\x06\xb7\x02\x02\xb8\x02\x03\ + \x1aI\x20Retrieves\x20the\x20name\x20of\x20a\x20project's\x20Google\x20C\ + loud\x20Storage\x20service\x20account.\n\n\r\n\x05\x06\0\x022\x01\x12\ + \x04\xb7\x02\x06\x17\n\r\n\x05\x06\0\x022\x02\x12\x04\xb7\x02\x187\n\r\n\ + \x05\x06\0\x022\x03\x12\x04\xb7\x02BP\nG\n\x04\x06\0\x023\x12\x06\xbb\ + \x02\x02\xbc\x02\x03\x1a7\x20Creates\x20a\x20new\x20HMAC\x20key\x20for\ + \x20the\x20given\x20service\x20account.\n\n\r\n\x05\x06\0\x023\x01\x12\ + \x04\xbb\x02\x06\x13\n\r\n\x05\x06\0\x023\x02\x12\x04\xbb\x02\x14(\n\r\n\ + \x05\x06\0\x023\x03\x12\x04\xbb\x023H\nN\n\x04\x06\0\x024\x12\x06\xbf\ + \x02\x02\xc0\x02\x03\x1a>\x20Deletes\x20a\x20given\x20HMAC\x20key.\x20\ + \x20Key\x20must\x20be\x20in\x20an\x20INACTIVE\x20state.\n\n\r\n\x05\x06\ + \0\x024\x01\x12\x04\xbf\x02\x06\x13\n\r\n\x05\x06\0\x024\x02\x12\x04\xbf\ + \x02\x14(\n\r\n\x05\x06\0\x024\x03\x12\x04\xbf\x023H\nF\n\x04\x06\0\x025\ + \x12\x06\xc3\x02\x02\xc4\x02\x03\x1a6\x20Gets\x20an\x20existing\x20HMAC\ + \x20key\x20metadata\x20for\x20the\x20given\x20id.\n\n\r\n\x05\x06\0\x025\ + \x01\x12\x04\xc3\x02\x06\x10\n\r\n\x05\x06\0\x025\x02\x12\x04\xc3\x02\ + \x11\"\n\r\n\x05\x06\0\x025\x03\x12\x04\xc3\x02-<\n]\n\x04\x06\0\x026\ + \x12\x06\xc7\x02\x02\xc8\x02\x03\x1aM\x20Lists\x20HMAC\x20keys\x20under\ + \x20a\x20given\x20project\x20with\x20the\x20additional\x20filters\x20pro\ + vided.\n\n\r\n\x05\x06\0\x026\x01\x12\x04\xc7\x02\x06\x12\n\r\n\x05\x06\ + \0\x026\x02\x12\x04\xc7\x02\x13&\n\r\n\x05\x06\0\x026\x03\x12\x04\xc7\ + \x021E\nM\n\x04\x06\0\x027\x12\x06\xcb\x02\x02\xcc\x02\x03\x1a=\x20Updat\ + es\x20a\x20given\x20HMAC\x20key\x20state\x20between\x20ACTIVE\x20and\x20\ + INACTIVE.\n\n\r\n\x05\x06\0\x027\x01\x12\x04\xcb\x02\x06\x13\n\r\n\x05\ + \x06\0\x027\x02\x12\x04\xcb\x02\x14(\n\r\n\x05\x06\0\x027\x03\x12\x04\ + \xcb\x023B\n>\n\x02\x04\0\x12\x06\xd0\x02\0\xdf\x02\x01\x1a0\x20Request\ + \x20message\x20for\x20DeleteBucketAccessControl.\n\n\x0b\n\x03\x04\0\x01\ + \x12\x04\xd0\x02\x08(\n+\n\x04\x04\0\x02\0\x12\x04\xd2\x02\x02=\x1a\x1d\ + \x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\0\x02\0\ + \x04\x12\x06\xd2\x02\x02\xd0\x02*\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xd2\ + \x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xd2\x02\t\x0f\n\r\n\x05\ + \x04\0\x02\0\x03\x12\x04\xd2\x02\x12\x13\n\r\n\x05\x04\0\x02\0\x08\x12\ + \x04\xd2\x02\x14<\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\xd2\x02\ + \x15;\n\xd0\x01\n\x04\x04\0\x02\x01\x12\x04\xdb\x02\x02=\x1a\xc1\x01\x20\ + Required.\x20The\x20entity\x20holding\x20the\x20permission.\x20Can\x20be\ + \x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\ + \n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20\ + `allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\0\x02\x01\ + \x04\x12\x06\xdb\x02\x02\xd2\x02=\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\ + \xdb\x02\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xdb\x02\t\x0f\n\r\n\ + \x05\x04\0\x02\x01\x03\x12\x04\xdb\x02\x12\x13\n\r\n\x05\x04\0\x02\x01\ + \x08\x12\x04\xdb\x02\x14<\n\x10\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\ + \x04\xdb\x02\x15;\nG\n\x04\x04\0\x02\x02\x12\x04\xde\x02\x020\x1a9\x20A\ + \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ + requests.\n\n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\xde\x02\x02\xdb\x02=\n\ + \r\n\x05\x04\0\x02\x02\x06\x12\x04\xde\x02\x02\x15\n\r\n\x05\x04\0\x02\ + \x02\x01\x12\x04\xde\x02\x16+\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xde\ + \x02./\n;\n\x02\x04\x01\x12\x06\xe2\x02\0\xf1\x02\x01\x1a-\x20Request\ + \x20message\x20for\x20GetBucketAccessControl.\n\n\x0b\n\x03\x04\x01\x01\ + \x12\x04\xe2\x02\x08%\n+\n\x04\x04\x01\x02\0\x12\x04\xe4\x02\x02=\x1a\ + \x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x01\ + \x02\0\x04\x12\x06\xe4\x02\x02\xe2\x02'\n\r\n\x05\x04\x01\x02\0\x05\x12\ + \x04\xe4\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xe4\x02\t\x0f\n\ + \r\n\x05\x04\x01\x02\0\x03\x12\x04\xe4\x02\x12\x13\n\r\n\x05\x04\x01\x02\ + \0\x08\x12\x04\xe4\x02\x14<\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\ + \x04\xe4\x02\x15;\n\xd0\x01\n\x04\x04\x01\x02\x01\x12\x04\xed\x02\x02=\ + \x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permissi\ + on.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user\ + -`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAdd\ + ress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\ + \x05\x04\x01\x02\x01\x04\x12\x06\xed\x02\x02\xe4\x02=\n\r\n\x05\x04\x01\ + \x02\x01\x05\x12\x04\xed\x02\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\ + \x04\xed\x02\t\x0f\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xed\x02\x12\x13\ + \n\r\n\x05\x04\x01\x02\x01\x08\x12\x04\xed\x02\x14<\n\x10\n\x08\x04\x01\ + \x02\x01\x08\x9c\x08\0\x12\x04\xed\x02\x15;\nG\n\x04\x04\x01\x02\x02\x12\ + \x04\xf0\x02\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ + \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\ + \x12\x06\xf0\x02\x02\xed\x02=\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\xf0\ + \x02\x02\x15\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xf0\x02\x16+\n\r\n\ + \x05\x04\x01\x02\x02\x03\x12\x04\xf0\x02./\n>\n\x02\x04\x02\x12\x06\xf4\ + \x02\0\xfd\x02\x01\x1a0\x20Request\x20message\x20for\x20InsertBucketAcce\ + ssControl.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xf4\x02\x08(\n+\n\x04\x04\ + \x02\x02\0\x12\x04\xf6\x02\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\ + \x20bucket.\n\n\x0f\n\x05\x04\x02\x02\0\x04\x12\x06\xf6\x02\x02\xf4\x02*\ + \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\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xf6\ + \x02\x12\x13\n\r\n\x05\x04\x02\x02\0\x08\x12\x04\xf6\x02\x14<\n\x10\n\ + \x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xf6\x02\x15;\nK\n\x04\x04\x02\ + \x02\x01\x12\x04\xf9\x02\x020\x1a=\x20Properties\x20of\x20the\x20new\x20\ + bucket\x20access\x20control\x20being\x20inserted.\n\n\x0f\n\x05\x04\x02\ + \x02\x01\x04\x12\x06\xf9\x02\x02\xf6\x02=\n\r\n\x05\x04\x02\x02\x01\x06\ + \x12\x04\xf9\x02\x02\x15\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xf9\x02\ + \x16+\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xf9\x02./\nG\n\x04\x04\x02\ + \x02\x02\x12\x04\xfc\x02\x020\x1a9\x20A\x20set\x20of\x20parameters\x20co\ + mmon\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x02\ + \x02\x02\x04\x12\x06\xfc\x02\x02\xf9\x020\n\r\n\x05\x04\x02\x02\x02\x06\ + \x12\x04\xfc\x02\x02\x15\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xfc\x02\ + \x16+\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xfc\x02./\n<\n\x02\x04\x03\ + \x12\x06\x80\x03\0\x86\x03\x01\x1a.\x20Request\x20message\x20for\x20List\ + BucketAccessControl.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x80\x03\x08'\n+\n\ + \x04\x04\x03\x02\0\x12\x04\x82\x03\x02=\x1a\x1d\x20Required.\x20Name\x20\ + of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x03\x02\0\x04\x12\x06\x82\x03\x02\ + \x80\x03)\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x82\x03\x02\x08\n\r\n\x05\ + \x04\x03\x02\0\x01\x12\x04\x82\x03\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\ + \x04\x82\x03\x12\x13\n\r\n\x05\x04\x03\x02\0\x08\x12\x04\x82\x03\x14<\n\ + \x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\x82\x03\x15;\nG\n\x04\x04\ + \x03\x02\x01\x12\x04\x85\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\ + \x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\ + \x03\x02\x01\x04\x12\x06\x85\x03\x02\x82\x03=\n\r\n\x05\x04\x03\x02\x01\ + \x06\x12\x04\x85\x03\x02\x15\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\x85\ + \x03\x16+\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x85\x03./\n5\n\x02\x04\ + \x04\x12\x06\x89\x03\0\xa6\x03\x01\x1a'\x20Request\x20for\x20PatchBucket\ + AccessControl.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x89\x03\x08'\n+\n\x04\ + \x04\x04\x02\0\x12\x04\x8b\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\ + \x20a\x20bucket.\n\n\x0f\n\x05\x04\x04\x02\0\x04\x12\x06\x8b\x03\x02\x89\ + \x03)\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x8b\x03\x02\x08\n\r\n\x05\x04\ + \x04\x02\0\x01\x12\x04\x8b\x03\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ + \x8b\x03\x12\x13\n\r\n\x05\x04\x04\x02\0\x08\x12\x04\x8b\x03\x14<\n\x10\ + \n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\x8b\x03\x15;\n\xd0\x01\n\x04\ + \x04\x04\x02\x01\x12\x04\x94\x03\x02=\x1a\xc1\x01\x20Required.\x20The\ + \x20entity\x20holding\x20the\x20permission.\x20Can\x20be\x20one\x20of:\n\ + \x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`grou\ + p-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\x20\ + *\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\ + \x94\x03\x02\x8b\x03=\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\x94\x03\x02\ + \x08\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\x94\x03\t\x0f\n\r\n\x05\x04\ + \x04\x02\x01\x03\x12\x04\x94\x03\x12\x13\n\r\n\x05\x04\x04\x02\x01\x08\ + \x12\x04\x94\x03\x14<\n\x10\n\x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x04\ + \x94\x03\x15;\n5\n\x04\x04\x04\x02\x02\x12\x04\x97\x03\x020\x1a'\x20The\ + \x20BucketAccessControl\x20for\x20updating.\n\n\x0f\n\x05\x04\x04\x02\ + \x02\x04\x12\x06\x97\x03\x02\x94\x03=\n\r\n\x05\x04\x04\x02\x02\x06\x12\ + \x04\x97\x03\x02\x15\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\x97\x03\x16+\ + \n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x97\x03./\n\xa3\x02\n\x04\x04\x04\ + \x02\x03\x12\x04\xa2\x03\x02,\x1a\x94\x02\x20List\x20of\x20fields\x20to\ + \x20be\x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\ + \x20to\x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\ + \x20a\x20single\x20field\x20with\x20the\x20value\x20`*`.\n\n\n\x20Not\ + \x20specifying\x20any\x20fields\x20is\x20an\x20error.\n\x20Not\x20specif\ + ying\x20a\x20field\x20while\x20setting\x20that\x20field\x20to\x20a\x20no\ + n-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\n\x05\x04\x04\x02\x03\ + \x04\x12\x06\xa2\x03\x02\x97\x030\n\r\n\x05\x04\x04\x02\x03\x06\x12\x04\ + \xa2\x03\x02\x1b\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\xa2\x03\x1c'\n\r\ + \n\x05\x04\x04\x02\x03\x03\x12\x04\xa2\x03*+\nG\n\x04\x04\x04\x02\x04\ + \x12\x04\xa5\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20\ + to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x04\x02\x04\ + \x04\x12\x06\xa5\x03\x02\xa2\x03,\n\r\n\x05\x04\x04\x02\x04\x06\x12\x04\ + \xa5\x03\x02\x15\n\r\n\x05\x04\x04\x02\x04\x01\x12\x04\xa5\x03\x16+\n\r\ + \n\x05\x04\x04\x02\x04\x03\x12\x04\xa5\x03./\n6\n\x02\x04\x05\x12\x06\ + \xa9\x03\0\xbb\x03\x01\x1a(\x20Request\x20for\x20UpdateBucketAccessContr\ + ol.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xa9\x03\x08(\n+\n\x04\x04\x05\x02\ + \0\x12\x04\xab\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucke\ + t.\n\n\x0f\n\x05\x04\x05\x02\0\x04\x12\x06\xab\x03\x02\xa9\x03*\n\r\n\ + \x05\x04\x05\x02\0\x05\x12\x04\xab\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\ + \x01\x12\x04\xab\x03\t\x0f\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xab\x03\ + \x12\x13\n\r\n\x05\x04\x05\x02\0\x08\x12\x04\xab\x03\x14<\n\x10\n\x08\ + \x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xab\x03\x15;\n\xd0\x01\n\x04\x04\ + \x05\x02\x01\x12\x04\xb4\x03\x02=\x1a\xc1\x01\x20Required.\x20The\x20ent\ + ity\x20holding\x20the\x20permission.\x20Can\x20be\x20one\x20of:\n\x20*\ + \x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`group-`*g\ + roupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\x20*\x20\ + `allAuthenticatedUsers`\n\n\x0f\n\x05\x04\x05\x02\x01\x04\x12\x06\xb4\ + \x03\x02\xab\x03=\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\xb4\x03\x02\x08\ + \n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xb4\x03\t\x0f\n\r\n\x05\x04\x05\ + \x02\x01\x03\x12\x04\xb4\x03\x12\x13\n\r\n\x05\x04\x05\x02\x01\x08\x12\ + \x04\xb4\x03\x14<\n\x10\n\x08\x04\x05\x02\x01\x08\x9c\x08\0\x12\x04\xb4\ + \x03\x15;\n5\n\x04\x04\x05\x02\x02\x12\x04\xb7\x03\x020\x1a'\x20The\x20B\ + ucketAccessControl\x20for\x20updating.\n\n\x0f\n\x05\x04\x05\x02\x02\x04\ + \x12\x06\xb7\x03\x02\xb4\x03=\n\r\n\x05\x04\x05\x02\x02\x06\x12\x04\xb7\ + \x03\x02\x15\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xb7\x03\x16+\n\r\n\ + \x05\x04\x05\x02\x02\x03\x12\x04\xb7\x03./\nG\n\x04\x04\x05\x02\x03\x12\ + \x04\xba\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ + \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x05\x02\x03\x04\ + \x12\x06\xba\x03\x02\xb7\x030\n\r\n\x05\x04\x05\x02\x03\x06\x12\x04\xba\ + \x03\x02\x15\n\r\n\x05\x04\x05\x02\x03\x01\x12\x04\xba\x03\x16+\n\r\n\ + \x05\x04\x05\x02\x03\x03\x12\x04\xba\x03./\n1\n\x02\x04\x06\x12\x06\xbe\ + \x03\0\xcb\x03\x01\x1a#\x20Request\x20message\x20for\x20DeleteBucket.\n\ + \n\x0b\n\x03\x04\x06\x01\x12\x04\xbe\x03\x08\x1b\n+\n\x04\x04\x06\x02\0\ + \x12\x04\xc0\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\ + \n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\xc0\x03\x02\xbe\x03\x1d\n\r\n\ + \x05\x04\x06\x02\0\x05\x12\x04\xc0\x03\x02\x08\n\r\n\x05\x04\x06\x02\0\ + \x01\x12\x04\xc0\x03\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xc0\x03\ + \x12\x13\n\r\n\x05\x04\x06\x02\0\x08\x12\x04\xc0\x03\x14<\n\x10\n\x08\ + \x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xc0\x03\x15;\nY\n\x04\x04\x06\x02\ + \x01\x12\x04\xc3\x03\x029\x1aK\x20If\x20set,\x20only\x20deletes\x20the\ + \x20bucket\x20if\x20its\x20metageneration\x20matches\x20this\x20value.\n\ + \n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xc3\x03\x02\xc0\x03=\n\r\n\x05\ + \x04\x06\x02\x01\x06\x12\x04\xc3\x03\x02\x1c\n\r\n\x05\x04\x06\x02\x01\ + \x01\x12\x04\xc3\x03\x1d4\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xc3\x037\ + 8\na\n\x04\x04\x06\x02\x02\x12\x04\xc7\x03\x02=\x1aS\x20If\x20set,\x20on\ + ly\x20deletes\x20the\x20bucket\x20if\x20its\x20metageneration\x20does\ + \x20not\x20match\x20this\n\x20value.\n\n\x0f\n\x05\x04\x06\x02\x02\x04\ + \x12\x06\xc7\x03\x02\xc3\x039\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\xc7\ + \x03\x02\x1c\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xc7\x03\x1d8\n\r\n\ + \x05\x04\x06\x02\x02\x03\x12\x04\xc7\x03;<\nG\n\x04\x04\x06\x02\x03\x12\ + \x04\xca\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ + \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x06\x02\x03\x04\ + \x12\x06\xca\x03\x02\xc7\x03=\n\r\n\x05\x04\x06\x02\x03\x06\x12\x04\xca\ + \x03\x02\x15\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\xca\x03\x16+\n\r\n\ + \x05\x04\x06\x02\x03\x03\x12\x04\xca\x03./\n.\n\x02\x04\x07\x12\x06\xce\ + \x03\0\xdf\x03\x01\x1a\x20\x20Request\x20message\x20for\x20GetBucket.\n\ + \n\x0b\n\x03\x04\x07\x01\x12\x04\xce\x03\x08\x18\n+\n\x04\x04\x07\x02\0\ + \x12\x04\xd0\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\ + \n\n\x0f\n\x05\x04\x07\x02\0\x04\x12\x06\xd0\x03\x02\xce\x03\x1a\n\r\n\ + \x05\x04\x07\x02\0\x05\x12\x04\xd0\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\ + \x01\x12\x04\xd0\x03\t\x0f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xd0\x03\ + \x12\x13\n\r\n\x05\x04\x07\x02\0\x08\x12\x04\xd0\x03\x14<\n\x10\n\x08\ + \x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xd0\x03\x15;\n\x8c\x01\n\x04\x04\ + \x07\x02\x01\x12\x04\xd4\x03\x029\x1a~\x20Makes\x20the\x20return\x20of\ + \x20the\x20bucket\x20metadata\x20conditional\x20on\x20whether\x20the\x20\ + bucket's\n\x20current\x20metageneration\x20matches\x20the\x20given\x20va\ + lue.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xd4\x03\x02\xd0\x03=\n\r\ + \n\x05\x04\x07\x02\x01\x06\x12\x04\xd4\x03\x02\x1c\n\r\n\x05\x04\x07\x02\ + \x01\x01\x12\x04\xd4\x03\x1d4\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xd4\ + \x0378\n\x94\x01\n\x04\x04\x07\x02\x02\x12\x04\xd8\x03\x02=\x1a\x85\x01\ + \x20Makes\x20the\x20return\x20of\x20the\x20bucket\x20metadata\x20conditi\ + onal\x20on\x20whether\x20the\x20bucket's\n\x20current\x20metageneration\ + \x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\x07\ + \x02\x02\x04\x12\x06\xd8\x03\x02\xd4\x039\n\r\n\x05\x04\x07\x02\x02\x06\ + \x12\x04\xd8\x03\x02\x1c\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xd8\x03\ + \x1d8\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xd8\x03;<\nB\n\x04\x04\x07\ + \x02\x03\x12\x04\xdb\x03\x02(\x1a4\x20Set\x20of\x20properties\x20to\x20r\ + eturn.\x20Defaults\x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x04\x07\x02\x03\x04\ + \x12\x06\xdb\x03\x02\xd8\x03=\n\r\n\x05\x04\x07\x02\x03\x06\x12\x04\xdb\ + \x03\x02\x18\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\xdb\x03\x19#\n\r\n\ + \x05\x04\x07\x02\x03\x03\x12\x04\xdb\x03&'\nG\n\x04\x04\x07\x02\x04\x12\ + \x04\xde\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ + \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x07\x02\x04\x04\ + \x12\x06\xde\x03\x02\xdb\x03(\n\r\n\x05\x04\x07\x02\x04\x06\x12\x04\xde\ + \x03\x02\x15\n\r\n\x05\x04\x07\x02\x04\x01\x12\x04\xde\x03\x16+\n\r\n\ + \x05\x04\x07\x02\x04\x03\x12\x04\xde\x03./\n1\n\x02\x04\x08\x12\x06\xe2\ + \x03\0\xf6\x03\x01\x1a#\x20Request\x20message\x20for\x20InsertBucket.\n\ + \n\x0b\n\x03\x04\x08\x01\x12\x04\xe2\x03\x08\x1b\nI\n\x04\x04\x08\x02\0\ + \x12\x04\xe4\x03\x025\x1a;\x20Apply\x20a\x20predefined\x20set\x20of\x20a\ + ccess\x20controls\x20to\x20this\x20bucket.\n\n\x0f\n\x05\x04\x08\x02\0\ + \x04\x12\x06\xe4\x03\x02\xe2\x03\x1d\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\ + \xe4\x03\x02!\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xe4\x03\"0\n\r\n\x05\ + \x04\x08\x02\0\x03\x12\x04\xe4\x0334\nX\n\x04\x04\x08\x02\x01\x12\x04\ + \xe7\x03\x02D\x1aJ\x20Apply\x20a\x20predefined\x20set\x20of\x20default\ + \x20object\x20access\x20controls\x20to\x20this\x20bucket.\n\n\x0f\n\x05\ + \x04\x08\x02\x01\x04\x12\x06\xe7\x03\x02\xe4\x035\n\r\n\x05\x04\x08\x02\ + \x01\x06\x12\x04\xe7\x03\x02!\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xe7\ + \x03\"?\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xe7\x03BC\n9\n\x04\x04\x08\ + \x02\x02\x12\x04\xea\x03\x02>\x1a+\x20Required.\x20A\x20valid\x20API\x20\ + project\x20identifier.\n\n\x0f\n\x05\x04\x08\x02\x02\x04\x12\x06\xea\x03\ + \x02\xe7\x03D\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\xea\x03\x02\x08\n\r\ + \n\x05\x04\x08\x02\x02\x01\x12\x04\xea\x03\t\x10\n\r\n\x05\x04\x08\x02\ + \x02\x03\x12\x04\xea\x03\x13\x14\n\r\n\x05\x04\x08\x02\x02\x08\x12\x04\ + \xea\x03\x15=\n\x10\n\x08\x04\x08\x02\x02\x08\x9c\x08\0\x12\x04\xea\x03\ + \x16<\n\xae\x01\n\x04\x04\x08\x02\x03\x12\x04\xef\x03\x02(\x1a\x9f\x01\ + \x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\x20to\x20`NO_AC\ + L`,\x20unless\x20the\n\x20bucket\x20resource\x20specifies\x20`acl`\x20or\ + \x20`defaultObjectAcl`\n\x20properties,\x20when\x20it\x20defaults\x20to\ + \x20`FULL`.\n\n\x0f\n\x05\x04\x08\x02\x03\x04\x12\x06\xef\x03\x02\xea\ + \x03>\n\r\n\x05\x04\x08\x02\x03\x06\x12\x04\xef\x03\x02\x18\n\r\n\x05\ + \x04\x08\x02\x03\x01\x12\x04\xef\x03\x19#\n\r\n\x05\x04\x08\x02\x03\x03\ + \x12\x04\xef\x03&'\nP\n\x04\x04\x08\x02\x04\x12\x04\xf2\x03\x02\x14\x1aB\ + \x20Properties\x20of\x20the\x20new\x20bucket\x20being\x20inserted,\x20in\ + cluding\x20its\x20name.\n\n\x0f\n\x05\x04\x08\x02\x04\x04\x12\x06\xf2\ + \x03\x02\xef\x03(\n\r\n\x05\x04\x08\x02\x04\x06\x12\x04\xf2\x03\x02\x08\ + \n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\xf2\x03\t\x0f\n\r\n\x05\x04\x08\ + \x02\x04\x03\x12\x04\xf2\x03\x12\x13\nG\n\x04\x04\x08\x02\x05\x12\x04\ + \xf5\x03\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ + l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x08\x02\x05\x04\x12\ + \x06\xf5\x03\x02\xf2\x03\x14\n\r\n\x05\x04\x08\x02\x05\x06\x12\x04\xf5\ + \x03\x02\x15\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\xf5\x03\x16+\n\r\n\ + \x05\x04\x08\x02\x05\x03\x12\x04\xf5\x03./\n1\n\x02\x04\t\x12\x06\xf9\ + \x03\0\xff\x03\x01\x1a#\x20Request\x20message\x20for\x20ListChannels.\n\ + \n\x0b\n\x03\x04\t\x01\x12\x04\xf9\x03\x08\x1b\n+\n\x04\x04\t\x02\0\x12\ + \x04\xfb\x03\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\ + \x0f\n\x05\x04\t\x02\0\x04\x12\x06\xfb\x03\x02\xf9\x03\x1d\n\r\n\x05\x04\ + \t\x02\0\x05\x12\x04\xfb\x03\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\ + \xfb\x03\t\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xfb\x03\x12\x13\n\r\n\ + \x05\x04\t\x02\0\x08\x12\x04\xfb\x03\x14<\n\x10\n\x08\x04\t\x02\0\x08\ + \x9c\x08\0\x12\x04\xfb\x03\x15;\nG\n\x04\x04\t\x02\x01\x12\x04\xfe\x03\ + \x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Sto\ + rage\x20API\x20requests.\n\n\x0f\n\x05\x04\t\x02\x01\x04\x12\x06\xfe\x03\ + \x02\xfb\x03=\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\xfe\x03\x02\x15\n\r\n\ + \x05\x04\t\x02\x01\x01\x12\x04\xfe\x03\x16+\n\r\n\x05\x04\t\x02\x01\x03\ + \x12\x04\xfe\x03./\n0\n\x02\x04\n\x12\x06\x82\x04\0\x96\x04\x01\x1a\"\ + \x20Request\x20message\x20for\x20ListBuckets.\n\n\x0b\n\x03\x04\n\x01\ + \x12\x04\x82\x04\x08\x1a\n\x95\x01\n\x04\x04\n\x02\0\x12\x04\x85\x04\x02\ + \x18\x1a\x86\x01\x20Maximum\x20number\x20of\x20buckets\x20to\x20return\ + \x20in\x20a\x20single\x20response.\x20The\x20service\x20will\n\x20use\ + \x20this\x20parameter\x20or\x201,000\x20items,\x20whichever\x20is\x20sma\ + ller.\n\n\x0f\n\x05\x04\n\x02\0\x04\x12\x06\x85\x04\x02\x82\x04\x1c\n\r\ + \n\x05\x04\n\x02\0\x05\x12\x04\x85\x04\x02\x07\n\r\n\x05\x04\n\x02\0\x01\ + \x12\x04\x85\x04\x08\x13\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x85\x04\x16\ + \x17\ni\n\x04\x04\n\x02\x01\x12\x04\x89\x04\x02\x18\x1a[\x20A\x20previou\ + sly-returned\x20page\x20token\x20representing\x20part\x20of\x20the\x20la\ + rger\x20set\x20of\n\x20results\x20to\x20view.\n\n\x0f\n\x05\x04\n\x02\ + \x01\x04\x12\x06\x89\x04\x02\x85\x04\x18\n\r\n\x05\x04\n\x02\x01\x05\x12\ + \x04\x89\x04\x02\x08\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x89\x04\t\x13\n\ + \r\n\x05\x04\n\x02\x01\x03\x12\x04\x89\x04\x16\x17\nM\n\x04\x04\n\x02\ + \x02\x12\x04\x8c\x04\x02\x14\x1a?\x20Filter\x20results\x20to\x20buckets\ + \x20whose\x20names\x20begin\x20with\x20this\x20prefix.\n\n\x0f\n\x05\x04\ + \n\x02\x02\x04\x12\x06\x8c\x04\x02\x89\x04\x18\n\r\n\x05\x04\n\x02\x02\ + \x05\x12\x04\x8c\x04\x02\x08\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\x8c\x04\ + \t\x0f\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\x8c\x04\x12\x13\n9\n\x04\x04\ + \n\x02\x03\x12\x04\x8f\x04\x02>\x1a+\x20Required.\x20A\x20valid\x20API\ + \x20project\x20identifier.\n\n\x0f\n\x05\x04\n\x02\x03\x04\x12\x06\x8f\ + \x04\x02\x8c\x04\x14\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\x8f\x04\x02\x08\ + \n\r\n\x05\x04\n\x02\x03\x01\x12\x04\x8f\x04\t\x10\n\r\n\x05\x04\n\x02\ + \x03\x03\x12\x04\x8f\x04\x13\x14\n\r\n\x05\x04\n\x02\x03\x08\x12\x04\x8f\ + \x04\x15=\n\x10\n\x08\x04\n\x02\x03\x08\x9c\x08\0\x12\x04\x8f\x04\x16<\n\ + B\n\x04\x04\n\x02\x04\x12\x04\x92\x04\x02(\x1a4\x20Set\x20of\x20properti\ + es\x20to\x20return.\x20Defaults\x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x04\n\ + \x02\x04\x04\x12\x06\x92\x04\x02\x8f\x04>\n\r\n\x05\x04\n\x02\x04\x06\ + \x12\x04\x92\x04\x02\x18\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\x92\x04\x19\ + #\n\r\n\x05\x04\n\x02\x04\x03\x12\x04\x92\x04&'\nG\n\x04\x04\n\x02\x05\ + \x12\x04\x95\x04\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20\ + to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\n\x02\x05\x04\ + \x12\x06\x95\x04\x02\x92\x04(\n\r\n\x05\x04\n\x02\x05\x06\x12\x04\x95\ + \x04\x02\x15\n\r\n\x05\x04\n\x02\x05\x01\x12\x04\x95\x04\x16+\n\r\n\x05\ + \x04\n\x02\x05\x03\x12\x04\x95\x04./\n8\n\x02\x04\x0b\x12\x06\x99\x04\0\ + \xa3\x04\x01\x1a*\x20Request\x20message\x20for\x20LockRetentionPolicy.\n\ + \n\x0b\n\x03\x04\x0b\x01\x12\x04\x99\x04\x08\"\n+\n\x04\x04\x0b\x02\0\ + \x12\x04\x9b\x04\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\ + \n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\x9b\x04\x02\x99\x04$\n\r\n\x05\ + \x04\x0b\x02\0\x05\x12\x04\x9b\x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\ + \x12\x04\x9b\x04\t\x0f\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x9b\x04\x12\ + \x13\n\r\n\x05\x04\x0b\x02\0\x08\x12\x04\x9b\x04\x14<\n\x10\n\x08\x04\ + \x0b\x02\0\x08\x9c\x08\0\x12\x04\x9b\x04\x15;\n\x86\x01\n\x04\x04\x0b\ + \x02\x01\x12\x04\x9f\x04\x02$\x1ax\x20Makes\x20the\x20operation\x20condi\ + tional\x20on\x20whether\x20bucket's\x20current\x20metageneration\n\x20ma\ + tches\x20the\x20given\x20value.\x20Must\x20be\x20positive.\n\n\x0f\n\x05\ + \x04\x0b\x02\x01\x04\x12\x06\x9f\x04\x02\x9b\x04=\n\r\n\x05\x04\x0b\x02\ + \x01\x05\x12\x04\x9f\x04\x02\x07\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\ + \x9f\x04\x08\x1f\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x9f\x04\"#\nG\n\ + \x04\x04\x0b\x02\x02\x12\x04\xa2\x04\x020\x1a9\x20A\x20set\x20of\x20para\ + meters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\ + \x05\x04\x0b\x02\x02\x04\x12\x06\xa2\x04\x02\x9f\x04$\n\r\n\x05\x04\x0b\ + \x02\x02\x06\x12\x04\xa2\x04\x02\x15\n\r\n\x05\x04\x0b\x02\x02\x01\x12\ + \x04\xa2\x04\x16+\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xa2\x04./\n/\n\ + \x02\x04\x0c\x12\x06\xa6\x04\0\xcc\x04\x01\x1a!\x20Request\x20for\x20Pat\ + chBucket\x20method.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xa6\x04\x08\x1a\n+\ + \n\x04\x04\x0c\x02\0\x12\x04\xa8\x04\x02=\x1a\x1d\x20Required.\x20Name\ + \x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xa8\x04\ + \x02\xa6\x04\x1c\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xa8\x04\x02\x08\n\r\ + \n\x05\x04\x0c\x02\0\x01\x12\x04\xa8\x04\t\x0f\n\r\n\x05\x04\x0c\x02\0\ + \x03\x12\x04\xa8\x04\x12\x13\n\r\n\x05\x04\x0c\x02\0\x08\x12\x04\xa8\x04\ + \x14<\n\x10\n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xa8\x04\x15;\n\x8c\ + \x01\n\x04\x04\x0c\x02\x01\x12\x04\xac\x04\x029\x1a~\x20Makes\x20the\x20\ + return\x20of\x20the\x20bucket\x20metadata\x20conditional\x20on\x20whethe\ + r\x20the\x20bucket's\n\x20current\x20metageneration\x20matches\x20the\ + \x20given\x20value.\n\n\x0f\n\x05\x04\x0c\x02\x01\x04\x12\x06\xac\x04\ + \x02\xa8\x04=\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\xac\x04\x02\x1c\n\r\ + \n\x05\x04\x0c\x02\x01\x01\x12\x04\xac\x04\x1d4\n\r\n\x05\x04\x0c\x02\ + \x01\x03\x12\x04\xac\x0478\n\x94\x01\n\x04\x04\x0c\x02\x02\x12\x04\xb0\ + \x04\x02=\x1a\x85\x01\x20Makes\x20the\x20return\x20of\x20the\x20bucket\ + \x20metadata\x20conditional\x20on\x20whether\x20the\x20bucket's\n\x20cur\ + rent\x20metageneration\x20does\x20not\x20match\x20the\x20given\x20value.\ + \n\n\x0f\n\x05\x04\x0c\x02\x02\x04\x12\x06\xb0\x04\x02\xac\x049\n\r\n\ + \x05\x04\x0c\x02\x02\x06\x12\x04\xb0\x04\x02\x1c\n\r\n\x05\x04\x0c\x02\ + \x02\x01\x12\x04\xb0\x04\x1d8\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xb0\ + \x04;<\nI\n\x04\x04\x0c\x02\x03\x12\x04\xb3\x04\x025\x1a;\x20Apply\x20a\ + \x20predefined\x20set\x20of\x20access\x20controls\x20to\x20this\x20bucke\ + t.\n\n\x0f\n\x05\x04\x0c\x02\x03\x04\x12\x06\xb3\x04\x02\xb0\x04=\n\r\n\ + \x05\x04\x0c\x02\x03\x06\x12\x04\xb3\x04\x02!\n\r\n\x05\x04\x0c\x02\x03\ + \x01\x12\x04\xb3\x04\"0\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xb3\x0434\ + \nX\n\x04\x04\x0c\x02\x04\x12\x04\xb6\x04\x02D\x1aJ\x20Apply\x20a\x20pre\ + defined\x20set\x20of\x20default\x20object\x20access\x20controls\x20to\ + \x20this\x20bucket.\n\n\x0f\n\x05\x04\x0c\x02\x04\x04\x12\x06\xb6\x04\ + \x02\xb3\x045\n\r\n\x05\x04\x0c\x02\x04\x06\x12\x04\xb6\x04\x02!\n\r\n\ + \x05\x04\x0c\x02\x04\x01\x12\x04\xb6\x04\"?\n\r\n\x05\x04\x0c\x02\x04\ + \x03\x12\x04\xb6\x04BC\n@\n\x04\x04\x0c\x02\x05\x12\x04\xb9\x04\x02(\x1a\ + 2\x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\x20to\x20`FULL\ + `.\n\n\x0f\n\x05\x04\x0c\x02\x05\x04\x12\x06\xb9\x04\x02\xb6\x04D\n\r\n\ + \x05\x04\x0c\x02\x05\x06\x12\x04\xb9\x04\x02\x18\n\r\n\x05\x04\x0c\x02\ + \x05\x01\x12\x04\xb9\x04\x19#\n\r\n\x05\x04\x0c\x02\x05\x03\x12\x04\xb9\ + \x04&'\n1\n\x04\x04\x0c\x02\x06\x12\x04\xbc\x04\x02\x16\x1a#\x20The\x20B\ + ucket\x20metadata\x20for\x20updating.\n\n\x0f\n\x05\x04\x0c\x02\x06\x04\ + \x12\x06\xbc\x04\x02\xb9\x04(\n\r\n\x05\x04\x0c\x02\x06\x06\x12\x04\xbc\ + \x04\x02\x08\n\r\n\x05\x04\x0c\x02\x06\x01\x12\x04\xbc\x04\t\x11\n\r\n\ + \x05\x04\x0c\x02\x06\x03\x12\x04\xbc\x04\x14\x15\n\xbd\x03\n\x04\x04\x0c\ + \x02\x07\x12\x04\xc8\x04\x02,\x1a\xae\x03\x20List\x20of\x20fields\x20to\ + \x20be\x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\ + \x20to\x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\ + \x20a\x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20not\ + \x20recommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20at\ + \x20a\x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\x20\ + the\x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field's\ + \x20value.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20erro\ + r.\n\x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20f\ + ield\x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\ + \n\x05\x04\x0c\x02\x07\x04\x12\x06\xc8\x04\x02\xbc\x04\x16\n\r\n\x05\x04\ + \x0c\x02\x07\x06\x12\x04\xc8\x04\x02\x1b\n\r\n\x05\x04\x0c\x02\x07\x01\ + \x12\x04\xc8\x04\x1c'\n\r\n\x05\x04\x0c\x02\x07\x03\x12\x04\xc8\x04*+\nG\ + \n\x04\x04\x0c\x02\x08\x12\x04\xcb\x04\x021\x1a9\x20A\x20set\x20of\x20pa\ + rameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\ + \x05\x04\x0c\x02\x08\x04\x12\x06\xcb\x04\x02\xc8\x04,\n\r\n\x05\x04\x0c\ + \x02\x08\x06\x12\x04\xcb\x04\x02\x15\n\r\n\x05\x04\x0c\x02\x08\x01\x12\ + \x04\xcb\x04\x16+\n\r\n\x05\x04\x0c\x02\x08\x03\x12\x04\xcb\x04.0\n0\n\ + \x02\x04\r\x12\x06\xcf\x04\0\xe9\x04\x01\x1a\"\x20Request\x20for\x20Upda\ + teBucket\x20method.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xcf\x04\x08\x1b\n+\n\ + \x04\x04\r\x02\0\x12\x04\xd1\x04\x02=\x1a\x1d\x20Required.\x20Name\x20of\ + \x20a\x20bucket.\n\n\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xd1\x04\x02\xcf\ + \x04\x1d\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xd1\x04\x02\x08\n\r\n\x05\x04\ + \r\x02\0\x01\x12\x04\xd1\x04\t\x0f\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xd1\ + \x04\x12\x13\n\r\n\x05\x04\r\x02\0\x08\x12\x04\xd1\x04\x14<\n\x10\n\x08\ + \x04\r\x02\0\x08\x9c\x08\0\x12\x04\xd1\x04\x15;\n\x8c\x01\n\x04\x04\r\ + \x02\x01\x12\x04\xd5\x04\x029\x1a~\x20Makes\x20the\x20return\x20of\x20th\ + e\x20bucket\x20metadata\x20conditional\x20on\x20whether\x20the\x20bucket\ + 's\n\x20current\x20metageneration\x20matches\x20the\x20given\x20value.\n\ + \n\x0f\n\x05\x04\r\x02\x01\x04\x12\x06\xd5\x04\x02\xd1\x04=\n\r\n\x05\ + \x04\r\x02\x01\x06\x12\x04\xd5\x04\x02\x1c\n\r\n\x05\x04\r\x02\x01\x01\ + \x12\x04\xd5\x04\x1d4\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\xd5\x0478\n\ + \x94\x01\n\x04\x04\r\x02\x02\x12\x04\xd9\x04\x02=\x1a\x85\x01\x20Makes\ + \x20the\x20return\x20of\x20the\x20bucket\x20metadata\x20conditional\x20o\ + n\x20whether\x20the\x20bucket's\n\x20current\x20metageneration\x20does\ + \x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\r\x02\x02\ + \x04\x12\x06\xd9\x04\x02\xd5\x049\n\r\n\x05\x04\r\x02\x02\x06\x12\x04\ + \xd9\x04\x02\x1c\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xd9\x04\x1d8\n\r\n\ + \x05\x04\r\x02\x02\x03\x12\x04\xd9\x04;<\nI\n\x04\x04\r\x02\x03\x12\x04\ + \xdc\x04\x025\x1a;\x20Apply\x20a\x20predefined\x20set\x20of\x20access\ + \x20controls\x20to\x20this\x20bucket.\n\n\x0f\n\x05\x04\r\x02\x03\x04\ + \x12\x06\xdc\x04\x02\xd9\x04=\n\r\n\x05\x04\r\x02\x03\x06\x12\x04\xdc\ + \x04\x02!\n\r\n\x05\x04\r\x02\x03\x01\x12\x04\xdc\x04\"0\n\r\n\x05\x04\r\ + \x02\x03\x03\x12\x04\xdc\x0434\nX\n\x04\x04\r\x02\x04\x12\x04\xdf\x04\ + \x02D\x1aJ\x20Apply\x20a\x20predefined\x20set\x20of\x20default\x20object\ + \x20access\x20controls\x20to\x20this\x20bucket.\n\n\x0f\n\x05\x04\r\x02\ + \x04\x04\x12\x06\xdf\x04\x02\xdc\x045\n\r\n\x05\x04\r\x02\x04\x06\x12\ + \x04\xdf\x04\x02!\n\r\n\x05\x04\r\x02\x04\x01\x12\x04\xdf\x04\"?\n\r\n\ + \x05\x04\r\x02\x04\x03\x12\x04\xdf\x04BC\n@\n\x04\x04\r\x02\x05\x12\x04\ + \xe2\x04\x02(\x1a2\x20Set\x20of\x20properties\x20to\x20return.\x20Defaul\ + ts\x20to\x20`FULL`.\n\n\x0f\n\x05\x04\r\x02\x05\x04\x12\x06\xe2\x04\x02\ + \xdf\x04D\n\r\n\x05\x04\r\x02\x05\x06\x12\x04\xe2\x04\x02\x18\n\r\n\x05\ + \x04\r\x02\x05\x01\x12\x04\xe2\x04\x19#\n\r\n\x05\x04\r\x02\x05\x03\x12\ + \x04\xe2\x04&'\n1\n\x04\x04\r\x02\x06\x12\x04\xe5\x04\x02\x16\x1a#\x20Th\ + e\x20Bucket\x20metadata\x20for\x20updating.\n\n\x0f\n\x05\x04\r\x02\x06\ + \x04\x12\x06\xe5\x04\x02\xe2\x04(\n\r\n\x05\x04\r\x02\x06\x06\x12\x04\ + \xe5\x04\x02\x08\n\r\n\x05\x04\r\x02\x06\x01\x12\x04\xe5\x04\t\x11\n\r\n\ + \x05\x04\r\x02\x06\x03\x12\x04\xe5\x04\x14\x15\nG\n\x04\x04\r\x02\x07\ + \x12\x04\xe8\x04\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20\ + to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\r\x02\x07\x04\ + \x12\x06\xe8\x04\x02\xe5\x04\x16\n\r\n\x05\x04\r\x02\x07\x06\x12\x04\xe8\ + \x04\x02\x15\n\r\n\x05\x04\r\x02\x07\x01\x12\x04\xe8\x04\x16+\n\r\n\x05\ + \x04\r\x02\x07\x03\x12\x04\xe8\x04./\n0\n\x02\x04\x0e\x12\x06\xec\x04\0\ + \xf2\x04\x01\x1a\"\x20Request\x20message\x20for\x20StopChannel.\n\n\x0b\ + \n\x03\x04\x0e\x01\x12\x04\xec\x04\x08\x1a\n*\n\x04\x04\x0e\x02\0\x12\ + \x04\xee\x04\x02\x16\x1a\x1c\x20The\x20channel\x20to\x20be\x20stopped.\n\ + \n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xee\x04\x02\xec\x04\x1c\n\r\n\x05\ + \x04\x0e\x02\0\x06\x12\x04\xee\x04\x02\t\n\r\n\x05\x04\x0e\x02\0\x01\x12\ + \x04\xee\x04\n\x11\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xee\x04\x14\x15\n\ + G\n\x04\x04\x0e\x02\x01\x12\x04\xf1\x04\x020\x1a9\x20A\x20set\x20of\x20p\ + arameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\ + \n\x05\x04\x0e\x02\x01\x04\x12\x06\xf1\x04\x02\xee\x04\x16\n\r\n\x05\x04\ + \x0e\x02\x01\x06\x12\x04\xf1\x04\x02\x15\n\r\n\x05\x04\x0e\x02\x01\x01\ + \x12\x04\xf1\x04\x16+\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xf1\x04./\nE\ + \n\x02\x04\x0f\x12\x06\xf5\x04\0\x84\x05\x01\x1a7\x20Request\x20message\ + \x20for\x20DeleteDefaultObjectAccessControl.\n\n\x0b\n\x03\x04\x0f\x01\ + \x12\x04\xf5\x04\x08/\n+\n\x04\x04\x0f\x02\0\x12\x04\xf7\x04\x02=\x1a\ + \x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x0f\ + \x02\0\x04\x12\x06\xf7\x04\x02\xf5\x041\n\r\n\x05\x04\x0f\x02\0\x05\x12\ + \x04\xf7\x04\x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xf7\x04\t\x0f\n\ + \r\n\x05\x04\x0f\x02\0\x03\x12\x04\xf7\x04\x12\x13\n\r\n\x05\x04\x0f\x02\ + \0\x08\x12\x04\xf7\x04\x14<\n\x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\ + \x04\xf7\x04\x15;\n\xd0\x01\n\x04\x04\x0f\x02\x01\x12\x04\x80\x05\x02=\ + \x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permissi\ + on.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user\ + -`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAdd\ + ress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\ + \x05\x04\x0f\x02\x01\x04\x12\x06\x80\x05\x02\xf7\x04=\n\r\n\x05\x04\x0f\ + \x02\x01\x05\x12\x04\x80\x05\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\ + \x04\x80\x05\t\x0f\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x80\x05\x12\x13\ + \n\r\n\x05\x04\x0f\x02\x01\x08\x12\x04\x80\x05\x14<\n\x10\n\x08\x04\x0f\ + \x02\x01\x08\x9c\x08\0\x12\x04\x80\x05\x15;\nG\n\x04\x04\x0f\x02\x02\x12\ + \x04\x83\x05\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ + \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x0f\x02\x02\x04\ + \x12\x06\x83\x05\x02\x80\x05=\n\r\n\x05\x04\x0f\x02\x02\x06\x12\x04\x83\ + \x05\x02\x15\n\r\n\x05\x04\x0f\x02\x02\x01\x12\x04\x83\x05\x16+\n\r\n\ + \x05\x04\x0f\x02\x02\x03\x12\x04\x83\x05./\nB\n\x02\x04\x10\x12\x06\x87\ + \x05\0\x96\x05\x01\x1a4\x20Request\x20message\x20for\x20GetDefaultObject\ + AccessControl.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x87\x05\x08,\n+\n\x04\ + \x04\x10\x02\0\x12\x04\x89\x05\x02=\x1a\x1d\x20Required.\x20Name\x20of\ + \x20a\x20bucket.\n\n\x0f\n\x05\x04\x10\x02\0\x04\x12\x06\x89\x05\x02\x87\ + \x05.\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\x89\x05\x02\x08\n\r\n\x05\x04\ + \x10\x02\0\x01\x12\x04\x89\x05\t\x0f\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\ + \x89\x05\x12\x13\n\r\n\x05\x04\x10\x02\0\x08\x12\x04\x89\x05\x14<\n\x10\ + \n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\x04\x89\x05\x15;\n\xd0\x01\n\x04\ + \x04\x10\x02\x01\x12\x04\x92\x05\x02=\x1a\xc1\x01\x20Required.\x20The\ + \x20entity\x20holding\x20the\x20permission.\x20Can\x20be\x20one\x20of:\n\ + \x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`grou\ + p-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\x20\ + *\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\x10\x02\x01\x04\x12\x06\ + \x92\x05\x02\x89\x05=\n\r\n\x05\x04\x10\x02\x01\x05\x12\x04\x92\x05\x02\ + \x08\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\x92\x05\t\x0f\n\r\n\x05\x04\ + \x10\x02\x01\x03\x12\x04\x92\x05\x12\x13\n\r\n\x05\x04\x10\x02\x01\x08\ + \x12\x04\x92\x05\x14<\n\x10\n\x08\x04\x10\x02\x01\x08\x9c\x08\0\x12\x04\ + \x92\x05\x15;\nG\n\x04\x04\x10\x02\x02\x12\x04\x95\x05\x020\x1a9\x20A\ + \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ + requests.\n\n\x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\x95\x05\x02\x92\x05=\ + \n\r\n\x05\x04\x10\x02\x02\x06\x12\x04\x95\x05\x02\x15\n\r\n\x05\x04\x10\ + \x02\x02\x01\x12\x04\x95\x05\x16+\n\r\n\x05\x04\x10\x02\x02\x03\x12\x04\ + \x95\x05./\nE\n\x02\x04\x11\x12\x06\x99\x05\0\xa2\x05\x01\x1a7\x20Reques\ + t\x20message\x20for\x20InsertDefaultObjectAccessControl.\n\n\x0b\n\x03\ + \x04\x11\x01\x12\x04\x99\x05\x08/\n+\n\x04\x04\x11\x02\0\x12\x04\x9b\x05\ + \x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\ + \x04\x11\x02\0\x04\x12\x06\x9b\x05\x02\x99\x051\n\r\n\x05\x04\x11\x02\0\ + \x05\x12\x04\x9b\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\x9b\x05\ + \t\x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\x9b\x05\x12\x13\n\r\n\x05\x04\ + \x11\x02\0\x08\x12\x04\x9b\x05\x14<\n\x10\n\x08\x04\x11\x02\0\x08\x9c\ + \x08\0\x12\x04\x9b\x05\x15;\nG\n\x04\x04\x11\x02\x01\x12\x04\x9e\x05\x02\ + 0\x1a9\x20Properties\x20of\x20the\x20object\x20access\x20control\x20bein\ + g\x20inserted.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\x06\x9e\x05\x02\x9b\ + \x05=\n\r\n\x05\x04\x11\x02\x01\x06\x12\x04\x9e\x05\x02\x15\n\r\n\x05\ + \x04\x11\x02\x01\x01\x12\x04\x9e\x05\x16+\n\r\n\x05\x04\x11\x02\x01\x03\ + \x12\x04\x9e\x05./\nG\n\x04\x04\x11\x02\x02\x12\x04\xa1\x05\x020\x1a9\ + \x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20AP\ + I\x20requests.\n\n\x0f\n\x05\x04\x11\x02\x02\x04\x12\x06\xa1\x05\x02\x9e\ + \x050\n\r\n\x05\x04\x11\x02\x02\x06\x12\x04\xa1\x05\x02\x15\n\r\n\x05\ + \x04\x11\x02\x02\x01\x12\x04\xa1\x05\x16+\n\r\n\x05\x04\x11\x02\x02\x03\ + \x12\x04\xa1\x05./\nD\n\x02\x04\x12\x12\x06\xa5\x05\0\xb3\x05\x01\x1a6\ + \x20Request\x20message\x20for\x20ListDefaultObjectAccessControls.\n\n\ + \x0b\n\x03\x04\x12\x01\x12\x04\xa5\x05\x08.\n+\n\x04\x04\x12\x02\0\x12\ + \x04\xa7\x05\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\ + \x0f\n\x05\x04\x12\x02\0\x04\x12\x06\xa7\x05\x02\xa5\x050\n\r\n\x05\x04\ + \x12\x02\0\x05\x12\x04\xa7\x05\x02\x08\n\r\n\x05\x04\x12\x02\0\x01\x12\ + \x04\xa7\x05\t\x0f\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xa7\x05\x12\x13\n\ + \r\n\x05\x04\x12\x02\0\x08\x12\x04\xa7\x05\x14<\n\x10\n\x08\x04\x12\x02\ + \0\x08\x9c\x08\0\x12\x04\xa7\x05\x15;\nw\n\x04\x04\x12\x02\x01\x12\x04\ + \xab\x05\x029\x1ai\x20If\x20present,\x20only\x20return\x20default\x20ACL\ + \x20listing\x20if\x20the\x20bucket's\x20current\n\x20metageneration\x20m\ + atches\x20this\x20value.\n\n\x0f\n\x05\x04\x12\x02\x01\x04\x12\x06\xab\ + \x05\x02\xa7\x05=\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xab\x05\x02\x1c\ + \n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xab\x05\x1d4\n\r\n\x05\x04\x12\ + \x02\x01\x03\x12\x04\xab\x0578\n\x83\x01\n\x04\x04\x12\x02\x02\x12\x04\ + \xaf\x05\x02=\x1au\x20If\x20present,\x20only\x20return\x20default\x20ACL\ + \x20listing\x20if\x20the\x20bucket's\x20current\n\x20metageneration\x20d\ + oes\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\x12\x02\ + \x02\x04\x12\x06\xaf\x05\x02\xab\x059\n\r\n\x05\x04\x12\x02\x02\x06\x12\ + \x04\xaf\x05\x02\x1c\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\xaf\x05\x1d8\ + \n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xaf\x05;<\nG\n\x04\x04\x12\x02\ + \x03\x12\x04\xb2\x05\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\ + \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x12\x02\ + \x03\x04\x12\x06\xb2\x05\x02\xaf\x05=\n\r\n\x05\x04\x12\x02\x03\x06\x12\ + \x04\xb2\x05\x02\x15\n\r\n\x05\x04\x12\x02\x03\x01\x12\x04\xb2\x05\x16+\ + \n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\xb2\x05./\nD\n\x02\x04\x13\x12\ + \x06\xb6\x05\0\xd4\x05\x01\x1a6\x20Request\x20message\x20for\x20PatchDef\ + aultObjectAccessControl.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xb6\x05\x08.\ + \n+\n\x04\x04\x13\x02\0\x12\x04\xb8\x05\x02=\x1a\x1d\x20Required.\x20Nam\ + e\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xb8\x05\ + \x02\xb6\x050\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xb8\x05\x02\x08\n\r\n\ + \x05\x04\x13\x02\0\x01\x12\x04\xb8\x05\t\x0f\n\r\n\x05\x04\x13\x02\0\x03\ + \x12\x04\xb8\x05\x12\x13\n\r\n\x05\x04\x13\x02\0\x08\x12\x04\xb8\x05\x14\ + <\n\x10\n\x08\x04\x13\x02\0\x08\x9c\x08\0\x12\x04\xb8\x05\x15;\n\xd0\x01\ + \n\x04\x04\x13\x02\x01\x12\x04\xc1\x05\x02=\x1a\xc1\x01\x20Required.\x20\ + The\x20entity\x20holding\x20the\x20permission.\x20Can\x20be\x20one\x20of\ + :\n\x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`g\ + roup-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\ + \x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\x13\x02\x01\x04\x12\ + \x06\xc1\x05\x02\xb8\x05=\n\r\n\x05\x04\x13\x02\x01\x05\x12\x04\xc1\x05\ + \x02\x08\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xc1\x05\t\x0f\n\r\n\x05\ + \x04\x13\x02\x01\x03\x12\x04\xc1\x05\x12\x13\n\r\n\x05\x04\x13\x02\x01\ + \x08\x12\x04\xc1\x05\x14<\n\x10\n\x08\x04\x13\x02\x01\x08\x9c\x08\0\x12\ + \x04\xc1\x05\x15;\n5\n\x04\x04\x13\x02\x02\x12\x04\xc4\x05\x020\x1a'\x20\ + The\x20ObjectAccessControl\x20for\x20updating.\n\n\x0f\n\x05\x04\x13\x02\ + \x02\x04\x12\x06\xc4\x05\x02\xc1\x05=\n\r\n\x05\x04\x13\x02\x02\x06\x12\ + \x04\xc4\x05\x02\x15\n\r\n\x05\x04\x13\x02\x02\x01\x12\x04\xc4\x05\x16+\ + \n\r\n\x05\x04\x13\x02\x02\x03\x12\x04\xc4\x05./\n\xbd\x03\n\x04\x04\x13\ + \x02\x03\x12\x04\xd0\x05\x02,\x1a\xae\x03\x20List\x20of\x20fields\x20to\ + \x20be\x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\ + \x20to\x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\ + \x20a\x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20not\ + \x20recommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20at\ + \x20a\x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\x20\ + the\x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field's\ + \x20value.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20erro\ + r.\n\x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20f\ + ield\x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\ + \n\x05\x04\x13\x02\x03\x04\x12\x06\xd0\x05\x02\xc4\x050\n\r\n\x05\x04\ + \x13\x02\x03\x06\x12\x04\xd0\x05\x02\x1b\n\r\n\x05\x04\x13\x02\x03\x01\ + \x12\x04\xd0\x05\x1c'\n\r\n\x05\x04\x13\x02\x03\x03\x12\x04\xd0\x05*+\nG\ + \n\x04\x04\x13\x02\x04\x12\x04\xd3\x05\x020\x1a9\x20A\x20set\x20of\x20pa\ + rameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\ + \x05\x04\x13\x02\x04\x04\x12\x06\xd3\x05\x02\xd0\x05,\n\r\n\x05\x04\x13\ + \x02\x04\x06\x12\x04\xd3\x05\x02\x15\n\r\n\x05\x04\x13\x02\x04\x01\x12\ + \x04\xd3\x05\x16+\n\r\n\x05\x04\x13\x02\x04\x03\x12\x04\xd3\x05./\nE\n\ + \x02\x04\x14\x12\x06\xd7\x05\0\xe9\x05\x01\x1a7\x20Request\x20message\ + \x20for\x20UpdateDefaultObjectAccessControl.\n\n\x0b\n\x03\x04\x14\x01\ + \x12\x04\xd7\x05\x08/\n+\n\x04\x04\x14\x02\0\x12\x04\xd9\x05\x02=\x1a\ + \x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x14\ + \x02\0\x04\x12\x06\xd9\x05\x02\xd7\x051\n\r\n\x05\x04\x14\x02\0\x05\x12\ + \x04\xd9\x05\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xd9\x05\t\x0f\n\ + \r\n\x05\x04\x14\x02\0\x03\x12\x04\xd9\x05\x12\x13\n\r\n\x05\x04\x14\x02\ + \0\x08\x12\x04\xd9\x05\x14<\n\x10\n\x08\x04\x14\x02\0\x08\x9c\x08\0\x12\ + \x04\xd9\x05\x15;\n\xd0\x01\n\x04\x04\x14\x02\x01\x12\x04\xe2\x05\x02=\ + \x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permissi\ + on.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user\ + -`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAdd\ + ress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\ + \x05\x04\x14\x02\x01\x04\x12\x06\xe2\x05\x02\xd9\x05=\n\r\n\x05\x04\x14\ + \x02\x01\x05\x12\x04\xe2\x05\x02\x08\n\r\n\x05\x04\x14\x02\x01\x01\x12\ + \x04\xe2\x05\t\x0f\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xe2\x05\x12\x13\ + \n\r\n\x05\x04\x14\x02\x01\x08\x12\x04\xe2\x05\x14<\n\x10\n\x08\x04\x14\ + \x02\x01\x08\x9c\x08\0\x12\x04\xe2\x05\x15;\n5\n\x04\x04\x14\x02\x02\x12\ + \x04\xe5\x05\x020\x1a'\x20The\x20ObjectAccessControl\x20for\x20updating.\ + \n\n\x0f\n\x05\x04\x14\x02\x02\x04\x12\x06\xe5\x05\x02\xe2\x05=\n\r\n\ + \x05\x04\x14\x02\x02\x06\x12\x04\xe5\x05\x02\x15\n\r\n\x05\x04\x14\x02\ + \x02\x01\x12\x04\xe5\x05\x16+\n\r\n\x05\x04\x14\x02\x02\x03\x12\x04\xe5\ + \x05./\nG\n\x04\x04\x14\x02\x03\x12\x04\xe8\x05\x020\x1a9\x20A\x20set\ + \x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20request\ + s.\n\n\x0f\n\x05\x04\x14\x02\x03\x04\x12\x06\xe8\x05\x02\xe5\x050\n\r\n\ + \x05\x04\x14\x02\x03\x06\x12\x04\xe8\x05\x02\x15\n\r\n\x05\x04\x14\x02\ + \x03\x01\x12\x04\xe8\x05\x16+\n\r\n\x05\x04\x14\x02\x03\x03\x12\x04\xe8\ + \x05./\n7\n\x02\x04\x15\x12\x06\xec\x05\0\xf5\x05\x01\x1a)\x20Request\ + \x20message\x20for\x20DeleteNotification.\n\n\x0b\n\x03\x04\x15\x01\x12\ + \x04\xec\x05\x08!\n@\n\x04\x04\x15\x02\0\x12\x04\xee\x05\x02=\x1a2\x20Re\ + quired.\x20The\x20parent\x20bucket\x20of\x20the\x20notification.\n\n\x0f\ + \n\x05\x04\x15\x02\0\x04\x12\x06\xee\x05\x02\xec\x05#\n\r\n\x05\x04\x15\ + \x02\0\x05\x12\x04\xee\x05\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\ + \xee\x05\t\x0f\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xee\x05\x12\x13\n\r\n\ + \x05\x04\x15\x02\0\x08\x12\x04\xee\x05\x14<\n\x10\n\x08\x04\x15\x02\0\ + \x08\x9c\x08\0\x12\x04\xee\x05\x15;\n;\n\x04\x04\x15\x02\x01\x12\x04\xf1\ + \x05\x02C\x1a-\x20Required.\x20ID\x20of\x20the\x20notification\x20to\x20\ + delete.\n\n\x0f\n\x05\x04\x15\x02\x01\x04\x12\x06\xf1\x05\x02\xee\x05=\n\ + \r\n\x05\x04\x15\x02\x01\x05\x12\x04\xf1\x05\x02\x08\n\r\n\x05\x04\x15\ + \x02\x01\x01\x12\x04\xf1\x05\t\x15\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\ + \xf1\x05\x18\x19\n\r\n\x05\x04\x15\x02\x01\x08\x12\x04\xf1\x05\x1aB\n\ + \x10\n\x08\x04\x15\x02\x01\x08\x9c\x08\0\x12\x04\xf1\x05\x1bA\nG\n\x04\ + \x04\x15\x02\x02\x12\x04\xf4\x05\x020\x1a9\x20A\x20set\x20of\x20paramete\ + rs\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\ + \x04\x15\x02\x02\x04\x12\x06\xf4\x05\x02\xf1\x05C\n\r\n\x05\x04\x15\x02\ + \x02\x06\x12\x04\xf4\x05\x02\x15\n\r\n\x05\x04\x15\x02\x02\x01\x12\x04\ + \xf4\x05\x16+\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\xf4\x05./\n4\n\x02\ + \x04\x16\x12\x06\xf8\x05\0\x82\x06\x01\x1a&\x20Request\x20message\x20for\ + \x20GetNotification.\n\n\x0b\n\x03\x04\x16\x01\x12\x04\xf8\x05\x08\x1e\n\ + @\n\x04\x04\x16\x02\0\x12\x04\xfa\x05\x02=\x1a2\x20Required.\x20The\x20p\ + arent\x20bucket\x20of\x20the\x20notification.\n\n\x0f\n\x05\x04\x16\x02\ + \0\x04\x12\x06\xfa\x05\x02\xf8\x05\x20\n\r\n\x05\x04\x16\x02\0\x05\x12\ + \x04\xfa\x05\x02\x08\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\xfa\x05\t\x0f\n\ + \r\n\x05\x04\x16\x02\0\x03\x12\x04\xfa\x05\x12\x13\n\r\n\x05\x04\x16\x02\ + \0\x08\x12\x04\xfa\x05\x14<\n\x10\n\x08\x04\x16\x02\0\x08\x9c\x08\0\x12\ + \x04\xfa\x05\x15;\n5\n\x04\x04\x16\x02\x01\x12\x04\xfe\x05\x02C\x1a'\x20\ + Required.\x20Notification\x20ID.\n\x20Required.\n\n\x0f\n\x05\x04\x16\ + \x02\x01\x04\x12\x06\xfe\x05\x02\xfa\x05=\n\r\n\x05\x04\x16\x02\x01\x05\ + \x12\x04\xfe\x05\x02\x08\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\xfe\x05\t\ + \x15\n\r\n\x05\x04\x16\x02\x01\x03\x12\x04\xfe\x05\x18\x19\n\r\n\x05\x04\ + \x16\x02\x01\x08\x12\x04\xfe\x05\x1aB\n\x10\n\x08\x04\x16\x02\x01\x08\ + \x9c\x08\0\x12\x04\xfe\x05\x1bA\nG\n\x04\x04\x16\x02\x02\x12\x04\x81\x06\ + \x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Sto\ + rage\x20API\x20requests.\n\n\x0f\n\x05\x04\x16\x02\x02\x04\x12\x06\x81\ + \x06\x02\xfe\x05C\n\r\n\x05\x04\x16\x02\x02\x06\x12\x04\x81\x06\x02\x15\ + \n\r\n\x05\x04\x16\x02\x02\x01\x12\x04\x81\x06\x16+\n\r\n\x05\x04\x16\ + \x02\x02\x03\x12\x04\x81\x06./\n7\n\x02\x04\x17\x12\x06\x85\x06\0\x8e\ + \x06\x01\x1a)\x20Request\x20message\x20for\x20InsertNotification.\n\n\ + \x0b\n\x03\x04\x17\x01\x12\x04\x85\x06\x08!\n@\n\x04\x04\x17\x02\0\x12\ + \x04\x87\x06\x02=\x1a2\x20Required.\x20The\x20parent\x20bucket\x20of\x20\ + the\x20notification.\n\n\x0f\n\x05\x04\x17\x02\0\x04\x12\x06\x87\x06\x02\ + \x85\x06#\n\r\n\x05\x04\x17\x02\0\x05\x12\x04\x87\x06\x02\x08\n\r\n\x05\ + \x04\x17\x02\0\x01\x12\x04\x87\x06\t\x0f\n\r\n\x05\x04\x17\x02\0\x03\x12\ + \x04\x87\x06\x12\x13\n\r\n\x05\x04\x17\x02\0\x08\x12\x04\x87\x06\x14<\n\ + \x10\n\x08\x04\x17\x02\0\x08\x9c\x08\0\x12\x04\x87\x06\x15;\n>\n\x04\x04\ + \x17\x02\x01\x12\x04\x8a\x06\x02\x20\x1a0\x20Properties\x20of\x20the\x20\ + notification\x20to\x20be\x20inserted.\n\n\x0f\n\x05\x04\x17\x02\x01\x04\ + \x12\x06\x8a\x06\x02\x87\x06=\n\r\n\x05\x04\x17\x02\x01\x06\x12\x04\x8a\ + \x06\x02\x0e\n\r\n\x05\x04\x17\x02\x01\x01\x12\x04\x8a\x06\x0f\x1b\n\r\n\ + \x05\x04\x17\x02\x01\x03\x12\x04\x8a\x06\x1e\x1f\nG\n\x04\x04\x17\x02\ + \x02\x12\x04\x8d\x06\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\ + \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x17\x02\ + \x02\x04\x12\x06\x8d\x06\x02\x8a\x06\x20\n\r\n\x05\x04\x17\x02\x02\x06\ + \x12\x04\x8d\x06\x02\x15\n\r\n\x05\x04\x17\x02\x02\x01\x12\x04\x8d\x06\ + \x16+\n\r\n\x05\x04\x17\x02\x02\x03\x12\x04\x8d\x06./\n6\n\x02\x04\x18\ + \x12\x06\x91\x06\0\x97\x06\x01\x1a(\x20Request\x20message\x20for\x20List\ + Notifications.\n\n\x0b\n\x03\x04\x18\x01\x12\x04\x91\x06\x08\x20\n@\n\ + \x04\x04\x18\x02\0\x12\x04\x93\x06\x02=\x1a2\x20Required.\x20Name\x20of\ + \x20a\x20Google\x20Cloud\x20Storage\x20bucket.\n\n\x0f\n\x05\x04\x18\x02\ + \0\x04\x12\x06\x93\x06\x02\x91\x06\"\n\r\n\x05\x04\x18\x02\0\x05\x12\x04\ + \x93\x06\x02\x08\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\x93\x06\t\x0f\n\r\n\ + \x05\x04\x18\x02\0\x03\x12\x04\x93\x06\x12\x13\n\r\n\x05\x04\x18\x02\0\ + \x08\x12\x04\x93\x06\x14<\n\x10\n\x08\x04\x18\x02\0\x08\x9c\x08\0\x12\ + \x04\x93\x06\x15;\nG\n\x04\x04\x18\x02\x01\x12\x04\x96\x06\x020\x1a9\x20\ + A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\ + \x20requests.\n\n\x0f\n\x05\x04\x18\x02\x01\x04\x12\x06\x96\x06\x02\x93\ + \x06=\n\r\n\x05\x04\x18\x02\x01\x06\x12\x04\x96\x06\x02\x15\n\r\n\x05\ + \x04\x18\x02\x01\x01\x12\x04\x96\x06\x16+\n\r\n\x05\x04\x18\x02\x01\x03\ + \x12\x04\x96\x06./\n>\n\x02\x04\x19\x12\x06\x9a\x06\0\xb0\x06\x01\x1a0\ + \x20Request\x20message\x20for\x20DeleteObjectAccessControl.\n\n\x0b\n\ + \x03\x04\x19\x01\x12\x04\x9a\x06\x08(\n+\n\x04\x04\x19\x02\0\x12\x04\x9c\ + \x06\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\ + \x05\x04\x19\x02\0\x04\x12\x06\x9c\x06\x02\x9a\x06*\n\r\n\x05\x04\x19\ + \x02\0\x05\x12\x04\x9c\x06\x02\x08\n\r\n\x05\x04\x19\x02\0\x01\x12\x04\ + \x9c\x06\t\x0f\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\x9c\x06\x12\x13\n\r\n\ + \x05\x04\x19\x02\0\x08\x12\x04\x9c\x06\x14<\n\x10\n\x08\x04\x19\x02\0\ + \x08\x9c\x08\0\x12\x04\x9c\x06\x15;\n\xd0\x01\n\x04\x04\x19\x02\x01\x12\ + \x04\xa5\x06\x02=\x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\ + \x20the\x20permission.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*user\ + Id*\n\x20*\x20`user-`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\ + \x20`group-`*emailAddress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthentica\ + tedUsers`\n\n\x0f\n\x05\x04\x19\x02\x01\x04\x12\x06\xa5\x06\x02\x9c\x06=\ + \n\r\n\x05\x04\x19\x02\x01\x05\x12\x04\xa5\x06\x02\x08\n\r\n\x05\x04\x19\ + \x02\x01\x01\x12\x04\xa5\x06\t\x0f\n\r\n\x05\x04\x19\x02\x01\x03\x12\x04\ + \xa5\x06\x12\x13\n\r\n\x05\x04\x19\x02\x01\x08\x12\x04\xa5\x06\x14<\n\ + \x10\n\x08\x04\x19\x02\x01\x08\x9c\x08\0\x12\x04\xa5\x06\x15;\n-\n\x04\ + \x04\x19\x02\x02\x12\x04\xa8\x06\x02=\x1a\x1f\x20Required.\x20Name\x20of\ + \x20the\x20object.\n\n\x0f\n\x05\x04\x19\x02\x02\x04\x12\x06\xa8\x06\x02\ + \xa5\x06=\n\r\n\x05\x04\x19\x02\x02\x05\x12\x04\xa8\x06\x02\x08\n\r\n\ + \x05\x04\x19\x02\x02\x01\x12\x04\xa8\x06\t\x0f\n\r\n\x05\x04\x19\x02\x02\ + \x03\x12\x04\xa8\x06\x12\x13\n\r\n\x05\x04\x19\x02\x02\x08\x12\x04\xa8\ + \x06\x14<\n\x10\n\x08\x04\x19\x02\x02\x08\x9c\x08\0\x12\x04\xa8\x06\x15;\ + \nx\n\x04\x04\x19\x02\x03\x12\x04\xac\x06\x02\x17\x1aj\x20If\x20present,\ + \x20selects\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\ + \x20opposed\x20to\x20the\n\x20latest\x20version,\x20the\x20default).\n\n\ + \x0f\n\x05\x04\x19\x02\x03\x04\x12\x06\xac\x06\x02\xa8\x06=\n\r\n\x05\ + \x04\x19\x02\x03\x05\x12\x04\xac\x06\x02\x07\n\r\n\x05\x04\x19\x02\x03\ + \x01\x12\x04\xac\x06\x08\x12\n\r\n\x05\x04\x19\x02\x03\x03\x12\x04\xac\ + \x06\x15\x16\nG\n\x04\x04\x19\x02\x04\x12\x04\xaf\x06\x020\x1a9\x20A\x20\ + set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20requ\ + ests.\n\n\x0f\n\x05\x04\x19\x02\x04\x04\x12\x06\xaf\x06\x02\xac\x06\x17\ + \n\r\n\x05\x04\x19\x02\x04\x06\x12\x04\xaf\x06\x02\x15\n\r\n\x05\x04\x19\ + \x02\x04\x01\x12\x04\xaf\x06\x16+\n\r\n\x05\x04\x19\x02\x04\x03\x12\x04\ + \xaf\x06./\n;\n\x02\x04\x1a\x12\x06\xb3\x06\0\xc9\x06\x01\x1a-\x20Reques\ + t\x20message\x20for\x20GetObjectAccessControl.\n\n\x0b\n\x03\x04\x1a\x01\ + \x12\x04\xb3\x06\x08%\n+\n\x04\x04\x1a\x02\0\x12\x04\xb5\x06\x02=\x1a\ + \x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x1a\ + \x02\0\x04\x12\x06\xb5\x06\x02\xb3\x06'\n\r\n\x05\x04\x1a\x02\0\x05\x12\ + \x04\xb5\x06\x02\x08\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\xb5\x06\t\x0f\n\ + \r\n\x05\x04\x1a\x02\0\x03\x12\x04\xb5\x06\x12\x13\n\r\n\x05\x04\x1a\x02\ + \0\x08\x12\x04\xb5\x06\x14<\n\x10\n\x08\x04\x1a\x02\0\x08\x9c\x08\0\x12\ + \x04\xb5\x06\x15;\n\xd0\x01\n\x04\x04\x1a\x02\x01\x12\x04\xbe\x06\x02=\ + \x1a\xc1\x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permissi\ + on.\x20Can\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user\ + -`*emailAddress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAdd\ + ress*\n\x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\ + \x05\x04\x1a\x02\x01\x04\x12\x06\xbe\x06\x02\xb5\x06=\n\r\n\x05\x04\x1a\ + \x02\x01\x05\x12\x04\xbe\x06\x02\x08\n\r\n\x05\x04\x1a\x02\x01\x01\x12\ + \x04\xbe\x06\t\x0f\n\r\n\x05\x04\x1a\x02\x01\x03\x12\x04\xbe\x06\x12\x13\ + \n\r\n\x05\x04\x1a\x02\x01\x08\x12\x04\xbe\x06\x14<\n\x10\n\x08\x04\x1a\ + \x02\x01\x08\x9c\x08\0\x12\x04\xbe\x06\x15;\n-\n\x04\x04\x1a\x02\x02\x12\ + \x04\xc1\x06\x02=\x1a\x1f\x20Required.\x20Name\x20of\x20the\x20object.\n\ + \n\x0f\n\x05\x04\x1a\x02\x02\x04\x12\x06\xc1\x06\x02\xbe\x06=\n\r\n\x05\ + \x04\x1a\x02\x02\x05\x12\x04\xc1\x06\x02\x08\n\r\n\x05\x04\x1a\x02\x02\ + \x01\x12\x04\xc1\x06\t\x0f\n\r\n\x05\x04\x1a\x02\x02\x03\x12\x04\xc1\x06\ + \x12\x13\n\r\n\x05\x04\x1a\x02\x02\x08\x12\x04\xc1\x06\x14<\n\x10\n\x08\ + \x04\x1a\x02\x02\x08\x9c\x08\0\x12\x04\xc1\x06\x15;\nx\n\x04\x04\x1a\x02\ + \x03\x12\x04\xc5\x06\x02\x17\x1aj\x20If\x20present,\x20selects\x20a\x20s\ + pecific\x20revision\x20of\x20this\x20object\x20(as\x20opposed\x20to\x20t\ + he\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\x04\x1a\x02\ + \x03\x04\x12\x06\xc5\x06\x02\xc1\x06=\n\r\n\x05\x04\x1a\x02\x03\x05\x12\ + \x04\xc5\x06\x02\x07\n\r\n\x05\x04\x1a\x02\x03\x01\x12\x04\xc5\x06\x08\ + \x12\n\r\n\x05\x04\x1a\x02\x03\x03\x12\x04\xc5\x06\x15\x16\nG\n\x04\x04\ + \x1a\x02\x04\x12\x04\xc8\x06\x020\x1a9\x20A\x20set\x20of\x20parameters\ + \x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\ + \x1a\x02\x04\x04\x12\x06\xc8\x06\x02\xc5\x06\x17\n\r\n\x05\x04\x1a\x02\ + \x04\x06\x12\x04\xc8\x06\x02\x15\n\r\n\x05\x04\x1a\x02\x04\x01\x12\x04\ + \xc8\x06\x16+\n\r\n\x05\x04\x1a\x02\x04\x03\x12\x04\xc8\x06./\n>\n\x02\ + \x04\x1b\x12\x06\xcc\x06\0\xdc\x06\x01\x1a0\x20Request\x20message\x20for\ + \x20InsertObjectAccessControl.\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xcc\x06\ + \x08(\n+\n\x04\x04\x1b\x02\0\x12\x04\xce\x06\x02=\x1a\x1d\x20Required.\ + \x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\ + \xce\x06\x02\xcc\x06*\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\xce\x06\x02\ + \x08\n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\xce\x06\t\x0f\n\r\n\x05\x04\x1b\ + \x02\0\x03\x12\x04\xce\x06\x12\x13\n\r\n\x05\x04\x1b\x02\0\x08\x12\x04\ + \xce\x06\x14<\n\x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\xce\x06\ + \x15;\n-\n\x04\x04\x1b\x02\x01\x12\x04\xd1\x06\x02=\x1a\x1f\x20Required.\ + \x20Name\x20of\x20the\x20object.\n\n\x0f\n\x05\x04\x1b\x02\x01\x04\x12\ + \x06\xd1\x06\x02\xce\x06=\n\r\n\x05\x04\x1b\x02\x01\x05\x12\x04\xd1\x06\ + \x02\x08\n\r\n\x05\x04\x1b\x02\x01\x01\x12\x04\xd1\x06\t\x0f\n\r\n\x05\ + \x04\x1b\x02\x01\x03\x12\x04\xd1\x06\x12\x13\n\r\n\x05\x04\x1b\x02\x01\ + \x08\x12\x04\xd1\x06\x14<\n\x10\n\x08\x04\x1b\x02\x01\x08\x9c\x08\0\x12\ + \x04\xd1\x06\x15;\nx\n\x04\x04\x1b\x02\x02\x12\x04\xd5\x06\x02\x17\x1aj\ + \x20If\x20present,\x20selects\x20a\x20specific\x20revision\x20of\x20this\ + \x20object\x20(as\x20opposed\x20to\x20the\n\x20latest\x20version,\x20the\ + \x20default).\n\n\x0f\n\x05\x04\x1b\x02\x02\x04\x12\x06\xd5\x06\x02\xd1\ + \x06=\n\r\n\x05\x04\x1b\x02\x02\x05\x12\x04\xd5\x06\x02\x07\n\r\n\x05\ + \x04\x1b\x02\x02\x01\x12\x04\xd5\x06\x08\x12\n\r\n\x05\x04\x1b\x02\x02\ + \x03\x12\x04\xd5\x06\x15\x16\nG\n\x04\x04\x1b\x02\x03\x12\x04\xd8\x06\ + \x020\x1a9\x20Properties\x20of\x20the\x20object\x20access\x20control\x20\ + to\x20be\x20inserted.\n\n\x0f\n\x05\x04\x1b\x02\x03\x04\x12\x06\xd8\x06\ + \x02\xd5\x06\x17\n\r\n\x05\x04\x1b\x02\x03\x06\x12\x04\xd8\x06\x02\x15\n\ + \r\n\x05\x04\x1b\x02\x03\x01\x12\x04\xd8\x06\x16+\n\r\n\x05\x04\x1b\x02\ + \x03\x03\x12\x04\xd8\x06./\nG\n\x04\x04\x1b\x02\x04\x12\x04\xdb\x06\x020\ + \x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\ + \x20API\x20requests.\n\n\x0f\n\x05\x04\x1b\x02\x04\x04\x12\x06\xdb\x06\ + \x02\xd8\x060\n\r\n\x05\x04\x1b\x02\x04\x06\x12\x04\xdb\x06\x02\x15\n\r\ + \n\x05\x04\x1b\x02\x04\x01\x12\x04\xdb\x06\x16+\n\r\n\x05\x04\x1b\x02\ + \x04\x03\x12\x04\xdb\x06./\n=\n\x02\x04\x1c\x12\x06\xdf\x06\0\xec\x06\ + \x01\x1a/\x20Request\x20message\x20for\x20ListObjectAccessControls.\n\n\ + \x0b\n\x03\x04\x1c\x01\x12\x04\xdf\x06\x08'\n+\n\x04\x04\x1c\x02\0\x12\ + \x04\xe1\x06\x02=\x1a\x1d\x20Required.\x20Name\x20of\x20a\x20bucket.\n\n\ + \x0f\n\x05\x04\x1c\x02\0\x04\x12\x06\xe1\x06\x02\xdf\x06)\n\r\n\x05\x04\ + \x1c\x02\0\x05\x12\x04\xe1\x06\x02\x08\n\r\n\x05\x04\x1c\x02\0\x01\x12\ + \x04\xe1\x06\t\x0f\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xe1\x06\x12\x13\n\ + \r\n\x05\x04\x1c\x02\0\x08\x12\x04\xe1\x06\x14<\n\x10\n\x08\x04\x1c\x02\ + \0\x08\x9c\x08\0\x12\x04\xe1\x06\x15;\n-\n\x04\x04\x1c\x02\x01\x12\x04\ + \xe4\x06\x02=\x1a\x1f\x20Required.\x20Name\x20of\x20the\x20object.\n\n\ + \x0f\n\x05\x04\x1c\x02\x01\x04\x12\x06\xe4\x06\x02\xe1\x06=\n\r\n\x05\ + \x04\x1c\x02\x01\x05\x12\x04\xe4\x06\x02\x08\n\r\n\x05\x04\x1c\x02\x01\ + \x01\x12\x04\xe4\x06\t\x0f\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xe4\x06\ + \x12\x13\n\r\n\x05\x04\x1c\x02\x01\x08\x12\x04\xe4\x06\x14<\n\x10\n\x08\ + \x04\x1c\x02\x01\x08\x9c\x08\0\x12\x04\xe4\x06\x15;\nx\n\x04\x04\x1c\x02\ + \x02\x12\x04\xe8\x06\x02\x17\x1aj\x20If\x20present,\x20selects\x20a\x20s\ + pecific\x20revision\x20of\x20this\x20object\x20(as\x20opposed\x20to\x20t\ + he\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\x04\x1c\x02\ + \x02\x04\x12\x06\xe8\x06\x02\xe4\x06=\n\r\n\x05\x04\x1c\x02\x02\x05\x12\ + \x04\xe8\x06\x02\x07\n\r\n\x05\x04\x1c\x02\x02\x01\x12\x04\xe8\x06\x08\ + \x12\n\r\n\x05\x04\x1c\x02\x02\x03\x12\x04\xe8\x06\x15\x16\nG\n\x04\x04\ + \x1c\x02\x03\x12\x04\xeb\x06\x020\x1a9\x20A\x20set\x20of\x20parameters\ + \x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\ + \x1c\x02\x03\x04\x12\x06\xeb\x06\x02\xe8\x06\x17\n\r\n\x05\x04\x1c\x02\ + \x03\x06\x12\x04\xeb\x06\x02\x15\n\r\n\x05\x04\x1c\x02\x03\x01\x12\x04\ + \xeb\x06\x16+\n\r\n\x05\x04\x1c\x02\x03\x03\x12\x04\xeb\x06./\n=\n\x02\ + \x04\x1d\x12\x06\xef\x06\0\x95\x07\x01\x1a/\x20Request\x20message\x20for\ + \x20PatchObjectAccessControl.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\xef\x06\ + \x08'\n+\n\x04\x04\x1d\x02\0\x12\x04\xf1\x06\x02=\x1a\x1d\x20Required.\ + \x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x1d\x02\0\x04\x12\x06\ + \xf1\x06\x02\xef\x06)\n\r\n\x05\x04\x1d\x02\0\x05\x12\x04\xf1\x06\x02\ + \x08\n\r\n\x05\x04\x1d\x02\0\x01\x12\x04\xf1\x06\t\x0f\n\r\n\x05\x04\x1d\ + \x02\0\x03\x12\x04\xf1\x06\x12\x13\n\r\n\x05\x04\x1d\x02\0\x08\x12\x04\ + \xf1\x06\x14<\n\x10\n\x08\x04\x1d\x02\0\x08\x9c\x08\0\x12\x04\xf1\x06\ + \x15;\n\xd0\x01\n\x04\x04\x1d\x02\x01\x12\x04\xfa\x06\x02=\x1a\xc1\x01\ + \x20Required.\x20The\x20entity\x20holding\x20the\x20permission.\x20Can\ + \x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user-`*emailAd\ + dress*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\ + \x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\ + \x1d\x02\x01\x04\x12\x06\xfa\x06\x02\xf1\x06=\n\r\n\x05\x04\x1d\x02\x01\ + \x05\x12\x04\xfa\x06\x02\x08\n\r\n\x05\x04\x1d\x02\x01\x01\x12\x04\xfa\ + \x06\t\x0f\n\r\n\x05\x04\x1d\x02\x01\x03\x12\x04\xfa\x06\x12\x13\n\r\n\ + \x05\x04\x1d\x02\x01\x08\x12\x04\xfa\x06\x14<\n\x10\n\x08\x04\x1d\x02\ + \x01\x08\x9c\x08\0\x12\x04\xfa\x06\x15;\n8\n\x04\x04\x1d\x02\x02\x12\x04\ + \xfe\x06\x02=\x1a*\x20Required.\x20Name\x20of\x20the\x20object.\n\x20Req\ + uired.\n\n\x0f\n\x05\x04\x1d\x02\x02\x04\x12\x06\xfe\x06\x02\xfa\x06=\n\ + \r\n\x05\x04\x1d\x02\x02\x05\x12\x04\xfe\x06\x02\x08\n\r\n\x05\x04\x1d\ + \x02\x02\x01\x12\x04\xfe\x06\t\x0f\n\r\n\x05\x04\x1d\x02\x02\x03\x12\x04\ + \xfe\x06\x12\x13\n\r\n\x05\x04\x1d\x02\x02\x08\x12\x04\xfe\x06\x14<\n\ + \x10\n\x08\x04\x1d\x02\x02\x08\x9c\x08\0\x12\x04\xfe\x06\x15;\nx\n\x04\ + \x04\x1d\x02\x03\x12\x04\x82\x07\x02\x17\x1aj\x20If\x20present,\x20selec\ + ts\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\x20oppose\ + d\x20to\x20the\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\ + \x04\x1d\x02\x03\x04\x12\x06\x82\x07\x02\xfe\x06=\n\r\n\x05\x04\x1d\x02\ + \x03\x05\x12\x04\x82\x07\x02\x07\n\r\n\x05\x04\x1d\x02\x03\x01\x12\x04\ + \x82\x07\x08\x12\n\r\n\x05\x04\x1d\x02\x03\x03\x12\x04\x82\x07\x15\x16\n\ + 5\n\x04\x04\x1d\x02\x04\x12\x04\x85\x07\x020\x1a'\x20The\x20ObjectAccess\ + Control\x20for\x20updating.\n\n\x0f\n\x05\x04\x1d\x02\x04\x04\x12\x06\ + \x85\x07\x02\x82\x07\x17\n\r\n\x05\x04\x1d\x02\x04\x06\x12\x04\x85\x07\ + \x02\x15\n\r\n\x05\x04\x1d\x02\x04\x01\x12\x04\x85\x07\x16+\n\r\n\x05\ + \x04\x1d\x02\x04\x03\x12\x04\x85\x07./\nG\n\x04\x04\x1d\x02\x05\x12\x04\ + \x88\x07\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ + l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x1d\x02\x05\x04\x12\ + \x06\x88\x07\x02\x85\x070\n\r\n\x05\x04\x1d\x02\x05\x06\x12\x04\x88\x07\ + \x02\x15\n\r\n\x05\x04\x1d\x02\x05\x01\x12\x04\x88\x07\x16+\n\r\n\x05\ + \x04\x1d\x02\x05\x03\x12\x04\x88\x07./\n\xbd\x03\n\x04\x04\x1d\x02\x06\ + \x12\x04\x94\x07\x02,\x1a\xae\x03\x20List\x20of\x20fields\x20to\x20be\ + \x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\x20to\ + \x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\x20a\ + \x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20not\x20r\ + ecommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20at\x20a\ + \x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\x20the\ + \x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field's\x20va\ + lue.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20error.\n\ + \x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20field\ + \x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\n\ + \x05\x04\x1d\x02\x06\x04\x12\x06\x94\x07\x02\x88\x070\n\r\n\x05\x04\x1d\ + \x02\x06\x06\x12\x04\x94\x07\x02\x1b\n\r\n\x05\x04\x1d\x02\x06\x01\x12\ + \x04\x94\x07\x1c'\n\r\n\x05\x04\x1d\x02\x06\x03\x12\x04\x94\x07*+\n>\n\ + \x02\x04\x1e\x12\x06\x98\x07\0\xbe\x07\x01\x1a0\x20Request\x20message\ + \x20for\x20UpdateObjectAccessControl.\n\n\x0b\n\x03\x04\x1e\x01\x12\x04\ + \x98\x07\x08(\n+\n\x04\x04\x1e\x02\0\x12\x04\x9a\x07\x02=\x1a\x1d\x20Req\ + uired.\x20Name\x20of\x20a\x20bucket.\n\n\x0f\n\x05\x04\x1e\x02\0\x04\x12\ + \x06\x9a\x07\x02\x98\x07*\n\r\n\x05\x04\x1e\x02\0\x05\x12\x04\x9a\x07\ + \x02\x08\n\r\n\x05\x04\x1e\x02\0\x01\x12\x04\x9a\x07\t\x0f\n\r\n\x05\x04\ + \x1e\x02\0\x03\x12\x04\x9a\x07\x12\x13\n\r\n\x05\x04\x1e\x02\0\x08\x12\ + \x04\x9a\x07\x14<\n\x10\n\x08\x04\x1e\x02\0\x08\x9c\x08\0\x12\x04\x9a\ + \x07\x15;\n\xd0\x01\n\x04\x04\x1e\x02\x01\x12\x04\xa3\x07\x02=\x1a\xc1\ + \x01\x20Required.\x20The\x20entity\x20holding\x20the\x20permission.\x20C\ + an\x20be\x20one\x20of:\n\x20*\x20`user-`*userId*\n\x20*\x20`user-`*email\ + Address*\n\x20*\x20`group-`*groupId*\n\x20*\x20`group-`*emailAddress*\n\ + \x20*\x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\n\x0f\n\x05\x04\ + \x1e\x02\x01\x04\x12\x06\xa3\x07\x02\x9a\x07=\n\r\n\x05\x04\x1e\x02\x01\ + \x05\x12\x04\xa3\x07\x02\x08\n\r\n\x05\x04\x1e\x02\x01\x01\x12\x04\xa3\ + \x07\t\x0f\n\r\n\x05\x04\x1e\x02\x01\x03\x12\x04\xa3\x07\x12\x13\n\r\n\ + \x05\x04\x1e\x02\x01\x08\x12\x04\xa3\x07\x14<\n\x10\n\x08\x04\x1e\x02\ + \x01\x08\x9c\x08\0\x12\x04\xa3\x07\x15;\n8\n\x04\x04\x1e\x02\x02\x12\x04\ + \xa7\x07\x02=\x1a*\x20Required.\x20Name\x20of\x20the\x20object.\n\x20Req\ + uired.\n\n\x0f\n\x05\x04\x1e\x02\x02\x04\x12\x06\xa7\x07\x02\xa3\x07=\n\ + \r\n\x05\x04\x1e\x02\x02\x05\x12\x04\xa7\x07\x02\x08\n\r\n\x05\x04\x1e\ + \x02\x02\x01\x12\x04\xa7\x07\t\x0f\n\r\n\x05\x04\x1e\x02\x02\x03\x12\x04\ + \xa7\x07\x12\x13\n\r\n\x05\x04\x1e\x02\x02\x08\x12\x04\xa7\x07\x14<\n\ + \x10\n\x08\x04\x1e\x02\x02\x08\x9c\x08\0\x12\x04\xa7\x07\x15;\nx\n\x04\ + \x04\x1e\x02\x03\x12\x04\xab\x07\x02\x17\x1aj\x20If\x20present,\x20selec\ + ts\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\x20oppose\ + d\x20to\x20the\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\ + \x04\x1e\x02\x03\x04\x12\x06\xab\x07\x02\xa7\x07=\n\r\n\x05\x04\x1e\x02\ + \x03\x05\x12\x04\xab\x07\x02\x07\n\r\n\x05\x04\x1e\x02\x03\x01\x12\x04\ + \xab\x07\x08\x12\n\r\n\x05\x04\x1e\x02\x03\x03\x12\x04\xab\x07\x15\x16\n\ + 5\n\x04\x04\x1e\x02\x04\x12\x04\xae\x07\x020\x1a'\x20The\x20ObjectAccess\ + Control\x20for\x20updating.\n\n\x0f\n\x05\x04\x1e\x02\x04\x04\x12\x06\ + \xae\x07\x02\xab\x07\x17\n\r\n\x05\x04\x1e\x02\x04\x06\x12\x04\xae\x07\ + \x02\x15\n\r\n\x05\x04\x1e\x02\x04\x01\x12\x04\xae\x07\x16+\n\r\n\x05\ + \x04\x1e\x02\x04\x03\x12\x04\xae\x07./\nG\n\x04\x04\x1e\x02\x05\x12\x04\ + \xb1\x07\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ + l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x1e\x02\x05\x04\x12\ + \x06\xb1\x07\x02\xae\x070\n\r\n\x05\x04\x1e\x02\x05\x06\x12\x04\xb1\x07\ + \x02\x15\n\r\n\x05\x04\x1e\x02\x05\x01\x12\x04\xb1\x07\x16+\n\r\n\x05\ + \x04\x1e\x02\x05\x03\x12\x04\xb1\x07./\n\xbd\x03\n\x04\x04\x1e\x02\x06\ + \x12\x04\xbd\x07\x02,\x1a\xae\x03\x20List\x20of\x20fields\x20to\x20be\ + \x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equivalent\x20to\ + \x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20specify\x20a\ + \x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20not\x20r\ + ecommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20at\x20a\ + \x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\x20the\ + \x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field's\x20va\ + lue.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20error.\n\ + \x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20field\ + \x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\n\ + \x05\x04\x1e\x02\x06\x04\x12\x06\xbd\x07\x02\xb1\x070\n\r\n\x05\x04\x1e\ + \x02\x06\x06\x12\x04\xbd\x07\x02\x1b\n\r\n\x05\x04\x1e\x02\x06\x01\x12\ + \x04\xbd\x07\x1c'\n\r\n\x05\x04\x1e\x02\x06\x03\x12\x04\xbd\x07*+\n2\n\ + \x02\x04\x1f\x12\x06\xc1\x07\0\xfb\x07\x01\x1a$\x20Request\x20message\ + \x20for\x20ComposeObject.\n\n\x0b\n\x03\x04\x1f\x01\x12\x04\xc1\x07\x08\ + \x1c\nK\n\x04\x04\x1f\x03\0\x12\x06\xc3\x07\x02\xd5\x07\x03\x1a;\x20Desc\ + ription\x20of\x20a\x20source\x20object\x20for\x20a\x20composition\x20req\ + uest.\n\n\r\n\x05\x04\x1f\x03\0\x01\x12\x04\xc3\x07\n\x17\nO\n\x06\x04\ + \x1f\x03\0\x03\0\x12\x06\xc5\x07\x04\xca\x07\x05\x1a=\x20Preconditions\ + \x20for\x20a\x20source\x20object\x20of\x20a\x20composition\x20request.\n\ + \n\x0f\n\x07\x04\x1f\x03\0\x03\0\x01\x12\x04\xc5\x07\x0c\x1f\n\xe8\x01\n\ + \x08\x04\x1f\x03\0\x03\0\x02\0\x12\x04\xc9\x07\x069\x1a\xd5\x01\x20Only\ + \x20perform\x20the\x20composition\x20if\x20the\x20generation\x20of\x20th\ + e\x20source\x20object\n\x20that\x20would\x20be\x20used\x20matches\x20thi\ + s\x20value.\x20\x20If\x20this\x20value\x20and\x20a\x20generation\n\x20ar\ + e\x20both\x20specified,\x20they\x20must\x20be\x20the\x20same\x20value\ + \x20or\x20the\x20call\x20will\x20fail.\n\n\x13\n\t\x04\x1f\x03\0\x03\0\ + \x02\0\x04\x12\x06\xc9\x07\x06\xc5\x07!\n\x11\n\t\x04\x1f\x03\0\x03\0\ + \x02\0\x06\x12\x04\xc9\x07\x06\x20\n\x11\n\t\x04\x1f\x03\0\x03\0\x02\0\ + \x01\x12\x04\xc9\x07!4\n\x11\n\t\x04\x1f\x03\0\x03\0\x02\0\x03\x12\x04\ + \xc9\x0778\n_\n\x06\x04\x1f\x03\0\x02\0\x12\x04\xce\x07\x04\x14\x1aO\x20\ + The\x20source\x20object's\x20name.\x20All\x20source\x20objects\x20must\ + \x20reside\x20in\x20the\x20same\n\x20bucket.\n\n\x11\n\x07\x04\x1f\x03\0\ + \x02\0\x04\x12\x06\xce\x07\x04\xca\x07\x05\n\x0f\n\x07\x04\x1f\x03\0\x02\ + \0\x05\x12\x04\xce\x07\x04\n\n\x0f\n\x07\x04\x1f\x03\0\x02\0\x01\x12\x04\ + \xce\x07\x0b\x0f\n\x0f\n\x07\x04\x1f\x03\0\x02\0\x03\x12\x04\xce\x07\x12\ + \x13\nE\n\x06\x04\x1f\x03\0\x02\x01\x12\x04\xd1\x07\x04\x19\x1a5\x20The\ + \x20generation\x20of\x20this\x20object\x20to\x20use\x20as\x20the\x20sour\ + ce.\n\n\x11\n\x07\x04\x1f\x03\0\x02\x01\x04\x12\x06\xd1\x07\x04\xce\x07\ + \x14\n\x0f\n\x07\x04\x1f\x03\0\x02\x01\x05\x12\x04\xd1\x07\x04\t\n\x0f\n\ + \x07\x04\x1f\x03\0\x02\x01\x01\x12\x04\xd1\x07\n\x14\n\x0f\n\x07\x04\x1f\ + \x03\0\x02\x01\x03\x12\x04\xd1\x07\x17\x18\nL\n\x06\x04\x1f\x03\0\x02\ + \x02\x12\x04\xd4\x07\x041\x1a<\x20Conditions\x20that\x20must\x20be\x20me\ + t\x20for\x20this\x20operation\x20to\x20execute.\n\n\x11\n\x07\x04\x1f\ + \x03\0\x02\x02\x04\x12\x06\xd4\x07\x04\xd1\x07\x19\n\x0f\n\x07\x04\x1f\ + \x03\0\x02\x02\x06\x12\x04\xd4\x07\x04\x17\n\x0f\n\x07\x04\x1f\x03\0\x02\ + \x02\x01\x12\x04\xd4\x07\x18,\n\x0f\n\x07\x04\x1f\x03\0\x02\x02\x03\x12\ + \x04\xd4\x07/0\n}\n\x04\x04\x1f\x02\0\x12\x04\xd9\x07\x02I\x1ao\x20Requi\ + red.\x20Name\x20of\x20the\x20bucket\x20containing\x20the\x20source\x20ob\ + jects.\x20The\x20destination\x20object\x20is\n\x20stored\x20in\x20this\ + \x20bucket.\n\n\x0f\n\x05\x04\x1f\x02\0\x04\x12\x06\xd9\x07\x02\xd5\x07\ + \x03\n\r\n\x05\x04\x1f\x02\0\x05\x12\x04\xd9\x07\x02\x08\n\r\n\x05\x04\ + \x1f\x02\0\x01\x12\x04\xd9\x07\t\x1b\n\r\n\x05\x04\x1f\x02\0\x03\x12\x04\ + \xd9\x07\x1e\x1f\n\r\n\x05\x04\x1f\x02\0\x08\x12\x04\xd9\x07\x20H\n\x10\ + \n\x08\x04\x1f\x02\0\x08\x9c\x08\0\x12\x04\xd9\x07!G\n1\n\x04\x04\x1f\ + \x02\x01\x12\x04\xdc\x07\x02I\x1a#\x20Required.\x20Name\x20of\x20the\x20\ + new\x20object.\n\n\x0f\n\x05\x04\x1f\x02\x01\x04\x12\x06\xdc\x07\x02\xd9\ + \x07I\n\r\n\x05\x04\x1f\x02\x01\x05\x12\x04\xdc\x07\x02\x08\n\r\n\x05\ + \x04\x1f\x02\x01\x01\x12\x04\xdc\x07\t\x1b\n\r\n\x05\x04\x1f\x02\x01\x03\ + \x12\x04\xdc\x07\x1e\x1f\n\r\n\x05\x04\x1f\x02\x01\x08\x12\x04\xdc\x07\ + \x20H\n\x10\n\x08\x04\x1f\x02\x01\x08\x9c\x08\0\x12\x04\xdc\x07!G\nT\n\ + \x04\x04\x1f\x02\x02\x12\x04\xdf\x07\x02A\x1aF\x20Apply\x20a\x20predefin\ + ed\x20set\x20of\x20access\x20controls\x20to\x20the\x20destination\x20obj\ + ect.\n\n\x0f\n\x05\x04\x1f\x02\x02\x04\x12\x06\xdf\x07\x02\xdc\x07I\n\r\ + \n\x05\x04\x1f\x02\x02\x06\x12\x04\xdf\x07\x02!\n\r\n\x05\x04\x1f\x02\ + \x02\x01\x12\x04\xdf\x07\"<\n\r\n\x05\x04\x1f\x02\x02\x03\x12\x04\xdf\ + \x07?@\n3\n\x04\x04\x1f\x02\x03\x12\x04\xe2\x07\x02\x1a\x1a%\x20Properti\ + es\x20of\x20the\x20resulting\x20object.\n\n\x0f\n\x05\x04\x1f\x02\x03\ + \x04\x12\x06\xe2\x07\x02\xdf\x07A\n\r\n\x05\x04\x1f\x02\x03\x06\x12\x04\ + \xe2\x07\x02\x08\n\r\n\x05\x04\x1f\x02\x03\x01\x12\x04\xe2\x07\t\x14\n\r\ + \n\x05\x04\x1f\x02\x03\x03\x12\x04\xe2\x07\x17\x19\nZ\n\x04\x04\x1f\x02\ + \x04\x12\x04\xe5\x07\x02-\x1aL\x20The\x20list\x20of\x20source\x20objects\ + \x20that\x20will\x20be\x20concatenated\x20into\x20a\x20single\x20object.\ + \n\n\r\n\x05\x04\x1f\x02\x04\x04\x12\x04\xe5\x07\x02\n\n\r\n\x05\x04\x1f\ + \x02\x04\x06\x12\x04\xe5\x07\x0b\x18\n\r\n\x05\x04\x1f\x02\x04\x01\x12\ + \x04\xe5\x07\x19'\n\r\n\x05\x04\x1f\x02\x04\x03\x12\x04\xe5\x07*,\n\xd1\ + \x01\n\x04\x04\x1f\x02\x05\x12\x04\xea\x07\x025\x1a\xc2\x01\x20Makes\x20\ + the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\x20c\ + urrent\x20generation\n\x20matches\x20the\x20given\x20value.\x20Setting\ + \x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\x20t\ + here\x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\x0f\n\ + \x05\x04\x1f\x02\x05\x04\x12\x06\xea\x07\x02\xe5\x07-\n\r\n\x05\x04\x1f\ + \x02\x05\x06\x12\x04\xea\x07\x02\x1c\n\r\n\x05\x04\x1f\x02\x05\x01\x12\ + \x04\xea\x07\x1d0\n\r\n\x05\x04\x1f\x02\x05\x03\x12\x04\xea\x0734\nx\n\ + \x04\x04\x1f\x02\x06\x12\x04\xee\x07\x029\x1aj\x20Makes\x20the\x20operat\ + ion\x20conditional\x20on\x20whether\x20the\x20object's\x20current\n\x20m\ + etageneration\x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\x1f\ + \x02\x06\x04\x12\x06\xee\x07\x02\xea\x075\n\r\n\x05\x04\x1f\x02\x06\x06\ + \x12\x04\xee\x07\x02\x1c\n\r\n\x05\x04\x1f\x02\x06\x01\x12\x04\xee\x07\ + \x1d4\n\r\n\x05\x04\x1f\x02\x06\x03\x12\x04\xee\x0778\n\xf8\x01\n\x04\ + \x04\x1f\x02\x07\x12\x04\xf4\x07\x02\x1a\x1a\xe9\x01\x20Resource\x20name\ + \x20of\x20the\x20Cloud\x20KMS\x20key,\x20of\x20the\x20form\n\x20`project\ + s/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,\n\ + \x20that\x20will\x20be\x20used\x20to\x20encrypt\x20the\x20object.\x20Ove\ + rrides\x20the\x20object\n\x20metadata's\x20`kms_key_name`\x20value,\x20i\ + f\x20any.\n\n\x0f\n\x05\x04\x1f\x02\x07\x04\x12\x06\xf4\x07\x02\xee\x079\ + \n\r\n\x05\x04\x1f\x02\x07\x05\x12\x04\xf4\x07\x02\x08\n\r\n\x05\x04\x1f\ + \x02\x07\x01\x12\x04\xf4\x07\t\x15\n\r\n\x05\x04\x1f\x02\x07\x03\x12\x04\ + \xf4\x07\x18\x19\nX\n\x04\x04\x1f\x02\x08\x12\x04\xf7\x07\x02=\x1aJ\x20A\ + \x20set\x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20request\ + s\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04\x1f\x02\x08\x04\x12\ + \x06\xf7\x07\x02\xf4\x07\x1a\n\r\n\x05\x04\x1f\x02\x08\x06\x12\x04\xf7\ + \x07\x02\x1b\n\r\n\x05\x04\x1f\x02\x08\x01\x12\x04\xf7\x07\x1c8\n\r\n\ + \x05\x04\x1f\x02\x08\x03\x12\x04\xf7\x07;<\nG\n\x04\x04\x1f\x02\t\x12\ + \x04\xfa\x07\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ + \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x1f\x02\t\x04\ + \x12\x06\xfa\x07\x02\xf7\x07=\n\r\n\x05\x04\x1f\x02\t\x06\x12\x04\xfa\ + \x07\x02\x15\n\r\n\x05\x04\x1f\x02\t\x01\x12\x04\xfa\x07\x16+\n\r\n\x05\ + \x04\x1f\x02\t\x03\x12\x04\xfa\x07.0\n/\n\x02\x04\x20\x12\x06\xfe\x07\0\ + \xcd\x08\x01\x1a!\x20Request\x20message\x20for\x20CopyObject.\n\n\x0b\n\ + \x03\x04\x20\x01\x12\x04\xfe\x07\x08\x19\n\x92\x01\n\x04\x04\x20\x02\0\ + \x12\x04\x82\x08\x02I\x1a\x83\x01\x20Required.\x20Name\x20of\x20the\x20b\ + ucket\x20in\x20which\x20to\x20store\x20the\x20new\x20object.\x20Override\ + s\x20the\x20provided\n\x20object\n\x20metadata's\x20`bucket`\x20value,\ + \x20if\x20any.\n\n\x0f\n\x05\x04\x20\x02\0\x04\x12\x06\x82\x08\x02\xfe\ + \x07\x1b\n\r\n\x05\x04\x20\x02\0\x05\x12\x04\x82\x08\x02\x08\n\r\n\x05\ + \x04\x20\x02\0\x01\x12\x04\x82\x08\t\x1b\n\r\n\x05\x04\x20\x02\0\x03\x12\ + \x04\x82\x08\x1e\x1f\n\r\n\x05\x04\x20\x02\0\x08\x12\x04\x82\x08\x20H\n\ + \x10\n\x08\x04\x20\x02\0\x08\x9c\x08\0\x12\x04\x82\x08!G\n\xa7\x01\n\x04\ + \x04\x20\x02\x01\x12\x04\x87\x08\x02I\x1a\x98\x01\x20Required.\x20Name\ + \x20of\x20the\x20new\x20object.\n\x20Required\x20when\x20the\x20object\ + \x20metadata\x20is\x20not\x20otherwise\x20provided.\x20Overrides\x20the\ + \n\x20object\x20metadata's\x20`name`\x20value,\x20if\x20any.\n\n\x0f\n\ + \x05\x04\x20\x02\x01\x04\x12\x06\x87\x08\x02\x82\x08I\n\r\n\x05\x04\x20\ + \x02\x01\x05\x12\x04\x87\x08\x02\x08\n\r\n\x05\x04\x20\x02\x01\x01\x12\ + \x04\x87\x08\t\x1b\n\r\n\x05\x04\x20\x02\x01\x03\x12\x04\x87\x08\x1e\x1f\ + \n\r\n\x05\x04\x20\x02\x01\x08\x12\x04\x87\x08\x20H\n\x10\n\x08\x04\x20\ + \x02\x01\x08\x9c\x08\0\x12\x04\x87\x08!G\nT\n\x04\x04\x20\x02\x02\x12\ + \x04\x8a\x08\x02A\x1aF\x20Apply\x20a\x20predefined\x20set\x20of\x20acces\ + s\x20controls\x20to\x20the\x20destination\x20object.\n\n\x0f\n\x05\x04\ + \x20\x02\x02\x04\x12\x06\x8a\x08\x02\x87\x08I\n\r\n\x05\x04\x20\x02\x02\ + \x06\x12\x04\x8a\x08\x02!\n\r\n\x05\x04\x20\x02\x02\x01\x12\x04\x8a\x08\ + \"<\n\r\n\x05\x04\x20\x02\x02\x03\x12\x04\x8a\x08?@\n\xdd\x01\n\x04\x04\ + \x20\x02\x03\x12\x04\x8f\x08\x025\x1a\xce\x01\x20Makes\x20the\x20operati\ + on\x20conditional\x20on\x20whether\x20the\x20destination\x20object's\x20\ + current\n\x20generation\x20matches\x20the\x20given\x20value.\x20Setting\ + \x20to\x200\x20makes\x20the\x20operation\n\x20succeed\x20only\x20if\x20t\ + here\x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\x0f\n\ + \x05\x04\x20\x02\x03\x04\x12\x06\x8f\x08\x02\x8a\x08A\n\r\n\x05\x04\x20\ + \x02\x03\x06\x12\x04\x8f\x08\x02\x1c\n\r\n\x05\x04\x20\x02\x03\x01\x12\ + \x04\x8f\x08\x1d0\n\r\n\x05\x04\x20\x02\x03\x03\x12\x04\x8f\x0834\n\x94\ + \x02\n\x04\x04\x20\x02\x04\x12\x04\x95\x08\x029\x1a\x85\x02\x20Makes\x20\ + the\x20operation\x20conditional\x20on\x20whether\x20the\x20destination\ + \x20object's\x20current\n\x20generation\x20does\x20not\x20match\x20the\ + \x20given\x20value.\x20If\x20no\x20live\x20object\x20exists,\x20the\n\ + \x20precondition\x20fails.\x20Setting\x20to\x200\x20makes\x20the\x20oper\ + ation\x20succeed\x20only\x20if\x20there\n\x20is\x20a\x20live\x20version\ + \x20of\x20the\x20object.\n\n\x0f\n\x05\x04\x20\x02\x04\x04\x12\x06\x95\ + \x08\x02\x8f\x085\n\r\n\x05\x04\x20\x02\x04\x06\x12\x04\x95\x08\x02\x1c\ + \n\r\n\x05\x04\x20\x02\x04\x01\x12\x04\x95\x08\x1d4\n\r\n\x05\x04\x20\ + \x02\x04\x03\x12\x04\x95\x0878\n\x84\x01\n\x04\x04\x20\x02\x05\x12\x04\ + \x99\x08\x029\x1av\x20Makes\x20the\x20operation\x20conditional\x20on\x20\ + whether\x20the\x20destination\x20object's\x20current\n\x20metageneration\ + \x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\x20\x02\x05\x04\ + \x12\x06\x99\x08\x02\x95\x089\n\r\n\x05\x04\x20\x02\x05\x06\x12\x04\x99\ + \x08\x02\x1c\n\r\n\x05\x04\x20\x02\x05\x01\x12\x04\x99\x08\x1d4\n\r\n\ + \x05\x04\x20\x02\x05\x03\x12\x04\x99\x0878\n\x8b\x01\n\x04\x04\x20\x02\ + \x06\x12\x04\x9d\x08\x02=\x1a}\x20Makes\x20the\x20operation\x20condition\ + al\x20on\x20whether\x20the\x20destination\x20object's\x20current\n\x20me\ + tageneration\x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\ + \x05\x04\x20\x02\x06\x04\x12\x06\x9d\x08\x02\x99\x089\n\r\n\x05\x04\x20\ + \x02\x06\x06\x12\x04\x9d\x08\x02\x1c\n\r\n\x05\x04\x20\x02\x06\x01\x12\ + \x04\x9d\x08\x1d8\n\r\n\x05\x04\x20\x02\x06\x03\x12\x04\x9d\x08;<\n{\n\ + \x04\x04\x20\x02\x07\x12\x04\xa1\x08\x02<\x1am\x20Makes\x20the\x20operat\ + ion\x20conditional\x20on\x20whether\x20the\x20source\x20object's\x20curr\ + ent\n\x20generation\x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\ + \x04\x20\x02\x07\x04\x12\x06\xa1\x08\x02\x9d\x08=\n\r\n\x05\x04\x20\x02\ + \x07\x06\x12\x04\xa1\x08\x02\x1c\n\r\n\x05\x04\x20\x02\x07\x01\x12\x04\ + \xa1\x08\x1d7\n\r\n\x05\x04\x20\x02\x07\x03\x12\x04\xa1\x08:;\n\x82\x01\ + \n\x04\x04\x20\x02\x08\x12\x04\xa5\x08\x02@\x1at\x20Makes\x20the\x20oper\ + ation\x20conditional\x20on\x20whether\x20the\x20source\x20object's\x20cu\ + rrent\n\x20generation\x20does\x20not\x20match\x20the\x20given\x20value.\ + \n\n\x0f\n\x05\x04\x20\x02\x08\x04\x12\x06\xa5\x08\x02\xa1\x08<\n\r\n\ + \x05\x04\x20\x02\x08\x06\x12\x04\xa5\x08\x02\x1c\n\r\n\x05\x04\x20\x02\ + \x08\x01\x12\x04\xa5\x08\x1d;\n\r\n\x05\x04\x20\x02\x08\x03\x12\x04\xa5\ + \x08>?\n\x7f\n\x04\x04\x20\x02\t\x12\x04\xa9\x08\x02A\x1aq\x20Makes\x20t\ + he\x20operation\x20conditional\x20on\x20whether\x20the\x20source\x20obje\ + ct's\x20current\n\x20metageneration\x20matches\x20the\x20given\x20value.\ + \n\n\x0f\n\x05\x04\x20\x02\t\x04\x12\x06\xa9\x08\x02\xa5\x08@\n\r\n\x05\ + \x04\x20\x02\t\x06\x12\x04\xa9\x08\x02\x1c\n\r\n\x05\x04\x20\x02\t\x01\ + \x12\x04\xa9\x08\x1d;\n\r\n\x05\x04\x20\x02\t\x03\x12\x04\xa9\x08>@\n\ + \x86\x01\n\x04\x04\x20\x02\n\x12\x04\xad\x08\x02E\x1ax\x20Makes\x20the\ + \x20operation\x20conditional\x20on\x20whether\x20the\x20source\x20object\ + 's\x20current\n\x20metageneration\x20does\x20not\x20match\x20the\x20give\ + n\x20value.\n\n\x0f\n\x05\x04\x20\x02\n\x04\x12\x06\xad\x08\x02\xa9\x08A\ + \n\r\n\x05\x04\x20\x02\n\x06\x12\x04\xad\x08\x02\x1c\n\r\n\x05\x04\x20\ + \x02\n\x01\x12\x04\xad\x08\x1d?\n\r\n\x05\x04\x20\x02\n\x03\x12\x04\xad\ + \x08BD\n\x9a\x01\n\x04\x04\x20\x02\x0b\x12\x04\xb2\x08\x02)\x1a\x8b\x01\ + \x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\x20to\x20`NO_AC\ + L`,\x20unless\x20the\n\x20object\x20resource\x20specifies\x20the\x20`acl\ + `\x20property,\x20when\x20it\x20defaults\n\x20to\x20`full`.\n\n\x0f\n\ + \x05\x04\x20\x02\x0b\x04\x12\x06\xb2\x08\x02\xad\x08E\n\r\n\x05\x04\x20\ + \x02\x0b\x06\x12\x04\xb2\x08\x02\x18\n\r\n\x05\x04\x20\x02\x0b\x01\x12\ + \x04\xb2\x08\x19#\n\r\n\x05\x04\x20\x02\x0b\x03\x12\x04\xb2\x08&(\nP\n\ + \x04\x04\x20\x02\x0c\x12\x04\xb5\x08\x02E\x1aB\x20Required.\x20Name\x20o\ + f\x20the\x20bucket\x20in\x20which\x20to\x20find\x20the\x20source\x20obje\ + ct.\n\n\x0f\n\x05\x04\x20\x02\x0c\x04\x12\x06\xb5\x08\x02\xb2\x08)\n\r\n\ + \x05\x04\x20\x02\x0c\x05\x12\x04\xb5\x08\x02\x08\n\r\n\x05\x04\x20\x02\ + \x0c\x01\x12\x04\xb5\x08\t\x16\n\r\n\x05\x04\x20\x02\x0c\x03\x12\x04\xb5\ + \x08\x19\x1b\n\r\n\x05\x04\x20\x02\x0c\x08\x12\x04\xb5\x08\x1cD\n\x10\n\ + \x08\x04\x20\x02\x0c\x08\x9c\x08\0\x12\x04\xb5\x08\x1dC\n4\n\x04\x04\x20\ + \x02\r\x12\x04\xb8\x08\x02E\x1a&\x20Required.\x20Name\x20of\x20the\x20so\ + urce\x20object.\n\n\x0f\n\x05\x04\x20\x02\r\x04\x12\x06\xb8\x08\x02\xb5\ + \x08E\n\r\n\x05\x04\x20\x02\r\x05\x12\x04\xb8\x08\x02\x08\n\r\n\x05\x04\ + \x20\x02\r\x01\x12\x04\xb8\x08\t\x16\n\r\n\x05\x04\x20\x02\r\x03\x12\x04\ + \xb8\x08\x19\x1b\n\r\n\x05\x04\x20\x02\r\x08\x12\x04\xb8\x08\x1cD\n\x10\ + \n\x08\x04\x20\x02\r\x08\x9c\x08\0\x12\x04\xb8\x08\x1dC\n~\n\x04\x04\x20\ + \x02\x0e\x12\x04\xbc\x08\x02\x1f\x1ap\x20If\x20present,\x20selects\x20a\ + \x20specific\x20revision\x20of\x20the\x20source\x20object\x20(as\x20oppo\ + sed\x20to\n\x20the\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\ + \x05\x04\x20\x02\x0e\x04\x12\x06\xbc\x08\x02\xb8\x08E\n\r\n\x05\x04\x20\ + \x02\x0e\x05\x12\x04\xbc\x08\x02\x07\n\r\n\x05\x04\x20\x02\x0e\x01\x12\ + \x04\xbc\x08\x08\x19\n\r\n\x05\x04\x20\x02\x0e\x03\x12\x04\xbc\x08\x1c\ + \x1e\ng\n\x04\x04\x20\x02\x0f\x12\x04\xc0\x08\x02\x1a\x1aY\x20Properties\ + \x20of\x20the\x20resulting\x20object.\x20If\x20not\x20set,\x20duplicate\ + \x20properties\x20of\n\x20source\x20object.\n\n\x0f\n\x05\x04\x20\x02\ + \x0f\x04\x12\x06\xc0\x08\x02\xbc\x08\x1f\n\r\n\x05\x04\x20\x02\x0f\x06\ + \x12\x04\xc0\x08\x02\x08\n\r\n\x05\x04\x20\x02\x0f\x01\x12\x04\xc0\x08\t\ + \x14\n\r\n\x05\x04\x20\x02\x0f\x03\x12\x04\xc0\x08\x17\x19\n\xf8\x01\n\ + \x04\x04\x20\x02\x10\x12\x04\xc6\x08\x02'\x1a\xe9\x01\x20Resource\x20nam\ + e\x20of\x20the\x20Cloud\x20KMS\x20key,\x20of\x20the\x20form\n\x20`projec\ + ts/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,\n\ + \x20that\x20will\x20be\x20used\x20to\x20encrypt\x20the\x20object.\x20Ove\ + rrides\x20the\x20object\n\x20metadata's\x20`kms_key_name`\x20value,\x20i\ + f\x20any.\n\n\x0f\n\x05\x04\x20\x02\x10\x04\x12\x06\xc6\x08\x02\xc0\x08\ + \x1a\n\r\n\x05\x04\x20\x02\x10\x05\x12\x04\xc6\x08\x02\x08\n\r\n\x05\x04\ + \x20\x02\x10\x01\x12\x04\xc6\x08\t!\n\r\n\x05\x04\x20\x02\x10\x03\x12\ + \x04\xc6\x08$&\nX\n\x04\x04\x20\x02\x11\x12\x04\xc9\x08\x02>\x1aJ\x20A\ + \x20set\x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20request\ + s\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04\x20\x02\x11\x04\x12\ + \x06\xc9\x08\x02\xc6\x08'\n\r\n\x05\x04\x20\x02\x11\x06\x12\x04\xc9\x08\ + \x02\x1b\n\r\n\x05\x04\x20\x02\x11\x01\x12\x04\xc9\x08\x1c8\n\r\n\x05\ + \x04\x20\x02\x11\x03\x12\x04\xc9\x08;=\nG\n\x04\x04\x20\x02\x12\x12\x04\ + \xcc\x08\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ + l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\x20\x02\x12\x04\x12\ + \x06\xcc\x08\x02\xc9\x08>\n\r\n\x05\x04\x20\x02\x12\x06\x12\x04\xcc\x08\ + \x02\x15\n\r\n\x05\x04\x20\x02\x12\x01\x12\x04\xcc\x08\x16+\n\r\n\x05\ + \x04\x20\x02\x12\x03\x12\x04\xcc\x08.0\n~\n\x02\x04!\x12\x06\xd1\x08\0\ + \xf9\x08\x01\x1ap\x20Message\x20for\x20deleting\x20an\x20object.\n\x20Ei\ + ther\x20`bucket`\x20and\x20`object`\x20*or*\x20`upload_id`\x20**must**\ + \x20be\x20set\x20(but\x20not\x20both).\n\n\x0b\n\x03\x04!\x01\x12\x04\ + \xd1\x08\x08\x1b\nI\n\x04\x04!\x02\0\x12\x04\xd3\x08\x02=\x1a;\x20Requir\ + ed.\x20Name\x20of\x20the\x20bucket\x20in\x20which\x20the\x20object\x20re\ + sides.\n\n\x0f\n\x05\x04!\x02\0\x04\x12\x06\xd3\x08\x02\xd1\x08\x1d\n\r\ + \n\x05\x04!\x02\0\x05\x12\x04\xd3\x08\x02\x08\n\r\n\x05\x04!\x02\0\x01\ + \x12\x04\xd3\x08\t\x0f\n\r\n\x05\x04!\x02\0\x03\x12\x04\xd3\x08\x12\x13\ + \n\r\n\x05\x04!\x02\0\x08\x12\x04\xd3\x08\x14<\n\x10\n\x08\x04!\x02\0\ + \x08\x9c\x08\0\x12\x04\xd3\x08\x15;\n^\n\x04\x04!\x02\x01\x12\x04\xd6\ + \x08\x02=\x1aP\x20Required.\x20The\x20name\x20of\x20the\x20object\x20to\ + \x20delete\x20(when\x20not\x20using\x20a\x20resumable\x20write).\n\n\x0f\ + \n\x05\x04!\x02\x01\x04\x12\x06\xd6\x08\x02\xd3\x08=\n\r\n\x05\x04!\x02\ + \x01\x05\x12\x04\xd6\x08\x02\x08\n\r\n\x05\x04!\x02\x01\x01\x12\x04\xd6\ + \x08\t\x0f\n\r\n\x05\x04!\x02\x01\x03\x12\x04\xd6\x08\x12\x13\n\r\n\x05\ + \x04!\x02\x01\x08\x12\x04\xd6\x08\x14<\n\x10\n\x08\x04!\x02\x01\x08\x9c\ + \x08\0\x12\x04\xd6\x08\x15;\n\xb5\x01\n\x04\x04!\x02\x02\x12\x04\xdb\x08\ + \x02\x17\x1a\xa6\x01\x20The\x20resumable\x20upload_id\x20of\x20the\x20ob\ + ject\x20to\x20delete\x20(when\x20using\x20a\n\x20resumable\x20write).\ + \x20This\x20should\x20be\x20copied\x20from\x20the\x20`upload_id`\x20fiel\ + d\x20of\n\x20`StartResumableWriteResponse`.\n\n\x0f\n\x05\x04!\x02\x02\ + \x04\x12\x06\xdb\x08\x02\xd6\x08=\n\r\n\x05\x04!\x02\x02\x05\x12\x04\xdb\ + \x08\x02\x08\n\r\n\x05\x04!\x02\x02\x01\x12\x04\xdb\x08\t\x12\n\r\n\x05\ + \x04!\x02\x02\x03\x12\x04\xdb\x08\x15\x16\n\x84\x01\n\x04\x04!\x02\x03\ + \x12\x04\xdf\x08\x02\x17\x1av\x20If\x20present,\x20permanently\x20delete\ + s\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\n\x20oppos\ + ed\x20to\x20the\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\ + \x04!\x02\x03\x04\x12\x06\xdf\x08\x02\xdb\x08\x17\n\r\n\x05\x04!\x02\x03\ + \x05\x12\x04\xdf\x08\x02\x07\n\r\n\x05\x04!\x02\x03\x01\x12\x04\xdf\x08\ + \x08\x12\n\r\n\x05\x04!\x02\x03\x03\x12\x04\xdf\x08\x15\x16\n\xd1\x01\n\ + \x04\x04!\x02\x04\x12\x04\xe4\x08\x025\x1a\xc2\x01\x20Makes\x20the\x20op\ + eration\x20conditional\x20on\x20whether\x20the\x20object's\x20current\ + \x20generation\n\x20matches\x20the\x20given\x20value.\x20Setting\x20to\ + \x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\x20there\ + \x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\x0f\n\x05\ + \x04!\x02\x04\x04\x12\x06\xe4\x08\x02\xdf\x08\x17\n\r\n\x05\x04!\x02\x04\ + \x06\x12\x04\xe4\x08\x02\x1c\n\r\n\x05\x04!\x02\x04\x01\x12\x04\xe4\x08\ + \x1d0\n\r\n\x05\x04!\x02\x04\x03\x12\x04\xe4\x0834\n\x88\x02\n\x04\x04!\ + \x02\x05\x12\x04\xea\x08\x029\x1a\xf9\x01\x20Makes\x20the\x20operation\ + \x20conditional\x20on\x20whether\x20the\x20object's\x20current\x20genera\ + tion\n\x20does\x20not\x20match\x20the\x20given\x20value.\x20If\x20no\x20\ + live\x20object\x20exists,\x20the\x20precondition\n\x20fails.\x20Setting\ + \x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\x20the\ + re\x20is\x20a\x20live\n\x20version\x20of\x20the\x20object.\n\n\x0f\n\x05\ + \x04!\x02\x05\x04\x12\x06\xea\x08\x02\xe4\x085\n\r\n\x05\x04!\x02\x05\ + \x06\x12\x04\xea\x08\x02\x1c\n\r\n\x05\x04!\x02\x05\x01\x12\x04\xea\x08\ + \x1d4\n\r\n\x05\x04!\x02\x05\x03\x12\x04\xea\x0878\nx\n\x04\x04!\x02\x06\ + \x12\x04\xee\x08\x029\x1aj\x20Makes\x20the\x20operation\x20conditional\ + \x20on\x20whether\x20the\x20object's\x20current\n\x20metageneration\x20m\ + atches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04!\x02\x06\x04\x12\x06\ + \xee\x08\x02\xea\x089\n\r\n\x05\x04!\x02\x06\x06\x12\x04\xee\x08\x02\x1c\ + \n\r\n\x05\x04!\x02\x06\x01\x12\x04\xee\x08\x1d4\n\r\n\x05\x04!\x02\x06\ + \x03\x12\x04\xee\x0878\n\x7f\n\x04\x04!\x02\x07\x12\x04\xf2\x08\x02=\x1a\ + q\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20the\ + \x20object's\x20current\n\x20metageneration\x20does\x20not\x20match\x20t\ + he\x20given\x20value.\n\n\x0f\n\x05\x04!\x02\x07\x04\x12\x06\xf2\x08\x02\ + \xee\x089\n\r\n\x05\x04!\x02\x07\x06\x12\x04\xf2\x08\x02\x1c\n\r\n\x05\ + \x04!\x02\x07\x01\x12\x04\xf2\x08\x1d8\n\r\n\x05\x04!\x02\x07\x03\x12\ + \x04\xf2\x08;<\nX\n\x04\x04!\x02\x08\x12\x04\xf5\x08\x02>\x1aJ\x20A\x20s\ + et\x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20requests\x20\ + concerning\x20an\x20object.\n\n\x0f\n\x05\x04!\x02\x08\x04\x12\x06\xf5\ + \x08\x02\xf2\x08=\n\r\n\x05\x04!\x02\x08\x06\x12\x04\xf5\x08\x02\x1b\n\r\ + \n\x05\x04!\x02\x08\x01\x12\x04\xf5\x08\x1c8\n\r\n\x05\x04!\x02\x08\x03\ + \x12\x04\xf5\x08;=\nG\n\x04\x04!\x02\t\x12\x04\xf8\x08\x021\x1a9\x20A\ + \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ + requests.\n\n\x0f\n\x05\x04!\x02\t\x04\x12\x06\xf8\x08\x02\xf5\x08>\n\r\ + \n\x05\x04!\x02\t\x06\x12\x04\xf8\x08\x02\x15\n\r\n\x05\x04!\x02\t\x01\ + \x12\x04\xf8\x08\x16+\n\r\n\x05\x04!\x02\t\x03\x12\x04\xf8\x08.0\n3\n\ + \x02\x04\"\x12\x06\xfc\x08\0\xb1\t\x01\x1a%\x20Request\x20message\x20for\ + \x20GetObjectMedia.\n\n\x0b\n\x03\x04\"\x01\x12\x04\xfc\x08\x08\x1d\nE\n\ + \x04\x04\"\x02\0\x12\x04\xfe\x08\x02\x14\x1a7\x20The\x20name\x20of\x20th\ + e\x20bucket\x20containing\x20the\x20object\x20to\x20read.\n\n\x0f\n\x05\ + \x04\"\x02\0\x04\x12\x06\xfe\x08\x02\xfc\x08\x1f\n\r\n\x05\x04\"\x02\0\ + \x05\x12\x04\xfe\x08\x02\x08\n\r\n\x05\x04\"\x02\0\x01\x12\x04\xfe\x08\t\ + \x0f\n\r\n\x05\x04\"\x02\0\x03\x12\x04\xfe\x08\x12\x13\n/\n\x04\x04\"\ + \x02\x01\x12\x04\x81\t\x02\x14\x1a!\x20The\x20name\x20of\x20the\x20objec\ + t\x20to\x20read.\n\n\x0f\n\x05\x04\"\x02\x01\x04\x12\x06\x81\t\x02\xfe\ + \x08\x14\n\r\n\x05\x04\"\x02\x01\x05\x12\x04\x81\t\x02\x08\n\r\n\x05\x04\ + \"\x02\x01\x01\x12\x04\x81\t\t\x0f\n\r\n\x05\x04\"\x02\x01\x03\x12\x04\ + \x81\t\x12\x13\nx\n\x04\x04\"\x02\x02\x12\x04\x85\t\x02\x17\x1aj\x20If\ + \x20present,\x20selects\x20a\x20specific\x20revision\x20of\x20this\x20ob\ + ject\x20(as\x20opposed\n\x20to\x20the\x20latest\x20version,\x20the\x20de\ + fault).\n\n\x0f\n\x05\x04\"\x02\x02\x04\x12\x06\x85\t\x02\x81\t\x14\n\r\ + \n\x05\x04\"\x02\x02\x05\x12\x04\x85\t\x02\x07\n\r\n\x05\x04\"\x02\x02\ + \x01\x12\x04\x85\t\x08\x12\n\r\n\x05\x04\"\x02\x02\x03\x12\x04\x85\t\x15\ + \x16\n\x8f\x03\n\x04\x04\"\x02\x03\x12\x04\x8e\t\x02\x18\x1a\x80\x03\x20\ + The\x20offset\x20for\x20the\x20first\x20byte\x20to\x20return\x20in\x20th\ + e\x20read,\x20relative\x20to\x20the\x20start\n\x20of\x20the\x20object.\n\ + \n\x20A\x20negative\x20`read_offset`\x20value\x20will\x20be\x20interpret\ + ed\x20as\x20the\x20number\x20of\x20bytes\n\x20back\x20from\x20the\x20end\ + \x20of\x20the\x20object\x20to\x20be\x20returned.\x20For\x20example,\x20i\ + f\x20an\x20object's\n\x20length\x20is\x2015\x20bytes,\x20a\x20GetObjectM\ + ediaRequest\x20with\x20`read_offset`\x20=\x20-5\x20and\n\x20`read_limit`\ + \x20=\x203\x20would\x20return\x20bytes\x2010\x20through\x2012\x20of\x20t\ + he\x20object.\n\n\x0f\n\x05\x04\"\x02\x03\x04\x12\x06\x8e\t\x02\x85\t\ + \x17\n\r\n\x05\x04\"\x02\x03\x05\x12\x04\x8e\t\x02\x07\n\r\n\x05\x04\"\ + \x02\x03\x01\x12\x04\x8e\t\x08\x13\n\r\n\x05\x04\"\x02\x03\x03\x12\x04\ + \x8e\t\x16\x17\n\x92\x03\n\x04\x04\"\x02\x04\x12\x04\x97\t\x02\x17\x1a\ + \x83\x03\x20The\x20maximum\x20number\x20of\x20`data`\x20bytes\x20the\x20\ + server\x20is\x20allowed\x20to\x20return\x20in\x20the\n\x20sum\x20of\x20a\ + ll\x20`Object`\x20messages.\x20A\x20`read_limit`\x20of\x20zero\x20indica\ + tes\x20that\x20there\n\x20is\x20no\x20limit,\x20and\x20a\x20negative\x20\ + `read_limit`\x20will\x20cause\x20an\x20error.\n\n\x20If\x20the\x20stream\ + \x20returns\x20fewer\x20bytes\x20than\x20allowed\x20by\x20the\x20`read_l\ + imit`\x20and\x20no\n\x20error\x20occurred,\x20the\x20stream\x20includes\ + \x20all\x20data\x20from\x20the\x20`read_offset`\x20to\x20the\n\x20end\ + \x20of\x20the\x20resource.\n\n\x0f\n\x05\x04\"\x02\x04\x04\x12\x06\x97\t\ + \x02\x8e\t\x18\n\r\n\x05\x04\"\x02\x04\x05\x12\x04\x97\t\x02\x07\n\r\n\ + \x05\x04\"\x02\x04\x01\x12\x04\x97\t\x08\x12\n\r\n\x05\x04\"\x02\x04\x03\ + \x12\x04\x97\t\x15\x16\n\xd1\x01\n\x04\x04\"\x02\x05\x12\x04\x9c\t\x025\ + \x1a\xc2\x01\x20Makes\x20the\x20operation\x20conditional\x20on\x20whethe\ + r\x20the\x20object's\x20current\x20generation\n\x20matches\x20the\x20giv\ + en\x20value.\x20Setting\x20to\x200\x20makes\x20the\x20operation\x20succe\ + ed\x20only\x20if\n\x20there\x20are\x20no\x20live\x20versions\x20of\x20th\ + e\x20object.\n\n\x0f\n\x05\x04\"\x02\x05\x04\x12\x06\x9c\t\x02\x97\t\x17\ + \n\r\n\x05\x04\"\x02\x05\x06\x12\x04\x9c\t\x02\x1c\n\r\n\x05\x04\"\x02\ + \x05\x01\x12\x04\x9c\t\x1d0\n\r\n\x05\x04\"\x02\x05\x03\x12\x04\x9c\t34\ + \n\x88\x02\n\x04\x04\"\x02\x06\x12\x04\xa2\t\x029\x1a\xf9\x01\x20Makes\ + \x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\ + \x20current\x20generation\n\x20does\x20not\x20match\x20the\x20given\x20v\ + alue.\x20If\x20no\x20live\x20object\x20exists,\x20the\x20precondition\n\ + \x20fails.\x20Setting\x20to\x200\x20makes\x20the\x20operation\x20succeed\ + \x20only\x20if\x20there\x20is\x20a\x20live\n\x20version\x20of\x20the\x20\ + object.\n\n\x0f\n\x05\x04\"\x02\x06\x04\x12\x06\xa2\t\x02\x9c\t5\n\r\n\ + \x05\x04\"\x02\x06\x06\x12\x04\xa2\t\x02\x1c\n\r\n\x05\x04\"\x02\x06\x01\ + \x12\x04\xa2\t\x1d4\n\r\n\x05\x04\"\x02\x06\x03\x12\x04\xa2\t78\nx\n\x04\ + \x04\"\x02\x07\x12\x04\xa6\t\x029\x1aj\x20Makes\x20the\x20operation\x20c\ + onditional\x20on\x20whether\x20the\x20object's\x20current\n\x20metagener\ + ation\x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\"\x02\x07\ + \x04\x12\x06\xa6\t\x02\xa2\t9\n\r\n\x05\x04\"\x02\x07\x06\x12\x04\xa6\t\ + \x02\x1c\n\r\n\x05\x04\"\x02\x07\x01\x12\x04\xa6\t\x1d4\n\r\n\x05\x04\"\ + \x02\x07\x03\x12\x04\xa6\t78\n\x7f\n\x04\x04\"\x02\x08\x12\x04\xaa\t\x02\ + =\x1aq\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20t\ + he\x20object's\x20current\n\x20metageneration\x20does\x20not\x20match\ + \x20the\x20given\x20value.\n\n\x0f\n\x05\x04\"\x02\x08\x04\x12\x06\xaa\t\ + \x02\xa6\t9\n\r\n\x05\x04\"\x02\x08\x06\x12\x04\xaa\t\x02\x1c\n\r\n\x05\ + \x04\"\x02\x08\x01\x12\x04\xaa\t\x1d8\n\r\n\x05\x04\"\x02\x08\x03\x12\ + \x04\xaa\t;<\nX\n\x04\x04\"\x02\t\x12\x04\xad\t\x02>\x1aJ\x20A\x20set\ + \x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20requests\x20co\ + ncerning\x20an\x20object.\n\n\x0f\n\x05\x04\"\x02\t\x04\x12\x06\xad\t\ + \x02\xaa\t=\n\r\n\x05\x04\"\x02\t\x06\x12\x04\xad\t\x02\x1b\n\r\n\x05\ + \x04\"\x02\t\x01\x12\x04\xad\t\x1c8\n\r\n\x05\x04\"\x02\t\x03\x12\x04\ + \xad\t;=\nG\n\x04\x04\"\x02\n\x12\x04\xb0\t\x021\x1a9\x20A\x20set\x20of\ + \x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\ + \x0f\n\x05\x04\"\x02\n\x04\x12\x06\xb0\t\x02\xad\t>\n\r\n\x05\x04\"\x02\ + \n\x06\x12\x04\xb0\t\x02\x15\n\r\n\x05\x04\"\x02\n\x01\x12\x04\xb0\t\x16\ + +\n\r\n\x05\x04\"\x02\n\x03\x12\x04\xb0\t.0\n.\n\x02\x04#\x12\x06\xb4\t\ + \0\xda\t\x01\x1a\x20\x20Request\x20message\x20for\x20GetObject.\n\n\x0b\ + \n\x03\x04#\x01\x12\x04\xb4\t\x08\x18\nI\n\x04\x04#\x02\0\x12\x04\xb6\t\ + \x02=\x1a;\x20Required.\x20Name\x20of\x20the\x20bucket\x20in\x20which\ + \x20the\x20object\x20resides.\n\n\x0f\n\x05\x04#\x02\0\x04\x12\x06\xb6\t\ + \x02\xb4\t\x1a\n\r\n\x05\x04#\x02\0\x05\x12\x04\xb6\t\x02\x08\n\r\n\x05\ + \x04#\x02\0\x01\x12\x04\xb6\t\t\x0f\n\r\n\x05\x04#\x02\0\x03\x12\x04\xb6\ + \t\x12\x13\n\r\n\x05\x04#\x02\0\x08\x12\x04\xb6\t\x14<\n\x10\n\x08\x04#\ + \x02\0\x08\x9c\x08\0\x12\x04\xb6\t\x15;\n-\n\x04\x04#\x02\x01\x12\x04\ + \xb9\t\x02=\x1a\x1f\x20Required.\x20Name\x20of\x20the\x20object.\n\n\x0f\ + \n\x05\x04#\x02\x01\x04\x12\x06\xb9\t\x02\xb6\t=\n\r\n\x05\x04#\x02\x01\ + \x05\x12\x04\xb9\t\x02\x08\n\r\n\x05\x04#\x02\x01\x01\x12\x04\xb9\t\t\ + \x0f\n\r\n\x05\x04#\x02\x01\x03\x12\x04\xb9\t\x12\x13\n\r\n\x05\x04#\x02\ + \x01\x08\x12\x04\xb9\t\x14<\n\x10\n\x08\x04#\x02\x01\x08\x9c\x08\0\x12\ + \x04\xb9\t\x15;\nx\n\x04\x04#\x02\x02\x12\x04\xbd\t\x02\x17\x1aj\x20If\ + \x20present,\x20selects\x20a\x20specific\x20revision\x20of\x20this\x20ob\ + ject\x20(as\x20opposed\x20to\x20the\n\x20latest\x20version,\x20the\x20de\ + fault).\n\n\x0f\n\x05\x04#\x02\x02\x04\x12\x06\xbd\t\x02\xb9\t=\n\r\n\ + \x05\x04#\x02\x02\x05\x12\x04\xbd\t\x02\x07\n\r\n\x05\x04#\x02\x02\x01\ + \x12\x04\xbd\t\x08\x12\n\r\n\x05\x04#\x02\x02\x03\x12\x04\xbd\t\x15\x16\ + \n\xd1\x01\n\x04\x04#\x02\x03\x12\x04\xc2\t\x025\x1a\xc2\x01\x20Makes\ + \x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\ + \x20current\x20generation\n\x20matches\x20the\x20given\x20value.\x20Sett\ + ing\x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\ + \x20there\x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\ + \x0f\n\x05\x04#\x02\x03\x04\x12\x06\xc2\t\x02\xbd\t\x17\n\r\n\x05\x04#\ + \x02\x03\x06\x12\x04\xc2\t\x02\x1c\n\r\n\x05\x04#\x02\x03\x01\x12\x04\ + \xc2\t\x1d0\n\r\n\x05\x04#\x02\x03\x03\x12\x04\xc2\t34\n\x88\x02\n\x04\ + \x04#\x02\x04\x12\x04\xc8\t\x029\x1a\xf9\x01\x20Makes\x20the\x20operatio\ + n\x20conditional\x20on\x20whether\x20the\x20object's\x20current\x20gener\ + ation\n\x20does\x20not\x20match\x20the\x20given\x20value.\x20If\x20no\ + \x20live\x20object\x20exists,\x20the\x20precondition\n\x20fails.\x20Sett\ + ing\x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\x20\ + there\x20is\x20a\x20live\n\x20version\x20of\x20the\x20object.\n\n\x0f\n\ + \x05\x04#\x02\x04\x04\x12\x06\xc8\t\x02\xc2\t5\n\r\n\x05\x04#\x02\x04\ + \x06\x12\x04\xc8\t\x02\x1c\n\r\n\x05\x04#\x02\x04\x01\x12\x04\xc8\t\x1d4\ + \n\r\n\x05\x04#\x02\x04\x03\x12\x04\xc8\t78\nx\n\x04\x04#\x02\x05\x12\ + \x04\xcc\t\x029\x1aj\x20Makes\x20the\x20operation\x20conditional\x20on\ + \x20whether\x20the\x20object's\x20current\n\x20metageneration\x20matches\ + \x20the\x20given\x20value.\n\n\x0f\n\x05\x04#\x02\x05\x04\x12\x06\xcc\t\ + \x02\xc8\t9\n\r\n\x05\x04#\x02\x05\x06\x12\x04\xcc\t\x02\x1c\n\r\n\x05\ + \x04#\x02\x05\x01\x12\x04\xcc\t\x1d4\n\r\n\x05\x04#\x02\x05\x03\x12\x04\ + \xcc\t78\n\x7f\n\x04\x04#\x02\x06\x12\x04\xd0\t\x02=\x1aq\x20Makes\x20th\ + e\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\x20cur\ + rent\n\x20metageneration\x20does\x20not\x20match\x20the\x20given\x20valu\ + e.\n\n\x0f\n\x05\x04#\x02\x06\x04\x12\x06\xd0\t\x02\xcc\t9\n\r\n\x05\x04\ + #\x02\x06\x06\x12\x04\xd0\t\x02\x1c\n\r\n\x05\x04#\x02\x06\x01\x12\x04\ + \xd0\t\x1d8\n\r\n\x05\x04#\x02\x06\x03\x12\x04\xd0\t;<\nB\n\x04\x04#\x02\ + \x07\x12\x04\xd3\t\x02(\x1a4\x20Set\x20of\x20properties\x20to\x20return.\ + \x20Defaults\x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x04#\x02\x07\x04\x12\x06\ + \xd3\t\x02\xd0\t=\n\r\n\x05\x04#\x02\x07\x06\x12\x04\xd3\t\x02\x18\n\r\n\ + \x05\x04#\x02\x07\x01\x12\x04\xd3\t\x19#\n\r\n\x05\x04#\x02\x07\x03\x12\ + \x04\xd3\t&'\nX\n\x04\x04#\x02\x08\x12\x04\xd6\t\x02>\x1aJ\x20A\x20set\ + \x20of\x20parameters\x20common\x20to\x20Storage\x20API\x20requests\x20co\ + ncerning\x20an\x20object.\n\n\x0f\n\x05\x04#\x02\x08\x04\x12\x06\xd6\t\ + \x02\xd3\t(\n\r\n\x05\x04#\x02\x08\x06\x12\x04\xd6\t\x02\x1b\n\r\n\x05\ + \x04#\x02\x08\x01\x12\x04\xd6\t\x1c8\n\r\n\x05\x04#\x02\x08\x03\x12\x04\ + \xd6\t;=\nG\n\x04\x04#\x02\t\x12\x04\xd9\t\x021\x1a9\x20A\x20set\x20of\ + \x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\ + \x0f\n\x05\x04#\x02\t\x04\x12\x06\xd9\t\x02\xd6\t>\n\r\n\x05\x04#\x02\t\ + \x06\x12\x04\xd9\t\x02\x15\n\r\n\x05\x04#\x02\t\x01\x12\x04\xd9\t\x16+\n\ + \r\n\x05\x04#\x02\t\x03\x12\x04\xd9\t.0\n/\n\x02\x04$\x12\x06\xdd\t\0\ + \xf1\t\x01\x1a!\x20Response\x20message\x20for\x20GetObject.\n\n\x0b\n\ + \x03\x04$\x01\x12\x04\xdd\t\x08\x1e\n\x83\x02\n\x04\x04$\x02\0\x12\x04\ + \xe2\t\x02'\x1a\xf4\x01\x20A\x20portion\x20of\x20the\x20data\x20for\x20t\ + he\x20object.\x20The\x20service\x20**may**\x20leave\x20`data`\n\x20empty\ + \x20for\x20any\x20given\x20`ReadResponse`.\x20This\x20enables\x20the\x20\ + service\x20to\x20inform\x20the\n\x20client\x20that\x20the\x20request\x20\ + is\x20still\x20live\x20while\x20it\x20is\x20running\x20an\x20operation\ + \x20to\n\x20generate\x20more\x20data.\n\n\x0f\n\x05\x04$\x02\0\x04\x12\ + \x06\xe2\t\x02\xdd\t\x20\n\r\n\x05\x04$\x02\0\x06\x12\x04\xe2\t\x02\x11\ + \n\r\n\x05\x04$\x02\0\x01\x12\x04\xe2\t\x12\"\n\r\n\x05\x04$\x02\0\x03\ + \x12\x04\xe2\t%&\n\xb4\x01\n\x04\x04$\x02\x01\x12\x04\xe7\t\x02'\x1a\xa5\ + \x01\x20The\x20checksums\x20of\x20the\x20complete\x20object.\x20The\x20c\ + lient\x20should\x20compute\x20one\x20of\n\x20these\x20checksums\x20over\ + \x20the\x20downloaded\x20object\x20and\x20compare\x20it\x20against\x20th\ + e\x20value\n\x20provided\x20here.\n\n\x0f\n\x05\x04$\x02\x01\x04\x12\x06\ + \xe7\t\x02\xe2\t'\n\r\n\x05\x04$\x02\x01\x06\x12\x04\xe7\t\x02\x11\n\r\n\ + \x05\x04$\x02\x01\x01\x12\x04\xe7\t\x12\"\n\r\n\x05\x04$\x02\x01\x03\x12\ + \x04\xe7\t%&\n\xbe\x01\n\x04\x04$\x02\x02\x12\x04\xec\t\x02!\x1a\xaf\x01\ + \x20If\x20read_offset\x20and\x20or\x20read_limit\x20was\x20specified\x20\ + on\x20the\n\x20GetObjectMediaRequest,\x20ContentRange\x20will\x20be\x20p\ + opulated\x20on\x20the\x20first\n\x20GetObjectMediaResponse\x20message\ + \x20of\x20the\x20read\x20stream.\n\n\x0f\n\x05\x04$\x02\x02\x04\x12\x06\ + \xec\t\x02\xe7\t'\n\r\n\x05\x04$\x02\x02\x06\x12\x04\xec\t\x02\x0e\n\r\n\ + \x05\x04$\x02\x02\x01\x12\x04\xec\t\x0f\x1c\n\r\n\x05\x04$\x02\x02\x03\ + \x12\x04\xec\t\x1f\x20\nz\n\x04\x04$\x02\x03\x12\x04\xf0\t\x02\x16\x1al\ + \x20Metadata\x20of\x20the\x20object\x20whose\x20media\x20is\x20being\x20\ + returned.\n\x20Only\x20populated\x20in\x20the\x20first\x20response\x20in\ + \x20the\x20stream.\n\n\x0f\n\x05\x04$\x02\x03\x04\x12\x06\xf0\t\x02\xec\ + \t!\n\r\n\x05\x04$\x02\x03\x06\x12\x04\xf0\t\x02\x08\n\r\n\x05\x04$\x02\ + \x03\x01\x12\x04\xf0\t\t\x11\n\r\n\x05\x04$\x02\x03\x03\x12\x04\xf0\t\ + \x14\x15\nZ\n\x02\x04%\x12\x06\xf4\t\0\x92\n\x01\x1aL\x20Describes\x20an\ + \x20attempt\x20to\x20insert\x20an\x20object,\x20possibly\x20over\x20mult\ + iple\x20requests.\n\n\x0b\n\x03\x04%\x01\x12\x04\xf4\t\x08\x18\nH\n\x04\ + \x04%\x02\0\x12\x04\xf6\t\x02\x16\x1a:\x20Destination\x20object,\x20incl\ + uding\x20its\x20name\x20and\x20its\x20metadata.\n\n\x0f\n\x05\x04%\x02\0\ + \x04\x12\x06\xf6\t\x02\xf4\t\x1a\n\r\n\x05\x04%\x02\0\x06\x12\x04\xf6\t\ + \x02\x08\n\r\n\x05\x04%\x02\0\x01\x12\x04\xf6\t\t\x11\n\r\n\x05\x04%\x02\ + \0\x03\x12\x04\xf6\t\x14\x15\nI\n\x04\x04%\x02\x01\x12\x04\xf9\t\x025\ + \x1a;\x20Apply\x20a\x20predefined\x20set\x20of\x20access\x20controls\x20\ + to\x20this\x20object.\n\n\x0f\n\x05\x04%\x02\x01\x04\x12\x06\xf9\t\x02\ + \xf6\t\x16\n\r\n\x05\x04%\x02\x01\x06\x12\x04\xf9\t\x02!\n\r\n\x05\x04%\ + \x02\x01\x01\x12\x04\xf9\t\"0\n\r\n\x05\x04%\x02\x01\x03\x12\x04\xf9\t34\ + \n\xd1\x01\n\x04\x04%\x02\x02\x12\x04\xfe\t\x025\x1a\xc2\x01\x20Makes\ + \x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\ + \x20current\n\x20generation\x20matches\x20the\x20given\x20value.\x20Sett\ + ing\x20to\x200\x20makes\x20the\x20operation\n\x20succeed\x20only\x20if\ + \x20there\x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\ + \x0f\n\x05\x04%\x02\x02\x04\x12\x06\xfe\t\x02\xf9\t5\n\r\n\x05\x04%\x02\ + \x02\x06\x12\x04\xfe\t\x02\x1c\n\r\n\x05\x04%\x02\x02\x01\x12\x04\xfe\t\ + \x1d0\n\r\n\x05\x04%\x02\x02\x03\x12\x04\xfe\t34\n\x88\x02\n\x04\x04%\ + \x02\x03\x12\x04\x84\n\x029\x1a\xf9\x01\x20Makes\x20the\x20operation\x20\ + conditional\x20on\x20whether\x20the\x20object's\x20current\n\x20generati\ + on\x20does\x20not\x20match\x20the\x20given\x20value.\x20If\x20no\x20live\ + \x20object\x20exists,\x20the\n\x20precondition\x20fails.\x20Setting\x20t\ + o\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\x20there\ + \x20is\x20a\x20live\x20version\x20of\x20the\x20object.\n\n\x0f\n\x05\x04\ + %\x02\x03\x04\x12\x06\x84\n\x02\xfe\t5\n\r\n\x05\x04%\x02\x03\x06\x12\ + \x04\x84\n\x02\x1c\n\r\n\x05\x04%\x02\x03\x01\x12\x04\x84\n\x1d4\n\r\n\ + \x05\x04%\x02\x03\x03\x12\x04\x84\n78\nx\n\x04\x04%\x02\x04\x12\x04\x88\ + \n\x029\x1aj\x20Makes\x20the\x20operation\x20conditional\x20on\x20whethe\ + r\x20the\x20object's\x20current\n\x20metageneration\x20matches\x20the\ + \x20given\x20value.\n\n\x0f\n\x05\x04%\x02\x04\x04\x12\x06\x88\n\x02\x84\ + \n9\n\r\n\x05\x04%\x02\x04\x06\x12\x04\x88\n\x02\x1c\n\r\n\x05\x04%\x02\ + \x04\x01\x12\x04\x88\n\x1d4\n\r\n\x05\x04%\x02\x04\x03\x12\x04\x88\n78\n\ + \x7f\n\x04\x04%\x02\x05\x12\x04\x8c\n\x02=\x1aq\x20Makes\x20the\x20opera\ + tion\x20conditional\x20on\x20whether\x20the\x20object's\x20current\n\x20\ + metageneration\x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\ + \n\x05\x04%\x02\x05\x04\x12\x06\x8c\n\x02\x88\n9\n\r\n\x05\x04%\x02\x05\ + \x06\x12\x04\x8c\n\x02\x1c\n\r\n\x05\x04%\x02\x05\x01\x12\x04\x8c\n\x1d8\ + \n\r\n\x05\x04%\x02\x05\x03\x12\x04\x8c\n;<\n\x9a\x01\n\x04\x04%\x02\x06\ + \x12\x04\x91\n\x02(\x1a\x8b\x01\x20Set\x20of\x20properties\x20to\x20retu\ + rn.\x20Defaults\x20to\x20`NO_ACL`,\x20unless\x20the\n\x20object\x20resou\ + rce\x20specifies\x20the\x20`acl`\x20property,\x20when\x20it\x20defaults\ + \n\x20to\x20`full`.\n\n\x0f\n\x05\x04%\x02\x06\x04\x12\x06\x91\n\x02\x8c\ + \n=\n\r\n\x05\x04%\x02\x06\x06\x12\x04\x91\n\x02\x18\n\r\n\x05\x04%\x02\ + \x06\x01\x12\x04\x91\n\x19#\n\r\n\x05\x04%\x02\x06\x03\x12\x04\x91\n&'\n\ + .\n\x02\x04&\x12\x06\x95\n\0\xd8\n\x01\x1a\x20\x20Message\x20for\x20writ\ + ing\x20an\x20object.\n\n\x0b\n\x03\x04&\x01\x12\x04\x95\n\x08\x1b\nS\n\ + \x04\x04&\x08\0\x12\x06\x97\n\x02\x9f\n\x03\x1aC\x20The\x20first\x20mess\ + age\x20of\x20each\x20stream\x20should\x20set\x20one\x20of\x20the\x20foll\ + owing.\n\n\r\n\x05\x04&\x08\0\x01\x12\x04\x97\n\x08\x15\n}\n\x04\x04&\ + \x02\0\x12\x04\x9a\n\x04\x19\x1ao\x20For\x20resumable\x20uploads.\x20Thi\ + s\x20should\x20be\x20the\x20`upload_id`\x20returned\x20from\x20a\n\x20ca\ + ll\x20to\x20`StartResumableWriteResponse`.\n\n\r\n\x05\x04&\x02\0\x05\ + \x12\x04\x9a\n\x04\n\n\r\n\x05\x04&\x02\0\x01\x12\x04\x9a\n\x0b\x14\n\r\ + \n\x05\x04&\x02\0\x03\x12\x04\x9a\n\x17\x18\n\x90\x01\n\x04\x04&\x02\x01\ + \x12\x04\x9e\n\x04,\x1a\x81\x01\x20For\x20non-resumable\x20uploads.\x20D\ + escribes\x20the\x20overall\x20upload,\x20including\x20the\n\x20destinati\ + on\x20bucket\x20and\x20object\x20name,\x20preconditions,\x20etc.\n\n\r\n\ + \x05\x04&\x02\x01\x06\x12\x04\x9e\n\x04\x14\n\r\n\x05\x04&\x02\x01\x01\ + \x12\x04\x9e\n\x15'\n\r\n\x05\x04&\x02\x01\x03\x12\x04\x9e\n*+\n\xce\x04\ + \n\x04\x04&\x02\x02\x12\x04\xae\n\x02B\x1a\xbf\x04\x20Required.\x20The\ + \x20offset\x20from\x20the\x20beginning\x20of\x20the\x20object\x20at\x20w\ + hich\x20the\x20data\x20should\x20be\n\x20written.\n\n\x20In\x20the\x20fi\ + rst\x20`InsertObjectRequest`\x20of\x20a\x20`InsertObject()`\x20action,\ + \x20it\n\x20indicates\x20the\x20initial\x20offset\x20for\x20the\x20`Inse\ + rt()`\x20call.\x20The\x20value\x20**must**\x20be\n\x20equal\x20to\x20the\ + \x20`committed_size`\x20that\x20a\x20call\x20to\x20`QueryWriteStatus()`\ + \x20would\n\x20return\x20(0\x20if\x20this\x20is\x20the\x20first\x20write\ + \x20to\x20the\x20object).\n\n\x20On\x20subsequent\x20calls,\x20this\x20v\ + alue\x20**must**\x20be\x20no\x20larger\x20than\x20the\x20sum\x20of\x20th\ + e\n\x20first\x20`write_offset`\x20and\x20the\x20sizes\x20of\x20all\x20`d\ + ata`\x20chunks\x20sent\x20previously\x20on\n\x20this\x20stream.\n\n\x20A\ + n\x20incorrect\x20value\x20will\x20cause\x20an\x20error.\n\n\x0f\n\x05\ + \x04&\x02\x02\x04\x12\x06\xae\n\x02\x9f\n\x03\n\r\n\x05\x04&\x02\x02\x05\ + \x12\x04\xae\n\x02\x07\n\r\n\x05\x04&\x02\x02\x01\x12\x04\xae\n\x08\x14\ + \n\r\n\x05\x04&\x02\x02\x03\x12\x04\xae\n\x17\x18\n\r\n\x05\x04&\x02\x02\ + \x08\x12\x04\xae\n\x19A\n\x10\n\x08\x04&\x02\x02\x08\x9c\x08\0\x12\x04\ + \xae\n\x1a@\n7\n\x04\x04&\x08\x01\x12\x06\xb1\n\x02\xc3\n\x03\x1a'\x20A\ + \x20portion\x20of\x20the\x20data\x20for\x20the\x20object.\n\n\r\n\x05\ + \x04&\x08\x01\x01\x12\x04\xb1\n\x08\x0c\n\x96\x01\n\x04\x04&\x02\x03\x12\ + \x04\xb4\n\x04)\x1a\x87\x01\x20The\x20data\x20to\x20insert.\x20If\x20a\ + \x20crc32c\x20checksum\x20is\x20provided\x20that\x20doesn't\x20match\n\ + \x20the\x20checksum\x20computed\x20by\x20the\x20service,\x20the\x20reque\ + st\x20will\x20fail.\n\n\r\n\x05\x04&\x02\x03\x06\x12\x04\xb4\n\x04\x13\n\ + \r\n\x05\x04&\x02\x03\x01\x12\x04\xb4\n\x14$\n\r\n\x05\x04&\x02\x03\x03\ + \x12\x04\xb4\n'(\n\xdc\x05\n\x04\x04&\x02\x04\x12\x04\xc2\n\x04(\x1a\xcd\ + \x05\x20A\x20reference\x20to\x20an\x20existing\x20object.\x20This\x20can\ + \x20be\x20used\x20to\x20support\n\x20several\x20use\x20cases:\n\x20\x20\ + \x20-\x20Writing\x20a\x20sequence\x20of\x20data\x20buffers\x20supports\ + \x20the\x20basic\x20use\x20case\x20of\n\x20\x20\x20\x20\x20uploading\x20\ + a\x20complete\x20object,\x20chunk\x20by\x20chunk.\n\x20\x20\x20-\x20Writ\ + ing\x20a\x20sequence\x20of\x20references\x20to\x20existing\x20objects\ + \x20allows\x20an\n\x20\x20\x20\x20\x20object\x20to\x20be\x20composed\x20\ + from\x20a\x20collection\x20of\x20objects,\x20which\x20can\x20be\n\x20\ + \x20\x20\x20\x20used\x20to\x20support\x20parallel\x20object\x20writes.\n\ + \x20\x20\x20-\x20Writing\x20a\x20single\x20reference\x20with\x20a\x20giv\ + en\x20offset\x20and\x20size\x20can\x20be\x20used\n\x20\x20\x20\x20\x20to\ + \x20create\x20an\x20object\x20from\x20a\x20slice\x20of\x20an\x20existing\ + \x20object.\n\x20\x20\x20-\x20Writing\x20an\x20object\x20referencing\x20\ + a\x20object\x20slice\x20(created\x20as\x20noted\n\x20\x20\x20\x20\x20abo\ + ve)\x20followed\x20by\x20a\x20data\x20buffer\x20followed\x20by\x20anothe\ + r\x20object\n\x20\x20\x20\x20\x20slice\x20can\x20be\x20used\x20to\x20sup\ + port\x20delta\x20upload\x20functionality.\n\n\r\n\x05\x04&\x02\x04\x06\ + \x12\x04\xc2\n\x04\x19\n\r\n\x05\x04&\x02\x04\x01\x12\x04\xc2\n\x1a#\n\r\ + \n\x05\x04&\x02\x04\x03\x12\x04\xc2\n&'\n\xfd\x01\n\x04\x04&\x02\x05\x12\ + \x04\xc9\n\x02'\x1a\xee\x01\x20Checksums\x20for\x20the\x20complete\x20ob\ + ject.\x20If\x20the\x20checksums\x20computed\x20by\x20the\x20service\n\ + \x20don't\x20match\x20the\x20specifified\x20checksums\x20the\x20call\x20\ + will\x20fail.\x20May\x20only\x20be\n\x20provided\x20in\x20the\x20first\ + \x20or\x20last\x20request\x20(either\x20with\x20first_message,\x20or\n\ + \x20finish_write\x20set).\n\n\x0f\n\x05\x04&\x02\x05\x04\x12\x06\xc9\n\ + \x02\xc3\n\x03\n\r\n\x05\x04&\x02\x05\x06\x12\x04\xc9\n\x02\x11\n\r\n\ + \x05\x04&\x02\x05\x01\x12\x04\xc9\n\x12\"\n\r\n\x05\x04&\x02\x05\x03\x12\ + \x04\xc9\n%&\n\xd2\x02\n\x04\x04&\x02\x06\x12\x04\xd1\n\x02\x18\x1a\xc3\ + \x02\x20If\x20`true`,\x20this\x20indicates\x20that\x20the\x20write\x20is\ + \x20complete.\x20Sending\x20any\n\x20`InsertObjectRequest`s\x20subsequen\ + t\x20to\x20one\x20in\x20which\x20`finish_write`\x20is\x20`true`\n\x20wil\ + l\x20cause\x20an\x20error.\n\x20For\x20a\x20non-resumable\x20write\x20(w\ + here\x20the\x20upload_id\x20was\x20not\x20set\x20in\x20the\x20first\n\ + \x20message),\x20it\x20is\x20an\x20error\x20not\x20to\x20set\x20this\x20\ + field\x20in\x20the\x20final\x20message\x20of\x20the\n\x20stream.\n\n\x0f\ + \n\x05\x04&\x02\x06\x04\x12\x06\xd1\n\x02\xc9\n'\n\r\n\x05\x04&\x02\x06\ + \x05\x12\x04\xd1\n\x02\x06\n\r\n\x05\x04&\x02\x06\x01\x12\x04\xd1\n\x07\ + \x13\n\r\n\x05\x04&\x02\x06\x03\x12\x04\xd1\n\x16\x17\nX\n\x04\x04&\x02\ + \x07\x12\x04\xd4\n\x02=\x1aJ\x20A\x20set\x20of\x20parameters\x20common\ + \x20to\x20Storage\x20API\x20requests\x20concerning\x20an\x20object.\n\n\ + \x0f\n\x05\x04&\x02\x07\x04\x12\x06\xd4\n\x02\xd1\n\x18\n\r\n\x05\x04&\ + \x02\x07\x06\x12\x04\xd4\n\x02\x1b\n\r\n\x05\x04&\x02\x07\x01\x12\x04\ + \xd4\n\x1c8\n\r\n\x05\x04&\x02\x07\x03\x12\x04\xd4\n;<\nG\n\x04\x04&\x02\ + \x08\x12\x04\xd7\n\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\ + \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04&\x02\x08\ + \x04\x12\x06\xd7\n\x02\xd4\n=\n\r\n\x05\x04&\x02\x08\x06\x12\x04\xd7\n\ + \x02\x15\n\r\n\x05\x04&\x02\x08\x01\x12\x04\xd7\n\x16+\n\r\n\x05\x04&\ + \x02\x08\x03\x12\x04\xd7\n./\n0\n\x02\x04'\x12\x06\xdb\n\0\x84\x0b\x01\ + \x1a\"\x20Request\x20message\x20for\x20ListObjects.\n\n\x0b\n\x03\x04'\ + \x01\x12\x04\xdb\n\x08\x1a\nJ\n\x04\x04'\x02\0\x12\x04\xdd\n\x02=\x1a<\ + \x20Required.\x20Name\x20of\x20the\x20bucket\x20in\x20which\x20to\x20loo\ + k\x20for\x20objects.\n\n\x0f\n\x05\x04'\x02\0\x04\x12\x06\xdd\n\x02\xdb\ + \n\x1c\n\r\n\x05\x04'\x02\0\x05\x12\x04\xdd\n\x02\x08\n\r\n\x05\x04'\x02\ + \0\x01\x12\x04\xdd\n\t\x0f\n\r\n\x05\x04'\x02\0\x03\x12\x04\xdd\n\x12\ + \x13\n\r\n\x05\x04'\x02\0\x08\x12\x04\xdd\n\x14<\n\x10\n\x08\x04'\x02\0\ + \x08\x9c\x08\0\x12\x04\xdd\n\x15;\n\xd6\x02\n\x04\x04'\x02\x01\x12\x04\ + \xe5\n\x02\x17\x1a\xc7\x02\x20Returns\x20results\x20in\x20a\x20directory\ + -like\x20mode.\x20`items`\x20will\x20contain\n\x20only\x20objects\x20who\ + se\x20names,\x20aside\x20from\x20the\x20`prefix`,\x20do\x20not\n\x20cont\ + ain\x20`delimiter`.\x20Objects\x20whose\x20names,\x20aside\x20from\x20th\ + e\n\x20`prefix`,\x20contain\x20`delimiter`\x20will\x20have\x20their\x20n\ + ame,\n\x20truncated\x20after\x20the\x20`delimiter`,\x20returned\x20in\n\ + \x20`prefixes`.\x20Duplicate\x20`prefixes`\x20are\x20omitted.\n\n\x0f\n\ + \x05\x04'\x02\x01\x04\x12\x06\xe5\n\x02\xdd\n=\n\r\n\x05\x04'\x02\x01\ + \x05\x12\x04\xe5\n\x02\x08\n\r\n\x05\x04'\x02\x01\x01\x12\x04\xe5\n\t\ + \x12\n\r\n\x05\x04'\x02\x01\x03\x12\x04\xe5\n\x15\x16\n\x9b\x01\n\x04\ + \x04'\x02\x02\x12\x04\xea\n\x02&\x1a\x8c\x01\x20If\x20true,\x20objects\ + \x20that\x20end\x20in\x20exactly\x20one\x20instance\x20of\x20`delimiter`\ + \n\x20will\x20have\x20their\x20metadata\x20included\x20in\x20`items`\x20\ + in\x20addition\x20to\n\x20`prefixes`.\n\n\x0f\n\x05\x04'\x02\x02\x04\x12\ + \x06\xea\n\x02\xe5\n\x17\n\r\n\x05\x04'\x02\x02\x05\x12\x04\xea\n\x02\ + \x06\n\r\n\x05\x04'\x02\x02\x01\x12\x04\xea\n\x07!\n\r\n\x05\x04'\x02\ + \x02\x03\x12\x04\xea\n$%\n\x89\x02\n\x04\x04'\x02\x03\x12\x04\xf0\n\x02\ + \x18\x1a\xfa\x01\x20Maximum\x20number\x20of\x20`items`\x20plus\x20`prefi\ + xes`\x20to\x20return\n\x20in\x20a\x20single\x20page\x20of\x20responses.\ + \x20As\x20duplicate\x20`prefixes`\x20are\n\x20omitted,\x20fewer\x20total\ + \x20results\x20may\x20be\x20returned\x20than\x20requested.\x20The\x20ser\ + vice\n\x20will\x20use\x20this\x20parameter\x20or\x201,000\x20items,\x20w\ + hichever\x20is\x20smaller.\n\n\x0f\n\x05\x04'\x02\x03\x04\x12\x06\xf0\n\ + \x02\xea\n&\n\r\n\x05\x04'\x02\x03\x05\x12\x04\xf0\n\x02\x07\n\r\n\x05\ + \x04'\x02\x03\x01\x12\x04\xf0\n\x08\x13\n\r\n\x05\x04'\x02\x03\x03\x12\ + \x04\xf0\n\x16\x17\ni\n\x04\x04'\x02\x04\x12\x04\xf4\n\x02\x18\x1a[\x20A\ + \x20previously-returned\x20page\x20token\x20representing\x20part\x20of\ + \x20the\x20larger\x20set\x20of\n\x20results\x20to\x20view.\n\n\x0f\n\x05\ + \x04'\x02\x04\x04\x12\x06\xf4\n\x02\xf0\n\x18\n\r\n\x05\x04'\x02\x04\x05\ + \x12\x04\xf4\n\x02\x08\n\r\n\x05\x04'\x02\x04\x01\x12\x04\xf4\n\t\x13\n\ + \r\n\x05\x04'\x02\x04\x03\x12\x04\xf4\n\x16\x17\nM\n\x04\x04'\x02\x05\ + \x12\x04\xf7\n\x02\x14\x1a?\x20Filter\x20results\x20to\x20objects\x20who\ + se\x20names\x20begin\x20with\x20this\x20prefix.\n\n\x0f\n\x05\x04'\x02\ + \x05\x04\x12\x06\xf7\n\x02\xf4\n\x18\n\r\n\x05\x04'\x02\x05\x05\x12\x04\ + \xf7\n\x02\x08\n\r\n\x05\x04'\x02\x05\x01\x12\x04\xf7\n\t\x0f\n\r\n\x05\ + \x04'\x02\x05\x03\x12\x04\xf7\n\x12\x13\nB\n\x04\x04'\x02\x06\x12\x04\ + \xfa\n\x02(\x1a4\x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\ + \x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x04'\x02\x06\x04\x12\x06\xfa\n\x02\xf7\ + \n\x14\n\r\n\x05\x04'\x02\x06\x06\x12\x04\xfa\n\x02\x18\n\r\n\x05\x04'\ + \x02\x06\x01\x12\x04\xfa\n\x19#\n\r\n\x05\x04'\x02\x06\x03\x12\x04\xfa\n\ + &'\n\xd3\x01\n\x04\x04'\x02\x07\x12\x04\x80\x0b\x02\x14\x1a\xc4\x01\x20I\ + f\x20`true`,\x20lists\x20all\x20versions\x20of\x20an\x20object\x20as\x20\ + distinct\x20results.\n\x20The\x20default\x20is\x20`false`.\x20For\x20mor\ + e\x20information,\x20see\n\x20[Object\n\x20Versioning](https://cloud.goo\ + gle.com/storage/docs/object-versioning).\n\n\x0f\n\x05\x04'\x02\x07\x04\ + \x12\x06\x80\x0b\x02\xfa\n(\n\r\n\x05\x04'\x02\x07\x05\x12\x04\x80\x0b\ + \x02\x06\n\r\n\x05\x04'\x02\x07\x01\x12\x04\x80\x0b\x07\x0f\n\r\n\x05\ + \x04'\x02\x07\x03\x12\x04\x80\x0b\x12\x13\nG\n\x04\x04'\x02\x08\x12\x04\ + \x83\x0b\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ + l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04'\x02\x08\x04\x12\x06\ + \x83\x0b\x02\x80\x0b\x14\n\r\n\x05\x04'\x02\x08\x06\x12\x04\x83\x0b\x02\ + \x15\n\r\n\x05\x04'\x02\x08\x01\x12\x04\x83\x0b\x16+\n\r\n\x05\x04'\x02\ + \x08\x03\x12\x04\x83\x0b.0\nA\n\x02\x04(\x12\x06\x87\x0b\0\x91\x0b\x01\ + \x1a3\x20Request\x20object\x20for\x20`ByteStream.QueryWriteStatus`.\n\n\ + \x0b\n\x03\x04(\x01\x12\x04\x87\x0b\x08\x1f\nm\n\x04\x04(\x02\0\x12\x04\ + \x8a\x0b\x02@\x1a_\x20Required.\x20The\x20name\x20of\x20the\x20resume\ + \x20token\x20for\x20the\x20object\x20whose\x20write\x20status\x20is\x20b\ + eing\n\x20requested.\n\n\x0f\n\x05\x04(\x02\0\x04\x12\x06\x8a\x0b\x02\ + \x87\x0b!\n\r\n\x05\x04(\x02\0\x05\x12\x04\x8a\x0b\x02\x08\n\r\n\x05\x04\ + (\x02\0\x01\x12\x04\x8a\x0b\t\x12\n\r\n\x05\x04(\x02\0\x03\x12\x04\x8a\ + \x0b\x15\x16\n\r\n\x05\x04(\x02\0\x08\x12\x04\x8a\x0b\x17?\n\x10\n\x08\ + \x04(\x02\0\x08\x9c\x08\0\x12\x04\x8a\x0b\x18>\nX\n\x04\x04(\x02\x01\x12\ + \x04\x8d\x0b\x02=\x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20to\ + \x20Storage\x20API\x20requests\x20concerning\x20an\x20object.\n\n\x0f\n\ + \x05\x04(\x02\x01\x04\x12\x06\x8d\x0b\x02\x8a\x0b@\n\r\n\x05\x04(\x02\ + \x01\x06\x12\x04\x8d\x0b\x02\x1b\n\r\n\x05\x04(\x02\x01\x01\x12\x04\x8d\ + \x0b\x1c8\n\r\n\x05\x04(\x02\x01\x03\x12\x04\x8d\x0b;<\nG\n\x04\x04(\x02\ + \x02\x12\x04\x90\x0b\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\ + \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04(\x02\x02\ + \x04\x12\x06\x90\x0b\x02\x8d\x0b=\n\r\n\x05\x04(\x02\x02\x06\x12\x04\x90\ + \x0b\x02\x15\n\r\n\x05\x04(\x02\x02\x01\x12\x04\x90\x0b\x16+\n\r\n\x05\ + \x04(\x02\x02\x03\x12\x04\x90\x0b./\nB\n\x02\x04)\x12\x06\x94\x0b\0\x9b\ + \x0b\x01\x1a4\x20Response\x20object\x20for\x20`ByteStream.QueryWriteStat\ + us`.\n\n\x0b\n\x03\x04)\x01\x12\x04\x94\x0b\x08\x20\nR\n\x04\x04)\x02\0\ + \x12\x04\x96\x0b\x02\x1b\x1aD\x20The\x20number\x20of\x20bytes\x20that\ + \x20have\x20been\x20processed\x20for\x20the\x20given\x20object.\n\n\x0f\ + \n\x05\x04)\x02\0\x04\x12\x06\x96\x0b\x02\x94\x0b\"\n\r\n\x05\x04)\x02\0\ + \x05\x12\x04\x96\x0b\x02\x07\n\r\n\x05\x04)\x02\0\x01\x12\x04\x96\x0b\ + \x08\x16\n\r\n\x05\x04)\x02\0\x03\x12\x04\x96\x0b\x19\x1a\n\xa6\x01\n\ + \x04\x04)\x02\x01\x12\x04\x9a\x0b\x02\x14\x1a\x97\x01\x20`complete`\x20i\ + s\x20`true`\x20only\x20if\x20the\x20client\x20has\x20sent\x20a\x20`Inser\ + tObjectRequest`\n\x20with\x20`finish_write`\x20set\x20to\x20true,\x20and\ + \x20the\x20server\x20has\x20processed\x20that\x20request.\n\n\x0f\n\x05\ + \x04)\x02\x01\x04\x12\x06\x9a\x0b\x02\x96\x0b\x1b\n\r\n\x05\x04)\x02\x01\ + \x05\x12\x04\x9a\x0b\x02\x06\n\r\n\x05\x04)\x02\x01\x01\x12\x04\x9a\x0b\ + \x07\x0f\n\r\n\x05\x04)\x02\x01\x03\x12\x04\x9a\x0b\x12\x13\n2\n\x02\x04\ + *\x12\x06\x9e\x0b\0\x85\x0c\x01\x1a$\x20Request\x20message\x20for\x20Rew\ + riteObject.\n\n\x0b\n\x03\x04*\x01\x12\x04\x9e\x0b\x08\x1c\n\x91\x01\n\ + \x04\x04*\x02\0\x12\x04\xa1\x0b\x02I\x1a\x82\x01\x20Required.\x20Name\ + \x20of\x20the\x20bucket\x20in\x20which\x20to\x20store\x20the\x20new\x20o\ + bject.\x20Overrides\x20the\x20provided\n\x20object\x20metadata's\x20`buc\ + ket`\x20value,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\0\x04\x12\x06\xa1\ + \x0b\x02\x9e\x0b\x1e\n\r\n\x05\x04*\x02\0\x05\x12\x04\xa1\x0b\x02\x08\n\ + \r\n\x05\x04*\x02\0\x01\x12\x04\xa1\x0b\t\x1b\n\r\n\x05\x04*\x02\0\x03\ + \x12\x04\xa1\x0b\x1e\x1f\n\r\n\x05\x04*\x02\0\x08\x12\x04\xa1\x0b\x20H\n\ + \x10\n\x08\x04*\x02\0\x08\x9c\x08\0\x12\x04\xa1\x0b!G\n\xa7\x01\n\x04\ + \x04*\x02\x01\x12\x04\xa6\x0b\x02I\x1a\x98\x01\x20Required.\x20Name\x20o\ + f\x20the\x20new\x20object.\n\x20Required\x20when\x20the\x20object\x20met\ + adata\x20is\x20not\x20otherwise\x20provided.\x20Overrides\x20the\n\x20ob\ + ject\x20metadata's\x20`name`\x20value,\x20if\x20any.\n\n\x0f\n\x05\x04*\ + \x02\x01\x04\x12\x06\xa6\x0b\x02\xa1\x0bI\n\r\n\x05\x04*\x02\x01\x05\x12\ + \x04\xa6\x0b\x02\x08\n\r\n\x05\x04*\x02\x01\x01\x12\x04\xa6\x0b\t\x1b\n\ + \r\n\x05\x04*\x02\x01\x03\x12\x04\xa6\x0b\x1e\x1f\n\r\n\x05\x04*\x02\x01\ + \x08\x12\x04\xa6\x0b\x20H\n\x10\n\x08\x04*\x02\x01\x08\x9c\x08\0\x12\x04\ + \xa6\x0b!G\n\xf8\x01\n\x04\x04*\x02\x02\x12\x04\xac\x0b\x02&\x1a\xe9\x01\ + \x20Resource\x20name\x20of\x20the\x20Cloud\x20KMS\x20key,\x20of\x20the\ + \x20form\n\x20`projects/my-project/locations/my-location/keyRings/my-kr/\ + cryptoKeys/my-key`,\n\x20that\x20will\x20be\x20used\x20to\x20encrypt\x20\ + the\x20object.\x20Overrides\x20the\x20object\n\x20metadata's\x20`kms_key\ + _name`\x20value,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\x02\x04\x12\x06\ + \xac\x0b\x02\xa6\x0bI\n\r\n\x05\x04*\x02\x02\x05\x12\x04\xac\x0b\x02\x08\ + \n\r\n\x05\x04*\x02\x02\x01\x12\x04\xac\x0b\t!\n\r\n\x05\x04*\x02\x02\ + \x03\x12\x04\xac\x0b$%\nT\n\x04\x04*\x02\x03\x12\x04\xaf\x0b\x02A\x1aF\ + \x20Apply\x20a\x20predefined\x20set\x20of\x20access\x20controls\x20to\ + \x20the\x20destination\x20object.\n\n\x0f\n\x05\x04*\x02\x03\x04\x12\x06\ + \xaf\x0b\x02\xac\x0b&\n\r\n\x05\x04*\x02\x03\x06\x12\x04\xaf\x0b\x02!\n\ + \r\n\x05\x04*\x02\x03\x01\x12\x04\xaf\x0b\"<\n\r\n\x05\x04*\x02\x03\x03\ + \x12\x04\xaf\x0b?@\n\xd1\x01\n\x04\x04*\x02\x04\x12\x04\xb4\x0b\x025\x1a\ + \xc2\x01\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\ + \x20the\x20object's\x20current\x20generation\n\x20matches\x20the\x20give\ + n\x20value.\x20Setting\x20to\x200\x20makes\x20the\x20operation\x20succee\ + d\x20only\x20if\n\x20there\x20are\x20no\x20live\x20versions\x20of\x20the\ + \x20object.\n\n\x0f\n\x05\x04*\x02\x04\x04\x12\x06\xb4\x0b\x02\xaf\x0bA\ + \n\r\n\x05\x04*\x02\x04\x06\x12\x04\xb4\x0b\x02\x1c\n\r\n\x05\x04*\x02\ + \x04\x01\x12\x04\xb4\x0b\x1d0\n\r\n\x05\x04*\x02\x04\x03\x12\x04\xb4\x0b\ + 34\n\x88\x02\n\x04\x04*\x02\x05\x12\x04\xba\x0b\x029\x1a\xf9\x01\x20Make\ + s\x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20object's\ + \x20current\x20generation\n\x20does\x20not\x20match\x20the\x20given\x20v\ + alue.\x20If\x20no\x20live\x20object\x20exists,\x20the\x20precondition\n\ + \x20fails.\x20Setting\x20to\x200\x20makes\x20the\x20operation\x20succeed\ + \x20only\x20if\x20there\x20is\x20a\x20live\n\x20version\x20of\x20the\x20\ + object.\n\n\x0f\n\x05\x04*\x02\x05\x04\x12\x06\xba\x0b\x02\xb4\x0b5\n\r\ + \n\x05\x04*\x02\x05\x06\x12\x04\xba\x0b\x02\x1c\n\r\n\x05\x04*\x02\x05\ + \x01\x12\x04\xba\x0b\x1d4\n\r\n\x05\x04*\x02\x05\x03\x12\x04\xba\x0b78\n\ + \x84\x01\n\x04\x04*\x02\x06\x12\x04\xbe\x0b\x029\x1av\x20Makes\x20the\ + \x20operation\x20conditional\x20on\x20whether\x20the\x20destination\x20o\ + bject's\x20current\n\x20metageneration\x20matches\x20the\x20given\x20val\ + ue.\n\n\x0f\n\x05\x04*\x02\x06\x04\x12\x06\xbe\x0b\x02\xba\x0b9\n\r\n\ + \x05\x04*\x02\x06\x06\x12\x04\xbe\x0b\x02\x1c\n\r\n\x05\x04*\x02\x06\x01\ + \x12\x04\xbe\x0b\x1d4\n\r\n\x05\x04*\x02\x06\x03\x12\x04\xbe\x0b78\n\x8b\ + \x01\n\x04\x04*\x02\x07\x12\x04\xc2\x0b\x02=\x1a}\x20Makes\x20the\x20ope\ + ration\x20conditional\x20on\x20whether\x20the\x20destination\x20object's\ + \x20current\n\x20metageneration\x20does\x20not\x20match\x20the\x20given\ + \x20value.\n\n\x0f\n\x05\x04*\x02\x07\x04\x12\x06\xc2\x0b\x02\xbe\x0b9\n\ + \r\n\x05\x04*\x02\x07\x06\x12\x04\xc2\x0b\x02\x1c\n\r\n\x05\x04*\x02\x07\ + \x01\x12\x04\xc2\x0b\x1d8\n\r\n\x05\x04*\x02\x07\x03\x12\x04\xc2\x0b;<\n\ + {\n\x04\x04*\x02\x08\x12\x04\xc6\x0b\x02<\x1am\x20Makes\x20the\x20operat\ + ion\x20conditional\x20on\x20whether\x20the\x20source\x20object's\x20curr\ + ent\n\x20generation\x20matches\x20the\x20given\x20value.\n\n\x0f\n\x05\ + \x04*\x02\x08\x04\x12\x06\xc6\x0b\x02\xc2\x0b=\n\r\n\x05\x04*\x02\x08\ + \x06\x12\x04\xc6\x0b\x02\x1c\n\r\n\x05\x04*\x02\x08\x01\x12\x04\xc6\x0b\ + \x1d7\n\r\n\x05\x04*\x02\x08\x03\x12\x04\xc6\x0b:;\n\x82\x01\n\x04\x04*\ + \x02\t\x12\x04\xca\x0b\x02A\x1at\x20Makes\x20the\x20operation\x20conditi\ + onal\x20on\x20whether\x20the\x20source\x20object's\x20current\n\x20gener\ + ation\x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\ + \x04*\x02\t\x04\x12\x06\xca\x0b\x02\xc6\x0b<\n\r\n\x05\x04*\x02\t\x06\ + \x12\x04\xca\x0b\x02\x1c\n\r\n\x05\x04*\x02\t\x01\x12\x04\xca\x0b\x1d;\n\ + \r\n\x05\x04*\x02\t\x03\x12\x04\xca\x0b>@\n\x7f\n\x04\x04*\x02\n\x12\x04\ + \xce\x0b\x02A\x1aq\x20Makes\x20the\x20operation\x20conditional\x20on\x20\ + whether\x20the\x20source\x20object's\x20current\n\x20metageneration\x20m\ + atches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04*\x02\n\x04\x12\x06\ + \xce\x0b\x02\xca\x0bA\n\r\n\x05\x04*\x02\n\x06\x12\x04\xce\x0b\x02\x1c\n\ + \r\n\x05\x04*\x02\n\x01\x12\x04\xce\x0b\x1d;\n\r\n\x05\x04*\x02\n\x03\ + \x12\x04\xce\x0b>@\n\x86\x01\n\x04\x04*\x02\x0b\x12\x04\xd2\x0b\x02E\x1a\ + x\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20the\ + \x20source\x20object's\x20current\n\x20metageneration\x20does\x20not\x20\ + match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04*\x02\x0b\x04\x12\x06\ + \xd2\x0b\x02\xce\x0bA\n\r\n\x05\x04*\x02\x0b\x06\x12\x04\xd2\x0b\x02\x1c\ + \n\r\n\x05\x04*\x02\x0b\x01\x12\x04\xd2\x0b\x1d?\n\r\n\x05\x04*\x02\x0b\ + \x03\x12\x04\xd2\x0bBD\n\xee\x03\n\x04\x04*\x02\x0c\x12\x04\xdc\x0b\x02*\ + \x1a\xdf\x03\x20The\x20maximum\x20number\x20of\x20bytes\x20that\x20will\ + \x20be\x20rewritten\x20per\x20rewrite\x20request.\n\x20Most\x20callers\n\ + \x20shouldn't\x20need\x20to\x20specify\x20this\x20parameter\x20-\x20it\ + \x20is\x20primarily\x20in\x20place\x20to\n\x20support\x20testing.\x20If\ + \x20specified\x20the\x20value\x20must\x20be\x20an\x20integral\x20multipl\ + e\x20of\n\x201\x20MiB\x20(1048576).\x20Also,\x20this\x20only\x20applies\ + \x20to\x20requests\x20where\x20the\x20source\x20and\n\x20destination\x20\ + span\x20locations\x20and/or\x20storage\x20classes.\x20Finally,\x20this\ + \x20value\x20must\n\x20not\x20change\x20across\x20rewrite\x20calls\x20el\ + se\x20you'll\x20get\x20an\x20error\x20that\x20the\n\x20`rewriteToken`\ + \x20is\x20invalid.\n\n\x0f\n\x05\x04*\x02\x0c\x04\x12\x06\xdc\x0b\x02\ + \xd2\x0bE\n\r\n\x05\x04*\x02\x0c\x05\x12\x04\xdc\x0b\x02\x07\n\r\n\x05\ + \x04*\x02\x0c\x01\x12\x04\xdc\x0b\x08$\n\r\n\x05\x04*\x02\x0c\x03\x12\ + \x04\xdc\x0b')\n\x9a\x01\n\x04\x04*\x02\r\x12\x04\xe1\x0b\x02)\x1a\x8b\ + \x01\x20Set\x20of\x20properties\x20to\x20return.\x20Defaults\x20to\x20`N\ + O_ACL`,\x20unless\x20the\n\x20object\x20resource\x20specifies\x20the\x20\ + `acl`\x20property,\x20when\x20it\x20defaults\n\x20to\x20`full`.\n\n\x0f\ + \n\x05\x04*\x02\r\x04\x12\x06\xe1\x0b\x02\xdc\x0b*\n\r\n\x05\x04*\x02\r\ + \x06\x12\x04\xe1\x0b\x02\x18\n\r\n\x05\x04*\x02\r\x01\x12\x04\xe1\x0b\ + \x19#\n\r\n\x05\x04*\x02\r\x03\x12\x04\xe1\x0b&(\n\xc8\x02\n\x04\x04*\ + \x02\x0e\x12\x04\xe8\x0b\x02\x1c\x1a\xb9\x02\x20Include\x20this\x20field\ + \x20(from\x20the\x20previous\x20rewrite\x20response)\x20on\x20each\x20re\ + write\n\x20request\x20after\x20the\x20first\x20one,\x20until\x20the\x20r\ + ewrite\x20response\x20'done'\x20flag\x20is\n\x20true.\x20Calls\x20that\ + \x20provide\x20a\x20rewriteToken\x20can\x20omit\x20all\x20other\x20reque\ + st\x20fields,\n\x20but\x20if\x20included\x20those\x20fields\x20must\x20m\ + atch\x20the\x20values\x20provided\x20in\x20the\x20first\n\x20rewrite\x20\ + request.\n\n\x0f\n\x05\x04*\x02\x0e\x04\x12\x06\xe8\x0b\x02\xe1\x0b)\n\r\ + \n\x05\x04*\x02\x0e\x05\x12\x04\xe8\x0b\x02\x08\n\r\n\x05\x04*\x02\x0e\ + \x01\x12\x04\xe8\x0b\t\x16\n\r\n\x05\x04*\x02\x0e\x03\x12\x04\xe8\x0b\ + \x19\x1b\nP\n\x04\x04*\x02\x0f\x12\x04\xeb\x0b\x02E\x1aB\x20Required.\ + \x20Name\x20of\x20the\x20bucket\x20in\x20which\x20to\x20find\x20the\x20s\ + ource\x20object.\n\n\x0f\n\x05\x04*\x02\x0f\x04\x12\x06\xeb\x0b\x02\xe8\ + \x0b\x1c\n\r\n\x05\x04*\x02\x0f\x05\x12\x04\xeb\x0b\x02\x08\n\r\n\x05\ + \x04*\x02\x0f\x01\x12\x04\xeb\x0b\t\x16\n\r\n\x05\x04*\x02\x0f\x03\x12\ + \x04\xeb\x0b\x19\x1b\n\r\n\x05\x04*\x02\x0f\x08\x12\x04\xeb\x0b\x1cD\n\ + \x10\n\x08\x04*\x02\x0f\x08\x9c\x08\0\x12\x04\xeb\x0b\x1dC\n4\n\x04\x04*\ + \x02\x10\x12\x04\xee\x0b\x02E\x1a&\x20Required.\x20Name\x20of\x20the\x20\ + source\x20object.\n\n\x0f\n\x05\x04*\x02\x10\x04\x12\x06\xee\x0b\x02\xeb\ + \x0bE\n\r\n\x05\x04*\x02\x10\x05\x12\x04\xee\x0b\x02\x08\n\r\n\x05\x04*\ + \x02\x10\x01\x12\x04\xee\x0b\t\x16\n\r\n\x05\x04*\x02\x10\x03\x12\x04\ + \xee\x0b\x19\x1b\n\r\n\x05\x04*\x02\x10\x08\x12\x04\xee\x0b\x1cD\n\x10\n\ + \x08\x04*\x02\x10\x08\x9c\x08\0\x12\x04\xee\x0b\x1dC\n~\n\x04\x04*\x02\ + \x11\x12\x04\xf2\x0b\x02\x1f\x1ap\x20If\x20present,\x20selects\x20a\x20s\ + pecific\x20revision\x20of\x20the\x20source\x20object\x20(as\x20opposed\ + \x20to\n\x20the\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\ + \x04*\x02\x11\x04\x12\x06\xf2\x0b\x02\xee\x0bE\n\r\n\x05\x04*\x02\x11\ + \x05\x12\x04\xf2\x0b\x02\x07\n\r\n\x05\x04*\x02\x11\x01\x12\x04\xf2\x0b\ + \x08\x19\n\r\n\x05\x04*\x02\x11\x03\x12\x04\xf2\x0b\x1c\x1e\nC\n\x04\x04\ + *\x02\x12\x12\x04\xf5\x0b\x02\x15\x1a5\x20Properties\x20of\x20the\x20des\ + tination,\x20post-rewrite\x20object.\n\n\x0f\n\x05\x04*\x02\x12\x04\x12\ + \x06\xf5\x0b\x02\xf2\x0b\x1f\n\r\n\x05\x04*\x02\x12\x06\x12\x04\xf5\x0b\ + \x02\x08\n\r\n\x05\x04*\x02\x12\x01\x12\x04\xf5\x0b\t\x0f\n\r\n\x05\x04*\ + \x02\x12\x03\x12\x04\xf5\x0b\x12\x14\nH\n\x04\x04*\x02\x13\x12\x04\xf8\ + \x0b\x02/\x1a:\x20The\x20algorithm\x20used\x20to\x20encrypt\x20the\x20so\ + urce\x20object,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\x13\x04\x12\x06\xf8\ + \x0b\x02\xf5\x0b\x15\n\r\n\x05\x04*\x02\x13\x05\x12\x04\xf8\x0b\x02\x08\ + \n\r\n\x05\x04*\x02\x13\x01\x12\x04\xf8\x0b\t)\n\r\n\x05\x04*\x02\x13\ + \x03\x12\x04\xf8\x0b,.\nM\n\x04\x04*\x02\x14\x12\x04\xfb\x0b\x02)\x1a?\ + \x20The\x20encryption\x20key\x20used\x20to\x20encrypt\x20the\x20source\ + \x20object,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\x14\x04\x12\x06\xfb\x0b\ + \x02\xf8\x0b/\n\r\n\x05\x04*\x02\x14\x05\x12\x04\xfb\x0b\x02\x08\n\r\n\ + \x05\x04*\x02\x14\x01\x12\x04\xfb\x0b\t#\n\r\n\x05\x04*\x02\x14\x03\x12\ + \x04\xfb\x0b&(\nV\n\x04\x04*\x02\x15\x12\x04\xfe\x0b\x020\x1aH\x20The\ + \x20SHA-256\x20hash\x20of\x20the\x20key\x20used\x20to\x20encrypt\x20the\ + \x20source\x20object,\x20if\x20any.\n\n\x0f\n\x05\x04*\x02\x15\x04\x12\ + \x06\xfe\x0b\x02\xfb\x0b)\n\r\n\x05\x04*\x02\x15\x05\x12\x04\xfe\x0b\x02\ + \x08\n\r\n\x05\x04*\x02\x15\x01\x12\x04\xfe\x0b\t*\n\r\n\x05\x04*\x02\ + \x15\x03\x12\x04\xfe\x0b-/\nX\n\x04\x04*\x02\x16\x12\x04\x81\x0c\x02>\ + \x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20to\x20Storage\x20API\ + \x20requests\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04*\x02\x16\ + \x04\x12\x06\x81\x0c\x02\xfe\x0b0\n\r\n\x05\x04*\x02\x16\x06\x12\x04\x81\ + \x0c\x02\x1b\n\r\n\x05\x04*\x02\x16\x01\x12\x04\x81\x0c\x1c8\n\r\n\x05\ + \x04*\x02\x16\x03\x12\x04\x81\x0c;=\nG\n\x04\x04*\x02\x17\x12\x04\x84\ + \x0c\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\ + \x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04*\x02\x17\x04\x12\x06\ + \x84\x0c\x02\x81\x0c>\n\r\n\x05\x04*\x02\x17\x06\x12\x04\x84\x0c\x02\x15\ + \n\r\n\x05\x04*\x02\x17\x01\x12\x04\x84\x0c\x16+\n\r\n\x05\x04*\x02\x17\ + \x03\x12\x04\x84\x0c.0\n#\n\x02\x04+\x12\x06\x88\x0c\0\x9c\x0c\x01\x1a\ + \x15\x20A\x20rewrite\x20response.\n\n\x0b\n\x03\x04+\x01\x12\x04\x88\x0c\ + \x08\x17\n\xa9\x01\n\x04\x04+\x02\0\x12\x04\x8b\x0c\x02\"\x1a\x9a\x01\ + \x20The\x20total\x20bytes\x20written\x20so\x20far,\x20which\x20can\x20be\ + \x20used\x20to\x20provide\x20a\x20waiting\x20user\n\x20with\x20a\x20prog\ + ress\x20indicator.\x20This\x20property\x20is\x20always\x20present\x20in\ + \x20the\x20response.\n\n\x0f\n\x05\x04+\x02\0\x04\x12\x06\x8b\x0c\x02\ + \x88\x0c\x19\n\r\n\x05\x04+\x02\0\x05\x12\x04\x8b\x0c\x02\x07\n\r\n\x05\ + \x04+\x02\0\x01\x12\x04\x8b\x0c\x08\x1d\n\r\n\x05\x04+\x02\0\x03\x12\x04\ + \x8b\x0c\x20!\nu\n\x04\x04+\x02\x01\x12\x04\x8f\x0c\x02\x18\x1ag\x20The\ + \x20total\x20size\x20of\x20the\x20object\x20being\x20copied\x20in\x20byt\ + es.\x20This\x20property\x20is\x20always\n\x20present\x20in\x20the\x20res\ + ponse.\n\n\x0f\n\x05\x04+\x02\x01\x04\x12\x06\x8f\x0c\x02\x8b\x0c\"\n\r\ + \n\x05\x04+\x02\x01\x05\x12\x04\x8f\x0c\x02\x07\n\r\n\x05\x04+\x02\x01\ + \x01\x12\x04\x8f\x0c\x08\x13\n\r\n\x05\x04+\x02\x01\x03\x12\x04\x8f\x0c\ + \x16\x17\n\x91\x01\n\x04\x04+\x02\x02\x12\x04\x93\x0c\x02\x10\x1a\x82\ + \x01\x20`true`\x20if\x20the\x20copy\x20is\x20finished;\x20otherwise,\x20\ + `false`\x20if\n\x20the\x20copy\x20is\x20in\x20progress.\x20This\x20prope\ + rty\x20is\x20always\x20present\x20in\x20the\x20response.\n\n\x0f\n\x05\ + \x04+\x02\x02\x04\x12\x06\x93\x0c\x02\x8f\x0c\x18\n\r\n\x05\x04+\x02\x02\ + \x05\x12\x04\x93\x0c\x02\x06\n\r\n\x05\x04+\x02\x02\x01\x12\x04\x93\x0c\ + \x07\x0b\n\r\n\x05\x04+\x02\x02\x03\x12\x04\x93\x0c\x0e\x0f\n\x9d\x01\n\ + \x04\x04+\x02\x03\x12\x04\x97\x0c\x02\x1b\x1a\x8e\x01\x20A\x20token\x20t\ + o\x20use\x20in\x20subsequent\x20requests\x20to\x20continue\x20copying\ + \x20data.\x20This\x20token\n\x20is\x20present\x20in\x20the\x20response\ + \x20only\x20when\x20there\x20is\x20more\x20data\x20to\x20copy.\n\n\x0f\n\ + \x05\x04+\x02\x03\x04\x12\x06\x97\x0c\x02\x93\x0c\x10\n\r\n\x05\x04+\x02\ + \x03\x05\x12\x04\x97\x0c\x02\x08\n\r\n\x05\x04+\x02\x03\x01\x12\x04\x97\ + \x0c\t\x16\n\r\n\x05\x04+\x02\x03\x03\x12\x04\x97\x0c\x19\x1a\n\x94\x01\ + \n\x04\x04+\x02\x04\x12\x04\x9b\x0c\x02\x16\x1a\x85\x01\x20A\x20resource\ + \x20containing\x20the\x20metadata\x20for\x20the\x20copied-to\x20object.\ + \x20This\x20property\n\x20is\x20present\x20in\x20the\x20response\x20only\ + \x20when\x20copying\x20completes.\n\n\x0f\n\x05\x04+\x02\x04\x04\x12\x06\ + \x9b\x0c\x02\x97\x0c\x1b\n\r\n\x05\x04+\x02\x04\x06\x12\x04\x9b\x0c\x02\ + \x08\n\r\n\x05\x04+\x02\x04\x01\x12\x04\x9b\x0c\t\x11\n\r\n\x05\x04+\x02\ + \x04\x03\x12\x04\x9b\x0c\x14\x15\n4\n\x02\x04,\x12\x06\x9f\x0c\0\xa8\x0c\ + \x01\x1a&\x20Request\x20message\x20StartResumableWrite.\n\n\x0b\n\x03\ + \x04,\x01\x12\x04\x9f\x0c\x08\"\n[\n\x04\x04,\x02\0\x12\x04\xa1\x0c\x02*\ + \x1aM\x20The\x20destination\x20bucket,\x20object,\x20and\x20metadata,\ + \x20as\x20well\x20as\x20any\x20preconditions.\n\n\x0f\n\x05\x04,\x02\0\ + \x04\x12\x06\xa1\x0c\x02\x9f\x0c$\n\r\n\x05\x04,\x02\0\x06\x12\x04\xa1\ + \x0c\x02\x12\n\r\n\x05\x04,\x02\0\x01\x12\x04\xa1\x0c\x13%\n\r\n\x05\x04\ + ,\x02\0\x03\x12\x04\xa1\x0c()\nX\n\x04\x04,\x02\x01\x12\x04\xa4\x0c\x02=\ + \x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20to\x20Storage\x20API\ + \x20requests\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04,\x02\x01\ + \x04\x12\x06\xa4\x0c\x02\xa1\x0c*\n\r\n\x05\x04,\x02\x01\x06\x12\x04\xa4\ + \x0c\x02\x1b\n\r\n\x05\x04,\x02\x01\x01\x12\x04\xa4\x0c\x1c8\n\r\n\x05\ + \x04,\x02\x01\x03\x12\x04\xa4\x0c;<\nG\n\x04\x04,\x02\x02\x12\x04\xa7\ + \x0c\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\ + \x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04,\x02\x02\x04\x12\x06\ + \xa7\x0c\x02\xa4\x0c=\n\r\n\x05\x04,\x02\x02\x06\x12\x04\xa7\x0c\x02\x15\ + \n\r\n\x05\x04,\x02\x02\x01\x12\x04\xa7\x0c\x16+\n\r\n\x05\x04,\x02\x02\ + \x03\x12\x04\xa7\x0c./\nC\n\x02\x04-\x12\x06\xab\x0c\0\xaf\x0c\x01\x1a5\ + \x20Response\x20object\x20for\x20ByteStream.StartResumableWrite.\n\n\x0b\ + \n\x03\x04-\x01\x12\x04\xab\x0c\x08#\n\x9b\x01\n\x04\x04-\x02\0\x12\x04\ + \xae\x0c\x02\x17\x1a\x8c\x01\x20The\x20upload_id\x20of\x20the\x20newly\ + \x20started\x20resumable\x20write\x20operation.\x20This\n\x20value\x20sh\ + ould\x20be\x20copied\x20into\x20the\x20`InsertObjectRequest.upload_id`\ + \x20field.\n\n\x0f\n\x05\x04-\x02\0\x04\x12\x06\xae\x0c\x02\xab\x0c%\n\r\ + \n\x05\x04-\x02\0\x05\x12\x04\xae\x0c\x02\x08\n\r\n\x05\x04-\x02\0\x01\ + \x12\x04\xae\x0c\t\x12\n\r\n\x05\x04-\x02\0\x03\x12\x04\xae\x0c\x15\x16\ + \n0\n\x02\x04.\x12\x06\xb2\x0c\0\xea\x0c\x01\x1a\"\x20Request\x20message\ + \x20for\x20PatchObject.\n\n\x0b\n\x03\x04.\x01\x12\x04\xb2\x0c\x08\x1a\n\ + I\n\x04\x04.\x02\0\x12\x04\xb4\x0c\x02=\x1a;\x20Required.\x20Name\x20of\ + \x20the\x20bucket\x20in\x20which\x20the\x20object\x20resides.\n\n\x0f\n\ + \x05\x04.\x02\0\x04\x12\x06\xb4\x0c\x02\xb2\x0c\x1c\n\r\n\x05\x04.\x02\0\ + \x05\x12\x04\xb4\x0c\x02\x08\n\r\n\x05\x04.\x02\0\x01\x12\x04\xb4\x0c\t\ + \x0f\n\r\n\x05\x04.\x02\0\x03\x12\x04\xb4\x0c\x12\x13\n\r\n\x05\x04.\x02\ + \0\x08\x12\x04\xb4\x0c\x14<\n\x10\n\x08\x04.\x02\0\x08\x9c\x08\0\x12\x04\ + \xb4\x0c\x15;\n-\n\x04\x04.\x02\x01\x12\x04\xb7\x0c\x02=\x1a\x1f\x20Requ\ + ired.\x20Name\x20of\x20the\x20object.\n\n\x0f\n\x05\x04.\x02\x01\x04\x12\ + \x06\xb7\x0c\x02\xb4\x0c=\n\r\n\x05\x04.\x02\x01\x05\x12\x04\xb7\x0c\x02\ + \x08\n\r\n\x05\x04.\x02\x01\x01\x12\x04\xb7\x0c\t\x0f\n\r\n\x05\x04.\x02\ + \x01\x03\x12\x04\xb7\x0c\x12\x13\n\r\n\x05\x04.\x02\x01\x08\x12\x04\xb7\ + \x0c\x14<\n\x10\n\x08\x04.\x02\x01\x08\x9c\x08\0\x12\x04\xb7\x0c\x15;\nx\ + \n\x04\x04.\x02\x02\x12\x04\xbb\x0c\x02\x17\x1aj\x20If\x20present,\x20se\ + lects\x20a\x20specific\x20revision\x20of\x20this\x20object\x20(as\x20opp\ + osed\x20to\x20the\n\x20latest\x20version,\x20the\x20default).\n\n\x0f\n\ + \x05\x04.\x02\x02\x04\x12\x06\xbb\x0c\x02\xb7\x0c=\n\r\n\x05\x04.\x02\ + \x02\x05\x12\x04\xbb\x0c\x02\x07\n\r\n\x05\x04.\x02\x02\x01\x12\x04\xbb\ + \x0c\x08\x12\n\r\n\x05\x04.\x02\x02\x03\x12\x04\xbb\x0c\x15\x16\n\xd1\ + \x01\n\x04\x04.\x02\x03\x12\x04\xc0\x0c\x025\x1a\xc2\x01\x20Makes\x20the\ + \x20operation\x20conditional\x20on\x20whether\x20the\x20object's\x20curr\ + ent\x20generation\n\x20matches\x20the\x20given\x20value.\x20Setting\x20t\ + o\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\n\x20there\ + \x20are\x20no\x20live\x20versions\x20of\x20the\x20object.\n\n\x0f\n\x05\ + \x04.\x02\x03\x04\x12\x06\xc0\x0c\x02\xbb\x0c\x17\n\r\n\x05\x04.\x02\x03\ + \x06\x12\x04\xc0\x0c\x02\x1c\n\r\n\x05\x04.\x02\x03\x01\x12\x04\xc0\x0c\ + \x1d0\n\r\n\x05\x04.\x02\x03\x03\x12\x04\xc0\x0c34\n\x88\x02\n\x04\x04.\ + \x02\x04\x12\x04\xc6\x0c\x029\x1a\xf9\x01\x20Makes\x20the\x20operation\ + \x20conditional\x20on\x20whether\x20the\x20object's\x20current\x20genera\ + tion\n\x20does\x20not\x20match\x20the\x20given\x20value.\x20If\x20no\x20\ + live\x20object\x20exists,\x20the\x20precondition\n\x20fails.\x20Setting\ + \x20to\x200\x20makes\x20the\x20operation\x20succeed\x20only\x20if\x20the\ + re\x20is\x20a\x20live\n\x20version\x20of\x20the\x20object.\n\n\x0f\n\x05\ + \x04.\x02\x04\x04\x12\x06\xc6\x0c\x02\xc0\x0c5\n\r\n\x05\x04.\x02\x04\ + \x06\x12\x04\xc6\x0c\x02\x1c\n\r\n\x05\x04.\x02\x04\x01\x12\x04\xc6\x0c\ + \x1d4\n\r\n\x05\x04.\x02\x04\x03\x12\x04\xc6\x0c78\nx\n\x04\x04.\x02\x05\ + \x12\x04\xca\x0c\x029\x1aj\x20Makes\x20the\x20operation\x20conditional\ + \x20on\x20whether\x20the\x20object's\x20current\n\x20metageneration\x20m\ + atches\x20the\x20given\x20value.\n\n\x0f\n\x05\x04.\x02\x05\x04\x12\x06\ + \xca\x0c\x02\xc6\x0c9\n\r\n\x05\x04.\x02\x05\x06\x12\x04\xca\x0c\x02\x1c\ + \n\r\n\x05\x04.\x02\x05\x01\x12\x04\xca\x0c\x1d4\n\r\n\x05\x04.\x02\x05\ + \x03\x12\x04\xca\x0c78\n\x7f\n\x04\x04.\x02\x06\x12\x04\xce\x0c\x02=\x1a\ + q\x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20the\ + \x20object's\x20current\n\x20metageneration\x20does\x20not\x20match\x20t\ + he\x20given\x20value.\n\n\x0f\n\x05\x04.\x02\x06\x04\x12\x06\xce\x0c\x02\ + \xca\x0c9\n\r\n\x05\x04.\x02\x06\x06\x12\x04\xce\x0c\x02\x1c\n\r\n\x05\ + \x04.\x02\x06\x01\x12\x04\xce\x0c\x1d8\n\r\n\x05\x04.\x02\x06\x03\x12\ + \x04\xce\x0c;<\nI\n\x04\x04.\x02\x07\x12\x04\xd1\x0c\x025\x1a;\x20Apply\ + \x20a\x20predefined\x20set\x20of\x20access\x20controls\x20to\x20this\x20\ + object.\n\n\x0f\n\x05\x04.\x02\x07\x04\x12\x06\xd1\x0c\x02\xce\x0c=\n\r\ + \n\x05\x04.\x02\x07\x06\x12\x04\xd1\x0c\x02!\n\r\n\x05\x04.\x02\x07\x01\ + \x12\x04\xd1\x0c\"0\n\r\n\x05\x04.\x02\x07\x03\x12\x04\xd1\x0c34\n@\n\ + \x04\x04.\x02\x08\x12\x04\xd4\x0c\x02(\x1a2\x20Set\x20of\x20properties\ + \x20to\x20return.\x20Defaults\x20to\x20`FULL`.\n\n\x0f\n\x05\x04.\x02\ + \x08\x04\x12\x06\xd4\x0c\x02\xd1\x0c5\n\r\n\x05\x04.\x02\x08\x06\x12\x04\ + \xd4\x0c\x02\x18\n\r\n\x05\x04.\x02\x08\x01\x12\x04\xd4\x0c\x19#\n\r\n\ + \x05\x04.\x02\x08\x03\x12\x04\xd4\x0c&'\n1\n\x04\x04.\x02\t\x12\x04\xd7\ + \x0c\x02\x17\x1a#\x20The\x20Object\x20metadata\x20for\x20updating.\n\n\ + \x0f\n\x05\x04.\x02\t\x04\x12\x06\xd7\x0c\x02\xd4\x0c(\n\r\n\x05\x04.\ + \x02\t\x06\x12\x04\xd7\x0c\x02\x08\n\r\n\x05\x04.\x02\t\x01\x12\x04\xd7\ + \x0c\t\x11\n\r\n\x05\x04.\x02\t\x03\x12\x04\xd7\x0c\x14\x16\n\xbd\x03\n\ + \x04\x04.\x02\n\x12\x04\xe3\x0c\x02-\x1a\xae\x03\x20List\x20of\x20fields\ + \x20to\x20be\x20updated.\n\n\x20To\x20specify\x20ALL\x20fields,\x20equiv\ + alent\x20to\x20the\x20JSON\x20API's\x20\"update\"\x20function,\n\x20spec\ + ify\x20a\x20single\x20field\x20with\x20the\x20value\x20`*`.\x20Note:\x20\ + not\x20recommended.\x20If\x20a\x20new\n\x20field\x20is\x20introduced\x20\ + at\x20a\x20later\x20time,\x20an\x20older\x20client\x20updating\x20with\ + \x20the\x20`*`\n\x20may\x20accidentally\x20reset\x20the\x20new\x20field'\ + s\x20value.\n\n\x20Not\x20specifying\x20any\x20fields\x20is\x20an\x20err\ + or.\n\x20Not\x20specifying\x20a\x20field\x20while\x20setting\x20that\x20\ + field\x20to\x20a\x20non-default\x20value\x20is\n\x20an\x20error.\n\n\x0f\ + \n\x05\x04.\x02\n\x04\x12\x06\xe3\x0c\x02\xd7\x0c\x17\n\r\n\x05\x04.\x02\ + \n\x06\x12\x04\xe3\x0c\x02\x1b\n\r\n\x05\x04.\x02\n\x01\x12\x04\xe3\x0c\ + \x1c'\n\r\n\x05\x04.\x02\n\x03\x12\x04\xe3\x0c*,\nX\n\x04\x04.\x02\x0b\ + \x12\x04\xe6\x0c\x02>\x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20\ + to\x20Storage\x20API\x20requests\x20concerning\x20an\x20object.\n\n\x0f\ + \n\x05\x04.\x02\x0b\x04\x12\x06\xe6\x0c\x02\xe3\x0c-\n\r\n\x05\x04.\x02\ + \x0b\x06\x12\x04\xe6\x0c\x02\x1b\n\r\n\x05\x04.\x02\x0b\x01\x12\x04\xe6\ + \x0c\x1c8\n\r\n\x05\x04.\x02\x0b\x03\x12\x04\xe6\x0c;=\nG\n\x04\x04.\x02\ + \x0c\x12\x04\xe9\x0c\x021\x1a9\x20A\x20set\x20of\x20parameters\x20common\ + \x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04.\x02\x0c\ + \x04\x12\x06\xe9\x0c\x02\xe6\x0c>\n\r\n\x05\x04.\x02\x0c\x06\x12\x04\xe9\ + \x0c\x02\x15\n\r\n\x05\x04.\x02\x0c\x01\x12\x04\xe9\x0c\x16+\n\r\n\x05\ + \x04.\x02\x0c\x03\x12\x04\xe9\x0c.0\n1\n\x02\x04/\x12\x06\xed\x0c\0\x99\ + \r\x01\x1a#\x20Request\x20message\x20for\x20UpdateObject.\n\n\x0b\n\x03\ + \x04/\x01\x12\x04\xed\x0c\x08\x1b\nI\n\x04\x04/\x02\0\x12\x04\xef\x0c\ + \x02=\x1a;\x20Required.\x20Name\x20of\x20the\x20bucket\x20in\x20which\ + \x20the\x20object\x20resides.\n\n\x0f\n\x05\x04/\x02\0\x04\x12\x06\xef\ + \x0c\x02\xed\x0c\x1d\n\r\n\x05\x04/\x02\0\x05\x12\x04\xef\x0c\x02\x08\n\ + \r\n\x05\x04/\x02\0\x01\x12\x04\xef\x0c\t\x0f\n\r\n\x05\x04/\x02\0\x03\ + \x12\x04\xef\x0c\x12\x13\n\r\n\x05\x04/\x02\0\x08\x12\x04\xef\x0c\x14<\n\ + \x10\n\x08\x04/\x02\0\x08\x9c\x08\0\x12\x04\xef\x0c\x15;\n-\n\x04\x04/\ + \x02\x01\x12\x04\xf2\x0c\x02=\x1a\x1f\x20Required.\x20Name\x20of\x20the\ + \x20object.\n\n\x0f\n\x05\x04/\x02\x01\x04\x12\x06\xf2\x0c\x02\xef\x0c=\ + \n\r\n\x05\x04/\x02\x01\x05\x12\x04\xf2\x0c\x02\x08\n\r\n\x05\x04/\x02\ + \x01\x01\x12\x04\xf2\x0c\t\x0f\n\r\n\x05\x04/\x02\x01\x03\x12\x04\xf2\ + \x0c\x12\x13\n\r\n\x05\x04/\x02\x01\x08\x12\x04\xf2\x0c\x14<\n\x10\n\x08\ + \x04/\x02\x01\x08\x9c\x08\0\x12\x04\xf2\x0c\x15;\nx\n\x04\x04/\x02\x02\ + \x12\x04\xf6\x0c\x02\x17\x1aj\x20If\x20present,\x20selects\x20a\x20speci\ + fic\x20revision\x20of\x20this\x20object\x20(as\x20opposed\x20to\x20the\n\ + \x20latest\x20version,\x20the\x20default).\n\n\x0f\n\x05\x04/\x02\x02\ + \x04\x12\x06\xf6\x0c\x02\xf2\x0c=\n\r\n\x05\x04/\x02\x02\x05\x12\x04\xf6\ + \x0c\x02\x07\n\r\n\x05\x04/\x02\x02\x01\x12\x04\xf6\x0c\x08\x12\n\r\n\ + \x05\x04/\x02\x02\x03\x12\x04\xf6\x0c\x15\x16\n\xd1\x01\n\x04\x04/\x02\ + \x03\x12\x04\xfb\x0c\x025\x1a\xc2\x01\x20Makes\x20the\x20operation\x20co\ + nditional\x20on\x20whether\x20the\x20object's\x20current\x20generation\n\ + \x20matches\x20the\x20given\x20value.\x20Setting\x20to\x200\x20makes\x20\ + the\x20operation\x20succeed\x20only\x20if\n\x20there\x20are\x20no\x20liv\ + e\x20versions\x20of\x20the\x20object.\n\n\x0f\n\x05\x04/\x02\x03\x04\x12\ + \x06\xfb\x0c\x02\xf6\x0c\x17\n\r\n\x05\x04/\x02\x03\x06\x12\x04\xfb\x0c\ + \x02\x1c\n\r\n\x05\x04/\x02\x03\x01\x12\x04\xfb\x0c\x1d0\n\r\n\x05\x04/\ + \x02\x03\x03\x12\x04\xfb\x0c34\n\x88\x02\n\x04\x04/\x02\x04\x12\x04\x81\ + \r\x029\x1a\xf9\x01\x20Makes\x20the\x20operation\x20conditional\x20on\ + \x20whether\x20the\x20object's\x20current\x20generation\n\x20does\x20not\ + \x20match\x20the\x20given\x20value.\x20If\x20no\x20live\x20object\x20exi\ + sts,\x20the\x20precondition\n\x20fails.\x20Setting\x20to\x200\x20makes\ + \x20the\x20operation\x20succeed\x20only\x20if\x20there\x20is\x20a\x20liv\ + e\n\x20version\x20of\x20the\x20object.\n\n\x0f\n\x05\x04/\x02\x04\x04\ + \x12\x06\x81\r\x02\xfb\x0c5\n\r\n\x05\x04/\x02\x04\x06\x12\x04\x81\r\x02\ + \x1c\n\r\n\x05\x04/\x02\x04\x01\x12\x04\x81\r\x1d4\n\r\n\x05\x04/\x02\ + \x04\x03\x12\x04\x81\r78\nx\n\x04\x04/\x02\x05\x12\x04\x85\r\x029\x1aj\ + \x20Makes\x20the\x20operation\x20conditional\x20on\x20whether\x20the\x20\ + object's\x20current\n\x20metageneration\x20matches\x20the\x20given\x20va\ + lue.\n\n\x0f\n\x05\x04/\x02\x05\x04\x12\x06\x85\r\x02\x81\r9\n\r\n\x05\ + \x04/\x02\x05\x06\x12\x04\x85\r\x02\x1c\n\r\n\x05\x04/\x02\x05\x01\x12\ + \x04\x85\r\x1d4\n\r\n\x05\x04/\x02\x05\x03\x12\x04\x85\r78\n\x7f\n\x04\ + \x04/\x02\x06\x12\x04\x89\r\x02=\x1aq\x20Makes\x20the\x20operation\x20co\ + nditional\x20on\x20whether\x20the\x20object's\x20current\n\x20metagenera\ + tion\x20does\x20not\x20match\x20the\x20given\x20value.\n\n\x0f\n\x05\x04\ + /\x02\x06\x04\x12\x06\x89\r\x02\x85\r9\n\r\n\x05\x04/\x02\x06\x06\x12\ + \x04\x89\r\x02\x1c\n\r\n\x05\x04/\x02\x06\x01\x12\x04\x89\r\x1d8\n\r\n\ + \x05\x04/\x02\x06\x03\x12\x04\x89\r;<\nI\n\x04\x04/\x02\x07\x12\x04\x8c\ + \r\x025\x1a;\x20Apply\x20a\x20predefined\x20set\x20of\x20access\x20contr\ + ols\x20to\x20this\x20object.\n\n\x0f\n\x05\x04/\x02\x07\x04\x12\x06\x8c\ + \r\x02\x89\r=\n\r\n\x05\x04/\x02\x07\x06\x12\x04\x8c\r\x02!\n\r\n\x05\ + \x04/\x02\x07\x01\x12\x04\x8c\r\"0\n\r\n\x05\x04/\x02\x07\x03\x12\x04\ + \x8c\r34\n@\n\x04\x04/\x02\x08\x12\x04\x8f\r\x02(\x1a2\x20Set\x20of\x20p\ + roperties\x20to\x20return.\x20Defaults\x20to\x20`FULL`.\n\n\x0f\n\x05\ + \x04/\x02\x08\x04\x12\x06\x8f\r\x02\x8c\r5\n\r\n\x05\x04/\x02\x08\x06\ + \x12\x04\x8f\r\x02\x18\n\r\n\x05\x04/\x02\x08\x01\x12\x04\x8f\r\x19#\n\r\ + \n\x05\x04/\x02\x08\x03\x12\x04\x8f\r&'\n1\n\x04\x04/\x02\t\x12\x04\x92\ + \r\x02\x17\x1a#\x20The\x20Object\x20metadata\x20for\x20updating.\n\n\x0f\ + \n\x05\x04/\x02\t\x04\x12\x06\x92\r\x02\x8f\r(\n\r\n\x05\x04/\x02\t\x06\ + \x12\x04\x92\r\x02\x08\n\r\n\x05\x04/\x02\t\x01\x12\x04\x92\r\t\x11\n\r\ + \n\x05\x04/\x02\t\x03\x12\x04\x92\r\x14\x16\nX\n\x04\x04/\x02\n\x12\x04\ + \x95\r\x02>\x1aJ\x20A\x20set\x20of\x20parameters\x20common\x20to\x20Stor\ + age\x20API\x20requests\x20concerning\x20an\x20object.\n\n\x0f\n\x05\x04/\ + \x02\n\x04\x12\x06\x95\r\x02\x92\r\x17\n\r\n\x05\x04/\x02\n\x06\x12\x04\ + \x95\r\x02\x1b\n\r\n\x05\x04/\x02\n\x01\x12\x04\x95\r\x1c8\n\r\n\x05\x04\ + /\x02\n\x03\x12\x04\x95\r;=\nG\n\x04\x04/\x02\x0b\x12\x04\x98\r\x021\x1a\ + 9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20A\ + PI\x20requests.\n\n\x0f\n\x05\x04/\x02\x0b\x04\x12\x06\x98\r\x02\x95\r>\ + \n\r\n\x05\x04/\x02\x0b\x06\x12\x04\x98\r\x02\x15\n\r\n\x05\x04/\x02\x0b\ + \x01\x12\x04\x98\r\x16+\n\r\n\x05\x04/\x02\x0b\x03\x12\x04\x98\r.0\n4\n\ + \x02\x040\x12\x06\x9c\r\0\xc8\r\x01\x1a&\x20Request\x20message\x20for\ + \x20WatchAllObjects.\n\n\x0b\n\x03\x040\x01\x12\x04\x9c\r\x08\x1e\n@\n\ + \x04\x040\x02\0\x12\x04\x9e\r\x02\x14\x1a2\x20Name\x20of\x20the\x20bucke\ + t\x20in\x20which\x20to\x20look\x20for\x20objects.\n\n\x0f\n\x05\x040\x02\ + \0\x04\x12\x06\x9e\r\x02\x9c\r\x20\n\r\n\x05\x040\x02\0\x05\x12\x04\x9e\ + \r\x02\x08\n\r\n\x05\x040\x02\0\x01\x12\x04\x9e\r\t\x0f\n\r\n\x05\x040\ + \x02\0\x03\x12\x04\x9e\r\x12\x13\n\xd3\x01\n\x04\x040\x02\x01\x12\x04\ + \xa4\r\x02\x14\x1a\xc4\x01\x20If\x20`true`,\x20lists\x20all\x20versions\ + \x20of\x20an\x20object\x20as\x20distinct\x20results.\n\x20The\x20default\ + \x20is\x20`false`.\x20For\x20more\x20information,\x20see\n\x20[Object\n\ + \x20Versioning](https://cloud.google.com/storage/docs/object-versioning)\ + .\n\n\x0f\n\x05\x040\x02\x01\x04\x12\x06\xa4\r\x02\x9e\r\x14\n\r\n\x05\ + \x040\x02\x01\x05\x12\x04\xa4\r\x02\x06\n\r\n\x05\x040\x02\x01\x01\x12\ + \x04\xa4\r\x07\x0f\n\r\n\x05\x040\x02\x01\x03\x12\x04\xa4\r\x12\x13\n\ + \xd6\x02\n\x04\x040\x02\x02\x12\x04\xac\r\x02\x17\x1a\xc7\x02\x20Returns\ + \x20results\x20in\x20a\x20directory-like\x20mode.\x20`items`\x20will\x20\ + contain\n\x20only\x20objects\x20whose\x20names,\x20aside\x20from\x20the\ + \x20`prefix`,\x20do\x20not\n\x20contain\x20`delimiter`.\x20Objects\x20wh\ + ose\x20names,\x20aside\x20from\x20the\n\x20`prefix`,\x20contain\x20`deli\ + miter`\x20will\x20have\x20their\x20name,\n\x20truncated\x20after\x20the\ + \x20`delimiter`,\x20returned\x20in\n\x20`prefixes`.\x20Duplicate\x20`pre\ + fixes`\x20are\x20omitted.\n\n\x0f\n\x05\x040\x02\x02\x04\x12\x06\xac\r\ + \x02\xa4\r\x14\n\r\n\x05\x040\x02\x02\x05\x12\x04\xac\r\x02\x08\n\r\n\ + \x05\x040\x02\x02\x01\x12\x04\xac\r\t\x12\n\r\n\x05\x040\x02\x02\x03\x12\ + \x04\xac\r\x15\x16\n\x89\x02\n\x04\x040\x02\x03\x12\x04\xb2\r\x02\x18\ + \x1a\xfa\x01\x20Maximum\x20number\x20of\x20`items`\x20plus\x20`prefixes`\ + \x20to\x20return\n\x20in\x20a\x20single\x20page\x20of\x20responses.\x20A\ + s\x20duplicate\x20`prefixes`\x20are\n\x20omitted,\x20fewer\x20total\x20r\ + esults\x20may\x20be\x20returned\x20than\x20requested.\x20The\x20service\ + \n\x20will\x20use\x20this\x20parameter\x20or\x201,000\x20items,\x20which\ + ever\x20is\x20smaller.\n\n\x0f\n\x05\x040\x02\x03\x04\x12\x06\xb2\r\x02\ + \xac\r\x17\n\r\n\x05\x040\x02\x03\x05\x12\x04\xb2\r\x02\x07\n\r\n\x05\ + \x040\x02\x03\x01\x12\x04\xb2\r\x08\x13\n\r\n\x05\x040\x02\x03\x03\x12\ + \x04\xb2\r\x16\x17\nM\n\x04\x040\x02\x04\x12\x04\xb5\r\x02\x14\x1a?\x20F\ + ilter\x20results\x20to\x20objects\x20whose\x20names\x20begin\x20with\x20\ + this\x20prefix.\n\n\x0f\n\x05\x040\x02\x04\x04\x12\x06\xb5\r\x02\xb2\r\ + \x18\n\r\n\x05\x040\x02\x04\x05\x12\x04\xb5\r\x02\x08\n\r\n\x05\x040\x02\ + \x04\x01\x12\x04\xb5\r\t\x0f\n\r\n\x05\x040\x02\x04\x03\x12\x04\xb5\r\ + \x12\x13\n\x9b\x01\n\x04\x040\x02\x05\x12\x04\xba\r\x02&\x1a\x8c\x01\x20\ + If\x20true,\x20objects\x20that\x20end\x20in\x20exactly\x20one\x20instanc\ + e\x20of\x20`delimiter`\n\x20will\x20have\x20their\x20metadata\x20include\ + d\x20in\x20`items`\x20in\x20addition\x20to\n\x20`prefixes`.\n\n\x0f\n\ + \x05\x040\x02\x05\x04\x12\x06\xba\r\x02\xb5\r\x14\n\r\n\x05\x040\x02\x05\ + \x05\x12\x04\xba\r\x02\x06\n\r\n\x05\x040\x02\x05\x01\x12\x04\xba\r\x07!\ + \n\r\n\x05\x040\x02\x05\x03\x12\x04\xba\r$%\ni\n\x04\x040\x02\x06\x12\ + \x04\xbe\r\x02\x18\x1a[\x20A\x20previously-returned\x20page\x20token\x20\ + representing\x20part\x20of\x20the\x20larger\x20set\x20of\n\x20results\ + \x20to\x20view.\n\n\x0f\n\x05\x040\x02\x06\x04\x12\x06\xbe\r\x02\xba\r&\ + \n\r\n\x05\x040\x02\x06\x05\x12\x04\xbe\r\x02\x08\n\r\n\x05\x040\x02\x06\ + \x01\x12\x04\xbe\r\t\x13\n\r\n\x05\x040\x02\x06\x03\x12\x04\xbe\r\x16\ + \x17\nB\n\x04\x040\x02\x07\x12\x04\xc1\r\x02(\x1a4\x20Set\x20of\x20prope\ + rties\x20to\x20return.\x20Defaults\x20to\x20`NO_ACL`.\n\n\x0f\n\x05\x040\ + \x02\x07\x04\x12\x06\xc1\r\x02\xbe\r\x18\n\r\n\x05\x040\x02\x07\x06\x12\ + \x04\xc1\r\x02\x18\n\r\n\x05\x040\x02\x07\x01\x12\x04\xc1\r\x19#\n\r\n\ + \x05\x040\x02\x07\x03\x12\x04\xc1\r&'\n9\n\x04\x040\x02\x08\x12\x04\xc4\ + \r\x02\x17\x1a+\x20Properties\x20of\x20the\x20channel\x20to\x20be\x20ins\ + erted.\n\n\x0f\n\x05\x040\x02\x08\x04\x12\x06\xc4\r\x02\xc1\r(\n\r\n\x05\ + \x040\x02\x08\x06\x12\x04\xc4\r\x02\t\n\r\n\x05\x040\x02\x08\x01\x12\x04\ + \xc4\r\n\x11\n\r\n\x05\x040\x02\x08\x03\x12\x04\xc4\r\x14\x16\nG\n\x04\ + \x040\x02\t\x12\x04\xc7\r\x021\x1a9\x20A\x20set\x20of\x20parameters\x20c\ + ommon\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x040\x02\ + \t\x04\x12\x06\xc7\r\x02\xc4\r\x17\n\r\n\x05\x040\x02\t\x06\x12\x04\xc7\ + \r\x02\x15\n\r\n\x05\x040\x02\t\x01\x12\x04\xc7\r\x16+\n\r\n\x05\x040\ + \x02\t\x03\x12\x04\xc7\r.0\n=\n\x02\x041\x12\x06\xcb\r\0\xd1\r\x01\x1a/\ + \x20Request\x20message\x20for\x20GetProjectServiceAccount.\n\n\x0b\n\x03\ + \x041\x01\x12\x04\xcb\r\x08'\n%\n\x04\x041\x02\0\x12\x04\xcd\r\x02A\x1a\ + \x17\x20Required.\x20Project\x20ID.\n\n\x0f\n\x05\x041\x02\0\x04\x12\x06\ + \xcd\r\x02\xcb\r)\n\r\n\x05\x041\x02\0\x05\x12\x04\xcd\r\x02\x08\n\r\n\ + \x05\x041\x02\0\x01\x12\x04\xcd\r\t\x13\n\r\n\x05\x041\x02\0\x03\x12\x04\ + \xcd\r\x16\x17\n\r\n\x05\x041\x02\0\x08\x12\x04\xcd\r\x18@\n\x10\n\x08\ + \x041\x02\0\x08\x9c\x08\0\x12\x04\xcd\r\x19?\nG\n\x04\x041\x02\x01\x12\ + \x04\xd0\r\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20\ + all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x041\x02\x01\x04\x12\ + \x06\xd0\r\x02\xcd\rA\n\r\n\x05\x041\x02\x01\x06\x12\x04\xd0\r\x02\x15\n\ + \r\n\x05\x041\x02\x01\x01\x12\x04\xd0\r\x16+\n\r\n\x05\x041\x02\x01\x03\ + \x12\x04\xd0\r./\n\x0c\n\x02\x042\x12\x06\xd3\r\0\xdc\r\x01\n\x0b\n\x03\ + \x042\x01\x12\x04\xd3\r\x08\x1c\nT\n\x04\x042\x02\0\x12\x04\xd5\r\x02A\ + \x1aF\x20Required.\x20The\x20project\x20that\x20the\x20HMAC-owning\x20se\ + rvice\x20account\x20lives\x20in.\n\n\x0f\n\x05\x042\x02\0\x04\x12\x06\ + \xd5\r\x02\xd3\r\x1e\n\r\n\x05\x042\x02\0\x05\x12\x04\xd5\r\x02\x08\n\r\ + \n\x05\x042\x02\0\x01\x12\x04\xd5\r\t\x13\n\r\n\x05\x042\x02\0\x03\x12\ + \x04\xd5\r\x16\x17\n\r\n\x05\x042\x02\0\x08\x12\x04\xd5\r\x18@\n\x10\n\ + \x08\x042\x02\0\x08\x9c\x08\0\x12\x04\xd5\r\x19?\nE\n\x04\x042\x02\x01\ + \x12\x04\xd8\r\x02L\x1a7\x20Required.\x20The\x20service\x20account\x20to\ + \x20create\x20the\x20HMAC\x20for.\n\n\x0f\n\x05\x042\x02\x01\x04\x12\x06\ + \xd8\r\x02\xd5\rA\n\r\n\x05\x042\x02\x01\x05\x12\x04\xd8\r\x02\x08\n\r\n\ + \x05\x042\x02\x01\x01\x12\x04\xd8\r\t\x1e\n\r\n\x05\x042\x02\x01\x03\x12\ + \x04\xd8\r!\"\n\r\n\x05\x042\x02\x01\x08\x12\x04\xd8\r#K\n\x10\n\x08\x04\ + 2\x02\x01\x08\x9c\x08\0\x12\x04\xd8\r$J\nG\n\x04\x042\x02\x02\x12\x04\ + \xdb\r\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20all\ + \x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x042\x02\x02\x04\x12\x06\ + \xdb\r\x02\xd8\rL\n\r\n\x05\x042\x02\x02\x06\x12\x04\xdb\r\x02\x15\n\r\n\ + \x05\x042\x02\x02\x01\x12\x04\xdb\r\x16+\n\r\n\x05\x042\x02\x02\x03\x12\ + \x04\xdb\r./\n]\n\x02\x043\x12\x06\xdf\r\0\xe5\r\x01\x1aO\x20Create\x20h\ + mac\x20response.\x20\x20The\x20only\x20time\x20the\x20secret\x20for\x20a\ + n\x20HMAC\x20will\x20be\x20returned.\n\n\x0b\n\x03\x043\x01\x12\x04\xdf\ + \r\x08\x1d\n\x1d\n\x04\x043\x02\0\x12\x04\xe1\r\x02\x1f\x1a\x0f\x20Key\ + \x20metadata.\n\n\x0f\n\x05\x043\x02\0\x04\x12\x06\xe1\r\x02\xdf\r\x1f\n\ + \r\n\x05\x043\x02\0\x06\x12\x04\xe1\r\x02\x11\n\r\n\x05\x043\x02\0\x01\ + \x12\x04\xe1\r\x12\x1a\n\r\n\x05\x043\x02\0\x03\x12\x04\xe1\r\x1d\x1e\n)\ + \n\x04\x043\x02\x01\x12\x04\xe4\r\x02\x14\x1a\x1b\x20HMAC\x20key\x20secr\ + et\x20material.\n\n\x0f\n\x05\x043\x02\x01\x04\x12\x06\xe4\r\x02\xe1\r\ + \x1f\n\r\n\x05\x043\x02\x01\x05\x12\x04\xe4\r\x02\x08\n\r\n\x05\x043\x02\ + \x01\x01\x12\x04\xe4\r\t\x0f\n\r\n\x05\x043\x02\x01\x03\x12\x04\xe4\r\ + \x12\x13\n:\n\x02\x044\x12\x06\xe8\r\0\xf1\r\x01\x1a,\x20Request\x20obje\ + ct\x20to\x20delete\x20a\x20given\x20HMAC\x20key.\n\n\x0b\n\x03\x044\x01\ + \x12\x04\xe8\r\x08\x1c\nE\n\x04\x044\x02\0\x12\x04\xea\r\x02@\x1a7\x20Re\ + quired.\x20The\x20identifying\x20key\x20for\x20the\x20HMAC\x20to\x20dele\ + te.\n\n\x0f\n\x05\x044\x02\0\x04\x12\x06\xea\r\x02\xe8\r\x1e\n\r\n\x05\ + \x044\x02\0\x05\x12\x04\xea\r\x02\x08\n\r\n\x05\x044\x02\0\x01\x12\x04\ + \xea\r\t\x12\n\r\n\x05\x044\x02\0\x03\x12\x04\xea\r\x15\x16\n\r\n\x05\ + \x044\x02\0\x08\x12\x04\xea\r\x17?\n\x10\n\x08\x044\x02\0\x08\x9c\x08\0\ + \x12\x04\xea\r\x18>\n>\n\x04\x044\x02\x01\x12\x04\xed\r\x02A\x1a0\x20Req\ + uired.\x20The\x20project\x20id\x20the\x20HMAC\x20key\x20lies\x20in.\n\n\ + \x0f\n\x05\x044\x02\x01\x04\x12\x06\xed\r\x02\xea\r@\n\r\n\x05\x044\x02\ + \x01\x05\x12\x04\xed\r\x02\x08\n\r\n\x05\x044\x02\x01\x01\x12\x04\xed\r\ + \t\x13\n\r\n\x05\x044\x02\x01\x03\x12\x04\xed\r\x16\x17\n\r\n\x05\x044\ + \x02\x01\x08\x12\x04\xed\r\x18@\n\x10\n\x08\x044\x02\x01\x08\x9c\x08\0\ + \x12\x04\xed\r\x19?\nG\n\x04\x044\x02\x02\x12\x04\xf0\r\x020\x1a9\x20A\ + \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ + requests.\n\n\x0f\n\x05\x044\x02\x02\x04\x12\x06\xf0\r\x02\xed\rA\n\r\n\ + \x05\x044\x02\x02\x06\x12\x04\xf0\r\x02\x15\n\r\n\x05\x044\x02\x02\x01\ + \x12\x04\xf0\r\x16+\n\r\n\x05\x044\x02\x02\x03\x12\x04\xf0\r./\nC\n\x02\ + \x045\x12\x06\xf4\r\0\xfd\r\x01\x1a5\x20Request\x20object\x20to\x20get\ + \x20metadata\x20on\x20a\x20given\x20HMAC\x20key.\n\n\x0b\n\x03\x045\x01\ + \x12\x04\xf4\r\x08\x19\nE\n\x04\x045\x02\0\x12\x04\xf6\r\x02@\x1a7\x20Re\ + quired.\x20The\x20identifying\x20key\x20for\x20the\x20HMAC\x20to\x20dele\ + te.\n\n\x0f\n\x05\x045\x02\0\x04\x12\x06\xf6\r\x02\xf4\r\x1b\n\r\n\x05\ + \x045\x02\0\x05\x12\x04\xf6\r\x02\x08\n\r\n\x05\x045\x02\0\x01\x12\x04\ + \xf6\r\t\x12\n\r\n\x05\x045\x02\0\x03\x12\x04\xf6\r\x15\x16\n\r\n\x05\ + \x045\x02\0\x08\x12\x04\xf6\r\x17?\n\x10\n\x08\x045\x02\0\x08\x9c\x08\0\ + \x12\x04\xf6\r\x18>\n>\n\x04\x045\x02\x01\x12\x04\xf9\r\x02A\x1a0\x20Req\ + uired.\x20The\x20project\x20id\x20the\x20HMAC\x20key\x20lies\x20in.\n\n\ + \x0f\n\x05\x045\x02\x01\x04\x12\x06\xf9\r\x02\xf6\r@\n\r\n\x05\x045\x02\ + \x01\x05\x12\x04\xf9\r\x02\x08\n\r\n\x05\x045\x02\x01\x01\x12\x04\xf9\r\ + \t\x13\n\r\n\x05\x045\x02\x01\x03\x12\x04\xf9\r\x16\x17\n\r\n\x05\x045\ + \x02\x01\x08\x12\x04\xf9\r\x18@\n\x10\n\x08\x045\x02\x01\x08\x9c\x08\0\ + \x12\x04\xf9\r\x19?\nG\n\x04\x045\x02\x02\x12\x04\xfc\r\x020\x1a9\x20A\ + \x20set\x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20\ + requests.\n\n\x0f\n\x05\x045\x02\x02\x04\x12\x06\xfc\r\x02\xf9\rA\n\r\n\ + \x05\x045\x02\x02\x06\x12\x04\xfc\r\x02\x15\n\r\n\x05\x045\x02\x02\x01\ + \x12\x04\xfc\r\x16+\n\r\n\x05\x045\x02\x02\x03\x12\x04\xfc\r./\nK\n\x02\ + \x046\x12\x06\x80\x0e\0\x92\x0e\x01\x1a=\x20Request\x20to\x20fetch\x20a\ + \x20list\x20of\x20HMAC\x20keys\x20under\x20a\x20given\x20project.\n\n\ + \x0b\n\x03\x046\x01\x12\x04\x80\x0e\x08\x1b\n?\n\x04\x046\x02\0\x12\x04\ + \x82\x0e\x02A\x1a1\x20Required.\x20The\x20project\x20id\x20to\x20list\ + \x20HMAC\x20keys\x20for.\n\n\x0f\n\x05\x046\x02\0\x04\x12\x06\x82\x0e\ + \x02\x80\x0e\x1d\n\r\n\x05\x046\x02\0\x05\x12\x04\x82\x0e\x02\x08\n\r\n\ + \x05\x046\x02\0\x01\x12\x04\x82\x0e\t\x13\n\r\n\x05\x046\x02\0\x03\x12\ + \x04\x82\x0e\x16\x17\n\r\n\x05\x046\x02\0\x08\x12\x04\x82\x0e\x18@\n\x10\ + \n\x08\x046\x02\0\x08\x9c\x08\0\x12\x04\x82\x0e\x19?\nT\n\x04\x046\x02\ + \x01\x12\x04\x85\x0e\x02#\x1aF\x20An\x20optional\x20filter\x20to\x20only\ + \x20return\x20HMAC\x20keys\x20for\x20one\x20service\x20account.\n\n\x0f\ + \n\x05\x046\x02\x01\x04\x12\x06\x85\x0e\x02\x82\x0eA\n\r\n\x05\x046\x02\ + \x01\x05\x12\x04\x85\x0e\x02\x08\n\r\n\x05\x046\x02\x01\x01\x12\x04\x85\ + \x0e\t\x1e\n\r\n\x05\x046\x02\x01\x03\x12\x04\x85\x0e!\"\nY\n\x04\x046\ + \x02\x02\x12\x04\x88\x0e\x02\x1d\x1aK\x20An\x20optional\x20bool\x20to\ + \x20return\x20deleted\x20keys\x20that\x20have\x20not\x20been\x20wiped\ + \x20out\x20yet.\n\n\x0f\n\x05\x046\x02\x02\x04\x12\x06\x88\x0e\x02\x85\ + \x0e#\n\r\n\x05\x046\x02\x02\x05\x12\x04\x88\x0e\x02\x06\n\r\n\x05\x046\ + \x02\x02\x01\x12\x04\x88\x0e\x07\x18\n\r\n\x05\x046\x02\x02\x03\x12\x04\ + \x88\x0e\x1b\x1c\n5\n\x04\x046\x02\x03\x12\x04\x8b\x0e\x02\x18\x1a'\x20T\ + he\x20maximum\x20number\x20of\x20keys\x20to\x20return.\n\n\x0f\n\x05\x04\ + 6\x02\x03\x04\x12\x06\x8b\x0e\x02\x88\x0e\x1d\n\r\n\x05\x046\x02\x03\x05\ + \x12\x04\x8b\x0e\x02\x07\n\r\n\x05\x046\x02\x03\x01\x12\x04\x8b\x0e\x08\ + \x13\n\r\n\x05\x046\x02\x03\x03\x12\x04\x8b\x0e\x16\x17\n[\n\x04\x046\ + \x02\x04\x12\x04\x8e\x0e\x02\x18\x1aM\x20A\x20previously\x20returned\x20\ + token\x20from\x20ListHmacKeysResponse\x20to\x20get\x20the\x20next\x20pag\ + e.\n\n\x0f\n\x05\x046\x02\x04\x04\x12\x06\x8e\x0e\x02\x8b\x0e\x18\n\r\n\ + \x05\x046\x02\x04\x05\x12\x04\x8e\x0e\x02\x08\n\r\n\x05\x046\x02\x04\x01\ + \x12\x04\x8e\x0e\t\x13\n\r\n\x05\x046\x02\x04\x03\x12\x04\x8e\x0e\x16\ + \x17\nG\n\x04\x046\x02\x05\x12\x04\x91\x0e\x020\x1a9\x20A\x20set\x20of\ + \x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\ + \x0f\n\x05\x046\x02\x05\x04\x12\x06\x91\x0e\x02\x8e\x0e\x18\n\r\n\x05\ + \x046\x02\x05\x06\x12\x04\x91\x0e\x02\x15\n\r\n\x05\x046\x02\x05\x01\x12\ + \x04\x91\x0e\x16+\n\r\n\x05\x046\x02\x05\x03\x12\x04\x91\x0e./\nB\n\x02\ + \x047\x12\x06\x95\x0e\0\x9c\x0e\x01\x1a4\x20Hmac\x20key\x20list\x20respo\ + nse\x20with\x20next\x20page\x20information.\n\n\x0b\n\x03\x047\x01\x12\ + \x04\x95\x0e\x08\x1c\n\xa0\x01\n\x04\x047\x02\0\x12\x04\x98\x0e\x02\x1d\ + \x1a\x91\x01\x20The\x20continuation\x20token,\x20used\x20to\x20page\x20t\ + hrough\x20large\x20result\x20sets.\x20Provide\n\x20this\x20value\x20in\ + \x20a\x20subsequent\x20request\x20to\x20return\x20the\x20next\x20page\ + \x20of\x20results.\n\n\x0f\n\x05\x047\x02\0\x04\x12\x06\x98\x0e\x02\x95\ + \x0e\x1e\n\r\n\x05\x047\x02\0\x05\x12\x04\x98\x0e\x02\x08\n\r\n\x05\x047\ + \x02\0\x01\x12\x04\x98\x0e\t\x18\n\r\n\x05\x047\x02\0\x03\x12\x04\x98\ + \x0e\x1b\x1c\n\"\n\x04\x047\x02\x01\x12\x04\x9b\x0e\x02%\x1a\x14\x20The\ + \x20list\x20of\x20items.\n\n\r\n\x05\x047\x02\x01\x04\x12\x04\x9b\x0e\ + \x02\n\n\r\n\x05\x047\x02\x01\x06\x12\x04\x9b\x0e\x0b\x1a\n\r\n\x05\x047\ + \x02\x01\x01\x12\x04\x9b\x0e\x1b\x20\n\r\n\x05\x047\x02\x01\x03\x12\x04\ + \x9b\x0e#$\n;\n\x02\x048\x12\x06\x9f\x0e\0\xab\x0e\x01\x1a-\x20Request\ + \x20object\x20to\x20update\x20an\x20HMAC\x20key\x20state.\n\n\x0b\n\x03\ + \x048\x01\x12\x04\x9f\x0e\x08\x1c\n1\n\x04\x048\x02\0\x12\x04\xa1\x0e\ + \x02@\x1a#\x20Required.\x20The\x20id\x20of\x20the\x20HMAC\x20key.\n\n\ + \x0f\n\x05\x048\x02\0\x04\x12\x06\xa1\x0e\x02\x9f\x0e\x1e\n\r\n\x05\x048\ + \x02\0\x05\x12\x04\xa1\x0e\x02\x08\n\r\n\x05\x048\x02\0\x01\x12\x04\xa1\ + \x0e\t\x12\n\r\n\x05\x048\x02\0\x03\x12\x04\xa1\x0e\x15\x16\n\r\n\x05\ + \x048\x02\0\x08\x12\x04\xa1\x0e\x17?\n\x10\n\x08\x048\x02\0\x08\x9c\x08\ + \0\x12\x04\xa1\x0e\x18>\nL\n\x04\x048\x02\x01\x12\x04\xa4\x0e\x02A\x1a>\ + \x20Required.\x20The\x20project\x20id\x20the\x20HMAC's\x20service\x20acc\ + ount\x20lies\x20in.\n\n\x0f\n\x05\x048\x02\x01\x04\x12\x06\xa4\x0e\x02\ + \xa1\x0e@\n\r\n\x05\x048\x02\x01\x05\x12\x04\xa4\x0e\x02\x08\n\r\n\x05\ + \x048\x02\x01\x01\x12\x04\xa4\x0e\t\x13\n\r\n\x05\x048\x02\x01\x03\x12\ + \x04\xa4\x0e\x16\x17\n\r\n\x05\x048\x02\x01\x08\x12\x04\xa4\x0e\x18@\n\ + \x10\n\x08\x048\x02\x01\x08\x9c\x08\0\x12\x04\xa4\x0e\x19?\nD\n\x04\x048\ + \x02\x02\x12\x04\xa7\x0e\x02H\x1a6\x20Required.\x20The\x20service\x20acc\ + ount\x20owner\x20of\x20the\x20HMAC\x20key.\n\n\x0f\n\x05\x048\x02\x02\ + \x04\x12\x06\xa7\x0e\x02\xa4\x0eA\n\r\n\x05\x048\x02\x02\x06\x12\x04\xa7\ + \x0e\x02\x11\n\r\n\x05\x048\x02\x02\x01\x12\x04\xa7\x0e\x12\x1a\n\r\n\ + \x05\x048\x02\x02\x03\x12\x04\xa7\x0e\x1d\x1e\n\r\n\x05\x048\x02\x02\x08\ + \x12\x04\xa7\x0e\x1fG\n\x10\n\x08\x048\x02\x02\x08\x9c\x08\0\x12\x04\xa7\ + \x0e\x20F\nG\n\x04\x048\x02\x03\x12\x04\xaa\x0e\x020\x1a9\x20A\x20set\ + \x20of\x20parameters\x20common\x20to\x20all\x20Storage\x20API\x20request\ + s.\n\n\x0f\n\x05\x048\x02\x03\x04\x12\x06\xaa\x0e\x02\xa7\x0eH\n\r\n\x05\ + \x048\x02\x03\x06\x12\x04\xaa\x0e\x02\x15\n\r\n\x05\x048\x02\x03\x01\x12\ + \x04\xaa\x0e\x16+\n\r\n\x05\x048\x02\x03\x03\x12\x04\xaa\x0e./\nb\n\x02\ + \x049\x12\x06\xaf\x0e\0\xb5\x0e\x01\x1aT\x20A\x20wrapper\x20around\x20th\ + e\x20IAM\x20get\x20policy\x20request\x20to\x20support\x20our\n\x20common\ + _request_params.\n\n\x0b\n\x03\x049\x01\x12\x04\xaf\x0e\x08\x1b\n(\n\x04\ + \x049\x02\0\x12\x04\xb1\x0e\x024\x1a\x1a\x20The\x20request\x20sent\x20to\ + \x20IAM.\n\n\x0f\n\x05\x049\x02\0\x04\x12\x06\xb1\x0e\x02\xaf\x0e\x1d\n\ + \r\n\x05\x049\x02\0\x06\x12\x04\xb1\x0e\x02#\n\r\n\x05\x049\x02\0\x01\ + \x12\x04\xb1\x0e$/\n\r\n\x05\x049\x02\0\x03\x12\x04\xb1\x0e23\nG\n\x04\ + \x049\x02\x01\x12\x04\xb4\x0e\x020\x1a9\x20A\x20set\x20of\x20parameters\ + \x20common\x20to\x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04\ + 9\x02\x01\x04\x12\x06\xb4\x0e\x02\xb1\x0e4\n\r\n\x05\x049\x02\x01\x06\ + \x12\x04\xb4\x0e\x02\x15\n\r\n\x05\x049\x02\x01\x01\x12\x04\xb4\x0e\x16+\ + \n\r\n\x05\x049\x02\x01\x03\x12\x04\xb4\x0e./\nb\n\x02\x04:\x12\x06\xb9\ + \x0e\0\xbf\x0e\x01\x1aT\x20A\x20wrapper\x20around\x20the\x20IAM\x20set\ + \x20policy\x20request\x20to\x20support\x20our\n\x20common_request_params\ + .\n\n\x0b\n\x03\x04:\x01\x12\x04\xb9\x0e\x08\x1b\n(\n\x04\x04:\x02\0\x12\ + \x04\xbb\x0e\x024\x1a\x1a\x20The\x20request\x20sent\x20to\x20IAM.\n\n\ + \x0f\n\x05\x04:\x02\0\x04\x12\x06\xbb\x0e\x02\xb9\x0e\x1d\n\r\n\x05\x04:\ + \x02\0\x06\x12\x04\xbb\x0e\x02#\n\r\n\x05\x04:\x02\0\x01\x12\x04\xbb\x0e\ + $/\n\r\n\x05\x04:\x02\0\x03\x12\x04\xbb\x0e23\nG\n\x04\x04:\x02\x01\x12\ + \x04\xbe\x0e\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\ + \x20all\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04:\x02\x01\x04\ + \x12\x06\xbe\x0e\x02\xbb\x0e4\n\r\n\x05\x04:\x02\x01\x06\x12\x04\xbe\x0e\ + \x02\x15\n\r\n\x05\x04:\x02\x01\x01\x12\x04\xbe\x0e\x16+\n\r\n\x05\x04:\ + \x02\x01\x03\x12\x04\xbe\x0e./\nl\n\x02\x04;\x12\x06\xc3\x0e\0\xc9\x0e\ + \x01\x1a^\x20A\x20wrapper\x20around\x20the\x20IAM\x20test\x20iam\x20perm\ + issions\x20request\x20to\x20support\x20our\n\x20common_request_params.\n\ + \n\x0b\n\x03\x04;\x01\x12\x04\xc3\x0e\x08!\n(\n\x04\x04;\x02\0\x12\x04\ + \xc5\x0e\x02:\x1a\x1a\x20The\x20request\x20sent\x20to\x20IAM.\n\n\x0f\n\ + \x05\x04;\x02\0\x04\x12\x06\xc5\x0e\x02\xc3\x0e#\n\r\n\x05\x04;\x02\0\ + \x06\x12\x04\xc5\x0e\x02)\n\r\n\x05\x04;\x02\0\x01\x12\x04\xc5\x0e*5\n\r\ + \n\x05\x04;\x02\0\x03\x12\x04\xc5\x0e89\nG\n\x04\x04;\x02\x01\x12\x04\ + \xc8\x0e\x020\x1a9\x20A\x20set\x20of\x20parameters\x20common\x20to\x20al\ + l\x20Storage\x20API\x20requests.\n\n\x0f\n\x05\x04;\x02\x01\x04\x12\x06\ + \xc8\x0e\x02\xc5\x0e:\n\r\n\x05\x04;\x02\x01\x06\x12\x04\xc8\x0e\x02\x15\ + \n\r\n\x05\x04;\x02\x01\x01\x12\x04\xc8\x0e\x16+\n\r\n\x05\x04;\x02\x01\ + \x03\x12\x04\xc8\x0e./\nD\n\x02\x04<\x12\x06\xcc\x0e\0\xd6\x0e\x01\x1a6\ + \x20Parameters\x20that\x20can\x20be\x20passed\x20to\x20any\x20object\x20\ + request.\n\n\x0b\n\x03\x04<\x01\x12\x04\xcc\x0e\x08!\nY\n\x04\x04<\x02\0\ + \x12\x04\xce\x0e\x02\"\x1aK\x20Encryption\x20algorithm\x20used\x20with\ + \x20Customer-Supplied\x20Encryption\x20Keys\x20feature.\n\n\x0f\n\x05\ + \x04<\x02\0\x04\x12\x06\xce\x0e\x02\xcc\x0e#\n\r\n\x05\x04<\x02\0\x05\ + \x12\x04\xce\x0e\x02\x08\n\r\n\x05\x04<\x02\0\x01\x12\x04\xce\x0e\t\x1d\ + \n\r\n\x05\x04<\x02\0\x03\x12\x04\xce\x0e\x20!\nS\n\x04\x04<\x02\x01\x12\ + \x04\xd1\x0e\x02\x1c\x1aE\x20Encryption\x20key\x20used\x20with\x20Custom\ + er-Supplied\x20Encryption\x20Keys\x20feature.\n\n\x0f\n\x05\x04<\x02\x01\ + \x04\x12\x06\xd1\x0e\x02\xce\x0e\"\n\r\n\x05\x04<\x02\x01\x05\x12\x04\ + \xd1\x0e\x02\x08\n\r\n\x05\x04<\x02\x01\x01\x12\x04\xd1\x0e\t\x17\n\r\n\ + \x05\x04<\x02\x01\x03\x12\x04\xd1\x0e\x1a\x1b\nc\n\x04\x04<\x02\x02\x12\ + \x04\xd5\x0e\x02#\x1aU\x20SHA256\x20hash\x20of\x20encryption\x20key\x20u\ + sed\x20with\x20Customer-Supplied\x20Encryption\x20Keys\n\x20feature.\n\n\ + \x0f\n\x05\x04<\x02\x02\x04\x12\x06\xd5\x0e\x02\xd1\x0e\x1c\n\r\n\x05\ + \x04<\x02\x02\x05\x12\x04\xd5\x0e\x02\x08\n\r\n\x05\x04<\x02\x02\x01\x12\ + \x04\xd5\x0e\t\x1e\n\r\n\x05\x04<\x02\x02\x03\x12\x04\xd5\x0e!\"\n=\n\ + \x02\x04=\x12\x06\xd9\x0e\0\xe7\x0e\x01\x1a/\x20Parameters\x20that\x20ca\ + n\x20be\x20passed\x20to\x20any\x20request.\n\n\x0b\n\x03\x04=\x01\x12\ + \x04\xd9\x0e\x08\x1b\nZ\n\x04\x04=\x02\0\x12\x04\xdb\x0e\x02C\x1aL\x20Re\ + quired.\x20Required\x20when\x20using\x20buckets\x20with\x20Requestor\x20\ + Pays\x20feature\x20enabled.\n\n\x0f\n\x05\x04=\x02\0\x04\x12\x06\xdb\x0e\ + \x02\xd9\x0e\x1d\n\r\n\x05\x04=\x02\0\x05\x12\x04\xdb\x0e\x02\x08\n\r\n\ + \x05\x04=\x02\0\x01\x12\x04\xdb\x0e\t\x15\n\r\n\x05\x04=\x02\0\x03\x12\ + \x04\xdb\x0e\x18\x19\n\r\n\x05\x04=\x02\0\x08\x12\x04\xdb\x0e\x1aB\n\x10\ + \n\x08\x04=\x02\0\x08\x9c\x08\0\x12\x04\xdb\x0e\x1bA\n\xff\x02\n\x04\x04\ + =\x02\x01\x12\x04\xe3\x0e\x02\x18\x1a\xf0\x02\x20Lets\x20you\x20enforce\ + \x20per-user\x20quotas\x20from\x20a\x20server-side\x20application\x20eve\ + n\x20in\n\x20cases\x20when\x20the\x20user's\x20IP\x20address\x20is\x20un\ + known.\x20This\x20can\x20occur,\x20for\x20example,\n\x20with\x20applicat\ + ions\x20that\x20run\x20cron\x20jobs\x20on\x20App\x20Engine\x20on\x20a\ + \x20user's\x20behalf.\n\x20You\x20can\x20choose\x20any\x20arbitrary\x20s\ + tring\x20that\x20uniquely\x20identifies\x20a\x20user,\x20but\x20it\n\x20\ + is\x20limited\x20to\x2040\x20characters.\n\x20Overrides\x20user_ip\x20if\ + \x20both\x20are\x20provided.\n\n\x0f\n\x05\x04=\x02\x01\x04\x12\x06\xe3\ + \x0e\x02\xdb\x0eC\n\r\n\x05\x04=\x02\x01\x05\x12\x04\xe3\x0e\x02\x08\n\r\ + \n\x05\x04=\x02\x01\x01\x12\x04\xe3\x0e\t\x13\n\r\n\x05\x04=\x02\x01\x03\ + \x12\x04\xe3\x0e\x16\x17\n<\n\x04\x04=\x02\x02\x12\x04\xe6\x0e\x02'\x1a.\ + \x20Subset\x20of\x20fields\x20to\x20include\x20in\x20the\x20response.\n\ + \n\x0f\n\x05\x04=\x02\x02\x04\x12\x06\xe6\x0e\x02\xe3\x0e\x18\n\r\n\x05\ + \x04=\x02\x02\x06\x12\x04\xe6\x0e\x02\x1b\n\r\n\x05\x04=\x02\x02\x01\x12\ + \x04\xe6\x0e\x1c\"\n\r\n\x05\x04=\x02\x02\x03\x12\x04\xe6\x0e%&\n!\n\x02\ + \x04>\x12\x06\xea\x0e\0\xbc\x0f\x01\x1a\x13\x20Shared\x20constants.\n\n\ + \x0b\n\x03\x04>\x01\x12\x04\xea\x0e\x08\x18\nP\n\x04\x04>\x04\0\x12\x06\ + \xec\x0e\x02\xb9\x0f\x03\x1a@\x20A\x20collection\x20of\x20constant\x20va\ + lues\x20meaningful\x20to\x20the\x20Storage\x20API.\n\n\r\n\x05\x04>\x04\ + \0\x01\x12\x04\xec\x0e\x07\r\n\r\n\x05\x04>\x04\0\x03\x12\x04\xed\x0e\ + \x04\x1e\n\x0e\n\x06\x04>\x04\0\x03\x02\x12\x04\xed\x0e\x04\x1e\n=\n\x06\ + \x04>\x04\0\x02\0\x12\x04\xf0\x0e\x04\x1b\x1a-\x20Unused.\x20Proto3\x20r\ + equires\x20first\x20enum\x20to\x20be\x200.\n\n\x0f\n\x07\x04>\x04\0\x02\ + \0\x01\x12\x04\xf0\x0e\x04\x16\n\x0f\n\x07\x04>\x04\0\x02\0\x02\x12\x04\ + \xf0\x0e\x19\x1a\nd\n\x06\x04>\x04\0\x02\x01\x12\x04\xf5\x0e\x04#\x1aT\ + \x20The\x20maximum\x20size\x20chunk\x20that\x20can\x20will\x20be\x20retu\ + rned\x20in\x20a\x20single\n\x20ReadRequest.\n\x202\x20MiB.\n\n\x0f\n\x07\ + \x04>\x04\0\x02\x01\x01\x12\x04\xf5\x0e\x04\x18\n\x0f\n\x07\x04>\x04\0\ + \x02\x01\x02\x12\x04\xf5\x0e\x1b\"\nb\n\x06\x04>\x04\0\x02\x02\x12\x04\ + \xf9\x0e\x04$\x1aR\x20The\x20maximum\x20size\x20chunk\x20that\x20can\x20\ + be\x20sent\x20in\x20a\x20single\x20InsertObjectRequest.\n\x202\x20MiB.\n\ + \n\x0f\n\x07\x04>\x04\0\x02\x02\x01\x12\x04\xf9\x0e\x04\x19\n\x0f\n\x07\ + \x04>\x04\0\x02\x02\x02\x12\x04\xf9\x0e\x1c#\n\x8c\x01\n\x06\x04>\x04\0\ + \x02\x03\x12\x04\xfe\x0e\x04!\x1a|\x20The\x20maximum\x20size\x20of\x20an\ + \x20object\x20in\x20MB\x20-\x20whether\x20written\x20in\x20a\x20single\ + \x20stream\n\x20or\x20composed\x20from\x20multiple\x20other\x20objects.\ + \n\x205\x20TiB.\n\n\x0f\n\x07\x04>\x04\0\x02\x03\x01\x12\x04\xfe\x0e\x04\ + \x16\n\x0f\n\x07\x04>\x04\0\x02\x03\x02\x12\x04\xfe\x0e\x19\x20\nl\n\x06\ + \x04>\x04\0\x02\x04\x12\x04\x83\x0f\x040\x1a\\\x20The\x20maximum\x20leng\ + th\x20field\x20name\x20that\x20can\x20be\x20sent\x20in\x20a\x20single\n\ + \x20custom\x20metadata\x20field.\n\x201\x20KiB.\n\n\x0f\n\x07\x04>\x04\0\ + \x02\x04\x01\x12\x04\x83\x0f\x04(\n\x0f\n\x07\x04>\x04\0\x02\x04\x02\x12\ + \x04\x83\x0f+/\nm\n\x06\x04>\x04\0\x02\x05\x12\x04\x88\x0f\x041\x1a]\x20\ + The\x20maximum\x20length\x20field\x20value\x20that\x20can\x20be\x20sent\ + \x20in\x20a\x20single\n\x20custom_metadata\x20field.\n\x204\x20KiB.\n\n\ + \x0f\n\x07\x04>\x04\0\x02\x05\x01\x12\x04\x88\x0f\x04)\n\x0f\n\x07\x04>\ + \x04\0\x02\x05\x02\x12\x04\x88\x0f,0\n\x8f\x01\n\x06\x04>\x04\0\x02\x06\ + \x12\x04\x8d\x0f\x040\x1a\x7f\x20The\x20maximum\x20total\x20bytes\x20tha\ + t\x20can\x20be\x20populated\x20into\x20all\x20field\x20names\x20and\n\ + \x20values\x20of\x20the\x20custom_metadata\x20for\x20one\x20object.\n\ + \x208\x20KiB.\n\n\x0f\n\x07\x04>\x04\0\x02\x06\x01\x12\x04\x8d\x0f\x04(\ + \n\x0f\n\x07\x04>\x04\0\x02\x06\x02\x12\x04\x8d\x0f+/\nj\n\x06\x04>\x04\ + \0\x02\x07\x12\x04\x92\x0f\x041\x1aZ\x20The\x20maximum\x20total\x20bytes\ + \x20that\x20can\x20be\x20populated\x20into\x20all\x20bucket\x20metadata\ + \n\x20fields.\n\x2020\x20KiB.\n\n\x0f\n\x07\x04>\x04\0\x02\x07\x01\x12\ + \x04\x92\x0f\x04(\n\x0f\n\x07\x04>\x04\0\x02\x07\x02\x12\x04\x92\x0f+0\n\ + n\n\x06\x04>\x04\0\x02\x08\x12\x04\x96\x0f\x04.\x1a^\x20The\x20maximum\ + \x20number\x20of\x20NotificationConfigurations\x20that\x20can\x20be\x20r\ + egistered\n\x20for\x20a\x20given\x20bucket.\n\n\x0f\n\x07\x04>\x04\0\x02\ + \x08\x01\x12\x04\x96\x0f\x04'\n\x0f\n\x07\x04>\x04\0\x02\x08\x02\x12\x04\ + \x96\x0f*-\nb\n\x06\x04>\x04\0\x02\t\x12\x04\x9a\x0f\x04)\x1aR\x20The\ + \x20maximum\x20number\x20of\x20LifecycleRules\x20that\x20can\x20be\x20re\ + gistered\x20for\x20a\x20given\n\x20bucket.\n\n\x0f\n\x07\x04>\x04\0\x02\ + \t\x01\x12\x04\x9a\x0f\x04\"\n\x0f\n\x07\x04>\x04\0\x02\t\x02\x12\x04\ + \x9a\x0f%(\nQ\n\x06\x04>\x04\0\x02\n\x12\x04\x9d\x0f\x04+\x1aA\x20The\ + \x20maximum\x20number\x20of\x20custom\x20attributes\x20per\x20Notificati\ + onConfig.\n\n\x0f\n\x07\x04>\x04\0\x02\n\x01\x12\x04\x9d\x0f\x04&\n\x0f\ + \n\x07\x04>\x04\0\x02\n\x02\x12\x04\x9d\x0f)*\n_\n\x06\x04>\x04\0\x02\ + \x0b\x12\x04\xa1\x0f\x047\x1aO\x20The\x20maximum\x20length\x20of\x20a\ + \x20custom\x20attribute\x20key\x20included\x20in\n\x20NotificationConfig\ + .\n\n\x0f\n\x07\x04>\x04\0\x02\x0b\x01\x12\x04\xa1\x0f\x040\n\x0f\n\x07\ + \x04>\x04\0\x02\x0b\x02\x12\x04\xa1\x0f36\nc\n\x06\x04>\x04\0\x02\x0c\ + \x12\x04\xa5\x0f\x04:\x1aS\x20The\x20maximum\x20length\x20of\x20a\x20cus\ + tom\x20attribute\x20value\x20included\x20in\x20a\n\x20NotificationConfig\ + .\n\n\x0f\n\x07\x04>\x04\0\x02\x0c\x01\x12\x04\xa5\x0f\x042\n\x0f\n\x07\ + \x04>\x04\0\x02\x0c\x02\x12\x04\xa5\x0f59\nK\n\x06\x04>\x04\0\x02\r\x12\ + \x04\xa8\x0f\x04\"\x1a;\x20The\x20maximum\x20number\x20of\x20key/value\ + \x20entries\x20per\x20bucket\x20label.\n\n\x0f\n\x07\x04>\x04\0\x02\r\ + \x01\x12\x04\xa8\x0f\x04\x1c\n\x0f\n\x07\x04>\x04\0\x02\r\x02\x12\x04\ + \xa8\x0f\x1f!\nZ\n\x06\x04>\x04\0\x02\x0e\x12\x04\xac\x0f\x04%\x1aJ\x20T\ + he\x20maximum\x20character\x20length\x20of\x20the\x20key\x20or\x20value\ + \x20in\x20a\x20bucket\n\x20label\x20map.\n\n\x0f\n\x07\x04>\x04\0\x02\ + \x0e\x01\x12\x04\xac\x0f\x04\x1f\n\x0f\n\x07\x04>\x04\0\x02\x0e\x02\x12\ + \x04\xac\x0f\"$\nS\n\x06\x04>\x04\0\x02\x0f\x12\x04\xb0\x0f\x04%\x1aC\ + \x20The\x20maximum\x20byte\x20size\x20of\x20the\x20key\x20or\x20value\ + \x20in\x20a\x20bucket\x20label\n\x20map.\n\n\x0f\n\x07\x04>\x04\0\x02\ + \x0f\x01\x12\x04\xb0\x0f\x04\x1e\n\x0f\n\x07\x04>\x04\0\x02\x0f\x02\x12\ + \x04\xb0\x0f!$\nc\n\x06\x04>\x04\0\x02\x10\x12\x04\xb4\x0f\x045\x1aS\x20\ + The\x20maximum\x20number\x20of\x20object\x20IDs\x20that\x20can\x20be\x20\ + included\x20in\x20a\n\x20DeleteObjectsRequest.\n\n\x0f\n\x07\x04>\x04\0\ + \x02\x10\x01\x12\x04\xb4\x0f\x04-\n\x0f\n\x07\x04>\x04\0\x02\x10\x02\x12\ + \x04\xb4\x0f04\nw\n\x06\x04>\x04\0\x02\x11\x12\x04\xb8\x0f\x04$\x1ag\x20\ + The\x20maximum\x20number\x20of\x20days\x20for\x20which\x20a\x20token\x20\ + returned\x20by\x20the\n\x20GetListObjectsSplitPoints\x20RPC\x20is\x20val\ + id.\n\n\x0f\n\x07\x04>\x04\0\x02\x11\x01\x12\x04\xb8\x0f\x04\x1e\n\x0f\n\ + \x07\x04>\x04\0\x02\x11\x02\x12\x04\xb8\x0f!#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/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_grpc.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_grpc.rs new file mode 100644 index 0000000000..eeed533d6d --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_grpc.rs @@ -0,0 +1,1593 @@ +// 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_STORAGE_DELETE_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/DeleteBucketAccessControl", + 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_STORAGE_GET_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetBucketAccessControl", + 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_STORAGE_INSERT_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/InsertBucketAccessControl", + 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_STORAGE_LIST_BUCKET_ACCESS_CONTROLS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ListBucketAccessControls", + 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_STORAGE_UPDATE_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/UpdateBucketAccessControl", + 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_STORAGE_PATCH_BUCKET_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/PatchBucketAccessControl", + 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_STORAGE_DELETE_BUCKET: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/DeleteBucket", + 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_STORAGE_GET_BUCKET: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetBucket", + 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_STORAGE_INSERT_BUCKET: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/InsertBucket", + 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_STORAGE_LIST_CHANNELS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ListChannels", + 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_STORAGE_LIST_BUCKETS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ListBuckets", + 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_STORAGE_LOCK_BUCKET_RETENTION_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/LockBucketRetentionPolicy", + 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_STORAGE_GET_BUCKET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetBucketIamPolicy", + 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_STORAGE_SET_BUCKET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/SetBucketIamPolicy", + 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_STORAGE_TEST_BUCKET_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/TestBucketIamPermissions", + 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_STORAGE_PATCH_BUCKET: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/PatchBucket", + 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_STORAGE_UPDATE_BUCKET: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/UpdateBucket", + 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_STORAGE_STOP_CHANNEL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/StopChannel", + 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_STORAGE_DELETE_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/DeleteDefaultObjectAccessControl", + 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_STORAGE_GET_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetDefaultObjectAccessControl", + 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_STORAGE_INSERT_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/InsertDefaultObjectAccessControl", + 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_STORAGE_LIST_DEFAULT_OBJECT_ACCESS_CONTROLS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ListDefaultObjectAccessControls", + 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_STORAGE_PATCH_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/PatchDefaultObjectAccessControl", + 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_STORAGE_UPDATE_DEFAULT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/UpdateDefaultObjectAccessControl", + 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_STORAGE_DELETE_NOTIFICATION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/DeleteNotification", + 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_STORAGE_GET_NOTIFICATION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetNotification", + 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_STORAGE_INSERT_NOTIFICATION: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/InsertNotification", + 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_STORAGE_LIST_NOTIFICATIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ListNotifications", + 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_STORAGE_DELETE_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/DeleteObjectAccessControl", + 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_STORAGE_GET_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetObjectAccessControl", + 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_STORAGE_INSERT_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/InsertObjectAccessControl", + 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_STORAGE_LIST_OBJECT_ACCESS_CONTROLS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ListObjectAccessControls", + 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_STORAGE_PATCH_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/PatchObjectAccessControl", + 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_STORAGE_UPDATE_OBJECT_ACCESS_CONTROL: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/UpdateObjectAccessControl", + 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_STORAGE_COMPOSE_OBJECT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ComposeObject", + 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_STORAGE_COPY_OBJECT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/CopyObject", + 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_STORAGE_DELETE_OBJECT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/DeleteObject", + 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_STORAGE_GET_OBJECT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetObject", + 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_STORAGE_GET_OBJECT_MEDIA: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::ServerStreaming, + name: "/google.storage.v1.Storage/GetObjectMedia", + 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_STORAGE_INSERT_OBJECT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::ClientStreaming, + name: "/google.storage.v1.Storage/InsertObject", + 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_STORAGE_LIST_OBJECTS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ListObjects", + 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_STORAGE_REWRITE_OBJECT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/RewriteObject", + 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_STORAGE_START_RESUMABLE_WRITE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/StartResumableWrite", + 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_STORAGE_QUERY_WRITE_STATUS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/QueryWriteStatus", + 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_STORAGE_PATCH_OBJECT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/PatchObject", + 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_STORAGE_UPDATE_OBJECT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/UpdateObject", + 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_STORAGE_GET_OBJECT_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetObjectIamPolicy", + 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_STORAGE_SET_OBJECT_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/SetObjectIamPolicy", + 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_STORAGE_TEST_OBJECT_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/TestObjectIamPermissions", + 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_STORAGE_WATCH_ALL_OBJECTS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/WatchAllObjects", + 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_STORAGE_GET_SERVICE_ACCOUNT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetServiceAccount", + 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_STORAGE_CREATE_HMAC_KEY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/CreateHmacKey", + 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_STORAGE_DELETE_HMAC_KEY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/DeleteHmacKey", + 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_STORAGE_GET_HMAC_KEY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/GetHmacKey", + 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_STORAGE_LIST_HMAC_KEYS: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/ListHmacKeys", + 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_STORAGE_UPDATE_HMAC_KEY: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.storage.v1.Storage/UpdateHmacKey", + 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 StorageClient { + client: ::grpcio::Client, +} + +impl StorageClient { + pub fn new(channel: ::grpcio::Channel) -> Self { + StorageClient { + client: ::grpcio::Client::new(channel), + } + } + + pub fn delete_bucket_access_control_opt(&self, req: &super::storage::DeleteBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_DELETE_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn delete_bucket_access_control(&self, req: &super::storage::DeleteBucketAccessControlRequest) -> ::grpcio::Result { + self.delete_bucket_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_bucket_access_control_async_opt(&self, req: &super::storage::DeleteBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_DELETE_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn delete_bucket_access_control_async(&self, req: &super::storage::DeleteBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_bucket_access_control_opt(&self, req: &super::storage::GetBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn get_bucket_access_control(&self, req: &super::storage::GetBucketAccessControlRequest) -> ::grpcio::Result { + self.get_bucket_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_bucket_access_control_async_opt(&self, req: &super::storage::GetBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn get_bucket_access_control_async(&self, req: &super::storage::GetBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_bucket_access_control_opt(&self, req: &super::storage::InsertBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_INSERT_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn insert_bucket_access_control(&self, req: &super::storage::InsertBucketAccessControlRequest) -> ::grpcio::Result { + self.insert_bucket_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_bucket_access_control_async_opt(&self, req: &super::storage::InsertBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_INSERT_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn insert_bucket_access_control_async(&self, req: &super::storage::InsertBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.insert_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_bucket_access_controls_opt(&self, req: &super::storage::ListBucketAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LIST_BUCKET_ACCESS_CONTROLS, req, opt) + } + + pub fn list_bucket_access_controls(&self, req: &super::storage::ListBucketAccessControlsRequest) -> ::grpcio::Result { + self.list_bucket_access_controls_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_bucket_access_controls_async_opt(&self, req: &super::storage::ListBucketAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LIST_BUCKET_ACCESS_CONTROLS, req, opt) + } + + pub fn list_bucket_access_controls_async(&self, req: &super::storage::ListBucketAccessControlsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_bucket_access_controls_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_bucket_access_control_opt(&self, req: &super::storage::UpdateBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_UPDATE_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn update_bucket_access_control(&self, req: &super::storage::UpdateBucketAccessControlRequest) -> ::grpcio::Result { + self.update_bucket_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_bucket_access_control_async_opt(&self, req: &super::storage::UpdateBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_UPDATE_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn update_bucket_access_control_async(&self, req: &super::storage::UpdateBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_bucket_access_control_opt(&self, req: &super::storage::PatchBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_PATCH_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn patch_bucket_access_control(&self, req: &super::storage::PatchBucketAccessControlRequest) -> ::grpcio::Result { + self.patch_bucket_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_bucket_access_control_async_opt(&self, req: &super::storage::PatchBucketAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_PATCH_BUCKET_ACCESS_CONTROL, req, opt) + } + + pub fn patch_bucket_access_control_async(&self, req: &super::storage::PatchBucketAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.patch_bucket_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_bucket_opt(&self, req: &super::storage::DeleteBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_DELETE_BUCKET, req, opt) + } + + pub fn delete_bucket(&self, req: &super::storage::DeleteBucketRequest) -> ::grpcio::Result { + self.delete_bucket_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_bucket_async_opt(&self, req: &super::storage::DeleteBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_DELETE_BUCKET, req, opt) + } + + pub fn delete_bucket_async(&self, req: &super::storage::DeleteBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_bucket_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_bucket_opt(&self, req: &super::storage::GetBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_BUCKET, req, opt) + } + + pub fn get_bucket(&self, req: &super::storage::GetBucketRequest) -> ::grpcio::Result { + self.get_bucket_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_bucket_async_opt(&self, req: &super::storage::GetBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_BUCKET, req, opt) + } + + pub fn get_bucket_async(&self, req: &super::storage::GetBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_bucket_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_bucket_opt(&self, req: &super::storage::InsertBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_INSERT_BUCKET, req, opt) + } + + pub fn insert_bucket(&self, req: &super::storage::InsertBucketRequest) -> ::grpcio::Result { + self.insert_bucket_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_bucket_async_opt(&self, req: &super::storage::InsertBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_INSERT_BUCKET, req, opt) + } + + pub fn insert_bucket_async(&self, req: &super::storage::InsertBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.insert_bucket_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_channels_opt(&self, req: &super::storage::ListChannelsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LIST_CHANNELS, req, opt) + } + + pub fn list_channels(&self, req: &super::storage::ListChannelsRequest) -> ::grpcio::Result { + self.list_channels_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_channels_async_opt(&self, req: &super::storage::ListChannelsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LIST_CHANNELS, req, opt) + } + + pub fn list_channels_async(&self, req: &super::storage::ListChannelsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_channels_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_buckets_opt(&self, req: &super::storage::ListBucketsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LIST_BUCKETS, req, opt) + } + + pub fn list_buckets(&self, req: &super::storage::ListBucketsRequest) -> ::grpcio::Result { + self.list_buckets_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_buckets_async_opt(&self, req: &super::storage::ListBucketsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LIST_BUCKETS, req, opt) + } + + pub fn list_buckets_async(&self, req: &super::storage::ListBucketsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_buckets_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn lock_bucket_retention_policy_opt(&self, req: &super::storage::LockRetentionPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LOCK_BUCKET_RETENTION_POLICY, req, opt) + } + + pub fn lock_bucket_retention_policy(&self, req: &super::storage::LockRetentionPolicyRequest) -> ::grpcio::Result { + self.lock_bucket_retention_policy_opt(req, ::grpcio::CallOption::default()) + } + + pub fn lock_bucket_retention_policy_async_opt(&self, req: &super::storage::LockRetentionPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LOCK_BUCKET_RETENTION_POLICY, req, opt) + } + + pub fn lock_bucket_retention_policy_async(&self, req: &super::storage::LockRetentionPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.lock_bucket_retention_policy_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_bucket_iam_policy_opt(&self, req: &super::storage::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_BUCKET_IAM_POLICY, req, opt) + } + + pub fn get_bucket_iam_policy(&self, req: &super::storage::GetIamPolicyRequest) -> ::grpcio::Result { + self.get_bucket_iam_policy_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_bucket_iam_policy_async_opt(&self, req: &super::storage::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_BUCKET_IAM_POLICY, req, opt) + } + + pub fn get_bucket_iam_policy_async(&self, req: &super::storage::GetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_bucket_iam_policy_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn set_bucket_iam_policy_opt(&self, req: &super::storage::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_SET_BUCKET_IAM_POLICY, req, opt) + } + + pub fn set_bucket_iam_policy(&self, req: &super::storage::SetIamPolicyRequest) -> ::grpcio::Result { + self.set_bucket_iam_policy_opt(req, ::grpcio::CallOption::default()) + } + + pub fn set_bucket_iam_policy_async_opt(&self, req: &super::storage::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_SET_BUCKET_IAM_POLICY, req, opt) + } + + pub fn set_bucket_iam_policy_async(&self, req: &super::storage::SetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.set_bucket_iam_policy_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn test_bucket_iam_permissions_opt(&self, req: &super::storage::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_TEST_BUCKET_IAM_PERMISSIONS, req, opt) + } + + pub fn test_bucket_iam_permissions(&self, req: &super::storage::TestIamPermissionsRequest) -> ::grpcio::Result { + self.test_bucket_iam_permissions_opt(req, ::grpcio::CallOption::default()) + } + + pub fn test_bucket_iam_permissions_async_opt(&self, req: &super::storage::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_TEST_BUCKET_IAM_PERMISSIONS, req, opt) + } + + pub fn test_bucket_iam_permissions_async(&self, req: &super::storage::TestIamPermissionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.test_bucket_iam_permissions_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_bucket_opt(&self, req: &super::storage::PatchBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_PATCH_BUCKET, req, opt) + } + + pub fn patch_bucket(&self, req: &super::storage::PatchBucketRequest) -> ::grpcio::Result { + self.patch_bucket_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_bucket_async_opt(&self, req: &super::storage::PatchBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_PATCH_BUCKET, req, opt) + } + + pub fn patch_bucket_async(&self, req: &super::storage::PatchBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.patch_bucket_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_bucket_opt(&self, req: &super::storage::UpdateBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_UPDATE_BUCKET, req, opt) + } + + pub fn update_bucket(&self, req: &super::storage::UpdateBucketRequest) -> ::grpcio::Result { + self.update_bucket_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_bucket_async_opt(&self, req: &super::storage::UpdateBucketRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_UPDATE_BUCKET, req, opt) + } + + pub fn update_bucket_async(&self, req: &super::storage::UpdateBucketRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_bucket_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn stop_channel_opt(&self, req: &super::storage::StopChannelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_STOP_CHANNEL, req, opt) + } + + pub fn stop_channel(&self, req: &super::storage::StopChannelRequest) -> ::grpcio::Result { + self.stop_channel_opt(req, ::grpcio::CallOption::default()) + } + + pub fn stop_channel_async_opt(&self, req: &super::storage::StopChannelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_STOP_CHANNEL, req, opt) + } + + pub fn stop_channel_async(&self, req: &super::storage::StopChannelRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.stop_channel_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_default_object_access_control_opt(&self, req: &super::storage::DeleteDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_DELETE_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn delete_default_object_access_control(&self, req: &super::storage::DeleteDefaultObjectAccessControlRequest) -> ::grpcio::Result { + self.delete_default_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_default_object_access_control_async_opt(&self, req: &super::storage::DeleteDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_DELETE_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn delete_default_object_access_control_async(&self, req: &super::storage::DeleteDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_default_object_access_control_opt(&self, req: &super::storage::GetDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn get_default_object_access_control(&self, req: &super::storage::GetDefaultObjectAccessControlRequest) -> ::grpcio::Result { + self.get_default_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_default_object_access_control_async_opt(&self, req: &super::storage::GetDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn get_default_object_access_control_async(&self, req: &super::storage::GetDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_default_object_access_control_opt(&self, req: &super::storage::InsertDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_INSERT_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn insert_default_object_access_control(&self, req: &super::storage::InsertDefaultObjectAccessControlRequest) -> ::grpcio::Result { + self.insert_default_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_default_object_access_control_async_opt(&self, req: &super::storage::InsertDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_INSERT_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn insert_default_object_access_control_async(&self, req: &super::storage::InsertDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.insert_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_default_object_access_controls_opt(&self, req: &super::storage::ListDefaultObjectAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LIST_DEFAULT_OBJECT_ACCESS_CONTROLS, req, opt) + } + + pub fn list_default_object_access_controls(&self, req: &super::storage::ListDefaultObjectAccessControlsRequest) -> ::grpcio::Result { + self.list_default_object_access_controls_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_default_object_access_controls_async_opt(&self, req: &super::storage::ListDefaultObjectAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LIST_DEFAULT_OBJECT_ACCESS_CONTROLS, req, opt) + } + + pub fn list_default_object_access_controls_async(&self, req: &super::storage::ListDefaultObjectAccessControlsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_default_object_access_controls_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_default_object_access_control_opt(&self, req: &super::storage::PatchDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_PATCH_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn patch_default_object_access_control(&self, req: &super::storage::PatchDefaultObjectAccessControlRequest) -> ::grpcio::Result { + self.patch_default_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_default_object_access_control_async_opt(&self, req: &super::storage::PatchDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_PATCH_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn patch_default_object_access_control_async(&self, req: &super::storage::PatchDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.patch_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_default_object_access_control_opt(&self, req: &super::storage::UpdateDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_UPDATE_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn update_default_object_access_control(&self, req: &super::storage::UpdateDefaultObjectAccessControlRequest) -> ::grpcio::Result { + self.update_default_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_default_object_access_control_async_opt(&self, req: &super::storage::UpdateDefaultObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_UPDATE_DEFAULT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn update_default_object_access_control_async(&self, req: &super::storage::UpdateDefaultObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_default_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_notification_opt(&self, req: &super::storage::DeleteNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_DELETE_NOTIFICATION, req, opt) + } + + pub fn delete_notification(&self, req: &super::storage::DeleteNotificationRequest) -> ::grpcio::Result { + self.delete_notification_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_notification_async_opt(&self, req: &super::storage::DeleteNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_DELETE_NOTIFICATION, req, opt) + } + + pub fn delete_notification_async(&self, req: &super::storage::DeleteNotificationRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_notification_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_notification_opt(&self, req: &super::storage::GetNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_NOTIFICATION, req, opt) + } + + pub fn get_notification(&self, req: &super::storage::GetNotificationRequest) -> ::grpcio::Result { + self.get_notification_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_notification_async_opt(&self, req: &super::storage::GetNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_NOTIFICATION, req, opt) + } + + pub fn get_notification_async(&self, req: &super::storage::GetNotificationRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_notification_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_notification_opt(&self, req: &super::storage::InsertNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_INSERT_NOTIFICATION, req, opt) + } + + pub fn insert_notification(&self, req: &super::storage::InsertNotificationRequest) -> ::grpcio::Result { + self.insert_notification_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_notification_async_opt(&self, req: &super::storage::InsertNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_INSERT_NOTIFICATION, req, opt) + } + + pub fn insert_notification_async(&self, req: &super::storage::InsertNotificationRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.insert_notification_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_notifications_opt(&self, req: &super::storage::ListNotificationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LIST_NOTIFICATIONS, req, opt) + } + + pub fn list_notifications(&self, req: &super::storage::ListNotificationsRequest) -> ::grpcio::Result { + self.list_notifications_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_notifications_async_opt(&self, req: &super::storage::ListNotificationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LIST_NOTIFICATIONS, req, opt) + } + + pub fn list_notifications_async(&self, req: &super::storage::ListNotificationsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_notifications_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_object_access_control_opt(&self, req: &super::storage::DeleteObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_DELETE_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn delete_object_access_control(&self, req: &super::storage::DeleteObjectAccessControlRequest) -> ::grpcio::Result { + self.delete_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_object_access_control_async_opt(&self, req: &super::storage::DeleteObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_DELETE_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn delete_object_access_control_async(&self, req: &super::storage::DeleteObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_object_access_control_opt(&self, req: &super::storage::GetObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn get_object_access_control(&self, req: &super::storage::GetObjectAccessControlRequest) -> ::grpcio::Result { + self.get_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_object_access_control_async_opt(&self, req: &super::storage::GetObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn get_object_access_control_async(&self, req: &super::storage::GetObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_object_access_control_opt(&self, req: &super::storage::InsertObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_INSERT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn insert_object_access_control(&self, req: &super::storage::InsertObjectAccessControlRequest) -> ::grpcio::Result { + self.insert_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_object_access_control_async_opt(&self, req: &super::storage::InsertObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_INSERT_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn insert_object_access_control_async(&self, req: &super::storage::InsertObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.insert_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_object_access_controls_opt(&self, req: &super::storage::ListObjectAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LIST_OBJECT_ACCESS_CONTROLS, req, opt) + } + + pub fn list_object_access_controls(&self, req: &super::storage::ListObjectAccessControlsRequest) -> ::grpcio::Result { + self.list_object_access_controls_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_object_access_controls_async_opt(&self, req: &super::storage::ListObjectAccessControlsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LIST_OBJECT_ACCESS_CONTROLS, req, opt) + } + + pub fn list_object_access_controls_async(&self, req: &super::storage::ListObjectAccessControlsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_object_access_controls_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_object_access_control_opt(&self, req: &super::storage::PatchObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_PATCH_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn patch_object_access_control(&self, req: &super::storage::PatchObjectAccessControlRequest) -> ::grpcio::Result { + self.patch_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_object_access_control_async_opt(&self, req: &super::storage::PatchObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_PATCH_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn patch_object_access_control_async(&self, req: &super::storage::PatchObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.patch_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_object_access_control_opt(&self, req: &super::storage::UpdateObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_UPDATE_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn update_object_access_control(&self, req: &super::storage::UpdateObjectAccessControlRequest) -> ::grpcio::Result { + self.update_object_access_control_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_object_access_control_async_opt(&self, req: &super::storage::UpdateObjectAccessControlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_UPDATE_OBJECT_ACCESS_CONTROL, req, opt) + } + + pub fn update_object_access_control_async(&self, req: &super::storage::UpdateObjectAccessControlRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_object_access_control_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn compose_object_opt(&self, req: &super::storage::ComposeObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_COMPOSE_OBJECT, req, opt) + } + + pub fn compose_object(&self, req: &super::storage::ComposeObjectRequest) -> ::grpcio::Result { + self.compose_object_opt(req, ::grpcio::CallOption::default()) + } + + pub fn compose_object_async_opt(&self, req: &super::storage::ComposeObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_COMPOSE_OBJECT, req, opt) + } + + pub fn compose_object_async(&self, req: &super::storage::ComposeObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.compose_object_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn copy_object_opt(&self, req: &super::storage::CopyObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_COPY_OBJECT, req, opt) + } + + pub fn copy_object(&self, req: &super::storage::CopyObjectRequest) -> ::grpcio::Result { + self.copy_object_opt(req, ::grpcio::CallOption::default()) + } + + pub fn copy_object_async_opt(&self, req: &super::storage::CopyObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_COPY_OBJECT, req, opt) + } + + pub fn copy_object_async(&self, req: &super::storage::CopyObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.copy_object_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_object_opt(&self, req: &super::storage::DeleteObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_DELETE_OBJECT, req, opt) + } + + pub fn delete_object(&self, req: &super::storage::DeleteObjectRequest) -> ::grpcio::Result { + self.delete_object_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_object_async_opt(&self, req: &super::storage::DeleteObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_DELETE_OBJECT, req, opt) + } + + pub fn delete_object_async(&self, req: &super::storage::DeleteObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_object_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_object_opt(&self, req: &super::storage::GetObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_OBJECT, req, opt) + } + + pub fn get_object(&self, req: &super::storage::GetObjectRequest) -> ::grpcio::Result { + self.get_object_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_object_async_opt(&self, req: &super::storage::GetObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_OBJECT, req, opt) + } + + pub fn get_object_async(&self, req: &super::storage::GetObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_object_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_object_media_opt(&self, req: &super::storage::GetObjectMediaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.client.server_streaming(&METHOD_STORAGE_GET_OBJECT_MEDIA, req, opt) + } + + pub fn get_object_media(&self, req: &super::storage::GetObjectMediaRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { + self.get_object_media_opt(req, ::grpcio::CallOption::default()) + } + + pub fn insert_object_opt(&self, opt: ::grpcio::CallOption) -> ::grpcio::Result<(::grpcio::ClientCStreamSender, ::grpcio::ClientCStreamReceiver)> { + self.client.client_streaming(&METHOD_STORAGE_INSERT_OBJECT, opt) + } + + pub fn insert_object(&self) -> ::grpcio::Result<(::grpcio::ClientCStreamSender, ::grpcio::ClientCStreamReceiver)> { + self.insert_object_opt(::grpcio::CallOption::default()) + } + + pub fn list_objects_opt(&self, req: &super::storage::ListObjectsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LIST_OBJECTS, req, opt) + } + + pub fn list_objects(&self, req: &super::storage::ListObjectsRequest) -> ::grpcio::Result { + self.list_objects_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_objects_async_opt(&self, req: &super::storage::ListObjectsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LIST_OBJECTS, req, opt) + } + + pub fn list_objects_async(&self, req: &super::storage::ListObjectsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_objects_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn rewrite_object_opt(&self, req: &super::storage::RewriteObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_REWRITE_OBJECT, req, opt) + } + + pub fn rewrite_object(&self, req: &super::storage::RewriteObjectRequest) -> ::grpcio::Result { + self.rewrite_object_opt(req, ::grpcio::CallOption::default()) + } + + pub fn rewrite_object_async_opt(&self, req: &super::storage::RewriteObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_REWRITE_OBJECT, req, opt) + } + + pub fn rewrite_object_async(&self, req: &super::storage::RewriteObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.rewrite_object_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn start_resumable_write_opt(&self, req: &super::storage::StartResumableWriteRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_START_RESUMABLE_WRITE, req, opt) + } + + pub fn start_resumable_write(&self, req: &super::storage::StartResumableWriteRequest) -> ::grpcio::Result { + self.start_resumable_write_opt(req, ::grpcio::CallOption::default()) + } + + pub fn start_resumable_write_async_opt(&self, req: &super::storage::StartResumableWriteRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_START_RESUMABLE_WRITE, req, opt) + } + + pub fn start_resumable_write_async(&self, req: &super::storage::StartResumableWriteRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.start_resumable_write_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn query_write_status_opt(&self, req: &super::storage::QueryWriteStatusRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_QUERY_WRITE_STATUS, req, opt) + } + + pub fn query_write_status(&self, req: &super::storage::QueryWriteStatusRequest) -> ::grpcio::Result { + self.query_write_status_opt(req, ::grpcio::CallOption::default()) + } + + pub fn query_write_status_async_opt(&self, req: &super::storage::QueryWriteStatusRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_QUERY_WRITE_STATUS, req, opt) + } + + pub fn query_write_status_async(&self, req: &super::storage::QueryWriteStatusRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.query_write_status_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_object_opt(&self, req: &super::storage::PatchObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_PATCH_OBJECT, req, opt) + } + + pub fn patch_object(&self, req: &super::storage::PatchObjectRequest) -> ::grpcio::Result { + self.patch_object_opt(req, ::grpcio::CallOption::default()) + } + + pub fn patch_object_async_opt(&self, req: &super::storage::PatchObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_PATCH_OBJECT, req, opt) + } + + pub fn patch_object_async(&self, req: &super::storage::PatchObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.patch_object_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_object_opt(&self, req: &super::storage::UpdateObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_UPDATE_OBJECT, req, opt) + } + + pub fn update_object(&self, req: &super::storage::UpdateObjectRequest) -> ::grpcio::Result { + self.update_object_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_object_async_opt(&self, req: &super::storage::UpdateObjectRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_UPDATE_OBJECT, req, opt) + } + + pub fn update_object_async(&self, req: &super::storage::UpdateObjectRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_object_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_object_iam_policy_opt(&self, req: &super::storage::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_OBJECT_IAM_POLICY, req, opt) + } + + pub fn get_object_iam_policy(&self, req: &super::storage::GetIamPolicyRequest) -> ::grpcio::Result { + self.get_object_iam_policy_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_object_iam_policy_async_opt(&self, req: &super::storage::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_OBJECT_IAM_POLICY, req, opt) + } + + pub fn get_object_iam_policy_async(&self, req: &super::storage::GetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_object_iam_policy_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn set_object_iam_policy_opt(&self, req: &super::storage::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_SET_OBJECT_IAM_POLICY, req, opt) + } + + pub fn set_object_iam_policy(&self, req: &super::storage::SetIamPolicyRequest) -> ::grpcio::Result { + self.set_object_iam_policy_opt(req, ::grpcio::CallOption::default()) + } + + pub fn set_object_iam_policy_async_opt(&self, req: &super::storage::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_SET_OBJECT_IAM_POLICY, req, opt) + } + + pub fn set_object_iam_policy_async(&self, req: &super::storage::SetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.set_object_iam_policy_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn test_object_iam_permissions_opt(&self, req: &super::storage::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_TEST_OBJECT_IAM_PERMISSIONS, req, opt) + } + + pub fn test_object_iam_permissions(&self, req: &super::storage::TestIamPermissionsRequest) -> ::grpcio::Result { + self.test_object_iam_permissions_opt(req, ::grpcio::CallOption::default()) + } + + pub fn test_object_iam_permissions_async_opt(&self, req: &super::storage::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_TEST_OBJECT_IAM_PERMISSIONS, req, opt) + } + + pub fn test_object_iam_permissions_async(&self, req: &super::storage::TestIamPermissionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.test_object_iam_permissions_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn watch_all_objects_opt(&self, req: &super::storage::WatchAllObjectsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_WATCH_ALL_OBJECTS, req, opt) + } + + pub fn watch_all_objects(&self, req: &super::storage::WatchAllObjectsRequest) -> ::grpcio::Result { + self.watch_all_objects_opt(req, ::grpcio::CallOption::default()) + } + + pub fn watch_all_objects_async_opt(&self, req: &super::storage::WatchAllObjectsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_WATCH_ALL_OBJECTS, req, opt) + } + + pub fn watch_all_objects_async(&self, req: &super::storage::WatchAllObjectsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.watch_all_objects_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_service_account_opt(&self, req: &super::storage::GetProjectServiceAccountRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_SERVICE_ACCOUNT, req, opt) + } + + pub fn get_service_account(&self, req: &super::storage::GetProjectServiceAccountRequest) -> ::grpcio::Result { + self.get_service_account_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_service_account_async_opt(&self, req: &super::storage::GetProjectServiceAccountRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_SERVICE_ACCOUNT, req, opt) + } + + pub fn get_service_account_async(&self, req: &super::storage::GetProjectServiceAccountRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_service_account_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_hmac_key_opt(&self, req: &super::storage::CreateHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_CREATE_HMAC_KEY, req, opt) + } + + pub fn create_hmac_key(&self, req: &super::storage::CreateHmacKeyRequest) -> ::grpcio::Result { + self.create_hmac_key_opt(req, ::grpcio::CallOption::default()) + } + + pub fn create_hmac_key_async_opt(&self, req: &super::storage::CreateHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_CREATE_HMAC_KEY, req, opt) + } + + pub fn create_hmac_key_async(&self, req: &super::storage::CreateHmacKeyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.create_hmac_key_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_hmac_key_opt(&self, req: &super::storage::DeleteHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_DELETE_HMAC_KEY, req, opt) + } + + pub fn delete_hmac_key(&self, req: &super::storage::DeleteHmacKeyRequest) -> ::grpcio::Result { + self.delete_hmac_key_opt(req, ::grpcio::CallOption::default()) + } + + pub fn delete_hmac_key_async_opt(&self, req: &super::storage::DeleteHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_DELETE_HMAC_KEY, req, opt) + } + + pub fn delete_hmac_key_async(&self, req: &super::storage::DeleteHmacKeyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.delete_hmac_key_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_hmac_key_opt(&self, req: &super::storage::GetHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_GET_HMAC_KEY, req, opt) + } + + pub fn get_hmac_key(&self, req: &super::storage::GetHmacKeyRequest) -> ::grpcio::Result { + self.get_hmac_key_opt(req, ::grpcio::CallOption::default()) + } + + pub fn get_hmac_key_async_opt(&self, req: &super::storage::GetHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_GET_HMAC_KEY, req, opt) + } + + pub fn get_hmac_key_async(&self, req: &super::storage::GetHmacKeyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.get_hmac_key_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_hmac_keys_opt(&self, req: &super::storage::ListHmacKeysRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_LIST_HMAC_KEYS, req, opt) + } + + pub fn list_hmac_keys(&self, req: &super::storage::ListHmacKeysRequest) -> ::grpcio::Result { + self.list_hmac_keys_opt(req, ::grpcio::CallOption::default()) + } + + pub fn list_hmac_keys_async_opt(&self, req: &super::storage::ListHmacKeysRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_LIST_HMAC_KEYS, req, opt) + } + + pub fn list_hmac_keys_async(&self, req: &super::storage::ListHmacKeysRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.list_hmac_keys_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_hmac_key_opt(&self, req: &super::storage::UpdateHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_STORAGE_UPDATE_HMAC_KEY, req, opt) + } + + pub fn update_hmac_key(&self, req: &super::storage::UpdateHmacKeyRequest) -> ::grpcio::Result { + self.update_hmac_key_opt(req, ::grpcio::CallOption::default()) + } + + pub fn update_hmac_key_async_opt(&self, req: &super::storage::UpdateHmacKeyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_STORAGE_UPDATE_HMAC_KEY, req, opt) + } + + pub fn update_hmac_key_async(&self, req: &super::storage::UpdateHmacKeyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.update_hmac_key_async_opt(req, ::grpcio::CallOption::default()) + } + pub fn spawn(&self, f: F) where F: ::futures::Future + Send + 'static { + self.client.spawn(f) + } +} + +pub trait Storage { + fn delete_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteBucketAccessControlRequest, sink: ::grpcio::UnarySink); + fn get_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetBucketAccessControlRequest, sink: ::grpcio::UnarySink); + fn insert_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertBucketAccessControlRequest, sink: ::grpcio::UnarySink); + fn list_bucket_access_controls(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListBucketAccessControlsRequest, sink: ::grpcio::UnarySink); + fn update_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateBucketAccessControlRequest, sink: ::grpcio::UnarySink); + fn patch_bucket_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchBucketAccessControlRequest, sink: ::grpcio::UnarySink); + fn delete_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteBucketRequest, sink: ::grpcio::UnarySink); + fn get_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetBucketRequest, sink: ::grpcio::UnarySink); + fn insert_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertBucketRequest, sink: ::grpcio::UnarySink); + fn list_channels(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListChannelsRequest, sink: ::grpcio::UnarySink); + fn list_buckets(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListBucketsRequest, sink: ::grpcio::UnarySink); + fn lock_bucket_retention_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::LockRetentionPolicyRequest, sink: ::grpcio::UnarySink); + fn get_bucket_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn set_bucket_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::SetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn test_bucket_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); + fn patch_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchBucketRequest, sink: ::grpcio::UnarySink); + fn update_bucket(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateBucketRequest, sink: ::grpcio::UnarySink); + fn stop_channel(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::StopChannelRequest, sink: ::grpcio::UnarySink); + fn delete_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn get_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn insert_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn list_default_object_access_controls(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListDefaultObjectAccessControlsRequest, sink: ::grpcio::UnarySink); + fn patch_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn update_default_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateDefaultObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn delete_notification(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteNotificationRequest, sink: ::grpcio::UnarySink); + fn get_notification(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetNotificationRequest, sink: ::grpcio::UnarySink); + fn insert_notification(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertNotificationRequest, sink: ::grpcio::UnarySink); + fn list_notifications(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListNotificationsRequest, sink: ::grpcio::UnarySink); + fn delete_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn get_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn insert_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::InsertObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn list_object_access_controls(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListObjectAccessControlsRequest, sink: ::grpcio::UnarySink); + fn patch_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn update_object_access_control(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateObjectAccessControlRequest, sink: ::grpcio::UnarySink); + fn compose_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ComposeObjectRequest, sink: ::grpcio::UnarySink); + fn copy_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::CopyObjectRequest, sink: ::grpcio::UnarySink); + fn delete_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteObjectRequest, sink: ::grpcio::UnarySink); + fn get_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetObjectRequest, sink: ::grpcio::UnarySink); + fn get_object_media(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetObjectMediaRequest, sink: ::grpcio::ServerStreamingSink); + fn insert_object(&mut self, ctx: ::grpcio::RpcContext, stream: ::grpcio::RequestStream, sink: ::grpcio::ClientStreamingSink); + fn list_objects(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListObjectsRequest, sink: ::grpcio::UnarySink); + fn rewrite_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::RewriteObjectRequest, sink: ::grpcio::UnarySink); + fn start_resumable_write(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::StartResumableWriteRequest, sink: ::grpcio::UnarySink); + fn query_write_status(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::QueryWriteStatusRequest, sink: ::grpcio::UnarySink); + fn patch_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::PatchObjectRequest, sink: ::grpcio::UnarySink); + fn update_object(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateObjectRequest, sink: ::grpcio::UnarySink); + fn get_object_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn set_object_iam_policy(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::SetIamPolicyRequest, sink: ::grpcio::UnarySink); + fn test_object_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::TestIamPermissionsRequest, sink: ::grpcio::UnarySink); + fn watch_all_objects(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::WatchAllObjectsRequest, sink: ::grpcio::UnarySink); + fn get_service_account(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetProjectServiceAccountRequest, sink: ::grpcio::UnarySink); + fn create_hmac_key(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::CreateHmacKeyRequest, sink: ::grpcio::UnarySink); + fn delete_hmac_key(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::DeleteHmacKeyRequest, sink: ::grpcio::UnarySink); + fn get_hmac_key(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::GetHmacKeyRequest, sink: ::grpcio::UnarySink); + fn list_hmac_keys(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::ListHmacKeysRequest, sink: ::grpcio::UnarySink); + fn update_hmac_key(&mut self, ctx: ::grpcio::RpcContext, req: super::storage::UpdateHmacKeyRequest, sink: ::grpcio::UnarySink); +} + +pub fn create_storage(s: S) -> ::grpcio::Service { + let mut builder = ::grpcio::ServiceBuilder::new(); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { + instance.delete_bucket_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { + instance.get_bucket_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { + instance.insert_bucket_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_BUCKET_ACCESS_CONTROLS, move |ctx, req, resp| { + instance.list_bucket_access_controls(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { + instance.update_bucket_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_BUCKET_ACCESS_CONTROL, move |ctx, req, resp| { + instance.patch_bucket_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_BUCKET, move |ctx, req, resp| { + instance.delete_bucket(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_BUCKET, move |ctx, req, resp| { + instance.get_bucket(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_BUCKET, move |ctx, req, resp| { + instance.insert_bucket(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_CHANNELS, move |ctx, req, resp| { + instance.list_channels(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_BUCKETS, move |ctx, req, resp| { + instance.list_buckets(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LOCK_BUCKET_RETENTION_POLICY, move |ctx, req, resp| { + instance.lock_bucket_retention_policy(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_BUCKET_IAM_POLICY, move |ctx, req, resp| { + instance.get_bucket_iam_policy(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_SET_BUCKET_IAM_POLICY, move |ctx, req, resp| { + instance.set_bucket_iam_policy(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_TEST_BUCKET_IAM_PERMISSIONS, move |ctx, req, resp| { + instance.test_bucket_iam_permissions(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_BUCKET, move |ctx, req, resp| { + instance.patch_bucket(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_BUCKET, move |ctx, req, resp| { + instance.update_bucket(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_STOP_CHANNEL, move |ctx, req, resp| { + instance.stop_channel(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.delete_default_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.get_default_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.insert_default_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_DEFAULT_OBJECT_ACCESS_CONTROLS, move |ctx, req, resp| { + instance.list_default_object_access_controls(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.patch_default_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_DEFAULT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.update_default_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_NOTIFICATION, move |ctx, req, resp| { + instance.delete_notification(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_NOTIFICATION, move |ctx, req, resp| { + instance.get_notification(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_NOTIFICATION, move |ctx, req, resp| { + instance.insert_notification(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_NOTIFICATIONS, move |ctx, req, resp| { + instance.list_notifications(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.delete_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.get_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_INSERT_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.insert_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_OBJECT_ACCESS_CONTROLS, move |ctx, req, resp| { + instance.list_object_access_controls(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.patch_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_OBJECT_ACCESS_CONTROL, move |ctx, req, resp| { + instance.update_object_access_control(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_COMPOSE_OBJECT, move |ctx, req, resp| { + instance.compose_object(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_COPY_OBJECT, move |ctx, req, resp| { + instance.copy_object(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_OBJECT, move |ctx, req, resp| { + instance.delete_object(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_OBJECT, move |ctx, req, resp| { + instance.get_object(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_server_streaming_handler(&METHOD_STORAGE_GET_OBJECT_MEDIA, move |ctx, req, resp| { + instance.get_object_media(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_client_streaming_handler(&METHOD_STORAGE_INSERT_OBJECT, move |ctx, req, resp| { + instance.insert_object(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_OBJECTS, move |ctx, req, resp| { + instance.list_objects(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_REWRITE_OBJECT, move |ctx, req, resp| { + instance.rewrite_object(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_START_RESUMABLE_WRITE, move |ctx, req, resp| { + instance.start_resumable_write(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_QUERY_WRITE_STATUS, move |ctx, req, resp| { + instance.query_write_status(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_PATCH_OBJECT, move |ctx, req, resp| { + instance.patch_object(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_OBJECT, move |ctx, req, resp| { + instance.update_object(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_OBJECT_IAM_POLICY, move |ctx, req, resp| { + instance.get_object_iam_policy(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_SET_OBJECT_IAM_POLICY, move |ctx, req, resp| { + instance.set_object_iam_policy(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_TEST_OBJECT_IAM_PERMISSIONS, move |ctx, req, resp| { + instance.test_object_iam_permissions(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_WATCH_ALL_OBJECTS, move |ctx, req, resp| { + instance.watch_all_objects(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_SERVICE_ACCOUNT, move |ctx, req, resp| { + instance.get_service_account(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_CREATE_HMAC_KEY, move |ctx, req, resp| { + instance.create_hmac_key(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_DELETE_HMAC_KEY, move |ctx, req, resp| { + instance.delete_hmac_key(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_GET_HMAC_KEY, move |ctx, req, resp| { + instance.get_hmac_key(ctx, req, resp) + }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_STORAGE_LIST_HMAC_KEYS, move |ctx, req, resp| { + instance.list_hmac_keys(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_STORAGE_UPDATE_HMAC_KEY, move |ctx, req, resp| { + instance.update_hmac_key(ctx, req, resp) + }); + builder.build() +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_resources.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_resources.rs new file mode 100644 index 0000000000..84a9aa9cb8 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/storage/v1/storage_resources.rs @@ -0,0 +1,12530 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/storage/v1/storage_resources.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket { + // message fields + pub acl: ::protobuf::RepeatedField, + pub default_object_acl: ::protobuf::RepeatedField, + pub lifecycle: ::protobuf::SingularPtrField, + pub time_created: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub id: ::std::string::String, + pub name: ::std::string::String, + pub project_number: i64, + pub metageneration: i64, + pub cors: ::protobuf::RepeatedField, + pub location: ::std::string::String, + pub storage_class: ::std::string::String, + pub etag: ::std::string::String, + pub updated: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub default_event_based_hold: bool, + pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + pub website: ::protobuf::SingularPtrField, + pub versioning: ::protobuf::SingularPtrField, + pub logging: ::protobuf::SingularPtrField, + pub owner: ::protobuf::SingularPtrField, + pub encryption: ::protobuf::SingularPtrField, + pub billing: ::protobuf::SingularPtrField, + pub retention_policy: ::protobuf::SingularPtrField, + pub location_type: ::std::string::String, + pub iam_configuration: ::protobuf::SingularPtrField, + pub zone_affinity: ::protobuf::RepeatedField<::std::string::String>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket { + fn default() -> &'a Bucket { + ::default_instance() + } +} + +impl Bucket { + pub fn new() -> Bucket { + ::std::default::Default::default() + } + + // repeated .google.storage.v1.BucketAccessControl acl = 1; + + + pub fn get_acl(&self) -> &[BucketAccessControl] { + &self.acl + } + pub fn clear_acl(&mut self) { + self.acl.clear(); + } + + // Param is passed by value, moved + pub fn set_acl(&mut self, v: ::protobuf::RepeatedField) { + self.acl = v; + } + + // Mutable pointer to the field. + pub fn mut_acl(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.acl + } + + // Take field + pub fn take_acl(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.acl, ::protobuf::RepeatedField::new()) + } + + // repeated .google.storage.v1.ObjectAccessControl default_object_acl = 2; + + + pub fn get_default_object_acl(&self) -> &[ObjectAccessControl] { + &self.default_object_acl + } + pub fn clear_default_object_acl(&mut self) { + self.default_object_acl.clear(); + } + + // Param is passed by value, moved + pub fn set_default_object_acl(&mut self, v: ::protobuf::RepeatedField) { + self.default_object_acl = v; + } + + // Mutable pointer to the field. + pub fn mut_default_object_acl(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.default_object_acl + } + + // Take field + pub fn take_default_object_acl(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.default_object_acl, ::protobuf::RepeatedField::new()) + } + + // .google.storage.v1.Bucket.Lifecycle lifecycle = 3; + + + pub fn get_lifecycle(&self) -> &Bucket_Lifecycle { + self.lifecycle.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_lifecycle(&mut self) { + self.lifecycle.clear(); + } + + pub fn has_lifecycle(&self) -> bool { + self.lifecycle.is_some() + } + + // Param is passed by value, moved + pub fn set_lifecycle(&mut self, v: Bucket_Lifecycle) { + self.lifecycle = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_lifecycle(&mut self) -> &mut Bucket_Lifecycle { + if self.lifecycle.is_none() { + self.lifecycle.set_default(); + } + self.lifecycle.as_mut().unwrap() + } + + // Take field + pub fn take_lifecycle(&mut self) -> Bucket_Lifecycle { + self.lifecycle.take().unwrap_or_else(|| Bucket_Lifecycle::new()) + } + + // .google.protobuf.Timestamp time_created = 4; + + + pub fn get_time_created(&self) -> &::protobuf::well_known_types::Timestamp { + self.time_created.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_time_created(&mut self) { + self.time_created.clear(); + } + + pub fn has_time_created(&self) -> bool { + self.time_created.is_some() + } + + // Param is passed by value, moved + pub fn set_time_created(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.time_created = ::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_created(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.time_created.is_none() { + self.time_created.set_default(); + } + self.time_created.as_mut().unwrap() + } + + // Take field + pub fn take_time_created(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.time_created.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // 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()) + } + + // 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()) + } + + // int64 project_number = 7; + + + 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; + } + + // int64 metageneration = 8; + + + pub fn get_metageneration(&self) -> i64 { + self.metageneration + } + pub fn clear_metageneration(&mut self) { + self.metageneration = 0; + } + + // Param is passed by value, moved + pub fn set_metageneration(&mut self, v: i64) { + self.metageneration = v; + } + + // repeated .google.storage.v1.Bucket.Cors cors = 9; + + + pub fn get_cors(&self) -> &[Bucket_Cors] { + &self.cors + } + pub fn clear_cors(&mut self) { + self.cors.clear(); + } + + // Param is passed by value, moved + pub fn set_cors(&mut self, v: ::protobuf::RepeatedField) { + self.cors = v; + } + + // Mutable pointer to the field. + pub fn mut_cors(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.cors + } + + // Take field + pub fn take_cors(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.cors, ::protobuf::RepeatedField::new()) + } + + // string location = 10; + + + 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()) + } + + // string storage_class = 11; + + + pub fn get_storage_class(&self) -> &str { + &self.storage_class + } + pub fn clear_storage_class(&mut self) { + self.storage_class.clear(); + } + + // Param is passed by value, moved + pub fn set_storage_class(&mut self, v: ::std::string::String) { + self.storage_class = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_storage_class(&mut self) -> &mut ::std::string::String { + &mut self.storage_class + } + + // Take field + pub fn take_storage_class(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.storage_class, ::std::string::String::new()) + } + + // string etag = 12; + + + 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 updated = 13; + + + pub fn get_updated(&self) -> &::protobuf::well_known_types::Timestamp { + self.updated.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_updated(&mut self) { + self.updated.clear(); + } + + pub fn has_updated(&self) -> bool { + self.updated.is_some() + } + + // Param is passed by value, moved + pub fn set_updated(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.updated = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_updated(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.updated.is_none() { + self.updated.set_default(); + } + self.updated.as_mut().unwrap() + } + + // Take field + pub fn take_updated(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.updated.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // bool default_event_based_hold = 14; + + + pub fn get_default_event_based_hold(&self) -> bool { + self.default_event_based_hold + } + pub fn clear_default_event_based_hold(&mut self) { + self.default_event_based_hold = false; + } + + // Param is passed by value, moved + pub fn set_default_event_based_hold(&mut self, v: bool) { + self.default_event_based_hold = v; + } + + // repeated .google.storage.v1.Bucket.LabelsEntry labels = 15; + + + 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.storage.v1.Bucket.Website website = 16; + + + pub fn get_website(&self) -> &Bucket_Website { + self.website.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_website(&mut self) { + self.website.clear(); + } + + pub fn has_website(&self) -> bool { + self.website.is_some() + } + + // Param is passed by value, moved + pub fn set_website(&mut self, v: Bucket_Website) { + self.website = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_website(&mut self) -> &mut Bucket_Website { + if self.website.is_none() { + self.website.set_default(); + } + self.website.as_mut().unwrap() + } + + // Take field + pub fn take_website(&mut self) -> Bucket_Website { + self.website.take().unwrap_or_else(|| Bucket_Website::new()) + } + + // .google.storage.v1.Bucket.Versioning versioning = 17; + + + pub fn get_versioning(&self) -> &Bucket_Versioning { + self.versioning.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_versioning(&mut self) { + self.versioning.clear(); + } + + pub fn has_versioning(&self) -> bool { + self.versioning.is_some() + } + + // Param is passed by value, moved + pub fn set_versioning(&mut self, v: Bucket_Versioning) { + self.versioning = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_versioning(&mut self) -> &mut Bucket_Versioning { + if self.versioning.is_none() { + self.versioning.set_default(); + } + self.versioning.as_mut().unwrap() + } + + // Take field + pub fn take_versioning(&mut self) -> Bucket_Versioning { + self.versioning.take().unwrap_or_else(|| Bucket_Versioning::new()) + } + + // .google.storage.v1.Bucket.Logging logging = 18; + + + pub fn get_logging(&self) -> &Bucket_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: Bucket_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 Bucket_Logging { + if self.logging.is_none() { + self.logging.set_default(); + } + self.logging.as_mut().unwrap() + } + + // Take field + pub fn take_logging(&mut self) -> Bucket_Logging { + self.logging.take().unwrap_or_else(|| Bucket_Logging::new()) + } + + // .google.storage.v1.Owner owner = 19; + + + pub fn get_owner(&self) -> &Owner { + self.owner.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_owner(&mut self) { + self.owner.clear(); + } + + pub fn has_owner(&self) -> bool { + self.owner.is_some() + } + + // Param is passed by value, moved + pub fn set_owner(&mut self, v: Owner) { + self.owner = ::protobuf::SingularPtrField::some(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 Owner { + if self.owner.is_none() { + self.owner.set_default(); + } + self.owner.as_mut().unwrap() + } + + // Take field + pub fn take_owner(&mut self) -> Owner { + self.owner.take().unwrap_or_else(|| Owner::new()) + } + + // .google.storage.v1.Bucket.Encryption encryption = 20; + + + pub fn get_encryption(&self) -> &Bucket_Encryption { + self.encryption.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_encryption(&mut self) { + self.encryption.clear(); + } + + pub fn has_encryption(&self) -> bool { + self.encryption.is_some() + } + + // Param is passed by value, moved + pub fn set_encryption(&mut self, v: Bucket_Encryption) { + self.encryption = ::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(&mut self) -> &mut Bucket_Encryption { + if self.encryption.is_none() { + self.encryption.set_default(); + } + self.encryption.as_mut().unwrap() + } + + // Take field + pub fn take_encryption(&mut self) -> Bucket_Encryption { + self.encryption.take().unwrap_or_else(|| Bucket_Encryption::new()) + } + + // .google.storage.v1.Bucket.Billing billing = 21; + + + pub fn get_billing(&self) -> &Bucket_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: Bucket_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 Bucket_Billing { + if self.billing.is_none() { + self.billing.set_default(); + } + self.billing.as_mut().unwrap() + } + + // Take field + pub fn take_billing(&mut self) -> Bucket_Billing { + self.billing.take().unwrap_or_else(|| Bucket_Billing::new()) + } + + // .google.storage.v1.Bucket.RetentionPolicy retention_policy = 22; + + + pub fn get_retention_policy(&self) -> &Bucket_RetentionPolicy { + self.retention_policy.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_retention_policy(&mut self) { + self.retention_policy.clear(); + } + + pub fn has_retention_policy(&self) -> bool { + self.retention_policy.is_some() + } + + // Param is passed by value, moved + pub fn set_retention_policy(&mut self, v: Bucket_RetentionPolicy) { + self.retention_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_retention_policy(&mut self) -> &mut Bucket_RetentionPolicy { + if self.retention_policy.is_none() { + self.retention_policy.set_default(); + } + self.retention_policy.as_mut().unwrap() + } + + // Take field + pub fn take_retention_policy(&mut self) -> Bucket_RetentionPolicy { + self.retention_policy.take().unwrap_or_else(|| Bucket_RetentionPolicy::new()) + } + + // string location_type = 23; + + + pub fn get_location_type(&self) -> &str { + &self.location_type + } + pub fn clear_location_type(&mut self) { + self.location_type.clear(); + } + + // Param is passed by value, moved + pub fn set_location_type(&mut self, v: ::std::string::String) { + self.location_type = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_location_type(&mut self) -> &mut ::std::string::String { + &mut self.location_type + } + + // Take field + pub fn take_location_type(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.location_type, ::std::string::String::new()) + } + + // .google.storage.v1.Bucket.IamConfiguration iam_configuration = 24; + + + pub fn get_iam_configuration(&self) -> &Bucket_IamConfiguration { + self.iam_configuration.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_iam_configuration(&mut self) { + self.iam_configuration.clear(); + } + + pub fn has_iam_configuration(&self) -> bool { + self.iam_configuration.is_some() + } + + // Param is passed by value, moved + pub fn set_iam_configuration(&mut self, v: Bucket_IamConfiguration) { + self.iam_configuration = ::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_configuration(&mut self) -> &mut Bucket_IamConfiguration { + if self.iam_configuration.is_none() { + self.iam_configuration.set_default(); + } + self.iam_configuration.as_mut().unwrap() + } + + // Take field + pub fn take_iam_configuration(&mut self) -> Bucket_IamConfiguration { + self.iam_configuration.take().unwrap_or_else(|| Bucket_IamConfiguration::new()) + } + + // repeated string zone_affinity = 25; + + + pub fn get_zone_affinity(&self) -> &[::std::string::String] { + &self.zone_affinity + } + pub fn clear_zone_affinity(&mut self) { + self.zone_affinity.clear(); + } + + // Param is passed by value, moved + pub fn set_zone_affinity(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.zone_affinity = v; + } + + // Mutable pointer to the field. + pub fn mut_zone_affinity(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.zone_affinity + } + + // Take field + pub fn take_zone_affinity(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.zone_affinity, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for Bucket { + fn is_initialized(&self) -> bool { + for v in &self.acl { + if !v.is_initialized() { + return false; + } + }; + for v in &self.default_object_acl { + if !v.is_initialized() { + return false; + } + }; + for v in &self.lifecycle { + if !v.is_initialized() { + return false; + } + }; + for v in &self.time_created { + if !v.is_initialized() { + return false; + } + }; + for v in &self.cors { + if !v.is_initialized() { + return false; + } + }; + for v in &self.updated { + if !v.is_initialized() { + return false; + } + }; + for v in &self.website { + if !v.is_initialized() { + return false; + } + }; + for v in &self.versioning { + if !v.is_initialized() { + return false; + } + }; + for v in &self.logging { + if !v.is_initialized() { + return false; + } + }; + for v in &self.owner { + if !v.is_initialized() { + return false; + } + }; + for v in &self.encryption { + if !v.is_initialized() { + return false; + } + }; + for v in &self.billing { + if !v.is_initialized() { + return false; + } + }; + for v in &self.retention_policy { + if !v.is_initialized() { + return false; + } + }; + for v in &self.iam_configuration { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &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.acl)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.default_object_acl)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.lifecycle)?; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_created)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + }, + 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.project_number = 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.metageneration = tmp; + }, + 9 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cors)?; + }, + 10 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location)?; + }, + 11 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.storage_class)?; + }, + 12 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; + }, + 13 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.updated)?; + }, + 14 => { + 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_event_based_hold = tmp; + }, + 15 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + }, + 16 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.website)?; + }, + 17 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.versioning)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.logging)?; + }, + 19 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.owner)?; + }, + 20 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption)?; + }, + 21 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.billing)?; + }, + 22 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.retention_policy)?; + }, + 23 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location_type)?; + }, + 24 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.iam_configuration)?; + }, + 25 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.zone_affinity)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_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.acl { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + for value in &self.default_object_acl { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if let Some(ref v) = self.lifecycle.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_created.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.id.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.id); + } + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.name); + } + if self.project_number != 0 { + my_size += ::protobuf::rt::value_size(7, self.project_number, ::protobuf::wire_format::WireTypeVarint); + } + if self.metageneration != 0 { + my_size += ::protobuf::rt::value_size(8, self.metageneration, ::protobuf::wire_format::WireTypeVarint); + } + for value in &self.cors { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if !self.location.is_empty() { + my_size += ::protobuf::rt::string_size(10, &self.location); + } + if !self.storage_class.is_empty() { + my_size += ::protobuf::rt::string_size(11, &self.storage_class); + } + if !self.etag.is_empty() { + my_size += ::protobuf::rt::string_size(12, &self.etag); + } + if let Some(ref v) = self.updated.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.default_event_based_hold != false { + my_size += 2; + } + my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(15, &self.labels); + if let Some(ref v) = self.website.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.versioning.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.owner.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.encryption.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_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.retention_policy.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.location_type.is_empty() { + my_size += ::protobuf::rt::string_size(23, &self.location_type); + } + if let Some(ref v) = self.iam_configuration.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + for value in &self.zone_affinity { + my_size += ::protobuf::rt::string_size(25, &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.acl { + 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.default_object_acl { + 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.lifecycle.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_created.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.id.is_empty() { + os.write_string(5, &self.id)?; + } + if !self.name.is_empty() { + os.write_string(6, &self.name)?; + } + if self.project_number != 0 { + os.write_int64(7, self.project_number)?; + } + if self.metageneration != 0 { + os.write_int64(8, self.metageneration)?; + } + for v in &self.cors { + 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.location.is_empty() { + os.write_string(10, &self.location)?; + } + if !self.storage_class.is_empty() { + os.write_string(11, &self.storage_class)?; + } + if !self.etag.is_empty() { + os.write_string(12, &self.etag)?; + } + if let Some(ref v) = self.updated.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.default_event_based_hold != false { + os.write_bool(14, self.default_event_based_hold)?; + } + ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(15, &self.labels, os)?; + if let Some(ref v) = self.website.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.versioning.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 let Some(ref v) = self.logging.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.owner.as_ref() { + os.write_tag(19, ::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.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)?; + } + if let Some(ref v) = self.billing.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.retention_policy.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.location_type.is_empty() { + os.write_string(23, &self.location_type)?; + } + if let Some(ref v) = self.iam_configuration.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)?; + } + for v in &self.zone_affinity { + os.write_string(25, &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() -> Bucket { + Bucket::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "acl", + |m: &Bucket| { &m.acl }, + |m: &mut Bucket| { &mut m.acl }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "default_object_acl", + |m: &Bucket| { &m.default_object_acl }, + |m: &mut Bucket| { &mut m.default_object_acl }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "lifecycle", + |m: &Bucket| { &m.lifecycle }, + |m: &mut Bucket| { &mut m.lifecycle }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "time_created", + |m: &Bucket| { &m.time_created }, + |m: &mut Bucket| { &mut m.time_created }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "id", + |m: &Bucket| { &m.id }, + |m: &mut Bucket| { &mut m.id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "name", + |m: &Bucket| { &m.name }, + |m: &mut Bucket| { &mut m.name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "project_number", + |m: &Bucket| { &m.project_number }, + |m: &mut Bucket| { &mut m.project_number }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "metageneration", + |m: &Bucket| { &m.metageneration }, + |m: &mut Bucket| { &mut m.metageneration }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "cors", + |m: &Bucket| { &m.cors }, + |m: &mut Bucket| { &mut m.cors }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "location", + |m: &Bucket| { &m.location }, + |m: &mut Bucket| { &mut m.location }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "storage_class", + |m: &Bucket| { &m.storage_class }, + |m: &mut Bucket| { &mut m.storage_class }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "etag", + |m: &Bucket| { &m.etag }, + |m: &mut Bucket| { &mut m.etag }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "updated", + |m: &Bucket| { &m.updated }, + |m: &mut Bucket| { &mut m.updated }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "default_event_based_hold", + |m: &Bucket| { &m.default_event_based_hold }, + |m: &mut Bucket| { &mut m.default_event_based_hold }, + )); + fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( + "labels", + |m: &Bucket| { &m.labels }, + |m: &mut Bucket| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "website", + |m: &Bucket| { &m.website }, + |m: &mut Bucket| { &mut m.website }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "versioning", + |m: &Bucket| { &m.versioning }, + |m: &mut Bucket| { &mut m.versioning }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "logging", + |m: &Bucket| { &m.logging }, + |m: &mut Bucket| { &mut m.logging }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "owner", + |m: &Bucket| { &m.owner }, + |m: &mut Bucket| { &mut m.owner }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "encryption", + |m: &Bucket| { &m.encryption }, + |m: &mut Bucket| { &mut m.encryption }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "billing", + |m: &Bucket| { &m.billing }, + |m: &mut Bucket| { &mut m.billing }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "retention_policy", + |m: &Bucket| { &m.retention_policy }, + |m: &mut Bucket| { &mut m.retention_policy }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "location_type", + |m: &Bucket| { &m.location_type }, + |m: &mut Bucket| { &mut m.location_type }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "iam_configuration", + |m: &Bucket| { &m.iam_configuration }, + |m: &mut Bucket| { &mut m.iam_configuration }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "zone_affinity", + |m: &Bucket| { &m.zone_affinity }, + |m: &mut Bucket| { &mut m.zone_affinity }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket::new) + } +} + +impl ::protobuf::Clear for Bucket { + fn clear(&mut self) { + self.acl.clear(); + self.default_object_acl.clear(); + self.lifecycle.clear(); + self.time_created.clear(); + self.id.clear(); + self.name.clear(); + self.project_number = 0; + self.metageneration = 0; + self.cors.clear(); + self.location.clear(); + self.storage_class.clear(); + self.etag.clear(); + self.updated.clear(); + self.default_event_based_hold = false; + self.labels.clear(); + self.website.clear(); + self.versioning.clear(); + self.logging.clear(); + self.owner.clear(); + self.encryption.clear(); + self.billing.clear(); + self.retention_policy.clear(); + self.location_type.clear(); + self.iam_configuration.clear(); + self.zone_affinity.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Billing { + // message fields + pub requester_pays: bool, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Billing { + fn default() -> &'a Bucket_Billing { + ::default_instance() + } +} + +impl Bucket_Billing { + pub fn new() -> Bucket_Billing { + ::std::default::Default::default() + } + + // bool requester_pays = 1; + + + pub fn get_requester_pays(&self) -> bool { + self.requester_pays + } + pub fn clear_requester_pays(&mut self) { + self.requester_pays = false; + } + + // Param is passed by value, moved + pub fn set_requester_pays(&mut self, v: bool) { + self.requester_pays = v; + } +} + +impl ::protobuf::Message for Bucket_Billing { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&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.requester_pays = 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.requester_pays != 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.requester_pays != false { + os.write_bool(1, self.requester_pays)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Bucket_Billing { + Bucket_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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "requester_pays", + |m: &Bucket_Billing| { &m.requester_pays }, + |m: &mut Bucket_Billing| { &mut m.requester_pays }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Billing", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Billing { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Billing::new) + } +} + +impl ::protobuf::Clear for Bucket_Billing { + fn clear(&mut self) { + self.requester_pays = false; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Billing { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Billing { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Cors { + // message fields + pub origin: ::protobuf::RepeatedField<::std::string::String>, + pub method: ::protobuf::RepeatedField<::std::string::String>, + pub response_header: ::protobuf::RepeatedField<::std::string::String>, + pub max_age_seconds: i32, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Cors { + fn default() -> &'a Bucket_Cors { + ::default_instance() + } +} + +impl Bucket_Cors { + pub fn new() -> Bucket_Cors { + ::std::default::Default::default() + } + + // repeated string origin = 1; + + + pub fn get_origin(&self) -> &[::std::string::String] { + &self.origin + } + pub fn clear_origin(&mut self) { + self.origin.clear(); + } + + // Param is passed by value, moved + pub fn set_origin(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.origin = v; + } + + // Mutable pointer to the field. + pub fn mut_origin(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.origin + } + + // Take field + pub fn take_origin(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.origin, ::protobuf::RepeatedField::new()) + } + + // repeated string method = 2; + + + pub fn get_method(&self) -> &[::std::string::String] { + &self.method + } + pub fn clear_method(&mut self) { + self.method.clear(); + } + + // Param is passed by value, moved + pub fn set_method(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.method = v; + } + + // Mutable pointer to the field. + pub fn mut_method(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.method + } + + // Take field + pub fn take_method(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.method, ::protobuf::RepeatedField::new()) + } + + // repeated string response_header = 3; + + + pub fn get_response_header(&self) -> &[::std::string::String] { + &self.response_header + } + pub fn clear_response_header(&mut self) { + self.response_header.clear(); + } + + // Param is passed by value, moved + pub fn set_response_header(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.response_header = v; + } + + // Mutable pointer to the field. + pub fn mut_response_header(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.response_header + } + + // Take field + pub fn take_response_header(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.response_header, ::protobuf::RepeatedField::new()) + } + + // int32 max_age_seconds = 4; + + + pub fn get_max_age_seconds(&self) -> i32 { + self.max_age_seconds + } + pub fn clear_max_age_seconds(&mut self) { + self.max_age_seconds = 0; + } + + // Param is passed by value, moved + pub fn set_max_age_seconds(&mut self, v: i32) { + self.max_age_seconds = v; + } +} + +impl ::protobuf::Message for Bucket_Cors { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &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.origin)?; + }, + 2 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.method)?; + }, + 3 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.response_header)?; + }, + 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.max_age_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; + for value in &self.origin { + my_size += ::protobuf::rt::string_size(1, &value); + }; + for value in &self.method { + my_size += ::protobuf::rt::string_size(2, &value); + }; + for value in &self.response_header { + my_size += ::protobuf::rt::string_size(3, &value); + }; + if self.max_age_seconds != 0 { + my_size += ::protobuf::rt::value_size(4, self.max_age_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<()> { + for v in &self.origin { + os.write_string(1, &v)?; + }; + for v in &self.method { + os.write_string(2, &v)?; + }; + for v in &self.response_header { + os.write_string(3, &v)?; + }; + if self.max_age_seconds != 0 { + os.write_int32(4, self.max_age_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() -> Bucket_Cors { + Bucket_Cors::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "origin", + |m: &Bucket_Cors| { &m.origin }, + |m: &mut Bucket_Cors| { &mut m.origin }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "method", + |m: &Bucket_Cors| { &m.method }, + |m: &mut Bucket_Cors| { &mut m.method }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "response_header", + |m: &Bucket_Cors| { &m.response_header }, + |m: &mut Bucket_Cors| { &mut m.response_header }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + "max_age_seconds", + |m: &Bucket_Cors| { &m.max_age_seconds }, + |m: &mut Bucket_Cors| { &mut m.max_age_seconds }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Cors", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Cors { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Cors::new) + } +} + +impl ::protobuf::Clear for Bucket_Cors { + fn clear(&mut self) { + self.origin.clear(); + self.method.clear(); + self.response_header.clear(); + self.max_age_seconds = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Cors { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Cors { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Encryption { + // message fields + pub default_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 Bucket_Encryption { + fn default() -> &'a Bucket_Encryption { + ::default_instance() + } +} + +impl Bucket_Encryption { + pub fn new() -> Bucket_Encryption { + ::std::default::Default::default() + } + + // string default_kms_key_name = 1; + + + pub fn get_default_kms_key_name(&self) -> &str { + &self.default_kms_key_name + } + pub fn clear_default_kms_key_name(&mut self) { + self.default_kms_key_name.clear(); + } + + // Param is passed by value, moved + pub fn set_default_kms_key_name(&mut self, v: ::std::string::String) { + self.default_kms_key_name = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_default_kms_key_name(&mut self) -> &mut ::std::string::String { + &mut self.default_kms_key_name + } + + // Take field + pub fn take_default_kms_key_name(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.default_kms_key_name, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for Bucket_Encryption { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (field_number, wire_type) = is.read_tag_unpack()?; + match field_number { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.default_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.default_kms_key_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.default_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.default_kms_key_name.is_empty() { + os.write_string(1, &self.default_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() -> Bucket_Encryption { + Bucket_Encryption::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "default_kms_key_name", + |m: &Bucket_Encryption| { &m.default_kms_key_name }, + |m: &mut Bucket_Encryption| { &mut m.default_kms_key_name }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Encryption", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Encryption { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Encryption::new) + } +} + +impl ::protobuf::Clear for Bucket_Encryption { + fn clear(&mut self) { + self.default_kms_key_name.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Encryption { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Encryption { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_IamConfiguration { + // message fields + pub uniform_bucket_level_access: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_IamConfiguration { + fn default() -> &'a Bucket_IamConfiguration { + ::default_instance() + } +} + +impl Bucket_IamConfiguration { + pub fn new() -> Bucket_IamConfiguration { + ::std::default::Default::default() + } + + // .google.storage.v1.Bucket.IamConfiguration.UniformBucketLevelAccess uniform_bucket_level_access = 1; + + + pub fn get_uniform_bucket_level_access(&self) -> &Bucket_IamConfiguration_UniformBucketLevelAccess { + self.uniform_bucket_level_access.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_uniform_bucket_level_access(&mut self) { + self.uniform_bucket_level_access.clear(); + } + + pub fn has_uniform_bucket_level_access(&self) -> bool { + self.uniform_bucket_level_access.is_some() + } + + // Param is passed by value, moved + pub fn set_uniform_bucket_level_access(&mut self, v: Bucket_IamConfiguration_UniformBucketLevelAccess) { + self.uniform_bucket_level_access = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_uniform_bucket_level_access(&mut self) -> &mut Bucket_IamConfiguration_UniformBucketLevelAccess { + if self.uniform_bucket_level_access.is_none() { + self.uniform_bucket_level_access.set_default(); + } + self.uniform_bucket_level_access.as_mut().unwrap() + } + + // Take field + pub fn take_uniform_bucket_level_access(&mut self) -> Bucket_IamConfiguration_UniformBucketLevelAccess { + self.uniform_bucket_level_access.take().unwrap_or_else(|| Bucket_IamConfiguration_UniformBucketLevelAccess::new()) + } +} + +impl ::protobuf::Message for Bucket_IamConfiguration { + fn is_initialized(&self) -> bool { + for v in &self.uniform_bucket_level_access { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::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.uniform_bucket_level_access)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.uniform_bucket_level_access.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.uniform_bucket_level_access.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() -> Bucket_IamConfiguration { + Bucket_IamConfiguration::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "uniform_bucket_level_access", + |m: &Bucket_IamConfiguration| { &m.uniform_bucket_level_access }, + |m: &mut Bucket_IamConfiguration| { &mut m.uniform_bucket_level_access }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.IamConfiguration", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_IamConfiguration { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_IamConfiguration::new) + } +} + +impl ::protobuf::Clear for Bucket_IamConfiguration { + fn clear(&mut self) { + self.uniform_bucket_level_access.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_IamConfiguration { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_IamConfiguration { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_IamConfiguration_UniformBucketLevelAccess { + // message fields + pub enabled: bool, + pub locked_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 Bucket_IamConfiguration_UniformBucketLevelAccess { + fn default() -> &'a Bucket_IamConfiguration_UniformBucketLevelAccess { + ::default_instance() + } +} + +impl Bucket_IamConfiguration_UniformBucketLevelAccess { + pub fn new() -> Bucket_IamConfiguration_UniformBucketLevelAccess { + ::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; + } + + // .google.protobuf.Timestamp locked_time = 2; + + + pub fn get_locked_time(&self) -> &::protobuf::well_known_types::Timestamp { + self.locked_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_locked_time(&mut self) { + self.locked_time.clear(); + } + + pub fn has_locked_time(&self) -> bool { + self.locked_time.is_some() + } + + // Param is passed by value, moved + pub fn set_locked_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.locked_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_locked_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.locked_time.is_none() { + self.locked_time.set_default(); + } + self.locked_time.as_mut().unwrap() + } + + // Take field + pub fn take_locked_time(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.locked_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } +} + +impl ::protobuf::Message for Bucket_IamConfiguration_UniformBucketLevelAccess { + fn is_initialized(&self) -> bool { + for v in &self.locked_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_bool()?; + self.enabled = tmp; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.locked_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.enabled != false { + my_size += 2; + } + if let Some(ref v) = self.locked_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.enabled != false { + os.write_bool(1, self.enabled)?; + } + if let Some(ref v) = self.locked_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() -> Bucket_IamConfiguration_UniformBucketLevelAccess { + Bucket_IamConfiguration_UniformBucketLevelAccess::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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: &Bucket_IamConfiguration_UniformBucketLevelAccess| { &m.enabled }, + |m: &mut Bucket_IamConfiguration_UniformBucketLevelAccess| { &mut m.enabled }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "locked_time", + |m: &Bucket_IamConfiguration_UniformBucketLevelAccess| { &m.locked_time }, + |m: &mut Bucket_IamConfiguration_UniformBucketLevelAccess| { &mut m.locked_time }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.IamConfiguration.UniformBucketLevelAccess", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_IamConfiguration_UniformBucketLevelAccess { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_IamConfiguration_UniformBucketLevelAccess::new) + } +} + +impl ::protobuf::Clear for Bucket_IamConfiguration_UniformBucketLevelAccess { + fn clear(&mut self) { + self.enabled = false; + self.locked_time.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_IamConfiguration_UniformBucketLevelAccess { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_IamConfiguration_UniformBucketLevelAccess { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Lifecycle { + // message fields + pub rule: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Lifecycle { + fn default() -> &'a Bucket_Lifecycle { + ::default_instance() + } +} + +impl Bucket_Lifecycle { + pub fn new() -> Bucket_Lifecycle { + ::std::default::Default::default() + } + + // repeated .google.storage.v1.Bucket.Lifecycle.Rule rule = 1; + + + pub fn get_rule(&self) -> &[Bucket_Lifecycle_Rule] { + &self.rule + } + pub fn clear_rule(&mut self) { + self.rule.clear(); + } + + // Param is passed by value, moved + pub fn set_rule(&mut self, v: ::protobuf::RepeatedField) { + self.rule = v; + } + + // Mutable pointer to the field. + pub fn mut_rule(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.rule + } + + // Take field + pub fn take_rule(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.rule, ::protobuf::RepeatedField::new()) + } +} + +impl ::protobuf::Message for Bucket_Lifecycle { + fn is_initialized(&self) -> bool { + for v in &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 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.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; + for value in &self.rule { + 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.rule { + 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() -> Bucket_Lifecycle { + Bucket_Lifecycle::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "rule", + |m: &Bucket_Lifecycle| { &m.rule }, + |m: &mut Bucket_Lifecycle| { &mut m.rule }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Lifecycle", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Lifecycle { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Lifecycle::new) + } +} + +impl ::protobuf::Clear for Bucket_Lifecycle { + fn clear(&mut self) { + self.rule.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Lifecycle { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Lifecycle { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Lifecycle_Rule { + // message fields + pub action: ::protobuf::SingularPtrField, + pub condition: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Lifecycle_Rule { + fn default() -> &'a Bucket_Lifecycle_Rule { + ::default_instance() + } +} + +impl Bucket_Lifecycle_Rule { + pub fn new() -> Bucket_Lifecycle_Rule { + ::std::default::Default::default() + } + + // .google.storage.v1.Bucket.Lifecycle.Rule.Action action = 1; + + + pub fn get_action(&self) -> &Bucket_Lifecycle_Rule_Action { + self.action.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_action(&mut self) { + self.action.clear(); + } + + pub fn has_action(&self) -> bool { + self.action.is_some() + } + + // Param is passed by value, moved + pub fn set_action(&mut self, v: Bucket_Lifecycle_Rule_Action) { + self.action = ::protobuf::SingularPtrField::some(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 Bucket_Lifecycle_Rule_Action { + if self.action.is_none() { + self.action.set_default(); + } + self.action.as_mut().unwrap() + } + + // Take field + pub fn take_action(&mut self) -> Bucket_Lifecycle_Rule_Action { + self.action.take().unwrap_or_else(|| Bucket_Lifecycle_Rule_Action::new()) + } + + // .google.storage.v1.Bucket.Lifecycle.Rule.Condition condition = 2; + + + pub fn get_condition(&self) -> &Bucket_Lifecycle_Rule_Condition { + 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: Bucket_Lifecycle_Rule_Condition) { + 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 Bucket_Lifecycle_Rule_Condition { + if self.condition.is_none() { + self.condition.set_default(); + } + self.condition.as_mut().unwrap() + } + + // Take field + pub fn take_condition(&mut self) -> Bucket_Lifecycle_Rule_Condition { + self.condition.take().unwrap_or_else(|| Bucket_Lifecycle_Rule_Condition::new()) + } +} + +impl ::protobuf::Message for Bucket_Lifecycle_Rule { + fn is_initialized(&self) -> bool { + for v in &self.action { + 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_message_into(wire_type, is, &mut self.action)?; + }, + 2 => { + ::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.action.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; + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_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.action.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.condition.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() -> Bucket_Lifecycle_Rule { + Bucket_Lifecycle_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_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "action", + |m: &Bucket_Lifecycle_Rule| { &m.action }, + |m: &mut Bucket_Lifecycle_Rule| { &mut m.action }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "condition", + |m: &Bucket_Lifecycle_Rule| { &m.condition }, + |m: &mut Bucket_Lifecycle_Rule| { &mut m.condition }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Lifecycle.Rule", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Lifecycle_Rule { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Lifecycle_Rule::new) + } +} + +impl ::protobuf::Clear for Bucket_Lifecycle_Rule { + fn clear(&mut self) { + self.action.clear(); + self.condition.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Lifecycle_Rule { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Lifecycle_Rule { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Lifecycle_Rule_Action { + // message fields + pub field_type: ::std::string::String, + pub storage_class: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Lifecycle_Rule_Action { + fn default() -> &'a Bucket_Lifecycle_Rule_Action { + ::default_instance() + } +} + +impl Bucket_Lifecycle_Rule_Action { + pub fn new() -> Bucket_Lifecycle_Rule_Action { + ::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 storage_class = 2; + + + pub fn get_storage_class(&self) -> &str { + &self.storage_class + } + pub fn clear_storage_class(&mut self) { + self.storage_class.clear(); + } + + // Param is passed by value, moved + pub fn set_storage_class(&mut self, v: ::std::string::String) { + self.storage_class = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_storage_class(&mut self) -> &mut ::std::string::String { + &mut self.storage_class + } + + // Take field + pub fn take_storage_class(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.storage_class, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for Bucket_Lifecycle_Rule_Action { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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.storage_class)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + if !self.storage_class.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.storage_class); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.storage_class.is_empty() { + os.write_string(2, &self.storage_class)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Bucket_Lifecycle_Rule_Action { + Bucket_Lifecycle_Rule_Action::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &Bucket_Lifecycle_Rule_Action| { &m.field_type }, + |m: &mut Bucket_Lifecycle_Rule_Action| { &mut m.field_type }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "storage_class", + |m: &Bucket_Lifecycle_Rule_Action| { &m.storage_class }, + |m: &mut Bucket_Lifecycle_Rule_Action| { &mut m.storage_class }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Lifecycle.Rule.Action", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Lifecycle_Rule_Action { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Lifecycle_Rule_Action::new) + } +} + +impl ::protobuf::Clear for Bucket_Lifecycle_Rule_Action { + fn clear(&mut self) { + self.field_type.clear(); + self.storage_class.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Lifecycle_Rule_Action { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Lifecycle_Rule_Action { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Lifecycle_Rule_Condition { + // message fields + pub age: i32, + pub created_before: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub is_live: ::protobuf::SingularPtrField<::protobuf::well_known_types::BoolValue>, + pub num_newer_versions: i32, + pub matches_storage_class: ::protobuf::RepeatedField<::std::string::String>, + pub matches_pattern: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Lifecycle_Rule_Condition { + fn default() -> &'a Bucket_Lifecycle_Rule_Condition { + ::default_instance() + } +} + +impl Bucket_Lifecycle_Rule_Condition { + pub fn new() -> Bucket_Lifecycle_Rule_Condition { + ::std::default::Default::default() + } + + // int32 age = 1; + + + pub fn get_age(&self) -> i32 { + self.age + } + pub fn clear_age(&mut self) { + self.age = 0; + } + + // Param is passed by value, moved + pub fn set_age(&mut self, v: i32) { + self.age = v; + } + + // .google.protobuf.Timestamp created_before = 2; + + + pub fn get_created_before(&self) -> &::protobuf::well_known_types::Timestamp { + self.created_before.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_created_before(&mut self) { + self.created_before.clear(); + } + + pub fn has_created_before(&self) -> bool { + self.created_before.is_some() + } + + // Param is passed by value, moved + pub fn set_created_before(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.created_before = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_created_before(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.created_before.is_none() { + self.created_before.set_default(); + } + self.created_before.as_mut().unwrap() + } + + // Take field + pub fn take_created_before(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.created_before.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // .google.protobuf.BoolValue is_live = 3; + + + pub fn get_is_live(&self) -> &::protobuf::well_known_types::BoolValue { + self.is_live.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::BoolValue as ::protobuf::Message>::default_instance()) + } + pub fn clear_is_live(&mut self) { + self.is_live.clear(); + } + + pub fn has_is_live(&self) -> bool { + self.is_live.is_some() + } + + // Param is passed by value, moved + pub fn set_is_live(&mut self, v: ::protobuf::well_known_types::BoolValue) { + self.is_live = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_is_live(&mut self) -> &mut ::protobuf::well_known_types::BoolValue { + if self.is_live.is_none() { + self.is_live.set_default(); + } + self.is_live.as_mut().unwrap() + } + + // Take field + pub fn take_is_live(&mut self) -> ::protobuf::well_known_types::BoolValue { + self.is_live.take().unwrap_or_else(|| ::protobuf::well_known_types::BoolValue::new()) + } + + // int32 num_newer_versions = 4; + + + pub fn get_num_newer_versions(&self) -> i32 { + self.num_newer_versions + } + pub fn clear_num_newer_versions(&mut self) { + self.num_newer_versions = 0; + } + + // Param is passed by value, moved + pub fn set_num_newer_versions(&mut self, v: i32) { + self.num_newer_versions = v; + } + + // repeated string matches_storage_class = 5; + + + pub fn get_matches_storage_class(&self) -> &[::std::string::String] { + &self.matches_storage_class + } + pub fn clear_matches_storage_class(&mut self) { + self.matches_storage_class.clear(); + } + + // Param is passed by value, moved + pub fn set_matches_storage_class(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.matches_storage_class = v; + } + + // Mutable pointer to the field. + pub fn mut_matches_storage_class(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.matches_storage_class + } + + // Take field + pub fn take_matches_storage_class(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.matches_storage_class, ::protobuf::RepeatedField::new()) + } + + // string matches_pattern = 6; + + + pub fn get_matches_pattern(&self) -> &str { + &self.matches_pattern + } + pub fn clear_matches_pattern(&mut self) { + self.matches_pattern.clear(); + } + + // Param is passed by value, moved + pub fn set_matches_pattern(&mut self, v: ::std::string::String) { + self.matches_pattern = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_matches_pattern(&mut self) -> &mut ::std::string::String { + &mut self.matches_pattern + } + + // Take field + pub fn take_matches_pattern(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.matches_pattern, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for Bucket_Lifecycle_Rule_Condition { + fn is_initialized(&self) -> bool { + for v in &self.created_before { + if !v.is_initialized() { + return false; + } + }; + for v in &self.is_live { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&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.age = tmp; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.created_before)?; + }, + 3 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.is_live)?; + }, + 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.num_newer_versions = tmp; + }, + 5 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.matches_storage_class)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.matches_pattern)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.age != 0 { + my_size += ::protobuf::rt::value_size(1, self.age, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.created_before.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.is_live.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.num_newer_versions != 0 { + my_size += ::protobuf::rt::value_size(4, self.num_newer_versions, ::protobuf::wire_format::WireTypeVarint); + } + for value in &self.matches_storage_class { + my_size += ::protobuf::rt::string_size(5, &value); + }; + if !self.matches_pattern.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.matches_pattern); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if self.age != 0 { + os.write_int32(1, self.age)?; + } + if let Some(ref v) = self.created_before.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.is_live.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.num_newer_versions != 0 { + os.write_int32(4, self.num_newer_versions)?; + } + for v in &self.matches_storage_class { + os.write_string(5, &v)?; + }; + if !self.matches_pattern.is_empty() { + os.write_string(6, &self.matches_pattern)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Bucket_Lifecycle_Rule_Condition { + Bucket_Lifecycle_Rule_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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + "age", + |m: &Bucket_Lifecycle_Rule_Condition| { &m.age }, + |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.age }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "created_before", + |m: &Bucket_Lifecycle_Rule_Condition| { &m.created_before }, + |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.created_before }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::BoolValue>>( + "is_live", + |m: &Bucket_Lifecycle_Rule_Condition| { &m.is_live }, + |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.is_live }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + "num_newer_versions", + |m: &Bucket_Lifecycle_Rule_Condition| { &m.num_newer_versions }, + |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.num_newer_versions }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "matches_storage_class", + |m: &Bucket_Lifecycle_Rule_Condition| { &m.matches_storage_class }, + |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.matches_storage_class }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "matches_pattern", + |m: &Bucket_Lifecycle_Rule_Condition| { &m.matches_pattern }, + |m: &mut Bucket_Lifecycle_Rule_Condition| { &mut m.matches_pattern }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Lifecycle.Rule.Condition", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Lifecycle_Rule_Condition { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Lifecycle_Rule_Condition::new) + } +} + +impl ::protobuf::Clear for Bucket_Lifecycle_Rule_Condition { + fn clear(&mut self) { + self.age = 0; + self.created_before.clear(); + self.is_live.clear(); + self.num_newer_versions = 0; + self.matches_storage_class.clear(); + self.matches_pattern.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Lifecycle_Rule_Condition { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Lifecycle_Rule_Condition { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Logging { + // message fields + pub log_bucket: ::std::string::String, + pub log_object_prefix: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Logging { + fn default() -> &'a Bucket_Logging { + ::default_instance() + } +} + +impl Bucket_Logging { + pub fn new() -> Bucket_Logging { + ::std::default::Default::default() + } + + // string log_bucket = 1; + + + pub fn get_log_bucket(&self) -> &str { + &self.log_bucket + } + pub fn clear_log_bucket(&mut self) { + self.log_bucket.clear(); + } + + // Param is passed by value, moved + pub fn set_log_bucket(&mut self, v: ::std::string::String) { + self.log_bucket = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_log_bucket(&mut self) -> &mut ::std::string::String { + &mut self.log_bucket + } + + // Take field + pub fn take_log_bucket(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.log_bucket, ::std::string::String::new()) + } + + // string log_object_prefix = 2; + + + pub fn get_log_object_prefix(&self) -> &str { + &self.log_object_prefix + } + pub fn clear_log_object_prefix(&mut self) { + self.log_object_prefix.clear(); + } + + // Param is passed by value, moved + pub fn set_log_object_prefix(&mut self, v: ::std::string::String) { + self.log_object_prefix = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_log_object_prefix(&mut self) -> &mut ::std::string::String { + &mut self.log_object_prefix + } + + // Take field + pub fn take_log_object_prefix(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.log_object_prefix, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for Bucket_Logging { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (field_number, wire_type) = is.read_tag_unpack()?; + match field_number { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log_bucket)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log_object_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.log_bucket.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.log_bucket); + } + if !self.log_object_prefix.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.log_object_prefix); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.log_bucket.is_empty() { + os.write_string(1, &self.log_bucket)?; + } + if !self.log_object_prefix.is_empty() { + os.write_string(2, &self.log_object_prefix)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Bucket_Logging { + Bucket_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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "log_bucket", + |m: &Bucket_Logging| { &m.log_bucket }, + |m: &mut Bucket_Logging| { &mut m.log_bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "log_object_prefix", + |m: &Bucket_Logging| { &m.log_object_prefix }, + |m: &mut Bucket_Logging| { &mut m.log_object_prefix }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Logging", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Logging { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Logging::new) + } +} + +impl ::protobuf::Clear for Bucket_Logging { + fn clear(&mut self) { + self.log_bucket.clear(); + self.log_object_prefix.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Logging { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Logging { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_RetentionPolicy { + // message fields + pub effective_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub is_locked: bool, + pub retention_period: i64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_RetentionPolicy { + fn default() -> &'a Bucket_RetentionPolicy { + ::default_instance() + } +} + +impl Bucket_RetentionPolicy { + pub fn new() -> Bucket_RetentionPolicy { + ::std::default::Default::default() + } + + // .google.protobuf.Timestamp effective_time = 1; + + + pub fn get_effective_time(&self) -> &::protobuf::well_known_types::Timestamp { + self.effective_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_effective_time(&mut self) { + self.effective_time.clear(); + } + + pub fn has_effective_time(&self) -> bool { + self.effective_time.is_some() + } + + // Param is passed by value, moved + pub fn set_effective_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.effective_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_effective_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.effective_time.is_none() { + self.effective_time.set_default(); + } + self.effective_time.as_mut().unwrap() + } + + // Take field + pub fn take_effective_time(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.effective_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // bool is_locked = 2; + + + pub fn get_is_locked(&self) -> bool { + self.is_locked + } + pub fn clear_is_locked(&mut self) { + self.is_locked = false; + } + + // Param is passed by value, moved + pub fn set_is_locked(&mut self, v: bool) { + self.is_locked = v; + } + + // int64 retention_period = 3; + + + pub fn get_retention_period(&self) -> i64 { + self.retention_period + } + pub fn clear_retention_period(&mut self) { + self.retention_period = 0; + } + + // Param is passed by value, moved + pub fn set_retention_period(&mut self, v: i64) { + self.retention_period = v; + } +} + +impl ::protobuf::Message for Bucket_RetentionPolicy { + fn is_initialized(&self) -> bool { + for v in &self.effective_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.effective_time)?; + }, + 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.is_locked = 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.retention_period = 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.effective_time.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.is_locked != false { + my_size += 2; + } + if self.retention_period != 0 { + my_size += ::protobuf::rt::value_size(3, self.retention_period, ::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 Some(ref v) = self.effective_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 self.is_locked != false { + os.write_bool(2, self.is_locked)?; + } + if self.retention_period != 0 { + os.write_int64(3, self.retention_period)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Bucket_RetentionPolicy { + Bucket_RetentionPolicy::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>>( + "effective_time", + |m: &Bucket_RetentionPolicy| { &m.effective_time }, + |m: &mut Bucket_RetentionPolicy| { &mut m.effective_time }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "is_locked", + |m: &Bucket_RetentionPolicy| { &m.is_locked }, + |m: &mut Bucket_RetentionPolicy| { &mut m.is_locked }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "retention_period", + |m: &Bucket_RetentionPolicy| { &m.retention_period }, + |m: &mut Bucket_RetentionPolicy| { &mut m.retention_period }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.RetentionPolicy", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_RetentionPolicy { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_RetentionPolicy::new) + } +} + +impl ::protobuf::Clear for Bucket_RetentionPolicy { + fn clear(&mut self) { + self.effective_time.clear(); + self.is_locked = false; + self.retention_period = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_RetentionPolicy { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_RetentionPolicy { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Versioning { + // message fields + pub enabled: bool, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Versioning { + fn default() -> &'a Bucket_Versioning { + ::default_instance() + } +} + +impl Bucket_Versioning { + pub fn new() -> Bucket_Versioning { + ::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 Bucket_Versioning { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&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() -> Bucket_Versioning { + Bucket_Versioning::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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: &Bucket_Versioning| { &m.enabled }, + |m: &mut Bucket_Versioning| { &mut m.enabled }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Versioning", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Versioning { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Versioning::new) + } +} + +impl ::protobuf::Clear for Bucket_Versioning { + fn clear(&mut self) { + self.enabled = false; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Versioning { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Versioning { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Bucket_Website { + // message fields + pub main_page_suffix: ::std::string::String, + pub not_found_page: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Bucket_Website { + fn default() -> &'a Bucket_Website { + ::default_instance() + } +} + +impl Bucket_Website { + pub fn new() -> Bucket_Website { + ::std::default::Default::default() + } + + // string main_page_suffix = 1; + + + pub fn get_main_page_suffix(&self) -> &str { + &self.main_page_suffix + } + pub fn clear_main_page_suffix(&mut self) { + self.main_page_suffix.clear(); + } + + // Param is passed by value, moved + pub fn set_main_page_suffix(&mut self, v: ::std::string::String) { + self.main_page_suffix = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_main_page_suffix(&mut self) -> &mut ::std::string::String { + &mut self.main_page_suffix + } + + // Take field + pub fn take_main_page_suffix(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.main_page_suffix, ::std::string::String::new()) + } + + // string not_found_page = 2; + + + pub fn get_not_found_page(&self) -> &str { + &self.not_found_page + } + pub fn clear_not_found_page(&mut self) { + self.not_found_page.clear(); + } + + // Param is passed by value, moved + pub fn set_not_found_page(&mut self, v: ::std::string::String) { + self.not_found_page = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_not_found_page(&mut self) -> &mut ::std::string::String { + &mut self.not_found_page + } + + // Take field + pub fn take_not_found_page(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.not_found_page, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for Bucket_Website { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (field_number, wire_type) = is.read_tag_unpack()?; + match field_number { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.main_page_suffix)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.not_found_page)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.main_page_suffix.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.main_page_suffix); + } + if !self.not_found_page.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.not_found_page); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.main_page_suffix.is_empty() { + os.write_string(1, &self.main_page_suffix)?; + } + if !self.not_found_page.is_empty() { + os.write_string(2, &self.not_found_page)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Bucket_Website { + Bucket_Website::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "main_page_suffix", + |m: &Bucket_Website| { &m.main_page_suffix }, + |m: &mut Bucket_Website| { &mut m.main_page_suffix }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "not_found_page", + |m: &Bucket_Website| { &m.not_found_page }, + |m: &mut Bucket_Website| { &mut m.not_found_page }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Bucket.Website", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Bucket_Website { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Bucket_Website::new) + } +} + +impl ::protobuf::Clear for Bucket_Website { + fn clear(&mut self) { + self.main_page_suffix.clear(); + self.not_found_page.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Bucket_Website { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Bucket_Website { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct BucketAccessControl { + // message fields + pub role: ::std::string::String, + pub etag: ::std::string::String, + pub id: ::std::string::String, + pub bucket: ::std::string::String, + pub entity: ::std::string::String, + pub entity_id: ::std::string::String, + pub email: ::std::string::String, + pub domain: ::std::string::String, + pub project_team: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a BucketAccessControl { + fn default() -> &'a BucketAccessControl { + ::default_instance() + } +} + +impl BucketAccessControl { + pub fn new() -> BucketAccessControl { + ::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()) + } + + // 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 id = 3; + + + 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 bucket = 4; + + + 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 entity = 6; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // string entity_id = 7; + + + pub fn get_entity_id(&self) -> &str { + &self.entity_id + } + pub fn clear_entity_id(&mut self) { + self.entity_id.clear(); + } + + // Param is passed by value, moved + pub fn set_entity_id(&mut self, v: ::std::string::String) { + self.entity_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity_id(&mut self) -> &mut ::std::string::String { + &mut self.entity_id + } + + // Take field + pub fn take_entity_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity_id, ::std::string::String::new()) + } + + // string email = 8; + + + pub fn get_email(&self) -> &str { + &self.email + } + pub fn clear_email(&mut self) { + self.email.clear(); + } + + // Param is passed by value, moved + pub fn set_email(&mut self, v: ::std::string::String) { + self.email = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_email(&mut self) -> &mut ::std::string::String { + &mut self.email + } + + // Take field + pub fn take_email(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.email, ::std::string::String::new()) + } + + // string domain = 9; + + + 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()) + } + + // .google.storage.v1.ProjectTeam project_team = 10; + + + pub fn get_project_team(&self) -> &ProjectTeam { + self.project_team.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_project_team(&mut self) { + self.project_team.clear(); + } + + pub fn has_project_team(&self) -> bool { + self.project_team.is_some() + } + + // Param is passed by value, moved + pub fn set_project_team(&mut self, v: ProjectTeam) { + self.project_team = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_team(&mut self) -> &mut ProjectTeam { + if self.project_team.is_none() { + self.project_team.set_default(); + } + self.project_team.as_mut().unwrap() + } + + // Take field + pub fn take_project_team(&mut self) -> ProjectTeam { + self.project_team.take().unwrap_or_else(|| ProjectTeam::new()) + } +} + +impl ::protobuf::Message for BucketAccessControl { + fn is_initialized(&self) -> bool { + for v in &self.project_team { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)?; + }, + 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.id)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity_id)?; + }, + 8 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.email)?; + }, + 9 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.domain)?; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.project_team)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.role.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.role); + } + if !self.etag.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.etag); + } + if !self.id.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.id); + } + if !self.bucket.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.bucket); + } + if !self.entity.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.entity); + } + if !self.entity_id.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.entity_id); + } + if !self.email.is_empty() { + my_size += ::protobuf::rt::string_size(8, &self.email); + } + if !self.domain.is_empty() { + my_size += ::protobuf::rt::string_size(9, &self.domain); + } + if let Some(ref v) = self.project_team.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)?; + } + if !self.etag.is_empty() { + os.write_string(2, &self.etag)?; + } + if !self.id.is_empty() { + os.write_string(3, &self.id)?; + } + if !self.bucket.is_empty() { + os.write_string(4, &self.bucket)?; + } + if !self.entity.is_empty() { + os.write_string(6, &self.entity)?; + } + if !self.entity_id.is_empty() { + os.write_string(7, &self.entity_id)?; + } + if !self.email.is_empty() { + os.write_string(8, &self.email)?; + } + if !self.domain.is_empty() { + os.write_string(9, &self.domain)?; + } + if let Some(ref v) = self.project_team.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() -> BucketAccessControl { + BucketAccessControl::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &BucketAccessControl| { &m.role }, + |m: &mut BucketAccessControl| { &mut m.role }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "etag", + |m: &BucketAccessControl| { &m.etag }, + |m: &mut BucketAccessControl| { &mut m.etag }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "id", + |m: &BucketAccessControl| { &m.id }, + |m: &mut BucketAccessControl| { &mut m.id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "bucket", + |m: &BucketAccessControl| { &m.bucket }, + |m: &mut BucketAccessControl| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &BucketAccessControl| { &m.entity }, + |m: &mut BucketAccessControl| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity_id", + |m: &BucketAccessControl| { &m.entity_id }, + |m: &mut BucketAccessControl| { &mut m.entity_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "email", + |m: &BucketAccessControl| { &m.email }, + |m: &mut BucketAccessControl| { &mut m.email }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "domain", + |m: &BucketAccessControl| { &m.domain }, + |m: &mut BucketAccessControl| { &mut m.domain }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "project_team", + |m: &BucketAccessControl| { &m.project_team }, + |m: &mut BucketAccessControl| { &mut m.project_team }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "BucketAccessControl", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static BucketAccessControl { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(BucketAccessControl::new) + } +} + +impl ::protobuf::Clear for BucketAccessControl { + fn clear(&mut self) { + self.role.clear(); + self.etag.clear(); + self.id.clear(); + self.bucket.clear(); + self.entity.clear(); + self.entity_id.clear(); + self.email.clear(); + self.domain.clear(); + self.project_team.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for BucketAccessControl { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for BucketAccessControl { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListBucketAccessControlsResponse { + // message fields + pub items: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListBucketAccessControlsResponse { + fn default() -> &'a ListBucketAccessControlsResponse { + ::default_instance() + } +} + +impl ListBucketAccessControlsResponse { + pub fn new() -> ListBucketAccessControlsResponse { + ::std::default::Default::default() + } + + // repeated .google.storage.v1.BucketAccessControl items = 1; + + + pub fn get_items(&self) -> &[BucketAccessControl] { + &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 ListBucketAccessControlsResponse { + fn is_initialized(&self) -> bool { + 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_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; + 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<()> { + for v in &self.items { + 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() -> ListBucketAccessControlsResponse { + ListBucketAccessControlsResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "items", + |m: &ListBucketAccessControlsResponse| { &m.items }, + |m: &mut ListBucketAccessControlsResponse| { &mut m.items }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListBucketAccessControlsResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListBucketAccessControlsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListBucketAccessControlsResponse::new) + } +} + +impl ::protobuf::Clear for ListBucketAccessControlsResponse { + fn clear(&mut self) { + self.items.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListBucketAccessControlsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListBucketAccessControlsResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListBucketsResponse { + // message fields + pub items: ::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 ListBucketsResponse { + fn default() -> &'a ListBucketsResponse { + ::default_instance() + } +} + +impl ListBucketsResponse { + pub fn new() -> ListBucketsResponse { + ::std::default::Default::default() + } + + // repeated .google.storage.v1.Bucket items = 1; + + + pub fn get_items(&self) -> &[Bucket] { + &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()) + } + + // 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 ListBucketsResponse { + fn is_initialized(&self) -> bool { + 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_repeated_message_into(wire_type, is, &mut self.items)?; + }, + 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.items { + 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.items { + 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() -> ListBucketsResponse { + ListBucketsResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "items", + |m: &ListBucketsResponse| { &m.items }, + |m: &mut ListBucketsResponse| { &mut m.items }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "next_page_token", + |m: &ListBucketsResponse| { &m.next_page_token }, + |m: &mut ListBucketsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListBucketsResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListBucketsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListBucketsResponse::new) + } +} + +impl ::protobuf::Clear for ListBucketsResponse { + fn clear(&mut self) { + self.items.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListBucketsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListBucketsResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Channel { + // message fields + pub id: ::std::string::String, + pub resource_id: ::std::string::String, + pub resource_uri: ::std::string::String, + pub token: ::std::string::String, + pub expiration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub field_type: ::std::string::String, + pub address: ::std::string::String, + pub params: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + pub payload: bool, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Channel { + fn default() -> &'a Channel { + ::default_instance() + } +} + +impl Channel { + pub fn new() -> Channel { + ::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 resource_id = 2; + + + pub fn get_resource_id(&self) -> &str { + &self.resource_id + } + pub fn clear_resource_id(&mut self) { + self.resource_id.clear(); + } + + // Param is passed by value, moved + pub fn set_resource_id(&mut self, v: ::std::string::String) { + self.resource_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_resource_id(&mut self) -> &mut ::std::string::String { + &mut self.resource_id + } + + // Take field + pub fn take_resource_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.resource_id, ::std::string::String::new()) + } + + // string resource_uri = 3; + + + pub fn get_resource_uri(&self) -> &str { + &self.resource_uri + } + pub fn clear_resource_uri(&mut self) { + self.resource_uri.clear(); + } + + // Param is passed by value, moved + pub fn set_resource_uri(&mut self, v: ::std::string::String) { + self.resource_uri = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_resource_uri(&mut self) -> &mut ::std::string::String { + &mut self.resource_uri + } + + // Take field + pub fn take_resource_uri(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.resource_uri, ::std::string::String::new()) + } + + // string token = 4; + + + 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 expiration = 5; + + + pub fn get_expiration(&self) -> &::protobuf::well_known_types::Timestamp { + self.expiration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_expiration(&mut self) { + self.expiration.clear(); + } + + pub fn has_expiration(&self) -> bool { + self.expiration.is_some() + } + + // Param is passed by value, moved + pub fn set_expiration(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.expiration = ::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(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.expiration.is_none() { + self.expiration.set_default(); + } + self.expiration.as_mut().unwrap() + } + + // Take field + pub fn take_expiration(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.expiration.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // string type = 6; + + + 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 address = 7; + + + 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()) + } + + // repeated .google.storage.v1.Channel.ParamsEntry params = 8; + + + pub fn get_params(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { + &self.params + } + pub fn clear_params(&mut self) { + self.params.clear(); + } + + // Param is passed by value, moved + pub fn set_params(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { + self.params = v; + } + + // Mutable pointer to the field. + pub fn mut_params(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { + &mut self.params + } + + // Take field + pub fn take_params(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { + ::std::mem::replace(&mut self.params, ::std::collections::HashMap::new()) + } + + // bool payload = 9; + + + pub fn get_payload(&self) -> bool { + self.payload + } + pub fn clear_payload(&mut self) { + self.payload = false; + } + + // Param is passed by value, moved + pub fn set_payload(&mut self, v: bool) { + self.payload = v; + } +} + +impl ::protobuf::Message for Channel { + fn is_initialized(&self) -> bool { + for v in &self.expiration { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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.resource_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_uri)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.token)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expiration)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.address)?; + }, + 8 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.params)?; + }, + 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.payload = 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.resource_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.resource_id); + } + if !self.resource_uri.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.resource_uri); + } + if !self.token.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.token); + } + if let Some(ref v) = self.expiration.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.field_type.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.field_type); + } + if !self.address.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.address); + } + my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(8, &self.params); + if self.payload != 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.resource_id.is_empty() { + os.write_string(2, &self.resource_id)?; + } + if !self.resource_uri.is_empty() { + os.write_string(3, &self.resource_uri)?; + } + if !self.token.is_empty() { + os.write_string(4, &self.token)?; + } + if let Some(ref v) = self.expiration.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.field_type.is_empty() { + os.write_string(6, &self.field_type)?; + } + if !self.address.is_empty() { + os.write_string(7, &self.address)?; + } + ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(8, &self.params, os)?; + if self.payload != false { + os.write_bool(9, self.payload)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Channel { + Channel::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &Channel| { &m.id }, + |m: &mut Channel| { &mut m.id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "resource_id", + |m: &Channel| { &m.resource_id }, + |m: &mut Channel| { &mut m.resource_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "resource_uri", + |m: &Channel| { &m.resource_uri }, + |m: &mut Channel| { &mut m.resource_uri }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "token", + |m: &Channel| { &m.token }, + |m: &mut Channel| { &mut m.token }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "expiration", + |m: &Channel| { &m.expiration }, + |m: &mut Channel| { &mut m.expiration }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "type", + |m: &Channel| { &m.field_type }, + |m: &mut Channel| { &mut m.field_type }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "address", + |m: &Channel| { &m.address }, + |m: &mut Channel| { &mut m.address }, + )); + fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( + "params", + |m: &Channel| { &m.params }, + |m: &mut Channel| { &mut m.params }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "payload", + |m: &Channel| { &m.payload }, + |m: &mut Channel| { &mut m.payload }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Channel", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Channel { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Channel::new) + } +} + +impl ::protobuf::Clear for Channel { + fn clear(&mut self) { + self.id.clear(); + self.resource_id.clear(); + self.resource_uri.clear(); + self.token.clear(); + self.expiration.clear(); + self.field_type.clear(); + self.address.clear(); + self.params.clear(); + self.payload = false; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Channel { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Channel { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListChannelsResponse { + // message fields + pub items: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListChannelsResponse { + fn default() -> &'a ListChannelsResponse { + ::default_instance() + } +} + +impl ListChannelsResponse { + pub fn new() -> ListChannelsResponse { + ::std::default::Default::default() + } + + // repeated .google.storage.v1.ListChannelsResponse.Items items = 1; + + + pub fn get_items(&self) -> &[ListChannelsResponse_Items] { + &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 ListChannelsResponse { + fn is_initialized(&self) -> bool { + 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_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; + 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<()> { + for v in &self.items { + 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() -> ListChannelsResponse { + ListChannelsResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "items", + |m: &ListChannelsResponse| { &m.items }, + |m: &mut ListChannelsResponse| { &mut m.items }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListChannelsResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListChannelsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListChannelsResponse::new) + } +} + +impl ::protobuf::Clear for ListChannelsResponse { + fn clear(&mut self) { + self.items.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListChannelsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListChannelsResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListChannelsResponse_Items { + // message fields + pub channel_id: ::std::string::String, + pub resource_id: ::std::string::String, + pub push_url: ::std::string::String, + pub subscriber_email: ::std::string::String, + pub creation_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 ListChannelsResponse_Items { + fn default() -> &'a ListChannelsResponse_Items { + ::default_instance() + } +} + +impl ListChannelsResponse_Items { + pub fn new() -> ListChannelsResponse_Items { + ::std::default::Default::default() + } + + // string channel_id = 1; + + + pub fn get_channel_id(&self) -> &str { + &self.channel_id + } + pub fn clear_channel_id(&mut self) { + self.channel_id.clear(); + } + + // Param is passed by value, moved + pub fn set_channel_id(&mut self, v: ::std::string::String) { + self.channel_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_channel_id(&mut self) -> &mut ::std::string::String { + &mut self.channel_id + } + + // Take field + pub fn take_channel_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.channel_id, ::std::string::String::new()) + } + + // string resource_id = 2; + + + pub fn get_resource_id(&self) -> &str { + &self.resource_id + } + pub fn clear_resource_id(&mut self) { + self.resource_id.clear(); + } + + // Param is passed by value, moved + pub fn set_resource_id(&mut self, v: ::std::string::String) { + self.resource_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_resource_id(&mut self) -> &mut ::std::string::String { + &mut self.resource_id + } + + // Take field + pub fn take_resource_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.resource_id, ::std::string::String::new()) + } + + // string push_url = 3; + + + pub fn get_push_url(&self) -> &str { + &self.push_url + } + pub fn clear_push_url(&mut self) { + self.push_url.clear(); + } + + // Param is passed by value, moved + pub fn set_push_url(&mut self, v: ::std::string::String) { + self.push_url = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_push_url(&mut self) -> &mut ::std::string::String { + &mut self.push_url + } + + // Take field + pub fn take_push_url(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.push_url, ::std::string::String::new()) + } + + // string subscriber_email = 4; + + + pub fn get_subscriber_email(&self) -> &str { + &self.subscriber_email + } + pub fn clear_subscriber_email(&mut self) { + self.subscriber_email.clear(); + } + + // Param is passed by value, moved + pub fn set_subscriber_email(&mut self, v: ::std::string::String) { + self.subscriber_email = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_subscriber_email(&mut self) -> &mut ::std::string::String { + &mut self.subscriber_email + } + + // Take field + pub fn take_subscriber_email(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.subscriber_email, ::std::string::String::new()) + } + + // .google.protobuf.Timestamp creation_time = 5; + + + pub fn get_creation_time(&self) -> &::protobuf::well_known_types::Timestamp { + self.creation_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_creation_time(&mut self) { + self.creation_time.clear(); + } + + pub fn has_creation_time(&self) -> bool { + self.creation_time.is_some() + } + + // Param is passed by value, moved + pub fn set_creation_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.creation_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_creation_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.creation_time.is_none() { + self.creation_time.set_default(); + } + self.creation_time.as_mut().unwrap() + } + + // Take field + pub fn take_creation_time(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.creation_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } +} + +impl ::protobuf::Message for ListChannelsResponse_Items { + fn is_initialized(&self) -> bool { + for v in &self.creation_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.channel_id)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.push_url)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscriber_email)?; + }, + 5 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.creation_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.channel_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.channel_id); + } + if !self.resource_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.resource_id); + } + if !self.push_url.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.push_url); + } + if !self.subscriber_email.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.subscriber_email); + } + if let Some(ref v) = self.creation_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.channel_id.is_empty() { + os.write_string(1, &self.channel_id)?; + } + if !self.resource_id.is_empty() { + os.write_string(2, &self.resource_id)?; + } + if !self.push_url.is_empty() { + os.write_string(3, &self.push_url)?; + } + if !self.subscriber_email.is_empty() { + os.write_string(4, &self.subscriber_email)?; + } + if let Some(ref v) = self.creation_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() -> ListChannelsResponse_Items { + ListChannelsResponse_Items::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "channel_id", + |m: &ListChannelsResponse_Items| { &m.channel_id }, + |m: &mut ListChannelsResponse_Items| { &mut m.channel_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "resource_id", + |m: &ListChannelsResponse_Items| { &m.resource_id }, + |m: &mut ListChannelsResponse_Items| { &mut m.resource_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "push_url", + |m: &ListChannelsResponse_Items| { &m.push_url }, + |m: &mut ListChannelsResponse_Items| { &mut m.push_url }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "subscriber_email", + |m: &ListChannelsResponse_Items| { &m.subscriber_email }, + |m: &mut ListChannelsResponse_Items| { &mut m.subscriber_email }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "creation_time", + |m: &ListChannelsResponse_Items| { &m.creation_time }, + |m: &mut ListChannelsResponse_Items| { &mut m.creation_time }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListChannelsResponse.Items", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListChannelsResponse_Items { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListChannelsResponse_Items::new) + } +} + +impl ::protobuf::Clear for ListChannelsResponse_Items { + fn clear(&mut self) { + self.channel_id.clear(); + self.resource_id.clear(); + self.push_url.clear(); + self.subscriber_email.clear(); + self.creation_time.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListChannelsResponse_Items { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListChannelsResponse_Items { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ChecksummedData { + // message fields + pub content: ::std::vec::Vec, + pub crc32c: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ChecksummedData { + fn default() -> &'a ChecksummedData { + ::default_instance() + } +} + +impl ChecksummedData { + pub fn new() -> ChecksummedData { + ::std::default::Default::default() + } + + // bytes content = 1; + + + pub fn get_content(&self) -> &[u8] { + &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::vec::Vec) { + 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::vec::Vec { + &mut self.content + } + + // Take field + pub fn take_content(&mut self) -> ::std::vec::Vec { + ::std::mem::replace(&mut self.content, ::std::vec::Vec::new()) + } + + // .google.protobuf.UInt32Value crc32c = 2; + + + pub fn get_crc32c(&self) -> &::protobuf::well_known_types::UInt32Value { + self.crc32c.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::UInt32Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_crc32c(&mut self) { + self.crc32c.clear(); + } + + pub fn has_crc32c(&self) -> bool { + self.crc32c.is_some() + } + + // Param is passed by value, moved + pub fn set_crc32c(&mut self, v: ::protobuf::well_known_types::UInt32Value) { + self.crc32c = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_crc32c(&mut self) -> &mut ::protobuf::well_known_types::UInt32Value { + if self.crc32c.is_none() { + self.crc32c.set_default(); + } + self.crc32c.as_mut().unwrap() + } + + // Take field + pub fn take_crc32c(&mut self) -> ::protobuf::well_known_types::UInt32Value { + self.crc32c.take().unwrap_or_else(|| ::protobuf::well_known_types::UInt32Value::new()) + } +} + +impl ::protobuf::Message for ChecksummedData { + fn is_initialized(&self) -> bool { + for v in &self.crc32c { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::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.content)?; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crc32c)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.content.is_empty() { + my_size += ::protobuf::rt::bytes_size(1, &self.content); + } + if let Some(ref v) = self.crc32c.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.content.is_empty() { + os.write_bytes(1, &self.content)?; + } + if let Some(ref v) = self.crc32c.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() -> ChecksummedData { + ChecksummedData::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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>( + "content", + |m: &ChecksummedData| { &m.content }, + |m: &mut ChecksummedData| { &mut m.content }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::UInt32Value>>( + "crc32c", + |m: &ChecksummedData| { &m.crc32c }, + |m: &mut ChecksummedData| { &mut m.crc32c }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ChecksummedData", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ChecksummedData { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ChecksummedData::new) + } +} + +impl ::protobuf::Clear for ChecksummedData { + fn clear(&mut self) { + self.content.clear(); + self.crc32c.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ChecksummedData { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ChecksummedData { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ObjectChecksums { + // message fields + pub crc32c: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, + pub md5_hash: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ObjectChecksums { + fn default() -> &'a ObjectChecksums { + ::default_instance() + } +} + +impl ObjectChecksums { + pub fn new() -> ObjectChecksums { + ::std::default::Default::default() + } + + // .google.protobuf.UInt32Value crc32c = 1; + + + pub fn get_crc32c(&self) -> &::protobuf::well_known_types::UInt32Value { + self.crc32c.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::UInt32Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_crc32c(&mut self) { + self.crc32c.clear(); + } + + pub fn has_crc32c(&self) -> bool { + self.crc32c.is_some() + } + + // Param is passed by value, moved + pub fn set_crc32c(&mut self, v: ::protobuf::well_known_types::UInt32Value) { + self.crc32c = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_crc32c(&mut self) -> &mut ::protobuf::well_known_types::UInt32Value { + if self.crc32c.is_none() { + self.crc32c.set_default(); + } + self.crc32c.as_mut().unwrap() + } + + // Take field + pub fn take_crc32c(&mut self) -> ::protobuf::well_known_types::UInt32Value { + self.crc32c.take().unwrap_or_else(|| ::protobuf::well_known_types::UInt32Value::new()) + } + + // string md5_hash = 2; + + + pub fn get_md5_hash(&self) -> &str { + &self.md5_hash + } + pub fn clear_md5_hash(&mut self) { + self.md5_hash.clear(); + } + + // Param is passed by value, moved + pub fn set_md5_hash(&mut self, v: ::std::string::String) { + self.md5_hash = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_md5_hash(&mut self) -> &mut ::std::string::String { + &mut self.md5_hash + } + + // Take field + pub fn take_md5_hash(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.md5_hash, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for ObjectChecksums { + fn is_initialized(&self) -> bool { + for v in &self.crc32c { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::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.crc32c)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.md5_hash)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_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.crc32c.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.md5_hash.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.md5_hash); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_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.crc32c.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.md5_hash.is_empty() { + os.write_string(2, &self.md5_hash)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> ObjectChecksums { + ObjectChecksums::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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::UInt32Value>>( + "crc32c", + |m: &ObjectChecksums| { &m.crc32c }, + |m: &mut ObjectChecksums| { &mut m.crc32c }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "md5_hash", + |m: &ObjectChecksums| { &m.md5_hash }, + |m: &mut ObjectChecksums| { &mut m.md5_hash }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ObjectChecksums", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ObjectChecksums { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ObjectChecksums::new) + } +} + +impl ::protobuf::Clear for ObjectChecksums { + fn clear(&mut self) { + self.crc32c.clear(); + self.md5_hash.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ObjectChecksums { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ObjectChecksums { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct CommonEnums { + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a CommonEnums { + fn default() -> &'a CommonEnums { + ::default_instance() + } +} + +impl CommonEnums { + pub fn new() -> CommonEnums { + ::std::default::Default::default() + } +} + +impl ::protobuf::Message for CommonEnums { + fn is_initialized(&self) -> bool { + true + } + + fn merge_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() -> CommonEnums { + CommonEnums::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::( + "CommonEnums", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static CommonEnums { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(CommonEnums::new) + } +} + +impl ::protobuf::Clear for CommonEnums { + fn clear(&mut self) { + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for CommonEnums { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CommonEnums { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum CommonEnums_Projection { + PROJECTION_UNSPECIFIED = 0, + NO_ACL = 1, + FULL = 2, +} + +impl ::protobuf::ProtobufEnum for CommonEnums_Projection { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(CommonEnums_Projection::PROJECTION_UNSPECIFIED), + 1 => ::std::option::Option::Some(CommonEnums_Projection::NO_ACL), + 2 => ::std::option::Option::Some(CommonEnums_Projection::FULL), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [CommonEnums_Projection] = &[ + CommonEnums_Projection::PROJECTION_UNSPECIFIED, + CommonEnums_Projection::NO_ACL, + CommonEnums_Projection::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::("CommonEnums.Projection", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for CommonEnums_Projection { +} + +impl ::std::default::Default for CommonEnums_Projection { + fn default() -> Self { + CommonEnums_Projection::PROJECTION_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for CommonEnums_Projection { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum CommonEnums_PredefinedBucketAcl { + PREDEFINED_BUCKET_ACL_UNSPECIFIED = 0, + BUCKET_ACL_AUTHENTICATED_READ = 1, + BUCKET_ACL_PRIVATE = 2, + BUCKET_ACL_PROJECT_PRIVATE = 3, + BUCKET_ACL_PUBLIC_READ = 4, + BUCKET_ACL_PUBLIC_READ_WRITE = 5, +} + +impl ::protobuf::ProtobufEnum for CommonEnums_PredefinedBucketAcl { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED), + 1 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_AUTHENTICATED_READ), + 2 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PRIVATE), + 3 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PROJECT_PRIVATE), + 4 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PUBLIC_READ), + 5 => ::std::option::Option::Some(CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PUBLIC_READ_WRITE), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [CommonEnums_PredefinedBucketAcl] = &[ + CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED, + CommonEnums_PredefinedBucketAcl::BUCKET_ACL_AUTHENTICATED_READ, + CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PRIVATE, + CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PROJECT_PRIVATE, + CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PUBLIC_READ, + CommonEnums_PredefinedBucketAcl::BUCKET_ACL_PUBLIC_READ_WRITE, + ]; + 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::("CommonEnums.PredefinedBucketAcl", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for CommonEnums_PredefinedBucketAcl { +} + +impl ::std::default::Default for CommonEnums_PredefinedBucketAcl { + fn default() -> Self { + CommonEnums_PredefinedBucketAcl::PREDEFINED_BUCKET_ACL_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for CommonEnums_PredefinedBucketAcl { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum CommonEnums_PredefinedObjectAcl { + PREDEFINED_OBJECT_ACL_UNSPECIFIED = 0, + OBJECT_ACL_AUTHENTICATED_READ = 1, + OBJECT_ACL_BUCKET_OWNER_FULL_CONTROL = 2, + OBJECT_ACL_BUCKET_OWNER_READ = 3, + OBJECT_ACL_PRIVATE = 4, + OBJECT_ACL_PROJECT_PRIVATE = 5, + OBJECT_ACL_PUBLIC_READ = 6, +} + +impl ::protobuf::ProtobufEnum for CommonEnums_PredefinedObjectAcl { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED), + 1 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_AUTHENTICATED_READ), + 2 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_BUCKET_OWNER_FULL_CONTROL), + 3 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_BUCKET_OWNER_READ), + 4 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PRIVATE), + 5 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PROJECT_PRIVATE), + 6 => ::std::option::Option::Some(CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PUBLIC_READ), + _ => ::std::option::Option::None + } + } + + fn values() -> &'static [Self] { + static values: &'static [CommonEnums_PredefinedObjectAcl] = &[ + CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED, + CommonEnums_PredefinedObjectAcl::OBJECT_ACL_AUTHENTICATED_READ, + CommonEnums_PredefinedObjectAcl::OBJECT_ACL_BUCKET_OWNER_FULL_CONTROL, + CommonEnums_PredefinedObjectAcl::OBJECT_ACL_BUCKET_OWNER_READ, + CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PRIVATE, + CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PROJECT_PRIVATE, + CommonEnums_PredefinedObjectAcl::OBJECT_ACL_PUBLIC_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::("CommonEnums.PredefinedObjectAcl", file_descriptor_proto()) + }) + } +} + +impl ::std::marker::Copy for CommonEnums_PredefinedObjectAcl { +} + +impl ::std::default::Default for CommonEnums_PredefinedObjectAcl { + fn default() -> Self { + CommonEnums_PredefinedObjectAcl::PREDEFINED_OBJECT_ACL_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for CommonEnums_PredefinedObjectAcl { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ContentRange { + // message fields + pub start: i64, + pub end: i64, + pub complete_length: i64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ContentRange { + fn default() -> &'a ContentRange { + ::default_instance() + } +} + +impl ContentRange { + pub fn new() -> ContentRange { + ::std::default::Default::default() + } + + // int64 start = 1; + + + pub fn get_start(&self) -> i64 { + self.start + } + pub fn clear_start(&mut self) { + self.start = 0; + } + + // Param is passed by value, moved + pub fn set_start(&mut self, v: i64) { + self.start = v; + } + + // int64 end = 2; + + + pub fn get_end(&self) -> i64 { + self.end + } + pub fn clear_end(&mut self) { + self.end = 0; + } + + // Param is passed by value, moved + pub fn set_end(&mut self, v: i64) { + self.end = v; + } + + // int64 complete_length = 3; + + + pub fn get_complete_length(&self) -> i64 { + self.complete_length + } + pub fn clear_complete_length(&mut self) { + self.complete_length = 0; + } + + // Param is passed by value, moved + pub fn set_complete_length(&mut self, v: i64) { + self.complete_length = v; + } +} + +impl ::protobuf::Message for ContentRange { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&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 = 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.end = 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.complete_length = 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.start != 0 { + my_size += ::protobuf::rt::value_size(1, self.start, ::protobuf::wire_format::WireTypeVarint); + } + if self.end != 0 { + my_size += ::protobuf::rt::value_size(2, self.end, ::protobuf::wire_format::WireTypeVarint); + } + if self.complete_length != 0 { + my_size += ::protobuf::rt::value_size(3, self.complete_length, ::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.start != 0 { + os.write_int64(1, self.start)?; + } + if self.end != 0 { + os.write_int64(2, self.end)?; + } + if self.complete_length != 0 { + os.write_int64(3, self.complete_length)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> ContentRange { + ContentRange::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::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", + |m: &ContentRange| { &m.start }, + |m: &mut ContentRange| { &mut m.start }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "end", + |m: &ContentRange| { &m.end }, + |m: &mut ContentRange| { &mut m.end }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "complete_length", + |m: &ContentRange| { &m.complete_length }, + |m: &mut ContentRange| { &mut m.complete_length }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ContentRange", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ContentRange { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ContentRange::new) + } +} + +impl ::protobuf::Clear for ContentRange { + fn clear(&mut self) { + self.start = 0; + self.end = 0; + self.complete_length = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ContentRange { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ContentRange { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct HmacKeyMetadata { + // message fields + pub id: ::std::string::String, + pub access_id: ::std::string::String, + pub project_id: ::std::string::String, + pub service_account_email: ::std::string::String, + pub state: ::std::string::String, + pub time_created: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub updated: ::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 HmacKeyMetadata { + fn default() -> &'a HmacKeyMetadata { + ::default_instance() + } +} + +impl HmacKeyMetadata { + pub fn new() -> HmacKeyMetadata { + ::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 access_id = 2; + + + pub fn get_access_id(&self) -> &str { + &self.access_id + } + pub fn clear_access_id(&mut self) { + self.access_id.clear(); + } + + // Param is passed by value, moved + pub fn set_access_id(&mut self, v: ::std::string::String) { + self.access_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_access_id(&mut self) -> &mut ::std::string::String { + &mut self.access_id + } + + // Take field + pub fn take_access_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.access_id, ::std::string::String::new()) + } + + // string project_id = 3; + + + pub fn get_project_id(&self) -> &str { + &self.project_id + } + pub fn clear_project_id(&mut self) { + self.project_id.clear(); + } + + // Param is passed by value, moved + pub fn set_project_id(&mut self, v: ::std::string::String) { + self.project_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_id(&mut self) -> &mut ::std::string::String { + &mut self.project_id + } + + // Take field + pub fn take_project_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.project_id, ::std::string::String::new()) + } + + // string service_account_email = 4; + + + 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 state = 5; + + + 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.Timestamp time_created = 6; + + + pub fn get_time_created(&self) -> &::protobuf::well_known_types::Timestamp { + self.time_created.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_time_created(&mut self) { + self.time_created.clear(); + } + + pub fn has_time_created(&self) -> bool { + self.time_created.is_some() + } + + // Param is passed by value, moved + pub fn set_time_created(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.time_created = ::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_created(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.time_created.is_none() { + self.time_created.set_default(); + } + self.time_created.as_mut().unwrap() + } + + // Take field + pub fn take_time_created(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.time_created.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // .google.protobuf.Timestamp updated = 7; + + + pub fn get_updated(&self) -> &::protobuf::well_known_types::Timestamp { + self.updated.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_updated(&mut self) { + self.updated.clear(); + } + + pub fn has_updated(&self) -> bool { + self.updated.is_some() + } + + // Param is passed by value, moved + pub fn set_updated(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.updated = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_updated(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.updated.is_none() { + self.updated.set_default(); + } + self.updated.as_mut().unwrap() + } + + // Take field + pub fn take_updated(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.updated.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()) + } +} + +impl ::protobuf::Message for HmacKeyMetadata { + fn is_initialized(&self) -> bool { + for v in &self.time_created { + if !v.is_initialized() { + return false; + } + }; + for v in &self.updated { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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.access_id)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project_id)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_account_email)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state)?; + }, + 6 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_created)?; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.updated)?; + }, + 8 => { + ::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.id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.id); + } + if !self.access_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.access_id); + } + if !self.project_id.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.project_id); + } + if !self.service_account_email.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.service_account_email); + } + if !self.state.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.state); + } + if let Some(ref v) = self.time_created.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.updated.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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.access_id.is_empty() { + os.write_string(2, &self.access_id)?; + } + if !self.project_id.is_empty() { + os.write_string(3, &self.project_id)?; + } + if !self.service_account_email.is_empty() { + os.write_string(4, &self.service_account_email)?; + } + if !self.state.is_empty() { + os.write_string(5, &self.state)?; + } + if let Some(ref v) = self.time_created.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.updated.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> HmacKeyMetadata { + HmacKeyMetadata::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &HmacKeyMetadata| { &m.id }, + |m: &mut HmacKeyMetadata| { &mut m.id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "access_id", + |m: &HmacKeyMetadata| { &m.access_id }, + |m: &mut HmacKeyMetadata| { &mut m.access_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "project_id", + |m: &HmacKeyMetadata| { &m.project_id }, + |m: &mut HmacKeyMetadata| { &mut m.project_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "service_account_email", + |m: &HmacKeyMetadata| { &m.service_account_email }, + |m: &mut HmacKeyMetadata| { &mut m.service_account_email }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "state", + |m: &HmacKeyMetadata| { &m.state }, + |m: &mut HmacKeyMetadata| { &mut m.state }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "time_created", + |m: &HmacKeyMetadata| { &m.time_created }, + |m: &mut HmacKeyMetadata| { &mut m.time_created }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "updated", + |m: &HmacKeyMetadata| { &m.updated }, + |m: &mut HmacKeyMetadata| { &mut m.updated }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "etag", + |m: &HmacKeyMetadata| { &m.etag }, + |m: &mut HmacKeyMetadata| { &mut m.etag }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "HmacKeyMetadata", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static HmacKeyMetadata { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(HmacKeyMetadata::new) + } +} + +impl ::protobuf::Clear for HmacKeyMetadata { + fn clear(&mut self) { + self.id.clear(); + self.access_id.clear(); + self.project_id.clear(); + self.service_account_email.clear(); + self.state.clear(); + self.time_created.clear(); + self.updated.clear(); + self.etag.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for HmacKeyMetadata { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for HmacKeyMetadata { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Notification { + // message fields + pub topic: ::std::string::String, + pub event_types: ::protobuf::RepeatedField<::std::string::String>, + pub custom_attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + pub etag: ::std::string::String, + pub object_name_prefix: ::std::string::String, + pub payload_format: ::std::string::String, + pub id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Notification { + fn default() -> &'a Notification { + ::default_instance() + } +} + +impl Notification { + pub fn new() -> Notification { + ::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 string event_types = 2; + + + pub fn get_event_types(&self) -> &[::std::string::String] { + &self.event_types + } + pub fn clear_event_types(&mut self) { + self.event_types.clear(); + } + + // Param is passed by value, moved + pub fn set_event_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.event_types = v; + } + + // Mutable pointer to the field. + pub fn mut_event_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.event_types + } + + // Take field + pub fn take_event_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.event_types, ::protobuf::RepeatedField::new()) + } + + // repeated .google.storage.v1.Notification.CustomAttributesEntry custom_attributes = 3; + + + pub fn get_custom_attributes(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { + &self.custom_attributes + } + pub fn clear_custom_attributes(&mut self) { + self.custom_attributes.clear(); + } + + // Param is passed by value, moved + pub fn set_custom_attributes(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { + self.custom_attributes = v; + } + + // Mutable pointer to the field. + pub fn mut_custom_attributes(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { + &mut self.custom_attributes + } + + // Take field + pub fn take_custom_attributes(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { + ::std::mem::replace(&mut self.custom_attributes, ::std::collections::HashMap::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()) + } + + // string object_name_prefix = 5; + + + pub fn get_object_name_prefix(&self) -> &str { + &self.object_name_prefix + } + pub fn clear_object_name_prefix(&mut self) { + self.object_name_prefix.clear(); + } + + // Param is passed by value, moved + pub fn set_object_name_prefix(&mut self, v: ::std::string::String) { + self.object_name_prefix = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_object_name_prefix(&mut self) -> &mut ::std::string::String { + &mut self.object_name_prefix + } + + // Take field + pub fn take_object_name_prefix(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.object_name_prefix, ::std::string::String::new()) + } + + // string payload_format = 6; + + + pub fn get_payload_format(&self) -> &str { + &self.payload_format + } + pub fn clear_payload_format(&mut self) { + self.payload_format.clear(); + } + + // Param is passed by value, moved + pub fn set_payload_format(&mut self, v: ::std::string::String) { + self.payload_format = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_payload_format(&mut self) -> &mut ::std::string::String { + &mut self.payload_format + } + + // Take field + pub fn take_payload_format(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.payload_format, ::std::string::String::new()) + } + + // string id = 7; + + + 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()) + } +} + +impl ::protobuf::Message for Notification { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.event_types)?; + }, + 3 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.custom_attributes)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object_name_prefix)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.payload_format)?; + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.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.topic.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.topic); + } + for value in &self.event_types { + my_size += ::protobuf::rt::string_size(2, &value); + }; + my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.custom_attributes); + if !self.etag.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.etag); + } + if !self.object_name_prefix.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.object_name_prefix); + } + if !self.payload_format.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.payload_format); + } + if !self.id.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.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.topic.is_empty() { + os.write_string(1, &self.topic)?; + } + for v in &self.event_types { + os.write_string(2, &v)?; + }; + ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.custom_attributes, os)?; + if !self.etag.is_empty() { + os.write_string(4, &self.etag)?; + } + if !self.object_name_prefix.is_empty() { + os.write_string(5, &self.object_name_prefix)?; + } + if !self.payload_format.is_empty() { + os.write_string(6, &self.payload_format)?; + } + if !self.id.is_empty() { + os.write_string(7, &self.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() -> Notification { + Notification::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &Notification| { &m.topic }, + |m: &mut Notification| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "event_types", + |m: &Notification| { &m.event_types }, + |m: &mut Notification| { &mut m.event_types }, + )); + fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( + "custom_attributes", + |m: &Notification| { &m.custom_attributes }, + |m: &mut Notification| { &mut m.custom_attributes }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "etag", + |m: &Notification| { &m.etag }, + |m: &mut Notification| { &mut m.etag }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object_name_prefix", + |m: &Notification| { &m.object_name_prefix }, + |m: &mut Notification| { &mut m.object_name_prefix }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "payload_format", + |m: &Notification| { &m.payload_format }, + |m: &mut Notification| { &mut m.payload_format }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "id", + |m: &Notification| { &m.id }, + |m: &mut Notification| { &mut m.id }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Notification", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Notification { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Notification::new) + } +} + +impl ::protobuf::Clear for Notification { + fn clear(&mut self) { + self.topic.clear(); + self.event_types.clear(); + self.custom_attributes.clear(); + self.etag.clear(); + self.object_name_prefix.clear(); + self.payload_format.clear(); + self.id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Notification { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Notification { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListNotificationsResponse { + // message fields + pub items: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListNotificationsResponse { + fn default() -> &'a ListNotificationsResponse { + ::default_instance() + } +} + +impl ListNotificationsResponse { + pub fn new() -> ListNotificationsResponse { + ::std::default::Default::default() + } + + // repeated .google.storage.v1.Notification items = 1; + + + pub fn get_items(&self) -> &[Notification] { + &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 ListNotificationsResponse { + fn is_initialized(&self) -> bool { + 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_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; + 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<()> { + for v in &self.items { + 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() -> ListNotificationsResponse { + ListNotificationsResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "items", + |m: &ListNotificationsResponse| { &m.items }, + |m: &mut ListNotificationsResponse| { &mut m.items }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListNotificationsResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListNotificationsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListNotificationsResponse::new) + } +} + +impl ::protobuf::Clear for ListNotificationsResponse { + fn clear(&mut self) { + self.items.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListNotificationsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListNotificationsResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Object { + // message fields + pub content_encoding: ::std::string::String, + pub content_disposition: ::std::string::String, + pub cache_control: ::std::string::String, + pub acl: ::protobuf::RepeatedField, + pub content_language: ::std::string::String, + pub metageneration: i64, + pub time_deleted: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub content_type: ::std::string::String, + pub size: i64, + pub time_created: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub crc32c: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, + pub component_count: i32, + pub md5_hash: ::std::string::String, + pub etag: ::std::string::String, + pub updated: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub storage_class: ::std::string::String, + pub kms_key_name: ::std::string::String, + pub time_storage_class_updated: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub temporary_hold: bool, + pub retention_expiration_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + pub metadata: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + pub event_based_hold: ::protobuf::SingularPtrField<::protobuf::well_known_types::BoolValue>, + pub name: ::std::string::String, + pub id: ::std::string::String, + pub bucket: ::std::string::String, + pub generation: i64, + pub owner: ::protobuf::SingularPtrField, + pub customer_encryption: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Object { + fn default() -> &'a Object { + ::default_instance() + } +} + +impl Object { + pub fn new() -> Object { + ::std::default::Default::default() + } + + // string content_encoding = 1; + + + pub fn get_content_encoding(&self) -> &str { + &self.content_encoding + } + pub fn clear_content_encoding(&mut self) { + self.content_encoding.clear(); + } + + // Param is passed by value, moved + pub fn set_content_encoding(&mut self, v: ::std::string::String) { + self.content_encoding = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_content_encoding(&mut self) -> &mut ::std::string::String { + &mut self.content_encoding + } + + // Take field + pub fn take_content_encoding(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.content_encoding, ::std::string::String::new()) + } + + // string content_disposition = 2; + + + pub fn get_content_disposition(&self) -> &str { + &self.content_disposition + } + pub fn clear_content_disposition(&mut self) { + self.content_disposition.clear(); + } + + // Param is passed by value, moved + pub fn set_content_disposition(&mut self, v: ::std::string::String) { + self.content_disposition = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_content_disposition(&mut self) -> &mut ::std::string::String { + &mut self.content_disposition + } + + // Take field + pub fn take_content_disposition(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.content_disposition, ::std::string::String::new()) + } + + // string cache_control = 3; + + + pub fn get_cache_control(&self) -> &str { + &self.cache_control + } + pub fn clear_cache_control(&mut self) { + self.cache_control.clear(); + } + + // Param is passed by value, moved + pub fn set_cache_control(&mut self, v: ::std::string::String) { + self.cache_control = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_cache_control(&mut self) -> &mut ::std::string::String { + &mut self.cache_control + } + + // Take field + pub fn take_cache_control(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.cache_control, ::std::string::String::new()) + } + + // repeated .google.storage.v1.ObjectAccessControl acl = 4; + + + pub fn get_acl(&self) -> &[ObjectAccessControl] { + &self.acl + } + pub fn clear_acl(&mut self) { + self.acl.clear(); + } + + // Param is passed by value, moved + pub fn set_acl(&mut self, v: ::protobuf::RepeatedField) { + self.acl = v; + } + + // Mutable pointer to the field. + pub fn mut_acl(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.acl + } + + // Take field + pub fn take_acl(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.acl, ::protobuf::RepeatedField::new()) + } + + // string content_language = 5; + + + pub fn get_content_language(&self) -> &str { + &self.content_language + } + pub fn clear_content_language(&mut self) { + self.content_language.clear(); + } + + // Param is passed by value, moved + pub fn set_content_language(&mut self, v: ::std::string::String) { + self.content_language = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_content_language(&mut self) -> &mut ::std::string::String { + &mut self.content_language + } + + // Take field + pub fn take_content_language(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.content_language, ::std::string::String::new()) + } + + // int64 metageneration = 6; + + + pub fn get_metageneration(&self) -> i64 { + self.metageneration + } + pub fn clear_metageneration(&mut self) { + self.metageneration = 0; + } + + // Param is passed by value, moved + pub fn set_metageneration(&mut self, v: i64) { + self.metageneration = v; + } + + // .google.protobuf.Timestamp time_deleted = 7; + + + pub fn get_time_deleted(&self) -> &::protobuf::well_known_types::Timestamp { + self.time_deleted.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_time_deleted(&mut self) { + self.time_deleted.clear(); + } + + pub fn has_time_deleted(&self) -> bool { + self.time_deleted.is_some() + } + + // Param is passed by value, moved + pub fn set_time_deleted(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.time_deleted = ::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_deleted(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.time_deleted.is_none() { + self.time_deleted.set_default(); + } + self.time_deleted.as_mut().unwrap() + } + + // Take field + pub fn take_time_deleted(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.time_deleted.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // string content_type = 8; + + + 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()) + } + + // int64 size = 9; + + + pub fn get_size(&self) -> i64 { + self.size + } + pub fn clear_size(&mut self) { + self.size = 0; + } + + // Param is passed by value, moved + pub fn set_size(&mut self, v: i64) { + self.size = v; + } + + // .google.protobuf.Timestamp time_created = 10; + + + pub fn get_time_created(&self) -> &::protobuf::well_known_types::Timestamp { + self.time_created.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_time_created(&mut self) { + self.time_created.clear(); + } + + pub fn has_time_created(&self) -> bool { + self.time_created.is_some() + } + + // Param is passed by value, moved + pub fn set_time_created(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.time_created = ::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_created(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.time_created.is_none() { + self.time_created.set_default(); + } + self.time_created.as_mut().unwrap() + } + + // Take field + pub fn take_time_created(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.time_created.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // .google.protobuf.UInt32Value crc32c = 11; + + + pub fn get_crc32c(&self) -> &::protobuf::well_known_types::UInt32Value { + self.crc32c.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::UInt32Value as ::protobuf::Message>::default_instance()) + } + pub fn clear_crc32c(&mut self) { + self.crc32c.clear(); + } + + pub fn has_crc32c(&self) -> bool { + self.crc32c.is_some() + } + + // Param is passed by value, moved + pub fn set_crc32c(&mut self, v: ::protobuf::well_known_types::UInt32Value) { + self.crc32c = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_crc32c(&mut self) -> &mut ::protobuf::well_known_types::UInt32Value { + if self.crc32c.is_none() { + self.crc32c.set_default(); + } + self.crc32c.as_mut().unwrap() + } + + // Take field + pub fn take_crc32c(&mut self) -> ::protobuf::well_known_types::UInt32Value { + self.crc32c.take().unwrap_or_else(|| ::protobuf::well_known_types::UInt32Value::new()) + } + + // int32 component_count = 12; + + + pub fn get_component_count(&self) -> i32 { + self.component_count + } + pub fn clear_component_count(&mut self) { + self.component_count = 0; + } + + // Param is passed by value, moved + pub fn set_component_count(&mut self, v: i32) { + self.component_count = v; + } + + // string md5_hash = 13; + + + pub fn get_md5_hash(&self) -> &str { + &self.md5_hash + } + pub fn clear_md5_hash(&mut self) { + self.md5_hash.clear(); + } + + // Param is passed by value, moved + pub fn set_md5_hash(&mut self, v: ::std::string::String) { + self.md5_hash = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_md5_hash(&mut self) -> &mut ::std::string::String { + &mut self.md5_hash + } + + // Take field + pub fn take_md5_hash(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.md5_hash, ::std::string::String::new()) + } + + // string etag = 14; + + + 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 updated = 15; + + + pub fn get_updated(&self) -> &::protobuf::well_known_types::Timestamp { + self.updated.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_updated(&mut self) { + self.updated.clear(); + } + + pub fn has_updated(&self) -> bool { + self.updated.is_some() + } + + // Param is passed by value, moved + pub fn set_updated(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.updated = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_updated(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.updated.is_none() { + self.updated.set_default(); + } + self.updated.as_mut().unwrap() + } + + // Take field + pub fn take_updated(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.updated.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // string storage_class = 16; + + + pub fn get_storage_class(&self) -> &str { + &self.storage_class + } + pub fn clear_storage_class(&mut self) { + self.storage_class.clear(); + } + + // Param is passed by value, moved + pub fn set_storage_class(&mut self, v: ::std::string::String) { + self.storage_class = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_storage_class(&mut self) -> &mut ::std::string::String { + &mut self.storage_class + } + + // Take field + pub fn take_storage_class(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.storage_class, ::std::string::String::new()) + } + + // string kms_key_name = 17; + + + 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()) + } + + // .google.protobuf.Timestamp time_storage_class_updated = 18; + + + pub fn get_time_storage_class_updated(&self) -> &::protobuf::well_known_types::Timestamp { + self.time_storage_class_updated.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_time_storage_class_updated(&mut self) { + self.time_storage_class_updated.clear(); + } + + pub fn has_time_storage_class_updated(&self) -> bool { + self.time_storage_class_updated.is_some() + } + + // Param is passed by value, moved + pub fn set_time_storage_class_updated(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.time_storage_class_updated = ::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_storage_class_updated(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.time_storage_class_updated.is_none() { + self.time_storage_class_updated.set_default(); + } + self.time_storage_class_updated.as_mut().unwrap() + } + + // Take field + pub fn take_time_storage_class_updated(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.time_storage_class_updated.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // bool temporary_hold = 19; + + + pub fn get_temporary_hold(&self) -> bool { + self.temporary_hold + } + pub fn clear_temporary_hold(&mut self) { + self.temporary_hold = false; + } + + // Param is passed by value, moved + pub fn set_temporary_hold(&mut self, v: bool) { + self.temporary_hold = v; + } + + // .google.protobuf.Timestamp retention_expiration_time = 20; + + + pub fn get_retention_expiration_time(&self) -> &::protobuf::well_known_types::Timestamp { + self.retention_expiration_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + } + pub fn clear_retention_expiration_time(&mut self) { + self.retention_expiration_time.clear(); + } + + pub fn has_retention_expiration_time(&self) -> bool { + self.retention_expiration_time.is_some() + } + + // Param is passed by value, moved + pub fn set_retention_expiration_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { + self.retention_expiration_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_retention_expiration_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { + if self.retention_expiration_time.is_none() { + self.retention_expiration_time.set_default(); + } + self.retention_expiration_time.as_mut().unwrap() + } + + // Take field + pub fn take_retention_expiration_time(&mut self) -> ::protobuf::well_known_types::Timestamp { + self.retention_expiration_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + } + + // repeated .google.storage.v1.Object.MetadataEntry metadata = 21; + + + 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()) + } + + // .google.protobuf.BoolValue event_based_hold = 29; + + + pub fn get_event_based_hold(&self) -> &::protobuf::well_known_types::BoolValue { + self.event_based_hold.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::BoolValue as ::protobuf::Message>::default_instance()) + } + pub fn clear_event_based_hold(&mut self) { + self.event_based_hold.clear(); + } + + pub fn has_event_based_hold(&self) -> bool { + self.event_based_hold.is_some() + } + + // Param is passed by value, moved + pub fn set_event_based_hold(&mut self, v: ::protobuf::well_known_types::BoolValue) { + self.event_based_hold = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_event_based_hold(&mut self) -> &mut ::protobuf::well_known_types::BoolValue { + if self.event_based_hold.is_none() { + self.event_based_hold.set_default(); + } + self.event_based_hold.as_mut().unwrap() + } + + // Take field + pub fn take_event_based_hold(&mut self) -> ::protobuf::well_known_types::BoolValue { + self.event_based_hold.take().unwrap_or_else(|| ::protobuf::well_known_types::BoolValue::new()) + } + + // string name = 23; + + + 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 id = 24; + + + 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 bucket = 25; + + + 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()) + } + + // int64 generation = 26; + + + 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; + } + + // .google.storage.v1.Owner owner = 27; + + + pub fn get_owner(&self) -> &Owner { + self.owner.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_owner(&mut self) { + self.owner.clear(); + } + + pub fn has_owner(&self) -> bool { + self.owner.is_some() + } + + // Param is passed by value, moved + pub fn set_owner(&mut self, v: Owner) { + self.owner = ::protobuf::SingularPtrField::some(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 Owner { + if self.owner.is_none() { + self.owner.set_default(); + } + self.owner.as_mut().unwrap() + } + + // Take field + pub fn take_owner(&mut self) -> Owner { + self.owner.take().unwrap_or_else(|| Owner::new()) + } + + // .google.storage.v1.Object.CustomerEncryption customer_encryption = 28; + + + pub fn get_customer_encryption(&self) -> &Object_CustomerEncryption { + self.customer_encryption.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_customer_encryption(&mut self) { + self.customer_encryption.clear(); + } + + pub fn has_customer_encryption(&self) -> bool { + self.customer_encryption.is_some() + } + + // Param is passed by value, moved + pub fn set_customer_encryption(&mut self, v: Object_CustomerEncryption) { + self.customer_encryption = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_customer_encryption(&mut self) -> &mut Object_CustomerEncryption { + if self.customer_encryption.is_none() { + self.customer_encryption.set_default(); + } + self.customer_encryption.as_mut().unwrap() + } + + // Take field + pub fn take_customer_encryption(&mut self) -> Object_CustomerEncryption { + self.customer_encryption.take().unwrap_or_else(|| Object_CustomerEncryption::new()) + } +} + +impl ::protobuf::Message for Object { + fn is_initialized(&self) -> bool { + for v in &self.acl { + if !v.is_initialized() { + return false; + } + }; + for v in &self.time_deleted { + if !v.is_initialized() { + return false; + } + }; + for v in &self.time_created { + if !v.is_initialized() { + return false; + } + }; + for v in &self.crc32c { + if !v.is_initialized() { + return false; + } + }; + for v in &self.updated { + if !v.is_initialized() { + return false; + } + }; + for v in &self.time_storage_class_updated { + if !v.is_initialized() { + return false; + } + }; + for v in &self.retention_expiration_time { + if !v.is_initialized() { + return false; + } + }; + for v in &self.event_based_hold { + if !v.is_initialized() { + return false; + } + }; + for v in &self.owner { + if !v.is_initialized() { + return false; + } + }; + for v in &self.customer_encryption { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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_encoding)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content_disposition)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cache_control)?; + }, + 4 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.acl)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content_language)?; + }, + 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.metageneration = tmp; + }, + 7 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_deleted)?; + }, + 8 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content_type)?; + }, + 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.size = tmp; + }, + 10 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_created)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crc32c)?; + }, + 12 => { + 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.component_count = tmp; + }, + 13 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.md5_hash)?; + }, + 14 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; + }, + 15 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.updated)?; + }, + 16 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.storage_class)?; + }, + 17 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_storage_class_updated)?; + }, + 19 => { + 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.temporary_hold = tmp; + }, + 20 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.retention_expiration_time)?; + }, + 21 => { + ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.metadata)?; + }, + 29 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.event_based_hold)?; + }, + 23 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + }, + 24 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; + }, + 25 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; + }, + 26 => { + 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; + }, + 27 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.owner)?; + }, + 28 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.customer_encryption)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.content_encoding.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.content_encoding); + } + if !self.content_disposition.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.content_disposition); + } + if !self.cache_control.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.cache_control); + } + for value in &self.acl { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + }; + if !self.content_language.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.content_language); + } + if self.metageneration != 0 { + my_size += ::protobuf::rt::value_size(6, self.metageneration, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.time_deleted.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.content_type.is_empty() { + my_size += ::protobuf::rt::string_size(8, &self.content_type); + } + if self.size != 0 { + my_size += ::protobuf::rt::value_size(9, self.size, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.time_created.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.crc32c.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.component_count != 0 { + my_size += ::protobuf::rt::value_size(12, self.component_count, ::protobuf::wire_format::WireTypeVarint); + } + if !self.md5_hash.is_empty() { + my_size += ::protobuf::rt::string_size(13, &self.md5_hash); + } + if !self.etag.is_empty() { + my_size += ::protobuf::rt::string_size(14, &self.etag); + } + if let Some(ref v) = self.updated.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.storage_class.is_empty() { + my_size += ::protobuf::rt::string_size(16, &self.storage_class); + } + if !self.kms_key_name.is_empty() { + my_size += ::protobuf::rt::string_size(17, &self.kms_key_name); + } + if let Some(ref v) = self.time_storage_class_updated.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if self.temporary_hold != false { + my_size += 3; + } + if let Some(ref v) = self.retention_expiration_time.as_ref() { + let len = v.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::ProtobufTypeString>(21, &self.metadata); + if let Some(ref v) = self.event_based_hold.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(23, &self.name); + } + if !self.id.is_empty() { + my_size += ::protobuf::rt::string_size(24, &self.id); + } + if !self.bucket.is_empty() { + my_size += ::protobuf::rt::string_size(25, &self.bucket); + } + if self.generation != 0 { + my_size += ::protobuf::rt::value_size(26, self.generation, ::protobuf::wire_format::WireTypeVarint); + } + if let Some(ref v) = self.owner.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + } + if let Some(ref v) = self.customer_encryption.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.content_encoding.is_empty() { + os.write_string(1, &self.content_encoding)?; + } + if !self.content_disposition.is_empty() { + os.write_string(2, &self.content_disposition)?; + } + if !self.cache_control.is_empty() { + os.write_string(3, &self.cache_control)?; + } + for v in &self.acl { + 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.content_language.is_empty() { + os.write_string(5, &self.content_language)?; + } + if self.metageneration != 0 { + os.write_int64(6, self.metageneration)?; + } + if let Some(ref v) = self.time_deleted.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.content_type.is_empty() { + os.write_string(8, &self.content_type)?; + } + if self.size != 0 { + os.write_int64(9, self.size)?; + } + if let Some(ref v) = self.time_created.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.crc32c.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.component_count != 0 { + os.write_int32(12, self.component_count)?; + } + if !self.md5_hash.is_empty() { + os.write_string(13, &self.md5_hash)?; + } + if !self.etag.is_empty() { + os.write_string(14, &self.etag)?; + } + if let Some(ref v) = self.updated.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.storage_class.is_empty() { + os.write_string(16, &self.storage_class)?; + } + if !self.kms_key_name.is_empty() { + os.write_string(17, &self.kms_key_name)?; + } + if let Some(ref v) = self.time_storage_class_updated.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 self.temporary_hold != false { + os.write_bool(19, self.temporary_hold)?; + } + if let Some(ref v) = self.retention_expiration_time.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)?; + } + ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(21, &self.metadata, os)?; + if let Some(ref v) = self.event_based_hold.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 !self.name.is_empty() { + os.write_string(23, &self.name)?; + } + if !self.id.is_empty() { + os.write_string(24, &self.id)?; + } + if !self.bucket.is_empty() { + os.write_string(25, &self.bucket)?; + } + if self.generation != 0 { + os.write_int64(26, self.generation)?; + } + if let Some(ref v) = self.owner.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.customer_encryption.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() -> Object { + Object::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_encoding", + |m: &Object| { &m.content_encoding }, + |m: &mut Object| { &mut m.content_encoding }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "content_disposition", + |m: &Object| { &m.content_disposition }, + |m: &mut Object| { &mut m.content_disposition }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "cache_control", + |m: &Object| { &m.cache_control }, + |m: &mut Object| { &mut m.cache_control }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "acl", + |m: &Object| { &m.acl }, + |m: &mut Object| { &mut m.acl }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "content_language", + |m: &Object| { &m.content_language }, + |m: &mut Object| { &mut m.content_language }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "metageneration", + |m: &Object| { &m.metageneration }, + |m: &mut Object| { &mut m.metageneration }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "time_deleted", + |m: &Object| { &m.time_deleted }, + |m: &mut Object| { &mut m.time_deleted }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "content_type", + |m: &Object| { &m.content_type }, + |m: &mut Object| { &mut m.content_type }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "size", + |m: &Object| { &m.size }, + |m: &mut Object| { &mut m.size }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "time_created", + |m: &Object| { &m.time_created }, + |m: &mut Object| { &mut m.time_created }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::UInt32Value>>( + "crc32c", + |m: &Object| { &m.crc32c }, + |m: &mut Object| { &mut m.crc32c }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + "component_count", + |m: &Object| { &m.component_count }, + |m: &mut Object| { &mut m.component_count }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "md5_hash", + |m: &Object| { &m.md5_hash }, + |m: &mut Object| { &mut m.md5_hash }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "etag", + |m: &Object| { &m.etag }, + |m: &mut Object| { &mut m.etag }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "updated", + |m: &Object| { &m.updated }, + |m: &mut Object| { &mut m.updated }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "storage_class", + |m: &Object| { &m.storage_class }, + |m: &mut Object| { &mut m.storage_class }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "kms_key_name", + |m: &Object| { &m.kms_key_name }, + |m: &mut Object| { &mut m.kms_key_name }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "time_storage_class_updated", + |m: &Object| { &m.time_storage_class_updated }, + |m: &mut Object| { &mut m.time_storage_class_updated }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "temporary_hold", + |m: &Object| { &m.temporary_hold }, + |m: &mut Object| { &mut m.temporary_hold }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + "retention_expiration_time", + |m: &Object| { &m.retention_expiration_time }, + |m: &mut Object| { &mut m.retention_expiration_time }, + )); + fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( + "metadata", + |m: &Object| { &m.metadata }, + |m: &mut Object| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::BoolValue>>( + "event_based_hold", + |m: &Object| { &m.event_based_hold }, + |m: &mut Object| { &mut m.event_based_hold }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "name", + |m: &Object| { &m.name }, + |m: &mut Object| { &mut m.name }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "id", + |m: &Object| { &m.id }, + |m: &mut Object| { &mut m.id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "bucket", + |m: &Object| { &m.bucket }, + |m: &mut Object| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &Object| { &m.generation }, + |m: &mut Object| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "owner", + |m: &Object| { &m.owner }, + |m: &mut Object| { &mut m.owner }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "customer_encryption", + |m: &Object| { &m.customer_encryption }, + |m: &mut Object| { &mut m.customer_encryption }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Object", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Object { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Object::new) + } +} + +impl ::protobuf::Clear for Object { + fn clear(&mut self) { + self.content_encoding.clear(); + self.content_disposition.clear(); + self.cache_control.clear(); + self.acl.clear(); + self.content_language.clear(); + self.metageneration = 0; + self.time_deleted.clear(); + self.content_type.clear(); + self.size = 0; + self.time_created.clear(); + self.crc32c.clear(); + self.component_count = 0; + self.md5_hash.clear(); + self.etag.clear(); + self.updated.clear(); + self.storage_class.clear(); + self.kms_key_name.clear(); + self.time_storage_class_updated.clear(); + self.temporary_hold = false; + self.retention_expiration_time.clear(); + self.metadata.clear(); + self.event_based_hold.clear(); + self.name.clear(); + self.id.clear(); + self.bucket.clear(); + self.generation = 0; + self.owner.clear(); + self.customer_encryption.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Object { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Object { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Object_CustomerEncryption { + // message fields + pub encryption_algorithm: ::std::string::String, + pub key_sha256: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Object_CustomerEncryption { + fn default() -> &'a Object_CustomerEncryption { + ::default_instance() + } +} + +impl Object_CustomerEncryption { + pub fn new() -> Object_CustomerEncryption { + ::std::default::Default::default() + } + + // string encryption_algorithm = 1; + + + pub fn get_encryption_algorithm(&self) -> &str { + &self.encryption_algorithm + } + pub fn clear_encryption_algorithm(&mut self) { + self.encryption_algorithm.clear(); + } + + // Param is passed by value, moved + pub fn set_encryption_algorithm(&mut self, v: ::std::string::String) { + self.encryption_algorithm = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_encryption_algorithm(&mut self) -> &mut ::std::string::String { + &mut self.encryption_algorithm + } + + // Take field + pub fn take_encryption_algorithm(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.encryption_algorithm, ::std::string::String::new()) + } + + // string key_sha256 = 2; + + + pub fn get_key_sha256(&self) -> &str { + &self.key_sha256 + } + pub fn clear_key_sha256(&mut self) { + self.key_sha256.clear(); + } + + // Param is passed by value, moved + pub fn set_key_sha256(&mut self, v: ::std::string::String) { + self.key_sha256 = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_key_sha256(&mut self) -> &mut ::std::string::String { + &mut self.key_sha256 + } + + // Take field + pub fn take_key_sha256(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.key_sha256, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for Object_CustomerEncryption { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (field_number, wire_type) = is.read_tag_unpack()?; + match field_number { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.encryption_algorithm)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.key_sha256)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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_algorithm.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.encryption_algorithm); + } + if !self.key_sha256.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.key_sha256); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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_algorithm.is_empty() { + os.write_string(1, &self.encryption_algorithm)?; + } + if !self.key_sha256.is_empty() { + os.write_string(2, &self.key_sha256)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> Object_CustomerEncryption { + Object_CustomerEncryption::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "encryption_algorithm", + |m: &Object_CustomerEncryption| { &m.encryption_algorithm }, + |m: &mut Object_CustomerEncryption| { &mut m.encryption_algorithm }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "key_sha256", + |m: &Object_CustomerEncryption| { &m.key_sha256 }, + |m: &mut Object_CustomerEncryption| { &mut m.key_sha256 }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Object.CustomerEncryption", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Object_CustomerEncryption { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Object_CustomerEncryption::new) + } +} + +impl ::protobuf::Clear for Object_CustomerEncryption { + fn clear(&mut self) { + self.encryption_algorithm.clear(); + self.key_sha256.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Object_CustomerEncryption { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Object_CustomerEncryption { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ObjectAccessControl { + // message fields + pub role: ::std::string::String, + pub etag: ::std::string::String, + pub id: ::std::string::String, + pub bucket: ::std::string::String, + pub object: ::std::string::String, + pub generation: i64, + pub entity: ::std::string::String, + pub entity_id: ::std::string::String, + pub email: ::std::string::String, + pub domain: ::std::string::String, + pub project_team: ::protobuf::SingularPtrField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ObjectAccessControl { + fn default() -> &'a ObjectAccessControl { + ::default_instance() + } +} + +impl ObjectAccessControl { + pub fn new() -> ObjectAccessControl { + ::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()) + } + + // 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 id = 3; + + + 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 bucket = 4; + + + 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 = 5; + + + 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 = 6; + + + 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; + } + + // string entity = 7; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // string entity_id = 8; + + + pub fn get_entity_id(&self) -> &str { + &self.entity_id + } + pub fn clear_entity_id(&mut self) { + self.entity_id.clear(); + } + + // Param is passed by value, moved + pub fn set_entity_id(&mut self, v: ::std::string::String) { + self.entity_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity_id(&mut self) -> &mut ::std::string::String { + &mut self.entity_id + } + + // Take field + pub fn take_entity_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity_id, ::std::string::String::new()) + } + + // string email = 9; + + + pub fn get_email(&self) -> &str { + &self.email + } + pub fn clear_email(&mut self) { + self.email.clear(); + } + + // Param is passed by value, moved + pub fn set_email(&mut self, v: ::std::string::String) { + self.email = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_email(&mut self) -> &mut ::std::string::String { + &mut self.email + } + + // Take field + pub fn take_email(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.email, ::std::string::String::new()) + } + + // string domain = 10; + + + 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()) + } + + // .google.storage.v1.ProjectTeam project_team = 11; + + + pub fn get_project_team(&self) -> &ProjectTeam { + self.project_team.as_ref().unwrap_or_else(|| ::default_instance()) + } + pub fn clear_project_team(&mut self) { + self.project_team.clear(); + } + + pub fn has_project_team(&self) -> bool { + self.project_team.is_some() + } + + // Param is passed by value, moved + pub fn set_project_team(&mut self, v: ProjectTeam) { + self.project_team = ::protobuf::SingularPtrField::some(v); + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_team(&mut self) -> &mut ProjectTeam { + if self.project_team.is_none() { + self.project_team.set_default(); + } + self.project_team.as_mut().unwrap() + } + + // Take field + pub fn take_project_team(&mut self) -> ProjectTeam { + self.project_team.take().unwrap_or_else(|| ProjectTeam::new()) + } +} + +impl ::protobuf::Message for ObjectAccessControl { + fn is_initialized(&self) -> bool { + for v in &self.project_team { + if !v.is_initialized() { + return false; + } + }; + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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)?; + }, + 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.id)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; + }, + 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.generation = tmp; + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 8 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity_id)?; + }, + 9 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.email)?; + }, + 10 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.domain)?; + }, + 11 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.project_team)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.role.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.role); + } + if !self.etag.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.etag); + } + if !self.id.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.id); + } + if !self.bucket.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.bucket); + } + if !self.object.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.object); + } + if self.generation != 0 { + my_size += ::protobuf::rt::value_size(6, self.generation, ::protobuf::wire_format::WireTypeVarint); + } + if !self.entity.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.entity); + } + if !self.entity_id.is_empty() { + my_size += ::protobuf::rt::string_size(8, &self.entity_id); + } + if !self.email.is_empty() { + my_size += ::protobuf::rt::string_size(9, &self.email); + } + if !self.domain.is_empty() { + my_size += ::protobuf::rt::string_size(10, &self.domain); + } + if let Some(ref v) = self.project_team.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)?; + } + if !self.etag.is_empty() { + os.write_string(2, &self.etag)?; + } + if !self.id.is_empty() { + os.write_string(3, &self.id)?; + } + if !self.bucket.is_empty() { + os.write_string(4, &self.bucket)?; + } + if !self.object.is_empty() { + os.write_string(5, &self.object)?; + } + if self.generation != 0 { + os.write_int64(6, self.generation)?; + } + if !self.entity.is_empty() { + os.write_string(7, &self.entity)?; + } + if !self.entity_id.is_empty() { + os.write_string(8, &self.entity_id)?; + } + if !self.email.is_empty() { + os.write_string(9, &self.email)?; + } + if !self.domain.is_empty() { + os.write_string(10, &self.domain)?; + } + if let Some(ref v) = self.project_team.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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> ObjectAccessControl { + ObjectAccessControl::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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: &ObjectAccessControl| { &m.role }, + |m: &mut ObjectAccessControl| { &mut m.role }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "etag", + |m: &ObjectAccessControl| { &m.etag }, + |m: &mut ObjectAccessControl| { &mut m.etag }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "id", + |m: &ObjectAccessControl| { &m.id }, + |m: &mut ObjectAccessControl| { &mut m.id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "bucket", + |m: &ObjectAccessControl| { &m.bucket }, + |m: &mut ObjectAccessControl| { &mut m.bucket }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "object", + |m: &ObjectAccessControl| { &m.object }, + |m: &mut ObjectAccessControl| { &mut m.object }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "generation", + |m: &ObjectAccessControl| { &m.generation }, + |m: &mut ObjectAccessControl| { &mut m.generation }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &ObjectAccessControl| { &m.entity }, + |m: &mut ObjectAccessControl| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity_id", + |m: &ObjectAccessControl| { &m.entity_id }, + |m: &mut ObjectAccessControl| { &mut m.entity_id }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "email", + |m: &ObjectAccessControl| { &m.email }, + |m: &mut ObjectAccessControl| { &mut m.email }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "domain", + |m: &ObjectAccessControl| { &m.domain }, + |m: &mut ObjectAccessControl| { &mut m.domain }, + )); + fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "project_team", + |m: &ObjectAccessControl| { &m.project_team }, + |m: &mut ObjectAccessControl| { &mut m.project_team }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ObjectAccessControl", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ObjectAccessControl { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ObjectAccessControl::new) + } +} + +impl ::protobuf::Clear for ObjectAccessControl { + fn clear(&mut self) { + self.role.clear(); + self.etag.clear(); + self.id.clear(); + self.bucket.clear(); + self.object.clear(); + self.generation = 0; + self.entity.clear(); + self.entity_id.clear(); + self.email.clear(); + self.domain.clear(); + self.project_team.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ObjectAccessControl { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ObjectAccessControl { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListObjectAccessControlsResponse { + // message fields + pub items: ::protobuf::RepeatedField, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ListObjectAccessControlsResponse { + fn default() -> &'a ListObjectAccessControlsResponse { + ::default_instance() + } +} + +impl ListObjectAccessControlsResponse { + pub fn new() -> ListObjectAccessControlsResponse { + ::std::default::Default::default() + } + + // repeated .google.storage.v1.ObjectAccessControl items = 1; + + + pub fn get_items(&self) -> &[ObjectAccessControl] { + &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 ListObjectAccessControlsResponse { + fn is_initialized(&self) -> bool { + 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_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; + 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<()> { + for v in &self.items { + 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() -> ListObjectAccessControlsResponse { + ListObjectAccessControlsResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "items", + |m: &ListObjectAccessControlsResponse| { &m.items }, + |m: &mut ListObjectAccessControlsResponse| { &mut m.items }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListObjectAccessControlsResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListObjectAccessControlsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListObjectAccessControlsResponse::new) + } +} + +impl ::protobuf::Clear for ListObjectAccessControlsResponse { + fn clear(&mut self) { + self.items.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListObjectAccessControlsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListObjectAccessControlsResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ListObjectsResponse { + // message fields + pub prefixes: ::protobuf::RepeatedField<::std::string::String>, + pub items: ::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 ListObjectsResponse { + fn default() -> &'a ListObjectsResponse { + ::default_instance() + } +} + +impl ListObjectsResponse { + pub fn new() -> ListObjectsResponse { + ::std::default::Default::default() + } + + // repeated string prefixes = 1; + + + pub fn get_prefixes(&self) -> &[::std::string::String] { + &self.prefixes + } + pub fn clear_prefixes(&mut self) { + self.prefixes.clear(); + } + + // Param is passed by value, moved + pub fn set_prefixes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { + self.prefixes = v; + } + + // Mutable pointer to the field. + pub fn mut_prefixes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { + &mut self.prefixes + } + + // Take field + pub fn take_prefixes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { + ::std::mem::replace(&mut self.prefixes, ::protobuf::RepeatedField::new()) + } + + // repeated .google.storage.v1.Object items = 2; + + + pub fn get_items(&self) -> &[Object] { + &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()) + } + + // 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 ListObjectsResponse { + fn is_initialized(&self) -> bool { + 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_repeated_string_into(wire_type, is, &mut self.prefixes)?; + }, + 2 => { + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?; + }, + 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.prefixes { + my_size += ::protobuf::rt::string_size(1, &value); + }; + for value in &self.items { + 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<()> { + for v in &self.prefixes { + os.write_string(1, &v)?; + }; + for v in &self.items { + 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() -> ListObjectsResponse { + ListObjectsResponse::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::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>( + "prefixes", + |m: &ListObjectsResponse| { &m.prefixes }, + |m: &mut ListObjectsResponse| { &mut m.prefixes }, + )); + fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + "items", + |m: &ListObjectsResponse| { &m.items }, + |m: &mut ListObjectsResponse| { &mut m.items }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "next_page_token", + |m: &ListObjectsResponse| { &m.next_page_token }, + |m: &mut ListObjectsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ListObjectsResponse", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ListObjectsResponse { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ListObjectsResponse::new) + } +} + +impl ::protobuf::Clear for ListObjectsResponse { + fn clear(&mut self) { + self.prefixes.clear(); + self.items.clear(); + self.next_page_token.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ListObjectsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ListObjectsResponse { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ProjectTeam { + // message fields + pub project_number: ::std::string::String, + pub team: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ProjectTeam { + fn default() -> &'a ProjectTeam { + ::default_instance() + } +} + +impl ProjectTeam { + pub fn new() -> ProjectTeam { + ::std::default::Default::default() + } + + // string project_number = 1; + + + pub fn get_project_number(&self) -> &str { + &self.project_number + } + pub fn clear_project_number(&mut self) { + self.project_number.clear(); + } + + // Param is passed by value, moved + pub fn set_project_number(&mut self, v: ::std::string::String) { + self.project_number = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_project_number(&mut self) -> &mut ::std::string::String { + &mut self.project_number + } + + // Take field + pub fn take_project_number(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.project_number, ::std::string::String::new()) + } + + // string team = 2; + + + pub fn get_team(&self) -> &str { + &self.team + } + pub fn clear_team(&mut self) { + self.team.clear(); + } + + // Param is passed by value, moved + pub fn set_team(&mut self, v: ::std::string::String) { + self.team = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_team(&mut self) -> &mut ::std::string::String { + &mut self.team + } + + // Take field + pub fn take_team(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.team, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for ProjectTeam { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (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_number)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.team)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.project_number); + } + if !self.team.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.team); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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.is_empty() { + os.write_string(1, &self.project_number)?; + } + if !self.team.is_empty() { + os.write_string(2, &self.team)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> ProjectTeam { + ProjectTeam::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::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_number", + |m: &ProjectTeam| { &m.project_number }, + |m: &mut ProjectTeam| { &mut m.project_number }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "team", + |m: &ProjectTeam| { &m.team }, + |m: &mut ProjectTeam| { &mut m.team }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ProjectTeam", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ProjectTeam { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ProjectTeam::new) + } +} + +impl ::protobuf::Clear for ProjectTeam { + fn clear(&mut self) { + self.project_number.clear(); + self.team.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ProjectTeam { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ProjectTeam { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct ServiceAccount { + // message fields + pub email_address: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a ServiceAccount { + fn default() -> &'a ServiceAccount { + ::default_instance() + } +} + +impl ServiceAccount { + pub fn new() -> ServiceAccount { + ::std::default::Default::default() + } + + // string email_address = 1; + + + pub fn get_email_address(&self) -> &str { + &self.email_address + } + pub fn clear_email_address(&mut self) { + self.email_address.clear(); + } + + // Param is passed by value, moved + pub fn set_email_address(&mut self, v: ::std::string::String) { + self.email_address = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_email_address(&mut self) -> &mut ::std::string::String { + &mut self.email_address + } + + // Take field + pub fn take_email_address(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.email_address, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for ServiceAccount { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (field_number, wire_type) = is.read_tag_unpack()?; + match field_number { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.email_address)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if !self.email_address.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.email_address); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); + self.cached_size.set(my_size); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.email_address.is_empty() { + os.write_string(1, &self.email_address)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + fn new() -> ServiceAccount { + ServiceAccount::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "email_address", + |m: &ServiceAccount| { &m.email_address }, + |m: &mut ServiceAccount| { &mut m.email_address }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "ServiceAccount", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static ServiceAccount { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(ServiceAccount::new) + } +} + +impl ::protobuf::Clear for ServiceAccount { + fn clear(&mut self) { + self.email_address.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for ServiceAccount { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ServiceAccount { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +#[derive(PartialEq,Clone,Default)] +pub struct Owner { + // message fields + pub entity: ::std::string::String, + pub entity_id: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Owner { + fn default() -> &'a Owner { + ::default_instance() + } +} + +impl Owner { + pub fn new() -> Owner { + ::std::default::Default::default() + } + + // string entity = 1; + + + pub fn get_entity(&self) -> &str { + &self.entity + } + pub fn clear_entity(&mut self) { + self.entity.clear(); + } + + // Param is passed by value, moved + pub fn set_entity(&mut self, v: ::std::string::String) { + self.entity = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity(&mut self) -> &mut ::std::string::String { + &mut self.entity + } + + // Take field + pub fn take_entity(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity, ::std::string::String::new()) + } + + // string entity_id = 2; + + + pub fn get_entity_id(&self) -> &str { + &self.entity_id + } + pub fn clear_entity_id(&mut self) { + self.entity_id.clear(); + } + + // Param is passed by value, moved + pub fn set_entity_id(&mut self, v: ::std::string::String) { + self.entity_id = v; + } + + // Mutable pointer to the field. + // If field is not initialized, it is initialized with default value first. + pub fn mut_entity_id(&mut self) -> &mut ::std::string::String { + &mut self.entity_id + } + + // Take field + pub fn take_entity_id(&mut self) -> ::std::string::String { + ::std::mem::replace(&mut self.entity_id, ::std::string::String::new()) + } +} + +impl ::protobuf::Message for Owner { + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { + while !is.eof()? { + let (field_number, wire_type) = is.read_tag_unpack()?; + match field_number { + 1 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity)?; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity_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.entity.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.entity); + } + if !self.entity_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.entity_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.entity.is_empty() { + os.write_string(1, &self.entity)?; + } + if !self.entity_id.is_empty() { + os.write_string(2, &self.entity_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() -> Owner { + Owner::new() + } + + fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; + descriptor.get(|| { + let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity", + |m: &Owner| { &m.entity }, + |m: &mut Owner| { &mut m.entity }, + )); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + "entity_id", + |m: &Owner| { &m.entity_id }, + |m: &mut Owner| { &mut m.entity_id }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( + "Owner", + fields, + file_descriptor_proto() + ) + }) + } + + fn default_instance() -> &'static Owner { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Owner::new) + } +} + +impl ::protobuf::Clear for Owner { + fn clear(&mut self) { + self.entity.clear(); + self.entity_id.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug for Owner { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Owner { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n)google/storage/v1/storage_resources.proto\x12\x11google.storage.v1\ + \x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.\ + proto\"\xc1\x16\n\x06Bucket\x128\n\x03acl\x18\x01\x20\x03(\x0b2&.google.\ + storage.v1.BucketAccessControlR\x03acl\x12T\n\x12default_object_acl\x18\ + \x02\x20\x03(\x0b2&.google.storage.v1.ObjectAccessControlR\x10defaultObj\ + ectAcl\x12A\n\tlifecycle\x18\x03\x20\x01(\x0b2#.google.storage.v1.Bucket\ + .LifecycleR\tlifecycle\x12=\n\x0ctime_created\x18\x04\x20\x01(\x0b2\x1a.\ + google.protobuf.TimestampR\x0btimeCreated\x12\x0e\n\x02id\x18\x05\x20\ + \x01(\tR\x02id\x12\x12\n\x04name\x18\x06\x20\x01(\tR\x04name\x12%\n\x0ep\ + roject_number\x18\x07\x20\x01(\x03R\rprojectNumber\x12&\n\x0emetagenerat\ + ion\x18\x08\x20\x01(\x03R\x0emetageneration\x122\n\x04cors\x18\t\x20\x03\ + (\x0b2\x1e.google.storage.v1.Bucket.CorsR\x04cors\x12\x1a\n\x08location\ + \x18\n\x20\x01(\tR\x08location\x12#\n\rstorage_class\x18\x0b\x20\x01(\tR\ + \x0cstorageClass\x12\x12\n\x04etag\x18\x0c\x20\x01(\tR\x04etag\x124\n\ + \x07updated\x18\r\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07update\ + d\x127\n\x18default_event_based_hold\x18\x0e\x20\x01(\x08R\x15defaultEve\ + ntBasedHold\x12=\n\x06labels\x18\x0f\x20\x03(\x0b2%.google.storage.v1.Bu\ + cket.LabelsEntryR\x06labels\x12;\n\x07website\x18\x10\x20\x01(\x0b2!.goo\ + gle.storage.v1.Bucket.WebsiteR\x07website\x12D\n\nversioning\x18\x11\x20\ + \x01(\x0b2$.google.storage.v1.Bucket.VersioningR\nversioning\x12;\n\x07l\ + ogging\x18\x12\x20\x01(\x0b2!.google.storage.v1.Bucket.LoggingR\x07loggi\ + ng\x12.\n\x05owner\x18\x13\x20\x01(\x0b2\x18.google.storage.v1.OwnerR\ + \x05owner\x12D\n\nencryption\x18\x14\x20\x01(\x0b2$.google.storage.v1.Bu\ + cket.EncryptionR\nencryption\x12;\n\x07billing\x18\x15\x20\x01(\x0b2!.go\ + ogle.storage.v1.Bucket.BillingR\x07billing\x12T\n\x10retention_policy\ + \x18\x16\x20\x01(\x0b2).google.storage.v1.Bucket.RetentionPolicyR\x0fret\ + entionPolicy\x12#\n\rlocation_type\x18\x17\x20\x01(\tR\x0clocationType\ + \x12W\n\x11iam_configuration\x18\x18\x20\x01(\x0b2*.google.storage.v1.Bu\ + cket.IamConfigurationR\x10iamConfiguration\x12#\n\rzone_affinity\x18\x19\ + \x20\x03(\tR\x0czoneAffinity\x1a0\n\x07Billing\x12%\n\x0erequester_pays\ + \x18\x01\x20\x01(\x08R\rrequesterPays\x1a\x87\x01\n\x04Cors\x12\x16\n\ + \x06origin\x18\x01\x20\x03(\tR\x06origin\x12\x16\n\x06method\x18\x02\x20\ + \x03(\tR\x06method\x12'\n\x0fresponse_header\x18\x03\x20\x03(\tR\x0eresp\ + onseHeader\x12&\n\x0fmax_age_seconds\x18\x04\x20\x01(\x05R\rmaxAgeSecond\ + s\x1a=\n\nEncryption\x12/\n\x14default_kms_key_name\x18\x01\x20\x01(\tR\ + \x11defaultKmsKeyName\x1a\x8a\x02\n\x10IamConfiguration\x12\x82\x01\n\ + \x1buniform_bucket_level_access\x18\x01\x20\x01(\x0b2C.google.storage.v1\ + .Bucket.IamConfiguration.UniformBucketLevelAccessR\x18uniformBucketLevel\ + Access\x1aq\n\x18UniformBucketLevelAccess\x12\x18\n\x07enabled\x18\x01\ + \x20\x01(\x08R\x07enabled\x12;\n\x0blocked_time\x18\x02\x20\x01(\x0b2\ + \x1a.google.protobuf.TimestampR\nlockedTime\x1a\xd3\x04\n\tLifecycle\x12\ + <\n\x04rule\x18\x01\x20\x03(\x0b2(.google.storage.v1.Bucket.Lifecycle.Ru\ + leR\x04rule\x1a\x87\x04\n\x04Rule\x12G\n\x06action\x18\x01\x20\x01(\x0b2\ + /.google.storage.v1.Bucket.Lifecycle.Rule.ActionR\x06action\x12P\n\tcond\ + ition\x18\x02\x20\x01(\x0b22.google.storage.v1.Bucket.Lifecycle.Rule.Con\ + ditionR\tcondition\x1aA\n\x06Action\x12\x12\n\x04type\x18\x01\x20\x01(\t\ + R\x04type\x12#\n\rstorage_class\x18\x02\x20\x01(\tR\x0cstorageClass\x1a\ + \xa0\x02\n\tCondition\x12\x10\n\x03age\x18\x01\x20\x01(\x05R\x03age\x12A\ + \n\x0ecreated_before\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.Timestamp\ + R\rcreatedBefore\x123\n\x07is_live\x18\x03\x20\x01(\x0b2\x1a.google.prot\ + obuf.BoolValueR\x06isLive\x12,\n\x12num_newer_versions\x18\x04\x20\x01(\ + \x05R\x10numNewerVersions\x122\n\x15matches_storage_class\x18\x05\x20\ + \x03(\tR\x13matchesStorageClass\x12'\n\x0fmatches_pattern\x18\x06\x20\ + \x01(\tR\x0ematchesPattern\x1aT\n\x07Logging\x12\x1d\n\nlog_bucket\x18\ + \x01\x20\x01(\tR\tlogBucket\x12*\n\x11log_object_prefix\x18\x02\x20\x01(\ + \tR\x0flogObjectPrefix\x1a\x9c\x01\n\x0fRetentionPolicy\x12A\n\x0eeffect\ + ive_time\x18\x01\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\reffective\ + Time\x12\x1b\n\tis_locked\x18\x02\x20\x01(\x08R\x08isLocked\x12)\n\x10re\ + tention_period\x18\x03\x20\x01(\x03R\x0fretentionPeriod\x1a&\n\nVersioni\ + ng\x12\x18\n\x07enabled\x18\x01\x20\x01(\x08R\x07enabled\x1aY\n\x07Websi\ + te\x12(\n\x10main_page_suffix\x18\x01\x20\x01(\tR\x0emainPageSuffix\x12$\ + \n\x0enot_found_page\x18\x02\x20\x01(\tR\x0cnotFoundPage\x1a9\n\x0bLabel\ + sEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\ + \x18\x02\x20\x01(\tR\x05value:\x028\x01\"\x8b\x02\n\x13BucketAccessContr\ + ol\x12\x12\n\x04role\x18\x01\x20\x01(\tR\x04role\x12\x12\n\x04etag\x18\ + \x02\x20\x01(\tR\x04etag\x12\x0e\n\x02id\x18\x03\x20\x01(\tR\x02id\x12\ + \x16\n\x06bucket\x18\x04\x20\x01(\tR\x06bucket\x12\x16\n\x06entity\x18\ + \x06\x20\x01(\tR\x06entity\x12\x1b\n\tentity_id\x18\x07\x20\x01(\tR\x08e\ + ntityId\x12\x14\n\x05email\x18\x08\x20\x01(\tR\x05email\x12\x16\n\x06dom\ + ain\x18\t\x20\x01(\tR\x06domain\x12A\n\x0cproject_team\x18\n\x20\x01(\ + \x0b2\x1e.google.storage.v1.ProjectTeamR\x0bprojectTeam\"`\n\x20ListBuck\ + etAccessControlsResponse\x12<\n\x05items\x18\x01\x20\x03(\x0b2&.google.s\ + torage.v1.BucketAccessControlR\x05items\"n\n\x13ListBucketsResponse\x12/\ + \n\x05items\x18\x01\x20\x03(\x0b2\x19.google.storage.v1.BucketR\x05items\ + \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\xf2\x02\ + \n\x07Channel\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x1f\n\x0bres\ + ource_id\x18\x02\x20\x01(\tR\nresourceId\x12!\n\x0cresource_uri\x18\x03\ + \x20\x01(\tR\x0bresourceUri\x12\x14\n\x05token\x18\x04\x20\x01(\tR\x05to\ + ken\x12:\n\nexpiration\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.Timesta\ + mpR\nexpiration\x12\x12\n\x04type\x18\x06\x20\x01(\tR\x04type\x12\x18\n\ + \x07address\x18\x07\x20\x01(\tR\x07address\x12>\n\x06params\x18\x08\x20\ + \x03(\x0b2&.google.storage.v1.Channel.ParamsEntryR\x06params\x12\x18\n\ + \x07payload\x18\t\x20\x01(\x08R\x07payload\x1a9\n\x0bParamsEntry\x12\x10\ + \n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\ + \tR\x05value:\x028\x01\"\xac\x02\n\x14ListChannelsResponse\x12C\n\x05ite\ + ms\x18\x01\x20\x03(\x0b2-.google.storage.v1.ListChannelsResponse.ItemsR\ + \x05items\x1a\xce\x01\n\x05Items\x12\x1d\n\nchannel_id\x18\x01\x20\x01(\ + \tR\tchannelId\x12\x1f\n\x0bresource_id\x18\x02\x20\x01(\tR\nresourceId\ + \x12\x19\n\x08push_url\x18\x03\x20\x01(\tR\x07pushUrl\x12)\n\x10subscrib\ + er_email\x18\x04\x20\x01(\tR\x0fsubscriberEmail\x12?\n\rcreation_time\ + \x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0ccreationTime\"a\ + \n\x0fChecksummedData\x12\x18\n\x07content\x18\x01\x20\x01(\x0cR\x07cont\ + ent\x124\n\x06crc32c\x18\x02\x20\x01(\x0b2\x1c.google.protobuf.UInt32Val\ + ueR\x06crc32c\"b\n\x0fObjectChecksums\x124\n\x06crc32c\x18\x01\x20\x01(\ + \x0b2\x1c.google.protobuf.UInt32ValueR\x06crc32c\x12\x19\n\x08md5_hash\ + \x18\x02\x20\x01(\tR\x07md5Hash\"\xa7\x04\n\x0bCommonEnums\">\n\nProject\ + ion\x12\x1a\n\x16PROJECTION_UNSPECIFIED\x10\0\x12\n\n\x06NO_ACL\x10\x01\ + \x12\x08\n\x04FULL\x10\x02\"\xd5\x01\n\x13PredefinedBucketAcl\x12%\n!PRE\ + DEFINED_BUCKET_ACL_UNSPECIFIED\x10\0\x12!\n\x1dBUCKET_ACL_AUTHENTICATED_\ + READ\x10\x01\x12\x16\n\x12BUCKET_ACL_PRIVATE\x10\x02\x12\x1e\n\x1aBUCKET\ + _ACL_PROJECT_PRIVATE\x10\x03\x12\x1a\n\x16BUCKET_ACL_PUBLIC_READ\x10\x04\ + \x12\x20\n\x1cBUCKET_ACL_PUBLIC_READ_WRITE\x10\x05\"\xff\x01\n\x13Predef\ + inedObjectAcl\x12%\n!PREDEFINED_OBJECT_ACL_UNSPECIFIED\x10\0\x12!\n\x1dO\ + BJECT_ACL_AUTHENTICATED_READ\x10\x01\x12(\n$OBJECT_ACL_BUCKET_OWNER_FULL\ + _CONTROL\x10\x02\x12\x20\n\x1cOBJECT_ACL_BUCKET_OWNER_READ\x10\x03\x12\ + \x16\n\x12OBJECT_ACL_PRIVATE\x10\x04\x12\x1e\n\x1aOBJECT_ACL_PROJECT_PRI\ + VATE\x10\x05\x12\x1a\n\x16OBJECT_ACL_PUBLIC_READ\x10\x06\"_\n\x0cContent\ + Range\x12\x14\n\x05start\x18\x01\x20\x01(\x03R\x05start\x12\x10\n\x03end\ + \x18\x02\x20\x01(\x03R\x03end\x12'\n\x0fcomplete_length\x18\x03\x20\x01(\ + \x03R\x0ecompleteLength\"\xb0\x02\n\x0fHmacKeyMetadata\x12\x0e\n\x02id\ + \x18\x01\x20\x01(\tR\x02id\x12\x1b\n\taccess_id\x18\x02\x20\x01(\tR\x08a\ + ccessId\x12\x1d\n\nproject_id\x18\x03\x20\x01(\tR\tprojectId\x122\n\x15s\ + ervice_account_email\x18\x04\x20\x01(\tR\x13serviceAccountEmail\x12\x14\ + \n\x05state\x18\x05\x20\x01(\tR\x05state\x12=\n\x0ctime_created\x18\x06\ + \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0btimeCreated\x124\n\x07u\ + pdated\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07updated\ + \x12\x12\n\x04etag\x18\x08\x20\x01(\tR\x04etag\"\xe7\x02\n\x0cNotificati\ + on\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05topic\x12\x1f\n\x0bevent_ty\ + pes\x18\x02\x20\x03(\tR\neventTypes\x12b\n\x11custom_attributes\x18\x03\ + \x20\x03(\x0b25.google.storage.v1.Notification.CustomAttributesEntryR\ + \x10customAttributes\x12\x12\n\x04etag\x18\x04\x20\x01(\tR\x04etag\x12,\ + \n\x12object_name_prefix\x18\x05\x20\x01(\tR\x10objectNamePrefix\x12%\n\ + \x0epayload_format\x18\x06\x20\x01(\tR\rpayloadFormat\x12\x0e\n\x02id\ + \x18\x07\x20\x01(\tR\x02id\x1aC\n\x15CustomAttributesEntry\x12\x10\n\x03\ + key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\ + \x05value:\x028\x01\"R\n\x19ListNotificationsResponse\x125\n\x05items\ + \x18\x01\x20\x03(\x0b2\x1f.google.storage.v1.NotificationR\x05items\"\ + \xc9\x0b\n\x06Object\x12)\n\x10content_encoding\x18\x01\x20\x01(\tR\x0fc\ + ontentEncoding\x12/\n\x13content_disposition\x18\x02\x20\x01(\tR\x12cont\ + entDisposition\x12#\n\rcache_control\x18\x03\x20\x01(\tR\x0ccacheControl\ + \x128\n\x03acl\x18\x04\x20\x03(\x0b2&.google.storage.v1.ObjectAccessCont\ + rolR\x03acl\x12)\n\x10content_language\x18\x05\x20\x01(\tR\x0fcontentLan\ + guage\x12&\n\x0emetageneration\x18\x06\x20\x01(\x03R\x0emetageneration\ + \x12=\n\x0ctime_deleted\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.Timest\ + ampR\x0btimeDeleted\x12!\n\x0ccontent_type\x18\x08\x20\x01(\tR\x0bconten\ + tType\x12\x12\n\x04size\x18\t\x20\x01(\x03R\x04size\x12=\n\x0ctime_creat\ + ed\x18\n\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0btimeCreated\x12\ + 4\n\x06crc32c\x18\x0b\x20\x01(\x0b2\x1c.google.protobuf.UInt32ValueR\x06\ + crc32c\x12'\n\x0fcomponent_count\x18\x0c\x20\x01(\x05R\x0ecomponentCount\ + \x12\x19\n\x08md5_hash\x18\r\x20\x01(\tR\x07md5Hash\x12\x12\n\x04etag\ + \x18\x0e\x20\x01(\tR\x04etag\x124\n\x07updated\x18\x0f\x20\x01(\x0b2\x1a\ + .google.protobuf.TimestampR\x07updated\x12#\n\rstorage_class\x18\x10\x20\ + \x01(\tR\x0cstorageClass\x12\x20\n\x0ckms_key_name\x18\x11\x20\x01(\tR\n\ + kmsKeyName\x12W\n\x1atime_storage_class_updated\x18\x12\x20\x01(\x0b2\ + \x1a.google.protobuf.TimestampR\x17timeStorageClassUpdated\x12%\n\x0etem\ + porary_hold\x18\x13\x20\x01(\x08R\rtemporaryHold\x12V\n\x19retention_exp\ + iration_time\x18\x14\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x17ret\ + entionExpirationTime\x12C\n\x08metadata\x18\x15\x20\x03(\x0b2'.google.st\ + orage.v1.Object.MetadataEntryR\x08metadata\x12D\n\x10event_based_hold\ + \x18\x1d\x20\x01(\x0b2\x1a.google.protobuf.BoolValueR\x0eeventBasedHold\ + \x12\x12\n\x04name\x18\x17\x20\x01(\tR\x04name\x12\x0e\n\x02id\x18\x18\ + \x20\x01(\tR\x02id\x12\x16\n\x06bucket\x18\x19\x20\x01(\tR\x06bucket\x12\ + \x1e\n\ngeneration\x18\x1a\x20\x01(\x03R\ngeneration\x12.\n\x05owner\x18\ + \x1b\x20\x01(\x0b2\x18.google.storage.v1.OwnerR\x05owner\x12]\n\x13custo\ + mer_encryption\x18\x1c\x20\x01(\x0b2,.google.storage.v1.Object.CustomerE\ + ncryptionR\x12customerEncryption\x1af\n\x12CustomerEncryption\x121\n\x14\ + encryption_algorithm\x18\x01\x20\x01(\tR\x13encryptionAlgorithm\x12\x1d\ + \n\nkey_sha256\x18\x02\x20\x01(\tR\tkeySha256\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\"\xc3\x02\n\x13ObjectAccessControl\x12\x12\n\ + \x04role\x18\x01\x20\x01(\tR\x04role\x12\x12\n\x04etag\x18\x02\x20\x01(\ + \tR\x04etag\x12\x0e\n\x02id\x18\x03\x20\x01(\tR\x02id\x12\x16\n\x06bucke\ + t\x18\x04\x20\x01(\tR\x06bucket\x12\x16\n\x06object\x18\x05\x20\x01(\tR\ + \x06object\x12\x1e\n\ngeneration\x18\x06\x20\x01(\x03R\ngeneration\x12\ + \x16\n\x06entity\x18\x07\x20\x01(\tR\x06entity\x12\x1b\n\tentity_id\x18\ + \x08\x20\x01(\tR\x08entityId\x12\x14\n\x05email\x18\t\x20\x01(\tR\x05ema\ + il\x12\x16\n\x06domain\x18\n\x20\x01(\tR\x06domain\x12A\n\x0cproject_tea\ + m\x18\x0b\x20\x01(\x0b2\x1e.google.storage.v1.ProjectTeamR\x0bprojectTea\ + m\"`\n\x20ListObjectAccessControlsResponse\x12<\n\x05items\x18\x01\x20\ + \x03(\x0b2&.google.storage.v1.ObjectAccessControlR\x05items\"\x8a\x01\n\ + \x13ListObjectsResponse\x12\x1a\n\x08prefixes\x18\x01\x20\x03(\tR\x08pre\ + fixes\x12/\n\x05items\x18\x02\x20\x03(\x0b2\x19.google.storage.v1.Object\ + R\x05items\x12&\n\x0fnext_page_token\x18\x03\x20\x01(\tR\rnextPageToken\ + \"H\n\x0bProjectTeam\x12%\n\x0eproject_number\x18\x01\x20\x01(\tR\rproje\ + ctNumber\x12\x12\n\x04team\x18\x02\x20\x01(\tR\x04team\"5\n\x0eServiceAc\ + count\x12#\n\remail_address\x18\x01\x20\x01(\tR\x0cemailAddress\"<\n\x05\ + Owner\x12\x16\n\x06entity\x18\x01\x20\x01(\tR\x06entity\x12\x1b\n\tentit\ + y_id\x18\x02\x20\x01(\tR\x08entityIdBo\n\x15com.google.storage.v1B\x1aCl\ + oudStorageResourcesProtoP\x01Z8google.golang.org/genproto/googleapis/sto\ + rage/v1;storageJ\xcb\xa7\x02\n\x07\x12\x05\x0e\0\xe7\x06\x01\n\xbc\x04\n\ + \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\ + \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\0.\n\t\n\x02\x08\x01\ + \x12\x03\x18\0.\n\x18\n\x02\x04\0\x12\x05\x1b\0\xc7\x02\x01\x1a\x0b\x20A\ + \x20bucket.\n\n\n\n\x03\x04\0\x01\x12\x03\x1b\x08\x0e\n/\n\x04\x04\0\x03\ + \0\x12\x04\x1d\x02\x20\x03\x1a!\x20Billing\x20properties\x20of\x20a\x20b\ + ucket.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03\x1d\n\x11\nM\n\x06\x04\0\ + \x03\0\x02\0\x12\x03\x1f\x04\x1c\x1a>\x20When\x20set\x20to\x20true,\x20R\ + equester\x20Pays\x20is\x20enabled\x20for\x20this\x20bucket.\n\n\x0f\n\ + \x07\x04\0\x03\0\x02\0\x04\x12\x04\x1f\x04\x1d\x13\n\x0e\n\x07\x04\0\x03\ + \0\x02\0\x05\x12\x03\x1f\x04\x08\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\ + \x03\x1f\t\x17\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03\x1f\x1a\x1b\n\ + \xe9\x01\n\x04\x04\0\x03\x01\x12\x04&\x02:\x03\x1a\xda\x01\x20Cross-Orig\ + in\x20Response\x20sharing\x20(CORS)\x20properties\x20for\x20a\x20bucket.\ + \n\x20For\x20more\x20on\x20GCS\x20and\x20CORS,\x20see\n\x20https://cloud\ + .google.com/storage/docs/cross-origin.\n\x20For\x20more\x20on\x20CORS\ + \x20in\x20general,\x20see\x20https://tools.ietf.org/html/rfc6454.\n\n\ + \x0c\n\x05\x04\0\x03\x01\x01\x12\x03&\n\x0e\n\xe2\x01\n\x06\x04\0\x03\ + \x01\x02\0\x12\x03*\x04\x1f\x1a\xd2\x01\x20The\x20list\x20of\x20Origins\ + \x20eligible\x20to\x20receive\x20CORS\x20response\x20headers.\x20See\n\ + \x20[https://tools.ietf.org/html/rfc6454][RFC\x206454]\x20for\x20more\ + \x20on\x20origins.\n\x20Note:\x20\"*\"\x20is\x20permitted\x20in\x20the\ + \x20list\x20of\x20origins,\x20and\x20means\x20\"any\x20Origin\".\n\n\x0e\ + \n\x07\x04\0\x03\x01\x02\0\x04\x12\x03*\x04\x0c\n\x0e\n\x07\x04\0\x03\ + \x01\x02\0\x05\x12\x03*\r\x13\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\ + \x03*\x14\x1a\n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x03*\x1d\x1e\n\xbe\ + \x01\n\x06\x04\0\x03\x01\x02\x01\x12\x03/\x04\x1f\x1a\xae\x01\x20The\x20\ + list\x20of\x20HTTP\x20methods\x20on\x20which\x20to\x20include\x20CORS\ + \x20response\x20headers,\n\x20(`GET`,\x20`OPTIONS`,\x20`POST`,\x20etc)\ + \x20Note:\x20\"*\"\x20is\x20permitted\x20in\x20the\x20list\x20of\n\x20me\ + thods,\x20and\x20means\x20\"any\x20method\".\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\x1a\n\x0e\ + \n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03/\x1d\x1e\n\xc8\x01\n\x06\x04\0\ + \x03\x01\x02\x02\x12\x034\x04(\x1a\xb8\x01\x20The\x20list\x20of\x20HTTP\ + \x20headers\x20other\x20than\x20the\n\x20[https://www.w3.org/TR/cors/#si\ + mple-response-header][simple\x20response\n\x20headers]\x20to\x20give\x20\ + permission\x20for\x20the\x20user-agent\x20to\x20share\x20across\x20domai\ + ns.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x04\x12\x034\x04\x0c\n\x0e\n\x07\ + \x04\0\x03\x01\x02\x02\x05\x12\x034\r\x13\n\x0e\n\x07\x04\0\x03\x01\x02\ + \x02\x01\x12\x034\x14#\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\x12\x034&'\ + \n\xbc\x01\n\x06\x04\0\x03\x01\x02\x03\x12\x039\x04\x1e\x1a\xac\x01\x20T\ + he\x20value,\x20in\x20seconds,\x20to\x20return\x20in\x20the\n\x20[https:\ + //www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Con\ + trol-Max-Age\n\x20header]\x20used\x20in\x20preflight\x20responses.\n\n\ + \x0f\n\x07\x04\0\x03\x01\x02\x03\x04\x12\x049\x044(\n\x0e\n\x07\x04\0\ + \x03\x01\x02\x03\x05\x12\x039\x04\t\n\x0e\n\x07\x04\0\x03\x01\x02\x03\ + \x01\x12\x039\n\x19\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x03\x12\x039\x1c\ + \x1d\n2\n\x04\x04\0\x03\x02\x12\x04=\x02A\x03\x1a$\x20Encryption\x20prop\ + erties\x20of\x20a\x20bucket.\n\n\x0c\n\x05\x04\0\x03\x02\x01\x12\x03=\n\ + \x14\n\x87\x01\n\x06\x04\0\x03\x02\x02\0\x12\x03@\x04$\x1ax\x20A\x20Clou\ + d\x20KMS\x20key\x20that\x20will\x20be\x20used\x20to\x20encrypt\x20object\ + s\x20inserted\x20into\x20this\n\x20bucket,\x20if\x20no\x20encryption\x20\ + method\x20is\x20specified.\n\n\x0f\n\x07\x04\0\x03\x02\x02\0\x04\x12\x04\ + @\x04=\x16\n\x0e\n\x07\x04\0\x03\x02\x02\0\x05\x12\x03@\x04\n\n\x0e\n\ + \x07\x04\0\x03\x02\x02\0\x01\x12\x03@\x0b\x1f\n\x0e\n\x07\x04\0\x03\x02\ + \x02\0\x03\x12\x03@\"#\nL\n\x04\x04\0\x03\x03\x12\x04D\x02Q\x03\x1a>\x20\ + Bucket\x20restriction\x20options\x20currently\x20enforced\x20on\x20the\ + \x20bucket.\n\n\x0c\n\x05\x04\0\x03\x03\x01\x12\x03D\n\x1a\n\x0e\n\x06\ + \x04\0\x03\x03\x03\0\x12\x04E\x04N\x05\n\x0e\n\x07\x04\0\x03\x03\x03\0\ + \x01\x12\x03E\x0c$\nU\n\x08\x04\0\x03\x03\x03\0\x02\0\x12\x03G\x06\x17\ + \x1aD\x20If\x20set,\x20access\x20checks\x20only\x20use\x20bucket-level\ + \x20IAM\x20policies\x20or\x20above.\n\n\x11\n\t\x04\0\x03\x03\x03\0\x02\ + \0\x04\x12\x04G\x06E&\n\x10\n\t\x04\0\x03\x03\x03\0\x02\0\x05\x12\x03G\ + \x06\n\n\x10\n\t\x04\0\x03\x03\x03\0\x02\0\x01\x12\x03G\x0b\x12\n\x10\n\ + \t\x04\0\x03\x03\x03\0\x02\0\x03\x12\x03G\x15\x16\n\xf0\x01\n\x08\x04\0\ + \x03\x03\x03\0\x02\x01\x12\x03M\x060\x1a\xde\x01\x20The\x20deadline\x20t\ + ime\x20for\x20changing\n\x20iamConfiguration.uniformBucketLevelAcc\ + ess.enabled\x20from\n\x20true\x20to\x20false\x20in\x20[https://to\ + ols.ietf.org/html/rfc3339][RFC\x203339].\x20After\n\x20the\x20deadline\ + \x20is\x20passed\x20the\x20field\x20is\x20immutable.\n\n\x11\n\t\x04\0\ + \x03\x03\x03\0\x02\x01\x04\x12\x04M\x06G\x17\n\x10\n\t\x04\0\x03\x03\x03\ + \0\x02\x01\x06\x12\x03M\x06\x1f\n\x10\n\t\x04\0\x03\x03\x03\0\x02\x01\ + \x01\x12\x03M\x20+\n\x10\n\t\x04\0\x03\x03\x03\0\x02\x01\x03\x12\x03M./\ + \n\r\n\x06\x04\0\x03\x03\x02\0\x12\x03P\x04=\n\x0f\n\x07\x04\0\x03\x03\ + \x02\0\x04\x12\x04P\x04N\x05\n\x0e\n\x07\x04\0\x03\x03\x02\0\x06\x12\x03\ + P\x04\x1c\n\x0e\n\x07\x04\0\x03\x03\x02\0\x01\x12\x03P\x1d8\n\x0e\n\x07\ + \x04\0\x03\x03\x02\0\x03\x12\x03P;<\n~\n\x04\x04\0\x03\x04\x12\x05U\x02\ + \x93\x01\x03\x1ao\x20Lifecycle\x20properties\x20of\x20a\x20bucket.\n\x20\ + For\x20more\x20information,\x20see\x20https://cloud.google.com/storage/d\ + ocs/lifecycle.\n\n\x0c\n\x05\x04\0\x03\x04\x01\x12\x03U\n\x13\n~\n\x06\ + \x04\0\x03\x04\x03\0\x12\x05X\x04\x8e\x01\x05\x1am\x20A\x20lifecycle\x20\ + Rule,\x20combining\x20an\x20action\x20to\x20take\x20on\x20an\x20object\ + \x20and\x20a\n\x20condition\x20which\x20will\x20trigger\x20that\x20actio\ + n.\n\n\x0e\n\x07\x04\0\x03\x04\x03\0\x01\x12\x03X\x0c\x10\n3\n\x08\x04\0\ + \x03\x04\x03\0\x03\0\x12\x04Z\x06b\x07\x1a!\x20An\x20action\x20to\x20tak\ + e\x20on\x20an\x20object.\n\n\x10\n\t\x04\0\x03\x04\x03\0\x03\0\x01\x12\ + \x03Z\x0e\x14\ng\n\n\x04\0\x03\x04\x03\0\x03\0\x02\0\x12\x03]\x08\x18\ + \x1aT\x20Type\x20of\x20the\x20action.\x20Currently,\x20only\x20`Delete`\ + \x20and\n\x20`SetStorageClass`\x20are\x20supported.\n\n\x13\n\x0b\x04\0\ + \x03\x04\x03\0\x03\0\x02\0\x04\x12\x04]\x08Z\x16\n\x12\n\x0b\x04\0\x03\ + \x04\x03\0\x03\0\x02\0\x05\x12\x03]\x08\x0e\n\x12\n\x0b\x04\0\x03\x04\ + \x03\0\x03\0\x02\0\x01\x12\x03]\x0f\x13\n\x12\n\x0b\x04\0\x03\x04\x03\0\ + \x03\0\x02\0\x03\x12\x03]\x16\x17\nc\n\n\x04\0\x03\x04\x03\0\x03\0\x02\ + \x01\x12\x03a\x08!\x1aP\x20Target\x20storage\x20class.\x20Required\x20if\ + f\x20the\x20type\x20of\x20the\x20action\x20is\n\x20SetStorageClass.\n\n\ + \x13\n\x0b\x04\0\x03\x04\x03\0\x03\0\x02\x01\x04\x12\x04a\x08]\x18\n\x12\ + \n\x0b\x04\0\x03\x04\x03\0\x03\0\x02\x01\x05\x12\x03a\x08\x0e\n\x12\n\ + \x0b\x04\0\x03\x04\x03\0\x03\0\x02\x01\x01\x12\x03a\x0f\x1c\n\x12\n\x0b\ + \x04\0\x03\x04\x03\0\x03\0\x02\x01\x03\x12\x03a\x1f\x20\nI\n\x08\x04\0\ + \x03\x04\x03\0\x03\x01\x12\x05e\x06\x87\x01\x07\x1a6\x20A\x20condition\ + \x20of\x20an\x20object\x20which\x20triggers\x20some\x20action.\n\n\x10\n\ + \t\x04\0\x03\x04\x03\0\x03\x01\x01\x12\x03e\x0e\x17\nw\n\n\x04\0\x03\x04\ + \x03\0\x03\x01\x02\0\x12\x03h\x08\x16\x1ad\x20Age\x20of\x20an\x20object\ + \x20(in\x20days).\x20This\x20condition\x20is\x20satisfied\x20when\x20an\ + \n\x20object\x20reaches\x20the\x20specified\x20age.\n\n\x13\n\x0b\x04\0\ + \x03\x04\x03\0\x03\x01\x02\0\x04\x12\x04h\x08e\x19\n\x12\n\x0b\x04\0\x03\ + \x04\x03\0\x03\x01\x02\0\x05\x12\x03h\x08\r\n\x12\n\x0b\x04\0\x03\x04\ + \x03\0\x03\x01\x02\0\x01\x12\x03h\x0e\x11\n\x12\n\x0b\x04\0\x03\x04\x03\ + \0\x03\x01\x02\0\x03\x12\x03h\x14\x15\n\xfa\x01\n\n\x04\0\x03\x04\x03\0\ + \x03\x01\x02\x01\x12\x03n\x085\x1a\xe6\x01\x20A\x20date\x20in\x20[RFC\ + \x203339][1]\x20format\x20with\x20only\x20the\x20date\x20part\x20(for\n\ + \x20instance,\x20\"2013-01-15\").\x20This\x20condition\x20is\x20satisfie\ + d\x20when\x20an\n\x20object\x20is\x20created\x20before\x20midnight\x20of\ + \x20the\x20specified\x20date\x20in\x20UTC.\n\x20[1]:\x20https://tools.ie\ + tf.org/html/rfc3339\n\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x01\ + \x04\x12\x04n\x08h\x16\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x01\ + \x06\x12\x03n\x08!\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x01\x01\ + \x12\x03n\"0\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x01\x03\x12\x03\ + n34\n\xaf\x01\n\n\x04\0\x03\x04\x03\0\x03\x01\x02\x02\x12\x03s\x08.\x1a\ + \x9b\x01\x20Relevant\x20only\x20for\x20versioned\x20objects.\x20If\x20th\ + e\x20value\x20is\n\x20`true`,\x20this\x20condition\x20matches\x20live\ + \x20objects;\x20if\x20the\x20value\n\x20is\x20`false`,\x20it\x20matches\ + \x20archived\x20objects.\n\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\ + \x02\x04\x12\x04s\x08n5\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x02\ + \x06\x12\x03s\x08!\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x02\x01\ + \x12\x03s\")\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x02\x03\x12\x03\ + s,-\n\xd2\x01\n\n\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x12\x03x\x08%\x1a\ + \xbe\x01\x20Relevant\x20only\x20for\x20versioned\x20objects.\x20If\x20th\ + e\x20value\x20is\x20N,\x20this\n\x20condition\x20is\x20satisfied\x20when\ + \x20there\x20are\x20at\x20least\x20N\x20versions\x20(including\n\x20the\ + \x20live\x20version)\x20newer\x20than\x20this\x20version\x20of\x20the\ + \x20object.\n\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x04\x12\ + \x04x\x08s.\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x05\x12\x03x\ + \x08\r\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x01\x12\x03x\x0e\ + \x20\n\x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x03\x03\x12\x03x#$\n\ + \xe4\x01\n\n\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x12\x03~\x082\x1a\xd0\ + \x01\x20Objects\x20having\x20any\x20of\x20the\x20storage\x20classes\x20s\ + pecified\x20by\x20this\x20condition\n\x20will\x20be\x20matched.\x20Value\ + s\x20include\x20`MULTI_REGIONAL`,\x20`REGIONAL`,\n\x20`NEARLINE`,\x20`CO\ + LDLINE`,\x20`STANDARD`,\x20and\n\x20`DURABLE_REDUCED_AVAILABILITY`.\n\n\ + \x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x04\x12\x03~\x08\x10\n\ + \x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x05\x12\x03~\x11\x17\n\ + \x12\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x01\x12\x03~\x18-\n\x12\n\ + \x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x04\x03\x12\x03~01\n\x91\x03\n\n\ + \x04\0\x03\x04\x03\0\x03\x01\x02\x05\x12\x04\x86\x01\x08#\x1a\xfc\x02\ + \x20A\x20regular\x20expression\x20that\x20satisfies\x20the\x20RE2\x20syn\ + tax.\x20This\x20condition\x20is\n\x20satisfied\x20when\x20the\x20name\ + \x20of\x20the\x20object\x20matches\x20the\x20RE2\x20pattern.\x20\x20Note\ + :\n\x20This\x20feature\x20is\x20currently\x20in\x20the\x20\"Early\x20Acc\ + ess\"\x20launch\x20stage\x20and\x20is\n\x20only\x20available\x20to\x20a\ + \x20whitelisted\x20set\x20of\x20users;\x20that\x20means\x20that\x20this\ + \n\x20feature\x20may\x20be\x20changed\x20in\x20backward-incompatible\x20\ + ways\x20and\x20that\x20it\x20is\n\x20not\x20guaranteed\x20to\x20be\x20re\ + leased.\n\n\x14\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x05\x04\x12\x05\ + \x86\x01\x08~2\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x05\x05\x12\ + \x04\x86\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x05\x01\ + \x12\x04\x86\x01\x0f\x1e\n\x13\n\x0b\x04\0\x03\x04\x03\0\x03\x01\x02\x05\ + \x03\x12\x04\x86\x01!\"\n'\n\x08\x04\0\x03\x04\x03\0\x02\0\x12\x04\x8a\ + \x01\x06\x18\x1a\x15\x20The\x20action\x20to\x20take.\n\n\x13\n\t\x04\0\ + \x03\x04\x03\0\x02\0\x04\x12\x06\x8a\x01\x06\x87\x01\x07\n\x11\n\t\x04\0\ + \x03\x04\x03\0\x02\0\x06\x12\x04\x8a\x01\x06\x0c\n\x11\n\t\x04\0\x03\x04\ + \x03\0\x02\0\x01\x12\x04\x8a\x01\r\x13\n\x11\n\t\x04\0\x03\x04\x03\0\x02\ + \0\x03\x12\x04\x8a\x01\x16\x17\nJ\n\x08\x04\0\x03\x04\x03\0\x02\x01\x12\ + \x04\x8d\x01\x06\x1e\x1a8\x20The\x20condition(s)\x20under\x20which\x20th\ + e\x20action\x20will\x20be\x20taken.\n\n\x13\n\t\x04\0\x03\x04\x03\0\x02\ + \x01\x04\x12\x06\x8d\x01\x06\x8a\x01\x18\n\x11\n\t\x04\0\x03\x04\x03\0\ + \x02\x01\x06\x12\x04\x8d\x01\x06\x0f\n\x11\n\t\x04\0\x03\x04\x03\0\x02\ + \x01\x01\x12\x04\x8d\x01\x10\x19\n\x11\n\t\x04\0\x03\x04\x03\0\x02\x01\ + \x03\x12\x04\x8d\x01\x1c\x1d\n\x8d\x01\n\x06\x04\0\x03\x04\x02\0\x12\x04\ + \x92\x01\x04\x1b\x1a}\x20A\x20lifecycle\x20management\x20rule,\x20which\ + \x20is\x20made\x20of\x20an\x20action\x20to\x20take\x20and\x20the\n\x20co\ + ndition(s)\x20under\x20which\x20the\x20action\x20will\x20be\x20taken.\n\ + \n\x0f\n\x07\x04\0\x03\x04\x02\0\x04\x12\x04\x92\x01\x04\x0c\n\x0f\n\x07\ + \x04\0\x03\x04\x02\0\x06\x12\x04\x92\x01\r\x11\n\x0f\n\x07\x04\0\x03\x04\ + \x02\0\x01\x12\x04\x92\x01\x12\x16\n\x0f\n\x07\x04\0\x03\x04\x02\0\x03\ + \x12\x04\x92\x01\x19\x1a\n9\n\x04\x04\0\x03\x05\x12\x06\x96\x01\x02\x9c\ + \x01\x03\x1a)\x20Logging-related\x20properties\x20of\x20a\x20bucket.\n\n\ + \r\n\x05\x04\0\x03\x05\x01\x12\x04\x96\x01\n\x11\nZ\n\x06\x04\0\x03\x05\ + \x02\0\x12\x04\x98\x01\x04\x1a\x1aJ\x20The\x20destination\x20bucket\x20w\ + here\x20the\x20current\x20bucket's\x20logs\x20should\x20be\x20placed.\n\ + \n\x11\n\x07\x04\0\x03\x05\x02\0\x04\x12\x06\x98\x01\x04\x96\x01\x13\n\ + \x0f\n\x07\x04\0\x03\x05\x02\0\x05\x12\x04\x98\x01\x04\n\n\x0f\n\x07\x04\ + \0\x03\x05\x02\0\x01\x12\x04\x98\x01\x0b\x15\n\x0f\n\x07\x04\0\x03\x05\ + \x02\0\x03\x12\x04\x98\x01\x18\x19\n0\n\x06\x04\0\x03\x05\x02\x01\x12\ + \x04\x9b\x01\x04!\x1a\x20\x20A\x20prefix\x20for\x20log\x20object\x20name\ + s.\n\n\x11\n\x07\x04\0\x03\x05\x02\x01\x04\x12\x06\x9b\x01\x04\x98\x01\ + \x1a\n\x0f\n\x07\x04\0\x03\x05\x02\x01\x05\x12\x04\x9b\x01\x04\n\n\x0f\n\ + \x07\x04\0\x03\x05\x02\x01\x01\x12\x04\x9b\x01\x0b\x1c\n\x0f\n\x07\x04\0\ + \x03\x05\x02\x01\x03\x12\x04\x9b\x01\x1f\x20\n:\n\x04\x04\0\x03\x06\x12\ + \x06\x9f\x01\x02\xad\x01\x03\x1a*\x20Retention\x20policy\x20properties\ + \x20of\x20a\x20bucket.\n\n\r\n\x05\x04\0\x03\x06\x01\x12\x04\x9f\x01\n\ + \x19\n\xbb\x01\n\x06\x04\0\x03\x06\x02\0\x12\x04\xa3\x01\x041\x1a\xaa\ + \x01\x20Server-determined\x20value\x20that\x20indicates\x20the\x20time\ + \x20from\x20which\x20policy\x20was\n\x20enforced\x20and\x20effective.\ + \x20This\x20value\x20is\x20in\n\x20[https://tools.ietf.org/html/rfc3339]\ + [RFC\x203339]\x20format.\n\n\x11\n\x07\x04\0\x03\x06\x02\0\x04\x12\x06\ + \xa3\x01\x04\x9f\x01\x1b\n\x0f\n\x07\x04\0\x03\x06\x02\0\x06\x12\x04\xa3\ + \x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x06\x02\0\x01\x12\x04\xa3\x01\x1e,\n\ + \x0f\n\x07\x04\0\x03\x06\x02\0\x03\x12\x04\xa3\x01/0\nM\n\x06\x04\0\x03\ + \x06\x02\x01\x12\x04\xa6\x01\x04\x17\x1a=\x20Once\x20locked,\x20an\x20ob\ + ject\x20retention\x20policy\x20cannot\x20be\x20modified.\n\n\x11\n\x07\ + \x04\0\x03\x06\x02\x01\x04\x12\x06\xa6\x01\x04\xa3\x011\n\x0f\n\x07\x04\ + \0\x03\x06\x02\x01\x05\x12\x04\xa6\x01\x04\x08\n\x0f\n\x07\x04\0\x03\x06\ + \x02\x01\x01\x12\x04\xa6\x01\t\x12\n\x0f\n\x07\x04\0\x03\x06\x02\x01\x03\ + \x12\x04\xa6\x01\x15\x16\n\x9a\x02\n\x06\x04\0\x03\x06\x02\x02\x12\x04\ + \xac\x01\x04\x1f\x1a\x89\x02\x20The\x20duration\x20in\x20seconds\x20that\ + \x20objects\x20need\x20to\x20be\x20retained.\x20Retention\n\x20duration\ + \x20must\x20be\x20greater\x20than\x20zero\x20and\x20less\x20than\x20100\ + \x20years.\x20Note\x20that\n\x20enforcement\x20of\x20retention\x20period\ + s\x20less\x20than\x20a\x20day\x20is\x20not\x20guaranteed.\x20Such\n\x20p\ + eriods\x20should\x20only\x20be\x20used\x20for\x20testing\x20purposes.\n\ + \n\x11\n\x07\x04\0\x03\x06\x02\x02\x04\x12\x06\xac\x01\x04\xa6\x01\x17\n\ + \x0f\n\x07\x04\0\x03\x06\x02\x02\x05\x12\x04\xac\x01\x04\t\n\x0f\n\x07\ + \x04\0\x03\x06\x02\x02\x01\x12\x04\xac\x01\n\x1a\n\x0f\n\x07\x04\0\x03\ + \x06\x02\x02\x03\x12\x04\xac\x01\x1d\x1e\n\x9b\x01\n\x04\x04\0\x03\x07\ + \x12\x06\xb2\x01\x02\xb5\x01\x03\x1a\x8a\x01\x20Properties\x20of\x20a\ + \x20bucket\x20related\x20to\x20versioning.\n\x20For\x20more\x20on\x20GCS\ + \x20versioning,\x20see\n\x20https://cloud.google.com/storage/docs/object\ + -versioning.\n\n\r\n\x05\x04\0\x03\x07\x01\x12\x04\xb2\x01\n\x14\nQ\n\ + \x06\x04\0\x03\x07\x02\0\x12\x04\xb4\x01\x04\x15\x1aA\x20While\x20set\ + \x20to\x20true,\x20versioning\x20is\x20fully\x20enabled\x20for\x20this\ + \x20bucket.\n\n\x11\n\x07\x04\0\x03\x07\x02\0\x04\x12\x06\xb4\x01\x04\ + \xb2\x01\x16\n\x0f\n\x07\x04\0\x03\x07\x02\0\x05\x12\x04\xb4\x01\x04\x08\ + \n\x0f\n\x07\x04\0\x03\x07\x02\0\x01\x12\x04\xb4\x01\t\x10\n\x0f\n\x07\ + \x04\0\x03\x07\x02\0\x03\x12\x04\xb4\x01\x13\x14\n\xd2\x01\n\x04\x04\0\ + \x03\x08\x12\x06\xba\x01\x02\xc7\x01\x03\x1a\xc1\x01\x20Properties\x20of\ + \x20a\x20bucket\x20related\x20to\x20accessing\x20the\x20contents\x20as\ + \x20a\x20static\n\x20website.\x20For\x20more\x20on\x20hosting\x20a\x20st\ + atic\x20website\x20via\x20GCS,\x20see\n\x20https://cloud.google.com/stor\ + age/docs/hosting-static-website.\n\n\r\n\x05\x04\0\x03\x08\x01\x12\x04\ + \xba\x01\n\x11\n\x84\x02\n\x06\x04\0\x03\x08\x02\0\x12\x04\xbf\x01\x04\ + \x20\x1a\xf3\x01\x20If\x20the\x20requested\x20object\x20path\x20is\x20mi\ + ssing,\x20the\x20service\x20will\x20ensure\x20the\x20path\n\x20has\x20a\ + \x20trailing\x20'/',\x20append\x20this\x20suffix,\x20and\x20attempt\x20t\ + o\x20retrieve\x20the\n\x20resulting\x20object.\x20This\x20allows\x20the\ + \x20creation\x20of\x20`index.html`\n\x20objects\x20to\x20represent\x20di\ + rectory\x20pages.\n\n\x11\n\x07\x04\0\x03\x08\x02\0\x04\x12\x06\xbf\x01\ + \x04\xba\x01\x13\n\x0f\n\x07\x04\0\x03\x08\x02\0\x05\x12\x04\xbf\x01\x04\ + \n\n\x0f\n\x07\x04\0\x03\x08\x02\0\x01\x12\x04\xbf\x01\x0b\x1b\n\x0f\n\ + \x07\x04\0\x03\x08\x02\0\x03\x12\x04\xbf\x01\x1e\x1f\n\x94\x02\n\x06\x04\ + \0\x03\x08\x02\x01\x12\x04\xc6\x01\x04\x1e\x1a\x83\x02\x20If\x20the\x20r\ + equested\x20object\x20path\x20is\x20missing,\x20and\x20any\n\x20`mainPag\ + eSuffix`\x20object\x20is\x20missing,\x20if\x20applicable,\x20the\x20serv\ + ice\n\x20will\x20return\x20the\x20named\x20object\x20from\x20this\x20buc\ + ket\x20as\x20the\x20content\x20for\x20a\n\x20[https://tools.ietf.org/htm\ + l/rfc7231#section-6.5.4][404\x20Not\x20Found]\n\x20result.\n\n\x11\n\x07\ + \x04\0\x03\x08\x02\x01\x04\x12\x06\xc6\x01\x04\xbf\x01\x20\n\x0f\n\x07\ + \x04\0\x03\x08\x02\x01\x05\x12\x04\xc6\x01\x04\n\n\x0f\n\x07\x04\0\x03\ + \x08\x02\x01\x01\x12\x04\xc6\x01\x0b\x19\n\x0f\n\x07\x04\0\x03\x08\x02\ + \x01\x03\x12\x04\xc6\x01\x1c\x1d\n.\n\x04\x04\0\x02\0\x12\x04\xca\x01\ + \x02'\x1a\x20\x20Access\x20controls\x20on\x20the\x20bucket.\n\n\r\n\x05\ + \x04\0\x02\0\x04\x12\x04\xca\x01\x02\n\n\r\n\x05\x04\0\x02\0\x06\x12\x04\ + \xca\x01\x0b\x1e\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xca\x01\x1f\"\n\r\n\ + \x05\x04\0\x02\0\x03\x12\x04\xca\x01%&\nX\n\x04\x04\0\x02\x01\x12\x04\ + \xcd\x01\x026\x1aJ\x20Default\x20access\x20controls\x20to\x20apply\x20to\ + \x20new\x20objects\x20when\x20no\x20ACL\x20is\x20provided.\n\n\r\n\x05\ + \x04\0\x02\x01\x04\x12\x04\xcd\x01\x02\n\n\r\n\x05\x04\0\x02\x01\x06\x12\ + \x04\xcd\x01\x0b\x1e\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xcd\x01\x1f1\n\ + \r\n\x05\x04\0\x02\x01\x03\x12\x04\xcd\x0145\n\x9e\x01\n\x04\x04\0\x02\ + \x02\x12\x04\xd2\x01\x02\x1a\x1a\x8f\x01\x20The\x20bucket's\x20lifecycle\ + \x20configuration.\x20See\n\x20[https://developers.google.com/storage/do\ + cs/lifecycle]Lifecycle\x20Management]\n\x20for\x20more\x20information.\n\ + \n\x0f\n\x05\x04\0\x02\x02\x04\x12\x06\xd2\x01\x02\xcd\x016\n\r\n\x05\ + \x04\0\x02\x02\x06\x12\x04\xd2\x01\x02\x0b\n\r\n\x05\x04\0\x02\x02\x01\ + \x12\x04\xd2\x01\x0c\x15\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xd2\x01\x18\ + \x19\n\xa3\x01\n\x04\x04\0\x02\x03\x12\x04\xd7\x01\x02-\x1a\x94\x01\x20T\ + he\x20creation\x20time\x20of\x20the\x20bucket\x20in\n\x20[https://tools.\ + ietf.org/html/rfc3339][RFC\x203339]\x20format.\n\x20Attempting\x20to\x20\ + set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\ + \x05\x04\0\x02\x03\x04\x12\x06\xd7\x01\x02\xd2\x01\x1a\n\r\n\x05\x04\0\ + \x02\x03\x06\x12\x04\xd7\x01\x02\x1b\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\ + \xd7\x01\x1c(\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xd7\x01+,\n\xb8\x01\n\ + \x04\x04\0\x02\x04\x12\x04\xdd\x01\x02\x10\x1a\xa9\x01\x20The\x20ID\x20o\ + f\x20the\x20bucket.\x20For\x20buckets,\x20the\x20`id`\x20and\x20`name`\ + \x20properties\x20are\x20the\n\x20same.\n\x20Attempting\x20to\x20update\ + \x20this\x20field\x20after\x20the\x20bucket\x20is\x20created\x20will\x20\ + result\x20in\n\x20an\x20error.\n\n\x0f\n\x05\x04\0\x02\x04\x04\x12\x06\ + \xdd\x01\x02\xd7\x01-\n\r\n\x05\x04\0\x02\x04\x05\x12\x04\xdd\x01\x02\ + \x08\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\xdd\x01\t\x0b\n\r\n\x05\x04\0\ + \x02\x04\x03\x12\x04\xdd\x01\x0e\x0f\n~\n\x04\x04\0\x02\x05\x12\x04\xe2\ + \x01\x02\x12\x1ap\x20The\x20name\x20of\x20the\x20bucket.\n\x20Attempting\ + \x20to\x20update\x20this\x20field\x20after\x20the\x20bucket\x20is\x20cre\ + ated\x20will\x20result\x20in\n\x20an\x20error.\n\n\x0f\n\x05\x04\0\x02\ + \x05\x04\x12\x06\xe2\x01\x02\xdd\x01\x10\n\r\n\x05\x04\0\x02\x05\x05\x12\ + \x04\xe2\x01\x02\x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xe2\x01\t\r\n\r\ + \n\x05\x04\0\x02\x05\x03\x12\x04\xe2\x01\x10\x11\n\x7f\n\x04\x04\0\x02\ + \x06\x12\x04\xe6\x01\x02\x1b\x1aq\x20The\x20project\x20number\x20of\x20t\ + he\x20project\x20the\x20bucket\x20belongs\x20to.\n\x20Attempting\x20to\ + \x20set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\ + \n\x05\x04\0\x02\x06\x04\x12\x06\xe6\x01\x02\xe2\x01\x12\n\r\n\x05\x04\0\ + \x02\x06\x05\x12\x04\xe6\x01\x02\x07\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\ + \xe6\x01\x08\x16\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\xe6\x01\x19\x1a\nn\ + \n\x04\x04\0\x02\x07\x12\x04\xea\x01\x02\x1b\x1a`\x20The\x20metadata\x20\ + generation\x20of\x20this\x20bucket.\n\x20Attempting\x20to\x20set\x20this\ + \x20field\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\0\ + \x02\x07\x04\x12\x06\xea\x01\x02\xe6\x01\x1b\n\r\n\x05\x04\0\x02\x07\x05\ + \x12\x04\xea\x01\x02\x07\n\r\n\x05\x04\0\x02\x07\x01\x12\x04\xea\x01\x08\ + \x16\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\xea\x01\x19\x1a\np\n\x04\x04\0\ + \x02\x08\x12\x04\xee\x01\x02\x19\x1ab\x20The\x20bucket's\x20[https://www\ + .w3.org/TR/cors/][Cross-Origin\x20Resource\x20Sharing]\n\x20(CORS)\x20co\ + nfiguration.\n\n\r\n\x05\x04\0\x02\x08\x04\x12\x04\xee\x01\x02\n\n\r\n\ + \x05\x04\0\x02\x08\x06\x12\x04\xee\x01\x0b\x0f\n\r\n\x05\x04\0\x02\x08\ + \x01\x12\x04\xee\x01\x10\x14\n\r\n\x05\x04\0\x02\x08\x03\x12\x04\xee\x01\ + \x17\x18\n\xfb\x02\n\x04\x04\0\x02\t\x12\x04\xf5\x01\x02\x17\x1a\xec\x02\ + \x20The\x20location\x20of\x20the\x20bucket.\x20Object\x20data\x20for\x20\ + objects\x20in\x20the\x20bucket\x20resides\n\x20in\x20physical\x20storage\ + \x20within\x20this\x20region.\x20\x20Defaults\x20to\x20`US`.\x20See\x20t\ + he\n\x20[https://developers.google.com/storage/docs/concepts-techniques#\ + specifyinglocations\"][developer's\n\x20guide]\x20for\x20the\x20authorit\ + ative\x20list.\x20Attempting\x20to\x20update\x20this\x20field\x20after\n\ + \x20the\x20bucket\x20is\x20created\x20will\x20result\x20in\x20an\x20erro\ + r.\n\n\x0f\n\x05\x04\0\x02\t\x04\x12\x06\xf5\x01\x02\xee\x01\x19\n\r\n\ + \x05\x04\0\x02\t\x05\x12\x04\xf5\x01\x02\x08\n\r\n\x05\x04\0\x02\t\x01\ + \x12\x04\xf5\x01\t\x11\n\r\n\x05\x04\0\x02\t\x03\x12\x04\xf5\x01\x14\x16\ + \n\x92\x03\n\x04\x04\0\x02\n\x12\x04\xfd\x01\x02\x1c\x1a\x83\x03\x20The\ + \x20bucket's\x20default\x20storage\x20class,\x20used\x20whenever\x20no\ + \x20storageClass\x20is\n\x20specified\x20for\x20a\x20newly-created\x20ob\ + ject.\x20This\x20defines\x20how\x20objects\x20in\x20the\n\x20bucket\x20a\ + re\x20stored\x20and\x20determines\x20the\x20SLA\x20and\x20the\x20cost\ + \x20of\x20storage.\n\x20If\x20this\x20value\x20is\x20not\x20specified\ + \x20when\x20the\x20bucket\x20is\x20created,\x20it\x20will\x20default\n\ + \x20to\x20`STANDARD`.\x20For\x20more\x20information,\x20see\n\x20https:/\ + /developers.google.com/storage/docs/storage-classes.\n\n\x0f\n\x05\x04\0\ + \x02\n\x04\x12\x06\xfd\x01\x02\xf5\x01\x17\n\r\n\x05\x04\0\x02\n\x05\x12\ + \x04\xfd\x01\x02\x08\n\r\n\x05\x04\0\x02\n\x01\x12\x04\xfd\x01\t\x16\n\r\ + \n\x05\x04\0\x02\n\x03\x12\x04\xfd\x01\x19\x1b\n\x9f\x01\n\x04\x04\0\x02\ + \x0b\x12\x04\x82\x02\x02\x13\x1a\x90\x01\x20HTTP\x201.1\x20[https://tool\ + s.ietf.org/html/rfc7232#section-2.3\"]Entity\x20tag]\n\x20for\x20the\x20\ + bucket.\n\x20Attempting\x20to\x20set\x20this\x20field\x20will\x20result\ + \x20in\x20an\x20error.\n\n\x0f\n\x05\x04\0\x02\x0b\x04\x12\x06\x82\x02\ + \x02\xfd\x01\x1c\n\r\n\x05\x04\0\x02\x0b\x05\x12\x04\x82\x02\x02\x08\n\r\ + \n\x05\x04\0\x02\x0b\x01\x12\x04\x82\x02\t\r\n\r\n\x05\x04\0\x02\x0b\x03\ + \x12\x04\x82\x02\x10\x12\nk\n\x04\x04\0\x02\x0c\x12\x04\x86\x02\x02)\x1a\ + ]\x20The\x20modification\x20time\x20of\x20the\x20bucket.\n\x20Attempting\ + \x20to\x20set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\ + \n\x0f\n\x05\x04\0\x02\x0c\x04\x12\x06\x86\x02\x02\x82\x02\x13\n\r\n\x05\ + \x04\0\x02\x0c\x06\x12\x04\x86\x02\x02\x1b\n\r\n\x05\x04\0\x02\x0c\x01\ + \x12\x04\x86\x02\x1c#\n\r\n\x05\x04\0\x02\x0c\x03\x12\x04\x86\x02&(\n\ + \x91\x07\n\x04\x04\0\x02\r\x12\x04\x95\x02\x02%\x1a\x82\x07\x20The\x20de\ + fault\x20value\x20for\x20event-based\x20hold\x20on\x20newly\x20created\ + \x20objects\x20in\x20this\n\x20bucket.\x20\x20Event-based\x20hold\x20is\ + \x20a\x20way\x20to\x20retain\x20objects\x20indefinitely\x20until\x20an\n\ + \x20event\x20occurs,\x20signified\x20by\x20the\n\x20hold's\x20release.\ + \x20After\x20being\x20released,\x20such\x20objects\x20will\x20be\x20subj\ + ect\x20to\n\x20bucket-level\x20retention\x20(if\x20any).\x20\x20One\x20s\ + ample\x20use\x20case\x20of\x20this\x20flag\x20is\x20for\n\x20banks\x20to\ + \x20hold\x20loan\x20documents\x20for\x20at\x20least\x203\x20years\x20aft\ + er\x20loan\x20is\x20paid\x20in\n\x20full.\x20Here,\x20bucket-level\x20re\ + tention\x20is\x203\x20years\x20and\x20the\x20event\x20is\x20loan\x20bein\ + g\n\x20paid\x20in\x20full.\x20In\x20this\x20example,\x20these\x20objects\ + \x20will\x20be\x20held\x20intact\x20for\x20any\n\x20number\x20of\x20year\ + s\x20until\x20the\x20event\x20has\x20occurred\x20(event-based\x20hold\ + \x20on\x20the\n\x20object\x20is\x20released)\x20and\x20then\x203\x20more\ + \x20years\x20after\x20that.\x20That\x20means\x20retention\n\x20duration\ + \x20of\x20the\x20objects\x20begins\x20from\x20the\x20moment\x20event-bas\ + ed\x20hold\n\x20transitioned\x20from\x20true\x20to\x20false.\x20\x20Obje\ + cts\x20under\x20event-based\x20hold\x20cannot\x20be\n\x20deleted,\x20ove\ + rwritten\x20or\x20archived\x20until\x20the\x20hold\x20is\x20removed.\n\n\ + \x0f\n\x05\x04\0\x02\r\x04\x12\x06\x95\x02\x02\x86\x02)\n\r\n\x05\x04\0\ + \x02\r\x05\x12\x04\x95\x02\x02\x06\n\r\n\x05\x04\0\x02\r\x01\x12\x04\x95\ + \x02\x07\x1f\n\r\n\x05\x04\0\x02\r\x03\x12\x04\x95\x02\"$\n9\n\x04\x04\0\ + \x02\x0e\x12\x04\x98\x02\x02\"\x1a+\x20User-provided\x20labels,\x20in\ + \x20key/value\x20pairs.\n\n\x0f\n\x05\x04\0\x02\x0e\x04\x12\x06\x98\x02\ + \x02\x95\x02%\n\r\n\x05\x04\0\x02\x0e\x06\x12\x04\x98\x02\x02\x15\n\r\n\ + \x05\x04\0\x02\x0e\x01\x12\x04\x98\x02\x16\x1c\n\r\n\x05\x04\0\x02\x0e\ + \x03\x12\x04\x98\x02\x1f!\n\xf7\x01\n\x04\x04\0\x02\x0f\x12\x04\x9e\x02\ + \x02\x17\x1a\xe8\x01\x20The\x20bucket's\x20website\x20configuration,\x20\ + controlling\x20how\x20the\x20service\x20behaves\n\x20when\x20accessing\ + \x20bucket\x20contents\x20as\x20a\x20web\x20site.\x20See\x20the\n\x20[ht\ + tps://cloud.google.com/storage/docs/static-website][Static\x20Website\n\ + \x20Examples]\x20for\x20more\x20information.\n\n\x0f\n\x05\x04\0\x02\x0f\ + \x04\x12\x06\x9e\x02\x02\x98\x02\"\n\r\n\x05\x04\0\x02\x0f\x06\x12\x04\ + \x9e\x02\x02\t\n\r\n\x05\x04\0\x02\x0f\x01\x12\x04\x9e\x02\n\x11\n\r\n\ + \x05\x04\0\x02\x0f\x03\x12\x04\x9e\x02\x14\x16\n6\n\x04\x04\0\x02\x10\ + \x12\x04\xa1\x02\x02\x1d\x1a(\x20The\x20bucket's\x20versioning\x20config\ + uration.\n\n\x0f\n\x05\x04\0\x02\x10\x04\x12\x06\xa1\x02\x02\x9e\x02\x17\ + \n\r\n\x05\x04\0\x02\x10\x06\x12\x04\xa1\x02\x02\x0c\n\r\n\x05\x04\0\x02\ + \x10\x01\x12\x04\xa1\x02\r\x17\n\r\n\x05\x04\0\x02\x10\x03\x12\x04\xa1\ + \x02\x1a\x1c\n\x92\x01\n\x04\x04\0\x02\x11\x12\x04\xa5\x02\x02\x17\x1a\ + \x83\x01\x20The\x20bucket's\x20logging\x20configuration,\x20which\x20def\ + ines\x20the\x20destination\x20bucket\n\x20and\x20optional\x20name\x20pre\ + fix\x20for\x20the\x20current\x20bucket's\x20logs.\n\n\x0f\n\x05\x04\0\ + \x02\x11\x04\x12\x06\xa5\x02\x02\xa1\x02\x1d\n\r\n\x05\x04\0\x02\x11\x06\ + \x12\x04\xa5\x02\x02\t\n\r\n\x05\x04\0\x02\x11\x01\x12\x04\xa5\x02\n\x11\ + \n\r\n\x05\x04\0\x02\x11\x03\x12\x04\xa5\x02\x14\x16\nW\n\x04\x04\0\x02\ + \x12\x12\x04\xa8\x02\x02\x13\x1aI\x20The\x20owner\x20of\x20the\x20bucket\ + .\x20This\x20is\x20always\x20the\x20project\x20team's\x20owner\x20group.\ + \n\n\x0f\n\x05\x04\0\x02\x12\x04\x12\x06\xa8\x02\x02\xa5\x02\x17\n\r\n\ + \x05\x04\0\x02\x12\x06\x12\x04\xa8\x02\x02\x07\n\r\n\x05\x04\0\x02\x12\ + \x01\x12\x04\xa8\x02\x08\r\n\r\n\x05\x04\0\x02\x12\x03\x12\x04\xa8\x02\ + \x10\x12\n6\n\x04\x04\0\x02\x13\x12\x04\xab\x02\x02\x1d\x1a(\x20Encrypti\ + on\x20configuration\x20for\x20a\x20bucket.\n\n\x0f\n\x05\x04\0\x02\x13\ + \x04\x12\x06\xab\x02\x02\xa8\x02\x13\n\r\n\x05\x04\0\x02\x13\x06\x12\x04\ + \xab\x02\x02\x0c\n\r\n\x05\x04\0\x02\x13\x01\x12\x04\xab\x02\r\x17\n\r\n\ + \x05\x04\0\x02\x13\x03\x12\x04\xab\x02\x1a\x1c\n3\n\x04\x04\0\x02\x14\ + \x12\x04\xae\x02\x02\x17\x1a%\x20The\x20bucket's\x20billing\x20configura\ + tion.\n\n\x0f\n\x05\x04\0\x02\x14\x04\x12\x06\xae\x02\x02\xab\x02\x1d\n\ + \r\n\x05\x04\0\x02\x14\x06\x12\x04\xae\x02\x02\t\n\r\n\x05\x04\0\x02\x14\ + \x01\x12\x04\xae\x02\n\x11\n\r\n\x05\x04\0\x02\x14\x03\x12\x04\xae\x02\ + \x14\x16\n\xf1\x04\n\x04\x04\0\x02\x15\x12\x04\xb9\x02\x02(\x1a\xe2\x04\ + \x20The\x20bucket's\x20retention\x20policy.\x20The\x20retention\x20polic\ + y\x20enforces\x20a\x20minimum\n\x20retention\x20time\x20for\x20all\x20ob\ + jects\x20contained\x20in\x20the\x20bucket,\x20based\x20on\x20their\n\x20\ + creation\x20time.\x20Any\x20attempt\x20to\x20overwrite\x20or\x20delete\ + \x20objects\x20younger\x20than\x20the\n\x20retention\x20period\x20will\ + \x20result\x20in\x20a\x20PERMISSION_DENIED\x20error.\x20\x20An\x20unlock\ + ed\n\x20retention\x20policy\x20can\x20be\x20modified\x20or\x20removed\ + \x20from\x20the\x20bucket\x20via\x20a\n\x20storage.buckets.update\x20ope\ + ration.\x20A\x20locked\x20retention\x20policy\x20cannot\x20be\n\x20remov\ + ed\x20or\x20shortened\x20in\x20duration\x20for\x20the\x20lifetime\x20of\ + \x20the\x20bucket.\n\x20Attempting\x20to\x20remove\x20or\x20decrease\x20\ + period\x20of\x20a\x20locked\x20retention\x20policy\x20will\n\x20result\ + \x20in\x20a\x20PERMISSION_DENIED\x20error.\n\n\x0f\n\x05\x04\0\x02\x15\ + \x04\x12\x06\xb9\x02\x02\xae\x02\x17\n\r\n\x05\x04\0\x02\x15\x06\x12\x04\ + \xb9\x02\x02\x11\n\r\n\x05\x04\0\x02\x15\x01\x12\x04\xb9\x02\x12\"\n\r\n\ + \x05\x04\0\x02\x15\x03\x12\x04\xb9\x02%'\nY\n\x04\x04\0\x02\x16\x12\x04\ + \xbc\x02\x02\x1c\x1aK\x20The\x20location\x20type\x20of\x20the\x20bucket\ + \x20(region,\x20dual-region,\x20multi-region,\x20etc).\n\n\x0f\n\x05\x04\ + \0\x02\x16\x04\x12\x06\xbc\x02\x02\xb9\x02(\n\r\n\x05\x04\0\x02\x16\x05\ + \x12\x04\xbc\x02\x02\x08\n\r\n\x05\x04\0\x02\x16\x01\x12\x04\xbc\x02\t\ + \x16\n\r\n\x05\x04\0\x02\x16\x03\x12\x04\xbc\x02\x19\x1b\n/\n\x04\x04\0\ + \x02\x17\x12\x04\xbf\x02\x02*\x1a!\x20The\x20bucket's\x20IAM\x20configur\ + ation.\n\n\x0f\n\x05\x04\0\x02\x17\x04\x12\x06\xbf\x02\x02\xbc\x02\x1c\n\ + \r\n\x05\x04\0\x02\x17\x06\x12\x04\xbf\x02\x02\x12\n\r\n\x05\x04\0\x02\ + \x17\x01\x12\x04\xbf\x02\x13$\n\r\n\x05\x04\0\x02\x17\x03\x12\x04\xbf\ + \x02')\n\xc0\x02\n\x04\x04\0\x02\x18\x12\x04\xc6\x02\x02%\x1a\xb1\x02\ + \x20The\x20zone\x20or\x20zones\x20from\x20which\x20the\x20bucket\x20is\ + \x20intended\x20to\x20use\x20zonal\x20quota.\n\x20Requests\x20for\x20dat\ + a\x20from\x20outside\x20the\x20specified\x20affinities\x20are\x20still\ + \x20allowed\n\x20but\x20won\xe2\x80\x99t\x20be\x20able\x20to\x20use\x20z\ + onal\x20quota.\x20The\x20values\x20are\x20case-insensitive.\n\x20Attempt\ + ing\x20to\x20update\x20this\x20field\x20after\x20bucket\x20is\x20created\ + \x20will\x20result\x20in\x20an\n\x20error.\n\n\r\n\x05\x04\0\x02\x18\x04\ + \x12\x04\xc6\x02\x02\n\n\r\n\x05\x04\0\x02\x18\x05\x12\x04\xc6\x02\x0b\ + \x11\n\r\n\x05\x04\0\x02\x18\x01\x12\x04\xc6\x02\x12\x1f\n\r\n\x05\x04\0\ + \x02\x18\x03\x12\x04\xc6\x02\"$\n(\n\x02\x04\x01\x12\x06\xca\x02\0\xf4\ + \x02\x01\x1a\x1a\x20An\x20access-control\x20entry.\n\n\x0b\n\x03\x04\x01\ + \x01\x12\x04\xca\x02\x08\x1b\n5\n\x04\x04\x01\x02\0\x12\x04\xcc\x02\x02\ + \x12\x1a'\x20The\x20access\x20permission\x20for\x20the\x20entity.\n\n\ + \x0f\n\x05\x04\x01\x02\0\x04\x12\x06\xcc\x02\x02\xca\x02\x1d\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\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xcc\x02\x10\x11\ + \nv\n\x04\x04\x01\x02\x01\x12\x04\xd0\x02\x02\x12\x1ah\x20HTTP\x201.1\ + \x20[\"https://tools.ietf.org/html/rfc7232#section-2.3][Entity\x20tag]\n\ + \x20for\x20the\x20access-control\x20entry.\n\n\x0f\n\x05\x04\x01\x02\x01\ + \x04\x12\x06\xd0\x02\x02\xcc\x02\x12\n\r\n\x05\x04\x01\x02\x01\x05\x12\ + \x04\xd0\x02\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xd0\x02\t\r\n\ + \r\n\x05\x04\x01\x02\x01\x03\x12\x04\xd0\x02\x10\x11\n3\n\x04\x04\x01\ + \x02\x02\x12\x04\xd3\x02\x02\x10\x1a%\x20The\x20ID\x20of\x20the\x20acces\ + s-control\x20entry.\n\n\x0f\n\x05\x04\x01\x02\x02\x04\x12\x06\xd3\x02\ + \x02\xd0\x02\x12\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xd3\x02\x02\x08\n\ + \r\n\x05\x04\x01\x02\x02\x01\x12\x04\xd3\x02\t\x0b\n\r\n\x05\x04\x01\x02\ + \x02\x03\x12\x04\xd3\x02\x0e\x0f\n'\n\x04\x04\x01\x02\x03\x12\x04\xd6\ + \x02\x02\x14\x1a\x19\x20The\x20name\x20of\x20the\x20bucket.\n\n\x0f\n\ + \x05\x04\x01\x02\x03\x04\x12\x06\xd6\x02\x02\xd3\x02\x10\n\r\n\x05\x04\ + \x01\x02\x03\x05\x12\x04\xd6\x02\x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\ + \x12\x04\xd6\x02\t\x0f\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xd6\x02\x12\ + \x13\n\xfb\x03\n\x04\x04\x01\x02\x04\x12\x04\xe7\x02\x02\x14\x1a\xec\x03\ + \x20The\x20entity\x20holding\x20the\x20permission,\x20in\x20one\x20of\ + \x20the\x20following\x20forms:\n\x20*\x20`user-{userid}`\n\x20*\x20`user\ + -{email}`\n\x20*\x20`group-{groupid}`\n\x20*\x20`group-{email}`\n\x20*\ + \x20`domain-{domain}`\n\x20*\x20`project-{team-projectid}`\n\x20*\x20`al\ + lUsers`\n\x20*\x20`allAuthenticatedUsers`\n\x20Examples:\n\x20*\x20The\ + \x20user\x20`liz@example.com`\x20would\x20be\x20`user-liz@example.com`.\ + \n\x20*\x20The\x20group\x20`example@googlegroups.com`\x20would\x20be\n\ + \x20`group-example@googlegroups.com`\n\x20*\x20All\x20members\x20of\x20t\ + he\x20Google\x20Apps\x20for\x20Business\x20domain\x20`example.com`\x20wo\ + uld\x20be\n\x20`domain-example.com`\n\n\x0f\n\x05\x04\x01\x02\x04\x04\ + \x12\x06\xe7\x02\x02\xd6\x02\x14\n\r\n\x05\x04\x01\x02\x04\x05\x12\x04\ + \xe7\x02\x02\x08\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\xe7\x02\t\x0f\n\r\ + \n\x05\x04\x01\x02\x04\x03\x12\x04\xe7\x02\x12\x13\n.\n\x04\x04\x01\x02\ + \x05\x12\x04\xea\x02\x02\x17\x1a\x20\x20The\x20ID\x20for\x20the\x20entit\ + y,\x20if\x20any.\n\n\x0f\n\x05\x04\x01\x02\x05\x04\x12\x06\xea\x02\x02\ + \xe7\x02\x14\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\xea\x02\x02\x08\n\r\n\ + \x05\x04\x01\x02\x05\x01\x12\x04\xea\x02\t\x12\n\r\n\x05\x04\x01\x02\x05\ + \x03\x12\x04\xea\x02\x15\x16\nE\n\x04\x04\x01\x02\x06\x12\x04\xed\x02\ + \x02\x13\x1a7\x20The\x20email\x20address\x20associated\x20with\x20the\ + \x20entity,\x20if\x20any.\n\n\x0f\n\x05\x04\x01\x02\x06\x04\x12\x06\xed\ + \x02\x02\xea\x02\x17\n\r\n\x05\x04\x01\x02\x06\x05\x12\x04\xed\x02\x02\ + \x08\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\xed\x02\t\x0e\n\r\n\x05\x04\ + \x01\x02\x06\x03\x12\x04\xed\x02\x11\x12\n>\n\x04\x04\x01\x02\x07\x12\ + \x04\xf0\x02\x02\x14\x1a0\x20The\x20domain\x20associated\x20with\x20the\ + \x20entity,\x20if\x20any.\n\n\x0f\n\x05\x04\x01\x02\x07\x04\x12\x06\xf0\ + \x02\x02\xed\x02\x13\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\xf0\x02\x02\ + \x08\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\xf0\x02\t\x0f\n\r\n\x05\x04\ + \x01\x02\x07\x03\x12\x04\xf0\x02\x12\x13\nD\n\x04\x04\x01\x02\x08\x12\ + \x04\xf3\x02\x02\x20\x1a6\x20The\x20project\x20team\x20associated\x20wit\ + h\x20the\x20entity,\x20if\x20any.\n\n\x0f\n\x05\x04\x01\x02\x08\x04\x12\ + \x06\xf3\x02\x02\xf0\x02\x14\n\r\n\x05\x04\x01\x02\x08\x06\x12\x04\xf3\ + \x02\x02\r\n\r\n\x05\x04\x01\x02\x08\x01\x12\x04\xf3\x02\x0e\x1a\n\r\n\ + \x05\x04\x01\x02\x08\x03\x12\x04\xf3\x02\x1d\x1f\nX\n\x02\x04\x02\x12\ + \x06\xf7\x02\0\xfa\x02\x01\x1aJ\x20The\x20response\x20to\x20a\x20call\ + \x20to\x20BucketAccessControls.ListBucketAccessControls.\n\n\x0b\n\x03\ + \x04\x02\x01\x12\x04\xf7\x02\x08(\n\"\n\x04\x04\x02\x02\0\x12\x04\xf9\ + \x02\x02)\x1a\x14\x20The\x20list\x20of\x20items.\n\n\r\n\x05\x04\x02\x02\ + \0\x04\x12\x04\xf9\x02\x02\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xf9\x02\ + \x0b\x1e\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xf9\x02\x1f$\n\r\n\x05\x04\ + \x02\x02\0\x03\x12\x04\xf9\x02'(\n;\n\x02\x04\x03\x12\x06\xfd\x02\0\x84\ + \x03\x01\x1a-\x20The\x20result\x20of\x20a\x20call\x20to\x20Buckets.ListB\ + uckets\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xfd\x02\x08\x1b\n\"\n\x04\x04\ + \x03\x02\0\x12\x04\xff\x02\x02\x1c\x1a\x14\x20The\x20list\x20of\x20items\ + .\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\xff\x02\x02\n\n\r\n\x05\x04\x03\ + \x02\0\x06\x12\x04\xff\x02\x0b\x11\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\ + \xff\x02\x12\x17\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xff\x02\x1a\x1b\n\ + \xa0\x01\n\x04\x04\x03\x02\x01\x12\x04\x83\x03\x02\x1d\x1a\x91\x01\x20Th\ + e\x20continuation\x20token,\x20used\x20to\x20page\x20through\x20large\ + \x20result\x20sets.\x20Provide\n\x20this\x20value\x20in\x20a\x20subseque\ + nt\x20request\x20to\x20return\x20the\x20next\x20page\x20of\x20results.\n\ + \n\x0f\n\x05\x04\x03\x02\x01\x04\x12\x06\x83\x03\x02\xff\x02\x1c\n\r\n\ + \x05\x04\x03\x02\x01\x05\x12\x04\x83\x03\x02\x08\n\r\n\x05\x04\x03\x02\ + \x01\x01\x12\x04\x83\x03\t\x18\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x83\ + \x03\x1b\x1c\nK\n\x02\x04\x04\x12\x06\x87\x03\0\xa4\x03\x01\x1a=\x20An\ + \x20notification\x20channel\x20used\x20to\x20watch\x20for\x20resource\ + \x20changes.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x87\x03\x08\x0f\nM\n\x04\ + \x04\x04\x02\0\x12\x04\x89\x03\x02\x10\x1a?\x20A\x20UUID\x20or\x20simila\ + r\x20unique\x20string\x20that\x20identifies\x20this\x20channel.\n\n\x0f\ + \n\x05\x04\x04\x02\0\x04\x12\x06\x89\x03\x02\x87\x03\x11\n\r\n\x05\x04\ + \x04\x02\0\x05\x12\x04\x89\x03\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\ + \x04\x89\x03\t\x0b\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x89\x03\x0e\x0f\n\ + \x7f\n\x04\x04\x04\x02\x01\x12\x04\x8d\x03\x02\x19\x1aq\x20An\x20opaque\ + \x20ID\x20that\x20identifies\x20the\x20resource\x20being\x20watched\x20o\ + n\x20this\x20channel.\n\x20Stable\x20across\x20different\x20API\x20versi\ + ons.\n\n\x0f\n\x05\x04\x04\x02\x01\x04\x12\x06\x8d\x03\x02\x89\x03\x10\n\ + \r\n\x05\x04\x04\x02\x01\x05\x12\x04\x8d\x03\x02\x08\n\r\n\x05\x04\x04\ + \x02\x01\x01\x12\x04\x8d\x03\t\x14\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\ + \x8d\x03\x17\x18\nG\n\x04\x04\x04\x02\x02\x12\x04\x90\x03\x02\x1a\x1a9\ + \x20A\x20version-specific\x20identifier\x20for\x20the\x20watched\x20reso\ + urce.\n\n\x0f\n\x05\x04\x04\x02\x02\x04\x12\x06\x90\x03\x02\x8d\x03\x19\ + \n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\x90\x03\x02\x08\n\r\n\x05\x04\x04\ + \x02\x02\x01\x12\x04\x90\x03\t\x15\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\ + \x90\x03\x18\x19\n\x82\x01\n\x04\x04\x04\x02\x03\x12\x04\x94\x03\x02\x13\ + \x1at\x20An\x20arbitrary\x20string\x20delivered\x20to\x20the\x20target\ + \x20address\x20with\x20each\x20notification\n\x20delivered\x20over\x20th\ + is\x20channel.\x20Optional.\n\n\x0f\n\x05\x04\x04\x02\x03\x04\x12\x06\ + \x94\x03\x02\x90\x03\x1a\n\r\n\x05\x04\x04\x02\x03\x05\x12\x04\x94\x03\ + \x02\x08\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\x94\x03\t\x0e\n\r\n\x05\ + \x04\x04\x02\x03\x03\x12\x04\x94\x03\x11\x12\nK\n\x04\x04\x04\x02\x04\ + \x12\x04\x97\x03\x02+\x1a=\x20Date\x20and\x20time\x20of\x20notification\ + \x20channel\x20expiration.\x20Optional.\n\n\x0f\n\x05\x04\x04\x02\x04\ + \x04\x12\x06\x97\x03\x02\x94\x03\x13\n\r\n\x05\x04\x04\x02\x04\x06\x12\ + \x04\x97\x03\x02\x1b\n\r\n\x05\x04\x04\x02\x04\x01\x12\x04\x97\x03\x1c&\ + \n\r\n\x05\x04\x04\x02\x04\x03\x12\x04\x97\x03)*\nE\n\x04\x04\x04\x02\ + \x05\x12\x04\x9a\x03\x02\x12\x1a7\x20The\x20type\x20of\x20delivery\x20me\ + chanism\x20used\x20for\x20this\x20channel.\n\n\x0f\n\x05\x04\x04\x02\x05\ + \x04\x12\x06\x9a\x03\x02\x97\x03+\n\r\n\x05\x04\x04\x02\x05\x05\x12\x04\ + \x9a\x03\x02\x08\n\r\n\x05\x04\x04\x02\x05\x01\x12\x04\x9a\x03\t\r\n\r\n\ + \x05\x04\x04\x02\x05\x03\x12\x04\x9a\x03\x10\x11\nO\n\x04\x04\x04\x02\ + \x06\x12\x04\x9d\x03\x02\x15\x1aA\x20The\x20address\x20where\x20notifica\ + tions\x20are\x20delivered\x20for\x20this\x20channel.\n\n\x0f\n\x05\x04\ + \x04\x02\x06\x04\x12\x06\x9d\x03\x02\x9a\x03\x12\n\r\n\x05\x04\x04\x02\ + \x06\x05\x12\x04\x9d\x03\x02\x08\n\r\n\x05\x04\x04\x02\x06\x01\x12\x04\ + \x9d\x03\t\x10\n\r\n\x05\x04\x04\x02\x06\x03\x12\x04\x9d\x03\x13\x14\nV\ + \n\x04\x04\x04\x02\x07\x12\x04\xa0\x03\x02!\x1aH\x20Additional\x20parame\ + ters\x20controlling\x20delivery\x20channel\x20behavior.\x20Optional.\n\n\ + \x0f\n\x05\x04\x04\x02\x07\x04\x12\x06\xa0\x03\x02\x9d\x03\x15\n\r\n\x05\ + \x04\x04\x02\x07\x06\x12\x04\xa0\x03\x02\x15\n\r\n\x05\x04\x04\x02\x07\ + \x01\x12\x04\xa0\x03\x16\x1c\n\r\n\x05\x04\x04\x02\x07\x03\x12\x04\xa0\ + \x03\x1f\x20\nP\n\x04\x04\x04\x02\x08\x12\x04\xa3\x03\x02\x13\x1aB\x20A\ + \x20Boolean\x20value\x20to\x20indicate\x20whether\x20payload\x20is\x20wa\ + nted.\x20Optional.\n\n\x0f\n\x05\x04\x04\x02\x08\x04\x12\x06\xa3\x03\x02\ + \xa0\x03!\n\r\n\x05\x04\x04\x02\x08\x05\x12\x04\xa3\x03\x02\x06\n\r\n\ + \x05\x04\x04\x02\x08\x01\x12\x04\xa3\x03\x07\x0e\n\r\n\x05\x04\x04\x02\ + \x08\x03\x12\x04\xa3\x03\x11\x12\n=\n\x02\x04\x05\x12\x06\xa7\x03\0\xbc\ + \x03\x01\x1a/\x20The\x20result\x20of\x20a\x20call\x20to\x20Channels.List\ + Channels\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xa7\x03\x08\x1c\n\x0e\n\x04\ + \x04\x05\x03\0\x12\x06\xa8\x03\x02\xb8\x03\x03\n\r\n\x05\x04\x05\x03\0\ + \x01\x12\x04\xa8\x03\n\x0f\nK\n\x06\x04\x05\x03\0\x02\0\x12\x04\xaa\x03\ + \x04\x1a\x1a;\x20User-specified\x20name\x20for\x20a\x20channel.\x20Neede\ + d\x20to\x20unsubscribe.\n\n\x11\n\x07\x04\x05\x03\0\x02\0\x04\x12\x06\ + \xaa\x03\x04\xa8\x03\x11\n\x0f\n\x07\x04\x05\x03\0\x02\0\x05\x12\x04\xaa\ + \x03\x04\n\n\x0f\n\x07\x04\x05\x03\0\x02\0\x01\x12\x04\xaa\x03\x0b\x15\n\ + \x0f\n\x07\x04\x05\x03\0\x02\0\x03\x12\x04\xaa\x03\x18\x19\n^\n\x06\x04\ + \x05\x03\0\x02\x01\x12\x04\xae\x03\x04\x1b\x1aN\x20Opaque\x20value\x20ge\ + nerated\x20by\x20GCS\x20representing\x20a\x20bucket.\x20Needed\x20to\n\ + \x20unsubscribe.\n\n\x11\n\x07\x04\x05\x03\0\x02\x01\x04\x12\x06\xae\x03\ + \x04\xaa\x03\x1a\n\x0f\n\x07\x04\x05\x03\0\x02\x01\x05\x12\x04\xae\x03\ + \x04\n\n\x0f\n\x07\x04\x05\x03\0\x02\x01\x01\x12\x04\xae\x03\x0b\x16\n\ + \x0f\n\x07\x04\x05\x03\0\x02\x01\x03\x12\x04\xae\x03\x19\x1a\nG\n\x06\ + \x04\x05\x03\0\x02\x02\x12\x04\xb1\x03\x04\x18\x1a7\x20Url\x20used\x20to\ + \x20identify\x20where\x20notifications\x20are\x20sent\x20to.\n\n\x11\n\ + \x07\x04\x05\x03\0\x02\x02\x04\x12\x06\xb1\x03\x04\xae\x03\x1b\n\x0f\n\ + \x07\x04\x05\x03\0\x02\x02\x05\x12\x04\xb1\x03\x04\n\n\x0f\n\x07\x04\x05\ + \x03\0\x02\x02\x01\x12\x04\xb1\x03\x0b\x13\n\x0f\n\x07\x04\x05\x03\0\x02\ + \x02\x03\x12\x04\xb1\x03\x16\x17\n2\n\x06\x04\x05\x03\0\x02\x03\x12\x04\ + \xb4\x03\x04\x20\x1a\"\x20Email\x20address\x20of\x20the\x20subscriber.\n\ + \n\x11\n\x07\x04\x05\x03\0\x02\x03\x04\x12\x06\xb4\x03\x04\xb1\x03\x18\n\ + \x0f\n\x07\x04\x05\x03\0\x02\x03\x05\x12\x04\xb4\x03\x04\n\n\x0f\n\x07\ + \x04\x05\x03\0\x02\x03\x01\x12\x04\xb4\x03\x0b\x1b\n\x0f\n\x07\x04\x05\ + \x03\0\x02\x03\x03\x12\x04\xb4\x03\x1e\x1f\n4\n\x06\x04\x05\x03\0\x02\ + \x04\x12\x04\xb7\x03\x040\x1a$\x20Time\x20when\x20the\x20channel\x20was\ + \x20created.\n\n\x11\n\x07\x04\x05\x03\0\x02\x04\x04\x12\x06\xb7\x03\x04\ + \xb4\x03\x20\n\x0f\n\x07\x04\x05\x03\0\x02\x04\x06\x12\x04\xb7\x03\x04\ + \x1d\n\x0f\n\x07\x04\x05\x03\0\x02\x04\x01\x12\x04\xb7\x03\x1e+\n\x0f\n\ + \x07\x04\x05\x03\0\x02\x04\x03\x12\x04\xb7\x03./\n?\n\x04\x04\x05\x02\0\ + \x12\x04\xbb\x03\x02\x1b\x1a1\x20The\x20list\x20of\x20notification\x20ch\ + annels\x20for\x20a\x20bucket.\n\n\r\n\x05\x04\x05\x02\0\x04\x12\x04\xbb\ + \x03\x02\n\n\r\n\x05\x04\x05\x02\0\x06\x12\x04\xbb\x03\x0b\x10\n\r\n\x05\ + \x04\x05\x02\0\x01\x12\x04\xbb\x03\x11\x16\n\r\n\x05\x04\x05\x02\0\x03\ + \x12\x04\xbb\x03\x19\x1a\n_\n\x02\x04\x06\x12\x06\xc0\x03\0\xc6\x03\x01\ + \x1aQ\x20Message\x20used\x20to\x20convey\x20content\x20being\x20read\x20\ + or\x20written,\x20along\x20with\x20its\n\x20checksum.\n\n\x0b\n\x03\x04\ + \x06\x01\x12\x04\xc0\x03\x08\x17\n\x19\n\x04\x04\x06\x02\0\x12\x04\xc2\ + \x03\x02\x14\x1a\x0b\x20The\x20data.\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\ + \x06\xc2\x03\x02\xc0\x03\x19\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xc2\x03\ + \x02\x07\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xc2\x03\x08\x0f\n\r\n\x05\ + \x04\x06\x02\0\x03\x12\x04\xc2\x03\x12\x13\n.\n\x04\x04\x06\x02\x01\x12\ + \x04\xc5\x03\x02)\x1a\x20\x20CRC32C\x20digest\x20of\x20the\x20contents.\ + \n\n\x0f\n\x05\x04\x06\x02\x01\x04\x12\x06\xc5\x03\x02\xc2\x03\x14\n\r\n\ + \x05\x04\x06\x02\x01\x06\x12\x04\xc5\x03\x02\x1d\n\r\n\x05\x04\x06\x02\ + \x01\x01\x12\x04\xc5\x03\x1e$\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xc5\ + \x03'(\nN\n\x02\x04\x07\x12\x06\xc9\x03\0\xd2\x03\x01\x1a@\x20Message\ + \x20used\x20for\x20storing\x20full\x20(not\x20subrange)\x20object\x20che\ + cksums.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xc9\x03\x08\x17\n\xcf\x01\n\ + \x04\x04\x07\x02\0\x12\x04\xcd\x03\x02)\x1a\xc0\x01\x20CRC32C\x20digest\ + \x20of\x20the\x20object\x20data.\x20Computed\x20by\x20the\x20GCS\x20serv\ + ice\x20for\n\x20all\x20written\x20objects,\x20and\x20validated\x20by\x20\ + the\x20GCS\x20service\x20against\n\x20client-supplied\x20values\x20if\ + \x20present\x20in\x20an\x20InsertObjectRequest.\n\n\x0f\n\x05\x04\x07\ + \x02\0\x04\x12\x06\xcd\x03\x02\xc9\x03\x19\n\r\n\x05\x04\x07\x02\0\x06\ + \x12\x04\xcd\x03\x02\x1d\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xcd\x03\x1e\ + $\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xcd\x03'(\n\x90\x01\n\x04\x04\x07\ + \x02\x01\x12\x04\xd1\x03\x02\x16\x1a\x81\x01\x20Hex-encoded\x20MD5\x20ha\ + sh\x20of\x20the\x20object\x20data\x20(hexdigest).\x20Whether/how\x20this\ + \n\x20checksum\x20is\x20provided\x20and\x20validated\x20is\x20service-de\ + pendent.\n\n\x0f\n\x05\x04\x07\x02\x01\x04\x12\x06\xd1\x03\x02\xcd\x03)\ + \n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xd1\x03\x02\x08\n\r\n\x05\x04\x07\ + \x02\x01\x01\x12\x04\xd1\x03\t\x11\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\ + \xd1\x03\x14\x15\nQ\n\x02\x04\x08\x12\x06\xd5\x03\0\x98\x04\x01\x1aC\x20\ + A\x20collection\x20of\x20enums\x20used\x20in\x20multiple\x20places\x20th\ + roughout\x20the\x20API.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xd5\x03\x08\ + \x13\n>\n\x04\x04\x08\x04\0\x12\x06\xd7\x03\x02\xe0\x03\x03\x1a.\x20A\ + \x20set\x20of\x20properties\x20to\x20return\x20in\x20a\x20response.\n\n\ + \r\n\x05\x04\x08\x04\0\x01\x12\x04\xd7\x03\x07\x11\n*\n\x06\x04\x08\x04\ + \0\x02\0\x12\x04\xd9\x03\x04\x1f\x1a\x1a\x20No\x20specified\x20projectio\ + n.\n\n\x0f\n\x07\x04\x08\x04\0\x02\0\x01\x12\x04\xd9\x03\x04\x1a\n\x0f\n\ + \x07\x04\x08\x04\0\x02\0\x02\x12\x04\xd9\x03\x1d\x1e\nI\n\x06\x04\x08\ + \x04\0\x02\x01\x12\x04\xdc\x03\x04\x0f\x1a9\x20Omit\x20`owner`,\x20`acl`\ + ,\x20and\x20`defaultObjectAcl`\x20properties.\n\n\x0f\n\x07\x04\x08\x04\ + \0\x02\x01\x01\x12\x04\xdc\x03\x04\n\n\x0f\n\x07\x04\x08\x04\0\x02\x01\ + \x02\x12\x04\xdc\x03\r\x0e\n)\n\x06\x04\x08\x04\0\x02\x02\x12\x04\xdf\ + \x03\x04\r\x1a\x19\x20Include\x20all\x20properties.\n\n\x0f\n\x07\x04\ + \x08\x04\0\x02\x02\x01\x12\x04\xdf\x03\x04\x08\n\x0f\n\x07\x04\x08\x04\0\ + \x02\x02\x02\x12\x04\xdf\x03\x0b\x0c\nY\n\x04\x04\x08\x04\x01\x12\x06\ + \xe3\x03\x02\xf8\x03\x03\x1aI\x20Predefined\x20or\x20\"canned\"\x20alias\ + es\x20for\x20sets\x20of\x20specific\x20bucket\x20ACL\x20entries.\n\n\r\n\ + \x05\x04\x08\x04\x01\x01\x12\x04\xe3\x03\x07\x1a\n$\n\x06\x04\x08\x04\ + \x01\x02\0\x12\x04\xe5\x03\x04*\x1a\x14\x20No\x20predefined\x20ACL.\n\n\ + \x0f\n\x07\x04\x08\x04\x01\x02\0\x01\x12\x04\xe5\x03\x04%\n\x0f\n\x07\ + \x04\x08\x04\x01\x02\0\x02\x12\x04\xe5\x03()\nk\n\x06\x04\x08\x04\x01\ + \x02\x01\x12\x04\xe9\x03\x04&\x1a[\x20Project\x20team\x20owners\x20get\ + \x20`OWNER`\x20access,\x20and\n\x20`allAuthenticatedUsers`\x20get\x20`RE\ + ADER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x01\x02\x01\x01\x12\x04\xe9\ + \x03\x04!\n\x0f\n\x07\x04\x08\x04\x01\x02\x01\x02\x12\x04\xe9\x03$%\n9\n\ + \x06\x04\x08\x04\x01\x02\x02\x12\x04\xec\x03\x04\x1b\x1a)\x20Project\x20\ + team\x20owners\x20get\x20`OWNER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\ + \x01\x02\x02\x01\x12\x04\xec\x03\x04\x16\n\x0f\n\x07\x04\x08\x04\x01\x02\ + \x02\x02\x12\x04\xec\x03\x19\x1a\nK\n\x06\x04\x08\x04\x01\x02\x03\x12\ + \x04\xef\x03\x04#\x1a;\x20Project\x20team\x20members\x20get\x20access\ + \x20according\x20to\x20their\x20roles.\n\n\x0f\n\x07\x04\x08\x04\x01\x02\ + \x03\x01\x12\x04\xef\x03\x04\x1e\n\x0f\n\x07\x04\x08\x04\x01\x02\x03\x02\ + \x12\x04\xef\x03!\"\n^\n\x06\x04\x08\x04\x01\x02\x04\x12\x04\xf3\x03\x04\ + \x1f\x1aN\x20Project\x20team\x20owners\x20get\x20`OWNER`\x20access,\x20a\ + nd\n\x20`allUsers`\x20get\x20`READER`\x20access.\n\n\x0f\n\x07\x04\x08\ + \x04\x01\x02\x04\x01\x12\x04\xf3\x03\x04\x1a\n\x0f\n\x07\x04\x08\x04\x01\ + \x02\x04\x02\x12\x04\xf3\x03\x1d\x1e\n^\n\x06\x04\x08\x04\x01\x02\x05\ + \x12\x04\xf7\x03\x04%\x1aN\x20Project\x20team\x20owners\x20get\x20`OWNER\ + `\x20access,\x20and\n\x20`allUsers`\x20get\x20`WRITER`\x20access.\n\n\ + \x0f\n\x07\x04\x08\x04\x01\x02\x05\x01\x12\x04\xf7\x03\x04\x20\n\x0f\n\ + \x07\x04\x08\x04\x01\x02\x05\x02\x12\x04\xf7\x03#$\nY\n\x04\x04\x08\x04\ + \x02\x12\x06\xfb\x03\x02\x95\x04\x03\x1aI\x20Predefined\x20or\x20\"canne\ + d\"\x20aliases\x20for\x20sets\x20of\x20specific\x20object\x20ACL\x20entr\ + ies.\n\n\r\n\x05\x04\x08\x04\x02\x01\x12\x04\xfb\x03\x07\x1a\n$\n\x06\ + \x04\x08\x04\x02\x02\0\x12\x04\xfd\x03\x04*\x1a\x14\x20No\x20predefined\ + \x20ACL.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\0\x01\x12\x04\xfd\x03\x04%\n\ + \x0f\n\x07\x04\x08\x04\x02\x02\0\x02\x12\x04\xfd\x03()\ne\n\x06\x04\x08\ + \x04\x02\x02\x01\x12\x04\x81\x04\x04&\x1aU\x20Object\x20owner\x20gets\ + \x20`OWNER`\x20access,\x20and\n\x20`allAuthenticatedUsers`\x20get\x20`RE\ + ADER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\x01\x01\x12\x04\x81\ + \x04\x04!\n\x0f\n\x07\x04\x08\x04\x02\x02\x01\x02\x12\x04\x81\x04$%\n`\n\ + \x06\x04\x08\x04\x02\x02\x02\x12\x04\x85\x04\x04-\x1aP\x20Object\x20owne\ + r\x20gets\x20`OWNER`\x20access,\x20and\x20project\x20team\x20owners\x20g\ + et\n\x20`OWNER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\x02\x01\x12\ + \x04\x85\x04\x04(\n\x0f\n\x07\x04\x08\x04\x02\x02\x02\x02\x12\x04\x85\ + \x04+,\na\n\x06\x04\x08\x04\x02\x02\x03\x12\x04\x89\x04\x04%\x1aQ\x20Obj\ + ect\x20owner\x20gets\x20`OWNER`\x20access,\x20and\x20project\x20team\x20\ + owners\x20get\n\x20`READER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\ + \x03\x01\x12\x04\x89\x04\x04\x20\n\x0f\n\x07\x04\x08\x04\x02\x02\x03\x02\ + \x12\x04\x89\x04#$\n3\n\x06\x04\x08\x04\x02\x02\x04\x12\x04\x8c\x04\x04\ + \x1b\x1a#\x20Object\x20owner\x20gets\x20`OWNER`\x20access.\n\n\x0f\n\x07\ + \x04\x08\x04\x02\x02\x04\x01\x12\x04\x8c\x04\x04\x16\n\x0f\n\x07\x04\x08\ + \x04\x02\x02\x04\x02\x12\x04\x8c\x04\x19\x1a\nr\n\x06\x04\x08\x04\x02\ + \x02\x05\x12\x04\x90\x04\x04#\x1ab\x20Object\x20owner\x20gets\x20`OWNER`\ + \x20access,\x20and\x20project\x20team\x20members\x20get\n\x20access\x20a\ + ccording\x20to\x20their\x20roles.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\x05\ + \x01\x12\x04\x90\x04\x04\x1e\n\x0f\n\x07\x04\x08\x04\x02\x02\x05\x02\x12\ + \x04\x90\x04!\"\nX\n\x06\x04\x08\x04\x02\x02\x06\x12\x04\x94\x04\x04\x1f\ + \x1aH\x20Object\x20owner\x20gets\x20`OWNER`\x20access,\x20and\x20`allUse\ + rs`\n\x20get\x20`READER`\x20access.\n\n\x0f\n\x07\x04\x08\x04\x02\x02\ + \x06\x01\x12\x04\x94\x04\x04\x1a\n\x0f\n\x07\x04\x08\x04\x02\x02\x06\x02\ + \x12\x04\x94\x04\x1d\x1e\nA\n\x02\x04\t\x12\x06\x9b\x04\0\xa4\x04\x01\ + \x1a3\x20Specifies\x20a\x20requested\x20range\x20of\x20bytes\x20to\x20do\ + wnload.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x9b\x04\x08\x14\n7\n\x04\x04\t\ + \x02\0\x12\x04\x9d\x04\x02\x12\x1a)\x20The\x20starting\x20offset\x20of\ + \x20the\x20object\x20data.\n\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\x9d\x04\ + \x02\x9b\x04\x16\n\r\n\x05\x04\t\x02\0\x05\x12\x04\x9d\x04\x02\x07\n\r\n\ + \x05\x04\t\x02\0\x01\x12\x04\x9d\x04\x08\r\n\r\n\x05\x04\t\x02\0\x03\x12\ + \x04\x9d\x04\x10\x11\n5\n\x04\x04\t\x02\x01\x12\x04\xa0\x04\x02\x10\x1a'\ + \x20The\x20ending\x20offset\x20of\x20the\x20object\x20data.\n\n\x0f\n\ + \x05\x04\t\x02\x01\x04\x12\x06\xa0\x04\x02\x9d\x04\x12\n\r\n\x05\x04\t\ + \x02\x01\x05\x12\x04\xa0\x04\x02\x07\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\ + \xa0\x04\x08\x0b\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xa0\x04\x0e\x0f\n7\ + \n\x04\x04\t\x02\x02\x12\x04\xa3\x04\x02\x1c\x1a)\x20The\x20complete\x20\ + length\x20of\x20the\x20object\x20data.\n\n\x0f\n\x05\x04\t\x02\x02\x04\ + \x12\x06\xa3\x04\x02\xa0\x04\x10\n\r\n\x05\x04\t\x02\x02\x05\x12\x04\xa3\ + \x04\x02\x07\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xa3\x04\x08\x17\n\r\n\ + \x05\x04\t\x02\x02\x03\x12\x04\xa3\x04\x1a\x1b\nX\n\x02\x04\n\x12\x06\ + \xa7\x04\0\xbf\x04\x01\x1aJ\x20Hmac\x20Key\x20Metadata,\x20which\x20incl\ + udes\x20all\x20information\x20other\x20than\x20the\x20secret.\n\n\x0b\n\ + \x03\x04\n\x01\x12\x04\xa7\x04\x08\x17\nQ\n\x04\x04\n\x02\0\x12\x04\xa9\ + \x04\x02\x10\x1aC\x20Resource\x20name\x20ID\x20of\x20the\x20key\x20in\ + \x20the\x20format\x20/.\n\n\x0f\n\x05\x04\n\x02\0\ + \x04\x12\x06\xa9\x04\x02\xa7\x04\x19\n\r\n\x05\x04\n\x02\0\x05\x12\x04\ + \xa9\x04\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xa9\x04\t\x0b\n\r\n\ + \x05\x04\n\x02\0\x03\x12\x04\xa9\x04\x0e\x0f\n,\n\x04\x04\n\x02\x01\x12\ + \x04\xac\x04\x02\x17\x1a\x1e\x20Globally\x20unique\x20id\x20for\x20keys.\ + \n\n\x0f\n\x05\x04\n\x02\x01\x04\x12\x06\xac\x04\x02\xa9\x04\x10\n\r\n\ + \x05\x04\n\x02\x01\x05\x12\x04\xac\x04\x02\x08\n\r\n\x05\x04\n\x02\x01\ + \x01\x12\x04\xac\x04\t\x12\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xac\x04\ + \x15\x16\nA\n\x04\x04\n\x02\x02\x12\x04\xaf\x04\x02\x18\x1a3\x20The\x20p\ + roject\x20ID\x20that\x20the\x20hmac\x20key\x20is\x20contained\x20in.\n\n\ + \x0f\n\x05\x04\n\x02\x02\x04\x12\x06\xaf\x04\x02\xac\x04\x17\n\r\n\x05\ + \x04\n\x02\x02\x05\x12\x04\xaf\x04\x02\x08\n\r\n\x05\x04\n\x02\x02\x01\ + \x12\x04\xaf\x04\t\x13\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xaf\x04\x16\ + \x17\nF\n\x04\x04\n\x02\x03\x12\x04\xb2\x04\x02#\x1a8\x20Email\x20of\x20\ + the\x20service\x20account\x20the\x20key\x20authenticates\x20as.\n\n\x0f\ + \n\x05\x04\n\x02\x03\x04\x12\x06\xb2\x04\x02\xaf\x04\x18\n\r\n\x05\x04\n\ + \x02\x03\x05\x12\x04\xb2\x04\x02\x08\n\r\n\x05\x04\n\x02\x03\x01\x12\x04\ + \xb2\x04\t\x1e\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\xb2\x04!\"\nF\n\x04\ + \x04\n\x02\x04\x12\x04\xb5\x04\x02\x13\x1a8\x20State\x20of\x20the\x20key\ + .\x20One\x20of\x20ACTIVE,\x20INACTIVE,\x20or\x20DELETED.\n\n\x0f\n\x05\ + \x04\n\x02\x04\x04\x12\x06\xb5\x04\x02\xb2\x04#\n\r\n\x05\x04\n\x02\x04\ + \x05\x12\x04\xb5\x04\x02\x08\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\xb5\x04\ + \t\x0e\n\r\n\x05\x04\n\x02\x04\x03\x12\x04\xb5\x04\x11\x12\nE\n\x04\x04\ + \n\x02\x05\x12\x04\xb8\x04\x02-\x1a7\x20The\x20creation\x20time\x20of\ + \x20the\x20HMAC\x20key\x20in\x20RFC\x203339\x20format.\n\n\x0f\n\x05\x04\ + \n\x02\x05\x04\x12\x06\xb8\x04\x02\xb5\x04\x13\n\r\n\x05\x04\n\x02\x05\ + \x06\x12\x04\xb8\x04\x02\x1b\n\r\n\x05\x04\n\x02\x05\x01\x12\x04\xb8\x04\ + \x1c(\n\r\n\x05\x04\n\x02\x05\x03\x12\x04\xb8\x04+,\nW\n\x04\x04\n\x02\ + \x06\x12\x04\xbb\x04\x02(\x1aI\x20The\x20last\x20modification\x20time\ + \x20of\x20the\x20HMAC\x20key\x20metadata\x20in\x20RFC\x203339\x20format.\ + \n\n\x0f\n\x05\x04\n\x02\x06\x04\x12\x06\xbb\x04\x02\xb8\x04-\n\r\n\x05\ + \x04\n\x02\x06\x06\x12\x04\xbb\x04\x02\x1b\n\r\n\x05\x04\n\x02\x06\x01\ + \x12\x04\xbb\x04\x1c#\n\r\n\x05\x04\n\x02\x06\x03\x12\x04\xbb\x04&'\n1\n\ + \x04\x04\n\x02\x07\x12\x04\xbe\x04\x02\x12\x1a#\x20Tag\x20updated\x20wit\ + h\x20each\x20key\x20update.\n\n\x0f\n\x05\x04\n\x02\x07\x04\x12\x06\xbe\ + \x04\x02\xbb\x04(\n\r\n\x05\x04\n\x02\x07\x05\x12\x04\xbe\x04\x02\x08\n\ + \r\n\x05\x04\n\x02\x07\x01\x12\x04\xbe\x04\t\r\n\r\n\x05\x04\n\x02\x07\ + \x03\x12\x04\xbe\x04\x10\x11\nF\n\x02\x04\x0b\x12\x06\xc2\x04\0\xdc\x04\ + \x01\x1a8\x20A\x20subscription\x20to\x20receive\x20Google\x20PubSub\x20n\ + otifications.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xc2\x04\x08\x14\n\xa6\ + \x01\n\x04\x04\x0b\x02\0\x12\x04\xc5\x04\x02\x13\x1a\x97\x01\x20The\x20C\ + loud\x20PubSub\x20topic\x20to\x20which\x20this\x20subscription\x20publis\ + hes.\x20Formatted\x20as:\n\x20'//pubsub.googleapis.com/projects/{project\ + -identifier}/topics/{my-topic}'\n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\ + \xc5\x04\x02\xc2\x04\x16\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xc5\x04\x02\ + \x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xc5\x04\t\x0e\n\r\n\x05\x04\x0b\ + \x02\0\x03\x12\x04\xc5\x04\x11\x12\n\x80\x01\n\x04\x04\x0b\x02\x01\x12\ + \x04\xc9\x04\x02\"\x1ar\x20If\x20present,\x20only\x20send\x20notificatio\ + ns\x20about\x20listed\x20event\x20types.\x20If\x20empty,\n\x20sent\x20no\ + tifications\x20for\x20all\x20event\x20types.\n\n\r\n\x05\x04\x0b\x02\x01\ + \x04\x12\x04\xc9\x04\x02\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xc9\x04\ + \x0b\x11\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xc9\x04\x12\x1d\n\r\n\x05\ + \x04\x0b\x02\x01\x03\x12\x04\xc9\x04\x20!\n\x90\x01\n\x04\x04\x0b\x02\ + \x02\x12\x04\xcd\x04\x02,\x1a\x81\x01\x20An\x20optional\x20list\x20of\ + \x20additional\x20attributes\x20to\x20attach\x20to\x20each\x20Cloud\x20P\ + ubSub\n\x20message\x20published\x20for\x20this\x20notification\x20subscr\ + iption.\n\n\x0f\n\x05\x04\x0b\x02\x02\x04\x12\x06\xcd\x04\x02\xc9\x04\"\ + \n\r\n\x05\x04\x0b\x02\x02\x06\x12\x04\xcd\x04\x02\x15\n\r\n\x05\x04\x0b\ + \x02\x02\x01\x12\x04\xcd\x04\x16'\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\ + \xcd\x04*+\n{\n\x04\x04\x0b\x02\x03\x12\x04\xd1\x04\x02\x12\x1am\x20HTTP\ + \x201.1\x20[https://tools.ietf.org/html/rfc7232#section-2.3][Entity\x20t\ + ag]\n\x20for\x20this\x20subscription\x20notification.\n\n\x0f\n\x05\x04\ + \x0b\x02\x03\x04\x12\x06\xd1\x04\x02\xcd\x04,\n\r\n\x05\x04\x0b\x02\x03\ + \x05\x12\x04\xd1\x04\x02\x08\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\xd1\ + \x04\t\r\n\r\n\x05\x04\x0b\x02\x03\x03\x12\x04\xd1\x04\x10\x11\nt\n\x04\ + \x04\x0b\x02\x04\x12\x04\xd5\x04\x02\x20\x1af\x20If\x20present,\x20only\ + \x20apply\x20this\x20notification\x20configuration\x20to\x20object\x20na\ + mes\x20that\n\x20begin\x20with\x20this\x20prefix.\n\n\x0f\n\x05\x04\x0b\ + \x02\x04\x04\x12\x06\xd5\x04\x02\xd1\x04\x12\n\r\n\x05\x04\x0b\x02\x04\ + \x05\x12\x04\xd5\x04\x02\x08\n\r\n\x05\x04\x0b\x02\x04\x01\x12\x04\xd5\ + \x04\t\x1b\n\r\n\x05\x04\x0b\x02\x04\x03\x12\x04\xd5\x04\x1e\x1f\n3\n\ + \x04\x04\x0b\x02\x05\x12\x04\xd8\x04\x02\x1c\x1a%\x20The\x20desired\x20c\ + ontent\x20of\x20the\x20Payload.\n\n\x0f\n\x05\x04\x0b\x02\x05\x04\x12\ + \x06\xd8\x04\x02\xd5\x04\x20\n\r\n\x05\x04\x0b\x02\x05\x05\x12\x04\xd8\ + \x04\x02\x08\n\r\n\x05\x04\x0b\x02\x05\x01\x12\x04\xd8\x04\t\x17\n\r\n\ + \x05\x04\x0b\x02\x05\x03\x12\x04\xd8\x04\x1a\x1b\n+\n\x04\x04\x0b\x02\ + \x06\x12\x04\xdb\x04\x02\x10\x1a\x1d\x20The\x20ID\x20of\x20the\x20notifi\ + cation.\n\n\x0f\n\x05\x04\x0b\x02\x06\x04\x12\x06\xdb\x04\x02\xd8\x04\ + \x1c\n\r\n\x05\x04\x0b\x02\x06\x05\x12\x04\xdb\x04\x02\x08\n\r\n\x05\x04\ + \x0b\x02\x06\x01\x12\x04\xdb\x04\t\x0b\n\r\n\x05\x04\x0b\x02\x06\x03\x12\ + \x04\xdb\x04\x0e\x0f\nG\n\x02\x04\x0c\x12\x06\xdf\x04\0\xe2\x04\x01\x1a9\ + \x20The\x20result\x20of\x20a\x20call\x20to\x20Notifications.ListNotifica\ + tions\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xdf\x04\x08!\n\"\n\x04\x04\x0c\ + \x02\0\x12\x04\xe1\x04\x02\"\x1a\x14\x20The\x20list\x20of\x20items.\n\n\ + \r\n\x05\x04\x0c\x02\0\x04\x12\x04\xe1\x04\x02\n\n\r\n\x05\x04\x0c\x02\0\ + \x06\x12\x04\xe1\x04\x0b\x17\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xe1\x04\ + \x18\x1d\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xe1\x04\x20!\n\x1a\n\x02\ + \x04\r\x12\x06\xe5\x04\0\x88\x06\x01\x1a\x0c\x20An\x20object.\n\n\x0b\n\ + \x03\x04\r\x01\x12\x04\xe5\x04\x08\x0e\n\\\n\x04\x04\r\x03\0\x12\x06\xe7\ + \x04\x02\xed\x04\x03\x1aL\x20Describes\x20the\x20customer-specified\x20m\ + echanism\x20used\x20to\x20store\x20the\x20data\x20at\x20rest.\n\n\r\n\ + \x05\x04\r\x03\0\x01\x12\x04\xe7\x04\n\x1c\n+\n\x06\x04\r\x03\0\x02\0\ + \x12\x04\xe9\x04\x04$\x1a\x1b\x20The\x20encryption\x20algorithm.\n\n\x11\ + \n\x07\x04\r\x03\0\x02\0\x04\x12\x06\xe9\x04\x04\xe7\x04\x1e\n\x0f\n\x07\ + \x04\r\x03\0\x02\0\x05\x12\x04\xe9\x04\x04\n\n\x0f\n\x07\x04\r\x03\0\x02\ + \0\x01\x12\x04\xe9\x04\x0b\x1f\n\x0f\n\x07\x04\r\x03\0\x02\0\x03\x12\x04\ + \xe9\x04\"#\n:\n\x06\x04\r\x03\0\x02\x01\x12\x04\xec\x04\x04\x1a\x1a*\ + \x20SHA256\x20hash\x20value\x20of\x20the\x20encryption\x20key.\n\n\x11\n\ + \x07\x04\r\x03\0\x02\x01\x04\x12\x06\xec\x04\x04\xe9\x04$\n\x0f\n\x07\ + \x04\r\x03\0\x02\x01\x05\x12\x04\xec\x04\x04\n\n\x0f\n\x07\x04\r\x03\0\ + \x02\x01\x01\x12\x04\xec\x04\x0b\x15\n\x0f\n\x07\x04\r\x03\0\x02\x01\x03\ + \x12\x04\xec\x04\x18\x19\n\x88\x01\n\x04\x04\r\x02\0\x12\x04\xf1\x04\x02\ + \x1e\x1az\x20Content-Encoding\x20of\x20the\x20object\x20data,\x20matchin\ + g\n\x20[https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC\x207231\ + \x20\xc2\xa73.1.2.2]\n\n\x0f\n\x05\x04\r\x02\0\x04\x12\x06\xf1\x04\x02\ + \xed\x04\x03\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xf1\x04\x02\x08\n\r\n\x05\ + \x04\r\x02\0\x01\x12\x04\xf1\x04\t\x19\n\r\n\x05\x04\r\x02\0\x03\x12\x04\ + \xf1\x04\x1c\x1d\nr\n\x04\x04\r\x02\x01\x12\x04\xf5\x04\x02!\x1ad\x20Con\ + tent-Disposition\x20of\x20the\x20object\x20data,\x20matching\n\x20[https\ + ://tools.ietf.org/html/rfc6266][RFC\x206266].\n\n\x0f\n\x05\x04\r\x02\ + \x01\x04\x12\x06\xf5\x04\x02\xf1\x04\x1e\n\r\n\x05\x04\r\x02\x01\x05\x12\ + \x04\xf5\x04\x02\x08\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xf5\x04\t\x1c\n\ + \r\n\x05\x04\r\x02\x01\x03\x12\x04\xf5\x04\x1f\x20\n\xfa\x01\n\x04\x04\r\ + \x02\x02\x12\x04\xfb\x04\x02\x1b\x1a\xeb\x01\x20Cache-Control\x20directi\ + ve\x20for\x20the\x20object\x20data,\x20matching\n\x20[https://tools.ietf\ + .org/html/rfc7234#section-5.2\"][RFC\x207234\x20\xc2\xa75.2].\n\x20If\ + \x20omitted,\x20and\x20the\x20object\x20is\x20accessible\x20to\x20all\ + \x20anonymous\x20users,\x20the\n\x20default\x20will\x20be\x20`public,\ + \x20max-age=3600`.\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\xfb\x04\x02\ + \xf5\x04!\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xfb\x04\x02\x08\n\r\n\x05\ + \x04\r\x02\x02\x01\x12\x04\xfb\x04\t\x16\n\r\n\x05\x04\r\x02\x02\x03\x12\ + \x04\xfb\x04\x19\x1a\n.\n\x04\x04\r\x02\x03\x12\x04\xfe\x04\x02'\x1a\x20\ + \x20Access\x20controls\x20on\x20the\x20object.\n\n\r\n\x05\x04\r\x02\x03\ + \x04\x12\x04\xfe\x04\x02\n\n\r\n\x05\x04\r\x02\x03\x06\x12\x04\xfe\x04\ + \x0b\x1e\n\r\n\x05\x04\r\x02\x03\x01\x12\x04\xfe\x04\x1f\"\n\r\n\x05\x04\ + \r\x02\x03\x03\x12\x04\xfe\x04%&\n\x89\x01\n\x04\x04\r\x02\x04\x12\x04\ + \x82\x05\x02\x1e\x1a{\x20Content-Language\x20of\x20the\x20object\x20data\ + ,\x20matching\n\x20[https://tools.ietf.org/html/rfc7231#section-3.1.3.2]\ + [RFC\x207231\x20\xc2\xa73.1.3.2].\n\n\x0f\n\x05\x04\r\x02\x04\x04\x12\ + \x06\x82\x05\x02\xfe\x04'\n\r\n\x05\x04\r\x02\x04\x05\x12\x04\x82\x05\ + \x02\x08\n\r\n\x05\x04\r\x02\x04\x01\x12\x04\x82\x05\t\x19\n\r\n\x05\x04\ + \r\x02\x04\x03\x12\x04\x82\x05\x1c\x1d\n\xb5\x02\n\x04\x04\r\x02\x05\x12\ + \x04\x89\x05\x02\x1b\x1a\xa6\x02\x20The\x20version\x20of\x20the\x20metad\ + ata\x20for\x20this\x20object\x20at\x20this\x20generation.\x20Used\x20for\ + \n\x20preconditions\x20and\x20for\x20detecting\x20changes\x20in\x20metad\ + ata.\x20A\x20metageneration\n\x20number\x20is\x20only\x20meaningful\x20i\ + n\x20the\x20context\x20of\x20a\x20particular\x20generation\x20of\x20a\n\ + \x20particular\x20object.\n\x20Attempting\x20to\x20set\x20this\x20field\ + \x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x05\x04\ + \x12\x06\x89\x05\x02\x82\x05\x1e\n\r\n\x05\x04\r\x02\x05\x05\x12\x04\x89\ + \x05\x02\x07\n\r\n\x05\x04\r\x02\x05\x01\x12\x04\x89\x05\x08\x16\n\r\n\ + \x05\x04\r\x02\x05\x03\x12\x04\x89\x05\x19\x1a\n\xb6\x01\n\x04\x04\r\x02\ + \x06\x12\x04\x8e\x05\x02-\x1a\xa7\x01\x20The\x20deletion\x20time\x20of\ + \x20the\x20object.\x20Will\x20be\x20returned\x20if\x20and\x20only\x20if\ + \x20this\n\x20version\x20of\x20the\x20object\x20has\x20been\x20deleted.\ + \n\x20Attempting\x20to\x20set\x20this\x20field\x20will\x20result\x20in\ + \x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x06\x04\x12\x06\x8e\x05\x02\x89\ + \x05\x1b\n\r\n\x05\x04\r\x02\x06\x06\x12\x04\x8e\x05\x02\x1b\n\r\n\x05\ + \x04\r\x02\x06\x01\x12\x04\x8e\x05\x1c(\n\r\n\x05\x04\r\x02\x06\x03\x12\ + \x04\x8e\x05+,\n\xe3\x01\n\x04\x04\r\x02\x07\x12\x04\x94\x05\x02\x1a\x1a\ + \xd4\x01\x20Content-Type\x20of\x20the\x20object\x20data,\x20matching\n\ + \x20[https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC\x207231\ + \x20\xc2\xa73.1.1.5].\n\x20If\x20an\x20object\x20is\x20stored\x20without\ + \x20a\x20Content-Type,\x20it\x20is\x20served\x20as\n\x20`application/oct\ + et-stream`.\n\n\x0f\n\x05\x04\r\x02\x07\x04\x12\x06\x94\x05\x02\x8e\x05-\ + \n\r\n\x05\x04\r\x02\x07\x05\x12\x04\x94\x05\x02\x08\n\r\n\x05\x04\r\x02\ + \x07\x01\x12\x04\x94\x05\t\x15\n\r\n\x05\x04\r\x02\x07\x03\x12\x04\x94\ + \x05\x18\x19\n\xc4\x01\n\x04\x04\r\x02\x08\x12\x04\x99\x05\x02\x11\x1a\ + \xb5\x01\x20Content-Length\x20of\x20the\x20object\x20data\x20in\x20bytes\ + ,\x20matching\n\x20[https://tools.ietf.org/html/rfc7230#section-3.3.2][R\ + FC\x207230\x20\xc2\xa73.3.2].\n\x20Attempting\x20to\x20set\x20this\x20fi\ + eld\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x08\ + \x04\x12\x06\x99\x05\x02\x94\x05\x1a\n\r\n\x05\x04\r\x02\x08\x05\x12\x04\ + \x99\x05\x02\x07\n\r\n\x05\x04\r\x02\x08\x01\x12\x04\x99\x05\x08\x0c\n\r\ + \n\x05\x04\r\x02\x08\x03\x12\x04\x99\x05\x0f\x10\ng\n\x04\x04\r\x02\t\ + \x12\x04\x9d\x05\x02.\x1aY\x20The\x20creation\x20time\x20of\x20the\x20ob\ + ject.\n\x20Attempting\x20to\x20set\x20this\x20field\x20will\x20result\ + \x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\t\x04\x12\x06\x9d\x05\x02\ + \x99\x05\x11\n\r\n\x05\x04\r\x02\t\x06\x12\x04\x9d\x05\x02\x1b\n\r\n\x05\ + \x04\r\x02\t\x01\x12\x04\x9d\x05\x1c(\n\r\n\x05\x04\r\x02\t\x03\x12\x04\ + \x9d\x05+-\n\xb7\x03\n\x04\x04\r\x02\n\x12\x04\xa6\x05\x02*\x1a\xa8\x03\ + \x20CRC32c\x20checksum.\x20For\x20more\x20information\x20about\x20using\ + \x20the\x20CRC32c\n\x20checksum,\x20see\n\x20[https://cloud.google.com/s\ + torage/docs/hashes-etags#_JSONAPI][Hashes\x20and\n\x20ETags:\x20Best\x20\ + Practices].\x20This\x20is\x20a\x20server\x20determined\x20value\x20and\ + \x20should\x20not\x20be\n\x20supplied\x20by\x20the\x20user\x20when\x20se\ + nding\x20an\x20Object.\x20The\x20server\x20will\x20ignore\x20any\n\x20va\ + lue\x20provided.\x20Users\x20should\x20instead\x20use\x20the\x20object_c\ + hecksums\x20field\x20on\x20the\n\x20InsertObjectRequest\x20when\x20uploa\ + ding\x20an\x20object.\n\n\x0f\n\x05\x04\r\x02\n\x04\x12\x06\xa6\x05\x02\ + \x9d\x05.\n\r\n\x05\x04\r\x02\n\x06\x12\x04\xa6\x05\x02\x1d\n\r\n\x05\ + \x04\r\x02\n\x01\x12\x04\xa6\x05\x1e$\n\r\n\x05\x04\r\x02\n\x03\x12\x04\ + \xa6\x05')\n\xb4\x01\n\x04\x04\r\x02\x0b\x12\x04\xab\x05\x02\x1d\x1a\xa5\ + \x01\x20Number\x20of\x20underlying\x20components\x20that\x20make\x20up\ + \x20this\x20object.\x20Components\x20are\n\x20accumulated\x20by\x20compo\ + se\x20operations.\n\x20Attempting\x20to\x20set\x20this\x20field\x20will\ + \x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x0b\x04\x12\x06\ + \xab\x05\x02\xa6\x05*\n\r\n\x05\x04\r\x02\x0b\x05\x12\x04\xab\x05\x02\ + \x07\n\r\n\x05\x04\r\x02\x0b\x01\x12\x04\xab\x05\x08\x17\n\r\n\x05\x04\r\ + \x02\x0b\x03\x12\x04\xab\x05\x1a\x1c\n\x91\x04\n\x04\x04\r\x02\x0c\x12\ + \x04\xb5\x05\x02\x17\x1a\x82\x04\x20MD5\x20hash\x20of\x20the\x20data;\ + \x20encoded\x20using\x20base64\x20as\x20per\n\x20[https://tools.ietf.org\ + /html/rfc4648#section-4][RFC\x204648\x20\xc2\xa74].\x20For\x20more\n\x20\ + information\x20about\x20using\x20the\x20MD5\x20hash,\x20see\n\x20[https:\ + //cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes\x20and\n\ + \x20ETags:\x20Best\x20Practices].\x20This\x20is\x20a\x20server\x20determ\ + ined\x20value\x20and\x20should\x20not\x20be\n\x20supplied\x20by\x20the\ + \x20user\x20when\x20sending\x20an\x20Object.\x20The\x20server\x20will\ + \x20ignore\x20any\n\x20value\x20provided.\x20Users\x20should\x20instead\ + \x20use\x20the\x20object_checksums\x20field\x20on\x20the\n\x20InsertObje\ + ctRequest\x20when\x20uploading\x20an\x20object.\n\n\x0f\n\x05\x04\r\x02\ + \x0c\x04\x12\x06\xb5\x05\x02\xab\x05\x1d\n\r\n\x05\x04\r\x02\x0c\x05\x12\ + \x04\xb5\x05\x02\x08\n\r\n\x05\x04\r\x02\x0c\x01\x12\x04\xb5\x05\t\x11\n\ + \r\n\x05\x04\r\x02\x0c\x03\x12\x04\xb5\x05\x14\x16\n\xb3\x01\n\x04\x04\r\ + \x02\r\x12\x04\xba\x05\x02\x13\x1a\xa4\x01\x20HTTP\x201.1\x20Entity\x20t\ + ag\x20for\x20the\x20object.\x20See\n\x20[https://tools.ietf.org/html/rfc\ + 7232#section-2.3][RFC\x207232\x20\xc2\xa72.3].\n\x20Attempting\x20to\x20\ + set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\ + \x05\x04\r\x02\r\x04\x12\x06\xba\x05\x02\xb5\x05\x17\n\r\n\x05\x04\r\x02\ + \r\x05\x12\x04\xba\x05\x02\x08\n\r\n\x05\x04\r\x02\r\x01\x12\x04\xba\x05\ + \t\r\n\r\n\x05\x04\r\x02\r\x03\x12\x04\xba\x05\x10\x12\nt\n\x04\x04\r\ + \x02\x0e\x12\x04\xbe\x05\x02)\x1af\x20The\x20modification\x20time\x20of\ + \x20the\x20object\x20metadata.\n\x20Attempting\x20to\x20set\x20this\x20f\ + ield\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x0e\ + \x04\x12\x06\xbe\x05\x02\xba\x05\x13\n\r\n\x05\x04\r\x02\x0e\x06\x12\x04\ + \xbe\x05\x02\x1b\n\r\n\x05\x04\r\x02\x0e\x01\x12\x04\xbe\x05\x1c#\n\r\n\ + \x05\x04\r\x02\x0e\x03\x12\x04\xbe\x05&(\n,\n\x04\x04\r\x02\x0f\x12\x04\ + \xc1\x05\x02\x1c\x1a\x1e\x20Storage\x20class\x20of\x20the\x20object.\n\n\ + \x0f\n\x05\x04\r\x02\x0f\x04\x12\x06\xc1\x05\x02\xbe\x05)\n\r\n\x05\x04\ + \r\x02\x0f\x05\x12\x04\xc1\x05\x02\x08\n\r\n\x05\x04\r\x02\x0f\x01\x12\ + \x04\xc1\x05\t\x16\n\r\n\x05\x04\r\x02\x0f\x03\x12\x04\xc1\x05\x19\x1b\n\ + e\n\x04\x04\r\x02\x10\x12\x04\xc5\x05\x02\x1b\x1aW\x20Cloud\x20KMS\x20Ke\ + y\x20used\x20to\x20encrypt\x20this\x20object,\x20if\x20the\x20object\x20\ + is\x20encrypted\x20by\n\x20such\x20a\x20key.\n\n\x0f\n\x05\x04\r\x02\x10\ + \x04\x12\x06\xc5\x05\x02\xc1\x05\x1c\n\r\n\x05\x04\r\x02\x10\x05\x12\x04\ + \xc5\x05\x02\x08\n\r\n\x05\x04\r\x02\x10\x01\x12\x04\xc5\x05\t\x15\n\r\n\ + \x05\x04\r\x02\x10\x03\x12\x04\xc5\x05\x18\x1a\n\xcd\x01\n\x04\x04\r\x02\ + \x11\x12\x04\xca\x05\x02<\x1a\xbe\x01\x20The\x20time\x20at\x20which\x20t\ + he\x20object's\x20storage\x20class\x20was\x20last\x20changed.\x20When\ + \x20the\n\x20object\x20is\x20initially\x20created,\x20it\x20will\x20be\ + \x20set\x20to\x20time_created.\n\x20Attempting\x20to\x20set\x20this\x20f\ + ield\x20will\x20result\x20in\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\x11\ + \x04\x12\x06\xca\x05\x02\xc5\x05\x1b\n\r\n\x05\x04\r\x02\x11\x06\x12\x04\ + \xca\x05\x02\x1b\n\r\n\x05\x04\r\x02\x11\x01\x12\x04\xca\x05\x1c6\n\r\n\ + \x05\x04\r\x02\x11\x03\x12\x04\xca\x059;\n\x85\x03\n\x04\x04\r\x02\x12\ + \x12\x04\xd1\x05\x02\x1b\x1a\xf6\x02\x20Whether\x20an\x20object\x20is\ + \x20under\x20temporary\x20hold.\x20While\x20this\x20flag\x20is\x20set\ + \x20to\x20true,\n\x20the\x20object\x20is\x20protected\x20against\x20dele\ + tion\x20and\x20overwrites.\x20\x20A\x20common\x20use\x20case\n\x20of\x20\ + this\x20flag\x20is\x20regulatory\x20investigations\x20where\x20objects\ + \x20need\x20to\x20be\x20retained\n\x20while\x20the\x20investigation\x20i\ + s\x20ongoing.\x20Note\x20that\x20unlike\x20event-based\x20hold,\n\x20tem\ + porary\x20hold\x20does\x20not\x20impact\x20retention\x20expiration\x20ti\ + me\x20of\x20an\x20object.\n\n\x0f\n\x05\x04\r\x02\x12\x04\x12\x06\xd1\ + \x05\x02\xca\x05<\n\r\n\x05\x04\r\x02\x12\x05\x12\x04\xd1\x05\x02\x06\n\ + \r\n\x05\x04\r\x02\x12\x01\x12\x04\xd1\x05\x07\x15\n\r\n\x05\x04\r\x02\ + \x12\x03\x12\x04\xd1\x05\x18\x1a\n\xf8\x03\n\x04\x04\r\x02\x13\x12\x04\ + \xdb\x05\x02;\x1a\xe9\x03\x20A\x20server-determined\x20value\x20that\x20\ + specifies\x20the\x20earliest\x20time\x20that\x20the\n\x20object's\x20ret\ + ention\x20period\x20expires.\x20This\x20value\x20is\x20in\n\x20[https://\ + tools.ietf.org/html/rfc3339][RFC\x203339]\x20format.\n\x20Note\x201:\x20\ + This\x20field\x20is\x20not\x20provided\x20for\x20objects\x20with\x20an\ + \x20active\x20event-based\n\x20hold,\x20since\x20retention\x20expiration\ + \x20is\x20unknown\x20until\x20the\x20hold\x20is\x20removed.\n\x20Note\ + \x202:\x20This\x20value\x20can\x20be\x20provided\x20even\x20when\x20temp\ + orary\x20hold\x20is\x20set\x20(so\x20that\n\x20the\x20user\x20can\x20rea\ + son\x20about\x20policy\x20without\x20having\x20to\x20first\x20unset\x20t\ + he\n\x20temporary\x20hold).\n\n\x0f\n\x05\x04\r\x02\x13\x04\x12\x06\xdb\ + \x05\x02\xd1\x05\x1b\n\r\n\x05\x04\r\x02\x13\x06\x12\x04\xdb\x05\x02\x1b\ + \n\r\n\x05\x04\r\x02\x13\x01\x12\x04\xdb\x05\x1c5\n\r\n\x05\x04\r\x02\ + \x13\x03\x12\x04\xdb\x058:\n;\n\x04\x04\r\x02\x14\x12\x04\xde\x05\x02$\ + \x1a-\x20User-provided\x20metadata,\x20in\x20key/value\x20pairs.\n\n\x0f\ + \n\x05\x04\r\x02\x14\x04\x12\x06\xde\x05\x02\xdb\x05;\n\r\n\x05\x04\r\ + \x02\x14\x06\x12\x04\xde\x05\x02\x15\n\r\n\x05\x04\r\x02\x14\x01\x12\x04\ + \xde\x05\x16\x1e\n\r\n\x05\x04\r\x02\x14\x03\x12\x04\xde\x05!#\n\xb5\x06\ + \n\x04\x04\r\x02\x15\x12\x04\xeb\x05\x022\x1a\xa6\x06\x20Whether\x20an\ + \x20object\x20is\x20under\x20event-based\x20hold.\x20Event-based\x20hold\ + \x20is\x20a\x20way\x20to\n\x20retain\x20objects\x20until\x20an\x20event\ + \x20occurs,\x20which\x20is\x20signified\x20by\x20the\n\x20hold's\x20rele\ + ase\x20(i.e.\x20this\x20value\x20is\x20set\x20to\x20false).\x20After\x20\ + being\x20released\x20(set\n\x20to\x20false),\x20such\x20objects\x20will\ + \x20be\x20subject\x20to\x20bucket-level\x20retention\x20(if\x20any).\n\ + \x20One\x20sample\x20use\x20case\x20of\x20this\x20flag\x20is\x20for\x20b\ + anks\x20to\x20hold\x20loan\x20documents\x20for\x20at\n\x20least\x203\x20\ + years\x20after\x20loan\x20is\x20paid\x20in\x20full.\x20Here,\x20bucket-l\ + evel\x20retention\x20is\x203\n\x20years\x20and\x20the\x20event\x20is\x20\ + the\x20loan\x20being\x20paid\x20in\x20full.\x20In\x20this\x20example,\ + \x20these\n\x20objects\x20will\x20be\x20held\x20intact\x20for\x20any\x20\ + number\x20of\x20years\x20until\x20the\x20event\x20has\n\x20occurred\x20(\ + event-based\x20hold\x20on\x20the\x20object\x20is\x20released)\x20and\x20\ + then\x203\x20more\x20years\n\x20after\x20that.\x20That\x20means\x20reten\ + tion\x20duration\x20of\x20the\x20objects\x20begins\x20from\x20the\n\x20m\ + oment\x20event-based\x20hold\x20transitioned\x20from\x20true\x20to\x20fa\ + lse.\n\n\x0f\n\x05\x04\r\x02\x15\x04\x12\x06\xeb\x05\x02\xde\x05$\n\r\n\ + \x05\x04\r\x02\x15\x06\x12\x04\xeb\x05\x02\x1b\n\r\n\x05\x04\r\x02\x15\ + \x01\x12\x04\xeb\x05\x1c,\n\r\n\x05\x04\r\x02\x15\x03\x12\x04\xeb\x05/1\ + \n~\n\x04\x04\r\x02\x16\x12\x04\xf0\x05\x02\x13\x1ap\x20The\x20name\x20o\ + f\x20the\x20object.\n\x20Attempting\x20to\x20update\x20this\x20field\x20\ + after\x20the\x20object\x20is\x20created\x20will\x20result\x20in\n\x20an\ + \x20error.\n\n\x0f\n\x05\x04\r\x02\x16\x04\x12\x06\xf0\x05\x02\xeb\x052\ + \n\r\n\x05\x04\r\x02\x16\x05\x12\x04\xf0\x05\x02\x08\n\r\n\x05\x04\r\x02\ + \x16\x01\x12\x04\xf0\x05\t\r\n\r\n\x05\x04\r\x02\x16\x03\x12\x04\xf0\x05\ + \x10\x12\n\xbd\x01\n\x04\x04\r\x02\x17\x12\x04\xf6\x05\x02\x11\x1a\xae\ + \x01\x20The\x20ID\x20of\x20the\x20object,\x20including\x20the\x20bucket\ + \x20name,\x20object\x20name,\x20and\n\x20generation\x20number.\n\x20Atte\ + mpting\x20to\x20update\x20this\x20field\x20after\x20the\x20object\x20is\ + \x20created\x20will\x20result\x20in\n\x20an\x20error.\n\n\x0f\n\x05\x04\ + \r\x02\x17\x04\x12\x06\xf6\x05\x02\xf0\x05\x13\n\r\n\x05\x04\r\x02\x17\ + \x05\x12\x04\xf6\x05\x02\x08\n\r\n\x05\x04\r\x02\x17\x01\x12\x04\xf6\x05\ + \t\x0b\n\r\n\x05\x04\r\x02\x17\x03\x12\x04\xf6\x05\x0e\x10\n\x96\x01\n\ + \x04\x04\r\x02\x18\x12\x04\xfb\x05\x02\x15\x1a\x87\x01\x20The\x20name\ + \x20of\x20the\x20bucket\x20containing\x20this\x20object.\n\x20Attempting\ + \x20to\x20update\x20this\x20field\x20after\x20the\x20object\x20is\x20cre\ + ated\x20will\x20result\x20in\n\x20an\x20error.\n\n\x0f\n\x05\x04\r\x02\ + \x18\x04\x12\x06\xfb\x05\x02\xf6\x05\x11\n\r\n\x05\x04\r\x02\x18\x05\x12\ + \x04\xfb\x05\x02\x08\n\r\n\x05\x04\r\x02\x18\x01\x12\x04\xfb\x05\t\x0f\n\ + \r\n\x05\x04\r\x02\x18\x03\x12\x04\xfb\x05\x12\x14\n\x89\x01\n\x04\x04\r\ + \x02\x19\x12\x04\xff\x05\x02\x18\x1a{\x20The\x20content\x20generation\ + \x20of\x20this\x20object.\x20Used\x20for\x20object\x20versioning.\n\x20A\ + ttempting\x20to\x20set\x20this\x20field\x20will\x20result\x20in\x20an\ + \x20error.\n\n\x0f\n\x05\x04\r\x02\x19\x04\x12\x06\xff\x05\x02\xfb\x05\ + \x15\n\r\n\x05\x04\r\x02\x19\x05\x12\x04\xff\x05\x02\x07\n\r\n\x05\x04\r\ + \x02\x19\x01\x12\x04\xff\x05\x08\x12\n\r\n\x05\x04\r\x02\x19\x03\x12\x04\ + \xff\x05\x15\x17\n\x90\x01\n\x04\x04\r\x02\x1a\x12\x04\x83\x06\x02\x13\ + \x1a\x81\x01\x20The\x20owner\x20of\x20the\x20object.\x20This\x20will\x20\ + always\x20be\x20the\x20uploader\x20of\x20the\x20object.\n\x20Attempting\ + \x20to\x20set\x20this\x20field\x20will\x20result\x20in\x20an\x20error.\n\ + \n\x0f\n\x05\x04\r\x02\x1a\x04\x12\x06\x83\x06\x02\xff\x05\x18\n\r\n\x05\ + \x04\r\x02\x1a\x06\x12\x04\x83\x06\x02\x07\n\r\n\x05\x04\r\x02\x1a\x01\ + \x12\x04\x83\x06\x08\r\n\r\n\x05\x04\r\x02\x1a\x03\x12\x04\x83\x06\x10\ + \x12\nh\n\x04\x04\r\x02\x1b\x12\x04\x87\x06\x02.\x1aZ\x20Metadata\x20of\ + \x20customer-supplied\x20encryption\x20key,\x20if\x20the\x20object\x20is\ + \x20encrypted\x20by\n\x20such\x20a\x20key.\n\n\x0f\n\x05\x04\r\x02\x1b\ + \x04\x12\x06\x87\x06\x02\x83\x06\x13\n\r\n\x05\x04\r\x02\x1b\x06\x12\x04\ + \x87\x06\x02\x14\n\r\n\x05\x04\r\x02\x1b\x01\x12\x04\x87\x06\x15(\n\r\n\ + \x05\x04\r\x02\x1b\x03\x12\x04\x87\x06+-\n(\n\x02\x04\x0e\x12\x06\x8b\ + \x06\0\xbb\x06\x01\x1a\x1a\x20An\x20access-control\x20entry.\n\n\x0b\n\ + \x03\x04\x0e\x01\x12\x04\x8b\x06\x08\x1b\n5\n\x04\x04\x0e\x02\0\x12\x04\ + \x8d\x06\x02\x12\x1a'\x20The\x20access\x20permission\x20for\x20the\x20en\ + tity.\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\x8d\x06\x02\x8b\x06\x1d\n\ + \r\n\x05\x04\x0e\x02\0\x05\x12\x04\x8d\x06\x02\x08\n\r\n\x05\x04\x0e\x02\ + \0\x01\x12\x04\x8d\x06\t\r\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x8d\x06\ + \x10\x11\n\x89\x01\n\x04\x04\x0e\x02\x01\x12\x04\x91\x06\x02\x12\x1a{\ + \x20HTTP\x201.1\x20Entity\x20tag\x20for\x20the\x20access-control\x20entr\ + y.\n\x20See\x20[https://tools.ietf.org/html/rfc7232#section-2.3][RFC\x20\ + 7232\x20\xc2\xa72.3].\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\x12\x06\x91\x06\ + \x02\x8d\x06\x12\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\x91\x06\x02\x08\n\ + \r\n\x05\x04\x0e\x02\x01\x01\x12\x04\x91\x06\t\r\n\r\n\x05\x04\x0e\x02\ + \x01\x03\x12\x04\x91\x06\x10\x11\n3\n\x04\x04\x0e\x02\x02\x12\x04\x94\ + \x06\x02\x10\x1a%\x20The\x20ID\x20of\x20the\x20access-control\x20entry.\ + \n\n\x0f\n\x05\x04\x0e\x02\x02\x04\x12\x06\x94\x06\x02\x91\x06\x12\n\r\n\ + \x05\x04\x0e\x02\x02\x05\x12\x04\x94\x06\x02\x08\n\r\n\x05\x04\x0e\x02\ + \x02\x01\x12\x04\x94\x06\t\x0b\n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\x94\ + \x06\x0e\x0f\n'\n\x04\x04\x0e\x02\x03\x12\x04\x97\x06\x02\x14\x1a\x19\ + \x20The\x20name\x20of\x20the\x20bucket.\n\n\x0f\n\x05\x04\x0e\x02\x03\ + \x04\x12\x06\x97\x06\x02\x94\x06\x10\n\r\n\x05\x04\x0e\x02\x03\x05\x12\ + \x04\x97\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\x97\x06\t\x0f\ + \n\r\n\x05\x04\x0e\x02\x03\x03\x12\x04\x97\x06\x12\x13\n@\n\x04\x04\x0e\ + \x02\x04\x12\x04\x9a\x06\x02\x14\x1a2\x20The\x20name\x20of\x20the\x20obj\ + ect,\x20if\x20applied\x20to\x20an\x20object.\n\n\x0f\n\x05\x04\x0e\x02\ + \x04\x04\x12\x06\x9a\x06\x02\x97\x06\x14\n\r\n\x05\x04\x0e\x02\x04\x05\ + \x12\x04\x9a\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x04\x01\x12\x04\x9a\x06\t\ + \x0f\n\r\n\x05\x04\x0e\x02\x04\x03\x12\x04\x9a\x06\x12\x13\nN\n\x04\x04\ + \x0e\x02\x05\x12\x04\x9d\x06\x02\x17\x1a@\x20The\x20content\x20generatio\ + n\x20of\x20the\x20object,\x20if\x20applied\x20to\x20an\x20object.\n\n\ + \x0f\n\x05\x04\x0e\x02\x05\x04\x12\x06\x9d\x06\x02\x9a\x06\x14\n\r\n\x05\ + \x04\x0e\x02\x05\x05\x12\x04\x9d\x06\x02\x07\n\r\n\x05\x04\x0e\x02\x05\ + \x01\x12\x04\x9d\x06\x08\x12\n\r\n\x05\x04\x0e\x02\x05\x03\x12\x04\x9d\ + \x06\x15\x16\n\xfd\x03\n\x04\x04\x0e\x02\x06\x12\x04\xae\x06\x02\x14\x1a\ + \xee\x03\x20The\x20entity\x20holding\x20the\x20permission,\x20in\x20one\ + \x20of\x20the\x20following\x20forms:\n\x20*\x20`user-{userid}`\n\x20*\ + \x20`user-{email}`\n\x20*\x20`group-{groupid}`\n\x20*\x20`group-{email}`\ + \n\x20*\x20`domain-{domain}`\n\x20*\x20`project-{team-projectid}`\n\x20*\ + \x20`allUsers`\n\x20*\x20`allAuthenticatedUsers`\n\x20Examples:\n\x20*\ + \x20The\x20user\x20`liz@example.com`\x20would\x20be\x20`user-liz@example\ + .com`.\n\x20*\x20The\x20group\x20`example@googlegroups.com`\x20would\x20\ + be\n\x20`group-example@googlegroups.com`.\n\x20*\x20All\x20members\x20of\ + \x20the\x20Google\x20Apps\x20for\x20Business\x20domain\x20`example.com`\ + \x20would\x20be\n\x20`domain-example.com`.\n\n\x0f\n\x05\x04\x0e\x02\x06\ + \x04\x12\x06\xae\x06\x02\x9d\x06\x17\n\r\n\x05\x04\x0e\x02\x06\x05\x12\ + \x04\xae\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x06\x01\x12\x04\xae\x06\t\x0f\ + \n\r\n\x05\x04\x0e\x02\x06\x03\x12\x04\xae\x06\x12\x13\n.\n\x04\x04\x0e\ + \x02\x07\x12\x04\xb1\x06\x02\x17\x1a\x20\x20The\x20ID\x20for\x20the\x20e\ + ntity,\x20if\x20any.\n\n\x0f\n\x05\x04\x0e\x02\x07\x04\x12\x06\xb1\x06\ + \x02\xae\x06\x14\n\r\n\x05\x04\x0e\x02\x07\x05\x12\x04\xb1\x06\x02\x08\n\ + \r\n\x05\x04\x0e\x02\x07\x01\x12\x04\xb1\x06\t\x12\n\r\n\x05\x04\x0e\x02\ + \x07\x03\x12\x04\xb1\x06\x15\x16\nE\n\x04\x04\x0e\x02\x08\x12\x04\xb4\ + \x06\x02\x13\x1a7\x20The\x20email\x20address\x20associated\x20with\x20th\ + e\x20entity,\x20if\x20any.\n\n\x0f\n\x05\x04\x0e\x02\x08\x04\x12\x06\xb4\ + \x06\x02\xb1\x06\x17\n\r\n\x05\x04\x0e\x02\x08\x05\x12\x04\xb4\x06\x02\ + \x08\n\r\n\x05\x04\x0e\x02\x08\x01\x12\x04\xb4\x06\t\x0e\n\r\n\x05\x04\ + \x0e\x02\x08\x03\x12\x04\xb4\x06\x11\x12\n>\n\x04\x04\x0e\x02\t\x12\x04\ + \xb7\x06\x02\x15\x1a0\x20The\x20domain\x20associated\x20with\x20the\x20e\ + ntity,\x20if\x20any.\n\n\x0f\n\x05\x04\x0e\x02\t\x04\x12\x06\xb7\x06\x02\ + \xb4\x06\x13\n\r\n\x05\x04\x0e\x02\t\x05\x12\x04\xb7\x06\x02\x08\n\r\n\ + \x05\x04\x0e\x02\t\x01\x12\x04\xb7\x06\t\x0f\n\r\n\x05\x04\x0e\x02\t\x03\ + \x12\x04\xb7\x06\x12\x14\nD\n\x04\x04\x0e\x02\n\x12\x04\xba\x06\x02\x20\ + \x1a6\x20The\x20project\x20team\x20associated\x20with\x20the\x20entity,\ + \x20if\x20any.\n\n\x0f\n\x05\x04\x0e\x02\n\x04\x12\x06\xba\x06\x02\xb7\ + \x06\x15\n\r\n\x05\x04\x0e\x02\n\x06\x12\x04\xba\x06\x02\r\n\r\n\x05\x04\ + \x0e\x02\n\x01\x12\x04\xba\x06\x0e\x1a\n\r\n\x05\x04\x0e\x02\n\x03\x12\ + \x04\xba\x06\x1d\x1f\nV\n\x02\x04\x0f\x12\x06\xbe\x06\0\xc1\x06\x01\x1aH\ + \x20The\x20result\x20of\x20a\x20call\x20to\x20ObjectAccessControls.ListO\ + bjectAccessControls.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xbe\x06\x08(\n\"\ + \n\x04\x04\x0f\x02\0\x12\x04\xc0\x06\x02)\x1a\x14\x20The\x20list\x20of\ + \x20items.\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\xc0\x06\x02\n\n\r\n\x05\ + \x04\x0f\x02\0\x06\x12\x04\xc0\x06\x0b\x1e\n\r\n\x05\x04\x0f\x02\0\x01\ + \x12\x04\xc0\x06\x1f$\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xc0\x06'(\n;\n\ + \x02\x04\x10\x12\x06\xc4\x06\0\xcf\x06\x01\x1a-\x20The\x20result\x20of\ + \x20a\x20call\x20to\x20Objects.ListObjects\n\n\x0b\n\x03\x04\x10\x01\x12\ + \x04\xc4\x06\x08\x1b\nu\n\x04\x04\x10\x02\0\x12\x04\xc7\x06\x02\x1f\x1ag\ + \x20The\x20list\x20of\x20prefixes\x20of\x20objects\x20matching-but-not-l\ + isted\x20up\x20to\x20and\x20including\n\x20the\x20requested\x20delimiter\ + .\n\n\r\n\x05\x04\x10\x02\0\x04\x12\x04\xc7\x06\x02\n\n\r\n\x05\x04\x10\ + \x02\0\x05\x12\x04\xc7\x06\x0b\x11\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\ + \xc7\x06\x12\x1a\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xc7\x06\x1d\x1e\n\"\ + \n\x04\x04\x10\x02\x01\x12\x04\xca\x06\x02\x1c\x1a\x14\x20The\x20list\ + \x20of\x20items.\n\n\r\n\x05\x04\x10\x02\x01\x04\x12\x04\xca\x06\x02\n\n\ + \r\n\x05\x04\x10\x02\x01\x06\x12\x04\xca\x06\x0b\x11\n\r\n\x05\x04\x10\ + \x02\x01\x01\x12\x04\xca\x06\x12\x17\n\r\n\x05\x04\x10\x02\x01\x03\x12\ + \x04\xca\x06\x1a\x1b\n\xa0\x01\n\x04\x04\x10\x02\x02\x12\x04\xce\x06\x02\ + \x1d\x1a\x91\x01\x20The\x20continuation\x20token,\x20used\x20to\x20page\ + \x20through\x20large\x20result\x20sets.\x20Provide\n\x20this\x20value\ + \x20in\x20a\x20subsequent\x20request\x20to\x20return\x20the\x20next\x20p\ + age\x20of\x20results.\n\n\x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\xce\x06\ + \x02\xca\x06\x1c\n\r\n\x05\x04\x10\x02\x02\x05\x12\x04\xce\x06\x02\x08\n\ + \r\n\x05\x04\x10\x02\x02\x01\x12\x04\xce\x06\t\x18\n\r\n\x05\x04\x10\x02\ + \x02\x03\x12\x04\xce\x06\x1b\x1c\nN\n\x02\x04\x11\x12\x06\xd2\x06\0\xd8\ + \x06\x01\x1a@\x20Represents\x20the\x20Viewers,\x20Editors,\x20or\x20Owne\ + rs\x20of\x20a\x20given\x20project.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xd2\ + \x06\x08\x13\n#\n\x04\x04\x11\x02\0\x12\x04\xd4\x06\x02\x1c\x1a\x15\x20T\ + he\x20project\x20number.\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\xd4\x06\ + \x02\xd2\x06\x15\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xd4\x06\x02\x08\n\r\ + \n\x05\x04\x11\x02\0\x01\x12\x04\xd4\x06\t\x17\n\r\n\x05\x04\x11\x02\0\ + \x03\x12\x04\xd4\x06\x1a\x1b\n\x19\n\x04\x04\x11\x02\x01\x12\x04\xd7\x06\ + \x02\x12\x1a\x0b\x20The\x20team.\n\n\x0f\n\x05\x04\x11\x02\x01\x04\x12\ + \x06\xd7\x06\x02\xd4\x06\x1c\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xd7\ + \x06\x02\x08\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xd7\x06\t\r\n\r\n\x05\ + \x04\x11\x02\x01\x03\x12\x04\xd7\x06\x10\x11\nF\n\x02\x04\x12\x12\x06\ + \xdb\x06\0\xde\x06\x01\x1a8\x20A\x20subscription\x20to\x20receive\x20Goo\ + gle\x20PubSub\x20notifications.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xdb\ + \x06\x08\x16\n+\n\x04\x04\x12\x02\0\x12\x04\xdd\x06\x02\x1b\x1a\x1d\x20T\ + he\x20ID\x20of\x20the\x20notification.\n\n\x0f\n\x05\x04\x12\x02\0\x04\ + \x12\x06\xdd\x06\x02\xdb\x06\x18\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xdd\ + \x06\x02\x08\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xdd\x06\t\x16\n\r\n\x05\ + \x04\x12\x02\0\x03\x12\x04\xdd\x06\x19\x1a\n1\n\x02\x04\x13\x12\x06\xe1\ + \x06\0\xe7\x06\x01\x1a#\x20The\x20owner\x20of\x20a\x20specific\x20resour\ + ce.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xe1\x06\x08\r\n8\n\x04\x04\x13\x02\ + \0\x12\x04\xe3\x06\x02\x14\x1a*\x20The\x20entity,\x20in\x20the\x20form\ + \x20`user-`*userId*.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xe3\x06\x02\ + \xe1\x06\x0f\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xe3\x06\x02\x08\n\r\n\ + \x05\x04\x13\x02\0\x01\x12\x04\xe3\x06\t\x0f\n\r\n\x05\x04\x13\x02\0\x03\ + \x12\x04\xe3\x06\x12\x13\n&\n\x04\x04\x13\x02\x01\x12\x04\xe6\x06\x02\ + \x17\x1a\x18\x20The\x20ID\x20for\x20the\x20entity.\n\n\x0f\n\x05\x04\x13\ + \x02\x01\x04\x12\x06\xe6\x06\x02\xe3\x06\x14\n\r\n\x05\x04\x13\x02\x01\ + \x05\x12\x04\xe6\x06\x02\x08\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xe6\ + \x06\t\x12\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xe6\x06\x15\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/calendar_period.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/calendar_period.rs new file mode 100644 index 0000000000..3872f227c7 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/calendar_period.rs @@ -0,0 +1,163 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/calendar_period.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum CalendarPeriod { + CALENDAR_PERIOD_UNSPECIFIED = 0, + DAY = 1, + WEEK = 2, + FORTNIGHT = 3, + MONTH = 4, + QUARTER = 5, + HALF = 6, + YEAR = 7, +} + +impl ::protobuf::ProtobufEnum for CalendarPeriod { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(CalendarPeriod::CALENDAR_PERIOD_UNSPECIFIED), + 1 => ::std::option::Option::Some(CalendarPeriod::DAY), + 2 => ::std::option::Option::Some(CalendarPeriod::WEEK), + 3 => ::std::option::Option::Some(CalendarPeriod::FORTNIGHT), + 4 => ::std::option::Option::Some(CalendarPeriod::MONTH), + 5 => ::std::option::Option::Some(CalendarPeriod::QUARTER), + 6 => ::std::option::Option::Some(CalendarPeriod::HALF), + 7 => ::std::option::Option::Some(CalendarPeriod::YEAR), + _ => ::std::option::Option::None + } + } + + 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 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()) + }) + } +} + +impl ::std::marker::Copy for CalendarPeriod { +} + +impl ::std::default::Default for CalendarPeriod { + fn default() -> Self { + CalendarPeriod::CALENDAR_PERIOD_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for CalendarPeriod { + 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/type/calendar_period.proto\x12\x0bgoogle.type*\x7f\n\x0eCalend\ + arPeriod\x12\x1f\n\x1bCALENDAR_PERIOD_UNSPECIFIED\x10\0\x12\x07\n\x03DAY\ + \x10\x01\x12\x08\n\x04WEEK\x10\x02\x12\r\n\tFORTNIGHT\x10\x03\x12\t\n\ + \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\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\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\ + 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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/color.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/color.rs new file mode 100644 index 0000000000..5e465149de --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/color.rs @@ -0,0 +1,490 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/color.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Color { + // message fields + pub red: f32, + pub green: f32, + pub blue: f32, + pub alpha: ::protobuf::SingularPtrField<::protobuf::well_known_types::FloatValue>, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Color { + fn default() -> &'a Color { + ::default_instance() + } +} + +impl Color { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + 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; + }, + 4 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.alpha)?; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.red != 0. { + my_size += 5; + } + if self.green != 0. { + my_size += 5; + } + if self.blue != 0. { + my_size += 5; + } + if let Some(ref v) = self.alpha.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.red != 0. { + os.write_float(1, self.red)?; + } + if self.green != 0. { + os.write_float(2, self.green)?; + } + 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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Color { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Color::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x17google/type/color.proto\x12\x0bgoogle.type\x1a\x1egoogle/protobuf/\ + wrappers.proto\"v\n\x05Color\x12\x10\n\x03red\x18\x01\x20\x01(\x02R\x03r\ + ed\x12\x14\n\x05green\x18\x02\x20\x01(\x02R\x05green\x12\x12\n\x04blue\ + \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\xee/\n\x07\x12\x05\x0e\0\xac\x01\x01\n\xbc\x04\n\ + \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\x8b!\n\x02\x04\0\x12\x06\ + \x96\x01\0\xac\x01\x01\x1a\xfc\x20\x20Represents\x20a\x20color\x20in\x20\ + the\x20RGBA\x20color\x20space.\x20This\x20representation\x20is\x20design\ + ed\n\x20for\x20simplicity\x20of\x20conversion\x20to/from\x20color\x20rep\ + resentations\x20in\x20various\n\x20languages\x20over\x20compactness;\x20\ + for\x20example,\x20the\x20fields\x20of\x20this\x20representation\n\x20ca\ + n\x20be\x20trivially\x20provided\x20to\x20the\x20constructor\x20of\x20\"\ + java.awt.Color\"\x20in\x20Java;\x20it\n\x20can\x20also\x20be\x20triviall\ + y\x20provided\x20to\x20UIColor's\x20\"+colorWithRed:green:blue:alpha\"\n\ + \x20method\x20in\x20iOS;\x20and,\x20with\x20just\x20a\x20little\x20work,\ + \x20it\x20can\x20be\x20easily\x20formatted\x20into\n\x20a\x20CSS\x20\"rg\ + ba()\"\x20string\x20in\x20JavaScript,\x20as\x20well.\n\n\x20Note:\x20thi\ + s\x20proto\x20does\x20not\x20carry\x20information\x20about\x20the\x20abs\ + olute\x20color\x20space\n\x20that\x20should\x20be\x20used\x20to\x20inter\ + pret\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\x20Note:\x20when\x20c\ + olor\x20equality\x20needs\x20to\x20be\x20decided,\x20implementations,\ + \x20unless\n\x20documented\x20otherwise,\x20will\x20treat\x20two\x20colo\ + rs\x20to\x20be\x20equal\x20if\x20all\x20their\x20red,\n\x20green,\x20blu\ + e\x20and\x20alpha\x20values\x20each\x20differ\x20by\x20at\x20most\x201e-\ + 5.\n\n\x20Example\x20(Java):\n\n\x20\x20\x20\x20\x20\x20import\x20com.go\ + ogle.type.Color;\n\n\x20\x20\x20\x20\x20\x20//\x20...\n\x20\x20\x20\x20\ + \x20\x20public\x20static\x20java.awt.Color\x20fromProto(Color\x20protoco\ + lor)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20float\x20alpha\x20=\x20protoc\ + olor.hasAlpha()\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20?\x20pr\ + otocolor.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\x20ja\ + va.awt.Color(\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocolo\ + r.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)\x20co\ + lor.getBlue();\n\x20\x20\x20\x20\x20\x20\x20\x20float\x20denominator\x20\ + =\x20255.0;\n\x20\x20\x20\x20\x20\x20\x20\x20Color.Builder\x20resultBuil\ + der\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.setR\ + ed(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/\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\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.bui\ + ld());\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\ + \x20return\x20resultBuilder.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\x20UIC\ + olor*\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\x20blu\ + e];\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\x20flo\ + at\x20alpha\x20=\x201.0;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(alp\ + ha_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*\x20toP\ + roto(UIColor*\x20color)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CG\ + Float\x20red,\x20green,\x20blue,\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\x20allo\ + c]\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\x20setAlp\ + ha:floatWrapperWithValue(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(Java\ + Script):\n\n\x20\x20\x20\x20\x20//\x20...\n\n\x20\x20\x20\x20\x20var\x20\ + protoToCssColor\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_co\ + lor.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\x20va\ + r\x20green\x20=\x20Math.floor(greenFrac\x20*\x20255);\n\x20\x20\x20\x20\ + \x20\x20\x20\x20var\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\x20rgbToCssCol\ + or_(red,\x20green,\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.val\ + ue\x20||\x200.0;\n\x20\x20\x20\x20\x20\x20\x20\x20var\x20rgbParams\x20=\ + \x20[red,\x20green,\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\x20rgbToCssColo\ + r_\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=\x20rgbNumber.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(var\x20i\x20=\x200;\x20i\x20<\x20missingZeros;\ + \x20i++)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resultBuilder.pus\ + h('0');\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20resu\ + ltBuilder.push(hexString);\n\x20\x20\x20\x20\x20\x20\x20return\x20result\ + Builder.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\x96\x01\x08\r\nQ\n\x04\x04\0\x02\0\ + \x12\x04\x98\x01\x02\x10\x1aC\x20The\x20amount\x20of\x20red\x20in\x20the\ + \x20color\x20as\x20a\x20value\x20in\x20the\x20interval\x20[0,\x201].\n\n\ + \x0f\n\x05\x04\0\x02\0\x04\x12\x06\x98\x01\x02\x96\x01\x0f\n\r\n\x05\x04\ + \0\x02\0\x05\x12\x04\x98\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\ + \x98\x01\x08\x0b\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x98\x01\x0e\x0f\nS\n\ + \x04\x04\0\x02\x01\x12\x04\x9b\x01\x02\x12\x1aE\x20The\x20amount\x20of\ + \x20green\x20in\x20the\x20color\x20as\x20a\x20value\x20in\x20the\x20inte\ + rval\x20[0,\x201].\n\n\x0f\n\x05\x04\0\x02\x01\x04\x12\x06\x9b\x01\x02\ + \x98\x01\x10\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x9b\x01\x02\x07\n\r\n\ + \x05\x04\0\x02\x01\x01\x12\x04\x9b\x01\x08\r\n\r\n\x05\x04\0\x02\x01\x03\ + \x12\x04\x9b\x01\x10\x11\nR\n\x04\x04\0\x02\x02\x12\x04\x9e\x01\x02\x11\ + \x1aD\x20The\x20amount\x20of\x20blue\x20in\x20the\x20color\x20as\x20a\ + \x20value\x20in\x20the\x20interval\x20[0,\x201].\n\n\x0f\n\x05\x04\0\x02\ + \x02\x04\x12\x06\x9e\x01\x02\x9b\x01\x12\n\r\n\x05\x04\0\x02\x02\x05\x12\ + \x04\x9e\x01\x02\x07\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x9e\x01\x08\x0c\ + \n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x9e\x01\x0f\x10\n\x81\x05\n\x04\x04\ + \0\x02\x03\x12\x04\xab\x01\x02'\x1a\xf2\x04\x20The\x20fraction\x20of\x20\ + this\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\x20pixel\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\x20corresp\ + onds\x20to\x20a\x20solid\x20color,\x20whereas\n\x20a\x20value\x20of\x200\ + .0\x20corresponds\x20to\x20a\x20completely\x20transparent\x20color.\x20T\ + his\n\x20uses\x20a\x20wrapper\x20message\x20rather\x20than\x20a\x20simpl\ + e\x20float\x20scalar\x20so\x20that\x20it\x20is\n\x20possible\x20to\x20di\ + stinguish\x20between\x20a\x20default\x20value\x20and\x20the\x20value\x20\ + being\x20unset.\n\x20If\x20omitted,\x20this\x20color\x20object\x20is\x20\ + to\x20be\x20rendered\x20as\x20a\x20solid\x20color\n\x20(as\x20if\x20the\ + \x20alpha\x20value\x20had\x20been\x20explicitly\x20given\x20with\x20a\ + \x20value\x20of\x201.0).\n\n\x0f\n\x05\x04\0\x02\x03\x04\x12\x06\xab\x01\ + \x02\x9e\x01\x11\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xab\x01\x02\x1c\n\r\ + \n\x05\x04\0\x02\x03\x01\x12\x04\xab\x01\x1d\"\n\r\n\x05\x04\0\x02\x03\ + \x03\x12\x04\xab\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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/date.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/date.rs new file mode 100644 index 0000000000..26c7570724 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/date.rs @@ -0,0 +1,317 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/date.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Date { + // message fields + pub year: i32, + pub month: i32, + pub day: i32, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Date { + fn default() -> &'a Date { + ::default_instance() + } +} + +impl Date { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::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); + } + my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_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)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Date { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Date::new) + } +} + +impl ::protobuf::Clear for Date { + fn clear(&mut self) { + self.year = 0; + self.month = 0; + self.day = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x16google/type/date.proto\x12\x0bgoogle.type\"B\n\x04Date\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\x03dayB]\n\ + \x0fcom.google.typeB\tDateProtoP\x01Z4google.golang.org/genproto/googlea\ + pis/type/date;date\xf8\x01\x01\xa2\x02\x03GTPJ\xec\x0e\n\x06\x12\x04\x0e\ + \02\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202\ + 020\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\xe8\x04\n\x02\x04\0\x12\x04%\02\x01\x1a\xdb\ + \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\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\x20\ + 9999,\x20or\x200\x20to\x20specify\x20a\x20date\x20without\n\x20a\x20year\ + .\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04(\x02%\x0e\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\x20year.\x20Must\x20be\x20from\x201\ + \x20to\x2012,\x20or\x200\x20to\x20specify\x20a\x20year\x20without\x20a\n\ + \x20month\x20and\x20day.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04,\x02(\x11\ + \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\x031\x02\x10\x1a\xa0\x01\x20Day\x20of\ + \x20a\x20month.\x20Must\x20be\x20from\x201\x20to\x2031\x20and\x20valid\ + \x20for\x20the\x20year\x20and\x20month,\x20or\x200\n\x20to\x20specify\ + \x20a\x20year\x20by\x20itself\x20or\x20a\x20year\x20and\x20month\x20wher\ + e\x20the\x20day\x20isn't\n\x20significant.\n\n\r\n\x05\x04\0\x02\x02\x04\ + \x12\x041\x02,\x12\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x031\x02\x07\n\x0c\ + \n\x05\x04\0\x02\x02\x01\x12\x031\x08\x0b\n\x0c\n\x05\x04\0\x02\x02\x03\ + \x12\x031\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/datetime.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/datetime.rs new file mode 100644 index 0000000000..8f5c503dfa --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/datetime.rs @@ -0,0 +1,893 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/dayofweek.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/dayofweek.rs new file mode 100644 index 0000000000..345ea2ca1d --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/dayofweek.rs @@ -0,0 +1,152 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/dayofweek.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum DayOfWeek { + DAY_OF_WEEK_UNSPECIFIED = 0, + MONDAY = 1, + TUESDAY = 2, + WEDNESDAY = 3, + THURSDAY = 4, + FRIDAY = 5, + SATURDAY = 6, + SUNDAY = 7, +} + +impl ::protobuf::ProtobufEnum for DayOfWeek { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(DayOfWeek::DAY_OF_WEEK_UNSPECIFIED), + 1 => ::std::option::Option::Some(DayOfWeek::MONDAY), + 2 => ::std::option::Option::Some(DayOfWeek::TUESDAY), + 3 => ::std::option::Option::Some(DayOfWeek::WEDNESDAY), + 4 => ::std::option::Option::Some(DayOfWeek::THURSDAY), + 5 => ::std::option::Option::Some(DayOfWeek::FRIDAY), + 6 => ::std::option::Option::Some(DayOfWeek::SATURDAY), + 7 => ::std::option::Option::Some(DayOfWeek::SUNDAY), + _ => ::std::option::Option::None + } + } + + 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 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()) + }) + } +} + +impl ::std::marker::Copy for DayOfWeek { +} + +impl ::std::default::Default for DayOfWeek { + fn default() -> Self { + DayOfWeek::DAY_OF_WEEK_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for DayOfWeek { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1bgoogle/type/dayofweek.proto\x12\x0bgoogle.type*\x84\x01\n\tDayOfWe\ + ek\x12\x1b\n\x17DAY_OF_WEEK_UNSPECIFIED\x10\0\x12\n\n\x06MONDAY\x10\x01\ + \x12\x0b\n\x07TUESDAY\x10\x02\x12\r\n\tWEDNESDAY\x10\x03\x12\x0c\n\x08TH\ + 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\x202020\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\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/expr.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/expr.rs new file mode 100644 index 0000000000..c1ab930880 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/expr.rs @@ -0,0 +1,398 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/expr.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Expr { + // message fields + pub expression: ::std::string::String, + pub title: ::std::string::String, + pub description: ::std::string::String, + pub location: ::std::string::String, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Expr { + fn default() -> &'a Expr { + ::default_instance() + } +} + +impl Expr { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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)?; + }, + 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_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.expression.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.expression); + } + 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 !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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if !self.expression.is_empty() { + os.write_string(1, &self.expression)?; + } + if !self.title.is_empty() { + os.write_string(2, &self.title)?; + } + if !self.description.is_empty() { + os.write_string(3, &self.description)?; + } + if !self.location.is_empty() { + os.write_string(4, &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() -> 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 default_instance() -> &'static Expr { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Expr::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x16google/type/expr.proto\x12\x0bgoogle.type\"z\n\x04Expr\x12\x1e\n\n\ + expression\x18\x01\x20\x01(\tR\nexpression\x12\x14\n\x05title\x18\x02\ + \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\xf5\x14\n\x06\x12\x04\x0e\0H\x01\n\xbc\x04\ + \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\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\r\n\x05\x04\0\x02\0\x04\x12\x04:\ + \x027\x0e\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\x20enter\x20the\n\x20expression.\n\ + \n\r\n\x05\x04\0\x02\x01\x04\x12\x04?\x02:\x18\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.\x20This\x20is\x20a\x20longer\x20text\x20which\n\x20descr\ + ibes\x20the\x20expression,\x20e.g.\x20when\x20hovered\x20over\x20it\x20i\ + n\x20a\x20UI.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04C\x02?\x13\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\x20\ + indicating\x20the\x20location\x20of\x20the\x20expression\x20for\x20error\ + \n\x20reporting,\x20e.g.\x20a\x20file\x20name\x20and\x20a\x20position\ + \x20in\x20the\x20file.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04G\x02C\x19\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\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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/fraction.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/fraction.rs new file mode 100644 index 0000000000..a54bc2773c --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/fraction.rs @@ -0,0 +1,261 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/fraction.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Fraction { + // message fields + pub numerator: i64, + pub denominator: i64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Fraction { + fn default() -> &'a Fraction { + ::default_instance() + } +} + +impl Fraction { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.numerator != 0 { + my_size += ::protobuf::rt::value_size(1, self.numerator, ::protobuf::wire_format::WireTypeVarint); + } + if self.denominator != 0 { + my_size += ::protobuf::rt::value_size(2, self.denominator, ::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.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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Fraction { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Fraction::new) + } +} + +impl ::protobuf::Clear for Fraction { + fn clear(&mut self) { + self.numerator = 0; + self.denominator = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1agoogle/type/fraction.proto\x12\x0bgoogle.type\"J\n\x08Fraction\x12\ + \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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/interval.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/interval.rs new file mode 100644 index 0000000000..688171ea9e --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/interval.rs @@ -0,0 +1,315 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/latlng.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/latlng.rs new file mode 100644 index 0000000000..7c081ae8aa --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/latlng.rs @@ -0,0 +1,267 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/latlng.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct LatLng { + // message fields + pub latitude: f64, + pub longitude: f64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a LatLng { + fn default() -> &'a LatLng { + ::default_instance() + } +} + +impl LatLng { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.latitude != 0. { + my_size += 9; + } + if self.longitude != 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.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())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static LatLng { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(LatLng::new) + } +} + +impl ::protobuf::Clear for LatLng { + fn clear(&mut self) { + self.latitude = 0.; + self.longitude = 0.; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x18google/type/latlng.proto\x12\x0bgoogle.type\"B\n\x06LatLng\x12\x1a\ + \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\xcb\n\n\x06\x12\x04\x0e\0$\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\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\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\r\n\x05\x04\0\ + \x02\0\x04\x12\x04\x20\x02\x1e\x10\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.\x20It\x20must\x20be\x20i\ + n\x20the\x20range\x20[-180.0,\x20+180.0].\n\n\r\n\x05\x04\0\x02\x01\x04\ + \x12\x04#\x02\x20\x16\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/localized_text.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/localized_text.rs new file mode 100644 index 0000000000..e7fe23f470 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/localized_text.rs @@ -0,0 +1,277 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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\x99\t\n\x06\x12\x04\x0e\0\ + #\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x20202\ + 0\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\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\r\n\x05\x04\0\x02\0\ + \x04\x12\x04\x1c\x02\x1a\x17\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\x20language\x20code,\x20such\x20\ + as\x20\"en-US\"\x20or\x20\"sr-Latn\".\n\n\x20For\x20more\x20information,\ + \x20see\n\x20http://www.unicode.org/reports/tr35/#Unicode_locale_identif\ + ier.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\"\x02\x1c\x12\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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/money.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/money.rs new file mode 100644 index 0000000000..25cb1a6955 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/money.rs @@ -0,0 +1,316 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/money.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Money { + // message fields + pub currency_code: ::std::string::String, + pub units: i64, + pub nanos: i32, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Money { + fn default() -> &'a Money { + ::default_instance() + } +} + +impl Money { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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)?; + }, + 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + 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); + } + if self.nanos != 0 { + my_size += ::protobuf::rt::value_size(3, self.nanos, ::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.currency_code.is_empty() { + os.write_string(1, &self.currency_code)?; + } + if self.units != 0 { + os.write_int64(2, self.units)?; + } + if self.nanos != 0 { + os.write_int32(3, self.nanos)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Money { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Money::new) + } +} + +impl ::protobuf::Clear for Money { + fn clear(&mut self) { + self.currency_code.clear(); + self.units = 0; + self.nanos = 0; + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x17google/type/money.proto\x12\x0bgoogle.type\"X\n\x05Money\x12#\n\rc\ + 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\x8b\x0c\n\x06\ + \x12\x04\x0e\0)\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ + pyright\x202020\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\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\r\n\x05\x04\0\x02\0\x04\ + \x12\x04\x1c\x02\x1a\x0f\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\r\n\x05\x04\0\x02\x01\x04\x12\x04\x20\x02\ + \x1c\x1b\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\x20between\x20-999,999,999\x20and\x20+9\ + 99,999,999\x20inclusive.\n\x20If\x20`units`\x20is\x20positive,\x20`nanos\ + `\x20must\x20be\x20positive\x20or\x20zero.\n\x20If\x20`units`\x20is\x20z\ + ero,\x20`nanos`\x20can\x20be\x20positive,\x20zero,\x20or\x20negative.\n\ + \x20If\x20`units`\x20is\x20negative,\x20`nanos`\x20must\x20be\x20negativ\ + e\x20or\x20zero.\n\x20For\x20example\x20$-1.75\x20is\x20represented\x20a\ + s\x20`units`=-1\x20and\x20`nanos`=-750,000,000.\n\n\r\n\x05\x04\0\x02\ + \x02\x04\x12\x04(\x02\x20\x12\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/month.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/month.rs new file mode 100644 index 0000000000..3b70046be7 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/month.rs @@ -0,0 +1,182 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/month.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(Clone,PartialEq,Eq,Debug,Hash)] +pub enum Month { + MONTH_UNSPECIFIED = 0, + JANUARY = 1, + FEBRUARY = 2, + MARCH = 3, + APRIL = 4, + MAY = 5, + JUNE = 6, + JULY = 7, + AUGUST = 8, + SEPTEMBER = 9, + OCTOBER = 10, + NOVEMBER = 11, + DECEMBER = 12, +} + +impl ::protobuf::ProtobufEnum for Month { + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Month::MONTH_UNSPECIFIED), + 1 => ::std::option::Option::Some(Month::JANUARY), + 2 => ::std::option::Option::Some(Month::FEBRUARY), + 3 => ::std::option::Option::Some(Month::MARCH), + 4 => ::std::option::Option::Some(Month::APRIL), + 5 => ::std::option::Option::Some(Month::MAY), + 6 => ::std::option::Option::Some(Month::JUNE), + 7 => ::std::option::Option::Some(Month::JULY), + 8 => ::std::option::Option::Some(Month::AUGUST), + 9 => ::std::option::Option::Some(Month::SEPTEMBER), + 10 => ::std::option::Option::Some(Month::OCTOBER), + 11 => ::std::option::Option::Some(Month::NOVEMBER), + 12 => ::std::option::Option::Some(Month::DECEMBER), + _ => ::std::option::Option::None + } + } + + 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 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()) + }) + } +} + +impl ::std::marker::Copy for Month { +} + +impl ::std::default::Default for Month { + fn default() -> Self { + Month::MONTH_UNSPECIFIED + } +} + +impl ::protobuf::reflect::ProtobufValue for Month { + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x17google/type/month.proto\x12\x0bgoogle.type*\xb0\x01\n\x05Month\x12\ + \x15\n\x11MONTH_UNSPECIFIED\x10\0\x12\x0b\n\x07JANUARY\x10\x01\x12\x0c\n\ + \x08FEBRUARY\x10\x02\x12\t\n\x05MARCH\x10\x03\x12\t\n\x05APRIL\x10\x04\ + \x12\x07\n\x03MAY\x10\x05\x12\x08\n\x04JUNE\x10\x06\x12\x08\n\x04JULY\ + \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\xd3\x0c\n\x06\x12\x04\ + \x0e\0@\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ + \x202020\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\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\x17\x20The\x20unspecifed\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-\ + \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\ + \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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/phone_number.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/phone_number.rs new file mode 100644 index 0000000000..b30331d792 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/phone_number.rs @@ -0,0 +1,674 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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_22_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\ + \x92#\n\x06\x12\x04\x0e\0p\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\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\ + \x0f\n\x07\x04\0\x03\0\x02\0\x04\x12\x04C\x04=\x15\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\x20c\ + ode\x20digits,\x20without\x20a\x20leading\x20plus\x20('+')\x20or\x20coun\ + try\n\x20calling\x20code,\x20e.g.\x20\"611\".\n\n\x0f\n\x07\x04\0\x03\0\ + \x02\x01\x04\x12\x04G\x04C\x1b\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\x20regu\ + lar\x20number,\x20or\x20a\x20short\x20code.\x20\x20New\x20fields\x20may\ + \x20be\n\x20added\x20to\x20the\x20oneof\x20below\x20in\x20the\x20future,\ + \x20so\x20clients\x20should\x20ignore\x20phone\n\x20numbers\x20for\x20wh\ + ich\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,\x20\ + represented\x20as\x20a\x20leading\x20plus\x20sign\x20('+'),\x20followed\ + \x20by\x20a\n\x20phone\x20number\x20that\x20uses\x20a\x20relaxed\x20ITU\ + \x20E.164\x20format\x20consisting\x20of\x20the\n\x20country\x20calling\ + \x20code\x20(1\x20to\x203\x20digits)\x20and\x20the\x20subscriber\x20numb\ + er,\x20with\x20no\n\x20additional\x20spaces\x20or\x20formatting,\x20e.g.\ + :\n\x20\x20-\x20correct:\x20\"+15552220123\"\n\x20\x20-\x20incorrect:\ + \x20\"+1\x20(555)\x20222-01234\x20x123\".\n\n\x20The\x20ITU\x20E.164\x20\ + format\x20limits\x20the\x20latter\x20to\x2012\x20digits,\x20but\x20in\ + \x20practice\x20not\n\x20all\x20countries\x20respect\x20that,\x20so\x20w\ + e\x20relax\x20that\x20restriction\x20here.\n\x20National-only\x20numbers\ + \x20are\x20not\x20allowed.\n\n\x20References:\n\x20\x20-\x20https://www.\ + itu.int/rec/T-REC-E.164-201011-I\n\x20\x20-\x20https://en.wikipedia.org/\ + wiki/E.164.\n\x20\x20-\x20https://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\x20c\ + ode.\n\n\x20Reference(s):\n\x20\x20-\x20https://en.wikipedia.org/wiki/Sh\ + ort_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\x20T\ + he\x20phone\x20number's\x20extension.\x20The\x20extension\x20is\x20not\ + \x20standardized\x20in\x20ITU\n\x20recommendations,\x20except\x20for\x20\ + being\x20defined\x20as\x20a\x20series\x20of\x20numbers\x20with\x20a\n\ + \x20maximum\x20length\x20of\x2040\x20digits.\x20Other\x20than\x20digits,\ + \x20some\x20other\x20dialing\n\x20characters\x20such\x20as\x20','\x20(in\ + dicating\x20a\x20wait)\x20or\x20'#'\x20may\x20be\x20stored\x20here.\n\n\ + \x20Note\x20that\x20no\x20regions\x20currently\x20use\x20extensions\x20w\ + ith\x20short\x20codes,\x20so\x20this\n\x20field\x20is\x20normally\x20onl\ + y\x20set\x20in\x20conjunction\x20with\x20an\x20E.164\x20number.\x20It\ + \x20is\x20held\n\x20separately\x20from\x20the\x20E.164\x20number\x20to\ + \x20allow\x20for\x20short\x20code\x20extensions\x20in\x20the\n\x20future\ + .\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04o\x02d\x03\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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/postal_address.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/postal_address.rs new file mode 100644 index 0000000000..4a5b733e85 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/postal_address.rs @@ -0,0 +1,776 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/postal_address.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct PostalAddress { + // message fields + pub revision: i32, + pub region_code: ::std::string::String, + pub language_code: ::std::string::String, + pub postal_code: ::std::string::String, + pub sorting_code: ::std::string::String, + pub administrative_area: ::std::string::String, + pub locality: ::std::string::String, + pub sublocality: ::std::string::String, + pub address_lines: ::protobuf::RepeatedField<::std::string::String>, + pub recipients: ::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 PostalAddress { + fn default() -> &'a PostalAddress { + ::default_instance() + } +} + +impl PostalAddress { + pub fn new() -> 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()) + } +} + +impl ::protobuf::Message for 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; + }, + 2 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.region_code)?; + }, + 3 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.language_code)?; + }, + 4 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.postal_code)?; + }, + 5 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sorting_code)?; + }, + 6 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.administrative_area)?; + }, + 7 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.locality)?; + }, + 8 => { + ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sublocality)?; + }, + 9 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.address_lines)?; + }, + 10 => { + ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.recipients)?; + }, + 11 => { + ::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())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.revision != 0 { + my_size += ::protobuf::rt::value_size(1, self.revision, ::protobuf::wire_format::WireTypeVarint); + } + if !self.region_code.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.region_code); + } + if !self.language_code.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.language_code); + } + if !self.postal_code.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.postal_code); + } + if !self.sorting_code.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.sorting_code); + } + if !self.administrative_area.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.administrative_area); + } + if !self.locality.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.locality); + } + if !self.sublocality.is_empty() { + my_size += ::protobuf::rt::string_size(8, &self.sublocality); + } + for value in &self.address_lines { + my_size += ::protobuf::rt::string_size(9, &value); + }; + for value in &self.recipients { + my_size += ::protobuf::rt::string_size(10, &value); + }; + 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 + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + if self.revision != 0 { + os.write_int32(1, self.revision)?; + } + if !self.region_code.is_empty() { + os.write_string(2, &self.region_code)?; + } + if !self.language_code.is_empty() { + os.write_string(3, &self.language_code)?; + } + if !self.postal_code.is_empty() { + os.write_string(4, &self.postal_code)?; + } + if !self.sorting_code.is_empty() { + os.write_string(5, &self.sorting_code)?; + } + if !self.administrative_area.is_empty() { + os.write_string(6, &self.administrative_area)?; + } + if !self.locality.is_empty() { + os.write_string(7, &self.locality)?; + } + if !self.sublocality.is_empty() { + os.write_string(8, &self.sublocality)?; + } + for v in &self.address_lines { + os.write_string(9, &v)?; + }; + for v in &self.recipients { + os.write_string(10, &v)?; + }; + if !self.organization.is_empty() { + os.write_string(11, &self.organization)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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(); + self.language_code.clear(); + self.postal_code.clear(); + self.sorting_code.clear(); + self.administrative_area.clear(); + self.locality.clear(); + self.sublocality.clear(); + self.address_lines.clear(); + self.recipients.clear(); + self.organization.clear(); + self.unknown_fields.clear(); + } +} + +impl ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x20google/type/postal_address.proto\x12\x0bgoogle.type\"\x8d\x03\n\rP\ + ostalAddress\x12\x1a\n\x08revision\x18\x01\x20\x01(\x05R\x08revision\x12\ + \x1f\n\x0bregion_code\x18\x02\x20\x01(\tR\nregionCode\x12#\n\rlanguage_c\ + ode\x18\x03\x20\x01(\tR\x0clanguageCode\x12\x1f\n\x0bpostal_code\x18\x04\ + \x20\x01(\tR\npostalCode\x12!\n\x0csorting_code\x18\x05\x20\x01(\tR\x0bs\ + ortingCode\x12/\n\x13administrative_area\x18\x06\x20\x01(\tR\x12administ\ + rativeArea\x12\x1a\n\x08locality\x18\x07\x20\x01(\tR\x08locality\x12\x20\ + \n\x0bsublocality\x18\x08\x20\x01(\tR\x0bsublocality\x12#\n\raddress_lin\ + es\x18\t\x20\x03(\tR\x0caddressLines\x12\x1e\n\nrecipients\x18\n\x20\x03\ + (\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\xd20\n\x07\x12\x05\x0e\0\x85\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\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\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\ + \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,\ + \x20P.O.\n\x20Box\x20or\x20similar.\n\x20It\x20is\x20not\x20intended\x20\ + to\x20model\x20geographical\x20locations\x20(roads,\x20towns,\n\x20mount\ + ains).\n\n\x20In\x20typical\x20usage\x20an\x20address\x20would\x20be\x20\ + created\x20via\x20user\x20input\x20or\x20from\x20importing\n\x20existing\ + \x20data,\x20depending\x20on\x20the\x20type\x20of\x20process.\n\n\x20Adv\ + ice\x20on\x20address\x20input\x20/\x20editing:\n\x20\x20-\x20Use\x20an\ + \x20i18n-ready\x20address\x20widget\x20such\x20as\n\x20\x20\x20\x20https\ + ://github.com/google/libaddressinput)\n\x20-\x20Users\x20should\x20not\ + \x20be\x20presented\x20with\x20UI\x20elements\x20for\x20input\x20or\x20e\ + 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\ + 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\r\n\x05\x04\0\x02\0\x04\x12\x04/\x02*\ + \x17\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\x1a\xb1\x02\x20Required.\ + \x20CLDR\x20region\x20code\x20of\x20the\x20country/region\x20of\x20the\ + \x20address.\x20This\n\x20is\x20never\x20inferred\x20and\x20it\x20is\x20\ + up\x20to\x20the\x20user\x20to\x20ensure\x20the\x20value\x20is\n\x20corre\ + ct.\x20See\x20http://cldr.unicode.org/\x20and\n\x20http://www.unicode.or\ + g/cldr/charts/30/supplemental/territory_information.html\n\x20for\x20det\ + ails.\x20Example:\x20\"CH\"\x20for\x20Switzerland.\n\n\r\n\x05\x04\0\x02\ + \x01\x04\x12\x046\x02/\x15\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\x20Optional.\x20BCP-47\x20language\x20code\x20of\x20the\x20\ + contents\x20of\x20this\x20address\x20(if\n\x20known).\x20This\x20is\x20o\ + ften\x20the\x20UI\x20language\x20of\x20the\x20input\x20form\x20or\x20is\ + \x20expected\n\x20to\x20match\x20one\x20of\x20the\x20languages\x20used\ + \x20in\x20the\x20address'\x20country/region,\x20or\x20their\n\x20transli\ + terated\x20equivalents.\n\x20This\x20can\x20affect\x20formatting\x20in\ + \x20certain\x20countries,\x20but\x20is\x20not\x20critical\n\x20to\x20the\ + \x20correctness\x20of\x20the\x20data\x20and\x20will\x20never\x20affect\ + \x20any\x20validation\x20or\n\x20other\x20non-formatting\x20related\x20o\ + perations.\n\n\x20If\x20this\x20value\x20is\x20not\x20known,\x20it\x20sh\ + ould\x20be\x20omitted\x20(rather\x20than\x20specifying\x20a\n\x20possibl\ + y\x20incorrect\x20default).\n\n\x20Examples:\x20\"zh-Hant\",\x20\"ja\",\ + \x20\"ja-Latn\",\x20\"en\".\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04D\x026\ + \x19\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\ + 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\r\ + \n\x05\x04\0\x02\x03\x04\x12\x04J\x02D\x1b\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.\x20Additional,\x20country-spe\ + cific,\x20sorting\x20code.\x20This\x20is\x20not\x20used\n\x20in\x20most\ + \x20regions.\x20Where\x20it\x20is\x20used,\x20the\x20value\x20is\x20eith\ + er\x20a\x20string\x20like\n\x20\"CEDEX\",\x20optionally\x20followed\x20b\ + y\x20a\x20number\x20(e.g.\x20\"CEDEX\x207\"),\x20or\x20just\x20a\x20numb\ + er\n\x20alone,\x20representing\x20the\x20\"sector\x20code\"\x20(Jamaica)\ + ,\x20\"delivery\x20area\x20indicator\"\n\x20(Malawi)\x20or\x20\"post\x20\ + office\x20indicator\"\x20(e.g.\x20C\xc3\xb4te\x20d'Ivoire).\n\n\r\n\x05\ + \x04\0\x02\x04\x04\x12\x04Q\x02J\x19\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\x20Optional.\x20Highest\x20administrative\x20subd\ + ivision\x20which\x20is\x20used\x20for\x20postal\n\x20addresses\x20of\x20\ + a\x20country\x20or\x20region.\n\x20For\x20example,\x20this\x20can\x20be\ + \x20a\x20state,\x20a\x20province,\x20an\x20oblast,\x20or\x20a\x20prefect\ + ure.\n\x20Specifically,\x20for\x20Spain\x20this\x20is\x20the\x20province\ + \x20and\x20not\x20the\x20autonomous\n\x20community\x20(e.g.\x20\"Barcelo\ + na\"\x20and\x20not\x20\"Catalonia\").\n\x20Many\x20countries\x20don't\ + \x20use\x20an\x20administrative\x20area\x20in\x20postal\x20addresses.\ + \x20E.g.\n\x20in\x20Switzerland\x20this\x20should\x20be\x20left\x20unpop\ + ulated.\n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04Z\x02Q\x1a\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.\x20Generally\x20ref\ + ers\x20to\x20the\x20city/town\x20portion\x20of\x20the\x20address.\n\x20E\ + xamples:\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\x20struc\ + ture\x20well,\x20leave\x20locality\x20empty\x20and\x20use\x20address_lin\ + es.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04`\x02Z!\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.\x20Sublocality\x20of\x20the\x20address.\ + \n\x20For\x20example,\x20this\x20can\x20be\x20neighborhoods,\x20boroughs\ + ,\x20districts.\n\n\r\n\x05\x04\0\x02\x07\x04\x12\x04d\x02`\x16\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\ + \x20lines\x20describing\x20the\x20lower\x20levels\x20of\x20an\x20address\ + .\n\n\x20Because\x20values\x20in\x20address_lines\x20do\x20not\x20have\ + \x20type\x20information\x20and\x20may\n\x20sometimes\x20contain\x20multi\ + ple\x20values\x20in\x20a\x20single\x20field\x20(e.g.\n\x20\"Austin,\x20T\ + X\"),\x20it\x20is\x20important\x20that\x20the\x20line\x20order\x20is\x20\ + clear.\x20The\x20order\x20of\n\x20address\x20lines\x20should\x20be\x20\"\ + envelope\x20order\"\x20for\x20the\x20country/region\x20of\x20the\n\x20ad\ + dress.\x20In\x20places\x20where\x20this\x20can\x20vary\x20(e.g.\x20Japan\ + ),\x20address_language\x20is\n\x20used\x20to\x20make\x20it\x20explicit\ + \x20(e.g.\x20\"ja\"\x20for\x20large-to-small\x20ordering\x20and\n\x20\"j\ + a-Latn\"\x20or\x20\"en\"\x20for\x20small-to-large).\x20This\x20way,\x20t\ + he\x20most\x20specific\x20line\x20of\n\x20an\x20address\x20can\x20be\x20\ + selected\x20based\x20on\x20the\x20language.\n\n\x20The\x20minimum\x20per\ + mitted\x20structural\x20representation\x20of\x20an\x20address\x20consist\ + s\n\x20of\x20a\x20region_code\x20with\x20all\x20remaining\x20information\ + \x20placed\x20in\x20the\n\x20address_lines.\x20It\x20would\x20be\x20poss\ + ible\x20to\x20format\x20such\x20an\x20address\x20very\n\x20approximately\ + \x20without\x20geocoding,\x20but\x20no\x20semantic\x20reasoning\x20could\ + \x20be\n\x20made\x20about\x20any\x20of\x20the\x20address\x20components\ + \x20until\x20it\x20was\x20at\x20least\n\x20partially\x20resolved.\n\n\ + \x20Creating\x20an\x20address\x20only\x20containing\x20a\x20region_code\ + \x20and\x20address_lines,\x20and\n\x20then\x20geocoding\x20is\x20the\x20\ + 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\ + 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\ + \x20the\x20organization\x20at\x20the\x20address.\n\n\x0f\n\x05\x04\0\x02\ + \n\x04\x12\x06\x84\x01\x02\x81\x01\"\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\ +"; + +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/vendor/mozilla-rust-sdk/googleapis-raw/src/type/quaternion.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/quaternion.rs new file mode 100644 index 0000000000..432faf020a --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/quaternion.rs @@ -0,0 +1,392 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/quaternion.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct Quaternion { + // message fields + pub x: f64, + pub y: f64, + pub z: f64, + pub w: f64, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a Quaternion { + fn default() -> &'a Quaternion { + ::default_instance() + } +} + +impl Quaternion { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.x != 0. { + my_size += 9; + } + if self.y != 0. { + my_size += 9; + } + if self.z != 0. { + my_size += 9; + } + if self.w != 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.x != 0. { + os.write_double(1, self.x)?; + } + if self.y != 0. { + os.write_double(2, self.y)?; + } + if self.z != 0. { + os.write_double(3, self.z)?; + } + if self.w != 0. { + os.write_double(4, self.w)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static Quaternion { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(Quaternion::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1cgoogle/type/quaternion.proto\x12\x0bgoogle.type\"D\n\nQuaternion\ + \x12\x0c\n\x01x\x18\x01\x20\x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02\x20\ + \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\xf2\x1c\n\x06\x12\x04\x0e\0]\x01\n\xbc\x04\ + \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\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\ + \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\ + e-dimensional\n\x20rotations\x20(https://en.wikipedia.org/wiki/Quaternio\ + ns_and_spatial_rotation),\n\x20as\x20they\x20provide\x20greater\x20mathe\ + matical\x20robustness\x20by\x20avoiding\x20the\x20gimbal\x20lock\n\x20pr\ + oblems\x20that\x20can\x20be\x20encountered\x20when\x20using\x20Euler\x20\ + angles\n\x20(https://en.wikipedia.org/wiki/Gimbal_lock).\n\n\x20Quaterni\ + ons\x20are\x20generally\x20represented\x20in\x20this\x20form:\n\n\x20\ + \x20\x20\x20\x20w\x20+\x20xi\x20+\x20yj\x20+\x20zk\n\n\x20where\x20x,\ + \x20y,\x20z,\x20and\x20w\x20are\x20real\x20numbers,\x20and\x20i,\x20j,\ + \x20and\x20k\x20are\x20three\x20imaginary\n\x20numbers.\n\n\x20Our\x20na\ + ming\x20choice\x20`(x,\x20y,\x20z,\x20w)`\x20comes\x20from\x20the\x20des\ + ire\x20to\x20avoid\x20confusion\x20for\n\x20those\x20interested\x20in\ + \x20the\x20geometric\x20properties\x20of\x20the\x20quaternion\x20in\x20t\ + he\x203D\n\x20Cartesian\x20space.\x20Other\x20texts\x20often\x20use\x20a\ + lternative\x20names\x20or\x20subscripts,\x20such\n\x20as\x20`(a,\x20b,\ + \x20c,\x20d)`,\x20`(1,\x20i,\x20j,\x20k)`,\x20or\x20`(0,\x201,\x202,\x20\ + 3)`,\x20which\x20are\x20perhaps\n\x20better\x20suited\x20for\x20mathemat\ + ical\x20interpretations.\n\n\x20To\x20avoid\x20any\x20confusion,\x20as\ + \x20well\x20as\x20to\x20maintain\x20compatibility\x20with\x20a\x20large\ + \n\x20number\x20of\x20software\x20libraries,\x20the\x20quaternions\x20re\ + presented\x20using\x20the\x20protocol\n\x20buffer\x20below\x20*must*\x20\ + follow\x20the\x20Hamilton\x20convention,\x20which\x20defines\x20`ij\x20=\ + \x20k`\n\x20(i.e.\x20a\x20right-handed\x20algebra),\x20and\x20therefore:\ + \n\n\x20\x20\x20\x20\x20i^2\x20=\x20j^2\x20=\x20k^2\x20=\x20ijk\x20=\x20\ + \xe2\x88\x921\n\x20\x20\x20\x20\x20ij\x20=\x20\xe2\x88\x92ji\x20=\x20k\n\ + \x20\x20\x20\x20\x20jk\x20=\x20\xe2\x88\x92kj\x20=\x20i\n\x20\x20\x20\ + \x20\x20ki\x20=\x20\xe2\x88\x92ik\x20=\x20j\n\n\x20Please\x20DO\x20NOT\ + \x20use\x20this\x20to\x20represent\x20quaternions\x20that\x20follow\x20t\ + he\x20JPL\n\x20convention,\x20or\x20any\x20of\x20the\x20other\x20quatern\ + ion\x20flavors\x20out\x20there.\n\n\x20Definitions:\n\n\x20\x20\x20-\x20\ + Quaternion\x20norm\x20(or\x20magnitude):\x20`sqrt(x^2\x20+\x20y^2\x20+\ + \x20z^2\x20+\x20w^2)`.\n\x20\x20\x20-\x20Unit\x20(or\x20normalized)\x20q\ + uaternion:\x20a\x20quaternion\x20whose\x20norm\x20is\x201.\n\x20\x20\x20\ + -\x20Pure\x20quaternion:\x20a\x20quaternion\x20whose\x20scalar\x20compon\ + ent\x20(`w`)\x20is\x200.\n\x20\x20\x20-\x20Rotation\x20quaternion:\x20a\ + \x20unit\x20quaternion\x20used\x20to\x20represent\x20rotation.\n\x20\x20\ + \x20-\x20Orientation\x20quaternion:\x20a\x20unit\x20quaternion\x20used\ + \x20to\x20represent\x20orientation.\n\n\x20A\x20quaternion\x20can\x20be\ + \x20normalized\x20by\x20dividing\x20it\x20by\x20its\x20norm.\x20The\x20r\ + esulting\n\x20quaternion\x20maintains\x20the\x20same\x20direction,\x20bu\ + t\x20has\x20a\x20norm\x20of\x201,\x20i.e.\x20it\x20moves\n\x20on\x20the\ + \x20unit\x20sphere.\x20This\x20is\x20generally\x20necessary\x20for\x20ro\ + tation\x20and\x20orientation\n\x20quaternions,\x20to\x20avoid\x20roundin\ + g\x20errors:\n\x20https://en.wikipedia.org/wiki/Rotation_formalisms_in_t\ + hree_dimensions\n\n\x20Note\x20that\x20`(x,\x20y,\x20z,\x20w)`\x20and\ + \x20`(-x,\x20-y,\x20-z,\x20-w)`\x20represent\x20the\x20same\x20rotation,\ + \n\x20but\x20normalization\x20would\x20be\x20even\x20more\x20useful,\x20\ + e.g.\x20for\x20comparison\x20purposes,\x20if\n\x20it\x20would\x20produce\ + \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\r\n\x05\ + \x04\0\x02\0\x04\x12\x04S\x02Q\x14\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\r\n\x05\x04\0\x02\x01\x04\x12\x04V\x02S\ + \x0f\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\x20compone\ + nt.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04Y\x02V\x0f\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\r\n\x05\x04\0\ + \x02\x03\x04\x12\x04\\\x02Y\x0f\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() +} + +pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + file_descriptor_proto_lazy.get(|| { + parse_descriptor_proto() + }) +} diff --git a/vendor/mozilla-rust-sdk/googleapis-raw/src/type/timeofday.rs b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/timeofday.rs new file mode 100644 index 0000000000..b0901a23f0 --- /dev/null +++ b/vendor/mozilla-rust-sdk/googleapis-raw/src/type/timeofday.rs @@ -0,0 +1,350 @@ +// This file is generated by rust-protobuf 2.22.0. Do not edit +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![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/timeofday.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_0; + +#[derive(PartialEq,Clone,Default)] +pub struct TimeOfDay { + // message fields + pub hours: i32, + pub minutes: i32, + pub seconds: i32, + pub nanos: i32, + // special fields + pub unknown_fields: ::protobuf::UnknownFields, + pub cached_size: ::protobuf::CachedSize, +} + +impl<'a> ::std::default::Default for &'a TimeOfDay { + fn default() -> &'a TimeOfDay { + ::default_instance() + } +} + +impl TimeOfDay { + pub fn new() -> 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; + } +} + +impl ::protobuf::Message for 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; + }, + 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; + }, + 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; + }, + 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; + }, + _ => { + ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u32 { + let mut my_size = 0; + if self.hours != 0 { + my_size += ::protobuf::rt::value_size(1, self.hours, ::protobuf::wire_format::WireTypeVarint); + } + if self.minutes != 0 { + my_size += ::protobuf::rt::value_size(2, self.minutes, ::protobuf::wire_format::WireTypeVarint); + } + if self.seconds != 0 { + my_size += ::protobuf::rt::value_size(3, self.seconds, ::protobuf::wire_format::WireTypeVarint); + } + if self.nanos != 0 { + my_size += ::protobuf::rt::value_size(4, self.nanos, ::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.hours != 0 { + os.write_int32(1, self.hours)?; + } + if self.minutes != 0 { + os.write_int32(2, self.minutes)?; + } + if self.seconds != 0 { + os.write_int32(3, self.seconds)?; + } + if self.nanos != 0 { + os.write_int32(4, self.nanos)?; + } + os.write_unknown_fields(self.get_unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn get_cached_size(&self) -> u32 { + self.cached_size.get() + } + + fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { + &self.unknown_fields + } + + fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { + &mut self.unknown_fields + } + + fn as_any(&self) -> &dyn (::std::any::Any) { + self as &dyn (::std::any::Any) + } + fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { + self as &mut dyn (::std::any::Any) + } + fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { + self + } + + fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { + Self::descriptor_static() + } + + 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 default_instance() -> &'static TimeOfDay { + static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + instance.get(TimeOfDay::new) + } +} + +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 ::std::fmt::Debug 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) + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1bgoogle/type/timeofday.proto\x12\x0bgoogle.type\"k\n\tTimeOfDay\x12\ + \x14\n\x05hours\x18\x01\x20\x01(\x05R\x05hours\x12\x18\n\x07minutes\x18\ + \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\xfc\x0c\n\x06\ + \x12\x04\x0e\0*\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ + pyright\x202020\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\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\xf9\x01\n\x02\x04\0\x12\ + \x04\x1c\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\x20`google.protobuf.Timestamp`.\ + \n\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\x11\n\xa2\x01\n\x04\x04\0\x02\0\ + \x12\x03\x1f\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\ + \x20scenarios\x20like\x20business\x20closing\x20time.\n\n\r\n\x05\x04\0\ + \x02\0\x04\x12\x04\x1f\x02\x1c\x13\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\ + \x1f\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1f\x08\r\n\x0c\n\x05\ + \x04\0\x02\0\x03\x12\x03\x1f\x10\x11\n<\n\x04\x04\0\x02\x01\x12\x03\"\ + \x02\x14\x1a/\x20Minutes\x20of\x20hour\x20of\x20day.\x20Must\x20be\x20fr\ + om\x200\x20to\x2059.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\"\x02\x1f\x12\ + \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\x0f\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\"\x12\ + \x13\n\x87\x01\n\x04\x04\0\x02\x02\x12\x03&\x02\x14\x1az\x20Seconds\x20o\ + f\x20minutes\x20of\x20the\x20time.\x20Must\x20normally\x20be\x20from\x20\ + 0\x20to\x2059.\x20An\x20API\x20may\n\x20allow\x20the\x20value\x2060\x20i\ + f\x20it\x20allows\x20leap-seconds.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04\ + &\x02\"\x14\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\x0f\n\x0c\n\x05\x04\0\x02\x02\x03\x12\ + \x03&\x12\x13\nR\n\x04\x04\0\x02\x03\x12\x03)\x02\x12\x1aE\x20Fractions\ + \x20of\x20seconds\x20in\x20nanoseconds.\x20Must\x20be\x20from\x200\x20to\ + \x20999,999,999.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04)\x02&\x14\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\r\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03)\x10\x11b\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/vendor/mozilla-rust-sdk/googleapis/Cargo.toml b/vendor/mozilla-rust-sdk/googleapis/Cargo.toml index 353b9264bf..c798e6df2e 100644 --- a/vendor/mozilla-rust-sdk/googleapis/Cargo.toml +++ b/vendor/mozilla-rust-sdk/googleapis/Cargo.toml @@ -20,7 +20,7 @@ edition = "2018" [dependencies] futures = "0.3.5" -grpcio = "0.9.0" +grpcio = "0.8.0" [dependencies.googleapis-raw] version = "0.1.0" diff --git a/vendor/mozilla-rust-sdk/googleapis/src/spanner.rs b/vendor/mozilla-rust-sdk/googleapis/src/spanner.rs index d66b3bedbf..a75cfa2d5f 100644 --- a/vendor/mozilla-rust-sdk/googleapis/src/spanner.rs +++ b/vendor/mozilla-rust-sdk/googleapis/src/spanner.rs @@ -36,7 +36,7 @@ impl Client { let creds = ChannelCredentials::google_default_credentials()?; // Create a Spanner client. - let chan = ChannelBuilder::new(Arc::clone(&env)) + let chan = ChannelBuilder::new(env) .max_send_message_len(100 << 20) .max_receive_message_len(100 << 20) .secure_connect(&endpoint, creds); From b434b1c5ee6b050283d7e529cdeeac3afc6987fe Mon Sep 17 00:00:00 2001 From: jrconlin Date: Mon, 28 Jun 2021 13:10:06 -0700 Subject: [PATCH 3/4] chore: Update for Jun 2021 --- Cargo.lock | 546 +++++++++++++++++++++++++++-------------------------- 1 file changed, 279 insertions(+), 267 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b9cbd81530..3584d8ab9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11,7 +11,7 @@ dependencies = [ "futures-core", "futures-sink", "log", - "pin-project 0.4.27", + "pin-project 0.4.28", "tokio", "tokio-util", ] @@ -85,15 +85,15 @@ dependencies = [ "log", "mime", "percent-encoding 2.1.0", - "pin-project 1.0.5", + "pin-project 1.0.7", "rand 0.7.3", "regex", - "serde 1.0.124", + "serde 1.0.126", "serde_json", "serde_urlencoded", "sha-1", "slab", - "time 0.2.25", + "time 0.2.27", ] [[package]] @@ -116,7 +116,7 @@ dependencies = [ "http", "log", "regex", - "serde 1.0.124", + "serde 1.0.126", ] [[package]] @@ -161,7 +161,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0052435d581b5be835d11f4eb3bce417c8af18d87ddf8ace99f8e67e595882bb" dependencies = [ "futures-util", - "pin-project 0.4.27", + "pin-project 0.4.28", ] [[package]] @@ -221,7 +221,7 @@ dependencies = [ "futures-sink", "futures-util", "log", - "pin-project 0.4.27", + "pin-project 0.4.28", "slab", ] @@ -253,15 +253,15 @@ dependencies = [ "fxhash", "log", "mime", - "pin-project 1.0.5", + "pin-project 1.0.7", "regex", - "serde 1.0.124", + "serde 1.0.126", "serde_json", "serde_urlencoded", "socket2 0.3.19", - "time 0.2.25", + "time 0.2.27", "tinyvec", - "url 2.2.1", + "url 2.2.2", ] [[package]] @@ -277,22 +277,20 @@ dependencies = [ [[package]] name = "actix-web-httpauth" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "536a75d767c5c2b3e64d3f569621f38ed7609359a0c82d149c88290a6ba41b22" +checksum = "0c3b11a07a3df3f7970fd8bd38cc66998b5549f507c54cc64c6e843bc82d6358" dependencies = [ - "actix-service", "actix-web", - "base64 0.12.3", - "bytes 0.5.6", + "base64 0.13.0", "futures-util", ] [[package]] name = "addr2line" -version = "0.14.1" +version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7" +checksum = "e7a2e47a1fbe209ee101dd6d61285226744c6c8d3c21c8dc878ba6cb9f467f3a" dependencies = [ "gimli", ] @@ -305,24 +303,24 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aho-corasick" -version = "0.7.15" +version = "0.7.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5" +checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" dependencies = [ "memchr", ] [[package]] name = "anyhow" -version = "1.0.38" +version = "1.0.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1" +checksum = "15af2628f6890fe2609a3b91bef4c83450512802e59489f9c1cb1fa5df064a61" [[package]] name = "arc-swap" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4d7d63395147b81a9e570bcc6243aaf71c017bd666d4909cfef0085bdda8d73" +checksum = "e906254e445520903e7fc9da4f709886c84ae4bc4ddaf0e093188d66df4dc820" [[package]] name = "arrayvec" @@ -332,9 +330,9 @@ checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] name = "async-trait" -version = "0.1.48" +version = "0.1.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36ea56748e10732c49404c153638a15ec3d6211ec5ff35d9bb20e13b93576adf" +checksum = "0b98e84bbb4cbcdd97da190ba0c58a1bb0de2c1fdf67d159e192ed766aeca722" dependencies = [ "proc-macro2", "quote", @@ -377,18 +375,19 @@ dependencies = [ "mime", "percent-encoding 2.1.0", "rand 0.7.3", - "serde 1.0.124", + "serde 1.0.126", "serde_json", "serde_urlencoded", ] [[package]] name = "backtrace" -version = "0.3.56" +version = "0.3.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d117600f438b1707d4e4ae15d3595657288f8235a0eb593e80ecc98ab34e1bc" +checksum = "b7815ea54e4d821e791162e078acbebfd6d8c8939cd559c9335dceb1c8ca7282" dependencies = [ "addr2line", + "cc", "cfg-if 1.0.0", "libc", "miniz_oxide", @@ -421,7 +420,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "374bba43fc924d90393ee7768e6f75d223a98307a488fe5bc34b66c3e96932a6" dependencies = [ "async-trait", - "futures 0.3.13", + "futures 0.3.15", "tokio", ] @@ -499,9 +498,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.6.1" +version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63396b8a4b9de3f4fdfb320ab6080762242f66a8ef174c49d8e19b674db4cdbe" +checksum = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631" [[package]] name = "byteorder" @@ -541,9 +540,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.67" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" +checksum = "4a72c244c1ff497a746a7e1fb3d14bd08420ecda70c8f25c7112f2781652d787" [[package]] name = "cexpr" @@ -575,16 +574,16 @@ dependencies = [ "libc", "num-integer", "num-traits 0.2.14", - "serde 1.0.124", + "serde 1.0.126", "time 0.1.43", "winapi 0.3.9", ] [[package]] name = "clang-sys" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f54d78e30b388d4815220c8dd03fea5656b6c6d32adb59e89061552a102f8da1" +checksum = "853eda514c284c2287f4bf20ae614f8781f40a81d32ecda6e91449304dfe077c" dependencies = [ "glob", "libc", @@ -608,7 +607,7 @@ checksum = "19b076e143e1d9538dde65da30f8481c2a6c44040edb8e02b9bf1351edb92ce3" dependencies = [ "lazy_static", "nom", - "serde 1.0.124", + "serde 1.0.126", ] [[package]] @@ -620,7 +619,7 @@ dependencies = [ "lazy_static", "nom", "rust-ini", - "serde 1.0.124", + "serde 1.0.126", "serde-hjson", "serde_json", "toml", @@ -629,9 +628,15 @@ dependencies = [ [[package]] name = "const_fn" -version = "0.4.5" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f92cfa0fd5690b3cf8c1ef2cabbd9b7ef22fa53cf5e1f92b05103f6d5d1cf6e7" + +[[package]] +name = "convert_case" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28b9d6de7f49e22cf97ad17fc4036ece69300032f45f78f30b4a4482cdc3f4a6" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" [[package]] name = "cookie" @@ -640,7 +645,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03a5d7b21829bc7b4bf4754a978a241ae54ea55a40f92bb20216e54096f4b951" dependencies = [ "percent-encoding 2.1.0", - "time 0.2.25", + "time 0.2.27", "version_check", ] @@ -667,10 +672,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b" [[package]] -name = "cpuid-bool" -version = "0.1.2" +name = "cpufeatures" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" +checksum = "66c99696f6c9dd7f35d486b9d04d7e6e202aa3e8c40d553f2fdf5e7e0c6a71ef" +dependencies = [ + "libc", +] [[package]] name = "crc32fast" @@ -683,12 +691,12 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dca26ee1f8d361640700bde38b2c37d8c22b3ce2d360e1fc1c74ea4b0aa7d775" +checksum = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4" dependencies = [ "cfg-if 1.0.0", - "crossbeam-utils 0.8.3", + "crossbeam-utils 0.8.5", ] [[package]] @@ -715,11 +723,10 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7e9d99fa91428effe99c5c6d4634cdeba32b8cf784fc428a2a687f61a952c49" +checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db" dependencies = [ - "autocfg", "cfg-if 1.0.0", "lazy_static", ] @@ -736,9 +743,9 @@ dependencies = [ [[package]] name = "ctor" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8f45d9ad417bcef4817d614a501ab55cdd96a6fdb24f49aab89a54acfd66b19" +checksum = "5e98e2ad1a782e33928b96fc3948e7c355e5af34ba4de7670fe8bac2a3b2006d" dependencies = [ "quote", "syn", @@ -783,7 +790,7 @@ dependencies = [ "config 0.10.1", "crossbeam-queue", "num_cpus", - "serde 1.0.124", + "serde 1.0.126", "tokio", ] @@ -793,16 +800,17 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f91cf5a8c2f2097e2a32627123508635d47ce10563d999ec1a95addf08b502ba" dependencies = [ - "serde 1.0.124", + "serde 1.0.126", "uuid", ] [[package]] name = "derive_more" -version = "0.99.11" +version = "0.99.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cb0e6161ad61ed084a36ba71fbba9e3ac5aee3606fb607fe08da6acbcf3d8c" +checksum = "5cc7b9cef1e351660e5443924e4f43ab25fbbed3e9a5f052df3677deb4d6b320" dependencies = [ + "convert_case", "proc-macro2", "quote", "syn", @@ -810,9 +818,9 @@ dependencies = [ [[package]] name = "diesel" -version = "1.4.6" +version = "1.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "047bfc4d5c3bd2ef6ca6f981941046113524b9a9f9a7cbdfdd7ff40f58e6f542" +checksum = "bba51ca66f57261fd17cadf8b73e4775cc307d0521d855de3f5de91a8f074e0e" dependencies = [ "byteorder", "diesel_derives", @@ -890,13 +898,13 @@ checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" [[package]] name = "docopt" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f525a586d310c87df72ebcd98009e57f1cc030c8c268305287a476beb653969" +checksum = "7f3f119846c823f9eafcf953a8f6ffb6ed69bf6240883261a7f13b634579a51f" dependencies = [ "lazy_static", "regex", - "serde 1.0.124", + "serde 1.0.126", "strsim", ] @@ -929,9 +937,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17392a012ea30ef05a610aa97dfb49496e71c9f676b27879922ea5bdf60d9d3f" +checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" dependencies = [ "atty", "humantime", @@ -942,11 +950,11 @@ dependencies = [ [[package]] name = "erased-serde" -version = "0.3.13" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0465971a8cc1fa2455c8465aaa377131e1f1cf4983280f474a13e68793aa770c" +checksum = "3de9ad4541d99dc22b59134e7ff8dc3d6c988c89ecd7324bf10a8362b07a2afa" dependencies = [ - "serde 1.0.124", + "serde 1.0.126", ] [[package]] @@ -1038,9 +1046,9 @@ checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" [[package]] name = "futures" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f55667319111d593ba876406af7c409c0ebb44dc4be6132a783ccf163ea14c1" +checksum = "0e7e43a803dae2fa37c1f6a8fe121e1f7bf9548b4dfc0522a42f34145dadfc27" dependencies = [ "futures-channel", "futures-core", @@ -1053,9 +1061,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c2dd2df839b57db9ab69c2c9d8f3e8c81984781937fe2807dc6dcf3b2ad2939" +checksum = "e682a68b29a882df0545c143dc3646daefe80ba479bcdede94d5a703de2871e2" dependencies = [ "futures-core", "futures-sink", @@ -1063,15 +1071,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15496a72fabf0e62bdc3df11a59a3787429221dd0710ba8ef163d6f7a9112c94" +checksum = "0402f765d8a89a26043b889b26ce3c4679d268fa6bb22cd7c6aad98340e179d1" [[package]] name = "futures-executor" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891a4b7b96d84d5940084b2a37632dd65deeae662c114ceaa2c879629c9c0ad1" +checksum = "badaa6a909fac9e7236d0620a2f57f7664640c56575b71a7552fbd68deafab79" dependencies = [ "futures-core", "futures-task", @@ -1080,16 +1088,17 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71c2c65c57704c32f5241c1223167c2c3294fd34ac020c807ddbe6db287ba59" +checksum = "acc499defb3b348f8d8f3f66415835a9131856ff7714bf10dadfc4ec4bdb29a1" [[package]] name = "futures-macro" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea405816a5139fb39af82c2beb921d52143f556038378d6db21183a5c37fbfb7" +checksum = "a4c40298486cdf52cc00cd6d6987892ba502c7656a16a4192a9992b1ccedd121" dependencies = [ + "autocfg", "proc-macro-hack", "proc-macro2", "quote", @@ -1098,22 +1107,23 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85754d98985841b7d4f5e8e6fbfa4a4ac847916893ec511a2917ccd8525b8bb3" +checksum = "a57bead0ceff0d6dde8f465ecd96c9338121bb7717d3e7b108059531870c4282" [[package]] name = "futures-task" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa189ef211c15ee602667a6fcfe1c1fd9e07d42250d2156382820fba33c9df80" +checksum = "8a16bef9fc1a4dddb5bee51c989e3fbba26569cbb0e31f5b303c184e3dd33dae" [[package]] name = "futures-util" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1812c7ab8aedf8d6f2701a43e1243acdbcc2b36ab26e2ad421eb99ac963d96d1" +checksum = "feb5c238d27e2bf94ffdfd27b2c29e3df4a68c4193bb6427384259e2bf191967" dependencies = [ + "autocfg", "futures 0.1.31", "futures-channel", "futures-core", @@ -1122,7 +1132,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", "pin-utils", "proc-macro-hack", "proc-macro-nested", @@ -1161,9 +1171,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8" +checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" dependencies = [ "cfg-if 1.0.0", "libc", @@ -1183,9 +1193,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.23.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" +checksum = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189" [[package]] name = "glob" @@ -1197,7 +1207,7 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" name = "googleapis-raw" version = "0.1.0" dependencies = [ - "futures 0.3.13", + "futures 0.3.15", "grpcio", "protobuf", ] @@ -1208,7 +1218,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a1b8dd4e79b81ccfd5b9282dfc6d3d4e97568291c383c1bc98756a0f21e39d9" dependencies = [ - "futures 0.3.13", + "futures 0.3.15", "grpcio-sys", "libc", "log", @@ -1270,23 +1280,23 @@ dependencies = [ "once_cell", "ring", "thiserror", - "url 2.2.1", + "url 2.2.2", ] [[package]] name = "heck" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cbf45460356b7deeb5e3415b5563308c0a9b057c85e12b06ad551f98d0a6ac" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" dependencies = [ "unicode-segmentation", ] [[package]] name = "hermit-abi" -version = "0.1.18" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" dependencies = [ "libc", ] @@ -1330,9 +1340,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7245cd7449cc792608c3c8a9eaf69bd4eabbabf802713748fd739c98b82f0747" +checksum = "527e8c9ac747e28542699a951517aa9a6945af506cd1f2e1b53a576c17b6cc11" dependencies = [ "bytes 1.0.1", "fnv", @@ -1383,7 +1393,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project 1.0.5", + "pin-project 1.0.7", "socket2 0.3.19", "tokio", "tower-service", @@ -1417,9 +1427,9 @@ dependencies = [ [[package]] name = "idna" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21" +checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" dependencies = [ "matches", "unicode-bidi", @@ -1533,9 +1543,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.3.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135" +checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9" [[package]] name = "itoa" @@ -1545,9 +1555,9 @@ checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" [[package]] name = "js-sys" -version = "0.3.48" +version = "0.3.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc9f84f9b115ce7843d60706df1422a916680bfdfcbdb0447c5614ff9d7e4d78" +checksum = "83bdfbace3a0e81a4253f73b49e960b053e396a11012cbd49b9b74d6a2b67062" dependencies = [ "wasm-bindgen", ] @@ -1582,9 +1592,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "lexical-core" -version = "0.7.5" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21f866863575d0e1d654fbeeabdc927292fdf862873dc3c96c6f753357e13374" +checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe" dependencies = [ "arrayvec", "bitflags", @@ -1595,9 +1605,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.88" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03b07a082330a35e43f63177cc01689da34fbffa0105e1246cf0311472cac73a" +checksum = "12b8adadd720df158f4d70dfe7ccc6adb0472d7c55ca83445f6a5ab3e36f8fb6" [[package]] name = "libloading" @@ -1629,9 +1639,9 @@ checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" [[package]] name = "lock_api" -version = "0.4.2" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd96ffd135b2fd7b973ac026d28085defbe8983df057ced3eb4f2130b0831312" +checksum = "0382880606dff6d15c9476c416d18690b72742aa7b605bb6dd6ec9030fbf07eb" dependencies = [ "scopeguard", ] @@ -1674,9 +1684,9 @@ checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" [[package]] name = "memchr" -version = "2.3.4" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" +checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" [[package]] name = "migrations_internals" @@ -1857,15 +1867,18 @@ dependencies = [ [[package]] name = "object" -version = "0.23.0" +version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4" +checksum = "a38f2be3697a57b4060074ff41b44c16870d916ad7877c17696e063257482bc7" +dependencies = [ + "memchr", +] [[package]] name = "once_cell" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3" +checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" [[package]] name = "opaque-debug" @@ -1875,9 +1888,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "openssl" -version = "0.10.34" +version = "0.10.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d7830286ad6a3973c0f1d9b73738f69c76b739301d0229c4b96501695cbe4c8" +checksum = "549430950c79ae24e6d02e0b7404534ecf311d94cc9f861e9e4020187d13d885" dependencies = [ "bitflags", "cfg-if 1.0.0", @@ -1889,15 +1902,15 @@ dependencies = [ [[package]] name = "openssl-probe" -version = "0.1.2" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de" +checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" [[package]] name = "openssl-sys" -version = "0.9.63" +version = "0.9.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6b0d6fb7d80f877617dfcb014e605e2b5ab2fb0afdf27935219bb6bd984cb98" +checksum = "7a7907e3bfa08bb85105209cdfcb6c63d109f8f6c1ed6ca318fff5c1853fbc1d" dependencies = [ "autocfg", "cc", @@ -1970,27 +1983,27 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" [[package]] name = "pin-project" -version = "0.4.27" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15" +checksum = "918192b5c59119d51e0cd221f4d49dde9112824ba717369e903c97d076083d0f" dependencies = [ - "pin-project-internal 0.4.27", + "pin-project-internal 0.4.28", ] [[package]] name = "pin-project" -version = "1.0.5" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96fa8ebb90271c4477f144354485b8068bd8f6b78b428b01ba892ca26caf0b63" +checksum = "c7509cc106041c40a4518d2af7a61530e1eed0e6285296a3d8c5472806ccc4a4" dependencies = [ - "pin-project-internal 1.0.5", + "pin-project-internal 1.0.7", ] [[package]] name = "pin-project-internal" -version = "0.4.27" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895" +checksum = "3be26700300be6d9d23264c73211d8190e755b6b5ca7a1b28230025511b52a5e" dependencies = [ "proc-macro2", "quote", @@ -1999,9 +2012,9 @@ dependencies = [ [[package]] name = "pin-project-internal" -version = "1.0.5" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "758669ae3558c6f74bd2a18b41f7ac0b5a195aea6639d6a9b5e5d1ad5ba24c0b" +checksum = "48c950132583b500556b1efd71d45b319029f2b71518d979fcc208e16b42426f" dependencies = [ "proc-macro2", "quote", @@ -2016,9 +2029,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" [[package]] name = "pin-project-lite" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905" +checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443" [[package]] name = "pin-utils" @@ -2076,18 +2089,18 @@ checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" [[package]] name = "proc-macro2" -version = "1.0.24" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" +checksum = "f0d8caf72986c1a598726adc988bb5984792ef84f5ee5aa50209145ee8077038" dependencies = [ "unicode-xid", ] [[package]] name = "protobuf" -version = "2.23.0" +version = "2.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45604fc7a88158e7d514d8e22e14ac746081e7a70d7690074dd0029ee37458d6" +checksum = "db50e77ae196458ccd3dc58a31ea1a90b0698ab1b7928d89f644c25d72070267" [[package]] name = "pyo3" @@ -2169,14 +2182,14 @@ dependencies = [ [[package]] name = "rand" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e" +checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" dependencies = [ "libc", - "rand_chacha 0.3.0", - "rand_core 0.6.2", - "rand_hc 0.3.0", + "rand_chacha 0.3.1", + "rand_core 0.6.3", + "rand_hc 0.3.1", ] [[package]] @@ -2191,12 +2204,12 @@ dependencies = [ [[package]] name = "rand_chacha" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.2", + "rand_core 0.6.3", ] [[package]] @@ -2210,11 +2223,11 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7" +checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" dependencies = [ - "getrandom 0.2.2", + "getrandom 0.2.3", ] [[package]] @@ -2228,11 +2241,11 @@ dependencies = [ [[package]] name = "rand_hc" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73" +checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" dependencies = [ - "rand_core 0.6.2", + "rand_core 0.6.3", ] [[package]] @@ -2246,9 +2259,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.2.5" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94341e4e44e24f6b591b59e47a8a027df12e008d73fd5672dbea9cc22f4507d9" +checksum = "5ab49abadf3f9e1c4bc499e8845e152ad87d2ad2d30371841171169e9d75feee" dependencies = [ "bitflags", ] @@ -2259,27 +2272,26 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ - "getrandom 0.2.2", + "getrandom 0.2.3", "redox_syscall", ] [[package]] name = "regex" -version = "1.4.3" +version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a" +checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" dependencies = [ "aho-corasick", "memchr", "regex-syntax", - "thread_local", ] [[package]] name = "regex-syntax" -version = "0.6.22" +version = "0.6.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581" +checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" [[package]] name = "remove_dir_all" @@ -2313,13 +2325,13 @@ dependencies = [ "mime_guess", "native-tls", "percent-encoding 2.1.0", - "pin-project-lite 0.2.6", - "serde 1.0.124", + "pin-project-lite 0.2.7", + "serde 1.0.126", "serde_json", "serde_urlencoded", "tokio", "tokio-tls", - "url 2.2.1", + "url 2.2.2", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", @@ -2359,9 +2371,9 @@ checksum = "3e52c148ef37f8c375d49d5a73aa70713125b7f19095948a923f80afdeb22ec2" [[package]] name = "rustc-demangle" -version = "0.1.18" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232" +checksum = "dead70b0b5e03e9c814bcb6b01e03e68f7c57a80aa48c72ec92152ab3e818d49" [[package]] name = "rustc-hash" @@ -2380,9 +2392,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb5d2a036dc6d2d8fd16fde3498b04306e29bd193bf306a57427019b823d5acd" +checksum = "61b3909d758bb75c79f23d4736fac9433868679d3ad2ea7a61e3c25cfda9a088" [[package]] name = "ryu" @@ -2426,9 +2438,9 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "security-framework" -version = "2.1.2" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d493c5f39e02dfb062cd8f33301f90f9b13b650e8c1b1d0fd75c19dd64bff69d" +checksum = "23a2ac85147a3a11d77ecf1bc7166ec0b92febfa4461c37944e180f319ece467" dependencies = [ "bitflags", "core-foundation", @@ -2439,9 +2451,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.1.1" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee48cdde5ed250b0d3252818f646e174ab414036edb884dde62d80a3ac6082d" +checksum = "7e4effb91b4b8b6fb7732e670b6cee160278ff8e6bf485c7805d9e319d76e284" dependencies = [ "core-foundation-sys", "libc", @@ -2547,10 +2559,10 @@ checksum = "87b41bac48a3586249431fa9efb88cd1414c3455117eb57c02f5bda9634e158d" dependencies = [ "chrono", "debugid", - "serde 1.0.124", + "serde 1.0.126", "serde_json", "thiserror", - "url 2.2.1", + "url 2.2.2", "uuid", ] @@ -2562,9 +2574,9 @@ checksum = "9dad3f759919b92c3068c696c15c3d17238234498bbdcc80f2c469606f948ac8" [[package]] name = "serde" -version = "1.0.124" +version = "1.0.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd761ff957cb2a45fbb9ab3da6512de9de55872866160b23c25f1a841e99d29f" +checksum = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03" dependencies = [ "serde_derive", ] @@ -2583,9 +2595,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.124" +version = "1.0.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1800f7693e94e186f5e25a28291ae1570da908aff7d97a095dec1e56ff99069b" +checksum = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43" dependencies = [ "proc-macro2", "quote", @@ -2600,7 +2612,7 @@ checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79" dependencies = [ "itoa", "ryu", - "serde 1.0.124", + "serde 1.0.126", ] [[package]] @@ -2612,18 +2624,18 @@ dependencies = [ "form_urlencoded", "itoa", "ryu", - "serde 1.0.124", + "serde 1.0.126", ] [[package]] name = "sha-1" -version = "0.9.4" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfebf75d25bd900fd1e7d11501efab59bc846dbc76196839663e6637bba9f25f" +checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16" dependencies = [ "block-buffer", "cfg-if 1.0.0", - "cpuid-bool", + "cpufeatures", "digest", "opaque-debug", ] @@ -2636,13 +2648,13 @@ checksum = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" [[package]] name = "sha2" -version = "0.9.3" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa827a14b29ab7f44778d14a88d3cb76e949c45083f7dbfa507d0cb699dc12de" +checksum = "b362ae5752fd2137731f9fa25fd4d9058af34666ca1966fb969119cc35719f12" dependencies = [ "block-buffer", "cfg-if 1.0.0", - "cpuid-bool", + "cpufeatures", "digest", "opaque-debug", ] @@ -2655,9 +2667,9 @@ checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" [[package]] name = "signal-hook-registry" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f1d0fef1604ba8f7a073c7e701f213e056707210e9020af4528e0101ce11a6" +checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" dependencies = [ "libc", ] @@ -2674,9 +2686,9 @@ dependencies = [ [[package]] name = "slab" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" +checksum = "f173ac3d1a7e3b28003f40de0b5ce7fe2710f9b9dc3fc38664cebee46b3b6527" [[package]] name = "slog" @@ -2721,7 +2733,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f400f1c5db96f1f52065e8931ca0c524cceb029f7537c9e6d5424488ca137ca0" dependencies = [ "chrono", - "serde 1.0.124", + "serde 1.0.126", "serde_json", "slog", ] @@ -2796,9 +2808,9 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "standback" -version = "0.2.15" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2beb4d1860a61f571530b3f855a1b538d0200f7871c63331ecd6f17b1f014f8" +checksum = "e113fb6f3de07a243d434a56ec6f186dfd51cb08448239fe7bcae73f87ff28ff" dependencies = [ "version_check", ] @@ -2831,7 +2843,7 @@ checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef" dependencies = [ "proc-macro2", "quote", - "serde 1.0.124", + "serde 1.0.126", "serde_derive", "syn", ] @@ -2845,7 +2857,7 @@ dependencies = [ "base-x", "proc-macro2", "quote", - "serde 1.0.124", + "serde 1.0.126", "serde_derive", "serde_json", "sha1", @@ -2860,9 +2872,9 @@ checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0" [[package]] name = "strsim" -version = "0.9.3" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "subtle" @@ -2872,9 +2884,9 @@ checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2" [[package]] name = "syn" -version = "1.0.63" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fd9bc7ccc2688b3344c2f48b9b546648b25ce0b20fc717ee7fa7981a8ca9717" +checksum = "f71489ff30030d2ae598524f61326b902466f72a0fb1a8564c001cc63425bcc7" dependencies = [ "proc-macro2", "quote", @@ -2904,7 +2916,7 @@ dependencies = [ "docopt", "env_logger", "failure", - "futures 0.3.13", + "futures 0.3.15", "googleapis-raw", "grpcio", "hawk", @@ -2918,11 +2930,11 @@ dependencies = [ "num_cpus", "protobuf", "pyo3", - "rand 0.8.3", + "rand 0.8.4", "regex", "scheduled-thread-pool", "sentry", - "serde 1.0.124", + "serde 1.0.126", "serde_derive", "serde_json", "sha2", @@ -2933,9 +2945,9 @@ dependencies = [ "slog-scope", "slog-stdlog", "slog-term", - "time 0.2.25", + "time 0.2.27", "tokio", - "url 2.2.1", + "url 2.2.2", "urlencoding", "uuid", "validator", @@ -2969,7 +2981,7 @@ checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" dependencies = [ "cfg-if 1.0.0", "libc", - "rand 0.8.3", + "rand 0.8.4", "redox_syscall", "remove_dir_all", "winapi 0.3.9", @@ -2997,18 +3009,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e" +checksum = "fa6f76457f59514c7eeb4e59d891395fab0b2fd1d40723ae737d64153392e9c6" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0" +checksum = "8a36768c0fbf1bb15eca10defa29526bda730a2376c2ab4393ccfa16fb1a318d" dependencies = [ "proc-macro2", "quote", @@ -3045,9 +3057,9 @@ dependencies = [ [[package]] name = "time" -version = "0.2.25" +version = "0.2.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1195b046942c221454c2539395f85413b33383a067449d78aab2b7b052a142f7" +checksum = "4752a97f8eebd6854ff91f1c1824cd6160626ac4bd44287f7f4ea2035a02a242" dependencies = [ "const_fn", "libc", @@ -3070,9 +3082,9 @@ dependencies = [ [[package]] name = "time-macros-impl" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5c3be1edfad6027c69f5491cf4cb310d1a71ecd6af742788c6ff8bced86b8fa" +checksum = "fd3c141a1b43194f3f56a1411225df8646c55781d5f26db825b3d98507eb482f" dependencies = [ "proc-macro-hack", "proc-macro2", @@ -3083,9 +3095,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023" +checksum = "5b5220f05bb7de7f3f53c7c065e1199b3172696fe2db9f9c4d8ad9b4ee74c342" dependencies = [ "tinyvec_macros", ] @@ -3160,7 +3172,7 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" dependencies = [ - "serde 1.0.124", + "serde 1.0.126", ] [[package]] @@ -3171,21 +3183,21 @@ checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" [[package]] name = "tracing" -version = "0.1.25" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01ebdc2bb4498ab1ab5f5b73c5803825e60199229ccba0698170e3be0e7f959f" +checksum = "09adeb8c97449311ccd28a427f96fb563e7fd31aabf994189879d9da2394b89d" dependencies = [ "cfg-if 1.0.0", "log", - "pin-project-lite 0.2.6", + "pin-project-lite 0.2.7", "tracing-core", ] [[package]] name = "tracing-core" -version = "0.1.17" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f50de3927f93d202783f4513cda820ab47ef17f624b03c096e86ef00c67e6b5f" +checksum = "a9ff14f98b1a4b289c6248a023c1c2fa1491062964e9fed67ab29c4e4da4a052" dependencies = [ "lazy_static", ] @@ -3196,7 +3208,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" dependencies = [ - "pin-project 1.0.5", + "pin-project 1.0.7", "tracing", ] @@ -3209,15 +3221,15 @@ dependencies = [ "async-trait", "cfg-if 1.0.0", "enum-as-inner", - "futures 0.3.13", - "idna 0.2.2", + "futures 0.3.15", + "idna 0.2.3", "lazy_static", "log", "rand 0.7.3", "smallvec", "thiserror", "tokio", - "url 2.2.1", + "url 2.2.2", ] [[package]] @@ -3227,7 +3239,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "710f593b371175db53a26d0b38ed2978fafb9e9e8d3868b1acd753ea18df0ceb" dependencies = [ "cfg-if 0.1.10", - "futures 0.3.13", + "futures 0.3.15", "ipconfig", "lazy_static", "log", @@ -3247,9 +3259,9 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "typenum" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" +checksum = "879f6906492a7cd215bfa4cf595b600146ccfac0c79bcbd1f3000162af5e8b06" [[package]] name = "uname" @@ -3271,18 +3283,18 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" +checksum = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0" dependencies = [ "matches", ] [[package]] name = "unicode-normalization" -version = "0.1.17" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07fbfce1c8a97d547e8b5334978438d9d6ec8c20e38f56d4a4374d181493eaef" +checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" dependencies = [ "tinyvec", ] @@ -3295,9 +3307,9 @@ checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796" [[package]] name = "unicode-xid" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" +checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" [[package]] name = "unindent" @@ -3324,22 +3336,22 @@ dependencies = [ [[package]] name = "url" -version = "2.2.1" +version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ccd964113622c8e9322cfac19eb1004a07e636c545f325da085d5cdde6f1f8b" +checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" dependencies = [ "form_urlencoded", - "idna 0.2.2", + "idna 0.2.3", "matches", "percent-encoding 2.1.0", - "serde 1.0.124", + "serde 1.0.126", ] [[package]] name = "urlencoding" -version = "1.1.1" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9232eb53352b4442e40d7900465dfc534e8cb2dc8f18656fcb2ac16112b5593" +checksum = "5a1f0175e03a0973cf4afd476bef05c26e228520400eb1fd473ad417b1c00ffb" [[package]] name = "uuid" @@ -3347,8 +3359,8 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" dependencies = [ - "getrandom 0.2.2", - "serde 1.0.124", + "getrandom 0.2.3", + "serde 1.0.126", ] [[package]] @@ -3357,13 +3369,13 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be110dc66fa015b8b1d2c4eae40c495a27fae55f82b9cae3efb8178241ed20eb" dependencies = [ - "idna 0.2.2", + "idna 0.2.3", "lazy_static", "regex", - "serde 1.0.124", + "serde 1.0.126", "serde_derive", "serde_json", - "url 2.2.1", + "url 2.2.2", "validator_types", ] @@ -3391,21 +3403,21 @@ checksum = "ad9680608df133af2c1ddd5eaf1ddce91d60d61b6bc51494ef326458365a470a" [[package]] name = "vcpkg" -version = "0.2.11" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "version_check" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed" +checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" [[package]] name = "walkdir" -version = "2.3.1" +version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7d" +checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" dependencies = [ "same-file", "winapi 0.3.9", @@ -3436,21 +3448,21 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasm-bindgen" -version = "0.2.71" +version = "0.2.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ee1280240b7c461d6a0071313e08f34a60b0365f14260362e5a2b17d1d31aa7" +checksum = "d54ee1d4ed486f78874278e63e4069fc1ab9f6a18ca492076ffb90c5eb2997fd" dependencies = [ "cfg-if 1.0.0", - "serde 1.0.124", + "serde 1.0.126", "serde_json", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.71" +version = "0.2.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b7d8b6942b8bb3a9b0e73fc79b98095a27de6fa247615e59d096754a3bc2aa8" +checksum = "3b33f6a0694ccfea53d94db8b2ed1c3a8a4c86dd936b13b9f0a15ec4a451b900" dependencies = [ "bumpalo", "lazy_static", @@ -3463,9 +3475,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.21" +version = "0.4.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e67a5806118af01f0d9045915676b22aaebecf4178ae7021bc171dab0b897ab" +checksum = "5fba7978c679d53ce2d0ac80c8c175840feb849a161664365d1287b41f2e67f1" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -3475,9 +3487,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.71" +version = "0.2.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ac38da8ef716661f0f36c0d8320b89028efe10c7c0afde65baffb496ce0d3b" +checksum = "088169ca61430fe1e58b8096c24975251700e7b1f6fd91cc9d59b04fb9b18bd4" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3485,9 +3497,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.71" +version = "0.2.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc053ec74d454df287b9374ee8abb36ffd5acb95ba87da3ba5b7d3fe20eb401e" +checksum = "be2241542ff3d9f241f5e2cb6dd09b37efe786df8851c54957683a49f0987a97" dependencies = [ "proc-macro2", "quote", @@ -3498,15 +3510,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.71" +version = "0.2.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d6f8ec44822dd71f5f221a5847fb34acd9060535c1211b70a05844c0f6383b1" +checksum = "d7cff876b8f18eed75a66cf49b65e7f967cb354a7aa16003fb55dbfd25b44b4f" [[package]] name = "web-sys" -version = "0.3.48" +version = "0.3.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec600b26223b2948cedfde2a0aa6756dcf1fef616f43d7b3097aaf53a6c4d92b" +checksum = "e828417b379f3df7111d3a2a9e5753706cae29c41f7c4029ee9fd77f3e09e582" dependencies = [ "js-sys", "wasm-bindgen", From 54072fb94907b5fd157e22854750bdd43cd98f31 Mon Sep 17 00:00:00 2001 From: jrconlin Date: Mon, 21 Mar 2022 16:23:19 -0700 Subject: [PATCH 4/4] fix: Add recent grpc to nix build This is a resubmit of #1225 (offered by @Mic92). The original patch could not be accepted due to lack of commit signatures. --- shell.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell.nix b/shell.nix index 219e655a82..2fbc56f14c 100644 --- a/shell.nix +++ b/shell.nix @@ -15,6 +15,13 @@ stdenv.mkDerivation { cmake protobuf go + grpc ]; + + # grpc otherwise fails since it's bulit with `-Wall` + hardeningDisable = [ "all" ]; + + GRPCIO_SYS_USE_PKG_CONFIG = 1; + NIX_LDFLAGS = "-L${libmysqlclient}/lib/mysql"; }